:root {
    color-scheme: dark;
    --black: #000000;
    --white: #ffffff;
    --gold: #d4af37;
}
* {
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    background: var(--black);
}
body {
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    transition:
        background-color 180ms linear,
        color 180ms linear,
        opacity 180ms linear;
}
#screen {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding:
        calc(28px + env(safe-area-inset-top))
        calc(22px + env(safe-area-inset-right))
        calc(28px + env(safe-area-inset-bottom))
        calc(22px + env(safe-area-inset-left));
}
.screen-panel {
    position: relative;
    z-index: 5;
    width: min(100%, 760px);
    text-align: center;
}
.hidden {
    display: none !important;
}
.kicker {
    margin: 0 0 22px;
    color: var(--gold);
    font-size: clamp(11px, 2.8vw, 16px);
    font-weight: 800;
    letter-spacing: 0.3em;
}
h1 {
    margin: 0 0 8px;
    font-size: clamp(52px, 15vw, 120px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.2em;
}
h2 {
    margin: 0;
    font-size: clamp(24px, 7vw, 52px);
    letter-spacing: 0.08em;
}
.divider {
    width: min(230px, 55vw);
    height: 2px;
    margin: 32px auto;
    background: var(--gold);
}
.event-date {
    margin: 16px 0 0;
    color: var(--gold);
    font-size: clamp(19px, 5vw, 32px);
    font-weight: 900;
    letter-spacing: 0.16em;
}
.state-title {
    max-width: 560px;
    margin: 24px auto 0;
    color: var(--gold);
    font-size: clamp(17px, 4.6vw, 24px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
}
.state-message {
    max-width: 560px;
    margin: 14px auto 0;
    color: #bcbcbc;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.5;
}
.instructions-intro {
    margin-top: 20px;
    color: #d8d8d8;
}
.instructions-list {
    display: inline-block;
    max-width: 460px;
    margin: 28px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}
.instructions-list li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 24px;
    color: #d8d8d8;
    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.5;
}
.instructions-list li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.primary-button {
    width: min(100%, 420px);
    min-height: 64px;
    margin-top: 32px;
    padding: 16px 22px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: var(--gold);
    color: #000000;
    font-size: clamp(16px, 4vw, 21px);
    font-weight: 900;
    letter-spacing: 0.07em;
    cursor: pointer;
}
.primary-button:active {
    transform: scale(0.98);
}
.helper-text {
    max-width: 520px;
    margin: 18px auto 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.45;
}
.connection-text {
    margin: 17px 0 0;
    font-size: 14px;
    opacity: 0.6;
}
.sync-orb {
    display: flex;
    width: 94px;
    height: 94px;
    margin: 0 auto 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
}
.sync-orb span {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 48px rgba(212, 175, 55, 0.35);
    animation: sync-pulse 1.6s ease-in-out infinite;
}
.live-marker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15em;
}
.live-marker span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    animation: sync-pulse 1.2s ease-in-out infinite;
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 560px;
    margin: 30px auto 0;
}
.social-links a {
    padding: 9px 16px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 999px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
}
.social-links a:active {
    background: rgba(212, 175, 55, 0.12);
}
.scene-text-layer {
    position: absolute;
    z-index: 10;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    pointer-events: none;
}
.scene-text-layer p {
    margin: 0 0 17px;
    font-size: clamp(12px, 3vw, 18px);
    font-weight: 800;
    letter-spacing: 0.28em;
}
.scene-text-layer strong {
    font-size: clamp(52px, 15vw, 120px);
    font-weight: 400;
    letter-spacing: 0.16em;
}
@keyframes sync-pulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.82);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}
@media (max-height: 680px) {
    .kicker {
        margin-bottom: 12px;
    }
    .divider {
        margin: 18px auto;
    }
    .primary-button {
        min-height: 54px;
        margin-top: 19px;
    }
    .state-message {
        margin-top: 15px;
    }
    .instructions-list {
        margin-top: 18px;
    }
}
