/* ============================================================
   Kia KickOff — public phone + display CSS.
   Two standalone full-screen experiences. Dark, branded.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --kk-bg-0: #07070a;
    --kk-bg-1: #0f0f15;
    --kk-bg-2: #15151c;
    --kk-fg: #f5f2ec;
    --kk-fg-dim: rgba(245, 242, 236, 0.62);
    --kk-fg-muted: rgba(245, 242, 236, 0.36);
    --kk-gold: #c9a84c;
    --kk-gold-soft: #e6c976;
    --kk-red: #c41e1e;
    --kk-red-bright: #e84a4a;
    --kk-teal: #5eead4;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--kk-bg-0);
    color: var(--kk-fg);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Ambient gold orbs (shared, very subtle) */
.kk-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.kk-ambient::before,
.kk-ambient::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.kk-ambient::before {
    width: 60vmin; height: 60vmin;
    top: -20vmin; left: -15vmin;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.45) 0%, transparent 65%);
}
.kk-ambient::after {
    width: 70vmin; height: 70vmin;
    bottom: -30vmin; right: -20vmin;
    background: radial-gradient(circle, rgba(196, 30, 30, 0.35) 0%, transparent 65%);
}

/* ============================================================
   PHONE VIEW — /kiakickoff
   ============================================================ */
.kk-phone {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: max(env(safe-area-inset-top, 0px), 1rem) 1rem max(env(safe-area-inset-bottom, 0px), 1rem);
    overflow: hidden;
}

/* Top timer bar */
.kk-phone__timer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 10;
}
.kk-phone__timer-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--kk-gold) 0%, var(--kk-gold-soft) 100%);
    transition: width 0.2s linear;
}

/* Top bar holds the brand and the auth pill side-by-side */
.kk-phone__topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.kk-phone__topbar .kk-phone__brand {
    padding-top: 0;
    flex-direction: row;
    gap: 0.65rem;
}
.kk-phone__topbar .kk-phone__brand img {
    width: 40px;
    max-width: 40px;
}
.kk-phone__topbar .kk-phone__brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
}

.kk-phone__brand {
    text-align: center;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.kk-phone__brand img {
    width: 88px;
    max-width: 30vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(196, 30, 30, 0.5));
}
.kk-phone__brand-name {
    font-family: "Rajdhani", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kk-gold-soft);
}

.kk-phone__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem 0;
}

/* Centred message states */
.kk-phone__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1rem;
}
.kk-phone__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--kk-gold-soft);
}
.kk-phone__headline {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--kk-fg);
}
.kk-phone__sub {
    font-size: 0.95rem;
    color: var(--kk-fg-dim);
    line-height: 1.5;
    max-width: 36ch;
}

.kk-pulse {
    display: inline-grid;
    place-items: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--kk-gold);
    position: relative;
    margin-top: 0.5rem;
}
.kk-pulse::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--kk-gold);
    opacity: 0.6;
    animation: kkPulse 1.8s ease-out infinite;
}
@keyframes kkPulse {
    0%   { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* Countdown number */
.kk-phone__countdown {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(3.5rem, 16vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--kk-gold-soft);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-top: 0.5rem;
}

/* Answer buttons */
.kk-phone__options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.kk-opt {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    width: 100%;
    background: linear-gradient(180deg, var(--kk-bg-2) 0%, var(--kk-bg-1) 100%);
    color: var(--kk-fg);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    font-size: clamp(2.2rem, 9vw, 3rem);
    font-weight: 800;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 14px 28px -16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.kk-opt:active { transform: scale(0.97); }
.kk-opt:hover:not(:disabled) { border-color: rgba(201, 168, 76, 0.45); }
.kk-opt:disabled { cursor: default; opacity: 0.55; }
.kk-opt--picked {
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.34) 0%, rgba(201, 168, 76, 0.12) 100%);
    border-color: rgba(201, 168, 76, 0.85);
    color: var(--kk-fg);
    box-shadow: 0 0 32px -6px rgba(201, 168, 76, 0.7);
}
.kk-opt__letter {
    display: block;
}

/* Locked-in confirmation */
.kk-phone__lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    color: var(--kk-gold-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
}
.kk-phone__lock svg { width: 18px; height: 18px; color: var(--kk-gold); }

.kk-phone__foot {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kk-fg-muted);
}

/* ============================================================
   DISPLAY VIEW — /kiakickoff/display (LED wall)
   ============================================================ */
.kk-display {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 4vh 5vw;
    overflow: hidden;
}

/* Question screen wrapper — same internal layout as .kk-display itself,
   but the outer <section> uses padding: 0 so this inner wrap can control
   it (and respond to media queries cleanly). */
.kk-display--qscreen { padding: 0; }
.kk-display__qwrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 4vh 5vw;
}

.kk-display__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2vh;
}
.kk-display__header--solo {
    justify-content: center;
}
.kk-display__brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.kk-display__brand img {
    width: 12vmin;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(196, 30, 30, 0.55));
}
.kk-display__brand-text {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.kk-display__brand-text small {
    display: block;
    color: var(--kk-gold-soft);
    font-size: clamp(0.9rem, 1.4vmin, 1.2rem);
}
.kk-display__brand-text strong {
    display: block;
    color: var(--kk-fg);
    font-size: clamp(1.6rem, 3vmin, 2.6rem);
}

.kk-display__qno {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2.2rem, 4vmin, 3.6rem);
    font-weight: 800;
    color: var(--kk-gold-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Centered waiting / end / between states */
.kk-display__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 3vh;
}
.kk-display__center .kk-display__brand img { width: 22vmin; max-width: 360px; }
.kk-display__hero-line {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(3rem, 9vmin, 8rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--kk-fg);
    letter-spacing: 0.01em;
}
.kk-display__hero-sub {
    font-size: clamp(1.2rem, 2.4vmin, 2.4rem);
    font-weight: 500;
    color: var(--kk-fg-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.kk-display__big-pulse {
    width: 26px; height: 26px;
    background: var(--kk-gold);
    border-radius: 50%;
    position: relative;
    margin-top: 1rem;
}
.kk-display__big-pulse::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 3px solid var(--kk-gold);
    opacity: 0.55;
    animation: kkPulse 2s ease-out infinite;
}

/* Question screen */
.kk-display__question {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2.6rem, 5.6vmin, 5.6rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--kk-fg);
    padding: 2vh 0 1vh;
    text-align: center;
    text-wrap: balance;
}

.kk-display__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5vh 2vw;
    margin: 2vh 0;
}
.kk-disp-opt {
    position: relative;
    background: linear-gradient(180deg, var(--kk-bg-2) 0%, var(--kk-bg-1) 100%);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 16px;
    padding: 2vh 2vw;
    display: flex;
    align-items: center;
    gap: 1.8vw;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.kk-disp-opt__letter {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 8vmin;
    height: 8vmin;
    min-width: 56px;
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.30) 0%, rgba(201, 168, 76, 0.12) 100%);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--kk-gold-soft);
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2.2rem, 5vmin, 4rem);
    font-weight: 800;
}
.kk-disp-opt__text {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.6rem, 3.2vmin, 3rem);
    font-weight: 600;
    color: var(--kk-fg);
    line-height: 1.2;
    text-wrap: balance;
}

/* Tally bars (overlaid on options) */
.kk-disp-opt__bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.20) 0%, rgba(201, 168, 76, 0.10) 100%);
    width: 0%;
    transition: width 1.6s cubic-bezier(0.25, 1, 0.4, 1);
    pointer-events: none;
    z-index: 0;
}
.kk-disp-opt.kk-disp-opt--withtally .kk-disp-opt__bar {
    display: block;
}
.kk-disp-opt__letter,
.kk-disp-opt__text,
.kk-disp-opt__stats {
    position: relative;
    z-index: 1;
}
.kk-disp-opt__stats {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-variant-numeric: tabular-nums;
}
.kk-disp-opt__pct {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2rem, 4.2vmin, 3.8rem);
    font-weight: 800;
    color: var(--kk-gold-soft);
    line-height: 1;
}
.kk-disp-opt__cnt {
    font-size: clamp(0.85rem, 1.6vmin, 1.4rem);
    font-weight: 600;
    color: var(--kk-fg-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.kk-disp-opt:not(.kk-disp-opt--withtally) .kk-disp-opt__stats { display: none; }

/* Correct (revealed) */
.kk-disp-opt--correct {
    border-color: var(--kk-gold);
    box-shadow: 0 0 60px -8px rgba(201, 168, 76, 0.7), inset 0 0 0 1px rgba(201, 168, 76, 0.5);
}
.kk-disp-opt--correct .kk-disp-opt__bar {
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.55) 0%, rgba(230, 201, 118, 0.4) 100%);
}
.kk-disp-opt--correct .kk-disp-opt__letter {
    background: linear-gradient(180deg, var(--kk-gold) 0%, #a3853a 100%);
    color: #0e0e14;
    border-color: var(--kk-gold-soft);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.5);
}
.kk-disp-opt--correct .kk-disp-opt__text { color: var(--kk-fg); font-weight: 700; }
.kk-disp-opt--correct .kk-disp-opt__pct { color: var(--kk-gold-soft); }

/* Dimmed wrong answers */
.kk-disp-opt--dim {
    opacity: 0.4;
    filter: saturate(0.6);
}

/* Footer (timer + counter) */
.kk-display__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
    padding-top: 2vh;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kk-display__timer {
    display: flex;
    align-items: center;
    gap: 2vw;
    flex: 1;
}
.kk-display__timer-num {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(4rem, 12vmin, 11rem);
    font-weight: 800;
    color: var(--kk-gold-soft);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 1.5em;
}
.kk-display__timer-bar {
    flex: 1;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.kk-display__timer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kk-gold) 0%, var(--kk-gold-soft) 100%);
    width: 100%;
    transition: width 0.2s linear, background 0.3s ease;
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.4);
}
.kk-display__timer-fill--low {
    background: linear-gradient(90deg, var(--kk-red) 0%, var(--kk-red-bright) 100%);
    box-shadow: 0 0 18px rgba(196, 30, 30, 0.45);
}

.kk-display__counter {
    text-align: right;
    flex-shrink: 0;
}
.kk-display__counter-num {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2rem, 4.4vmin, 4rem);
    font-weight: 800;
    color: var(--kk-fg);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.kk-display__counter-label {
    font-size: clamp(0.85rem, 1.6vmin, 1.4rem);
    font-weight: 600;
    color: var(--kk-fg-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* ============================================================
   COUNTDOWN — appears on the waiting screen when an upcoming
   night is known. Used by both /kiakickoff and /kiakickoff/display.
   ============================================================ */
.kk-cd {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 900px;
}

/* Soft ambient halo behind the countdown */
.kk-cd::before {
    content: "";
    position: absolute;
    inset: 50% 50% auto auto;
    width: clamp(280px, 60%, 720px);
    height: clamp(160px, 24vmin, 320px);
    transform: translate(50%, -50%);
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.20) 0%, transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    z-index: -1;
}

/* "TONIGHT" / "TOMORROW" / "WED, 23 MAY" pill */
.kk-cd__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.08) 100%);
    border: 1px solid rgba(201, 168, 76, 0.42);
    color: var(--kk-gold-soft);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 0 18px -8px rgba(201, 168, 76, 0.55);
}
.kk-cd__pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--kk-gold);
    box-shadow: 0 0 10px var(--kk-gold);
    animation: kkPillBlink 1.6s ease-in-out infinite;
}
@keyframes kkPillBlink {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* Night title beneath the pill */
.kk-cd__title {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.2rem, 3.4vw, 1.7rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--kk-fg);
    text-wrap: balance;
    max-width: 22ch;
    margin: 0;
}

/* Grid of D : H : M : S cells */
.kk-cd__grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    font-variant-numeric: tabular-nums;
    margin-top: 0.5rem;
}
.kk-cd__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 64px;
    padding: 0.85rem 0.6rem 0.55rem;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--kk-bg-2) 0%, var(--kk-bg-1) 100%);
    border: 1px solid rgba(201, 168, 76, 0.18);
    box-shadow:
        0 18px 32px -22px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.kk-cd__num {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 1;
    color: var(--kk-gold-soft);
    letter-spacing: 0.02em;
    min-width: 1.6em;
    text-align: center;
}
.kk-cd__lbl {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--kk-fg-muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.kk-cd__sep {
    align-self: center;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    color: var(--kk-fg-muted);
    padding: 0 0.05rem;
    margin-top: -0.6rem;
}

/* Footer "STARTS AT 11:45 PM" + tiny instruction */
.kk-cd__foot {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.kk-cd__foot-line {
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kk-gold-soft);
}
.kk-cd__foot-line strong {
    color: var(--kk-fg);
    font-weight: 700;
}
.kk-cd__hint {
    font-size: 0.85rem;
    color: var(--kk-fg-dim);
    line-height: 1.5;
    max-width: 34ch;
    text-align: center;
}

/* "X ready to play" chip — appears on waiting screens when there's at least
   one identified user. Phones & display share the same look. */
.kk-cd__ready {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.10);
    border: 1px solid rgba(94, 234, 212, 0.35);
    color: var(--kk-teal);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.kk-cd__ready strong { color: var(--kk-fg); }
.kk-cd__ready-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--kk-teal);
    box-shadow: 0 0 8px var(--kk-teal);
    animation: kkPillBlink 1.6s ease-in-out infinite;
}
.kk-display .kk-cd__ready {
    padding: 0.6rem 1.2rem;
    font-size: clamp(0.95rem, 1.6vmin, 1.4rem);
    letter-spacing: 0.16em;
}
.kk-display .kk-cd__ready-dot { width: 10px; height: 10px; }

/* "Any moment now" pulse — when target has passed but admin hasn't launched */
.kk-cd--imminent .kk-cd__grid { display: none; }
.kk-cd--imminent .kk-cd__live {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.kk-cd:not(.kk-cd--imminent) .kk-cd__live { display: none; }
.kk-cd__live-line {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    color: var(--kk-fg);
}

/* === DISPLAY (LED wall) sizing overrides === */
.kk-display .kk-cd {
    max-width: none;
    gap: 2.5vh;
}
.kk-display .kk-cd__pill {
    padding: 0.7rem 1.4rem;
    font-size: clamp(1rem, 1.6vmin, 1.4rem);
    letter-spacing: 0.28em;
}
.kk-display .kk-cd__pill-dot {
    width: 10px; height: 10px;
}
.kk-display .kk-cd__title {
    font-size: clamp(2rem, 4.8vmin, 4.4rem);
    max-width: 30ch;
    line-height: 1.1;
}
.kk-display .kk-cd__grid {
    gap: 1.4vw;
    margin-top: 1vh;
}
.kk-display .kk-cd__cell {
    min-width: 14vmin;
    padding: 2.6vmin 1.8vmin 1.6vmin;
    border-radius: 22px;
    gap: 0.8vh;
}
.kk-display .kk-cd__num {
    font-size: clamp(5rem, 16vmin, 16rem);
    line-height: 0.95;
}
.kk-display .kk-cd__lbl {
    font-size: clamp(0.85rem, 1.6vmin, 1.4rem);
    letter-spacing: 0.3em;
}
.kk-display .kk-cd__sep {
    font-size: clamp(4rem, 12vmin, 12rem);
    margin-top: -3vh;
}
.kk-display .kk-cd__foot-line {
    font-size: clamp(1.4rem, 2.4vmin, 2.4rem);
    letter-spacing: 0.24em;
}
.kk-display .kk-cd__hint {
    font-size: clamp(1.1rem, 1.8vmin, 1.8rem);
    max-width: 60ch;
}
.kk-display .kk-cd__live-line {
    font-size: clamp(3rem, 8vmin, 7rem);
}

/* ============================================================
   AUTH — top-bar pill, dropdown, nudge banner and the
   overlay modal for OTP login on /kiakickoff.
   ============================================================ */
.kk-auth-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem 0.45rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.08) 100%);
    border: 1px solid rgba(201, 168, 76, 0.45);
    color: var(--kk-gold-soft);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.kk-auth-pill:hover { border-color: rgba(201, 168, 76, 0.75); }
.kk-auth-pill:active { transform: scale(0.97); }
.kk-auth-pill svg { flex-shrink: 0; }
.kk-auth-pill--cta {
    padding: 0.45rem 0.95rem 0.45rem 0.75rem;
    background: linear-gradient(180deg, rgba(196, 30, 30, 0.20) 0%, rgba(196, 30, 30, 0.08) 100%);
    border-color: rgba(196, 30, 30, 0.55);
    color: var(--kk-red-bright);
}
.kk-auth-pill--cta:hover { border-color: rgba(196, 30, 30, 0.85); }

.kk-auth-pill__avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--kk-gold) 0%, #a3853a 100%);
    color: #0e0e14;
    font-family: "Rajdhani", sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.kk-auth-pill__name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--kk-fg);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.kk-auth-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    z-index: 30;
    background: linear-gradient(180deg, var(--kk-bg-2) 0%, var(--kk-bg-1) 100%);
    border: 1px solid rgba(201, 168, 76, 0.20);
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow:
        0 24px 60px -28px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.kk-auth-menu__head {
    padding: 0.65rem 0.8rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.25rem;
}
.kk-auth-menu__name {
    font-weight: 700;
    color: var(--kk-fg);
    line-height: 1.2;
}
.kk-auth-menu__phone {
    font-size: 0.78rem;
    color: var(--kk-fg-muted);
    font-variant-numeric: tabular-nums;
    margin-top: 0.15rem;
}
.kk-auth-menu__item {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--kk-fg);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.kk-auth-menu__item:hover { background: rgba(255, 255, 255, 0.04); }
.kk-auth-menu__item svg { color: var(--kk-fg-dim); }

/* Login nudge banner above the waiting screen */
.kk-auth-nudge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(196, 30, 30, 0.18) 0%, rgba(196, 30, 30, 0.05) 100%);
    border: 1px solid rgba(196, 30, 30, 0.40);
    color: var(--kk-fg);
    font-size: 0.88rem;
    line-height: 1.35;
}
.kk-auth-nudge__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(196, 30, 30, 0.25);
    color: var(--kk-red-bright);
    display: grid;
    place-items: center;
}
.kk-auth-nudge__text { flex: 1; min-width: 0; }
.kk-auth-nudge__text strong { color: var(--kk-fg); }
.kk-auth-nudge__cta {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(201, 168, 76, 0.55);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.30) 0%, rgba(201, 168, 76, 0.12) 100%);
    color: var(--kk-fg);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.kk-auth-nudge__cta:hover { border-color: rgba(201, 168, 76, 0.9); }

/* Overlay modal */
.kk-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(15, 15, 21, 0.6) 0%, rgba(7, 7, 10, 0.92) 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: max(env(safe-area-inset-top), 1rem) 1rem max(env(safe-area-inset-bottom), 1rem);
    animation: kkAuthFade 0.2s ease-out;
}
@keyframes kkAuthFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.kk-auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(21, 21, 28, 0.95) 0%, rgba(14, 14, 20, 0.98) 100%);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 18px;
    padding: 1.5rem 1.3rem 1.4rem;
    box-shadow:
        0 28px 60px -24px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: kkAuthPop 0.25s cubic-bezier(0.25, 1.2, 0.4, 1);
}
@keyframes kkAuthPop {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.kk-auth-card__close {
    position: absolute;
    top: 10px; right: 10px;
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    color: var(--kk-fg-dim);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.kk-auth-card__close:hover { color: var(--kk-fg); border-color: rgba(255, 255, 255, 0.18); }

.kk-auth-card__head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 1rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kk-auth-card__logo {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(196, 30, 30, 0.45));
    margin-bottom: 0.25rem;
}
.kk-auth-card__eyebrow {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--kk-gold-soft);
    font-weight: 700;
}
.kk-auth-card__title {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kk-fg);
    margin: 0.1rem 0 0;
    line-height: 1.2;
}
.kk-auth-card__sub {
    margin: 0;
    font-size: 0.88rem;
    color: var(--kk-fg-dim);
    line-height: 1.4;
    max-width: 32ch;
}

.kk-auth-card__err {
    background: rgba(196, 30, 30, 0.16);
    border: 1px solid rgba(196, 30, 30, 0.40);
    color: var(--kk-red-bright);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.kk-auth-card__step {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.kk-auth-card__label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kk-fg-dim);
}
.kk-auth-card__optional {
    color: var(--kk-fg-muted);
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.kk-auth-card__phone {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.kk-auth-card__cc {
    display: grid;
    place-items: center;
    padding: 0 0.9rem;
    background: rgba(201, 168, 76, 0.12);
    color: var(--kk-gold-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.kk-auth-card__phone .kk-auth-card__input {
    border: none;
    background: transparent;
    border-radius: 0;
}

.kk-auth-card__input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    color: var(--kk-fg);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.kk-auth-card__input:focus {
    border-color: rgba(201, 168, 76, 0.55);
    background: rgba(255, 255, 255, 0.05);
}
.kk-auth-card__input::placeholder { color: rgba(245, 242, 236, 0.32); }
.kk-auth-card__input--otp {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.6em;
    padding-left: 0.95rem;
    padding-right: 0;
}

.kk-auth-card__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.kk-auth-card__hint {
    margin: 0.1rem 0 0.2rem;
    font-size: 0.78rem;
    color: var(--kk-fg-muted);
}

.kk-auth-card__phone-echo {
    margin: 0;
    font-size: 0.82rem;
    color: var(--kk-fg-dim);
}
.kk-auth-card__phone-echo strong {
    color: var(--kk-fg);
    font-variant-numeric: tabular-nums;
}

.kk-auth-card__rowfoot {
    display: flex;
    justify-content: space-between;
    margin-top: -0.15rem;
}
.kk-auth-card__textbtn {
    appearance: none;
    background: none;
    border: none;
    color: var(--kk-gold-soft);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0;
}
.kk-auth-card__textbtn:hover { color: var(--kk-gold); }
.kk-auth-card__textbtn:disabled { color: var(--kk-fg-muted); cursor: default; }

.kk-auth-card__primary {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: linear-gradient(180deg, var(--kk-gold) 0%, #a3853a 100%);
    color: #0e0e14;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: filter 0.15s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 0 24px -6px rgba(201, 168, 76, 0.55);
}
.kk-auth-card__primary:hover { filter: brightness(1.08); }
.kk-auth-card__primary:active { transform: scale(0.98); }
.kk-auth-card__primary:disabled { filter: grayscale(0.5); cursor: progress; }
.kk-auth-card__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: #0e0e14;
    animation: kkSpin 0.7s linear infinite;
}
.kk-auth-card__primary.is-busy .kk-auth-card__spinner { display: inline-block; }
.kk-auth-card__primary.is-busy .kk-auth-card__primary-text { opacity: 0.55; }
@keyframes kkSpin {
    to { transform: rotate(360deg); }
}

.kk-auth-card__step--done {
    text-align: center;
    align-items: center;
}
.kk-auth-card__tick {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.25) 0%, rgba(201, 168, 76, 0.08) 100%);
    border: 2px solid rgba(201, 168, 76, 0.6);
    color: var(--kk-gold-soft);
    display: grid;
    place-items: center;
    margin: 0.2rem auto 0.6rem;
}
.kk-auth-card__done-title {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--kk-fg);
    margin: 0;
}

/* Layout helpers for state switching */
[hidden] { display: none !important; }

/* ============================================================
   MOBILE — /kiakickoff/display rescaled for phone-sized portrait
   viewports. The display view is designed primarily for an LED
   wall (landscape, huge); when staff/curious viewers open it on
   their phone these rules keep spacing, type sizes and layout
   sensible instead of overflowing.
   ============================================================ */
@media (max-width: 768px) {
    /* Allow vertical scroll on mobile so nothing gets clipped */
    html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }

    .kk-display {
        padding: 2.5vh 4vw;
        min-height: 100vh;
    }
    .kk-display--qscreen { padding: 0; }
    .kk-display__qwrap { padding: 2.5vh 4vw; }

    /* Header on the question screen — tighter, smaller brand */
    .kk-display__header {
        gap: 0.85rem;
        margin-bottom: 1vh;
    }
    .kk-display__brand { gap: 0.75rem; }
    .kk-display__brand img {
        width: 52px;
        max-width: 52px;
    }
    .kk-display__brand-text small { font-size: 0.66rem; letter-spacing: 0.18em; }
    .kk-display__brand-text strong { font-size: 1.25rem; letter-spacing: 0.12em; }
    .kk-display__qno {
        font-size: 1.25rem;
        letter-spacing: 0.06em;
    }

    /* Question + options — single column on mobile */
    .kk-display__question {
        font-size: clamp(1.4rem, 5.6vw, 2rem);
        padding: 1vh 0 0.5vh;
        line-height: 1.25;
    }
    .kk-display__options {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin: 1vh 0 1.2vh;
    }
    .kk-disp-opt {
        padding: 0.95rem 0.85rem;
        gap: 0.85rem;
        border-radius: 12px;
    }
    .kk-disp-opt__letter {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.6rem;
        border-radius: 10px;
    }
    .kk-disp-opt__text {
        font-size: 1rem;
        line-height: 1.25;
    }
    .kk-disp-opt__pct { font-size: 1.4rem; }
    .kk-disp-opt__cnt { font-size: 0.7rem; letter-spacing: 0.1em; }

    /* Footer (timer + counter) */
    .kk-display__footer {
        gap: 1rem;
        padding-top: 1rem;
        flex-wrap: wrap;
    }
    .kk-display__timer { gap: 0.85rem; }
    .kk-display__timer-num {
        font-size: 2.6rem;
        min-width: 1.5em;
    }
    .kk-display__timer-bar { height: 10px; }
    .kk-display__counter-num { font-size: 1.5rem; }
    .kk-display__counter-label { font-size: 0.66rem; letter-spacing: 0.14em; }

    /* Center hero — gap + brand sized for portrait */
    .kk-display__center {
        gap: 1.4rem;
        padding: 1rem 0;
    }
    .kk-display__center .kk-display__brand img {
        width: 96px;
        max-width: 96px;
    }
    .kk-display__hero-line {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        line-height: 1.15;
    }
    .kk-display__hero-sub {
        font-size: 0.8rem;
        letter-spacing: 0.18em;
    }
    .kk-display__big-pulse {
        width: 18px;
        height: 18px;
    }
    .kk-display__big-pulse::after {
        inset: -10px;
        border-width: 2px;
    }

    /* Countdown block on the display — use the phone sizing */
    .kk-display .kk-cd {
        gap: 1rem;
        max-width: 100%;
    }
    .kk-display .kk-cd__pill {
        padding: 0.4rem 0.85rem;
        font-size: 0.72rem;
        letter-spacing: 0.2em;
    }
    .kk-display .kk-cd__pill-dot {
        width: 7px;
        height: 7px;
    }
    .kk-display .kk-cd__title {
        font-size: clamp(1.15rem, 5vw, 1.7rem);
        max-width: 22ch;
    }
    .kk-display .kk-cd__grid {
        gap: 0.4rem;
        margin-top: 0.25rem;
    }
    .kk-display .kk-cd__cell {
        min-width: 60px;
        padding: 0.75rem 0.55rem 0.5rem;
        border-radius: 12px;
        gap: 0.3rem;
    }
    .kk-display .kk-cd__num {
        font-size: clamp(1.8rem, 9vw, 3rem);
        line-height: 1;
    }
    .kk-display .kk-cd__lbl {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
    }
    .kk-display .kk-cd__sep {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        margin-top: -0.55rem;
    }
    .kk-display .kk-cd__foot-line {
        font-size: 0.82rem;
        letter-spacing: 0.18em;
    }
    .kk-display .kk-cd__live-line {
        font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    }

    /* End card on mobile */
    .kk-display__center .kk-display__hero-sub:last-child {
        margin-top: 0.25rem;
    }
}

/* Very narrow phones (iPhone SE etc.) — squeeze a bit more */
@media (max-width: 380px) {
    .kk-display { padding: 2vh 3.5vw; }
    .kk-display__qwrap { padding: 2vh 3.5vw; }
    .kk-display__brand img { width: 44px; max-width: 44px; }
    .kk-display__brand-text strong { font-size: 1.1rem; }
    .kk-display__qno { font-size: 1.1rem; }
    .kk-display__question { font-size: 1.25rem; }
    .kk-disp-opt__letter { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 1.4rem; }
    .kk-disp-opt__text { font-size: 0.95rem; }

    .kk-display .kk-cd__cell { min-width: 54px; padding: 0.65rem 0.45rem 0.4rem; }
    .kk-display .kk-cd__num { font-size: 1.7rem; }
    .kk-display .kk-cd__sep { font-size: 1.5rem; margin-top: -0.5rem; }
    .kk-display .kk-cd__title { font-size: 1.1rem; }
}

/* Landscape on a phone — keep height usable */
@media (max-height: 480px) and (orientation: landscape) {
    .kk-display { padding: 2vh 3vw; }
    .kk-display__qwrap { padding: 2vh 3vw; }
    .kk-display__center { gap: 0.8rem; padding: 0.5rem 0; }
    .kk-display__center .kk-display__brand img { width: 64px; max-width: 64px; }
    .kk-display__hero-line { font-size: clamp(1.4rem, 5vh, 2.4rem); }
    .kk-display .kk-cd { gap: 0.6rem; }
    .kk-display .kk-cd__cell { padding: 0.5rem 0.55rem 0.35rem; min-width: 60px; }
    .kk-display .kk-cd__num { font-size: clamp(1.6rem, 7vh, 2.4rem); }
    .kk-display .kk-cd__sep { font-size: clamp(1.4rem, 5vh, 2rem); margin-top: -0.4rem; }
}

/* =====================================================
   End-of-night screen — phone view actions
   ===================================================== */

.kk-end-score {
    margin-top: 1.1rem;
    padding: 0.85rem 1.1rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(214, 179, 76, 0.4);
    background: linear-gradient(180deg, rgba(214, 179, 76, 0.12) 0%, rgba(214, 179, 76, 0.04) 100%);
    text-align: center;
    color: #f5f2ec;
    min-width: 220px;
}
.kk-end-score[hidden] { display: none; }
.kk-end-score__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1;
}
.kk-end-score__big {
    font-family: var(--kk-font-display, "Rajdhani", sans-serif);
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.01em;
    color: #f4d977;
}
.kk-end-score__sep {
    font-family: var(--kk-font-display, "Rajdhani", sans-serif);
    font-weight: 600;
    font-size: 1.8rem;
    color: rgba(245, 242, 236, 0.45);
}
.kk-end-score__lbl {
    margin-top: 0.35rem;
    color: rgba(245, 242, 236, 0.65);
    font-family: var(--kk-font-mono, "IBM Plex Mono", monospace);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.kk-end-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(320px, 88vw);
    margin-top: 1.4rem;
}
.kk-end-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.85rem;
    padding: 0 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: var(--kk-font-display, "Rajdhani", sans-serif);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 120ms ease, transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.kk-end-btn--primary {
    background: linear-gradient(135deg, #f3cf6a 0%, #c89a3b 100%);
    border-color: rgba(214, 179, 76, 0.7);
    color: #1a1208;
    box-shadow: 0 16px 30px -14px rgba(214, 179, 76, 0.55);
}
.kk-end-btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); color: #1a1208; }
.kk-end-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(245, 242, 236, 0.16);
    color: rgba(245, 242, 236, 0.85);
}
.kk-end-btn--ghost:hover {
    background: rgba(214, 179, 76, 0.1);
    border-color: rgba(214, 179, 76, 0.45);
    color: #f5f2ec;
}

/* =====================================================
   End-of-night screen + Top 3 podium (LED wall)
   ===================================================== */

.kk-display--end {
    gap: clamp(1.2rem, 3vh, 2rem);
}
.kk-display__end-eyebrow {
    color: var(--kk-accent, #d6b34c);
    font-family: var(--kk-font-display, "Rajdhani", sans-serif);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vh, 2.4rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0.4rem;
}
.kk-display__end-line {
    margin-top: 0.4rem;
}
.kk-display__end-empty {
    color: rgba(245, 242, 236, 0.65);
    font-family: var(--kk-font-mono, "IBM Plex Mono", monospace);
    font-size: clamp(0.9rem, 1.8vh, 1.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

/* --- Podium --- */
.kk-podium {
    width: min(94vw, 1400px);
    margin: 0 auto;
}
.kk-podium[hidden] { display: none; }

.kk-podium__title {
    text-align: center;
    color: rgba(245, 242, 236, 0.7);
    font-family: var(--kk-font-mono, "IBM Plex Mono", monospace);
    font-size: clamp(0.78rem, 1.6vh, 1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: clamp(0.6rem, 1.4vh, 1rem);
}

.kk-podium__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: clamp(0.7rem, 1.6vw, 1.4rem);
    align-items: end;
}

.kk-podium__slot {
    position: relative;
    border-radius: 22px;
    padding: clamp(1rem, 2vh, 1.8rem) clamp(0.9rem, 1.8vw, 1.4rem);
    text-align: center;
    color: #f5f2ec;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(214, 179, 76, 0.18), transparent 60%),
        linear-gradient(180deg, #16131a 0%, #0a0709 100%);
    border: 1px solid rgba(214, 179, 76, 0.28);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
}

.kk-podium__slot--1 {
    transform: translateY(-1.5rem);
    border-color: rgba(214, 179, 76, 0.6);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(214, 179, 76, 0.32), transparent 60%),
        linear-gradient(180deg, #1f1810 0%, #0c0907 100%);
    box-shadow: 0 30px 70px -24px rgba(214, 179, 76, 0.4);
    min-height: 220px;
}
.kk-podium__slot--2 { border-color: rgba(195, 200, 210, 0.42); }
.kk-podium__slot--3 { border-color: rgba(176, 132, 88, 0.5); }

.kk-podium__crown {
    color: #f4c95c;
    margin-bottom: -0.25rem;
    filter: drop-shadow(0 4px 10px rgba(244, 201, 92, 0.5));
}

.kk-podium__medal {
    width: clamp(2.5rem, 5.5vh, 4rem);
    height: clamp(2.5rem, 5.5vh, 4rem);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--kk-font-display, "Rajdhani", sans-serif);
    font-weight: 700;
    font-size: clamp(1.2rem, 3vh, 1.9rem);
    color: #1a1208;
    box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.25), 0 6px 18px -6px rgba(0, 0, 0, 0.6);
}
.kk-podium__medal--gold { background: linear-gradient(135deg, #f7d978 0%, #c89a3b 100%); }
.kk-podium__medal--silver { background: linear-gradient(135deg, #e7e9ec 0%, #9aa3ad 100%); color: #1a1d22; }
.kk-podium__medal--bronze { background: linear-gradient(135deg, #e2a96e 0%, #8a542c 100%); }

.kk-podium__name {
    font-family: var(--kk-font-display, "Rajdhani", sans-serif);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.6vh, 1.7rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.kk-podium__meta {
    color: rgba(245, 242, 236, 0.7);
    font-family: var(--kk-font-mono, "IBM Plex Mono", monospace);
    font-size: clamp(0.78rem, 1.6vh, 1rem);
    letter-spacing: 0.04em;
}
.kk-podium__meta span[data-podium-correct] {
    color: #f4c95c;
    font-weight: 600;
}
.kk-podium__sep { opacity: 0.4; padding: 0 0.1rem; }
.kk-podium__dot { padding: 0 0.35rem; opacity: 0.4; }

@media (max-width: 768px) {
    .kk-podium__list {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .kk-podium__slot,
    .kk-podium__slot--1 { transform: none; min-height: 0; }
    .kk-podium__slot { flex-direction: row; text-align: left; padding: 0.85rem; gap: 0.85rem; }
    .kk-podium__name { -webkit-line-clamp: 1; }
    .kk-podium__crown { display: none; }
    .kk-podium__medal { flex: 0 0 auto; }
}
