/* My EduGrow app (/my). Brand: white canvas, ink #0d1a21, teal #1e3a47, pink #e0175b.
   Pattern language adapted from neo-brutalist fintech apps: hard-edged cards with an offset ink edge,
   buttons that sink when pressed, dark hero cards with one bright accent. */
@font-face { font-family: "Big Shoulders"; font-weight: 100 900; font-display: swap; src: url(/fonts/big-shoulders-display-700.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap; src: url(/fonts/source-sans-3-400.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); }
:root {
  --ink: #0d1a21; --teal: #1e3a47; --pink: #e0175b; --pink-d: #9e0f40; --gold: #f6b52a; --gold-d: #c98a0c;
  --grey: #5c6870; --mute: #8a959c; --line: #dce2e6; --soft: #f6f3f4; --mint: #eaf7f1; --white: #fff;
  --nav: 68px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --edge: 4px 4px 0 var(--ink); --r: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #e9edf0; }
body { color: var(--ink); font: 400 16px/1.45 "Source Sans 3", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
.noscript { padding: 24px; }
#app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(13,26,33,.35); overflow-x: clip; }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--grey); }
.boot img { border-radius: 18px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* type */
.h1, .h2, .h3 { font-family: "Big Shoulders", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .95; }
.h1 { font-size: 40px; } .h2 { font-size: 28px; } .h3 { font-size: 21px; }
.mono { font-family: "Plex Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.pink { color: var(--pink); } .muted { color: var(--grey); } .small { font-size: 14px; }
.eyebrow { font-family: "Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--safe-t)) 14px 6px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .logo img { height: 58px; width: auto; }
.top .logo { flex: none; margin-left: -6px; }
.top .title { font-family: "Big Shoulders"; font-weight: 900; font-size: 21px; text-transform: uppercase; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.iconbtn:active { background: var(--soft); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
.coinpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border: 2px solid var(--ink); border-radius: 30px; font: 500 14px "Plex Mono", monospace; box-shadow: 2px 2px 0 var(--ink); background: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 900 17px "Big Shoulders"; text-transform: uppercase; border: 2px solid var(--ink); }
.avatar.lg { width: 76px; height: 76px; font-size: 34px; box-shadow: var(--edge); }

/* coin */
.coin { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: radial-gradient(circle at 35% 30%, #ffe27a, var(--gold) 55%, var(--gold-d)); box-shadow: inset 0 0 0 2px rgba(201,138,12,.6); color: #8a5a00; font: 900 12px "Big Shoulders"; }
.coin.xl { width: 116px; height: 116px; font-size: 54px; box-shadow: inset 0 0 0 7px rgba(201,138,12,.55), inset 0 -10px 0 rgba(201,138,12,.25), 0 16px 30px -14px rgba(0,0,0,.6); animation: spin 6s ease-in-out infinite; }
@keyframes spin { 0%, 80%, 100% { transform: rotateY(0); } 90% { transform: rotateY(180deg); } }

/* layout */
.screen { padding: 16px 16px calc(var(--nav) + 90px + var(--safe-b)); animation: in .28s ease-out; }
.screen.noNav { padding-bottom: calc(40px + var(--safe-b)); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-h a, .sec-h button { font-weight: 700; color: var(--pink); font-size: 14px; text-decoration: none; }

/* cards */
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--edge); padding: 16px; position: relative; }
.card.flat { box-shadow: none; border-color: var(--line); }
.card.tap { transition: transform .12s, box-shadow .12s; text-decoration: none; display: block; }
.card.tap.row { display: flex; }
.card.tap.row .chev { margin-left: auto; color: var(--mute); }
.card.tap:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.card.soft { background: var(--soft); }
.hero { background: var(--ink); color: #fff; border-radius: 14px; padding: 22px 20px; position: relative; overflow: hidden; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 85% 60%, #9fd 50%, transparent 52%), radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 60% 50%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 10% 70%, #fff 50%, transparent 52%); opacity: .6; pointer-events: none; }
.hero.teal { background: var(--teal); }
.hero .big { font: 900 54px/1 "Big Shoulders"; }
.hero .muted { color: #b9c6cd; }
.hero .clouds { position: absolute; left: -10px; right: -10px; bottom: -30px; height: 70px; background: radial-gradient(40px 30px at 10% 60%, #fff 98%, transparent), radial-gradient(60px 40px at 30% 70%, #fff 98%, transparent), radial-gradient(50px 34px at 55% 70%, #fff 98%, transparent), radial-gradient(70px 44px at 80% 70%, #fff 98%, transparent), radial-gradient(40px 30px at 98% 55%, #fff 98%, transparent); opacity: .95; }
.hero .art { position: absolute; right: 18px; top: 50%; transform: translateY(-60%); }
.hero .info { position: absolute; right: 12px; top: 12px; color: #fff; z-index: 2; }
.hero > * { position: relative; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: var(--r); background: var(--pink); color: #fff; font-weight: 700; font-size: 16px; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; text-decoration: none; position: relative; overflow: hidden; width: 100%; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 85% { left: -60%; } 100% { left: 130%; } }
.btn.ink { background: var(--ink); } .btn.ink::after, .btn.ghost::after, .btn.wa::after { display: none; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.wa { background: #1fae54; }
.btn.sm { min-height: 40px; font-size: 14px; padding: 0 14px; width: auto; box-shadow: 0 3px 0 var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--pink); font-weight: 700; text-decoration: none; }

/* forms */
.field { display: block; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; background: #fff; font-size: 16px; outline: none; }
.field input:focus, .field select:focus { box-shadow: 3px 3px 0 var(--pink); }
.field small { display: block; color: var(--grey); margin-top: 5px; font-size: 13px; }
.pw { position: relative; } .pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--grey); font-size: 13px; font-weight: 700; padding: 8px; }
.err { background: #fde8ef; color: #9e0f40; border: 2px solid var(--pink); border-radius: var(--r); padding: 10px 12px; font-size: 14px; font-weight: 600; }
.ok { background: var(--mint); color: #0b6b45; border: 2px solid #1fae54; border-radius: var(--r); padding: 10px 12px; font-size: 14px; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 30px; font-weight: 700; font-size: 14px; background: #fff; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 30px; padding: 0 14px; min-height: 48px; box-shadow: 3px 3px 0 var(--ink); }
.search input { border: 0; outline: 0; flex: 1; font-size: 16px; min-width: 0; background: none; }
.search svg { width: 20px; height: 20px; color: var(--grey); }

/* auth */
.auth { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(24px + var(--safe-t)) 22px calc(28px + var(--safe-b)); }
.auth .logo img { height: 64px; width: auto; }
.auth h1 { margin: 28px 0 8px; }
.auth form > * + * { margin-top: 14px; }
.auth .alt { margin-top: 18px; text-align: center; color: var(--grey); }
.auth .back { margin-left: -10px; }
.welcome { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; color: var(--ink); padding: calc(20px + var(--safe-t)) 22px calc(26px + var(--safe-b)); position: relative; overflow: hidden; }
.welcome .slides { flex: 1; display: grid; }
.welcome .slide { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(30px); transition: .4s; pointer-events: none; }
.welcome .slide.on { opacity: 1; transform: none; pointer-events: auto; }
.welcome .slide .art { font-size: 92px; line-height: 1; margin-bottom: 26px; filter: drop-shadow(0 10px 18px rgba(13,26,33,.2)); }
.welcome .slide h2 { font: 900 46px/.92 "Big Shoulders"; text-transform: uppercase; }
.welcome .slide p { color: var(--grey); margin-top: 12px; font-size: 17px; }
.welcome .dots { display: flex; gap: 6px; margin: 18px 0; }
.welcome .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: .3s; }
.welcome .dots i.on { width: 26px; background: var(--pink); }
.welcome .btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); margin-top: 12px; }
.welcome .skip { color: var(--teal); text-align: center; margin-top: 14px; font-weight: 600; }
.welcome img.wl { height: 116px; margin-left: -8px; width: auto; align-self: flex-start; object-fit: contain; }

/* bottom nav */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 2px solid var(--ink); padding-bottom: var(--safe-b); }
.nav a { height: var(--nav); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--mute); font-size: 11px; font-weight: 700; letter-spacing: .02em; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--ink); }
.nav a.on::before { content: ""; position: absolute; top: -2px; left: 22%; right: 22%; height: 4px; background: var(--pink); }
.fab { position: fixed; z-index: 29; right: max(16px, calc(50% - 240px + 16px)); bottom: calc(var(--nav) + 16px + var(--safe-b)); width: 56px; height: 56px; border-radius: 50%; background: #1fae54; color: #fff; display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.fab svg { width: 28px; height: 28px; }
.fab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* home */
.greet { display: flex; align-items: flex-end; justify-content: space-between; }
.greet small { color: var(--grey); display: block; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--pink) calc(var(--p) * 1%), #33434c 0); display: grid; place-items: center; flex: none; }
.ring b { width: 66px; height: 66px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font: 900 24px "Big Shoulders"; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0; }
.week div { text-align: center; font-size: 11px; font-weight: 700; color: var(--grey); }
.week i { display: grid; place-items: center; margin: 4px auto 0; width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line); font-style: normal; font-size: 16px; }
.week i.done { border: 2px solid var(--ink); background: var(--gold); }
.week i.today { border-color: var(--pink); border-style: solid; }
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa a, .qa button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; text-align: center; line-height: 1.15; }
.qa a:active, .qa button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.qa .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.qa .ic svg { width: 22px; height: 22px; }
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: 200px; scroll-snap-align: start; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; }
.dcard img { width: 100%; height: 110px; object-fit: cover; }
.dcard div { padding: 10px 12px 12px; }
.dcard b { display: block; font: 900 20px "Big Shoulders"; text-transform: uppercase; }
.dcard small { color: var(--grey); font-size: 13px; }
.post { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid var(--ink); }
.post b { display: block; font-size: 15px; line-height: 1.2; }
.post small { color: var(--grey); font-size: 12px; }
.post .earn { color: var(--gold-d); font-weight: 700; }
.post .read { color: #1fae54; font-weight: 700; }

/* explore */
.dest { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 10px; }
.dest img { width: 96px; height: 78px; object-fit: cover; border-radius: 6px; }
.dest b { font: 900 21px "Big Shoulders"; text-transform: uppercase; display: block; }
.dest small { display: block; color: var(--grey); font-size: 13px; line-height: 1.25; }
.heart { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; background: #fff; }
.heart svg { width: 20px; height: 20px; }
.heart.on { background: var(--pink); color: #fff; }
.cover { margin: -16px -16px 0; height: 220px; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(13,26,33,.85)); }
.cover h1 { position: absolute; left: 16px; bottom: 14px; color: #fff; z-index: 1; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { border: 2px solid var(--line); border-radius: var(--r); padding: 12px; }
.fact small { display: block; font-family: "Plex Mono"; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.fact b { font-size: 15px; line-height: 1.25; display: block; margin-top: 4px; }
.list { list-style: none; }
.list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border-radius: 6px; background: var(--soft); font-size: 13px; font-weight: 600; }
table.costs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.costs td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.costs td:last-child { text-align: right; font-weight: 700; padding-left: 10px; }

/* journey */
.stepper { display: flex; gap: 4px; }
.stepper i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.stepper i.on { background: var(--pink); }
.app-card .stage { display: inline-block; padding: 4px 10px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.app-card h3 { font-size: 18px; line-height: 1.2; margin: 8px 0 2px; }
.docgroup { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.docgroup + .docgroup { margin-top: 12px; }
.docgroup summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; font-weight: 800; cursor: pointer; }
.docgroup summary::-webkit-details-marker { display: none; }
.docgroup summary .bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.docgroup summary .bar i { display: block; height: 100%; background: #1fae54; }
.docgroup label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.docgroup input { appearance: none; flex: none; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; display: grid; place-items: center; margin-top: 1px; }
.docgroup input:checked { background: #1fae54; }
.docgroup input:checked::after { content: "✓"; color: #fff; font-weight: 900; font-size: 15px; }
.docgroup input:checked + span { color: var(--grey); text-decoration: line-through; }

/* prep */
.band { display: flex; align-items: center; gap: 14px; }
.band .score { font: 900 46px/1 "Big Shoulders"; }
.meter { height: 12px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--soft); position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--pink); }
.meter b { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--pink); }
.quiz .opt { display: block; width: 100%; text-align: left; padding: 14px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; font-weight: 600; box-shadow: 3px 3px 0 var(--ink); }
.quiz .opt + .opt { margin-top: 10px; }
.quiz .opt.right { background: #d9f5e5; border-color: #0b6b45; }
.quiz .opt.wrong { background: #fde8ef; border-color: var(--pink); }
.quiz .opt[disabled] { cursor: default; }
.qprog { display: flex; gap: 4px; margin-bottom: 18px; }
.qprog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.qprog i.r { background: #1fae54; } .qprog i.w { background: var(--pink); } .qprog i.c { background: var(--ink); }

/* rewards */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: -16px -16px 20px; position: sticky; top: var(--toph, 60px); background: #fff; z-index: 5; }
.tabs button { padding: 14px 0; font-size: 17px; color: var(--mute); font-weight: 600; position: relative; }
.tabs button.on { color: var(--teal); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); }
.deal { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; text-align: center; }
.deal .body { padding: 18px 12px 14px; flex: 1; }
.deal .body .ic { font-size: 34px; margin-bottom: 8px; }
.deal .body b { display: block; font-size: 16px; line-height: 1.15; }
.deal .body span { display: block; font-size: 13px; color: var(--grey); margin-top: 6px; line-height: 1.25; }
.deal.can .body { background: #ecfbe3; }
.deal .use svg { width: 16px; height: 16px; }
.deal .use { border-top: 2px solid var(--ink); padding: 12px; font-weight: 800; color: var(--teal); display: flex; align-items: center; justify-content: center; gap: 6px; }
.deal.lock .use { color: var(--mute); }
.badge { border: 2px solid var(--line); border-radius: 14px; padding: 16px 6px 12px; text-align: center; background: #fff; }
.badge .hex { width: 76px; height: 76px; margin: 0 auto 10px; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); display: grid; place-items: center; font-size: 34px; position: relative; }
.badge.got { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.badge.got .hex { box-shadow: inset 0 0 0 4px var(--gold); }
.badge:not(.got) .hex { filter: blur(3px) saturate(.6); opacity: .55; }
.badge .lockic { position: absolute; margin: -66px auto 0; left: 0; right: 0; width: 26px; height: 26px; color: #4d5a61; }
.badge b { font-size: 14px; display: block; } .badge:not(.got) b { color: var(--mute); }
.badge-wrap { position: relative; }
.earnlist li { align-items: center; }
.earnlist li .c { margin-left: auto; display: flex; align-items: center; gap: 4px; font: 500 14px "Plex Mono"; white-space: nowrap; }
.earnlist li.done { color: var(--mute); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 6px; background: var(--soft); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--grey); }
.cal i.on { background: var(--gold); color: var(--ink); font-weight: 800; border: 2px solid var(--ink); }
.cal i.today { outline: 2px solid var(--pink); outline-offset: 1px; }
.ledger li { justify-content: space-between; }
.ledger .plus { color: #0b8a50; font: 500 14px "Plex Mono"; } .ledger .minus { color: var(--pink); font: 500 14px "Plex Mono"; }

/* sheet, toast, burst */
.scrim { position: fixed; inset: 0; background: rgba(13,26,33,.55); z-index: 50; opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 100%); background: #fff; z-index: 51; border-radius: 18px 18px 0 0; border: 2px solid var(--ink); border-bottom: 0; padding: 10px 18px calc(22px + var(--safe-b)); transition: transform .3s cubic-bezier(.2,.9,.3,1.15); max-height: 88dvh; overflow-y: auto; }
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet > * + * { margin-top: 14px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav) + 86px + var(--safe-b)); transform: translate(-50%, 40px); opacity: 0; background: var(--ink); color: #fff; border-radius: 40px; padding: 10px 18px 10px 10px; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 3px 3px 0 var(--pink); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast .coin { width: 30px; height: 30px; font-size: 15px; }
.burst { position: fixed; z-index: 61; pointer-events: none; font-size: 22px; animation: fly .9s ease-out forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.empty { text-align: center; padding: 26px 10px; color: var(--grey); }
.empty .art { font-size: 46px; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv b { text-align: right; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; text-align: left; }
.menu svg { width: 20px; height: 20px; }
.menu .chev { margin-left: auto; color: var(--mute); white-space: nowrap; font-size: 13px; font-weight: 500; width: auto; height: auto; }
.menu .chev svg { width: 18px; height: 18px; }
.notice { font-size: 12px; color: var(--grey); line-height: 1.4; display: flex; gap: 8px; }
.notice svg { width: 16px; height: 16px; margin-top: 1px; }
.chev, .chev svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 520px) { #app { margin-top: 0; } }

.welcome::before { content: ""; position: absolute; right: -80px; top: 18%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(224,23,91,.12), transparent 70%); pointer-events: none; }
