* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: repeating-linear-gradient(
        45deg,
        #000000 0px,
        #000000 40px,
        #ffcc00 40px,
        #ffcc00 80px
    );
    font-family: 'Impact', 'Arial Black', sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.konami-mode {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><ellipse cx="16" cy="12" rx="10" ry="12" fill="%23FFB6C1" stroke="%23FF69B4" stroke-width="1.5"/><circle cx="13" cy="9" r="2" fill="%23FF69B4"/><circle cx="19" cy="9" r="2" fill="%23FF69B4"/></svg>') 16 16, auto;
}

body.konami-mode * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><ellipse cx="16" cy="12" rx="10" ry="12" fill="%23FFB6C1" stroke="%23FF69B4" stroke-width="1.5"/><circle cx="13" cy="9" r="2" fill="%23FF69B4"/><circle cx="19" cy="9" r="2" fill="%23FF69B4"/></svg>') 16 16, auto !important;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.page-layout {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 20px 24px;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.button-base {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e0e0e0, #a0a0a0);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                inset 0 -10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

#alertButton {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 35% 35%, #ff3333, #cc0000);
    color: white;
    font-size: 72px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
                inset 0 -15px 30px rgba(0, 0, 0, 0.4),
                inset 0 5px 20px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 8px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

#alertButton:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                inset 0 -15px 30px rgba(0, 0, 0, 0.4),
                inset 0 5px 20px rgba(255, 255, 255, 0.3);
}

#alertButton:active {
    transform: translateY(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

#alertButton.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.share-title {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.share-container {
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: auto;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(520px, 92vw);
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 20;
}

.toast {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f4f4f4;
    border: 2px solid #111;
    border-radius: 16px;
    padding: 12px 14px;
}

.share-btn {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #111;
    border: 2px solid #111;
    border-radius: 12px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    background: #eaeaea;
    transform: translateY(-2px);
}

.share-btn:active {
    transform: translateY(0);
}

.share-button {
    background: linear-gradient(145deg, #ffcc00, #ff9900);
    border: 3px solid #000;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #ff9900, #ffcc00);
}

.share-button:active {
    transform: translateY(0);
}

.share-icon {
    font-size: 24px;
}

.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.share-content h2 {
    margin-bottom: 20px;
    color: #000;
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.share-option {
    background: #f0f0f0;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.share-option:hover {
    transform: scale(1.05);
    background: #ffcc00;
}

.copy-url {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.copy-url input {
    flex: 1;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 5px;
    font-size: 14px;
}

.copy-url button {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.copy-url button:hover {
    background: #333;
}

.close-modal {
    margin-top: 20px;
    padding: 10px 30px;
    background: #ff3333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #cc0000;
}

#mediaContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#mediaContainer.active {
    display: flex;
}

#explosionIframe {
    width: 100%;
    height: 100%;
    border: none;
}

#closeButton {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ff0000;
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

#closeButton:hover {
    background: #cc0000;
    transform: rotate(90deg) scale(1.1);
}

.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.flash.active {
    animation: flashEffect 0.5s;
}

@keyframes flashEffect {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

#loading {
    position: absolute;
    color: white;
    font-size: 24px;
    display: none;
}

#loading.active {
    display: block;
}

#stats {
    position: fixed;
    display: none;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 100;
    font-family: 'Courier New', monospace;
}

#stats div {
    margin: 5px 0;
}

.warning {
    color: #ffcc00;
    font-weight: bold;
}

#konamiNotif {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 105, 180, 0.95);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    z-index: 10000;
    display: none;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.5);
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 768px) {
    .button-base {
        width: 280px;
        height: 280px;
    }

    #alertButton {
        width: 220px;
        height: 220px;
        font-size: 56px;
    }

    .share-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    #konamiNotif {
        font-size: 24px;
        padding: 20px 30px;
    }

    .share-content {
        padding: 20px;
    }

    .share-options {
        gap: 10px;
    }

    .share-option {
        padding: 12px 20px;
        font-size: 14px;
    }
}
