:root {
    --paper: #f4f4f5;
    --ink: #18181b;
    --muted: #71717a;
    --line: #e4e4e7;
    --card: #ffffff;
    --red: #e11d48;
    --red-dark: #be123c;
    --shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 16px 40px rgba(24, 24, 27, .06);
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: Outfit, "Segoe UI", sans-serif;
    --mono: ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 55% 40% at 100% -20%, rgba(225, 29, 72, .08), transparent 60%),
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
}

main { flex: 1; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -.03em;
    line-height: 1.08;
}

p { margin: 0; }

a { color: inherit; }

::selection { background: #fecdd3; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    background: #fff;
    color: var(--ink);
    padding: .5rem .8rem;
    border-radius: .5rem;
}

.skip:focus { top: .7rem; }

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228, 228, 231, .9);
}

.top-inner {
    display: flex;
    align-items: center;
    gap: .75rem 1.15rem;
    min-height: 4.4rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.03em;
    font-size: 1.15rem;
}

.mark {
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.mark i {
    display: block;
    border-radius: 2px;
    background: var(--ink);
}

.mark i:first-child { background: var(--red); }

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-btn {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .4rem .8rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.primary {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-right: auto;
}

.primary a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    padding: .4rem .7rem;
    border-radius: 999px;
}

.primary a:hover { color: var(--ink); background: #f4f4f5; }

.primary a[aria-current="page"] {
    color: var(--ink);
    background: #f4f4f5;
    box-shadow: none;
}

.mobile-cta { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .72rem 1.15rem;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3f3f46; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fafafa; }
.desktop-cta.btn-primary { background: var(--red); }
.desktop-cta.btn-primary:hover { background: var(--red-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 4.2rem 0 1.2rem;
}
.hero .stage {
    border-radius: 1.75rem;
    padding: 1.35rem;
    box-shadow: 0 30px 70px rgba(24, 24, 27, .16);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .7rem;
    font-size: .8rem;
    letter-spacing: .02em;
    font-weight: 600;
    color: var(--red);
}

.dot {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--red);
}

h1 { font-size: clamp(2.7rem, 5.4vw, 4.5rem); margin: 0 0 1rem; }

.lead {
    color: var(--muted);
    font-size: 1.16rem;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
}

.stage {
    margin: 0;
    background: #1c1917;
    color: #f6f1e8;
    border-radius: 1.5rem;
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.stage-top, .play-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #c8bfb2;
}

.q-text {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.15;
    margin: .85rem 0 1rem;
}

.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.choice {
    position: relative;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    min-height: 4.4rem;
    margin: 0;
    padding: .85rem .9rem;
    border-radius: .9rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.choice .letter {
    font-size: .78rem;
    letter-spacing: .04em;
    opacity: .8;
    padding-top: .15rem;
}

.choice.a { background: #d63a2f; }
.choice.b { background: #2c6bed; }
.choice.c { background: #e0a100; color: #1c1917; }
.choice.c .letter { opacity: .7; }
.choice.d { background: #1f8a5b; }

.choice input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.choice:has(input:checked) {
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px rgba(0, 0, 0, .28);
}

.section { margin-top: 3.4rem; }

.section h2, .page-head h1 { margin-top: 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.section-head h2 { margin-bottom: 1rem; }
.section-head a { font-weight: 600; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    counter-reset: step;
}

.steps li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.2rem 1.2rem 1.35rem;
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: .85rem;
    border-radius: 999px;
    background: #fff1f2;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--red);
}

.steps strong, .steps span { display: block; }
.steps span { color: var(--muted); margin-top: .3rem; }

.cards, .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quiz-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem 1.25rem;
    text-decoration: none;
    color: inherit;
}

.quiz-card a { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.quiz-card a:hover { transform: translateY(-3px); border-color: #d4d4d8; box-shadow: var(--shadow); }

.quiz-card h3 {
    margin: .75rem 0 .4rem;
    font-size: 1.55rem;
}

.quiz-card p { color: var(--muted); }
.quiz-card .count { margin-top: auto; padding-top: 1rem; font-size: .95rem; }

.meta {
    display: flex;
    gap: .7rem;
    align-items: center;
    font-size: .78rem;
    letter-spacing: .01em;
    font-weight: 600;
    color: var(--muted);
}

.pill { color: var(--red); }

.features { margin-top: .4rem; }

.feature {
    display: flex;
    flex-direction: column;
    min-height: 13rem;
    text-decoration: none;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    padding: 1.3rem 1.3rem 1.35rem;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(24, 24, 27, .08); }

.feature strong {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 560;
    letter-spacing: -.03em;
}

.feature span { color: var(--muted); margin-top: .45rem; }
.feature em {
    margin-top: auto;
    padding-top: 1.4rem;
    font-style: normal;
    font-weight: 600;
    color: var(--red);
}

.page-head { padding: 2.4rem 0 1.4rem; }
.page-head h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .7rem;
}
.chips + .chips { margin-bottom: 1.1rem; }

.chips a {
    text-decoration: none;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: .4rem .85rem;
    font-weight: 600;
    color: var(--muted);
}

.chips a { background: #fff; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chips a:hover { border-color: #d4d4d8; color: var(--ink); }
.chips a[aria-current="true"] {
    background: var(--ink);
    color: #fafafa;
    border-color: var(--ink);
}

.join {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.panel, .q-list, .q-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    padding: 1.3rem 1.3rem 1.45rem;
}

.panel h2, .q-list h2 {
    font-family: var(--sans);
    font-size: 1rem;
    letter-spacing: 0;
    font-weight: 700;
    margin: 0 0 .4rem;
}

.hint, .status { color: var(--muted); }
.field-error { color: var(--red); font-weight: 600; }

.code-form, .editor-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-top: 1rem;
}

.code {
    width: 100%;
    font-family: var(--mono);
    font-size: 2rem;
    letter-spacing: .32em;
    text-align: center;
    text-transform: uppercase;
    padding: .85rem .4rem .85rem .9rem;
    border-radius: .9rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.room-code {
    font-family: var(--mono);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: .28em;
    margin: .8rem 0 .2rem;
}

.seats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin: .9rem 0 .3rem;
}

.seat {
    border: 1px dashed #d4d4d8;
    border-radius: .75rem;
    padding: .7rem .8rem;
    color: var(--muted);
    font-size: .95rem;
}

.qr-frame {
    position: relative;
    aspect-ratio: 1;
    max-width: 220px;
    margin: 1.1rem auto;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem 1.2rem;
    color: var(--muted);
}

.qr-corner {
    position: absolute;
    width: 1.35rem;
    height: 1.35rem;
    border: 3px solid var(--ink);
}

.qr-corner.tl { top: .2rem; left: .2rem; border-right: 0; border-bottom: 0; }
.qr-corner.tr { top: .2rem; right: .2rem; border-left: 0; border-bottom: 0; }
.qr-corner.bl { bottom: .2rem; left: .2rem; border-right: 0; border-top: 0; }
.qr-corner.br { bottom: .2rem; right: .2rem; border-left: 0; border-top: 0; }

.editor {
    display: grid;
    grid-template-columns: 17rem 1fr;
    gap: 1rem;
    align-items: start;
}

.q-list ol { list-style: none; margin: .8rem 0; padding: 0; }

.q-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: .8rem;
    padding: .7rem .75rem;
}

.q-item strong, .q-item small { display: block; }
.q-item small {
    color: var(--muted);
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.q-item.is-active {
    background: #fff1ee;
    box-shadow: inset 3px 0 0 var(--red);
}

.add-row { color: var(--muted); font-size: .92rem; }

.field { display: block; font-weight: 700; margin-bottom: .4rem; }

textarea, .q-form input[type="text"] {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .8rem;
    padding: .75rem .85rem;
}

textarea { min-height: 7.5rem; resize: vertical; }

fieldset {
    border: 0;
    margin: 1.1rem 0 0;
    padding: 0;
}

legend { font-weight: 700; margin-bottom: .35rem; }

.answer-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: .65rem;
    align-items: center;
    margin-top: .55rem;
}

.pick {
    display: grid;
    place-items: center;
}

.letter-badge { font-weight: 700; width: 1.2rem; }

.editor-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.play { padding-top: 1.6rem; max-width: 920px; }
.play .q-text {
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    margin: 1.3rem 0 1.2rem;
}
.play .choice { min-height: 6.4rem; font-size: 1.15rem; padding: 1.1rem 1.15rem; }
.play .status { margin-top: 1rem; }

.timer {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#d63a2f 0 72%, #3a342e 0 100%);
    flex: none;
}

.timer span {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1c1917;
    color: #f6f1e8;
    letter-spacing: 0;
    font-size: .95rem;
}

.empty {
    border: 1px dashed #d4d4d8;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
}

.foot {
    margin-top: 3.5rem;
    border-top: 1px solid var(--line);
    padding: 1.6rem 0 2rem;
}

.foot-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.foot p { color: var(--muted); margin-top: .55rem; max-width: 18rem; }

.foot nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.foot nav a { text-decoration: none; font-weight: 600; }
.legal { margin-top: 0 !important; }

.page-jatek {
    background: #161311;
    color: #f6f1e8;
}

.page-jatek .top {
    background: rgba(22, 19, 17, .92);
    border-bottom-color: #342e2a;
}

.page-jatek .brand,
.page-jatek .primary a[aria-current="page"] { color: #f6f1e8; }

.page-jatek .primary a { color: #cbbfb2; }

.page-jatek .primary a[aria-current="page"] {
    background: #2a2421;
    box-shadow: none;
}

.page-jatek .nav-btn {
    background: #2a2421;
    color: #f6f1e8;
    border-color: #342e2a;
}

.page-jatek .play-bar { color: #cbbfb2; }
.page-jatek fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.page-jatek legend { color: #cbbfb2; font-weight: 700; margin-bottom: .45rem; }
.page-jatek .seg label { border-color: rgba(255, 255, 255, .22); }
.page-jatek .seg label:has(input:checked) { background: #f6f1e8; color: #1c1917; border-color: #f6f1e8; }
.team-pick { margin: 0 0 1rem; }
.page-jatek .pill { color: #f0a29b; }
.page-jatek .status { color: #cbbfb2; }
.page-jatek .btn-ghost { color: #f6f1e8; border-color: #5c534c; }
.page-jatek .empty { border-color: #3a342e; color: #cbbfb2; }

.page-jatek .foot {
    border-top-color: #342e2a;
    color: #cbbfb2;
}

.page-jatek .foot a,
.page-jatek .foot .brand { color: #f6f1e8; }
.page-jatek .foot p,
.page-jatek .legal { color: #cbbfb2; }

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.choice:has(input:focus-visible) { outline: 3px solid #1c1917; outline-offset: 3px; }
.page-jatek .choice:has(input:focus-visible) { outline-color: #f6f1e8; }

@media (max-width: 900px) {
    .hero, .steps, .cards, .features, .join, .editor, .foot-inner {
        grid-template-columns: 1fr;
    }

    .hero > *,
    .stage,
    .join > *,
    .editor > * {
        min-width: 0;
        max-width: 100%;
    }

    .nav-btn, .desktop-cta { display: none; }
    .primary {
        display: flex;
        flex-basis: 100%;
        flex-wrap: wrap;
        margin: 0 0 .35rem;
    }
    .mobile-cta { display: inline-flex; }
    .editor-actions { flex-direction: column; align-items: stretch; }
    .play .choice { min-height: 4.6rem; }
    h1, .q-text, .lead { overflow-wrap: break-word; }
}

@media (max-width: 560px) {
    .choices, .seats { grid-template-columns: 1fr; }
    h1 { font-size: 2.15rem; }
    .code { font-size: 1.45rem; letter-spacing: .16em; padding-left: .4rem; }
    .room-code { font-size: 1.7rem; letter-spacing: .14em; }
}

.features { grid-template-columns: 1fr 1fr; }
.pill.is-ad { color: #9a6b00; }

.auth-grid, .desk {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1rem;
    align-items: start;
}
.desk { grid-template-columns: 20rem 1fr; }
.stack, .wrap-form { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; }
.wrap-form { width: min(32rem, 100%); max-width: 100%; margin-bottom: 2rem; }
.stack input, .wrap-form input {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .8rem;
    padding: .75rem .85rem;
    box-shadow: 0 1px 2px rgba(24, 24, 27, .04);
}
.stack input:focus, .wrap-form input:focus, .q-form input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 4px rgba(24, 24, 27, .08);
}
.auth-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.phase-nav { display: flex; flex-direction: column; gap: .45rem; margin: 1rem 0; }
.phase-nav a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: .8rem;
    padding: .7rem .85rem;
    font-weight: 700;
}
.phase-nav a[aria-current="true"] { background: var(--ink); color: #f6f1e8; border-color: var(--ink); }
.roster { list-style: none; margin: 0 0 1rem; padding: 0; }
.roster li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
}
.roster em { font-style: normal; color: var(--muted); }
.roster .is-done em { color: #1f8a5b; }
.roster .is-out em { color: #d63a2f; }
.roster-live { margin: .8rem 0 0; padding: 0; }
.stage .roster li { border-bottom-color: rgba(255, 255, 255, .14); }
.stage .roster em { color: #cbbfb2; }
.stage .roster .is-out em { color: #f0a29b; }
.stage .roster .is-done em { color: #8ddeaf; }
.desk-preview .stage { margin-top: .8rem; }

.stage-kicker {
    margin: 0;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    color: #cbbfb2;
}
.bolt {
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    gap: 1.2rem 1.5rem;
    align-items: start;
}
.bolt-row {
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr) auto;
    grid-template-areas: "letter name count" "letter bar bar";
    gap: .2rem .6rem;
    align-items: center;
    margin-top: .7rem;
}
.bolt-row .letter { grid-area: letter; font-weight: 700; }
.bolt-name { grid-area: name; }
.bolt-n { grid-area: count; font-variant-numeric: tabular-nums; }
.bolt-row:not(:has(.letter)) {
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    grid-template-areas: "name bar count";
}
.bolt-row:not(:has(.letter)) .bolt-name { font-weight: 700; }
.bolt-track {
    grid-area: bar;
    height: .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
.bolt-track span {
    display: block;
    height: 100%;
    width: var(--pct);
    border-radius: inherit;
    background: currentColor;
    animation: bolt-grow .7s ease-out;
}
.bolt-row.a { color: #f08a82; }
.bolt-row.b { color: #8aafff; }
.bolt-row.c { color: #f0c14a; }
.bolt-row.d { color: #8ddeaf; }
.bolt-row.is-correct .bolt-name { font-weight: 700; }
.podium { list-style: none; margin: .2rem 0 0; padding: 0; }
.podium li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: .55rem;
    align-items: baseline;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    animation: bolt-pop .45s both;
}
.podium li:nth-child(2) { animation-delay: .08s; }
.podium li:nth-child(3) { animation-delay: .16s; }
.podium li:nth-child(4) { animation-delay: .24s; }
.podium em { font-family: var(--serif); font-style: normal; font-size: 1.45rem; color: #f0a29b; }
.podium span { color: #cbbfb2; }

.page-vetites { background: #100e0c; color: #f6f1e8; }
.page-vetites .mark i { background: #f6f1e8; }
.page-vetites .mark i:first-child { background: #d63a2f; }
.room {
    min-height: 100vh;
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
}
.room-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    color: #cbbfb2;
}
.room-top p { display: flex; align-items: center; gap: .55rem; }
.room-live { background: transparent; box-shadow: none; padding: 0; }
.room-live .q-text { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.room-live .choice { min-height: 6.6rem; font-size: 1.3rem; }
.room-live .bolt-row { font-size: 1.35rem; margin-top: 1rem; }
.room-live .bolt-track { height: 1rem; }
.room-live .podium { font-size: 1.35rem; }
.room-live .podium em { font-size: 2rem; }
.room-live .roster { font-size: 1.55rem; margin-top: 1rem; }
.room-live .roster li { padding: .75rem 0; }

@keyframes bolt-grow { from { width: 0; } }
@keyframes bolt-pop { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
    .bolt-track span, .podium li { animation: none; }
}

.code-small { font-size: 1.35rem; letter-spacing: .18em; }
.type-note { margin: .8rem 0; padding-left: .8rem; border-left: 3px solid var(--red); }
.pick-list { display: flex; flex-direction: column; gap: .45rem; }
.pick-quiz {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .7rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: .8rem;
    padding: .7rem .8rem;
}
.pick-quiz small { display: block; color: var(--muted); }
.pick-quiz:has(input:checked) { border-color: var(--ink); background: #fafafa; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .4rem .75rem;
    cursor: pointer;
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: #f6f1e8; border-color: var(--ink); }
.panel fieldset { border: 0; margin: .9rem 0 0; padding: 0; }
.panel legend { font-weight: 700; margin-bottom: .4rem; }

.q-photo { margin: .2rem 0 1rem; }
.q-photo img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--line);
}
.pairs, .order { display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.pair, .order li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: .9rem;
    padding: .75rem .85rem;
}
.order li { grid-template-columns: auto minmax(0, 1fr) auto; }
.pair select, .order button, .upload {
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .7rem;
    padding: .55rem .75rem;
}
.order button { cursor: pointer; }
.upload { display: inline-flex; position: relative; margin-top: .3rem; cursor: pointer; font-weight: 600; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.page-jatek .pair select, .page-jatek .order button { background: #fafafa; }
.q-form .order li { grid-template-columns: auto minmax(0, 1fr); }
.pair-board { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pair-board ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.pair-board li {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: .9rem;
    padding: .75rem .85rem;
}

@media (max-width: 900px) {
    .features, .auth-grid, .desk, .bolt { grid-template-columns: 1fr; }
}
