:root {
    color-scheme: light;
    --bg: #eef6f4;
    --bg-deep: #dfeeea;
    --panel: #ffffff;
    --panel-soft: #f7fbfa;
    --text: #10231f;
    --text-soft: #304b44;
    --muted: #667c76;
    --brand-950: #052f2c;
    --brand-900: #073f3a;
    --brand-800: #09534d;
    --brand-700: #0a6860;
    --brand-600: #0d7f75;
    --brand-500: #13968a;
    --brand-100: #dff5f1;
    --brand-50: #effaf8;
    --gold: #f4b942;
    --gold-soft: #fff4d6;
    --terracotta: #d87555;
    --danger: #c53b32;
    --danger-soft: #fff0ee;
    --success: #16815d;
    --success-soft: #e7f7f0;
    --warning: #dc8b18;
    --warning-soft: #fff7e7;
    --border: #d6e3df;
    --border-strong: #b9d0ca;
    --shadow-sm: 0 8px 24px rgba(5, 47, 44, 0.08);
    --shadow-md: 0 20px 55px rgba(5, 47, 44, 0.12);
    --shadow-lg: 0 34px 90px rgba(5, 47, 44, 0.18);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 5%, rgba(19, 150, 138, .13), transparent 32rem),
        radial-gradient(circle at 88% 18%, rgba(244, 185, 66, .12), transparent 28rem),
        linear-gradient(180deg, #eef7f5 0%, #f8fbfa 62%, #eef5f3 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

a {
    color: var(--brand-800);
    text-decoration-thickness: .1em;
    text-underline-offset: .16em;
}

button {
    border: 0;
}

svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(3px);
    opacity: .48;
    pointer-events: none;
}

.ambient-one {
    top: -210px;
    left: -170px;
    background: radial-gradient(circle, rgba(19, 150, 138, .22), rgba(19, 150, 138, 0) 68%);
}

.ambient-two {
    right: -210px;
    bottom: -230px;
    background: radial-gradient(circle, rgba(216, 117, 85, .16), rgba(216, 117, 85, 0) 70%);
}

/* ---------- Shared brand and buttons ---------- */

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-950);
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand-700), var(--brand-900));
    box-shadow: 0 10px 25px rgba(7, 63, 58, .2);
    color: white;
}

.brand-symbol svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.3;
}

.brand-mark > span:last-child {
    display: grid;
    gap: 2px;
}

.brand-mark strong {
    font-size: .92rem;
    font-weight: 950;
    letter-spacing: -.035em;
}

.brand-mark strong span {
    color: var(--brand-600);
}

.brand-mark small {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.brand-mark-compact .brand-symbol {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.brand-mark-compact .brand-symbol svg {
    width: 19px;
    height: 19px;
}

.button {
    position: relative;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, border-color .2s ease;
}

.button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    stroke-width: 2.25;
}

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

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

.button:focus-visible,
input:focus-visible,
.answer-grid button:focus-visible,
.leave-link:focus-visible,
.header-back:focus-visible {
    outline: 3px solid rgba(19, 150, 138, .28);
    outline-offset: 3px;
}

.button-primary {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    box-shadow: 0 13px 30px rgba(10, 104, 96, .23);
    color: #fff;
}

.button-primary::before {
    position: absolute;
    top: -20%;
    left: -38%;
    width: 28%;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    content: "";
    transform: skewX(-22deg);
    transition: left .65s var(--ease);
}

.button-primary:hover::before {
    left: 118%;
}

.button-primary:hover {
    box-shadow: 0 18px 38px rgba(10, 104, 96, .3);
}

.button-primary:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.button-secondary {
    border-color: var(--border);
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 20px rgba(5, 47, 44, .06);
    color: var(--brand-900);
    backdrop-filter: blur(12px);
}

.button-secondary:hover {
    border-color: var(--border-strong);
    background: #fff;
    box-shadow: 0 12px 26px rgba(5, 47, 44, .1);
}

.button-end-icon {
    margin-left: auto;
}

.eyebrow {
    margin: 0;
    color: var(--brand-700);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #efd59b;
    border-radius: 14px;
    padding: 13px 14px;
    background: var(--warning-soft);
    color: #7b5312;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
}

.notice svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.notice-error {
    border-color: #efbbb5;
    background: var(--danger-soft);
    color: #8b2823;
}

/* ---------- Landing ---------- */

.landing-shell {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 26px 0 24px;
}

.site-brand,
.game-site-header {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.live-pill {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(13, 127, 117, .18);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow-sm);
    color: var(--brand-800);
    font-size: .76rem;
    font-weight: 850;
    backdrop-filter: blur(14px);
}

.live-pill > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1db977;
    box-shadow: 0 0 0 5px rgba(29, 185, 119, .12);
    animation: livePulse 2.2s ease-in-out infinite;
}

.landing-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    overflow: hidden;
    border: 1px solid rgba(185, 208, 202, .72);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
}

.landing-card::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,0) 28%);
    content: "";
    pointer-events: none;
}

.landing-content {
    position: relative;
    z-index: 2;
    padding: clamp(34px, 5vw, 62px);
}

.challenge-kicker {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(216, 117, 85, .25);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(216, 117, 85, .1);
    color: #9b4b32;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.challenge-kicker svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke-width: 1.7;
}

.landing-title {
    max-width: 620px;
    margin: 21px 0 14px;
    font-size: clamp(2.6rem, 5.4vw, 5.15rem);
    font-weight: 950;
    letter-spacing: -.065em;
    line-height: .96;
}

.landing-title span {
    color: var(--brand-600);
}

.landing-lead {
    max-width: 585px;
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.55;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 18px;
}

.game-stats article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 11px 12px;
    background: rgba(247, 251, 250, .86);
}

.stat-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-100);
    color: var(--brand-700);
}

.stat-icon-gold {
    background: var(--gold-soft);
    color: #9a6810;
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.game-stats article > div {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.game-stats strong {
    overflow: hidden;
    font-size: .95rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-stats small {
    overflow: hidden;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-topic {
    display: flex;
    gap: 14px;
    border: 1px solid rgba(13, 127, 117, .16);
    border-radius: 18px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(223, 245, 241, .78), rgba(255,255,255,.86)),
        #fff;
}

.topic-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-800);
    box-shadow: 0 10px 22px rgba(7, 63, 58, .2);
    color: #fff;
}

.topic-icon svg {
    width: 22px;
    height: 22px;
}

.weekly-topic span {
    color: var(--brand-700);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.weekly-topic h2 {
    margin: 3px 0 4px;
    font-size: 1.12rem;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.weekly-topic p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
}

.start-form {
    display: grid;
    gap: 10px;
    margin: 22px 0 12px;
}

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

.form-heading > div {
    display: grid;
    gap: 3px;
}

.form-heading label {
    font-size: .96rem;
    font-weight: 900;
}

.form-heading small,
#alias-count {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.3;
}

#alias-count {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap > svg:first-child {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 0 48px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(5, 47, 44, .04);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input::placeholder {
    color: #96a8a3;
    font-weight: 500;
}

.input-wrap input:focus {
    border-color: var(--brand-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(19, 150, 138, .11);
    outline: none;
}

.input-check {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    opacity: 0;
    color: var(--success);
    transform: scale(.75);
    transition: opacity .2s ease, transform .2s var(--ease);
}

.input-wrap.is-valid .input-check {
    opacity: 1;
    transform: scale(1);
}

.input-wrap.has-error input {
    border-color: #db7b72;
    background: #fffafa;
}

.field-help,
.field-error {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.field-help svg,
.field-error svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.field-error {
    color: var(--danger);
    font-weight: 750;
}

.button-play {
    width: 100%;
    min-height: 58px;
    margin-top: 3px;
    border-radius: 15px;
    font-size: 1rem;
}

.start-form + .button-secondary,
.notice + .button-secondary {
    width: 100%;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 700;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.trust-row svg {
    width: 14px;
    height: 14px;
    color: var(--brand-600);
}

.challenge-deadline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
    text-align: center;
}

.challenge-deadline svg {
    width: 15px;
    height: 15px;
    color: var(--terracotta);
}

#challenge-countdown {
    color: var(--brand-700);
    font-weight: 850;
}

.landing-visual {
    position: relative;
    display: grid;
    min-height: 100%;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(circle at 48% 36%, rgba(244, 185, 66, .26), transparent 22%),
        linear-gradient(145deg, var(--brand-900), #09645b 68%, #0d7f75);
}

.landing-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.visual-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    filter: blur(1px);
}

.trophy-stage {
    position: relative;
    width: min(80%, 390px);
    aspect-ratio: 1 / 1.03;
}

.trophy-card {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 238px;
    min-height: 290px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 32px;
    padding: 28px 22px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 30px 70px rgba(2, 28, 26, .3);
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-2deg);
    backdrop-filter: blur(18px);
}

.crown-chip {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(244, 185, 66, .42);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(244, 185, 66, .14);
    color: #ffe29a;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.crown-chip svg {
    width: 15px;
    height: 15px;
}

.trophy-icon {
    display: grid;
    width: 104px;
    height: 104px;
    margin: 25px 0 20px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(244,185,66,.32), rgba(255,255,255,.09));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 40px rgba(2,28,26,.2);
    color: #ffd86f;
}

.trophy-icon svg {
    width: 58px;
    height: 58px;
    stroke-width: 1.65;
}

.trophy-card strong {
    font-size: 1.22rem;
    letter-spacing: -.025em;
}

.trophy-card small {
    max-width: 180px;
    margin-top: 8px;
    color: rgba(255,255,255,.72);
    font-size: .76rem;
    line-height: 1.4;
}

.orbit {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 325px;
    height: 325px;
    animation: orbitSpin 16s linear infinite;
}

.orbit-two {
    width: 395px;
    height: 395px;
    animation: orbitSpin 23s linear infinite reverse;
}

.orbit span {
    position: absolute;
    top: 12%;
    left: 11%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(244,185,66,.9);
}

.orbit-two span {
    top: auto;
    right: 9%;
    bottom: 18%;
    left: auto;
    width: 7px;
    height: 7px;
    background: #8ee5db;
    box-shadow: 0 0 18px rgba(142,229,219,.85);
}

.floating-score {
    position: absolute;
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(5,47,44,.55);
    box-shadow: 0 12px 28px rgba(2,28,26,.2);
    color: #fff;
    font-size: .75rem;
    font-weight: 850;
    backdrop-filter: blur(13px);
    animation: floatCard 4.2s ease-in-out infinite;
}

.floating-score svg {
    width: 16px;
    height: 16px;
}

.score-one { top: 15%; left: -4%; color: #ffe39d; }
.score-two { right: -8%; bottom: 25%; animation-delay: -.9s; }
.score-three { bottom: 7%; left: 4%; animation-delay: -1.8s; }

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 4px 0;
    color: #7a8e88;
    font-size: .7rem;
}

.landing-footer span:first-child {
    color: var(--brand-800);
    font-weight: 900;
    letter-spacing: .04em;
}

/* ---------- Game ---------- */

.game-shell,
.ranking-shell {
    width: min(100% - 32px, 900px);
    margin: 0 auto;
    padding: 24px 0 30px;
}

.player-chip,
.header-back {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 22px rgba(5,47,44,.06);
    color: var(--text-soft);
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(14px);
}

.player-chip svg,
.header-back svg {
    width: 16px;
    height: 16px;
    color: var(--brand-600);
}

.game-card {
    overflow: hidden;
    border: 1px solid rgba(185,208,202,.82);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.game-status {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    padding: 16px clamp(22px, 4vw, 36px);
    background: linear-gradient(180deg, #fbfdfd, #f4f9f7);
}

.status-item {
    display: grid;
    gap: 2px;
}

.status-score {
    text-align: right;
}

.status-label {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.status-item strong {
    color: var(--brand-900);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.game-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce9e5;
}

.game-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 0 12px rgba(19,150,138,.34);
    transition: width .55s var(--ease);
}

.game-main {
    padding: clamp(24px, 4.6vw, 44px);
}

.game-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.category {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin: 8px 0 0;
    border: 1px solid rgba(13,127,117,.16);
    border-radius: 999px;
    padding: 0 11px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .71rem;
    font-weight: 800;
}

.timer {
    display: inline-flex;
    min-width: 78px;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: var(--brand-700);
}

.timer-ring {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
}

.timer-ring svg {
    position: absolute;
    inset: 0;
    width: 42px;
    height: 42px;
    transform: rotate(-90deg);
}

.timer-ring circle {
    fill: none;
    stroke-width: 4;
}

.timer-ring-bg {
    stroke: #e0ece8;
}

.timer-ring-value {
    stroke: var(--brand-500);
    stroke-linecap: round;
    stroke-dasharray: 125.664;
    stroke-dashoffset: 0;
    transition: stroke .25s ease, stroke-dashoffset .12s linear;
}

.timer-ring > svg + svg,
.timer-ring > i + svg {
    position: relative;
}

.timer-ring > [data-lucide] {
    position: relative;
    width: 17px;
    height: 17px;
    color: var(--brand-700);
    stroke-width: 2.3;
}

.timer span {
    min-width: 30px;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.timer.is-warning {
    color: var(--warning);
}

.timer.is-warning .timer-ring-value {
    stroke: var(--warning);
}

.timer.is-danger {
    color: var(--danger);
    animation: timerDanger .72s ease-in-out infinite alternate;
}

.timer.is-danger .timer-ring-value {
    stroke: var(--danger);
}

.timer-linear {
    height: 4px;
    overflow: hidden;
    margin: 18px 0 24px;
    border-radius: 999px;
    background: #e4eeeb;
}

.timer-bar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    transform-origin: left center;
    transition: width 100ms linear, background .25s ease;
}

.timer.is-warning + .timer-linear .timer-bar,
.game-main:has(.timer.is-warning) .timer-linear .timer-bar {
    background: var(--warning);
}

.timer.is-danger + .timer-linear .timer-bar,
.game-main:has(.timer.is-danger) .timer-linear .timer-bar {
    background: var(--danger);
}

.question-text {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--text);
    font-size: clamp(1.4rem, 3vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.answer-grid button {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(5,47,44,.045);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s var(--ease), transform .2s var(--ease), background .2s ease;
}

.answer-grid button:hover:not(:disabled) {
    border-color: rgba(13,127,117,.5);
    background: var(--brand-50);
    box-shadow: 0 12px 25px rgba(5,47,44,.09);
    transform: translateY(-2px);
}

.answer-grid button:active:not(:disabled) {
    transform: scale(.988);
}

.answer-grid button:disabled {
    cursor: default;
}

.answer-letter {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--brand-800);
    font-size: .83rem;
    font-weight: 950;
    transition: inherit;
}

.answer-copy {
    flex: 1;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.35;
}

.answer-result-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
}

.answer-result-icon svg {
    width: 17px;
    height: 17px;
}

.answer-grid button.correct {
    border-color: rgba(22,129,93,.5);
    background: var(--success-soft);
    box-shadow: 0 10px 24px rgba(22,129,93,.1);
}

.answer-grid button.correct .answer-letter {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.answer-grid button.correct .answer-result-icon {
    background: rgba(22,129,93,.14);
    color: var(--success);
}

.answer-grid button.incorrect {
    border-color: rgba(197,59,50,.48);
    background: var(--danger-soft);
}

.answer-grid button.incorrect .answer-letter {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.answer-grid button.incorrect .answer-result-icon {
    background: rgba(197,59,50,.13);
    color: var(--danger);
}

.answer-grid button.dimmed {
    opacity: .55;
}

.feedback {
    min-height: 0;
    margin-top: 18px;
}

.feedback-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    background: var(--panel-soft);
}

.feedback-card.is-correct {
    border-color: rgba(22,129,93,.22);
    background: var(--success-soft);
}

.feedback-card.is-incorrect {
    border-color: rgba(197,59,50,.2);
    background: var(--danger-soft);
}

.feedback-card.is-timeout {
    border-color: rgba(220,139,24,.25);
    background: var(--warning-soft);
}

.feedback-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(5,47,44,.06);
}

.feedback-card.is-correct .feedback-icon { color: var(--success); }
.feedback-card.is-incorrect .feedback-icon { color: var(--danger); }
.feedback-card.is-timeout .feedback-icon { color: var(--warning); }

.feedback-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.35;
}

.feedback-copy {
    min-width: 0;
}

.feedback-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.feedback-title strong {
    font-size: .92rem;
}

.points-chip {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    background: rgba(255,255,255,.72);
    color: var(--brand-800);
    font-size: .66rem;
    font-weight: 900;
}

.feedback-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: .82rem;
    line-height: 1.5;
}

.actions {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.leave-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
}

.leave-link:hover {
    color: var(--danger);
}

.leave-link svg {
    width: 17px;
    height: 17px;
}

.next-button {
    min-width: 170px;
}

.game-tip,
.ranking-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.4;
    text-align: center;
}

.game-tip svg,
.ranking-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--brand-600);
}

/* Result rendered inside game */

.game-card.is-result .game-status,
.game-card.is-result .game-heading-row,
.game-card.is-result .timer-linear,
.game-card.is-result .game-tip,
.game-card.is-result .category {
    display: none;
}

.game-card.is-result .game-main {
    padding: clamp(28px, 5vw, 52px);
}

.game-card.is-result .question-text,
.game-card.is-result .answer-grid,
.game-card.is-result > .game-status + .game-main > .actions {
    display: none;
}

.result-view {
    display: grid;
    text-align: center;
}

.result-medal {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid rgba(244,185,66,.42);
    border-radius: 30px;
    background: linear-gradient(145deg, #fff8e5, #ffe6a6);
    box-shadow: 0 18px 38px rgba(188,126,17,.18);
    color: #a87314;
}

.result-medal svg {
    width: 50px;
    height: 50px;
    stroke-width: 1.7;
}

.result-position-chip {
    position: absolute;
    right: -11px;
    bottom: -8px;
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--brand-700);
    color: #fff;
    font-size: .72rem;
    font-weight: 950;
}

.result-kicker {
    margin: 0 0 6px;
    color: var(--brand-700);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.result-view h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    letter-spacing: -.055em;
    line-height: 1;
}

.result-summary {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}

.result-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 4px;
    color: var(--brand-900);
}

.result-score strong {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: -.065em;
    line-height: 1;
}

.result-score span {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 850;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.result-metric {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 10px;
    background: var(--panel-soft);
}

.result-metric svg {
    width: 20px;
    height: 20px;
    margin: 0 auto 3px;
    color: var(--brand-600);
}

.result-metric strong {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.result-metric small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 750;
}

.result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.result-actions .button:first-child {
    grid-column: 1 / -1;
}

.share-status {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--brand-700);
    font-size: .72rem;
    font-weight: 750;
}

/* ---------- Ranking ---------- */

.ranking-shell {
    max-width: 880px;
}

.ranking-header {
    margin-bottom: 18px;
}

.ranking-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 5px 4px;
}

.ranking-hero-icon {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(244,185,66,.36);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff7df, #ffe6a4);
    box-shadow: 0 14px 30px rgba(174,114,12,.14);
    color: #9d6c13;
}

.ranking-hero-icon svg {
    width: 35px;
    height: 35px;
}

.ranking-hero h1 {
    margin: 5px 0 4px;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.ranking-hero p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.ranking-card {
    border: 1px solid rgba(185,208,202,.82);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 34px);
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.ranking-loader {
    display: grid;
    min-height: 280px;
    grid-template-columns: repeat(3, 9px);
    align-content: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    text-align: center;
}

.ranking-loader span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-500);
    animation: loaderBounce .8s ease-in-out infinite alternate;
}

.ranking-loader span:nth-child(2) { animation-delay: .15s; }
.ranking-loader span:nth-child(3) { animation-delay: .3s; }
.ranking-loader p {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    font-size: .78rem;
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    margin: 8px 0 28px;
}

.podium-card {
    position: relative;
    display: grid;
    min-height: 170px;
    align-content: center;
    justify-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 12px;
    background: var(--panel-soft);
    text-align: center;
}

.podium-count-1 {
    grid-template-columns: minmax(0, 260px);
    justify-content: center;
}

.podium-count-1 .podium-card.is-first {
    order: 1;
}

.podium-count-2 {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
}

.podium-card.is-first {
    min-height: 205px;
    border-color: rgba(244,185,66,.46);
    background: linear-gradient(180deg, #fff9e9, #fff4d2);
    box-shadow: 0 17px 34px rgba(174,114,12,.13);
    order: 2;
}

.podium-card.is-second { order: 1; }
.podium-card.is-third { order: 3; }

.podium-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #dce6e3;
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 950;
}

.is-first .podium-rank {
    background: var(--gold);
    color: #654004;
}

.is-third .podium-rank {
    background: #dca983;
    color: #6a3517;
}

.podium-avatar {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 16px;
    background: #e3efec;
    color: var(--brand-800);
    font-size: 1rem;
    font-weight: 950;
    text-transform: uppercase;
}

.is-first .podium-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(174,114,12,.13);
    color: #9b6810;
}

.podium-crown {
    position: absolute;
    top: -22px;
    color: var(--gold);
    filter: drop-shadow(0 6px 8px rgba(174,114,12,.18));
}

.podium-crown svg {
    width: 34px;
    height: 34px;
    fill: rgba(244,185,66,.18);
}

.podium-card strong {
    max-width: 100%;
    overflow: hidden;
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-score {
    color: var(--brand-700);
    font-size: .78rem;
    font-weight: 900;
}

.podium-detail {
    color: var(--muted);
    font-size: .65rem;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fbfa;
    transition: border-color .2s ease, transform .2s var(--ease), background .2s ease;
}

.ranking-row:hover {
    border-color: var(--border);
    background: #fff;
    transform: translateX(3px);
}

.ranking-position {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #e6efec;
    color: var(--text-soft);
    font-size: .75rem;
    font-weight: 950;
}

.ranking-player {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.ranking-player strong {
    overflow: hidden;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-player small {
    color: var(--muted);
    font-size: .65rem;
}

.ranking-score {
    color: var(--brand-800);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.ranking-empty {
    display: grid;
    min-height: 285px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.ranking-empty-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 22px;
    background: var(--brand-100);
    color: var(--brand-700);
}

.ranking-empty-icon svg {
    width: 32px;
    height: 32px;
}

.ranking-empty h2 {
    margin: 16px 0 5px;
    font-size: 1.3rem;
}

.ranking-empty p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.ranking-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ---------- Simple/fallback pages ---------- */

.simple-shell {
    display: grid;
    width: min(100% - 32px, 620px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    align-items: center;
    padding: 30px 0;
}

.empty-state-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 6vw, 52px);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 23px;
    background: var(--brand-100);
    color: var(--brand-700);
}

.empty-state-icon svg {
    width: 34px;
    height: 34px;
}

.empty-state-card h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.65rem, 5vw, 2.45rem);
    letter-spacing: -.04em;
    line-height: 1.08;
}

.empty-state-card > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.55;
}

.stacked-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

/* ---------- Legacy/admin compatibility ---------- */

.shell {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 40px 0;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(24px, 5vw, 40px);
    background: var(--panel);
    box-shadow: var(--shadow-md);
}

.panel h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 8vw, 3.4rem);
    line-height: 1.05;
}

.panel p {
    color: var(--muted);
    line-height: 1.55;
}

.shell-narrow { max-width: 560px; }
.shell-wide { width: min(100% - 32px, 1180px); }

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.admin-header h1 { margin-bottom: 0; }

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-grid article {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    background: var(--panel-soft);
}

.stat-grid strong { font-size: 2rem; }
.stat-grid span { color: var(--muted); }
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .94rem;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

select,
.panel input {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.inline-form,
.filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-form {
    gap: 12px;
    margin: 18px 0 24px;
}

.filter-form select { min-width: min(100%, 460px); }

.inline-form button,
.button-danger {
    min-height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 800;
}

.button-danger { background: var(--danger); color: #fff; }

.success-notice {
    border-left: 4px solid var(--success);
    padding: 10px 12px;
    background: var(--success-soft);
    color: #0b5a42;
}

/* ---------- Motion ---------- */

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(29,185,119,.1); }
    50% { box-shadow: 0 0 0 7px rgba(29,185,119,.02); }
}

@keyframes orbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes timerDanger {
    to { transform: scale(1.04); }
}

@keyframes loaderBounce {
    to { transform: translateY(-8px); opacity: .45; }
}

@media (max-width: 900px) {
    .landing-card {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .landing-visual {
        display: none;
    }
}

@media (max-width: 650px) {
    .landing-shell,
    .game-shell,
    .ranking-shell {
        width: min(100% - 20px, 900px);
        padding-top: 12px;
    }

    .site-brand,
    .game-site-header {
        margin-bottom: 12px;
    }

    .brand-mark small {
        display: none;
    }

    .landing-card,
    .game-card,
    .ranking-card {
        border-radius: 23px;
    }

    .landing-content {
        padding: 25px 24px 24px;
    }

    .landing-title {
        margin-top: 17px;
        font-size: clamp(2.32rem, 11vw, 3.55rem);
        line-height: .98;
    }

    .landing-lead {
        font-size: .94rem;
    }

    .game-stats {
        gap: 7px;
        margin: 19px 0 14px;
    }

    .game-stats article {
        display: grid;
        justify-items: center;
        gap: 6px;
        padding: 10px 5px;
        text-align: center;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .game-stats strong { font-size: .83rem; }
    .game-stats small { font-size: .6rem; }

    .weekly-topic {
        gap: 11px;
        padding: 13px;
    }

    .topic-icon {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .weekly-topic h2 { font-size: 1rem; }
    .weekly-topic p { font-size: .76rem; }

    .start-form {
        margin-top: 18px;
    }

    .input-wrap input {
        min-height: 53px;
    }

    .button-play {
        min-height: 54px;
    }

    .landing-footer {
        justify-content: center;
        text-align: center;
    }

    .landing-footer span:last-child {
        display: none;
    }

    .game-status {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 13px 18px;
    }

    .game-main {
        padding: 22px 18px 20px;
    }

    .question-text {
        margin-bottom: 18px;
        font-size: clamp(1.28rem, 6vw, 1.7rem);
    }

    .answer-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .answer-grid button {
        min-height: 62px;
        border-radius: 14px;
        padding: 10px 12px;
    }

    .answer-letter {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .answer-copy {
        font-size: .84rem;
    }

    .feedback-card {
        padding: 13px;
    }

    .actions {
        margin-top: 17px;
    }

    .next-button {
        min-width: 150px;
    }

    .ranking-hero {
        align-items: flex-start;
        gap: 13px;
    }

    .ranking-hero-icon {
        width: 52px;
        height: 52px;
        border-radius: 17px;
    }

    .ranking-hero-icon svg {
        width: 27px;
        height: 27px;
    }

    .ranking-hero h1 {
        font-size: 1.65rem;
    }

    .podium {
        gap: 7px;
    }

    .podium-card {
        min-height: 150px;
        border-radius: 16px;
        padding: 17px 7px 13px;
    }

    .podium-card.is-first {
        min-height: 181px;
    }

    .podium-avatar {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .is-first .podium-avatar {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .podium-card strong {
        font-size: .76rem;
    }

    .podium-score {
        font-size: .68rem;
    }

    .podium-detail {
        display: none;
    }

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

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

    .result-actions .button:first-child {
        grid-column: auto;
    }

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

    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .live-pill {
        padding: 0 10px;
        font-size: .67rem;
    }

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

    .landing-content {
        padding: 23px 20px 22px;
    }

    .challenge-kicker {
        min-height: 31px;
        font-size: .65rem;
    }

    .landing-title {
        font-size: 2.42rem;
    }

    .trust-row {
        gap: 6px 10px;
    }

    .timer-ring {
        width: 38px;
        height: 38px;
    }

    .timer-ring svg {
        width: 38px;
        height: 38px;
    }

    .player-chip {
        max-width: 120px;
        overflow: hidden;
    }

    .player-chip span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@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;
    }
}

/* Admin controls that do not use the public .button component */
.panel button:not(.button-secondary):not(.button-danger) {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 15px;
    background: var(--brand-700);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.panel button:not(.button-secondary):not(.button-danger):hover {
    background: var(--brand-800);
}

.panel .button-secondary,
.panel .button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
}
