/* ==========================================================================
   SPOOKIZ — Coming Soon
   Loaded after style.css and reuses its tokens, buttons, tagline pill, title
   gradients and progress bar. The page is the game's "loading screen": a
   countdown in chunky tiles, a bar that fills as launch gets closer, and the
   five monsters bobbing along the bottom.
   ========================================================================== */

.soon-main {
    min-height: calc(100svh - 120px);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 4rem) 0 1rem;
}

.soon-hero {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0;
}

.soon-logo { width: clamp(150px, 26vw, 240px); height: auto; margin-bottom: 1.6rem; }

.soon-hero .tagline { margin-bottom: 1.2rem; }

.soon-title .line-1 { font-size: clamp(3.4rem, 12vw, 8rem); }
.soon-title .line-2 { font-size: clamp(2.8rem, 10vw, 6.6rem); margin-top: .1em; }

.soon-sub {
    max-width: 46ch;
    margin: 1.4rem 0 2rem;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Countdown ---------- */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.55rem, 2vw, 1.1rem);
    width: min(580px, 100%);
}
.tile {
    display: grid;
    gap: .1rem;
    padding: clamp(.8rem, 2.4vw, 1.2rem) .4rem clamp(.65rem, 2vw, 1rem);
    border: var(--edge) solid var(--ink);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--night-3), var(--night-2));
    box-shadow: var(--drop);
}
.tile .num {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 8vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: .03em;
    color: var(--yellow);
    text-shadow: 0 4px 0 var(--ink);
    font-variant-numeric: tabular-nums;
}
.tile .num.tick { animation: bump .35s ease; }
.tile .lbl {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Loading bar ---------- */
.loading { width: min(580px, 100%); margin-top: 1.8rem; }
.loading-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.loading-head b { color: var(--lime); }
.launch-date { margin: .9rem 0 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.launch-date time { color: var(--paper); }

/* ---------- Post-launch state ---------- */
.soon-live { margin-top: 1rem; }
/* display:grid / inline-flex above would otherwise beat the [hidden] attribute */
.soon-hero [hidden] { display: none !important; }

/* ---------- Cast ---------- */
.soon-cast {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(.4rem, 2vw, 1.4rem);
    margin-top: clamp(2rem, 5vw, 3.2rem);
}
.soon-cast img {
    width: clamp(54px, 14vw, 120px);
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4));
    animation: float 4.5s ease-in-out infinite;
}
.soon-cast img:nth-child(2) { animation-delay: -.9s; }
.soon-cast img:nth-child(3) { animation-delay: -1.8s; }
.soon-cast img:nth-child(4) { animation-delay: -2.7s; }
.soon-cast img:nth-child(5) { animation-delay: -3.6s; }

/* ---------- Follow ---------- */
.soon-follow { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.soon-follow .sec-kicker { margin-bottom: .8rem; }
.soon-follow ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.soon-follow a {
    display: inline-block;
    padding: .45rem 1.05rem;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.soon-follow a:hover { color: #fff; border-color: var(--yellow); }

/* Instagram QR: scannable on a desktop, tappable on a phone */
.soon-follow a.soon-qr {
    display: grid;
    justify-items: center;
    gap: .7rem;
    width: fit-content;
    margin: 1.6rem auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    max-width: 24rem;
    text-align: center;
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--paper);
}
.soon-qr img {
    width: clamp(160px, 38vw, 200px);
    height: auto;
    border: var(--edge) solid var(--ink);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--drop);
    transition: transform .15s ease;
}
.soon-qr:hover img { transform: translateY(-4px); }
.soon-qr b { color: var(--yellow); }

/* ---------- Footer ---------- */
.soon-footer { padding-top: 0; }
.footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-underline-offset: 4px;
    transition: color .18s ease, text-decoration-color .18s ease;
}
.footer-credit a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

@media (max-width: 520px) {
    .tile { border-radius: var(--radius-sm); }
    .tile .lbl { font-size: .58rem; letter-spacing: .1em; }
}
