/* NOOMS Daily — same tokens as noomsdaily.com: pale sky, deep navy, sky-blue accent, Outfit 800 headlines. */
:root {
  --bg: oklch(97.5% .015 230);
  --bg-2: oklch(94.5% .03 228);
  --panel: oklch(99.6% .005 230);
  --text: oklch(28% .09 250);
  --head: oklch(28% .09 250);
  --muted: oklch(52% .06 240);
  --line: oklch(91% .03 225);
  --soft: oklch(95.5% .022 225);
  --brand: oklch(68% .16 235);
  --brand-ink: oklch(56% .17 248);
  --fill: oklch(28% .09 250);
  --fill-ink: #fff;
  --empty: oklch(93% .025 228);
  --warn-bg: oklch(95.5% .045 25);
  --warn-ink: oklch(50% .17 25);
  --ring: color-mix(in oklch, oklch(28% .09 250) 7%, transparent);
  --shadow: 0 0 0 1px var(--ring), 0 16px 36px -22px rgba(10, 40, 90, .28);
  --glass: color-mix(in oklch, var(--panel) 84%, transparent);
  --radius: 26px;
  --f-head: Outfit, ui-sans-serif, system-ui, sans-serif;
  --f-body: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(17.5% .045 258);
    --bg-2: oklch(21% .055 258);
    --panel: oklch(22.5% .055 258);
    --text: oklch(94% .02 230);
    --head: oklch(97% .015 230);
    --muted: oklch(72% .045 238);
    --line: oklch(30% .055 258);
    --soft: oklch(27% .06 258);
    --brand: oklch(75% .13 232);
    --brand-ink: oklch(80% .12 232);
    --fill: oklch(75% .13 232);
    --fill-ink: oklch(18% .05 258);
    --empty: oklch(28% .05 258);
    --warn-bg: oklch(30% .07 25);
    --warn-ink: oklch(82% .1 25);
    --ring: rgba(255, 255, 255, .07);
    --shadow: 0 0 0 1px var(--ring), 0 16px 36px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: oklch(17.5% .045 258);
  --bg-2: oklch(21% .055 258);
  --panel: oklch(22.5% .055 258);
  --text: oklch(94% .02 230);
  --head: oklch(97% .015 230);
  --muted: oklch(72% .045 238);
  --line: oklch(30% .055 258);
  --soft: oklch(27% .06 258);
  --brand: oklch(75% .13 232);
  --brand-ink: oklch(80% .12 232);
  --fill: oklch(75% .13 232);
  --fill-ink: oklch(18% .05 258);
  --empty: oklch(28% .05 258);
  --warn-bg: oklch(30% .07 25);
  --warn-ink: oklch(82% .1 25);
  --ring: rgba(255, 255, 255, .07);
  --shadow: 0 0 0 1px var(--ring), 0 16px 36px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--f-head); color: var(--head); margin: 0; letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 108px);
}

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 14px; }
.brand { display: flex; align-items: center; gap: 8px; }
.wordmark { font: 900 25px/1 var(--f-head); letter-spacing: -.04em; color: var(--head); }
.brand-tag {
  font: 700 10.5px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--soft); padding: 5px 9px; border-radius: 999px;
}
.streak-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border-radius: 999px;
  background: var(--panel); box-shadow: var(--shadow); font: 800 16px/1 var(--f-head); color: var(--head);
}
.streak-pill .fl { font-size: 17px; transform-origin: 50% 90%; }
.streak-pill.hot .fl { animation: flicker 1.6s ease-in-out infinite; }
.streak-pill.cold { color: var(--muted); }
.streak-pill.cold .fl { filter: grayscale(1); opacity: .55; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.14) rotate(4deg); } }

.greet { padding: 2px 2px 16px; }
.greet h1 { font-size: 30px; font-weight: 800; line-height: 1.05; }
.greet h1 span { color: var(--brand-ink); }
.greet p { margin: 6px 0 0; color: var(--muted); font-weight: 500; }

.view { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.view > * + * { margin-top: 14px; }
.page-title { padding: 2px 2px 4px; }
.page-title h1 { font-size: 30px; font-weight: 800; }
.page-title p { margin: 4px 0 0; color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { font-size: 18px; font-weight: 800; }
.card-h .meta { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.eyebrow { font: 700 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }

/* ---------- hero ---------- */
.hero {
  --ink: #10275e; --ink-2: #2c4a8f; --chip: rgba(255, 255, 255, .62); --track: rgba(255, 255, 255, .6);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 16px 18px 22px;
  text-align: center; color: var(--ink); box-shadow: var(--shadow);
}
.hero[data-tod="morning"] { background: linear-gradient(180deg, #a9d4ff 0%, #d8edff 52%, #fff1e2 100%); }
.hero[data-tod="day"] { background: linear-gradient(180deg, #86c3ff 0%, #c9e6ff 55%, #eef7ff 100%); }
.hero[data-tod="evening"] { background: linear-gradient(180deg, #6f93ea 0%, #a9a6ea 48%, #ffc4ae 100%); --ink: #14214f; --ink-2: #2b3570; }
.hero[data-tod="night"] {
  background: radial-gradient(120% 70% at 50% 110%, #2f55b5 0%, transparent 60%), linear-gradient(180deg, #071338 0%, #12276a 100%);
  --ink: #fff; --ink-2: #c8d8ff; --chip: rgba(255, 255, 255, .12); --track: rgba(255, 255, 255, .16);
}
.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .75; filter: blur(.5px); animation: drift 26s linear infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 55%; height: 170%; left: 14%; bottom: 20%; }
.cloud::after { width: 38%; height: 130%; right: 14%; bottom: 25%; }
.c1 { width: 120px; height: 30px; left: -20px; top: 92px; }
.c2 { width: 90px; height: 24px; right: -10px; top: 210px; animation-duration: 32s; opacity: .6; }
.c3 { width: 150px; height: 32px; left: -50px; bottom: 26px; opacity: .4; animation-duration: 40s; }
@keyframes drift { to { transform: translateX(26px); } }
.hero[data-tod="night"] .cloud { display: none; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.hero:not([data-tod="night"]) .star { display: none; }
.moon { position: absolute; top: 58px; right: 34px; width: 34px; height: 34px; border-radius: 50%; box-shadow: 9px -6px 0 0 #ffe9a8; transform: rotate(-12deg); }
.hero:not([data-tod="night"]) .moon { display: none; }
.sun { position: absolute; top: -60px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 65%); }
.hero[data-tod="night"] .sun { display: none; }
.hero[data-tod="evening"] .sun { background: radial-gradient(circle, rgba(255, 214, 170, .9) 0%, rgba(255, 214, 170, 0) 65%); top: auto; bottom: -90px; right: 20%; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

.hero-top { display: flex; justify-content: space-between; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--chip); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.chip.done { background: #fff; color: #1d4fd8; }
.hero[data-tod="night"] .chip.done { background: #fff; color: #12276a; }

.press { position: relative; width: 286px; height: 286px; margin: 4px auto 6px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 12; }
.ring-track { stroke: var(--track); }
.ring-fill { stroke: url(#ringg); stroke-linecap: round; stroke-dasharray: 848.23; stroke-dashoffset: 848.23; }
.hero[data-tod="night"] .ring-fill { stroke: #9fd2ff; }
.press.is-done .ring { filter: drop-shadow(0 0 10px rgba(80, 140, 255, .55)); }
.ring-dots { position: absolute; inset: 0; pointer-events: none; }
.ring-dots i { position: absolute; width: 14px; height: 14px; color: #fff; animation: twinkle 2.2s ease-in-out infinite; }
.ring-dots i::before { content: ""; position: absolute; inset: 0; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.press:not(.is-done) .ring-dots { display: none; }

.bear-btn {
  position: relative; width: 236px; height: 236px; border-radius: 50%; display: grid; place-items: center;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.squish {
  --p: 0; display: grid; place-items: center; transform-origin: 50% 92%;
  transform: scale(calc(1 + var(--p) * .1), calc(1 - var(--p) * .17));
}
.bear { width: 168px; height: auto; overflow: visible; display: block; pointer-events: none; }
.bear .b-body { transform-box: view-box; transform-origin: 400px 690px; animation: bob 2.6s ease-in-out infinite; }
.bear .b-shadow { transform-box: view-box; transform-origin: 400px 694px; animation: shadow 2.6s ease-in-out infinite; }
.bear .eyes { transform-box: view-box; transform-origin: 400px 292px; animation: blink 4.6s infinite; }
.bear .arm-ru { transform-box: view-box; transform-origin: 500px 430px; animation: waveR .9s ease-in-out infinite; }
.bear .arm-lu { transform-box: view-box; transform-origin: 300px 430px; animation: waveL .9s ease-in-out infinite; }
.bear.jump .b-body { animation: jump 1s cubic-bezier(.3, 1.3, .5, 1) both, bob 2.6s ease-in-out 1s infinite; }
.bear.jump .b-shadow { animation: shadowJump 1s ease both; }
.bear.wiggle .b-body { animation: wiggle .6s ease both, bob 2.6s ease-in-out .6s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px) scale(.99, 1.01); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .22; } 50% { transform: scale(.9); opacity: .15; } }
@keyframes blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes waveR { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(16deg); } }
@keyframes waveL { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-16deg); } }
@keyframes jump {
  0% { transform: scale(1.12, .82); }
  32% { transform: translateY(-120px) scale(.94, 1.08) rotate(-5deg); }
  55% { transform: translateY(-120px) scale(.98, 1.02) rotate(4deg); }
  78% { transform: translateY(0) scale(1.1, .88); }
  90% { transform: scale(.97, 1.04); }
  100% { transform: none; }
}
@keyframes shadowJump { 0%, 100% { transform: scale(1); opacity: .22; } 40%, 60% { transform: scale(.55); opacity: .08; } }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }

.zzz { position: absolute; top: 34px; right: 48px; font: 800 20px/1 var(--f-head); color: #c8d8ff; pointer-events: none; }
.zzz span { position: absolute; animation: zzz 3s ease-in infinite; opacity: 0; }
.zzz span:nth-child(2) { animation-delay: 1s; } .zzz span:nth-child(3) { animation-delay: 2s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -44px) scale(1.3); } }

.hero-title { font-size: 25px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.hero-sub { margin: 6px auto 0; max-width: 300px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.hint-pop { min-height: 20px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s; }
.hint-pop.show { opacity: 1; }
.moods { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.mood {
  display: grid; justify-items: center; gap: 2px; min-width: 54px; padding: 8px 4px 6px; border-radius: 16px;
  background: var(--chip); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s;
}
.mood b { font-size: 24px; line-height: 1; }
.mood small { font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.mood:active { transform: scale(.92); }
.mood.on { background: #fff; box-shadow: 0 6px 16px -8px rgba(18, 56, 168, .5); }
.mood.on small { color: #1d4fd8; }
.link-btn { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 6px 8px; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); padding: 14px 12px 12px; }
.tile .ico { font-size: 18px; }
.tile b { display: block; font: 900 30px/1 var(--f-head); color: var(--head); letter-spacing: -.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- week strip ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.wd small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.wd .dot { width: 38px; height: 42px; margin: 0 auto; display: grid; place-items: center; border-radius: 14px; position: relative; }
.wd .dot svg { width: 34px; height: 37px; filter: drop-shadow(0 3px 4px rgba(18, 56, 168, .3)); }
.wd.miss .dot::after, .wd.future .dot::after, .wd.today .dot::after { content: ""; width: 30px; height: 30px; border-radius: 50%; }
.wd.miss .dot::after { background: var(--empty); }
.wd.future .dot::after { border: 2px dashed var(--line); }
.wd.today .dot::after { border: 2.5px solid var(--brand); animation: pulse 1.8s ease-in-out infinite; }
.wd.today small { color: var(--brand-ink); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--brand) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- box / sachets ---------- */
.sachets { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.sachets i { aspect-ratio: 3 / 4; border-radius: 5px; background: var(--empty); }
.sachets i.full { background: linear-gradient(160deg, #6fa2ff, #1d4fd8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.box-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.box-note b { color: var(--head); }
.box-low { margin-top: 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; font-size: 13.5px; }
.row-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; background: var(--fill); color: var(--fill-ink); text-decoration: none;
  font: 700 13px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; transition: transform .12s ease, opacity .12s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: var(--soft); color: var(--head); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn.xl { min-height: 56px; font-size: 14px; width: 100%; }
.btn.danger { background: var(--warn-bg); color: var(--warn-ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- tip / install ---------- */
.tip { display: flex; gap: 14px; align-items: flex-start; }
.tip .tip-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); font-size: 22px; }
.tip p { margin: 6px 0 0; font-size: 14.5px; }
.install { display: flex; gap: 14px; align-items: center; background: var(--fill); color: var(--fill-ink); }
.install img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.install b { display: block; font: 800 16px/1.2 var(--f-head); }
.install p { margin: 2px 0 0; font-size: 13px; opacity: .85; }
.install .x { margin-left: auto; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; opacity: .7; }
.install .x svg { width: 18px; height: 18px; }
.install .btn { background: var(--fill-ink); color: var(--fill); margin-top: 8px; }

/* ---------- calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav h2 { font-size: 20px; font-weight: 800; text-transform: capitalize; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--head); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 2px; text-align: center; }
.cal-grid .dow { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; padding-bottom: 6px; }
.day { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; border-radius: 14px; font: 700 14px/1 var(--f-head); color: var(--head); }
.day.pad { visibility: hidden; }
.day.future, .day.pre { color: color-mix(in oklch, var(--muted) 55%, transparent); pointer-events: none; }
.day.miss { color: var(--muted); }
.day.miss::before { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--empty); z-index: -1; }
.day { isolation: isolate; min-width: 0; }
.day.today::after { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--brand); }
.day.done.today::after { display: none; }
.day.done svg { position: absolute; width: 38px; height: 41px; filter: drop-shadow(0 3px 4px rgba(18, 56, 168, .32)); animation: popIn .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.day .n { position: relative; }
.day.done .n { color: #fff; font-size: 12px; margin-top: 15px; }
.day .m { position: absolute; top: -3px; right: -2px; font-size: 13px; line-height: 1; z-index: 1; }
.day:active { transform: scale(.92); }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 16px; height: 17px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; background: var(--empty); display: inline-block; }

.meter { height: 10px; border-radius: 999px; background: var(--empty); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b8cff, #1d4fd8); transition: width .6s cubic-bezier(.3, 1, .4, 1); }
.big-num { font: 900 40px/1 var(--f-head); color: var(--head); letter-spacing: -.04em; }
.big-num small { font: 600 15px/1 var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.month-sum { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }

.energy { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; align-items: end; height: 110px; }
.energy .bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.energy .bar i { width: 100%; max-width: 18px; border-radius: 6px 6px 4px 4px; background: linear-gradient(180deg, #7fb2ff, #2f6cf0); }
.energy .bar.none i { height: 6px !important; background: var(--empty); }
.energy .bar.today i { background: linear-gradient(180deg, #ffb3cc, #ff7aa8); }
.energy-x { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; margin-top: 6px; text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.energy-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.energy-legend b { color: var(--head); }

/* ---------- badges ---------- */
.level { background: linear-gradient(150deg, #1d4fd8 0%, #12276a 100%); color: #fff; position: relative; overflow: hidden; }
.level::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 210, 255, .35), transparent 70%); }
.level .eyebrow { color: #9fd2ff; }
.level h2 { color: #fff; font-size: 26px; font-weight: 900; margin-top: 8px; }
.level p { margin: 4px 0 12px; color: #c8d8ff; font-size: 13.5px; }
.level .meter { background: rgba(255, 255, 255, .16); }
.level .meter i { background: linear-gradient(90deg, #9fd2ff, #fff); }
.level-bear { position: absolute; right: 14px; bottom: 6px; width: 74px; opacity: .95; }
.level-bear .bear { width: 100%; }
.level .lvl-text { position: relative; z-index: 1; max-width: calc(100% - 80px); }
.badge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.badge { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 4px 2px; border-radius: 18px; }
.medal {
  position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(circle at 35% 30%, #d8ecff 0%, #8fc0ff 55%, #3d7ef5 100%);
  box-shadow: inset 0 -5px 0 rgba(13, 47, 143, .25), inset 0 3px 0 rgba(255, 255, 255, .55), 0 10px 20px -10px rgba(18, 56, 168, .6);
}
.medal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .55); }
.badge.locked .medal { background: var(--empty); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .05); }
.badge.locked .medal::after { border-color: var(--line); }
.badge.locked .medal span { filter: grayscale(1); opacity: .35; }
.badge b { font: 800 13.5px/1.15 var(--f-head); color: var(--head); letter-spacing: -.01em; }
.badge.locked b { color: var(--muted); }
.badge .mini { width: 60px; height: 5px; }
.badge .prog { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: -4px; }
.badge.new .medal { animation: medalIn .8s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes medalIn { from { transform: scale(.2) rotate(-180deg); opacity: 0; } }

/* ---------- profile ---------- */
.me-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, #6fa2ff, #1d4fd8); color: #fff; font: 900 24px/1 var(--f-head); flex: none; }
.me-head h2 { font-size: 22px; font-weight: 800; }
.me-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.list { display: grid; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); min-height: 58px; }
.li:first-child { border-top: 0; padding-top: 2px; }
.li > :last-child:not(.lbl) { flex: none; }
.li .lbl b { display: block; font-weight: 600; font-size: 15px; color: var(--head); }
.li .lbl small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.field {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--panel);
  font-size: 16px; font-weight: 500; color: var(--head); outline: none; transition: border-color .15s;
}
.field:focus { border-color: var(--brand); }
.field.inline { width: 150px; min-height: 42px; text-align: right; }
.field.time { width: 128px; min-height: 42px; padding: 0 10px; text-align: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); font: 800 18px/1 var(--f-head); color: var(--head); box-shadow: 0 0 0 1px var(--ring); }
.stepper output { min-width: 34px; text-align: center; font: 800 16px/1 var(--f-head); color: var(--head); font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--empty); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + i { background: #2f6cf0; }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--brand); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--head); box-shadow: 0 0 0 1px var(--ring), 0 2px 6px -2px rgba(10, 40, 90, .2); }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 0 0; }
.foot b { font-family: var(--f-head); font-weight: 900; color: var(--head); letter-spacing: -.03em; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 12px); width: min(448px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--ring), 0 14px 34px -14px rgba(10, 40, 90, .35);
}
.tab { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 999px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .01em; transition: background .2s, color .2s; }
.tab.dot::after { content: ""; position: absolute; top: 6px; right: calc(50% - 17px); width: 9px; height: 9px; border-radius: 50%; background: #ff4f8b; box-shadow: 0 0 0 2px var(--panel); }
.tab svg { width: 22px; height: 22px; }
.tab.on { background: var(--fill); color: var(--fill-ink); }

/* ---------- sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(6, 18, 52, .42); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: min(480px, 100%); max-height: 92dvh; overflow: auto;
  transform: translate(-50%, 104%); transition: transform .32s cubic-bezier(.2, 1, .3, 1);
  background: var(--panel); border-radius: 30px 30px 0 0; padding: 10px 20px calc(env(safe-area-inset-bottom) + 22px);
  box-shadow: 0 -20px 50px -20px rgba(6, 18, 52, .4); outline: none;
}
.sheet-root.show .backdrop { opacity: 1; }
.sheet-root.show .sheet { transform: translate(-50%, 0); }
.grab { width: 40px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 16px; }
.sheet h3 { font-size: 22px; font-weight: 800; text-align: center; }
.sheet .sub { text-align: center; color: var(--muted); margin: 6px 0 18px; }
.sheet .moods .mood { background: var(--soft); }
.sheet .moods .mood small { color: var(--muted); }
.sheet .moods .mood.on { background: #2f6cf0; }
.sheet .moods .mood.on small { color: #fff; }
.sheet .moods.off { opacity: .35; pointer-events: none; }
.sheet .seg { display: flex; margin: 0 auto; max-width: 320px; }
.sheet .seg button { flex: 1; padding: 12px; font-size: 14px; }
.sheet .label { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 0; }
.sheet .btn.xl { margin-top: 22px; }
.sheet .big-medal { display: grid; place-items: center; margin: 6px 0 14px; }
.sheet .big-medal .medal { width: 120px; height: 120px; font-size: 56px; }
.sheet .stack { display: grid; gap: 10px; margin-top: 18px; }
.share-prev { display: block; width: 62%; margin: 0 auto; border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 9 / 16; object-fit: cover; background: var(--soft); }

/* ---------- toast / fx ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -140%);
  padding: 12px 18px; border-radius: 999px; background: var(--fill); color: var(--fill-ink); font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 30px -12px rgba(6, 18, 52, .5); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); white-space: nowrap; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }

/* ---------- onboarding ---------- */
.onboarding {
  position: fixed; inset: 0; z-index: 40; overflow: auto;
  background: linear-gradient(180deg, #86c3ff 0%, #cfe9ff 45%, #eef6fb 100%); color-scheme: light;
}
.ob-inner { max-width: 440px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 24px) 22px calc(env(safe-area-inset-bottom) + 26px); }
.ob-dots { display: flex; gap: 6px; justify-content: center; }
.ob-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(16, 39, 94, .2); transition: width .3s, background .3s; }
.ob-dots i.on { width: 26px; background: #10275e; }
.ob-step { flex: 1; display: flex; flex-direction: column; animation: viewIn .4s ease both; }
.ob-step h1 { font-size: 36px; font-weight: 900; line-height: 1.02; color: #10275e; margin-top: 8px; }
.ob-step h1 span { color: #2f6cf0; }
.ob-step > p { font-size: 16px; color: #2c4a8f; margin: 12px 0 0; }
.ob-bear { display: grid; place-items: center; margin: 26px 0 12px; }
.ob-bear .bear { width: 190px; }
.ob-spacer { flex: 1; min-height: 24px; }
.ob-step .btn.xl { background: #10275e; color: #fff; }
.ob-step .link-btn { color: #2c4a8f; align-self: center; }
.ob-step .ob-login { margin-top: 12px; font-size: 14.5px; font-weight: 700; color: #10275e; }
.ob-card { margin-top: 22px; background: var(--panel); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.ob-q { font: 700 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { padding: 14px 12px; border-radius: 18px; background: var(--soft); text-align: left; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.choice b { display: block; font-size: 22px; line-height: 1; }
.choice span { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--head); }
.choice small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.choice.on { border-color: #2f6cf0; background: color-mix(in oklch, #2f6cf0 10%, var(--panel)); }
.ob-big-input { margin-top: 26px; min-height: 60px; font: 800 22px/1 var(--f-head); text-align: center; border-radius: 20px; }

/* ---------- banner, hero links, game card ---------- */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 18px;
  background: linear-gradient(120deg, #1d4fd8, #2f6cf0); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(29, 79, 216, .8);
}
.greet + .banner { margin-bottom: 14px; }
.hero-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.game-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #10275e, #1d4fd8); color: #fff; overflow: hidden; position: relative; }
.game-card::after { content: ""; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 210, 255, .35), transparent 70%); }
.game-card .game-ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .14); }
.game-card .game-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.game-card .game-body b { font: 800 18px/1.1 var(--f-head); letter-spacing: -.02em; }
.game-card .game-body p { margin: 4px 0 0; font-size: 13px; color: #c8d8ff; }
.game-card .game-body p b { font: inherit; color: #fff; font-weight: 700; }
.game-card .btn { background: #fff; color: #10275e; position: relative; z-index: 1; }
.game-card.locked { background: var(--panel); color: var(--text); }
.game-card.locked::after { display: none; }
.game-card.locked .game-ico { background: var(--soft); }
.game-card.locked .game-body p { color: var(--muted); }

/* ---------- club ---------- */
.offer { display: flex; gap: 14px; align-items: flex-start; }
.offer-ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: var(--soft); }
.offer-body { flex: 1; min-width: 0; }
.offer-body h2 { font-size: 18px; font-weight: 800; line-height: 1.15; }
.offer-body p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.offer-meta { color: var(--warn-ink) !important; font-weight: 600; }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.code {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 14px; border-radius: 12px;
  border: 1.5px dashed var(--brand); background: color-mix(in oklch, var(--brand) 8%, var(--panel));
}
.code span { font: 800 15px/1 var(--f-head); letter-spacing: .06em; color: var(--head); }
.code small { font-size: 11px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .08em; }
.rewards .reward { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rewards .reward:first-of-type { border-top: 0; padding-top: 0; }
.reward-badge { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--empty); color: var(--muted); }
.reward-badge b { font: 900 20px/1 var(--f-head); }
.reward-badge small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.reward.open .reward-badge { background: radial-gradient(circle at 35% 30%, #d8ecff, #8fc0ff 55%, #3d7ef5); color: #10275e; box-shadow: 0 8px 18px -10px rgba(18, 56, 168, .7); }
.reward-body { flex: 1; min-width: 0; }
.reward-body > b { display: block; font: 800 16px/1.2 var(--f-head); color: var(--head); }
.reward-body p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.reward-body .meter { margin-top: 10px; height: 8px; }
.reward-body .btn { margin-top: 10px; }
.reward-left { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.muted-note { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- journal ---------- */
.day .nd { position: absolute; bottom: 1px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff7aa8; }
.insight { padding: 12px 14px; border-radius: 16px; background: color-mix(in oklch, var(--brand) 10%, var(--panel)); font-size: 14px; margin-bottom: 12px; }
.insight b { color: var(--head); }
.entries { display: grid; }
.entry { display: flex; gap: 12px; text-align: left; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; }
.entry:first-child { border-top: 0; padding-top: 2px; }
.entry-mood { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--soft); }
.entry-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.entry-body b { font-size: 13px; color: var(--head); }
.entry-body b::first-letter { text-transform: uppercase; }
.entry-note { font-size: 14px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-tags { font-size: 12px; color: var(--muted); }
.sheet .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.tag { padding: 8px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--head); border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.tag.on { background: color-mix(in oklch, #2f6cf0 14%, var(--panel)); border-color: #2f6cf0; }
.sheet .label[for] { display: block; }
.note {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--panel); color: var(--head); font: 500 15px/1.45 var(--f-body); resize: vertical; min-height: 96px; outline: none;
}
.note:focus { border-color: var(--brand); }
.sheet .fine { text-align: center; }

/* ---------- account ---------- */
.acc-ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(150deg, #d8ecff, #9fd2ff); }
.acc-form { display: grid; gap: 6px; margin-top: 4px; }
.acc-form .label { text-align: left; margin: 6px 0 0; }
.acc-form .btn.xl { margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--text); text-align: left; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #2f6cf0; }
.err { min-height: 1.3em; margin: 4px 0 0; color: var(--warn-ink); font-size: 13.5px; font-weight: 600; text-align: center; }
.code-input { text-align: center; font: 800 30px/1 var(--f-head); letter-spacing: .4em; min-height: 64px; padding-left: .4em; }
.spam-hint {
  display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; padding: 12px 14px; border-radius: 16px; text-align: left;
  background: oklch(96% .05 85); color: oklch(38% .09 70); font-size: 13.5px; line-height: 1.45;
}
.spam-hint > span:first-child { font-size: 18px; line-height: 1.2; }
.spam-hint b { color: oklch(30% .09 70); }
:root[data-theme="dark"] .spam-hint { background: oklch(30% .06 75); color: oklch(88% .07 85); }
:root[data-theme="dark"] .spam-hint b { color: oklch(95% .05 85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .spam-hint { background: oklch(30% .06 75); color: oklch(88% .07 85); }
  :root:not([data-theme="light"]) .spam-hint b { color: oklch(95% .05 85); }
}
.acc-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sheet .link-btn { color: var(--brand-ink); }
.sheet .later { display: block; margin: 6px auto 0; }
.inline-link { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.privacy { font-size: 14.5px; margin-top: 10px; }
.privacy p { margin: 10px 0 0; }
.privacy ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.acc-prompt { display: flex; gap: 14px; align-items: flex-start; position: relative; border: 1.5px solid color-mix(in oklch, var(--brand) 40%, transparent); }
.acc-prompt .acc-ico { margin: 0; flex: none; width: 46px; height: 46px; font-size: 23px; border-radius: 15px; }
.acc-prompt-body { flex: 1; min-width: 0; padding-right: 22px; }
.acc-prompt-body b { font: 800 17px/1.2 var(--f-head); color: var(--head); letter-spacing: -.02em; }
.acc-prompt-body p { margin: 4px 0 10px; font-size: 13.5px; color: var(--muted); }
.acc-prompt .x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.acc-prompt .x svg { width: 16px; height: 16px; }
.acc-card { text-align: center; display: grid; justify-items: center; gap: 6px; }
.acc-card .acc-ico { margin: 0 0 4px; }
.acc-card b { font: 800 19px/1.2 var(--f-head); color: var(--head); }
.acc-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; max-width: 320px; }
.pill-ok { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: color-mix(in oklch, #2f6cf0 12%, var(--panel)); color: var(--brand-ink); white-space: nowrap; }

/* ---------- game ---------- */
.game { position: fixed; inset: 0; z-index: 65; background: #86c3ff; touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: contain; }
.g-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: calc(env(safe-area-inset-top) + 12px) 16px 0; pointer-events: none; color: #10275e; }
.g-score b { display: block; font: 900 40px/1 var(--f-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.g-score small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2c4a8f; }
.g-mid { display: grid; justify-items: center; gap: 4px; padding-top: 6px; }
.g-mult { padding: 5px 10px; border-radius: 999px; background: #ffc94d; color: #4a3200; font: 800 13px/1 var(--f-head); }
.g-combo { font: 800 14px/1 var(--f-head); color: #1d4fd8; }
.g-right { display: flex; align-items: center; gap: 10px; }
.g-lives { font-size: 20px; letter-spacing: 2px; }
.g-x { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: #10275e; font-size: 16px; font-weight: 800; }
.g-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 32px));
  background: #fff; color: #10275e; border-radius: 28px; padding: 24px 22px 18px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(6, 18, 52, .45); animation: popIn .35s cubic-bezier(.3, 1.5, .5, 1) both;
}
.g-panel h2 { font-size: 32px; font-weight: 900; color: #10275e; }
.g-panel p { margin: 8px 0 0; color: #2c4a8f; font-size: 14.5px; }
.g-panel .btn { margin-top: 16px; }
.g-panel .btn.xl { background: #10275e; color: #fff; }
.g-panel .btn.ghost { background: #eaf3fd; color: #10275e; margin-top: 8px; }
.g-panel .link-btn { color: #2c4a8f; }
.g-legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.g-legend li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: #eef6fd; font-size: 12px; font-weight: 600; line-height: 1.25; min-width: 0; }
.g-legend li div { min-width: 0; }
.g-legend li span { font-size: 20px; }
.g-legend li svg { width: 22px; height: 22px; flex: none; }
.g-legend b { display: block; color: #1d4fd8; }
.g-best { font-weight: 600; }
.g-tip { font-size: 12px !important; color: #6b7fae !important; }
.g-record { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #ffc94d; color: #4a3200; font: 800 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 700px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, var(--bg-2), var(--bg)); }
}
