.splash-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--glow-i), inset 0 1px 0 rgba(255, 255, 255, .2);
    animation: floatLogo 3s ease-in-out infinite;
}

.splash-title {
    font-size: clamp(2.4rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #fff 30%, var(--indigo) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 12px;
}

.splash-sub {
    color: var(--text-muted);
    font-size: clamp(.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    max-width: 400px;
    line-height: 1.6;
    margin: 0 auto 15px;
}

.difficulty-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.diff-btn {
    padding: 14px 42px;
    width: 30%;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: all .18s;
}

.diff-btn:hover {
    border-color: var(--indigo);
    color: var(--text);
}

.diff-btn.active {
    background: var(--indigo-lo);
    border-color: var(--indigo);
    color: var(--indigo);
    box-shadow: var(--glow-i);
}

.start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 44px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--indigo), #9B8FFF);
    color: #fff;
    box-shadow: var(--glow-i), 0 4px 24px rgba(0, 0, 0, .4);
    transition: transform .14s, box-shadow .14s;
    letter-spacing: .01em;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 48px rgba(108, 99, 255, .5), 0 8px 32px rgba(0, 0, 0, .4);
}

.menu-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.menu-btn:hover {
    border-color: var(--indigo);
    color: var(--text);
    background: var(--surface2);
}

.menu-btn:active {
    transform: scale(.94);
}

.hud-ctrl-btn {
    width: 100%;
    border-radius: var(--hud-panel-radius);
    border: 1px solid var(--hud-panel-border);
    background: var(--hud-panel-bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--font-ui);
    position: relative;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    min-width: 74px;
    min-height: var(--hud-control-min-height);
    aspect-ratio: 1/1;
    padding: 12% 8%;
    gap: 14%;
    text-align: center;
    line-height: 1.2;
    box-shadow: var(--hud-panel-shadow);
}

.hud-ctrl-btn:hover {
    border-color: var(--indigo);
    color: var(--text);
    background: var(--surface2);
}

.hud-ctrl-btn:active {
    transform: scale(.94);
}

.hud-ctrl-btn .pause-mark {
    width: var(--hud-pause-icon-size);
    height: calc(var(--hud-pause-icon-size) * 0.88);
    min-width: 24px;
    min-height: 28px;
    max-width: 54px;
    max-height: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32%;
}

.hud-ctrl-btn .pause-mark::before,
.hud-ctrl-btn .pause-mark::after {
    content: '';
    display: block;
    background: var(--text);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.48);
}

.hud-ctrl-btn .label {
    font-size: var(--hud-control-label-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text);
    line-height: 1.2;
    margin-top: 0;
}

.hud-ctrl-btn .value {
    font-family: var(--font-num);
    font-size: var(--hud-accuracy-value-size);
    font-weight: 800;
    color: var(--jade);
    line-height: 1.1;
}

.hud-ctrl-btn.acc-panel .value {
    font-size: var(--hud-accuracy-value-size);
    color: var(--jade);
}

.hud-ctrl-btn.acc-panel .label {
    font-size: var(--hud-control-label-size);
    letter-spacing: 0;
}

.hud-ctrl-btn.acc-panel:hover .value {
    color: var(--indigo);
}

.icon-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.icon-btn:hover {
    border-color: var(--indigo);
    color: var(--text);
}

.icon-btn:active {
    transform: scale(.95);
}

.icon-btn.kbd-active {
    border-color: var(--indigo);
    color: var(--indigo);
    background: var(--indigo-lo);
}

.key {
    min-height: clamp(52px, 9vh, 72px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(15, 22, 48, .82);
    color: var(--text);
    font-family: var(--font-num);
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    font-weight: 700;
    cursor: pointer;
    transition: all .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.key::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity .1s;
}

.key:hover {
    border-color: rgba(108, 99, 255, .5);
    background: rgba(25, 35, 75, .9);
}

.key:active::after { opacity: .07; }
.key:active { transform: translateY(1px); }

.key.back {
    background: rgba(30, 20, 60, .9);
    border-color: rgba(150, 100, 255, .3);
    font-size: 1.3rem;
}

.key.ops {
    background: linear-gradient(135deg, rgba(100, 40, 200, .9), rgba(140, 60, 255, .8));
    border-color: rgba(160, 80, 255, .6);
    color: #e8d0ff;
    font-family: var(--font-ui);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 0 18px rgba(130, 60, 255, .3), 0 2px 8px rgba(0, 0, 0, .4);
}

.key.ops:hover {
    box-shadow: 0 0 28px rgba(130, 60, 255, .5);
}

.key.enter {
    background: linear-gradient(135deg, rgba(0, 160, 70, .9), rgba(0, 220, 100, .8));
    border-color: rgba(0, 220, 100, .6);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 0 18px rgba(0, 200, 80, .3), 0 2px 8px rgba(0, 0, 0, .4);
    grid-row: span 2;
    min-height: calc(clamp(52px, 9vh, 72px) * 2 + 8px);
}

.key.enter:hover {
    box-shadow: 0 0 28px rgba(0, 220, 100, .5);
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    font-family: inherit;
}

.close-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.toast {
    padding: 11px 18px;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    border-radius: var(--radius);
    background: rgba(10, 18, 40, .88);
    border: 1px solid var(--border2);
    box-shadow: var(--glow-i);
    animation: toastAnim 2.8s var(--ease-out) forwards;
    backdrop-filter: blur(12px);
}

.toast.achievement {
    border-color: rgba(255, 215, 0, .5);
    box-shadow: var(--glow-g);
}

.toast.timeout {
    border-color: rgba(255, 71, 87, .5);
    box-shadow: var(--glow-c);
}

.toast.streak {
    border-color: rgba(255, 176, 0, .55);
    box-shadow: 0 0 32px rgba(255, 176, 0, 0.35);
}

.toast.task {
    border-color: rgba(0, 229, 160, .5);
    box-shadow: var(--glow-j);
}

.toast.badge {
    border-color: rgba(125, 232, 255, .55);
    box-shadow: 0 0 32px rgba(125, 232, 255, 0.35);
}

.reveal-chip {
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-num);
    animation: wrongReveal .3s var(--ease-out);
}

.reveal-chip.wrong {
    background: rgba(255, 71, 87, .14);
    border: 1px solid rgba(255, 71, 87, .5);
    color: var(--coral);
    text-decoration: line-through;
    box-shadow: var(--glow-c);
}

.reveal-chip.correct {
    background: rgba(0, 229, 160, .14);
    border: 1px solid rgba(0, 229, 160, .5);
    color: var(--jade);
    box-shadow: 0 0 16px rgba(0, 229, 160, .3);
}

.acc-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.acc-tab {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

.acc-tab:hover {
    color: var(--text);
    border-color: var(--border);
}

.acc-tab.active {
    background: var(--indigo-lo);
    border-color: var(--indigo);
    color: var(--indigo);
    box-shadow: var(--glow-i);
}

.acc-tab-content {
    display: none;
}

.acc-tab-content.active {
    display: block;
}

.stats-section-title {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-top: 16px;
}

.stats-section-title:first-of-type {
    margin-top: 0;
}

.stats-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.highlight-card {
    padding: 14px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.highlight-val {
    font-family: var(--font-num);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.highlight-label {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.stat-cell {
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: left;
}

.stat-cell span {
    display: block;
    font-size: .68rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stat-cell b {
    font-family: var(--font-num);
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-top: 3px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.history-item {
    display: grid;
    grid-template-columns: 28px 1fr minmax(70px, auto) minmax(50px, auto);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.history-item.h-correct { border-color: rgba(0, 229, 160, .25); background: rgba(0, 229, 160, .04); }
.history-item.h-wrong { border-color: rgba(255, 71, 87, .25); background: rgba(255, 71, 87, .04); }
.history-item.h-timeout { border-color: rgba(255, 215, 0, .2); background: rgba(255, 215, 0, .03); }

.h-num {
    font-family: var(--font-num);
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.h-question {
    font-family: var(--font-num);
    font-size: .82rem;
    font-weight: 600;
}

.h-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.h-date {
    font-size: .64rem;
    color: var(--text-muted);
    font-weight: 500;
}

.h-answer-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.h-given {
    font-family: var(--font-num);
    font-size: .82rem;
    font-weight: 700;
}

.h-given.correct { color: var(--jade); }
.h-given.wrong { color: var(--coral); }
.h-given.timeout { color: var(--gold); }

.h-correct-ans {
    font-family: var(--font-num);
    font-size: .7rem;
    color: var(--jade);
    font-weight: 600;
}

.h-time {
    font-family: var(--font-num);
    font-size: .7rem;
    color: var(--text-muted);
    text-align: right;
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 32px;
    font-size: .9rem;
}

.ach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .3s;
}

.ach-item.unlocked {
    border-color: rgba(255, 215, 0, .3);
    background: rgba(255, 215, 0, .05);
}

.ach-icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    filter: grayscale(1) opacity(.35);
}

.ach-item.unlocked .ach-icon {
    filter: none;
}

.ach-text {
    min-width: 0;
    flex: 1;
}

.ach-name {
    font-size: .8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ach-desc {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.ach-badge {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: .6rem;
    font-weight: 700;
    background: rgba(255, 215, 0, .12);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, .3);
    white-space: nowrap;
    flex-shrink: 0;
}

.ach-item.locked .ach-badge {
    background: rgba(255, 255, 255, .05);
    color: var(--text-muted);
    border-color: var(--border);
}

/* --- Daily streak banner --- */
.streak-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255, 176, 0, .06);
    border: 1px solid rgba(255, 176, 0, .25);
    margin-bottom: 16px;
}

.streak-flame {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 176, 0, .6));
}

.streak-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.streak-text b {
    font-size: .95rem;
    font-weight: 700;
}

.streak-text span {
    font-size: .72rem;
    color: var(--text-muted);
}

/* --- Daily task list --- */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.task-item.done {
    border-color: rgba(0, 229, 160, .3);
    background: rgba(0, 229, 160, .05);
}

.task-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.task-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.task-label {
    font-size: .78rem;
    font-weight: 600;
}

.task-bar-track {
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.task-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--jade), var(--cyan));
    transition: width .3s var(--ease-out);
}

.task-item.done .task-bar-fill {
    background: var(--jade);
}

.task-progress {
    font-family: var(--font-num);
    font-size: .64rem;
    color: var(--text-muted);
}

.task-reward {
    font-family: var(--font-num);
    font-size: .8rem;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.task-reward span {
    font-size: .58rem;
    color: var(--text-muted);
    font-weight: 500;
}

.task-all-done {
    text-align: center;
    padding: 14px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gold);
}

/* --- Badge grid (LinkedIn-style tiered skill badges) --- */
.badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.badge-item.earned {
    border-color: color-mix(in srgb, var(--tier-color, var(--border)) 45%, transparent);
    background: color-mix(in srgb, var(--tier-color, transparent) 8%, var(--surface));
}

.badge-ring {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    background: rgba(4, 8, 18, .62);
    border: 3px solid var(--tier-color, var(--border));
    box-shadow: 0 0 16px color-mix(in srgb, var(--tier-color, transparent) 40%, transparent);
}

.badge-text {
    min-width: 0;
    flex: 1;
}

.badge-name {
    font-size: .8rem;
    font-weight: 700;
}

.badge-tier {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 1px;
}

.badge-desc {
    font-size: .64rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.3;
}

.pause-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 8px 0;
}

.pause-menu-btn {
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    letter-spacing: .02em;
}

.pause-menu-btn:hover {
    border-color: var(--indigo);
    background: var(--indigo-lo);
    color: var(--indigo);
    box-shadow: var(--glow-i);
}

.pause-menu-btn:active {
    transform: scale(.97);
}

.pause-menu-btn.danger {
    color: var(--coral);
}

.pause-menu-btn.danger:hover {
    border-color: var(--coral);
    background: var(--coral-lo);
    color: var(--coral);
    box-shadow: var(--glow-c);
}

.options-section {
    margin-bottom: 20px;
}

.options-section:last-child {
    margin-bottom: 0;
}

.options-section-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 14px;
}

.option-row .label {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
}

.option-row .desc {
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
}

.toggle-track.on {
    background: var(--indigo);
    border-color: var(--indigo);
}

.toggle-track .thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform .2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.toggle-track.on .thumb {
    transform: translateX(20px);
}

.volume-slider {
    flex: 1;
    min-width: 80px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: background .2s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--indigo);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 12px rgba(108, 99, 255, .4);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--indigo);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, .2);
}

.volume-label {
    font-family: var(--font-num);
    font-size: .78rem;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
}

.option-row:has(.volume-slider) {
    flex-wrap: wrap;
}

.option-row:has(.volume-slider) .volume-slider {
    flex-basis: 100%;
    order: 2;
}

.option-row:has(.volume-slider) .volume-label {
    order: 3;
    margin-left: auto;
}

.reset-btn {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255, 71, 87, .4);
    background: rgba(255, 71, 87, .07);
    color: var(--coral);
    font-family: var(--font-ui);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.reset-btn:hover {
    background: rgba(255, 71, 87, .14);
    border-color: var(--coral);
}

.help-content {
    font-size: .92rem;
    line-height: 1.7;
    color: var(--text);
}

.help-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin: 18px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-content h3:first-of-type {
    margin-top: 0;
}

.help-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.help-content ul li {
    padding: 4px 0 4px 24px;
    position: relative;
    color: var(--text-muted);
}

.help-content ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--indigo);
    font-weight: 700;
}

.help-content .key-badge {
    display: inline-block;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--font-num);
    font-size: .78rem;
    color: var(--text);
    font-weight: 600;
    margin: 0 2px;
}

.gameover-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: iconBounce .6s var(--ease-out);
}

.gameover-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.gameover-sub {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 28px;
}

.go-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    text-align: center;
}

.go-stats > div {
    padding: 14px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.go-stat-val {
    font-family: var(--font-num);
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    line-height: 1;
}

.go-stat-label {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.go-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.go-btn {
    padding: 13px 32px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .01em;
}

.go-btn.primary {
    background: linear-gradient(135deg, var(--indigo), #9B8FFF);
    border: none;
    color: #fff;
    box-shadow: var(--glow-i);
}

.go-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 48px rgba(108, 99, 255, .5);
}

.go-btn.secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.go-btn.secondary:hover {
    border-color: var(--indigo);
    color: var(--text);
}
