:root {
    --ink: #102f3c;
    --ink-2: #49636d;
    --cream: #f7f1e7;
    --paper: #fffdf8;
    --sun: #ffc928;
    --sun-dark: #e7a600;
    --mint: #22b88a;
    --mint-pale: #ddf5eb;
    --red: #e6574d;
    --red-pale: #ffebe8;
    --violet: #7668dc;
    --line: rgba(16, 47, 60, 0.13);
    --shadow: 0 18px 45px rgba(16, 47, 60, 0.11), 0 3px 9px rgba(16, 47, 60, 0.06);
    color: var(--ink);
    background: var(--cream);
    font-family: Avenir, "Avenir Next", Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

html { background: #ede6da; }

body {
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 201, 40, .13), transparent 22rem),
        linear-gradient(155deg, #fbf7ef, #f1eadf);
    overscroll-behavior: none;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid rgba(118, 104, 220, .32); outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell {
    position: relative;
    isolation: isolate;
    width: min(100%, 540px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) max(17px, env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) max(17px, env(safe-area-inset-left));
    overflow: hidden;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(16, 47, 60, .055);
    border-radius: 50%;
    pointer-events: none;
}

.ambient::before, .ambient::after { position: absolute; border: inherit; border-radius: inherit; content: ""; }
.ambient::before { inset: 24px; }
.ambient::after { inset: 58px; }
.ambient--one { top: 8%; right: -170px; }
.ambient--two { bottom: 8%; left: -180px; width: 270px; height: 270px; }

.topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: .1em;
    cursor: pointer;
}

.brand__mark {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 9px 9px 9px 3px;
    background: var(--sun);
    box-shadow: 2px 2px 0 var(--ink);
    font-size: 13px;
}

.brand__bang { color: var(--sun-dark); }

.player-chip {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    max-width: 215px;
    padding: 4px 7px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: rgba(255, 253, 248, .83);
    box-shadow: 0 5px 18px rgba(16, 47, 60, .06);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.player-chip__avatar, .profile-avatar, .ranking-row > span, .podium-card > span {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe27b, var(--sun));
    color: var(--ink);
    font-weight: 950;
}

.player-chip__avatar { width: 31px; height: 31px; font-size: 10px; }
.player-chip__copy { min-width: 0; text-align: left; line-height: 1.05; }
.player-chip__copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.player-chip__copy small { color: var(--ink-2); font-size: 8px; font-weight: 800; }
.player-chip__fires { display: flex; align-items: center; gap: 5px; padding-left: 6px; border-left: 1px solid var(--line); white-space: nowrap; }
.player-chip__fires > span { font-size: 9px; font-weight: 850; }
.player-chip__fires > span + span { padding-left: 5px; border-left: 1px dashed var(--line); color: #5649ad; }
.player-chip__fires small { margin-left: -3px; font-size: 5px; font-weight: 950; vertical-align: super; }

.screen { animation: screen-in 360ms cubic-bezier(.22, 1, .36, 1) both; }

.boot-screen {
    display: flex;
    min-height: 70dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    color: var(--ink-2);
    text-align: center;
}

.boot-screen__globe { font-size: 67px; filter: drop-shadow(0 10px 13px rgba(16, 47, 60, .13)); animation: float 2.3s ease-in-out infinite; }
.boot-screen strong { font-size: 14px; }
.loader { width: 52px; height: 5px; overflow: hidden; border-radius: 10px; background: rgba(16, 47, 60, .1); }
.loader::after { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--sun-dark); content: ""; animation: load 1.2s ease-in-out infinite alternate; }

.eyebrow { margin: 0; color: var(--ink-2); font-size: 9px; font-weight: 950; letter-spacing: .17em; }

.hero-copy { margin: 8px 4px 19px; }
.hero-copy h1, .page-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(31px, 9.2vw, 44px);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .97;
}
.hero-copy h1 em, .page-heading h1 em { color: var(--sun-dark); font-style: normal; }
.hero-copy > p:last-child, .page-heading > p:last-child { margin: 0; color: var(--ink-2); font-size: 12px; font-weight: 600; }

.streak-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
    padding: 12px;
    border: 1px solid rgba(231, 166, 0, .2);
    border-radius: 21px;
    background: linear-gradient(110deg, #fff9dd, #fffdf7);
    box-shadow: 0 8px 25px rgba(231, 166, 0, .08);
}

.streak-card__flame { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: #ffedb8; font-size: 27px; }
.streak-card__main > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.streak-card__main strong { display: block; font-size: 13px; }
.streak-card__main > div:first-child small { color: #8a6a17; font-size: 8px; font-weight: 800; text-align: right; }

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 7px; }
.week-strip span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.week-strip i { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: rgba(16, 47, 60, .08); color: white; font-size: 9px; font-style: normal; font-weight: 950; }
.week-strip small { color: var(--ink-2); font-size: 7px; font-weight: 900; }
.week-strip .is-active i { background: linear-gradient(145deg, #ffb127, #f2763b); box-shadow: 0 3px 8px rgba(242, 118, 59, .25); }

.challenge20-card {
    margin-bottom: 13px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(118, 104, 220, .24);
    border-radius: 22px;
    background: linear-gradient(130deg, #f0edff, #fffdf8 72%);
    box-shadow: 0 9px 28px rgba(78, 68, 158, .1);
}
.challenge20-card[data-best-difficulty="easy"] { border-color: rgba(34, 184, 138, .34); background: linear-gradient(130deg, #e3f8ef, #fffdf8 72%); }
.challenge20-card[data-best-difficulty="medium"] { border-color: rgba(231, 166, 0, .35); background: linear-gradient(130deg, #fff4c9, #fffdf8 72%); }
.challenge20-card[data-best-difficulty="expert"] { border-color: rgba(118, 104, 220, .45); background: linear-gradient(130deg, #e9e5ff, #fffdf8 72%); }
.challenge20-card__heading { display: grid; grid-template-columns: 47px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.challenge20-card__flame { position: relative; display: grid; width: 47px; height: 47px; place-items: center; border-radius: 15px; background: #e4dfff; }
.challenge20-card__flame span { font-size: 26px; }
.challenge20-card__flame b { position: absolute; right: 2px; bottom: 1px; display: grid; width: 18px; height: 18px; place-items: center; border: 2px solid #f0edff; border-radius: 50%; background: var(--ink); color: white; font-size: 6px; }
.challenge20-card__heading > div:nth-child(2) { min-width: 0; }
.challenge20-card__heading strong, .challenge20-card__heading small { display: block; }
.challenge20-card__heading strong { margin-top: 2px; font-size: 12px; }
.challenge20-card__heading small { margin-top: 2px; overflow: hidden; color: var(--ink-2); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.challenge20-card__best { padding: 5px 7px; border-radius: 8px; background: rgba(118, 104, 220, .11); color: #5449aa; font-size: 7px; font-weight: 950; text-transform: uppercase; white-space: nowrap; }
.challenge20-card__route { margin-top: 11px; padding-top: 10px; border-top: 1px dashed rgba(16, 47, 60, .14); }
.challenge20-card__route > span { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 8px; font-weight: 750; }
.challenge20-card__route > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.challenge20-card__route button { padding: 8px 4px; border: 1px solid rgba(16, 47, 60, .13); border-radius: 12px; background: rgba(255, 255, 255, .75); cursor: pointer; }
.challenge20-card__route button:active { transform: scale(.98); }
.challenge20-card__route button b, .challenge20-card__route button small { display: block; }
.challenge20-card__route button b { font-size: 9px; }
.challenge20-card__route button small { margin-top: 1px; color: var(--ink-2); font-size: 7px; }
.challenge-days { display: flex; min-height: 35px; align-items: center; gap: 6px; margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
.challenge-days::-webkit-scrollbar { display: none; }
.challenge-days__empty { width: 100%; padding: 7px 9px; border: 1px dashed rgba(118, 104, 220, .25); border-radius: 10px; color: var(--ink-2); font-size: 8px; text-align: center; }
.challenge-days__day { position: relative; display: grid; min-width: 39px; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 1px; padding: 4px 4px 3px; border-radius: 11px; background: rgba(255, 255, 255, .72); }
.challenge-days__day i { font-size: 13px; font-style: normal; }
.challenge-days__day b { display: grid; width: 13px; height: 13px; place-items: center; border-radius: 50%; background: #8b80e2; color: white; font-size: 6px; }
.challenge-days__day small { grid-column: 1 / -1; color: var(--ink-2); font-size: 6px; font-weight: 850; text-align: center; }
.challenge-days__day.is-easy b { background: var(--mint); }
.challenge-days__day.is-medium b { background: var(--sun-dark); }
.challenge-days__day.is-expert b { background: var(--violet); }

.resume-card {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    padding: 11px;
    border: 1px solid rgba(118, 104, 220, .24);
    border-radius: 20px;
    background: linear-gradient(120deg, #f0edff, #fffdf8);
    box-shadow: 0 8px 24px rgba(78, 68, 158, .09);
}
.resume-card__icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; background: #e5e0ff; font-size: 24px; }
.resume-card > div:nth-child(2) { min-width: 0; }
.resume-card small, .resume-card strong, .resume-card span { display: block; }
.resume-card small { color: var(--violet); font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.resume-card strong { margin: 2px 0; font-size: 12px; }
.resume-card span { color: var(--ink-2); font-size: 9px; line-height: 1.25; }
.resume-card > button:not(.resume-card__discard) { padding: 9px 11px; border-radius: 12px; background: var(--ink); color: white; font-size: 10px; font-weight: 900; cursor: pointer; }
.resume-card__discard { grid-column: 2 / -1; justify-self: end; padding: 1px 5px; background: transparent; color: var(--ink-2); font-size: 8px; font-weight: 800; text-decoration: underline; cursor: pointer; }

.setup-card, .progress-card, .profile-xp, .my-rank-card, .ranking-list, .profile-stats {
    border: 1px solid rgba(255, 255, 255, .82);
    background: rgba(255, 253, 248, .92);
    box-shadow: var(--shadow);
}

.setup-card { padding: 17px 15px 15px; border-radius: 27px; }
.section-heading { margin-bottom: 12px; }
.section-heading > div { display: flex; align-items: center; gap: 8px; }
.section-heading span, .setup-step > div:first-child span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--ink); color: var(--sun); font-size: 9px; font-weight: 950; }
.section-heading h2, .setup-step h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.section-heading > small { display: block; margin: 3px 0 0 33px; color: var(--ink-2); font-size: 8px; }
.section-heading--inline { display: flex; align-items: center; justify-content: space-between; }
.section-heading--inline button { padding: 5px; background: none; color: var(--violet); font-size: 9px; font-weight: 900; cursor: pointer; }

.difficulty-list { display: grid; gap: 7px; }
.difficulty-option {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr auto 14px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: 17px;
    background: #fffefa;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.difficulty-option:active { transform: scale(.985); }
.difficulty-option.is-selected { border-color: var(--ink); background: #fff9df; box-shadow: 0 5px 0 rgba(16, 47, 60, .09); }
.difficulty-option__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; font-size: 21px; }
.difficulty-option__icon--easy { background: var(--mint-pale); }
.difficulty-option__icon--medium { background: #fff0b5; }
.difficulty-option__icon--expert { background: #eeeaff; }
.difficulty-option strong { display: block; font-size: 12px; }
.difficulty-option small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 8px; }
.difficulty-option__bonus { padding: 4px 6px; border-radius: 7px; background: rgba(16, 47, 60, .06); color: var(--ink-2); font-size: 7px; font-weight: 900; }
.difficulty-option i { position: relative; width: 13px; height: 13px; border: 1.5px solid rgba(16, 47, 60, .25); border-radius: 50%; }
.difficulty-option.is-selected i { border: 4px solid var(--ink); background: var(--sun); }

.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.program-option {
    position: relative;
    display: grid;
    min-height: 92px;
    grid-template-columns: 36px 1fr 13px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 7px;
    padding: 10px;
    border: 1.5px solid var(--line);
    border-radius: 17px;
    background: #fffefa;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.program-option:active { transform: scale(.98); }
.program-option > span { display: grid; width: 36px; height: 36px; grid-row: 1 / 3; grid-column: 1; place-items: center; border-radius: 12px; background: #f4efe6; font-size: 20px; }
.program-option strong { min-width: 0; grid-column: 2; align-self: end; font-size: 11px; }
.program-option small { min-width: 0; grid-column: 2; align-self: start; color: var(--ink-2); font-size: 8px; line-height: 1.2; }
.program-option i { width: 12px; height: 12px; grid-row: 1 / 3; grid-column: 3; border: 1.5px solid rgba(16, 47, 60, .24); border-radius: 50%; }
.program-option.is-selected { border-color: var(--ink); background: #fff9df; box-shadow: 0 4px 0 rgba(16, 47, 60, .09); }
.program-option.is-selected > span { background: #ffedaa; }
.program-option.is-selected i { border: 4px solid var(--ink); background: var(--sun); }

.setup-step { margin-top: 17px; padding-top: 14px; border-top: 1px dashed var(--line); }
.setup-step > div:first-child { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.challenge-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.challenge-picker button { min-height: 49px; padding: 7px 4px; border: 1.5px solid var(--line); border-radius: 13px; background: #fffefa; cursor: pointer; }
.challenge-picker b, .challenge-picker small { display: block; }
.challenge-picker b { font-size: 11px; }
.challenge-picker small { margin-top: 2px; color: var(--ink-2); font-size: 8px; font-weight: 800; }
.challenge-picker button.is-selected { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 4px 0 rgba(16, 47, 60, .13); }
.challenge-picker button.is-selected small { color: #c6d1d4; }
.challenge-help { margin: 7px 1px 0; color: var(--ink-2); font-size: 8px; line-height: 1.3; }
.continent-picker { display: flex; margin-inline: -2px; padding: 2px 2px 5px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.continent-picker::-webkit-scrollbar { display: none; }
.continent-picker button { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fffefa; color: var(--ink-2); font-size: 9px; font-weight: 850; cursor: pointer; }
.continent-picker button.is-selected { border-color: var(--ink); background: #fff0b5; color: var(--ink); box-shadow: 0 3px 0 rgba(16, 47, 60, .1); }
.count-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.count-picker button { padding: 8px 4px 7px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffefa; font-size: 16px; font-weight: 950; cursor: pointer; }
.count-picker button small { display: block; margin-top: 1px; color: var(--ink-2); font-size: 7px; font-weight: 800; }
.count-picker button.is-selected { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 5px 0 rgba(16, 47, 60, .13); }
.count-picker button.is-selected small { color: #b7c5c9; }

.primary-cta {
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 10px 11px 10px 18px;
    border: 2px solid var(--ink);
    border-radius: 19px;
    background: linear-gradient(120deg, var(--sun), #ffd858);
    box-shadow: 0 6px 0 var(--ink), 0 13px 24px rgba(16, 47, 60, .15);
    text-align: left;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.primary-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.primary-cta:disabled { opacity: .6; cursor: wait; }
.primary-cta span small { display: block; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.primary-cta span strong { display: block; font-size: 16px; }
.primary-cta > b { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px; background: var(--ink); color: white; font-size: 19px; }
.primary-cta.is-loading > b { animation: spin 1s linear infinite; }

.progress-card { margin-top: 13px; padding: 16px; border-radius: 24px; }
.level-row { display: grid; grid-template-columns: 49px 1fr; align-items: center; gap: 11px; }
.level-medal { display: grid; width: 49px; height: 49px; place-items: center; border: 2px solid var(--ink); border-radius: 16px 16px 16px 5px; background: var(--sun); box-shadow: 3px 3px 0 var(--ink); font-size: 19px; font-weight: 950; }
.level-row strong { display: block; font-size: 12px; }
.level-row small { display: block; margin: 2px 0 6px; color: var(--ink-2); font-size: 8px; }
.xp-track { height: 7px; overflow: hidden; border-radius: 20px; background: rgba(16, 47, 60, .09); }
.xp-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun-dark), var(--sun)); transition: width 600ms cubic-bezier(.22, 1, .36, 1); }
.mastery-overview { margin-top: 14px; padding: 13px; border-radius: 18px; background: #f3f1ff; }
.mastery-overview__number { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mastery-overview__number strong { font-size: 23px; letter-spacing: -.04em; }
.mastery-overview__number strong small { color: var(--ink-2); font-size: 11px; }
.mastery-overview__number > span { color: var(--ink-2); font-size: 9px; font-weight: 800; }
.mastery-overview__track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(16, 47, 60, .09); }
.mastery-overview__track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #a49af0); transition: width 600ms cubic-bezier(.22, 1, .36, 1); }
.mastery-overview__legend { display: flex; justify-content: space-between; margin-top: 5px; color: var(--ink-2); font-size: 8px; }
.review-cta { display: grid; width: 100%; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; margin-top: 11px; padding: 9px 10px; border: 1px solid rgba(118, 104, 220, .2); border-radius: 14px; background: white; text-align: left; cursor: pointer; }
.review-cta > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #e9e5ff; font-size: 17px; }
.review-cta strong, .review-cta small { display: block; }
.review-cta strong { font-size: 10px; }
.review-cta small { margin-top: 2px; color: var(--ink-2); font-size: 8px; }
.review-cta > b { color: var(--violet); font-size: 16px; }
.review-cta:disabled { opacity: .58; cursor: default; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0 12px; border-block: 1px solid var(--line); }
.mini-stats div { padding: 10px 3px; text-align: center; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats strong { display: block; font-size: 15px; }
.mini-stats small { display: block; color: var(--ink-2); font-size: 7px; font-weight: 800; }
.badge-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.badge-mini { min-width: 0; padding: 7px 2px; border-radius: 12px; background: #f3efe8; text-align: center; }
.badge-mini > span { display: block; font-size: 20px; filter: grayscale(1); opacity: .35; }
.badge-mini strong { display: block; overflow: hidden; margin-top: 2px; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.badge-mini small { display: none; }
.badge-mini.is-unlocked { background: #fff4c9; }
.badge-mini.is-unlocked > span { filter: none; opacity: 1; }
.catalog-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 4px; color: var(--ink-2); font-size: 8px; font-weight: 800; }
.catalog-note span { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(34, 184, 138, .13); }

.game-screen { padding-top: 2px; }
.game-hud { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; margin-bottom: 12px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 253, 248, .82); color: var(--ink-2); font-size: 23px; cursor: pointer; }
.game-hud > div:nth-child(2) small { display: block; margin: 0 0 5px; color: var(--ink-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.game-hud .progress-track { height: 6px; margin: 0; }
.game-hud .progress-track span { display: block; width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun-dark), var(--sun)); transition: width 380ms ease; }
.score-pill { display: flex; min-width: 67px; height: 37px; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 253, 248, .9); font-size: 11px; }
.score-pill span { color: var(--sun-dark); }

.question-card {
    position: relative;
    min-height: 254px;
    padding: 16px 20px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 29px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 253, 248, .98)), var(--paper);
    box-shadow: var(--shadow);
    text-align: center;
}
.question-card::before { position: absolute; top: -75px; left: -62px; width: 175px; height: 175px; border: 33px solid rgba(255, 201, 40, .08); border-radius: 50%; content: ""; }
.question-card::after { position: absolute; right: -46px; bottom: -85px; width: 175px; height: 175px; border: 1px dashed rgba(16, 47, 60, .09); border-radius: 50%; content: ""; }
.question-card__grain { position: absolute; inset: 0; opacity: .17; background-image: radial-gradient(rgba(16, 47, 60, .2) .55px, transparent .55px); background-size: 7px 7px; pointer-events: none; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.question-card--enter { animation: card-in 380ms cubic-bezier(.22, 1, .36, 1) both; }
.question-card.is-loading .flag, .question-card.is-loading .country, .question-card.is-loading .question-meta { opacity: .28; }
.question-meta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; transition: opacity 170ms; }
.question-meta > span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; background: rgba(247, 241, 231, .78); color: var(--ink-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.question-meta b { padding: 4px 8px; border-radius: 99px; background: #fff3cb; font-size: 10px; }
.question-meta i { font-style: normal; }
.question-card > .eyebrow { position: relative; z-index: 1; margin: 7px 0 0; }
.flag-stage { position: relative; z-index: 1; display: grid; height: 105px; place-items: center; }
.flag-stage__halo { position: absolute; width: 88px; height: 88px; border: 1px solid rgba(231, 166, 0, .22); border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 40, .17), transparent 67%); }
.flag-stage__halo::after { position: absolute; inset: 7px; border: 1px dashed rgba(231, 166, 0, .17); border-radius: inherit; content: ""; animation: spin 24s linear infinite; }
.flag { position: relative; display: block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 72px; line-height: 1; filter: drop-shadow(0 7px 7px rgba(16, 47, 60, .14)); transition: opacity 170ms; }
.country { position: relative; z-index: 1; margin: 0; font-size: clamp(25px, 7.5vw, 35px); font-weight: 950; letter-spacing: -.05em; line-height: 1.02; transition: opacity 170ms; }
.hint { position: relative; z-index: 1; margin: 5px 0 0; color: #7c8e94; font-size: 10px; font-weight: 650; }

.answers { display: grid; gap: 9px; margin-top: 12px; }
.answer {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 56px;
    grid-template-columns: 36px 1fr 24px;
    align-items: center;
    gap: 11px;
    padding: 8px 13px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 253, 248, .94);
    box-shadow: 0 5px 13px rgba(16, 47, 60, .055);
    text-align: left;
    cursor: pointer;
    transition: transform 130ms ease, border-color 170ms, background 170ms;
}
.answer:not(:disabled):active { transform: scale(.985); }
.answer:disabled { cursor: default; }
.answer__letter { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(16, 47, 60, .14); border-radius: 12px; background: #f4efe6; font-size: 11px; font-weight: 950; }
.answer strong { font-size: 13px; }
.answer__state { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.answer.is-selected { border-color: var(--violet); background: #2b1f55; transform: scale(.985); }
.answer.is-selected .answer__letter { border-color: var(--violet); background: var(--violet); color: white; }
.answer.is-selected .answer__state { border-color: var(--sun); border-top-color: transparent; animation: spin .42s linear infinite; }
.answer.is-correct { border-color: var(--mint); background: var(--mint-pale); }
.answer.is-correct .answer__letter { border-color: var(--mint); background: var(--mint); color: white; }
.answer.is-correct .answer__state { border-color: var(--mint); background: var(--mint); color: white; }
.answer.is-correct .answer__state::after { content: "✓"; }
.answer.is-wrong { border-color: var(--red); background: var(--red-pale); }
.answer.is-wrong .answer__letter { border-color: var(--red); background: var(--red); color: white; }
.answer.is-wrong .answer__state { border-color: var(--red); color: var(--red); }
.answer.is-wrong .answer__state::after { content: "×"; font-weight: 950; }
.answer--retry { display: block; text-align: center; color: var(--red); font-weight: 850; }
.feedback { min-height: 37px; padding: 10px 3px 0; font-size: 11px; font-weight: 850; text-align: center; }
.feedback--correct { color: #118363; }
.feedback--wrong { color: var(--red); }
.continue-button { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 10px; margin-top: 3px; border: 2px solid var(--ink); border-radius: 16px; background: var(--ink); color: white; box-shadow: 0 5px 0 rgba(16, 47, 60, .22); font-size: 12px; font-weight: 950; cursor: pointer; }
.continue-button span { color: var(--sun); font-size: 17px; }

body.has-mistake-modal, body.has-account-conflict-modal { overflow: hidden; }
.mistake-modal {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: grid;
    align-items: end;
    padding: max(18px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.mistake-modal__backdrop { position: absolute; inset: 0; background: rgba(7, 28, 37, .72); backdrop-filter: blur(5px); animation: modal-fade-in 180ms ease both; }
.mistake-modal__sheet {
    position: relative;
    width: min(100%, 500px);
    max-height: calc(100dvh - max(30px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    margin: 0 auto;
    padding: 12px 17px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 28px 28px 20px 20px;
    background: linear-gradient(155deg, #fffdf8, #fff6e7);
    box-shadow: 0 28px 75px rgba(5, 25, 33, .38);
    text-align: center;
    animation: modal-sheet-in 300ms cubic-bezier(.22, 1, .36, 1) both;
}
.mistake-modal__handle { width: 42px; height: 4px; margin: 0 auto 10px; border-radius: 99px; background: rgba(16, 47, 60, .18); }
.mistake-modal__badge { display: inline-block; padding: 5px 9px; border-radius: 99px; background: #ffdfd9; color: #b64239; font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.mistake-modal__icon { display: grid; width: 54px; height: 54px; margin: 10px auto 7px; place-items: center; border: 2px solid var(--ink); border-radius: 18px 18px 18px 6px; background: var(--sun); box-shadow: 4px 4px 0 var(--ink); font-size: 28px; }
.mistake-modal__country { margin: 10px 0 3px; color: var(--ink-2); font-size: 10px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.mistake-modal h2 { margin: 0; font-size: clamp(22px, 7vw, 30px); letter-spacing: -.045em; line-height: 1.08; }
.mistake-modal h2 strong { display: block; margin-top: 2px; color: #c7443a; }
.mistake-modal__memory { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid rgba(118, 104, 220, .2); border-radius: 17px; background: #f1efff; text-align: left; }
.mistake-modal__memory > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: white; font-size: 20px; }
.mistake-modal__memory small { color: #5449aa; font-size: 7px; font-weight: 950; letter-spacing: .12em; }
.mistake-modal__memory p { margin: 3px 0 0; font-size: 11px; font-weight: 750; line-height: 1.42; }
.mistake-modal__continue { position: sticky; bottom: 0; display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 9px 10px 9px 16px; border: 2px solid var(--ink); border-radius: 17px; background: var(--ink); box-shadow: 0 5px 0 rgba(16, 47, 60, .2); color: white; font-size: 11px; font-weight: 950; cursor: pointer; }
.mistake-modal__continue b { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--sun); color: var(--ink); font-size: 17px; }

.account-conflict-modal { position: fixed; z-index: 65; inset: 0; display: grid; align-items: end; padding: max(18px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.account-conflict-modal__backdrop { position: absolute; inset: 0; background: rgba(7, 28, 37, .72); backdrop-filter: blur(5px); animation: modal-fade-in 180ms ease both; }
.account-conflict-modal__sheet { position: relative; width: min(100%, 500px); max-height: calc(100dvh - 30px); margin: 0 auto; padding: 20px 17px 17px; overflow-y: auto; border: 2px solid rgba(255, 255, 255, .9); border-radius: 28px 28px 20px 20px; background: linear-gradient(155deg, #fffdf8, #eef5ff); box-shadow: 0 28px 75px rgba(5, 25, 33, .38); text-align: center; animation: modal-sheet-in 300ms cubic-bezier(.22, 1, .36, 1) both; }
.account-conflict-modal__icon { display: grid; width: 56px; height: 56px; margin: 0 auto 11px; place-items: center; border: 2px solid var(--ink); border-radius: 18px 18px 18px 6px; background: #dceaff; box-shadow: 4px 4px 0 var(--ink); color: #2867c7; font-size: 29px; }
.account-conflict-modal h2 { margin: 5px 0 8px; font-size: 23px; letter-spacing: -.04em; line-height: 1.08; }
.account-conflict-modal__sheet > p:not(.eyebrow) { margin: 0; color: var(--ink-2); font-size: 10px; line-height: 1.45; }
.account-conflict-modal__actions { display: grid; gap: 8px; margin-top: 16px; }
.account-conflict-modal__actions button { min-height: 46px; padding: 9px 12px; border-radius: 14px; font-size: 10px; font-weight: 900; cursor: pointer; }
.account-conflict-modal__actions button:first-child { border: 1px solid var(--line); background: white; color: var(--ink-2); }
.account-conflict-modal__actions button:last-child { background: var(--ink); color: white; box-shadow: 0 4px 0 rgba(16, 47, 60, .2); }

.result-screen { max-width: 470px; margin: 0 auto; padding-top: 4dvh; text-align: center; }
.result-trophy { display: grid; width: 90px; height: 90px; place-items: center; margin: 0 auto 13px; border: 2px solid var(--ink); border-radius: 29px 29px 29px 9px; background: linear-gradient(145deg, #fff0a6, var(--sun)); box-shadow: 6px 6px 0 var(--ink), 0 18px 28px rgba(16, 47, 60, .14); font-size: 49px; animation: float 2.3s ease-in-out infinite; }
.result-screen h1 { margin: 7px 0 5px; font-size: 30px; letter-spacing: -.05em; }
.result-screen > p:not(.eyebrow) { margin: 0 auto; max-width: 320px; color: var(--ink-2); font-size: 11px; }
.result-alex { position: relative; width: min(100%, 286px); margin: 17px auto 0; padding: 15px 14px; border: 2px solid var(--ink); border-radius: 24px 24px 24px 8px; background: linear-gradient(155deg, #fffdf8, #fff5d5); box-shadow: 6px 6px 0 var(--ink), 0 16px 30px rgba(16, 47, 60, .14); animation: modal-sheet-in 360ms cubic-bezier(.22, 1, .36, 1) both; }
.alex-avatar { display: block; width: 112px; aspect-ratio: 1; margin: 0 auto; border: 3px solid white; border-radius: 23px; background-image: url("../images/alex-expressions-E9uOpQo.png"); background-repeat: no-repeat; background-size: 300% 300%; box-shadow: 0 5px 15px rgba(16, 47, 60, .16); }
.result-alex p { margin: 10px auto 0; color: var(--ink); font-size: 12px; font-weight: 900; line-height: 1.3; }
[data-emotion="content"] .alex-avatar { background-position: 0 0; }
[data-emotion="worried"] .alex-avatar { background-position: 50% 0; }
[data-emotion="surprised"] .alex-avatar { background-position: 100% 0; }
[data-emotion="proud"] .alex-avatar { background-position: 0 50%; }
[data-emotion="grumpy"] .alex-avatar { background-position: 50% 50%; }
[data-emotion="sad"] .alex-avatar { background-position: 100% 50%; }
[data-emotion="focused"] .alex-avatar { background-position: 0 100%; }
[data-emotion="excited"] .alex-avatar { background-position: 50% 100%; }
[data-emotion="puzzled"] .alex-avatar { background-position: 100% 100%; }
.result-score { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; margin: 19px 0 13px; }
.result-score strong { font-size: 57px; letter-spacing: -.06em; line-height: .9; }
.result-score > span { color: var(--ink-2); font-size: 20px; font-weight: 900; }
.result-score small { grid-column: 1 / -1; margin-top: 4px; color: var(--ink-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.result-rewards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); }
.result-rewards > div { padding: 12px 4px; }
.result-rewards > div + div { border-left: 1px solid var(--line); }
.result-rewards span, .result-rewards strong, .result-rewards small { display: block; }
.result-rewards span { font-size: 17px; }
.result-rewards strong { margin: 3px 0 1px; font-size: 15px; }
.result-rewards i { font-style: normal; }
.result-rewards small { color: var(--ink-2); font-size: 7px; font-weight: 800; }
.result-challenge20 { display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(118, 104, 220, .28); border-radius: 16px; background: #eeebff; text-align: left; }
.result-challenge20 > span { position: relative; display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: white; font-size: 23px; }
.result-challenge20 > span small { position: absolute; right: 2px; bottom: 2px; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 6px; font-weight: 950; }
.result-challenge20 strong, .result-challenge20 div small { display: block; }
.result-challenge20 strong { font-size: 11px; }
.result-challenge20 div small { margin-top: 2px; color: var(--ink-2); font-size: 8px; }
.new-badges { display: grid; gap: 7px; margin-top: 10px; }
.new-badges > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid rgba(231, 166, 0, .25); border-radius: 16px; background: #fff5ca; text-align: left; }
.new-badges > div > span { font-size: 28px; }
.new-badges small, .new-badges strong { display: block; }
.new-badges small { color: #8a6a17; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.new-badges strong { font-size: 12px; }
.answer-review { margin-top: 18px; text-align: left; }
.answer-review > div:first-child { display: flex; align-items: end; justify-content: space-between; margin: 0 2px 8px; }
.answer-review h2 { margin: 2px 0 0; font-size: 18px; }
.answer-review > div:last-child { display: grid; gap: 6px; }
.answer-history__item { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.answer-history__item > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: white; font-size: 13px; font-weight: 950; }
.answer-history__item.is-correct > span { background: var(--mint); }
.answer-history__item.is-wrong { border-color: rgba(230, 87, 77, .22); background: #fff8f7; }
.answer-history__item.is-wrong > span { background: var(--red); }
.answer-history__item strong, .answer-history__item small { display: block; }
.answer-history__item strong { font-size: 10px; }
.answer-history__item small { margin-top: 2px; color: var(--ink-2); font-size: 9px; }
.review-errors-button { width: 100%; margin-top: 12px; padding: 12px; border: 1px solid rgba(118, 104, 220, .28); border-radius: 15px; background: #eeebff; color: #4e439f; font-size: 11px; font-weight: 900; cursor: pointer; }
.result-screen .primary-cta { margin-top: 14px; }
.secondary-button { width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 253, 248, .7); color: var(--ink-2); font-size: 11px; font-weight: 850; cursor: pointer; }

.page-heading { margin: 9px 3px 19px; }
.my-rank-card { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 18px; }
.my-rank-card > span { color: var(--ink-2); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.my-rank-card > strong { margin-left: auto; color: var(--sun-dark); font-size: 18px; }
.my-rank-card > small { max-width: 125px; overflow: hidden; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.podium { display: flex; min-height: 162px; align-items: flex-end; justify-content: center; gap: 7px; margin: 16px 0; }
.podium-card { display: flex; width: 31.5%; min-height: 125px; flex-direction: column; align-items: center; justify-content: flex-start; padding: 9px 4px; border: 1px solid var(--line); border-radius: 18px 18px 8px 8px; background: var(--paper); box-shadow: 0 8px 20px rgba(16, 47, 60, .08); text-align: center; }
.podium-card--1 { order: 2; min-height: 154px; border-color: rgba(231, 166, 0, .35); background: linear-gradient(#fff7d7, var(--paper)); }
.podium-card--2 { order: 1; }
.podium-card--3 { order: 3; }
.podium-card.is-me { box-shadow: 0 0 0 2px var(--violet), 0 8px 20px rgba(16, 47, 60, .08); }
.podium-card > b { min-height: 20px; color: var(--ink-2); font-size: 11px; }
.podium-card > span { width: 43px; height: 43px; margin: 4px 0 6px; font-size: 12px; }
.podium-card--1 > span { width: 51px; height: 51px; }
.podium-card > strong { display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.podium-card > small { margin-top: 3px; color: var(--sun-dark); font-size: 8px; font-weight: 900; }
.ranking-list { overflow: hidden; border-radius: 22px; }
.ranking-row { display: grid; grid-template-columns: 32px 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; }
.ranking-row + .ranking-row { border-top: 1px solid var(--line); }
.ranking-row.is-me { background: #f0edff; }
.ranking-row > b { color: var(--ink-2); font-size: 10px; }
.ranking-row > span { width: 36px; height: 36px; font-size: 10px; }
.ranking-row > div { min-width: 0; }
.ranking-row > div strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row > div small { display: block; color: var(--ink-2); font-size: 7px; }
.ranking-row > strong:last-child { color: var(--sun-dark); font-size: 9px; }
.loading-card { width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink-2); font-size: 10px; font-weight: 800; text-align: center; }

.profile-hero { padding: 10px 0 15px; text-align: center; }
.profile-avatar { width: 82px; height: 82px; margin: 0 auto 11px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-size: 24px; }
.profile-hero h1 { margin: 5px 0 7px; font-size: 25px; letter-spacing: -.04em; }
.profile-hero button { padding: 6px 9px; border-radius: 99px; background: rgba(16, 47, 60, .07); color: var(--ink-2); font-size: 8px; font-weight: 900; cursor: pointer; }
.profile-hero > span { display: block; margin-top: 9px; color: var(--ink-2); font-size: 9px; }
.profile-hero > span i { font-style: normal; font-weight: 850; }
.profile-xp { padding: 13px 15px; border-radius: 18px; }
.profile-xp > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; }
.profile-xp strong { font-size: 10px; }
.profile-xp span { color: var(--ink-2); font-size: 8px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 11px; overflow: hidden; border-radius: 19px; }
.profile-stats > div { padding: 11px 3px; text-align: center; }
.profile-stats > div + div { border-left: 1px solid var(--line); }
.profile-stats span, .profile-stats strong, .profile-stats small { display: block; }
.profile-stats span { font-size: 15px; }
.profile-stats strong { margin: 2px 0; font-size: 14px; }
.profile-stats small { color: var(--ink-2); font-size: 7px; font-weight: 800; }
.account-card {
    margin-top: 11px;
    padding: 14px;
    border: 1px solid rgba(66, 133, 244, .22);
    border-radius: 21px;
    background: linear-gradient(130deg, #eef5ff, #fffdf8 72%);
    box-shadow: var(--shadow);
}
.account-card[data-account-state="connected"] { border-color: rgba(34, 184, 138, .32); background: linear-gradient(130deg, #e8f8f2, #fffdf8 72%); }
.account-card[data-account-state="loading"] { opacity: .78; }
.account-card__heading { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.account-card__google { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(16, 47, 60, .12); border-radius: 14px; background: white; color: #4285f4; box-shadow: 0 4px 12px rgba(66, 133, 244, .12); font-size: 20px; font-weight: 950; }
.account-card__heading h2 { margin: 2px 0 0; font-size: 15px; }
.account-card__state { padding: 5px 7px; border-radius: 8px; background: rgba(66, 133, 244, .1); color: #2867c7; font-size: 7px; font-weight: 950; text-align: center; text-transform: uppercase; }
.account-card[data-account-state="connected"] .account-card__state { background: rgba(34, 184, 138, .13); color: #14795e; }
.account-card > p { margin: 9px 0 10px; color: var(--ink-2); font-size: 9px; line-height: 1.4; }
.google-sign-in-button { display: flex; width: 100%; min-height: 45px; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(16, 47, 60, .17); border-radius: 14px; background: white; box-shadow: 0 3px 0 rgba(16, 47, 60, .08); cursor: pointer; }
.google-sign-in-button > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #4285f4; font-size: 15px; font-weight: 950; }
.google-sign-in-button strong { font-size: 10px; }
.google-sign-in-button:disabled { cursor: wait; opacity: .6; }
.account-card__sign-out { padding: 4px 2px; background: transparent; color: var(--ink-2); font-size: 8px; font-weight: 850; text-decoration: underline; cursor: pointer; }
.account-card__note { display: block; margin-top: 7px; color: var(--ink-2); font-size: 7px; text-align: center; }
.profile-challenge20 { margin-top: 11px; padding: 13px 14px; border: 1px solid rgba(118, 104, 220, .24); border-radius: 20px; background: linear-gradient(125deg, #efecff, #fffdf8); box-shadow: var(--shadow); }
.profile-challenge20__heading { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 9px; }
.profile-challenge20__heading > span { position: relative; display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: white; font-size: 23px; }
.profile-challenge20__heading > span small { position: absolute; right: 1px; bottom: 1px; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 6px; font-weight: 950; }
.profile-challenge20__heading h2 { margin: 2px 0 0; font-size: 15px; }
.profile-challenge20__heading > strong { padding: 5px 7px; border-radius: 8px; background: rgba(118, 104, 220, .12); color: #5449aa; font-size: 7px; text-transform: uppercase; }
.profile-challenge20 > p { margin: 8px 0 0; color: var(--ink-2); font-size: 8px; line-height: 1.35; }
.challenge-days--profile { margin-top: 8px; }
.knowledge-card { margin-top: 11px; padding: 14px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 21px; background: rgba(255, 253, 248, .92); box-shadow: var(--shadow); }
.knowledge-card__heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.knowledge-card__heading h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.03em; }
.knowledge-card__heading > strong { color: var(--violet); font-size: 22px; }
.knowledge-card__stats { display: flex; justify-content: space-between; gap: 6px; margin: 8px 0 13px; color: var(--ink-2); font-size: 8px; }
.continent-progress { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.continent-progress > div span { display: flex; justify-content: space-between; margin-bottom: 4px; }
.continent-progress > div span b { font-size: 9px; }
.continent-progress > div span small { color: var(--ink-2); font-size: 8px; }
.continent-progress > div > i { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(16, 47, 60, .08); }
.continent-progress > div > i > b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #a49af0); }
.profile-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 19px 3px 10px; }
.profile-section-heading h2 { margin: 2px 0 0; font-size: 19px; }
.profile-section-heading > span { color: var(--ink-2); font-size: 9px; font-weight: 850; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.badge-card { display: grid; min-height: 92px; grid-template-columns: 43px 1fr; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.badge-card > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: #f1ece4; font-size: 24px; filter: grayscale(1); opacity: .33; }
.badge-card strong { display: block; font-size: 9px; }
.badge-card small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 7px; line-height: 1.25; }
.badge-card.is-unlocked { border-color: rgba(231, 166, 0, .3); background: #fff9e5; }
.badge-card.is-unlocked > span { background: #fff0b3; filter: none; opacity: 1; }

.bottom-nav {
    position: fixed;
    z-index: 20;
    right: max(10px, calc((100vw - 520px) / 2));
    bottom: max(9px, env(safe-area-inset-bottom));
    left: max(10px, calc((100vw - 520px) / 2));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 22px;
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 12px 35px rgba(16, 47, 60, .19);
    backdrop-filter: blur(18px);
}
.bottom-nav button { display: flex; min-height: 47px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 16px; background: transparent; color: #809096; cursor: pointer; }
.bottom-nav button span { font-size: 17px; line-height: 1; }
.bottom-nav button small { font-size: 7px; font-weight: 900; }
.bottom-nav button.is-active { background: var(--ink); color: white; }
.bottom-nav button.is-active span { color: var(--sun); }

.toast { position: fixed; z-index: 30; right: 22px; bottom: calc(85px + env(safe-area-inset-bottom)); left: 22px; max-width: 430px; margin: auto; padding: 11px 15px; border-radius: 14px; background: var(--ink); box-shadow: 0 10px 28px rgba(16, 47, 60, .25); color: white; font-size: 10px; font-weight: 800; text-align: center; animation: toast-in 220ms ease both; }

@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: .35; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { from { transform: translateX(-15%); } to { transform: translateX(130%); } }
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes modal-fade-in { from { opacity: 0; } }
@keyframes modal-sheet-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }

@media (min-width: 600px) {
    .app-shell { margin-block: 18px; min-height: calc(100dvh - 36px); border: 1px solid rgba(255,255,255,.7); border-radius: 34px; background: rgba(247, 241, 231, .68); box-shadow: 0 25px 70px rgba(16,47,60,.12); }
    .mistake-modal { align-items: center; }
    .mistake-modal__sheet { border-radius: 28px; }
    .account-conflict-modal { align-items: center; }
    .account-conflict-modal__sheet { border-radius: 28px; }
}

@media (max-width: 370px) {
    .app-shell { padding-inline: 13px; }
    .player-chip__copy { display: none; }
    .program-grid { grid-template-columns: 1fr; }
    .program-option { min-height: 68px; }
    .resume-card { grid-template-columns: 42px minmax(0, 1fr); }
    .resume-card > button:not(.resume-card__discard) { grid-column: 1 / -1; }
    .question-card { min-height: 235px; }
    .flag-stage { height: 92px; }
    .flag { font-size: 63px; }
    .answer { min-height: 52px; }
    .badge-grid { grid-template-columns: 1fr; }
    .account-card__heading { grid-template-columns: 39px minmax(0, 1fr); }
    .account-card__google { width: 39px; height: 39px; }
    .account-card__state { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* CAPITALEX V2 — deep, punchy and intentionally simple */
:root {
    --ink: #f7f7ff;
    --ink-2: #c6c2d8;
    --cream: #090812;
    --paper: #171526;
    --sun: #d9ff43;
    --sun-dark: #b9e51b;
    --mint: #35e6b4;
    --mint-pale: #12382f;
    --red: #ff557a;
    --red-pale: #3b1724;
    --violet: #8b5cf6;
    --line: rgba(255, 255, 255, .11);
    --shadow: 0 24px 55px rgba(0, 0, 0, .32);
    color-scheme: dark;
    background: var(--cream);
    font-family: Inter, Avenir, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: #06050b; }
body {
    background:
        radial-gradient(circle at 105% 8%, rgba(139, 92, 246, .34), transparent 28rem),
        radial-gradient(circle at -15% 52%, rgba(255, 69, 106, .18), transparent 25rem),
        #090812;
}

button:focus-visible { outline-color: var(--sun); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.app-shell { width: min(100%, 600px); padding-inline: max(20px, env(safe-area-inset-left)); }
.ambient { border-color: rgba(217, 255, 67, .06); }
.ambient--one { top: -90px; right: -130px; box-shadow: 0 0 80px rgba(139, 92, 246, .14); }
.ambient--two { bottom: 6%; left: -210px; border-color: rgba(255, 85, 122, .07); }

.topbar { margin-bottom: 31px; }
.brand { color: #fff; font-size: 15px; letter-spacing: .14em; }
.brand__wordmark { display: inline-flex; align-items: center; }
.brand__wordmark .brand__bang { margin-left: .42em; color: var(--sun); }
.brand__mark { border: 0; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(217, 255, 67, .1); color: #11120c; }
.brand__bang { color: var(--sun); }
.player-chip { border: 1px solid var(--line); background: rgba(24, 21, 39, .78); box-shadow: none; }
.player-chip__avatar, .profile-avatar, .ranking-row > span, .podium-card > span { background: linear-gradient(145deg, var(--violet), #ff4f87); color: #fff; }
.player-chip__fires { border-color: var(--line); }
.player-chip__fires > span + span { border-color: var(--line); color: var(--sun); }

.eyebrow { color: var(--sun); font-size: 9px; letter-spacing: .19em; }
.welcome-line { margin: -10px 2px 20px; color: #c9c5dc; font-size: 11px; font-weight: 750; }
.welcome-line::before { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(53,230,180,.1); content: ""; }
.hero-copy--v2 { margin: 2px 2px 24px; }
.hero-copy--v2 h1 { max-width: 480px; margin: 9px 0 12px; color: #fff; font-size: clamp(42px, 12vw, 66px); line-height: .9; letter-spacing: -.075em; }
.hero-copy--v2 h1 em { background: linear-gradient(90deg, #ff557a, #ff8b54); background-clip: text; color: transparent; }
.hero-copy--v2 > p:last-child { color: #c6c2db; font-size: 14px; }

.quick-play-card { position: relative; display: grid; min-height: 205px; grid-template-columns: 1fr auto; align-content: end; gap: 20px; margin-bottom: 12px; padding: 24px; overflow: hidden; border: 1px solid rgba(217, 255, 67, .35); border-radius: 30px; background: linear-gradient(135deg, #2e1f66 0%, #5e2fc6 52%, #8b5cf6 100%); box-shadow: 0 28px 55px rgba(52, 26, 128, .35); }
.quick-play-card::before { position: absolute; top: -105px; right: -75px; width: 255px; height: 255px; border: 40px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.quick-play-card::after { position: absolute; top: 34px; left: 25px; width: 55px; height: 5px; border-radius: 99px; background: var(--sun); box-shadow: 0 14px 0 rgba(255,255,255,.14); content: ""; }
.quick-play-card__orbit { position: absolute; top: 17px; right: 24px; display: grid; width: 93px; height: 93px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.quick-play-card__orbit::after { position: absolute; inset: 12px -9px; border: 1px solid rgba(217,255,67,.55); border-radius: 50%; content: ""; transform: rotate(-25deg); }
.quick-play-card__orbit span { font-size: 49px; filter: saturate(1.25) drop-shadow(0 10px 15px rgba(0,0,0,.24)); }
.quick-play-card__copy { position: relative; z-index: 1; min-width: 0; }
.quick-play-card__copy span, .quick-play-card__copy strong, .quick-play-card__copy small { display: block; }
.quick-play-card__copy span { margin-bottom: 5px; color: var(--sun); font-size: 8px; font-weight: 950; letter-spacing: .16em; }
.quick-play-card__copy strong { font-size: 23px; letter-spacing: -.035em; }
.quick-play-card__copy small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: 9px; }
.quick-play-button { position: relative; z-index: 1; align-self: end; padding: 13px 15px 13px 18px; border-radius: 15px; background: var(--sun); box-shadow: 0 7px 0 #161329; color: #11120c; font-size: 12px; font-weight: 950; cursor: pointer; }
.quick-play-button b { margin-left: 8px; font-size: 16px; }
.quick-play-button:active { transform: translateY(4px); box-shadow: 0 3px 0 #161329; }

.name-screen { display: flex; min-height: calc(100dvh - 60px); flex-direction: column; justify-content: center; padding: 34px 4px; }
.name-screen__back { position: absolute; top: max(22px, env(safe-area-inset-top)); left: max(20px, env(safe-area-inset-left)); }
.name-screen__identity { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.name-screen__mark { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; border-radius: 21px 21px 21px 7px; background: var(--sun); box-shadow: 8px 8px 0 #5e2fc6; color: #11120c; font-size: 27px; }
.name-screen__brand strong, .name-screen__brand small { display: block; }
.name-screen__brand strong { display: flex; align-items: center; color: #fff; font-size: 20px; font-weight: 950; letter-spacing: .13em; }
.name-screen__brand strong span + span { margin-left: .42em; color: var(--sun); }
.name-screen__brand small { margin-top: 5px; color: #8d89a3; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.name-screen h1 { max-width: 480px; margin: 10px 0 13px; color: #fff; font-size: clamp(35px, 10vw, 52px); line-height: .95; letter-spacing: -.06em; }
.name-screen > p:not(.eyebrow):not(.name-screen__privacy) { max-width: 470px; margin: 0; color: #aaa8c2; font-size: 12px; line-height: 1.55; }
.name-form { margin-top: 28px; padding: 19px; border: 1px solid var(--line); border-radius: 25px; background: #171526; box-shadow: var(--shadow); }
.name-form label { display: block; margin: 0 0 8px; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.name-form input { width: 100%; height: 58px; padding: 0 16px; border: 2px solid rgba(255,255,255,.12); border-radius: 16px; outline: none; background: #0e0c18; color: #fff; font: inherit; font-size: 17px; font-weight: 800; transition: border-color 180ms ease, box-shadow 180ms ease; }
.name-form input::placeholder { color: #66617c; }
.name-form input:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(217,255,67,.1); }
.name-form > small { display: block; margin: 7px 2px 0; color: #77738f; font-size: 8px; }
.name-form__error { margin: 10px 2px 0; color: #ff7c98; font-size: 9px; font-weight: 800; }
.name-form button { display: flex; width: 100%; min-height: 55px; align-items: center; justify-content: space-between; margin-top: 17px; padding: 12px 17px; border-radius: 16px; background: var(--sun); box-shadow: 0 6px 0 #06050b; color: #11120c; font-size: 12px; font-weight: 950; cursor: pointer; }
.name-form button:disabled { cursor: wait; opacity: .6; }
.name-screen__privacy { margin: 18px auto 0 !important; color: #77738f !important; font-size: 8px !important; text-align: center; }
.name-screen__privacy span { margin-right: 5px; color: var(--mint); }

.configure-button { display: grid; width: 100%; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; margin-bottom: 17px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 19px; background: rgba(24, 21, 39, .88); color: #fff; text-align: left; cursor: pointer; }
.configure-button > span:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: rgba(217,255,67,.12); color: var(--sun); font-size: 17px; }
.configure-button strong, .configure-button small { display: block; }
.configure-button strong { font-size: 12px; }
.configure-button small { margin-top: 3px; color: var(--ink-2); font-size: 8px; }
.configure-button > b { color: var(--sun); font-size: 18px; }

.home-glance { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10px; }
.streak-card, .challenge20-card { margin: 0; border: 1px solid var(--line); border-radius: 22px; background: #171526; box-shadow: none; }
.streak-card { display: block; padding: 14px; }
.streak-card__flame { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 13px; background: rgba(255,85,122,.13); font-size: 21px; }
.streak-card__main > div:first-child { display: block; }
.streak-card__main strong { font-size: 17px; }
.streak-card__main > div:first-child small { margin-top: 3px; color: var(--ink-2); text-align: left; }
.week-strip { gap: 3px; margin-top: 12px; }
.week-strip i { width: 13px; height: 13px; background: rgba(255,255,255,.08); }
.week-strip small { color: #77738f; font-size: 6px; }
.week-strip .is-active i { background: linear-gradient(145deg, #ff557a, #ff934f); }
.challenge20-card { padding: 14px; }
.challenge20-card[data-best-difficulty="easy"] { border-color: rgba(53,230,180,.42); background: linear-gradient(135deg, #12382f, #171526 74%); }
.challenge20-card[data-best-difficulty="medium"] { border-color: rgba(217,255,67,.42); background: linear-gradient(135deg, #303218, #171526 74%); }
.challenge20-card[data-best-difficulty="expert"] { border-color: rgba(139,92,246,.5); background: linear-gradient(135deg, #2b2055, #171526 74%); }
.challenge20-card__heading { grid-template-columns: 39px minmax(0,1fr); }
.challenge20-card__flame { width: 39px; height: 39px; border-radius: 13px; background: rgba(217,255,67,.1); }
.challenge20-card__flame span { font-size: 20px; }
.challenge20-card__flame b { border-color: #171526; background: var(--sun); color: #11120c; }
.challenge20-card__heading strong { color: #fff; font-size: 13px; }
.challenge20-card__heading small { color: var(--ink-2); }
.challenge20-card__best { display: none; }
.challenge-days { min-height: 28px; }
.challenge-days__empty { border-color: var(--line); color: #77738f; }
.challenge-quick-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 8px; padding: 9px 10px; border-radius: 11px; background: var(--sun); color: #11120c; font-size: 9px; font-weight: 950; cursor: pointer; }

.resume-card { margin-bottom: 12px; border-color: rgba(53,230,180,.3); background: linear-gradient(120deg, #12342e, #171526); box-shadow: none; }
.resume-card__icon { background: rgba(53,230,180,.13); color: var(--mint); }
.resume-card small { color: var(--mint); }
.resume-card > button:not(.resume-card__discard) { background: var(--mint); color: #07231c; }

.progress-card, .setup-card, .profile-xp, .my-rank-card, .ranking-list, .profile-stats { border-color: var(--line); background: #171526; box-shadow: var(--shadow); }
.progress-card--compact { margin-top: 10px; border-radius: 22px; }
.section-heading span, .setup-step > div:first-child span { background: var(--sun); color: #11120c; }
.section-heading--inline > button { color: var(--sun); }
.level-medal { border: 0; background: linear-gradient(145deg, var(--violet), #ff557a); box-shadow: none; color: #fff; }
.xp-track, .mastery-overview__track, .progress-track { background: rgba(255,255,255,.09); }
.xp-track i, .mastery-overview__track i { background: linear-gradient(90deg, var(--violet), #ff557a, var(--sun)); }
.mini-stats { border-color: var(--line); }
.mini-stats div + div { border-color: var(--line); }

.setup-screen__heading { display: grid; grid-template-columns: 42px 1fr; gap: 14px; margin: 3px 2px 22px; }
.setup-screen__heading h1 { margin: 5px 0 7px; font-size: 35px; letter-spacing: -.055em; }
.setup-screen__heading p:last-child { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.4; }
.back-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #171526; color: var(--sun); font-size: 20px; cursor: pointer; }
.setup-card { padding: 19px; border-radius: 26px; }
.program-option, .challenge-picker button, .continent-picker button, .count-picker button { border-color: var(--line); background: #211e33; color: var(--ink); }
.program-option > span { background: #2b2740; }
.program-option small, .challenge-picker small, .count-picker button small { color: var(--ink-2); }
.program-option.is-selected, .challenge-picker button.is-selected, .count-picker button.is-selected { border-color: var(--sun); background: var(--sun); box-shadow: none; color: #11120c; }
.program-option.is-selected > span { background: rgba(17,18,12,.1); }
.program-option.is-selected i { border-color: #11120c; background: #11120c; }
.program-option.is-selected small, .challenge-picker button.is-selected small, .count-picker button.is-selected small { color: rgba(17,18,12,.68); }
.continent-picker button.is-selected { border-color: var(--violet); background: var(--violet); box-shadow: none; color: white; }
.setup-step { border-color: var(--line); }
.primary-cta { border: 0; background: linear-gradient(100deg, #ff6685, #ff9a64); box-shadow: 0 7px 0 #0b0911; color: #17101b; }
.primary-cta > b { background: #fff; color: #15101c; }

.game-hud .progress-track span { background: linear-gradient(90deg, #ff557a, var(--sun)); }
.icon-button, .score-pill { border-color: var(--line); background: #171526; }
.score-pill span { color: var(--sun); }
.question-card { border: 1px solid rgba(139,92,246,.45); background: linear-gradient(150deg, #251a51, #171526 68%); box-shadow: 0 24px 55px rgba(0,0,0,.3); }
.question-card::before { border-color: rgba(217,255,67,.08); }
.question-card::after { border-color: rgba(255,255,255,.1); }
.question-card__grain { opacity: .1; }
.flag-stage__halo { background: radial-gradient(circle, rgba(139,92,246,.28), transparent 65%); }
.answer { border-color: var(--line); background: #171526; box-shadow: 0 3px 0 #06050b; }
.answer > span { background: #2a263d; color: var(--sun); }
.answer--correct { border-color: var(--mint); background: #10362e; }
.answer--wrong { border-color: var(--red); background: #3b1724; }
.feedback--correct { color: var(--mint); }
.continue-button { border: 0; background: var(--sun); box-shadow: 0 5px 0 #06050b; color: #11120c; }
.continue-button span { color: #11120c; }

.result-trophy { border: 0; background: linear-gradient(145deg, var(--sun), #ff8a4e); box-shadow: 7px 7px 0 #5e2fc6; }
.result-rewards, .result-alex, .podium-card, .badge-card, .knowledge-card, .account-card, .profile-challenge20 { border-color: var(--line); background: #171526; box-shadow: var(--shadow); }
.result-alex { border: 1px solid rgba(217,255,67,.35); }
.result-alex p { color: var(--ink); }
.result-challenge20 { border-color: rgba(139,92,246,.45); background: linear-gradient(135deg, #2b2055, #171526); }
.result-challenge20 > span { background: #242035; }
.result-challenge20 > span small { background: var(--sun); color: #11120c; }
.new-badges > div { border-color: rgba(217,255,67,.42); background: linear-gradient(120deg, #303218, #171526); color: #f7f7ff; }
.new-badges small { color: var(--sun); }
.new-badges strong { color: #f7f7ff; }
.answer-history__item { border-color: var(--line); background: #171526; }
.answer-history__item.is-wrong { border-color: rgba(255,85,122,.38); background: #311520; }
.review-errors-button { border-color: rgba(139,92,246,.4); background: #251f45; color: #d8d0ff; }
.secondary-button { border-color: var(--line); background: #171526; }
.podium-card--1 { border-color: rgba(217,255,67,.4); background: linear-gradient(#2b3040, #171526); }
.ranking-row.is-me { background: #2b1f55; }
.my-rank-card { background: linear-gradient(135deg, #5425b8, #7b2455); }
.my-rank-card > span, .my-rank-card > small { color: #f7f7ff; }
.my-rank-card > strong { color: var(--sun); }
.profile-hero button { background: #242035; }
.account-card[data-account-state="connected"] { border-color: rgba(53,230,180,.35); background: #12342e; }
.google-sign-in-button { border-color: var(--line); background: #f8f8ff; color: #171526; }
.profile-challenge20 { background: linear-gradient(125deg, #251a51, #171526); }
.knowledge-card__heading > strong { color: var(--sun); }
.badge-card > span { background: #242035; }
.badge-card.is-unlocked { border-color: rgba(217,255,67,.35); background: #282d1c; }
.badge-mini { background: #211e33; }
.badge-mini.is-unlocked { background: #303218; color: #f7f7ff; }
.mastery-overview { background: #211e33; }
.review-cta { border-color: rgba(139,92,246,.35); background: #211e33; }
.review-cta > span { background: #2b2548; }
.question-meta > span { background: #242035; color: #d0ccdf; }
.question-meta b { background: var(--sun); color: #11120c; }
.challenge-days__day { background: #242035; }
.challenge-days__day.is-easy b { color: #07231c; }
.challenge-days__day.is-medium b { background: var(--sun); color: #11120c; }
.account-conflict-modal__sheet { border-color: rgba(255,255,255,.13); background: linear-gradient(155deg, #211d36, #12101e); color: #f7f7ff; }
.account-conflict-modal__sheet > p:not(.eyebrow) { color: var(--ink-2); }
.account-conflict-modal__icon { border: 0; background: #242f52; box-shadow: 5px 5px 0 #090812; color: #8cb5ff; }
.account-conflict-modal__actions button:first-child { border-color: var(--line); background: #242035; color: #f7f7ff; }
.account-conflict-modal__actions button:last-child { background: var(--sun); color: #11120c; }

.mistake-modal__backdrop { background: rgba(3, 2, 10, .78); backdrop-filter: blur(8px); }
.mistake-modal__sheet { border: 1px solid rgba(255,255,255,.13); background: linear-gradient(155deg, #211d36, #12101e); box-shadow: 0 30px 80px rgba(0,0,0,.6); color: #f7f7ff; }
.mistake-modal__handle { background: rgba(255,255,255,.2); }
.mistake-modal__badge { background: rgba(255,85,122,.15); color: #ff839c; }
.mistake-modal__icon { border: 0; background: var(--sun); box-shadow: 5px 5px 0 #5e2fc6; color: #11120c; }
.mistake-modal__country { color: #aaa8c2; }
.mistake-modal h2 { color: #f7f7ff; }
.mistake-modal h2 strong { color: #ff6e79; }
.mistake-modal__memory { border-color: rgba(139,92,246,.42); background: #2a2346; }
.mistake-modal__memory > span { background: rgba(217,255,67,.12); }
.mistake-modal__memory small { color: var(--sun); }
.mistake-modal__memory p { color: #f1effb; font-size: 12px; font-weight: 700; line-height: 1.5; }
.mistake-modal__continue { border: 0; background: var(--sun); box-shadow: 0 6px 0 #07060d; color: #11120c; }
.mistake-modal__continue b { background: #11120c; color: var(--sun); }

.bottom-nav { right: max(10px, calc((100vw - 580px) / 2)); left: max(10px, calc((100vw - 580px) / 2)); grid-template-columns: repeat(4, 1fr); border-color: rgba(255,255,255,.13); background: rgba(18, 16, 29, .9); box-shadow: 0 15px 40px rgba(0,0,0,.45); }
.bottom-nav button { color: #77738f; }
.bottom-nav button.is-active { background: var(--sun); color: #11120c; }
.bottom-nav button.is-active span { color: #11120c; }
.toast { background: var(--sun); color: #11120c; }

@media (min-width: 600px) {
    .app-shell { border-color: rgba(255,255,255,.1); background: rgba(9,8,18,.72); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
}

@media (max-width: 410px) {
    .home-glance { grid-template-columns: 1fr; }
    .streak-card { display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
    .streak-card__flame { margin-bottom: 0; }
    .quick-play-card { min-height: 220px; grid-template-columns: 1fr; }
    .quick-play-button { justify-self: start; }
}
