@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+20BD;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0000-036F, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212;
}

:root {
    --bg: #07111f;
    --bg-deep: #040b15;
    --surface: #0d192b;
    --surface-2: #111f35;
    --surface-3: #172742;
    --line: rgba(164, 186, 220, .2);
    --line-strong: rgba(164, 186, 220, .34);
    --text: #f6f8fc;
    --text-soft: #c6d1e2;
    --muted: #8fa0b9;
    --accent: #ff754d;
    --accent-strong: #ff6337;
    --accent-soft: rgba(255, 117, 77, .14);
    --blue: #7ea2ff;
    --blue-soft: rgba(126, 162, 255, .14);
    --mint: #52d8b0;
    --mint-soft: rgba(82, 216, 176, .12);
    --danger: #ff6f78;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shell: min(1320px, calc(100% - 64px));
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--bg);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 4%, rgba(68, 104, 174, .12), transparent 32rem),
        var(--bg);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    min-width: 0;
}

button,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
b,
strong {
    overflow-wrap: anywhere;
}

input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text);
    background: rgba(6, 14, 26, .72);
    padding: 0 17px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder {
    color: #70829d;
    opacity: 1;
}

input:hover {
    border-color: rgba(176, 198, 232, .48);
}

input:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(126, 162, 255, .14);
    background: rgba(8, 17, 31, .94);
}

button,
summary,
.button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(126, 162, 255, .72);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.page-shell {
    width: var(--shell);
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #07111f;
    background: var(--text);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button:hover {
    transform: translateY(-2px);
}

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

.button-accent {
    color: #150c08;
    background: linear-gradient(135deg, #ff875f, var(--accent));
    box-shadow: 0 14px 34px rgba(255, 100, 55, .22);
}

.button-accent:hover {
    background: linear-gradient(135deg, #ff9978, #ff7046);
    box-shadow: 0 18px 44px rgba(255, 100, 55, .3);
}

.button-outline {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(10, 21, 37, .54);
}

.button-outline:hover,
.button-light:hover {
    border-color: rgba(197, 214, 240, .52);
    background: rgba(25, 42, 68, .78);
}

.button-light {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface-3);
}

.button-wide {
    width: 100%;
}

.eyebrow,
.signal-label,
.section-kicker,
.section-code {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a7b8d1;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
}

.eyebrow i,
.signal-label i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 6px rgba(82, 216, 176, .11);
}

/* Header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: 76px;
    border-bottom: 1px solid rgba(164, 186, 220, .16);
    background: rgba(5, 13, 24, .86);
    backdrop-filter: blur(20px);
}

.header-inner {
    width: var(--shell);
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
}

.brand-symbol svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-copy b {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 0 14px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.header-nav > a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .055);
}

.my-tickets-link {
    border: 1px solid var(--line);
}

.my-tickets-link b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #160d09;
    background: var(--accent);
    font-size: 11px;
}

.language-menu {
    position: relative;
    margin-left: 8px;
}

.language-menu > summary {
    min-width: 146px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--text);
    background: rgba(15, 29, 49, .84);
    font-size: 13px;
    font-weight: 700;
    list-style: none;
    user-select: none;
    transition: border-color .2s ease, background .2s ease;
}

.language-menu > summary::-webkit-details-marker {
    display: none;
}

.language-menu > summary:hover,
.language-menu[open] > summary {
    border-color: rgba(183, 203, 232, .5);
    background: var(--surface-2);
}

.language-flag {
    width: 24px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

.language-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.language-menu[open] .language-chevron {
    transform: rotate(180deg);
}

.language-popover {
    position: absolute;
    z-index: 120;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 6px;
    background: #0c1829;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

.language-popover a {
    min-height: 48px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    padding: 0 10px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
}

.language-popover a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .055);
}

.language-popover a b {
    color: var(--muted);
    font-size: 11px;
}

.language-popover a i {
    color: var(--mint);
    font-size: 14px;
    font-style: normal;
    opacity: 0;
}

.language-popover a.is-active {
    color: var(--text);
    background: var(--blue-soft);
}

.language-popover a.is-active i {
    opacity: 1;
}

.menu-toggle {
    width: 46px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: transparent;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Alerts */

.alert-wrap {
    position: fixed;
    z-index: 90;
    top: 92px;
    left: 50%;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%);
}

.alert {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 1px solid rgba(255, 111, 120, .45);
    border-radius: 16px;
    padding: 15px;
    color: #ffe5e7;
    background: rgba(54, 19, 28, .96);
    box-shadow: var(--shadow);
}

.alert > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #27070c;
    background: var(--danger);
    font-weight: 800;
}

.alert strong {
    font-size: 14px;
}

.alert p {
    margin-top: 2px;
    font-size: 14px;
}

/* Home hero */

.home-hero {
    position: relative;
    min-height: clamp(720px, calc(100vh - 76px), 920px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #07111f;
    isolation: isolate;
}

.hero-photo,
.hero-scrim {
    position: absolute;
    inset: 0;
}

.hero-photo .hero-car-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-scrim {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 10, 20, .98) 0%, rgba(3, 10, 20, .91) 31%, rgba(3, 10, 20, .42) 57%, rgba(3, 10, 20, .06) 78%),
        linear-gradient(0deg, rgba(3, 10, 20, .74) 0%, transparent 32%, rgba(3, 10, 20, .16) 100%);
}

.hero-car-frame-off {
    z-index: 0;
}

.hero-car-frame-on {
    position: absolute;
    z-index: 1;
    opacity: 0;
    animation: hero-light-sequence 18s .7s ease-in-out infinite;
    will-change: opacity;
}

.hero-hazard {
    position: absolute;
    z-index: 2;
    top: 57.2%;
    width: 4.7%;
    height: 2.5%;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(ellipse, rgba(255, 250, 211, 1) 0 18%, rgba(255, 174, 55, .96) 32%, rgba(255, 126, 24, .38) 58%, transparent 76%);
    filter: blur(.5px) drop-shadow(0 0 12px rgba(255, 142, 31, .95));
    mix-blend-mode: screen;
    pointer-events: none;
    animation: hero-hazard-cycle 18s .7s linear infinite;
    will-change: opacity;
}

.hero-hazard-left {
    left: 41.3%;
    transform: rotate(10deg);
}

.hero-hazard-right {
    left: 61.5%;
    transform: rotate(-7deg);
}

.hero-hazard-reflection {
    position: absolute;
    z-index: 2;
    top: 68%;
    left: 47%;
    width: 33%;
    height: 26%;
    opacity: 0;
    transform: rotate(-6deg);
    background: radial-gradient(ellipse, rgba(255, 139, 38, .28), rgba(255, 96, 19, .08) 38%, transparent 72%);
    filter: blur(13px);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: hero-hazard-cycle 18s .7s linear infinite;
    will-change: opacity;
}

@keyframes hero-light-sequence {
    0%, 6% { opacity: 0; }
    7% { opacity: 1; }
    8.3% { opacity: .16; }
    10%, 79% { opacity: 1; }
    80% { opacity: .18; }
    81.5%, 100% { opacity: 1; }
}

@keyframes hero-hazard-cycle {
    0%, 47%, 50%, 54%, 57%, 100% { opacity: 0; }
    48%, 49%, 55%, 56% { opacity: 1; }
}

.home-hero-inner {
    position: relative;
    z-index: 3;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding-top: 58px;
    padding-bottom: 92px;
}

.home-hero-copy {
    width: min(650px, 52%);
}

.home-hero h1 {
    max-width: 690px;
    margin-top: 20px;
    font-size: clamp(46px, 5.1vw, 78px);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.055em;
}

.home-hero h1 em,
.section-heading h2 em,
.bank-copy h2 em {
    color: var(--accent);
    font-style: normal;
}

.hero-lead {
    max-width: 610px;
    margin-top: 24px;
    color: var(--text-soft);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.62;
}

.hero-mobile-visual {
    display: none;
}

.launch-card {
    max-width: 640px;
    margin-top: 32px;
    border: 1px solid rgba(190, 208, 237, .24);
    border-radius: 22px;
    padding: 18px;
    background: rgba(8, 18, 32, .82);
    box-shadow: 0 26px 64px rgba(0, 0, 0, .32);
    backdrop-filter: blur(16px);
}

.launch-card > label {
    display: block;
    margin: 0 0 9px 2px;
    color: #aab9cf;
    font-size: 12px;
    font-weight: 700;
}

.launch-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
}

.launch-row .button {
    min-width: 244px;
}

.launch-card > p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.launch-card > p svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.hero-facts {
    max-width: 640px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
    overflow: hidden;
}

.hero-facts li {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 13px 14px;
    background: rgba(7, 17, 31, .82);
}

.hero-facts strong {
    font-size: 18px;
}

.hero-facts span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.resume-card {
    max-width: 640px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    border: 1px solid rgba(82, 216, 176, .3);
    border-radius: 16px;
    padding: 12px;
    background: rgba(16, 52, 53, .56);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.resume-card:hover {
    border-color: rgba(82, 216, 176, .56);
    background: rgba(19, 65, 65, .7);
    transform: translateY(-2px);
}

.resume-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #052119;
    background: var(--mint);
    font-weight: 800;
}

.resume-card > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.resume-card small {
    color: #9dbbb5;
    font-size: 11px;
}

.resume-card b {
    margin-top: 2px;
    font-size: 14px;
}

.resume-card > strong {
    color: #bfe9dc;
    font-size: 12px;
}

.hero-foot {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 24px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #aab7c9;
    font-size: 12px;
}

.hero-foot a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 11px;
    font-weight: 650;
}

.hero-foot a i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-style: normal;
}

.hero-foot strong {
    color: var(--text);
    font-size: 15px;
}

/* Home content */

.content-section {
    padding-top: 112px;
    padding-bottom: 112px;
}

.section-heading {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
    gap: 44px;
}

.section-kicker,
.section-code {
    padding-top: 10px;
    color: var(--blue);
}

.section-heading > div:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: end;
    gap: 44px;
}

.section-heading h2,
.bank-copy h2 {
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 760;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.section-heading p,
.bank-copy > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.68;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 54px;
}

.step-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background:
        linear-gradient(155deg, rgba(126, 162, 255, .055), transparent 48%),
        var(--surface);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.step-card:hover {
    border-color: var(--line-strong);
    background:
        linear-gradient(155deg, rgba(126, 162, 255, .09), transparent 52%),
        var(--surface-2);
    transform: translateY(-5px);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-top > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
}

.step-top svg {
    width: 62px;
    height: 62px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-card h3 {
    margin-top: auto;
    font-size: 26px;
    font-weight: 740;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.step-card p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.bank-section {
    border-block: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 50%, rgba(64, 102, 168, .18), transparent 38rem),
        var(--bg-deep);
}

.bank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(450px, .86fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
    padding-top: 112px;
    padding-bottom: 112px;
}

.bank-copy h2 {
    margin-top: 18px;
}

.bank-copy > p {
    max-width: 640px;
    margin-top: 24px;
}

.bank-stats {
    display: grid;
    margin-top: 34px;
    border-top: 1px solid var(--line);
}

.bank-stats article {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.bank-stats article > strong {
    color: var(--accent);
    font-size: 27px;
    font-weight: 760;
}

.bank-stats article div {
    display: flex;
    flex-direction: column;
}

.bank-stats article b {
    font-size: 15px;
}

.bank-stats article span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.quiz-blueprint {
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 26px;
    background:
        linear-gradient(145deg, rgba(126, 162, 255, .09), transparent 48%),
        rgba(13, 25, 43, .92);
    box-shadow: var(--shadow);
}

.quiz-blueprint > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.quiz-blueprint > header span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
}

.quiz-blueprint > header b {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 117, 77, .38);
    border-radius: 50%;
    color: var(--accent);
    font-size: 20px;
}

.blueprint-rows {
    display: grid;
    gap: 15px;
    padding: 24px 0;
}

.blueprint-row {
    display: grid;
    grid-template-columns: minmax(145px, .8fr) minmax(100px, 1fr) 24px;
    align-items: center;
    gap: 14px;
}

.blueprint-row > span {
    color: var(--text-soft);
    font-size: 13px;
}

.blueprint-row > i {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(126, 162, 255, .12);
}

.blueprint-row > i b {
    width: calc(var(--units) * 20%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--accent));
}

.blueprint-row > strong {
    font-size: 13px;
    text-align: right;
}

.quiz-blueprint > footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.quiz-blueprint > footer i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--mint);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-top: 54px;
}

.topic-card {
    min-height: 340px;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.topic-card:nth-child(4),
.topic-card:nth-child(5) {
    grid-column: span 3;
}

.topic-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    transform: translateY(-4px);
}

.topic-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topic-card-top span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
}

.topic-card-top b {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.topic-illustration,
.topic-pattern {
    height: 125px;
    margin: 22px -8px 20px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(6, 14, 26, .64);
}

.topic-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-pattern {
    position: relative;
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        rgba(6, 14, 26, .64);
    background-size: 30px 30px;
}

.topic-pattern i {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--accent));
}

.topic-pattern i:nth-child(1) {
    width: 48%;
    height: 8px;
    top: 30%;
    left: 12%;
}

.topic-pattern i:nth-child(2) {
    width: 66%;
    height: 8px;
    top: 50%;
    left: 22%;
    opacity: .68;
}

.topic-pattern i:nth-child(3) {
    width: 35%;
    height: 8px;
    top: 70%;
    left: 10%;
    opacity: .38;
}

.topic-pattern-2 i,
.topic-pattern-5 i {
    height: 38px;
    border: 1px solid rgba(126, 162, 255, .35);
    background: rgba(126, 162, 255, .09);
}

.topic-pattern-4 i {
    width: 46px !important;
    height: 46px !important;
    border: 7px solid rgba(255, 117, 77, .74);
    background: transparent;
}

.topic-card h3 {
    margin-top: auto;
    font-size: 24px;
    font-weight: 740;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.topic-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.closing-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 112px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 42px;
    background:
        radial-gradient(circle at 90% 0, rgba(255, 117, 77, .15), transparent 28rem),
        var(--surface-2);
}

.closing-section > div {
    max-width: 780px;
}

.closing-section > div > span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
}

.closing-section h2 {
    margin-top: 9px;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 740;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.closing-section .button {
    min-width: 230px;
}

/* Lobby */

.lobby-shell {
    padding-top: 72px;
    padding-bottom: 100px;
}

.lobby-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .7fr);
    gap: clamp(50px, 7vw, 100px);
    align-items: center;
    min-height: 530px;
}

.lobby-copy {
    max-width: 760px;
}

.duel-code-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.duel-code-line > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.duel-code-line button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    padding: 0 13px;
    color: var(--text);
    background: var(--surface-2);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .08em;
}

.duel-code-line button:hover {
    border-color: var(--blue);
}

.copy-mark {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.7;
}

.lobby-copy h1 {
    margin-top: 28px;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.lobby-copy h1 em {
    color: var(--accent);
    font-style: normal;
}

.lobby-copy > p {
    max-width: 670px;
    margin-top: 23px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.68;
}

.lobby-facts {
    max-width: 650px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--line);
}

.lobby-facts div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 15px;
    background: var(--surface);
}

.lobby-facts strong {
    font-size: 24px;
}

.lobby-facts span {
    color: var(--muted);
    font-size: 12px;
}

.join-console {
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(126, 162, 255, .08), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.join-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.join-head span,
.invite-copy > span,
.board-title > div > span,
.mine-heading .section-code,
.import-copy > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .07em;
}

.join-head i {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mint);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.join-head i::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--mint);
}

.join-console h2 {
    margin-top: 28px;
    font-size: 29px;
    font-weight: 730;
    line-height: 1.22;
    letter-spacing: -.03em;
}

.join-console form {
    margin-top: 26px;
}

.join-console label {
    display: block;
    margin: 0 0 8px 2px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
}

.join-console .button {
    margin-top: 12px;
}

.join-console > p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.join-console > p svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.7;
}

.invite-strip {
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 36px;
    margin-top: 42px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 25px 28px;
    background: var(--surface);
}

.invite-copy p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.share-box {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 54px;
    gap: 9px;
}

.share-icon,
.icon-button {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface-3);
}

.share-icon:hover,
.icon-button:hover {
    border-color: var(--blue);
    background: rgba(126, 162, 255, .13);
}

.share-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lobby-board {
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    background: var(--surface);
}

.board-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.board-title h2 {
    margin-top: 7px;
    font-size: 29px;
    font-weight: 730;
    line-height: 1.2;
}

.board-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    color: var(--muted);
    font-size: 12px;
}

.board-counters b {
    color: var(--text);
}

.leaderboard-empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 34px;
    text-align: left;
}

.empty-flag {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    transform: rotate(4deg);
}

.empty-flag i:nth-child(1),
.empty-flag i:nth-child(4) {
    background: var(--surface-3);
}

.empty-flag i:nth-child(2),
.empty-flag i:nth-child(3) {
    background: rgba(126, 162, 255, .2);
}

.leaderboard-empty h3 {
    font-size: 20px;
}

.leaderboard-empty p {
    max-width: 480px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.leaderboard-table {
    padding-top: 18px;
}

.leaderboard-labels,
.leaderboard-table li {
    display: grid;
    grid-template-columns: minmax(230px, 1.7fr) minmax(80px, .45fr) minmax(90px, .5fr) minmax(80px, .4fr);
    align-items: center;
    gap: 18px;
}

.leaderboard-labels {
    padding: 0 16px 10px;
    color: var(--muted);
    font-size: 11px;
}

.leaderboard-table ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leaderboard-table li {
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 12px 16px;
    background: rgba(8, 18, 32, .58);
}

.leaderboard-table li.is-leader {
    border-color: rgba(255, 117, 77, .4);
    background: var(--accent-soft);
}

.leaderboard-table .place {
    display: none;
}

.racer {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.racer b {
    font-size: 14px;
}

.racer small {
    color: var(--muted);
    font-size: 11px;
}

.leaderboard-table strong {
    font-size: 15px;
}

.leaderboard-table strong small {
    color: var(--muted);
    font-size: 11px;
}

.leaderboard-table .points {
    color: var(--accent);
}

/* Quiz workspace */

.quiz-page {
    overflow-x: hidden;
    background: #06101e;
}

.quiz-page > .site-header,
.quiz-page > .site-footer {
    display: none;
}

.quiz-workspace {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
}

.quiz-rail {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: 164px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--line);
    padding: 24px 16px 22px;
    background: rgba(5, 14, 27, .96);
}

.quiz-brand {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
}

.quiz-brand svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rail-progress {
    width: 100%;
    margin-top: 34px;
    text-align: center;
}

.rail-progress > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.rail-progress strong {
    display: block;
    margin-top: 4px;
    font-size: 30px;
    line-height: 1;
}

.rail-progress small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 12px;
}

.question-map {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 23px;
}

.question-map button {
    min-height: 35px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #8297b7;
    background: #0c192c;
    font-size: 10px;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.question-map button:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.question-map button.is-answered {
    color: var(--mint);
    border-color: rgba(82, 216, 176, .34);
    background: rgba(82, 216, 176, .08);
}

.question-map button.is-current {
    color: #160d09;
    border-color: var(--accent);
    background: var(--accent);
}

.rail-exit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

.rail-exit span {
    color: var(--text-soft);
    font-size: 18px;
}

.rail-exit:hover {
    color: var(--text);
}

.quiz-main {
    width: min(1240px, calc(100vw - 228px));
    min-height: 100vh;
    grid-column: 2;
    margin-inline: auto;
    padding: 0 0 116px;
}

.quiz-statusbar {
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto auto;
    align-items: center;
    gap: 30px;
}

.quiz-person {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.quiz-person span,
.active-clock span b {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.quiz-person b {
    font-size: 14px;
}

.save-indicator,
.active-clock,
.active-clock > span {
    display: flex;
    align-items: center;
}

.save-indicator {
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.save-indicator i,
.active-clock i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 6px rgba(82, 216, 176, .08);
}

.save-indicator.is-saving i {
    background: #f7bf5a;
}

.save-indicator.is-error i {
    background: var(--danger);
}

.active-clock {
    gap: 16px;
}

.active-clock > span {
    gap: 8px;
}

.active-clock strong {
    min-width: 82px;
    font-size: 25px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
}

.quiz-progress-line {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(126, 162, 255, .14);
}

.quiz-progress-line i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--accent));
    transition: width .25s ease;
}

.quiz-form {
    padding-top: 48px;
}

.question-panel {
    animation: panel-in .25s ease both;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
}

.question-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.question-counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.question-counter span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.question-counter strong {
    font-size: 28px;
    line-height: 1;
}

.question-counter small {
    color: var(--muted);
    font-size: 11px;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.question-meta > span:first-child {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    color: var(--text-soft);
    font-size: 11px;
}

.difficulty {
    display: flex;
    gap: 4px;
}

.difficulty i {
    width: 15px;
    height: 4px;
    border-radius: 99px;
    background: rgba(126, 162, 255, .2);
}

.difficulty i.on {
    background: var(--accent);
}

.question-panel > h1 {
    max-width: 1040px;
    margin-top: 27px;
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 730;
    line-height: 1.16;
    letter-spacing: -.045em;
}

.question-media {
    width: 100%;
    height: clamp(300px, 38vh, 440px);
    margin: 30px 0 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        #0a1629;
    background-size: 48px 48px;
}

.question-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.answer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.answer-option {
    position: relative;
    min-height: 76px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 16px;
    background: #0d1b2f;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.answer-option:hover {
    border-color: var(--line-strong);
    background: #11223b;
    transform: translateY(-1px);
}

.answer-option:has(input:focus-visible) {
    outline: 3px solid rgba(126, 162, 255, .65);
    outline-offset: 2px;
}

.answer-option:has(input:checked) {
    border-color: var(--blue);
    background: rgba(126, 162, 255, .13);
}

.answer-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-key {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #9eafc7;
    background: #172a48;
    font-size: 13px;
    font-weight: 750;
}

.answer-option:has(input:checked) .answer-key {
    color: #07111f;
    background: var(--blue);
}

.answer-text {
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.answer-mark {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #385071;
    border-radius: 50%;
}

.answer-mark i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0;
    transform: scale(.5);
    transition: opacity .18s ease, transform .18s ease;
}

.answer-option:has(input:checked) .answer-mark {
    border-color: var(--blue);
}

.answer-option:has(input:checked) .answer-mark i {
    opacity: 1;
    transform: scale(1);
}

.quiz-controls {
    position: fixed;
    z-index: 25;
    right: 0;
    bottom: 0;
    left: 164px;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 16px max(32px, calc((100vw - 164px - min(1240px, calc(100vw - 228px))) / 2));
    background: rgba(5, 14, 27, .93);
    backdrop-filter: blur(18px);
}

.control-button {
    min-width: 150px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    font-size: 14px;
}

.control-button:hover {
    border-color: var(--blue);
    background: var(--surface-2);
}

.control-button:disabled {
    opacity: .35;
    cursor: default;
}

.button-finish {
    min-width: 190px;
    color: #150c08;
    background: var(--accent);
}

.button-finish:disabled {
    color: #6f7d91;
    background: #17243a;
    cursor: not-allowed;
}

.mobile-question-count {
    display: none;
}

.quiz-submit-error {
    position: fixed;
    z-index: 35;
    right: 24px;
    bottom: 104px;
    max-width: 520px;
    border: 1px solid rgba(255, 111, 120, .45);
    border-radius: 14px;
    padding: 13px 16px;
    color: #ffe7e8;
    background: rgba(59, 19, 28, .98);
    box-shadow: var(--shadow);
    font-size: 13px;
}

/* Results */

.result-shell {
    padding-top: 64px;
    padding-bottom: 110px;
}

.result-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 40px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 50px 52px 0;
    background:
        radial-gradient(circle at 85% 18%, rgba(126, 162, 255, .17), transparent 23rem),
        var(--surface-2);
    box-shadow: var(--shadow);
}

.result-glow {
    position: absolute;
    inset: auto auto -180px -100px;
    width: 480px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 117, 77, .12);
    filter: blur(80px);
}

.result-copy {
    position: relative;
    z-index: 1;
    padding-bottom: 38px;
}

.result-copy h1 {
    margin-top: 20px;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.result-copy > p {
    max-width: 670px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.result-actions .button {
    min-height: 50px;
}

.result-gauge {
    position: relative;
    align-self: center;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

.result-gauge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.result-gauge circle {
    fill: none;
    stroke: rgba(126, 162, 255, .13);
    stroke-width: 12;
}

.result-gauge .gauge-value {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 660;
    stroke-dashoffset: calc(660 - (660 * var(--result)));
}

.result-gauge > div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.result-gauge strong {
    font-size: 60px;
    line-height: 1;
}

.result-gauge span {
    max-width: 110px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.result-metrics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.result-metrics > div {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    border-right: 1px solid var(--line);
}

.result-metrics > div:first-child {
    padding-left: 0;
}

.result-metrics > div:last-child {
    border-right: 0;
}

.result-metrics span {
    color: var(--muted);
    font-size: 11px;
}

.result-metrics b {
    margin-top: 5px;
    font-size: 24px;
}

.result-metrics small {
    color: var(--muted);
    font-size: 12px;
}

.result-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.performance-card,
.result-leaderboard {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    background: var(--surface);
}

.performance-card > header,
.result-leaderboard > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.performance-card header span,
.result-leaderboard header span,
.review-heading span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.performance-card header h2,
.result-leaderboard header h2,
.review-heading h2 {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 730;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.performance-card > header > b {
    color: var(--accent);
    font-size: 32px;
}

.result-leaderboard header i {
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--mint);
    background: var(--mint-soft);
    font-size: 10px;
    font-style: normal;
}

.category-list {
    display: grid;
    gap: 17px;
    padding-top: 22px;
}

.category-item > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-soft);
    font-size: 13px;
}

.category-item > i {
    height: 6px;
    display: block;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(126, 162, 255, .12);
}

.category-item > i b {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--accent));
}

.score-note {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.result-leaderboard ol {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.result-leaderboard li {
    min-height: 64px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(8, 18, 32, .58);
}

.result-leaderboard li.is-you {
    border-color: rgba(126, 162, 255, .5);
    background: var(--blue-soft);
}

.result-leaderboard .place {
    color: var(--muted);
    font-size: 11px;
}

.result-leaderboard .racer em {
    margin-left: 5px;
    border-radius: 5px;
    padding: 2px 5px;
    color: #07111f;
    background: var(--blue);
    font-size: 10px;
    font-style: normal;
}

.result-line {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.result-line b {
    font-size: 14px;
}

.result-line small {
    color: var(--muted);
    font-size: 10px;
}

.waiting-rival {
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.review-section {
    margin-top: 70px;
    scroll-margin-top: 96px;
}

.review-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
    align-items: end;
    gap: 50px;
}

.review-heading p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.review-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    background: var(--surface);
}

.review-toolbar button {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 13px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
}

.review-toolbar button:hover:not(:disabled) {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.review-toolbar button.is-active {
    color: var(--text);
    background: var(--surface-3);
}

.review-toolbar button:disabled {
    opacity: .4;
    cursor: default;
}

.review-toolbar button b {
    margin-left: 5px;
    color: var(--accent);
}

.review-toolbar > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 10px;
    color: var(--muted);
    font-size: 11px;
}

.review-toolbar > span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
}

.review-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.review-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.review-item[open] {
    border-color: var(--line-strong);
}

.review-item summary {
    min-height: 70px;
    display: grid;
    grid-template-columns: 42px 82px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    list-style: none;
}

.review-item summary::-webkit-details-marker {
    display: none;
}

.review-number {
    color: var(--muted);
    font-size: 12px;
}

.review-status {
    font-size: 12px;
    font-weight: 700;
}

.is-correct .review-status {
    color: var(--mint);
}

.is-wrong .review-status {
    color: var(--danger);
}

.review-prompt {
    font-size: 14px;
    font-weight: 650;
}

.review-toggle {
    position: relative;
    width: 22px;
    height: 22px;
}

.review-toggle i {
    position: absolute;
    top: 10px;
    left: 5px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--muted);
}

.review-toggle i:nth-child(2) {
    transform: rotate(90deg);
    transition: transform .2s ease;
}

.review-item[open] .review-toggle i:nth-child(2) {
    transform: rotate(0);
}

.review-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 18px;
    background: rgba(6, 14, 26, .5);
}

.review-body > p,
.explanation {
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 14px;
    background: rgba(13, 25, 43, .72);
}

.review-body > p {
    display: flex;
    flex-direction: column;
}

.review-body span {
    color: var(--muted);
    font-size: 10px;
}

.review-body b {
    margin-top: 5px;
    font-size: 14px;
}

.your-answer b {
    color: #ffacb1;
}

.correct-answer b {
    color: #8be7ca;
}

.explanation {
    grid-column: 1 / -1;
}

.explanation p {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.result-fallback-card {
    display: block;
    padding-bottom: 50px;
}

.fallback-score {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.fallback-score strong {
    color: var(--accent);
    font-size: 40px;
}

.fallback-score strong small {
    color: var(--muted);
    font-size: 17px;
}

.fallback-score span {
    color: var(--text-soft);
}

/* Saved quizzes */

.mine-shell {
    min-height: 70vh;
    padding-top: 72px;
    padding-bottom: 110px;
}

.mine-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.mine-heading > div {
    max-width: 790px;
}

.mine-heading h1 {
    margin-top: 12px;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.mine-heading p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.ticket-import {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(340px, 1.2fr);
    align-items: center;
    gap: 40px;
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 25px 28px;
    background: var(--surface);
}

.import-copy {
    display: flex;
    flex-direction: column;
}

.import-copy b {
    margin-top: 5px;
    font-size: 17px;
}

.import-copy p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.import-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.import-message {
    min-height: 24px;
    margin-top: 10px;
    padding-left: 4px;
    color: var(--muted);
    font-size: 12px;
}

.import-message.is-error {
    color: var(--danger);
}

.import-message.is-success {
    color: var(--mint);
}

.ticket-loading {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
}

.ticket-loading i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    animation: loading-dot 1s ease-in-out infinite;
}

.ticket-loading i:nth-child(2) {
    animation-delay: .12s;
}

.ticket-loading i:nth-child(3) {
    animation-delay: .24s;
}

.ticket-loading p {
    margin-left: 9px;
    font-size: 13px;
}

@keyframes loading-dot {
    50% { opacity: .25; transform: translateY(-4px); }
}

.ticket-empty {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-orbit {
    position: relative;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.empty-orbit::after {
    position: absolute;
    inset: 13px;
    content: "";
    border: 1px dashed rgba(126, 162, 255, .4);
    border-radius: 50%;
}

.empty-orbit i {
    position: absolute;
    top: 11px;
    right: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.empty-orbit span {
    font-size: 34px;
    font-weight: 750;
}

.ticket-empty h2 {
    margin-top: 24px;
    font-size: 28px;
}

.ticket-empty p {
    max-width: 540px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
}

.ticket-empty .button {
    margin-top: 23px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.saved-ticket {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
    background: var(--surface);
}

.saved-ticket:hover {
    border-color: var(--line-strong);
}

.saved-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.saved-ticket-code {
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
}

.saved-ticket-state {
    border-radius: 8px;
    padding: 5px 8px;
    color: var(--mint);
    background: var(--mint-soft);
    font-size: 10px;
    font-weight: 700;
}

.state-in_progress .saved-ticket-state {
    color: #ffd08a;
    background: rgba(255, 182, 77, .1);
}

.saved-ticket > h2 {
    margin-top: 21px;
    font-size: 24px;
    font-weight: 720;
    line-height: 1.25;
}

.saved-ticket-date {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.saved-ticket-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 23px;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    background: var(--line);
}

.saved-ticket-stats div {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(7, 17, 31, .7);
}

.saved-ticket-stats strong {
    font-size: 20px;
}

.saved-ticket-stats span {
    color: var(--muted);
    font-size: 10px;
}

.saved-ticket-leader {
    min-height: 68px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.saved-ticket-leader > span {
    color: var(--muted);
    font-size: 10px;
}

.saved-ticket-leader > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.saved-ticket-leader b,
.saved-ticket-leader strong {
    font-size: 13px;
}

.saved-ticket-leader p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.saved-ticket-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
}

.copy-button {
    position: relative;
}

.copy-button::before,
.copy-button::after {
    position: absolute;
    width: 14px;
    height: 14px;
    content: "";
    border: 1.5px solid currentColor;
    border-radius: 3px;
}

.copy-button::before {
    transform: translate(-2px, -2px);
}

.copy-button::after {
    transform: translate(3px, 3px);
    opacity: .55;
}

.remove-ticket {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 5px 0;
    color: var(--muted);
    background: none;
    font-size: 11px;
}

.remove-ticket:hover {
    color: var(--danger);
}

.saved-ticket.unavailable .button {
    margin-top: 20px;
    align-self: flex-start;
}

/* Error pages */

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 20%, rgba(126, 162, 255, .14), transparent 30rem),
        var(--bg);
}

.error-card {
    width: min(620px, 100%);
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    padding: clamp(30px, 6vw, 54px);
    text-align: center;
    background: var(--surface-2);
    box-shadow: var(--shadow);
}

.error-card .signal-label {
    justify-content: center;
}

.error-card h1 {
    margin-top: 22px;
    font-size: clamp(38px, 7vw, 62px);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.error-card > p {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.65;
}

.error-card > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.footer-inner {
    width: var(--shell);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-inline: auto;
}

.footer-signature {
    min-width: 0;
}

.footer-brand {
    font-size: 16px;
    font-weight: 800;
}

.footer-signature p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text);
}

/* Motion */

.has-js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.has-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Medium desktop / tablet */

@media (max-width: 1180px) {
    :root {
        --shell: min(100% - 44px, 1120px);
    }

    .header-nav > a {
        padding-inline: 10px;
        font-size: 13px;
    }

    .language-menu > summary {
        min-width: 128px;
    }

    .home-hero-copy {
        width: 58%;
    }

    .hero-scrim {
        background:
            linear-gradient(90deg, rgba(3, 10, 20, .98) 0%, rgba(3, 10, 20, .9) 40%, rgba(3, 10, 20, .34) 72%, rgba(3, 10, 20, .08) 100%),
            linear-gradient(0deg, rgba(3, 10, 20, .72), transparent 35%);
    }

    .launch-row {
        grid-template-columns: 1fr;
    }

    .launch-row .button {
        min-width: 0;
    }

    .section-heading {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 28px;
    }

    .section-heading > div:last-child {
        gap: 28px;
    }

    .bank-layout {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr);
        gap: 48px;
    }

    .lobby-hero {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 46px;
    }

    .quiz-main {
        width: calc(100vw - 208px);
    }

    .quiz-controls {
        padding-inline: 22px;
    }
}

@media (max-width: 940px) {
    :root {
        --shell: min(100% - 36px, 880px);
    }

    .site-header {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: absolute;
        z-index: 110;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
        border-bottom: 1px solid var(--line-strong);
        padding: 14px 18px 18px;
        background: rgba(5, 14, 27, .98);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
    }

    .header-nav.is-open {
        display: flex;
    }

    .header-nav > a {
        min-height: 48px;
        justify-content: space-between;
        padding-inline: 14px;
        font-size: 14px;
    }

    .language-menu {
        margin: 5px 0 0;
    }

    .language-menu > summary {
        width: 100%;
        min-height: 48px;
    }

    .language-popover {
        position: static;
        width: 100%;
        margin-top: 7px;
        box-shadow: none;
    }

    .home-hero {
        min-height: 820px;
    }

    .home-hero-inner {
        align-items: flex-start;
        padding-top: 74px;
    }

    .home-hero-copy {
        width: 66%;
    }

    .home-hero h1 {
        font-size: clamp(43px, 7.5vw, 64px);
    }

    .hero-photo img {
        object-position: 58% center;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-kicker {
        padding-top: 0;
    }

    .section-heading > div:last-child {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: 250px;
    }

    .bank-layout {
        grid-template-columns: 1fr;
    }

    .quiz-blueprint {
        width: min(620px, 100%);
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-card,
    .topic-card:nth-child(4),
    .topic-card:nth-child(5) {
        grid-column: auto;
    }

    .topic-card:nth-child(5) {
        grid-column: 1 / -1;
    }

    .closing-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .lobby-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lobby-copy {
        max-width: 720px;
    }

    .join-console {
        width: min(620px, 100%);
    }

    .invite-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quiz-workspace {
        display: block;
    }

    .quiz-rail {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 10px 18px;
    }

    .quiz-brand {
        width: 44px;
        height: 44px;
    }

    .rail-progress,
    .rail-exit {
        display: none;
    }

    .question-map {
        display: flex;
        gap: 6px;
        margin: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .question-map::-webkit-scrollbar {
        display: none;
    }

    .question-map button {
        min-width: 38px;
        min-height: 36px;
        flex: 0 0 auto;
    }

    .quiz-main {
        width: min(100% - 36px, 860px);
        min-height: auto;
        margin-inline: auto;
        padding-bottom: 104px;
    }

    .quiz-statusbar {
        min-height: 70px;
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .quiz-controls {
        left: 0;
        min-height: 82px;
        padding: 12px 18px;
    }

    .result-hero {
        grid-template-columns: minmax(0, 1fr) 200px;
    }

    .result-gauge {
        width: 190px;
        height: 190px;
    }

    .result-layout {
        grid-template-columns: 1fr;
    }

    .ticket-grid {
        grid-template-columns: 1fr;
    }
}

/* Phones */

@media (max-width: 680px) {
    :root {
        --shell: calc(100% - 28px);
        --radius: 17px;
        --radius-lg: 22px;
    }

    body {
        font-size: 15px;
    }

    .brand-copy small {
        display: none;
    }

    .site-header {
        height: 66px;
    }

    .header-nav {
        top: 66px;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;
    }

    .button {
        min-height: 52px;
        padding-inline: 17px;
    }

    .home-hero {
        min-height: auto;
        padding-bottom: 0;
    }

    .hero-photo,
    .hero-scrim {
        display: none;
    }

    .home-hero-inner {
        min-height: auto;
        display: block;
        padding-top: 54px;
        padding-bottom: 88px;
    }

    .home-hero-copy {
        width: 100%;
    }

    .home-hero h1 {
        margin-top: 16px;
        font-size: clamp(39px, 12.8vw, 55px);
        line-height: 1.02;
    }

    .hero-lead {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.58;
    }

    .hero-mobile-visual {
        position: relative;
        height: 220px;
        display: block;
        overflow: hidden;
        margin-top: 23px;
        border: 1px solid var(--line-strong);
        border-radius: 18px;
        background: #07111f;
    }

    .hero-mobile-visual::after {
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient(0deg, rgba(3, 10, 20, .38), transparent 48%);
        pointer-events: none;
    }

    .hero-mobile-visual .hero-car-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 67% center;
    }

    .launch-card {
        margin-top: 24px;
        border-radius: 18px;
        padding: 14px;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .hero-facts li {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding: 10px 12px;
    }

    .hero-facts strong {
        min-width: 58px;
        font-size: 16px;
    }

    .resume-card {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .resume-card > strong {
        display: none;
    }

    .hero-foot {
        bottom: 12px;
        flex-direction: row;
        gap: 12px;
        font-size: 10px;
    }

    .hero-foot p {
        max-width: 150px;
        text-align: right;
    }

    .hero-foot strong {
        font-size: 12px;
    }

    .content-section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .section-heading h2,
    .bank-copy h2 {
        font-size: clamp(32px, 10vw, 45px);
    }

    .section-heading p,
    .bank-copy > p {
        font-size: 15px;
    }

    .step-grid {
        margin-top: 32px;
    }

    .step-card {
        min-height: 235px;
        padding: 22px;
    }

    .step-top svg {
        width: 54px;
        height: 54px;
    }

    .step-card h3 {
        font-size: 23px;
    }

    .bank-layout {
        gap: 42px;
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .bank-stats article {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .quiz-blueprint {
        border-radius: 18px;
        padding: 18px;
    }

    .blueprint-row {
        grid-template-columns: minmax(116px, 1fr) minmax(56px, .8fr) 20px;
        gap: 9px;
    }

    .blueprint-row > span {
        font-size: 11px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .topic-card:nth-child(5) {
        grid-column: auto;
    }

    .topic-card {
        min-height: 310px;
        padding: 21px;
    }

    .closing-section {
        gap: 24px;
        margin-bottom: 76px;
        border-radius: 20px;
        padding: 26px;
    }

    .closing-section .button {
        width: 100%;
        min-width: 0;
    }

    .lobby-shell {
        padding-top: 52px;
        padding-bottom: 76px;
    }

    .lobby-hero {
        min-height: 0;
    }

    .lobby-copy h1 {
        margin-top: 22px;
        font-size: 42px;
    }

    .lobby-copy > p {
        font-size: 16px;
    }

    .lobby-facts {
        grid-template-columns: 1fr;
    }

    .lobby-facts div {
        padding: 11px 13px;
    }

    .join-console {
        border-radius: 19px;
        padding: 20px;
    }

    .join-console h2 {
        font-size: 25px;
    }

    .invite-strip {
        padding: 20px;
    }

    .share-box {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .share-box input {
        grid-column: 1 / -1;
    }

    .share-box .button {
        min-width: 0;
    }

    .lobby-board {
        padding: 20px;
    }

    .board-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-counters {
        justify-content: flex-start;
    }

    .leaderboard-empty {
        align-items: center;
        flex-direction: column;
        padding: 36px 8px;
        text-align: center;
    }

    .leaderboard-labels {
        display: none;
    }

    .leaderboard-table li {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        padding-inline: 12px;
    }

    .quiz-rail {
        padding-inline: 10px;
    }

    .quiz-brand {
        width: 40px;
        height: 40px;
    }

    .question-map button {
        min-width: 36px;
        min-height: 34px;
    }

    .quiz-main {
        width: calc(100% - 28px);
        padding-bottom: 92px;
    }

    .quiz-statusbar {
        min-height: 67px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
    }

    .save-indicator {
        display: none;
    }

    .active-clock {
        gap: 10px;
    }

    .active-clock > span b {
        display: none;
    }

    .active-clock strong {
        min-width: 68px;
        font-size: 21px;
    }

    .quiz-form {
        padding-top: 28px;
    }

    .question-heading {
        align-items: flex-start;
    }

    .question-meta {
        align-items: flex-end;
        flex-direction: column;
        gap: 9px;
    }

    .question-meta > span:first-child {
        min-height: 32px;
        max-width: 168px;
        padding-inline: 10px;
        font-size: 10px;
        text-align: right;
    }

    .question-panel > h1 {
        margin-top: 21px;
        font-size: clamp(29px, 8.7vw, 38px);
        line-height: 1.17;
    }

    .question-media {
        height: 235px;
        margin-top: 22px;
        border-radius: 17px;
        background-size: 36px 36px;
    }

    .answer-list {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .answer-option {
        min-height: 68px;
        grid-template-columns: 39px minmax(0, 1fr) 22px;
        padding: 9px 13px;
    }

    .answer-key {
        width: 39px;
        height: 39px;
    }

    .answer-text {
        font-size: 14px;
    }

    .quiz-controls {
        min-height: 76px;
        gap: 8px;
        padding: 10px 14px;
    }

    .control-button {
        min-width: 0;
        min-height: 50px;
        padding: 0 14px;
    }

    .control-button b {
        display: none;
    }

    .mobile-question-count {
        display: flex;
        align-items: baseline;
        gap: 2px;
        color: var(--muted);
        font-size: 11px;
    }

    .mobile-question-count b {
        color: var(--text);
        font-size: 17px;
    }

    .button-finish {
        min-width: 0;
        max-width: 190px;
        flex: 1;
    }

    .quiz-submit-error {
        right: 14px;
        bottom: 88px;
        left: 14px;
    }

    .result-shell {
        padding-top: 40px;
        padding-bottom: 76px;
    }

    .result-hero {
        display: flex;
        flex-direction: column;
        gap: 20px;
        border-radius: 22px;
        padding: 28px 22px 0;
    }

    .result-copy {
        padding-bottom: 0;
    }

    .result-copy h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .result-copy > p {
        font-size: 15px;
    }

    .result-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .result-gauge {
        width: 180px;
        height: 180px;
        align-self: center;
    }

    .result-gauge strong {
        font-size: 50px;
    }

    .result-metrics {
        width: calc(100% + 44px);
        grid-template-columns: 1fr;
        margin-left: -22px;
    }

    .result-metrics > div,
    .result-metrics > div:first-child {
        min-height: 70px;
        padding: 12px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .result-metrics > div:last-child {
        border-bottom: 0;
    }

    .performance-card,
    .result-leaderboard {
        border-radius: 18px;
        padding: 20px;
    }

    .performance-card header h2,
    .result-leaderboard header h2,
    .review-heading h2 {
        font-size: 24px;
    }

    .review-section {
        margin-top: 54px;
    }

    .review-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .review-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .review-toolbar button {
        width: 100%;
        text-align: left;
    }

    .review-toolbar > span {
        margin: 4px 0;
    }

    .review-item summary {
        min-height: 74px;
        grid-template-columns: 34px minmax(0, 1fr) 22px;
        gap: 9px;
        padding: 12px;
    }

    .review-status {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        font-size: 10px;
    }

    .review-prompt {
        grid-column: 2;
        grid-row: 2;
        font-size: 13px;
    }

    .review-number {
        grid-row: 1 / 3;
    }

    .review-toggle {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .review-body {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .explanation {
        grid-column: auto;
    }

    .mine-shell {
        padding-top: 52px;
        padding-bottom: 76px;
    }

    .mine-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .mine-heading h1 {
        font-size: 46px;
    }

    .mine-heading .button {
        width: 100%;
    }

    .ticket-import {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .import-controls {
        grid-template-columns: 1fr;
    }

    .saved-ticket {
        border-radius: 18px;
        padding: 20px;
    }

    .saved-ticket-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .saved-ticket-stats div {
        padding: 10px;
    }

    .saved-ticket-stats span {
        font-size: 10px;
    }

    .footer-inner {
        min-height: 170px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 390px) {
    .home-hero h1 {
        font-size: 39px;
    }

    .lobby-copy h1 {
        font-size: 37px;
    }

    .question-panel > h1 {
        font-size: 29px;
    }

    .answer-option {
        grid-template-columns: 36px minmax(0, 1fr) 20px;
        gap: 10px;
    }

    .answer-key {
        width: 36px;
        height: 36px;
    }

    .result-copy h1 {
        font-size: 40px;
    }

    .saved-ticket-actions {
        grid-template-columns: minmax(0, 1fr) 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .has-js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
