@font-face { font-family: "Work Sans"; src: url("/WorkSans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #000; --ink: #f4f6f8; --mute: #8d959e; --dim: #5b626a;
  --card: rgba(255,255,255,.055); --card2: rgba(255,255,255,.09); --line: rgba(255,255,255,.1);
  --glow: #5cc8ff; --glow2: #1f7fd6; --good: #5fe3a1; --warn: #ffb65c; --bad: #ff6b6b;
  --r: 22px; --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; min-height: 100dvh; overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; }
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
#app { max-width: 460px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* ---------- logo intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .45s ease; }
.intro.out { opacity: 0; pointer-events: none; }
.intro img { width: 46vw; max-width: 210px; animation: logoin 1.1s cubic-bezier(.2,.7,.2,1) both; }
.intro i { position: absolute; width: 60vw; max-width: 280px; height: 1px; margin-top: 78px; background: linear-gradient(90deg, transparent, var(--glow), transparent); animation: linein 1.1s .15s ease both; }
@keyframes logoin { from { opacity: 0; transform: scale(.92); filter: blur(8px); letter-spacing: .2em; } to { opacity: 1; transform: none; filter: none; } }
@keyframes linein { from { opacity: 0; transform: scaleX(.1); } 60% { opacity: 1; } to { opacity: 0; transform: scaleX(1); } }

/* ---------- shared pieces ---------- */
.btn { display: block; width: 100%; padding: 17px 20px; border-radius: 999px; font-weight: 600; font-size: 16.5px; text-align: center; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.975); }
.btn.primary { background: var(--ink); color: #000; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--bad); color: #000; }
.btn[disabled] { opacity: .6; }
.btn + .btn { margin-top: 10px; }
.lead { color: var(--mute); font-size: 16.5px; margin-top: 10px; }
.fine { color: var(--dim); font-size: 13px; text-align: center; margin-top: 16px; line-height: 1.5; }
.fine.left { text-align: left; margin-top: 10px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; font-size: 14.5px; color: #cfd5db; margin: 14px 0; }
.note.warn { border-color: rgba(255,182,92,.4); color: #ffd9a8; }
.note.good { border-color: rgba(95,227,161,.4); color: #c9f7df; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--bot)); transform: translateX(-50%); z-index: 90; background: #f4f6f8; color: #000; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; max-width: 86vw; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: up .25s ease; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- the Flask on its stage ---------- */
.stage { position: absolute; inset: 0; overflow: hidden; background:
  radial-gradient(60% 46% at 56% 60%, rgba(60,160,255,.22), transparent 70%),
  radial-gradient(90% 30% at 50% 100%, rgba(92,200,255,.10), transparent 70%), #000; }
.stage.tall { position: relative; height: 46dvh; min-height: 300px; }
.flaskwrap { position: absolute; left: 57%; bottom: 14%; height: 78%; aspect-ratio: 292 / 843; transform: translateX(-50%); animation: float 7s ease-in-out infinite; }
.stage.tall .flaskwrap { left: 50%; height: 86%; bottom: 4%; }
.flask { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 40px rgba(40,140,255,.28)); }
@keyframes float { 50% { transform: translateX(-50%) translateY(-6px); } }
.window { position: absolute; left: 47.500%; top: 21%; width: 38.500%; height: 54%; overflow: hidden; border-radius: 14% / 5%; mix-blend-mode: screen; }
.window b { position: absolute; bottom: -8px; left: var(--x); width: var(--w); height: var(--w); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(190,235,255,.5)); opacity: .9; animation: rise var(--d) linear infinite; animation-delay: var(--l); }
@keyframes rise { from { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: .9; } 50% { transform: translate(3px, -22vh); } to { transform: translate(-2px, -46vh) scale(1.1); opacity: 0; } }
.hero.party .window b { animation-duration: .9s; }
.hero.party .flask { filter: drop-shadow(0 0 46px rgba(92,200,255,.75)); transition: filter .4s; }

.hot { position: absolute; left: 15%; top: 77.500%; width: 44px; height: 44px; margin: -22px; display: grid; place-items: center; z-index: 3; }
.hot.free { margin: -22px; }
.hot i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 20px rgba(255,255,255,0); } }
.hot span { position: absolute; right: calc(100% + 26px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hot span::after { content: ""; position: absolute; left: 100%; top: 50%; width: 34px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.2)); }

/* ---------- welcome, sign-in, questions ---------- */
.first { min-height: 100dvh; display: flex; flex-direction: column; }
.firstbody { padding: 6px 24px calc(28px + var(--bot)); flex: 1; display: flex; flex-direction: column; }
.wordmark { width: 92px; opacity: .9; margin-bottom: 18px; }
.firstbody .btn.primary { margin-top: 26px; }
.trio { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; }
.trio div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.trio svg { width: 24px; height: 24px; color: var(--ink); }
.form { padding: calc(14px + var(--top)) 24px calc(28px + var(--bot)); min-height: 100dvh; display: flex; flex-direction: column; }
.form h1 { margin-top: 18px; }
.back { width: 40px; height: 40px; display: grid; place-items: center; margin-left: -10px; }
.back svg { width: 24px; height: 24px; transform: rotate(180deg); }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--mute); margin-top: 22px; letter-spacing: .02em; }
.form input, input.big { display: block; width: 100%; margin-top: 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 17px; outline: none; -webkit-user-select: text; user-select: text; }
.form input:focus { border-color: var(--glow); }
input.big { margin: 26px 0 18px; font-size: 22px; padding: 20px; }
.form > .btn.primary { margin-top: 26px; }
.dots { display: flex; gap: 6px; margin-top: 6px; }
.dots i { height: 3px; flex: 1; border-radius: 3px; background: var(--card2); }
.dots i.on { background: var(--ink); }
.opts { display: grid; gap: 10px; margin-top: 24px; }
.card .opts { margin-top: 4px; }
.opt { text-align: left; padding: 17px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 16.5px; transition: transform .12s, border-color .2s, background .2s; }
.opt:active { transform: scale(.98); }
.opt.on { border-color: var(--ink); background: var(--card2); }
.opt.two b { display: block; font-weight: 600; }
.opt.two span { display: block; font-weight: 400; color: var(--mute); font-size: 14px; margin-top: 2px; }
.opt.slim { padding: 13px 16px; font-size: 15px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pair .opt { text-align: center; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper.wide { margin: 34px 0 30px; }
.stepper button { width: 54px; height: 54px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.stepper button:active { transform: scale(.94); }
.stepper svg { width: 22px; height: 22px; }
.stepper div { text-align: center; }
.stepper b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1.1; }
.stepper span { color: var(--mute); font-size: 14px; }
.stepper.small button { width: 38px; height: 38px; }
.stepper.small b { font-size: 17px; min-width: 86px; letter-spacing: -.01em; }
.stepper.small svg { width: 17px; height: 17px; }
.building { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 30px; }
.ring.spin { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--card2); border-top-color: var(--glow); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan { margin: 26px 0 6px; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:last-child { border: 0; }
.row span { color: var(--mute); } .row b { font-weight: 600; text-align: right; }
.appicon { width: 76px; height: 76px; border-radius: 18px; border: 1px solid var(--line); margin-top: 14px; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: #cfd5db; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #000; font-weight: 700; display: grid; place-items: center; flex: none; font-size: 14px; }
.steps b { color: var(--ink); }
.install .btn.ghost { margin-top: auto; }
.pointer { position: fixed; right: 22px; bottom: calc(18px + var(--bot)); width: 44px; height: 44px; border-radius: 50%; background: var(--glow); color: #000; display: grid; place-items: center; animation: bob 1.4s ease-in-out infinite; pointer-events: none; opacity: .0; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- main app ---------- */
.screen { min-height: 100dvh; }
.hero { position: relative; height: 56dvh; min-height: 380px; overflow: hidden; }
.herovid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hello { position: absolute; left: 22px; top: calc(18px + var(--top)); z-index: 2; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hello span { display: block; color: rgba(255,255,255,.72); font-size: 15px; }
.hello b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.herofade { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, #000); pointer-events: none; }
.body { padding: 0 16px calc(104px + var(--bot)); position: relative; }
.body.lift { margin-top: -64px; z-index: 4; }
.body.top { padding-top: calc(22px + var(--top)); }
.card { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 12px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.card p { color: #c3cad1; font-size: 15.5px; margin-top: 6px; }

.counter { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; padding: 18px 14px 14px; background: rgba(18,20,24,.72); }
.round { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); display: grid; place-items: center; transition: transform .12s; }
.round:active { transform: scale(.9); }
.round svg { width: 26px; height: 26px; stroke-width: 2; }
.round.plus { background: var(--ink); color: #000; border-color: var(--ink); box-shadow: 0 0 34px rgba(92,200,255,.35); }
.round[disabled] { opacity: .3; }
.dial { position: relative; width: 148px; height: 148px; display: grid; place-items: center; }
.ringsvg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ringsvg circle { stroke: var(--card2); stroke-width: 7; }
.ringsvg .arc { stroke: var(--glow); transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(92,200,255,.7)); }
.counter.done .arc { stroke: var(--good); filter: drop-shadow(0 0 8px rgba(95,227,161,.7)); }
.num { text-align: center; }
.num b { display: block; font-size: 56px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.num b.pop { animation: pop .3s ease; }
@keyframes pop { 40% { transform: scale(1.22); } }
.num span { font-size: 13px; color: var(--mute); }
.counterline { grid-column: 1 / -1; font-size: 14px; color: var(--mute); margin-top: 8px; }
.counter.done .counterline { color: var(--good); }

.chips { display: flex; gap: 8px; margin-top: 10px; }
.chip { display: flex; align-items: center; gap: 6px; padding: 11px 12px; min-width: 0; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.chip svg { width: 17px; height: 17px; color: var(--mute); flex: none; }
.chip b { font-weight: 600; } .chip span { color: var(--mute); }
.chip.lit svg { color: #ff9a3d; fill: rgba(255,154,61,.25); }
.chip.grow { flex: 1; justify-content: center; min-width: 0; }
.cta { display: flex; align-items: center; gap: 14px; }
.cta > svg:first-child { width: 26px; height: 26px; flex: none; }
.cta > svg:last-child { width: 18px; height: 18px; color: var(--dim); flex: none; }
.cta div { flex: 1; } .cta b { display: block; font-weight: 600; } .cta span { display: block; color: var(--mute); font-size: 13.5px; margin-top: 1px; }
.cta.glow { border-color: rgba(92,200,255,.5); box-shadow: 0 0 30px rgba(92,200,255,.12) inset; }
.fact.big { padding: 24px 20px; background: linear-gradient(160deg, rgba(92,200,255,.16), rgba(255,255,255,.04) 60%); }
.fact.big h3 { font-size: 24px; }
.tick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.tick:last-child { border: 0; padding-bottom: 0; }
.tick i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--dim); display: grid; place-items: center; flex: none; transition: .2s; }
.tick i svg { width: 15px; height: 15px; opacity: 0; stroke-width: 2.6; }
.tick.on { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--dim); }
.tick.on i { background: var(--good); border-color: var(--good); color: #000; } .tick.on i svg { opacity: 1; }
.poll .opt { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; font-size: 15px; }
.poll h3, .quiz h3 { margin-bottom: 6px; }
.bar { position: relative; display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--card); margin-top: 8px; overflow: hidden; font-size: 15px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.1); border-radius: 14px; transition: width .6s; }
.bar.mine i { background: rgba(92,200,255,.3); }
.bar span, .bar b { position: relative; } .bar b { font-weight: 600; }

.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + var(--bot)); background: rgba(8,9,11,.78); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border-top: 1px solid var(--line); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .02em; transition: color .2s; }
.tabs svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--ink); }

/* ---------- journey ---------- */
.pagehead span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pagehead h1 { font-size: 36px; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 10px; text-align: center; }
.stats b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.stats span { font-size: 12.5px; color: var(--mute); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; }
.week div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.week i { width: 100%; max-width: 26px; border-radius: 8px; background: var(--card2); }
.week i.some { background: rgba(92,200,255,.45); } .week i.full { background: var(--glow); }
.week span { font-size: 12px; color: var(--dim); } .week .today span { color: var(--ink); font-weight: 700; }
.miles { display: flex; justify-content: space-between; position: relative; }
.miles::before { content: ""; position: absolute; left: 16px; right: 16px; top: 17px; height: 1px; background: var(--line); }
.miles div { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.miles i { width: 34px; height: 34px; border-radius: 50%; background: #121418; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); }
.miles i svg { width: 16px; height: 16px; stroke-width: 2.6; }
.miles .on i { background: var(--glow); border-color: var(--glow); color: #000; }
.miles span { font-size: 11px; color: var(--dim); }
.reward { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.reward svg { width: 16px; height: 16px; } .reward.on { color: var(--ink); border: 1px solid var(--good); }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph { aspect-ratio: 3 / 4; border-radius: 14px; border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); font-size: 12px; position: relative; overflow: hidden; }
.ph svg { width: 20px; height: 20px; } .ph em { font-style: normal; font-size: 10.5px; }
.ph.open { border: 1px solid var(--glow); color: var(--ink); background: rgba(92,200,255,.08); }
.ph.has { border: 0; } .ph.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 999px; color: #fff; font-size: 10.5px; }
.switch { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.card > .switch:last-of-type { border-bottom: 0; }
.photos + .switch { margin-top: 8px; }
.switch i { width: 46px; height: 28px; border-radius: 999px; background: var(--card2); position: relative; flex: none; transition: background .2s; order: 2; margin-left: auto; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on i { background: var(--good); } .switch.on i::after { transform: translateX(18px); }

/* ---------- discover, me ---------- */
.lesson { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); }
.lesson:last-child { border: 0; padding-bottom: 0; }
.lesson i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--dim); display: grid; place-items: center; flex: none; }
.lesson.done i { background: var(--good); border-color: var(--good); color: #000; } .lesson i svg { width: 15px; height: 15px; stroke-width: 2.6; }
.lesson div { flex: 1; } .lesson b { display: block; font-weight: 600; font-size: 16px; } .lesson span { font-size: 13px; color: var(--mute); }
.lesson > svg { width: 18px; height: 18px; color: var(--dim); }
.quiz .btn { margin-top: 4px; }
.soon { opacity: .6; }
.flaskcard { display: flex; gap: 16px; align-items: center; background: linear-gradient(150deg, rgba(92,200,255,.14), rgba(255,255,255,.04) 55%); }
.flaskcard img { height: 170px; flex: none; filter: drop-shadow(0 10px 20px rgba(40,140,255,.3)); }
.flaskcard > div { flex: 1; min-width: 0; } .flaskcard .row { padding: 7px 0; font-size: 14px; }
.badge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(95,227,161,.16); color: var(--good); }
.timerow { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.card .btn { margin-top: 14px; }
.list { padding: 4px 18px; }
.item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; text-align: left; }
.item:last-child { border: 0; } .item svg { width: 18px; height: 18px; color: var(--dim); } .item.danger { color: var(--bad); }

/* ---------- sheets ---------- */
#sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
#sheet.full { background: #000; align-items: stretch; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 100%; max-width: 460px; background: #14161a; border: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + var(--bot)); animation: sheetup .28s cubic-bezier(.2,.8,.2,1); }
.dialog p { color: var(--mute); margin: 8px 0 20px; }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
.reader, .sim { width: 100%; max-width: 460px; margin: 0 auto; padding: calc(14px + var(--top)) 22px calc(22px + var(--bot)); display: flex; flex-direction: column; min-height: 100dvh; }
.readtop { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.prog { display: flex; gap: 5px; flex: 1; } .prog i { height: 3px; flex: 1; border-radius: 3px; background: var(--card2); } .prog i.on { background: var(--ink); }
.readcard { flex: 1; display: grid; align-content: center; padding: 10px 2px 30px; }
.readcard p { font-size: 29px; line-height: 1.22; font-weight: 500; letter-spacing: -.03em; animation: cardin .35s ease; }
@keyframes cardin { from { opacity: 0; transform: translateY(12px); } }
.readnav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; } .readnav .btn { margin: 0; }

/* ---------- Flask simulator ---------- */
.sim { align-items: center; }
.simtop { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.simtop .eyebrow { margin-bottom: 4px; }
.guide { display: flex; align-items: center; gap: 8px; margin: 18px 0 16px; font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; transition: opacity .3s; }
.guide.dim { opacity: .25; }
.guide i { width: 14px; height: 1px; background: var(--dim); }
.guide .on { color: var(--ink); } .guide .done { color: var(--glow); }
.device { width: min(58vw, 240px, 36dvh); aspect-ratio: 170 / 320; border-radius: 14% / 7.500%; padding: 3.200%; background: linear-gradient(160deg, #2a2d33, #0c0d10 40%, #1c1e23); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(40,140,255,.22); flex: none; }
.glass { --c: #39b8ff; position: relative; width: 100%; height: 100%; border-radius: 12% / 6.400%; overflow: hidden; background: #1b1c1f; container-type: inline-size; color: #e9ecef; touch-action: pan-y; }
.glass.night { filter: brightness(.55); }
.glass video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass button { color: inherit; }
.batt { position: absolute; right: 7cqw; top: 5cqw; width: 14cqw; z-index: 2; stroke: none; }
.sback { position: absolute; left: 3cqw; top: 40%; width: 12cqw; height: 16cqw; z-index: 3; display: grid; place-items: center; }
.sback svg { width: 7cqw; }
.soff { position: absolute; inset: 0; background: #050506; }
.soff::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22cqw; height: 22cqw; margin: -11cqw; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); animation: pulse 1.8s ease-out infinite; }
.slock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30cqw; height: 92cqw; border-radius: 15cqw; background: rgba(255,255,255,.2); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3cqw; }
.slock span { width: 24cqw; height: 24cqw; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #fff; }
.slock span svg { width: 13cqw; }
.slock > svg { height: 30cqw; }
.slock .knob { background: #fff; color: #111; animation: nudgeup 1.8s ease-in-out infinite; }
@keyframes nudgeup { 50% { transform: translateY(-9cqw); } }
.sstart { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 5cqw; color: #cfd3d8; }
.sstart svg { width: 24cqw; stroke: none; }
.sstart b { font-size: 9.500cqw; font-weight: 400; letter-spacing: .04em; }
.sstart i { width: 22cqw; height: 1.200cqw; border-radius: 2px; background: rgba(255,255,255,.3); }
.sgear { position: absolute; left: 50%; bottom: 7%; width: 24cqw; height: 24cqw; margin-left: -12cqw; color: #cfd3d8; }
.sgear svg { width: 100%; }
.scount { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; }
.scount b { font-size: 25cqw; font-weight: 300; letter-spacing: -.02em; color: #06131f; font-variant-numeric: tabular-nums; }
.scount.clean b { color: #fff; }
.scount button { width: 20cqw; height: 20cqw; border-radius: 50%; background: #0b0d10; color: #fff; display: grid; place-items: center; position: relative; }
.scount button::before { content: ""; position: absolute; left: -22cqw; right: -22cqw; top: 50%; height: 1px; background: #0b0d10; z-index: -1; }
.scount button svg { width: 11cqw; }
.sdone { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqw; color: var(--c); }
.sdone svg { width: 40cqw; filter: drop-shadow(0 0 4cqw var(--c)); } .sdone b { font-size: 10cqw; font-weight: 400; letter-spacing: .12em; color: #e9ecef; }
.smenu { position: absolute; inset: 0; overflow-y: auto; padding: 16cqw 0 10cqw; display: flex; flex-direction: column; align-items: center; gap: 7cqw; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.smenu::-webkit-scrollbar { display: none; }
.smenu button { display: flex; flex-direction: column; align-items: center; gap: 2cqw; font-size: 8.500cqw; color: #d5d9dd; flex: none; }
.smenu svg { width: 34cqw; }
.scolors { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqw; }
.scolors button { display: flex; flex-direction: column; align-items: center; gap: 1.500cqw; font-size: 8cqw; opacity: .35; transition: .2s; }
.scolors button.on { opacity: 1; }
.scolors i { width: 20cqw; height: 20cqw; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff, var(--c) 55%); box-shadow: 0 0 0 1.500cqw #1b1c1f, 0 0 0 2.300cqw var(--c); }
.sopt { position: absolute; inset: 0; padding: 0 9cqw 0 15cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7cqw; text-align: center; }
.sopt > svg { width: 42cqw; } .sopt p { font-size: 8cqw; line-height: 1.25; color: #e3e6e9; }
.tog { display: flex; gap: 2cqw; padding: 2.500cqw; border-radius: 20cqw; background: rgba(255,255,255,.22); }
.tog button { width: 25cqw; height: 25cqw; border-radius: 50%; font-size: 8.500cqw; border: 1.5px solid #fff; }
.tog button.on { background: #fff; color: #111; }
.hint { margin-top: 22px; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 16px; text-align: center; min-height: 76px; display: grid; place-items: center; width: 100%; }
.hint.nudge { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

@media (min-width: 520px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .flaskwrap, .window b, .hot i { animation: none; } }

/* photo cards for the first questions */
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; flex: 1; grid-auto-rows: minmax(120px, 1fr); max-height: 620px; }
.pic { position: relative; overflow: hidden; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card) center/cover no-repeat; min-height: 120px; padding: 0; transition: transform .12s, border-color .2s, box-shadow .2s; }
.pic.wide { grid-column: 1 / -1; }
.pic::after { content: ''; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.pic b { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.pic:active { transform: scale(.97); }
.pic.on { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(92,200,255,.35); }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.agebtn { height: 112px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); font-size: 30px; font-weight: 600; letter-spacing: -.02em; transition: transform .12s, border-color .2s; }
.agebtn.wide { grid-column: 1 / -1; }
.agebtn:active { transform: scale(.97); }
.agebtn.on { border-color: var(--glow); background: var(--card2); }

/* v3: logo, stat tiles, icon tiles */
.herologo { position: absolute; right: 22px; top: calc(24px + var(--top)); width: 62px; z-index: 2; opacity: .92; filter: drop-shadow(0 2px 12px rgba(0,0,0,.6)); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip, .chip.grow { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 7px; padding: 12px 12px 11px; border-radius: 18px; white-space: normal; justify-content: start; }
.chip svg { width: 18px; height: 18px; }
.chip b { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.chip span { grid-column: 1 / -1; font-size: 12px; white-space: nowrap; }
.chip.ice svg { color: var(--glow); }
.ficon { --c: var(--glow); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 34%, transparent); }
.ficon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.ficon.xl { width: 68px; height: 68px; border-radius: 22px; margin-bottom: 16px; box-shadow: 0 0 34px color-mix(in srgb, var(--c) 28%, transparent); }
.ficon.xl svg { width: 36px; height: 36px; }
.card.fact { display: flex; gap: 14px; align-items: flex-start; }
.card.fact > div:last-child { flex: 1; min-width: 0; }
.card.fact.big { display: block; }
.cta > .ficon svg { width: 24px; height: 24px; color: var(--c); }
.lhead { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; }
.lhead .eyebrow { margin: 0; } .lhead b { font-size: 13px; font-weight: 600; color: var(--mute); }
.lbar { height: 4px; border-radius: 4px; background: var(--card2); margin-top: 10px; overflow: hidden; }
.lbar i { display: block; height: 100%; border-radius: 4px; background: var(--good); transition: width .4s; }
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ltile { position: relative; text-align: left; padding: 16px 14px 14px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, transparent), var(--card) 65%); transition: transform .12s; }
.ltile:active { transform: scale(.97); }
.ltile b { display: block; margin-top: 14px; font-weight: 600; font-size: 15.5px; line-height: 1.2; letter-spacing: -.01em; }
.ltile span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.ltile em { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #000; display: grid; place-items: center; }
.ltile em svg { width: 13px; height: 13px; stroke-width: 2.8; }
.chip { min-width: 0; overflow: hidden; }
.chip.time b { font-size: 15.5px; letter-spacing: -.03em; line-height: 23px; }
.chip.time svg { width: 15px; height: 15px; }
.cta > .ficon { flex: none; }

/* v6: top bar (menu, logo, greeting) and side drawer */
.topbar { position: absolute; left: 0; right: 0; top: calc(10px + var(--top)); height: 48px; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px 0 8px; }
.menubtn { width: 44px; height: 44px; display: grid; place-items: center; justify-self: start; border-radius: 50%; }
.menubtn svg { width: 25px; height: 25px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)); }
.menubtn:active { background: var(--card2); }
.topbar .herologo { position: static; width: 66px; }
.topbar .hello { position: static; justify-self: end; text-align: right; min-width: 0; max-width: 100%; }
.topbar .hello span { font-size: 11.5px; line-height: 1.2; white-space: nowrap; }
.topbar .hello b { font-size: 18px; line-height: 1.15; letter-spacing: -.02em; max-width: 34vw; margin-left: auto; }
.hero .flaskwrap { height: 73%; bottom: 14%; }
#drawer { position: fixed; inset: 0; z-index: 60; }
.dscrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.dpanel { position: absolute; left: 0; top: 0; bottom: 0; width: min(82vw, 330px); background: #0d0f12; border-right: 1px solid var(--line); padding: calc(16px + var(--top)) 18px calc(20px + var(--bot)); display: flex; flex-direction: column; overflow-y: auto; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
#drawer.in .dscrim { opacity: 1; } #drawer.in .dpanel { transform: none; }
.dtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dtop img { width: 78px; }
.dpanel details { border-bottom: 1px solid var(--line); }
.dpanel summary { display: flex; align-items: center; gap: 12px; padding: 17px 2px; font-size: 17px; font-weight: 600; list-style: none; cursor: pointer; }
.dpanel summary::-webkit-details-marker { display: none; }
.dpanel summary > svg:first-child { width: 22px; height: 22px; color: var(--glow); flex: none; }
.dpanel summary span { flex: 1; }
.dpanel summary em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(92,200,255,.16); color: var(--glow); }
.dpanel summary > svg:last-child { width: 17px; height: 17px; color: var(--dim); transform: rotate(90deg); transition: transform .2s; }
.dpanel details[open] summary > svg:last-child { transform: rotate(-90deg); }
.dlink { display: block; width: 100%; text-align: left; padding: 12px 2px 12px 36px; font-size: 15.5px; color: #cfd5db; text-decoration: none; }
.dlink:last-child { margin-bottom: 8px; }
.dlink:active { color: #fff; }
.dfoot { margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--mute); text-decoration: none; }

/* v7: the simulator screen takes its own swipes */
.glass { touch-action: none; -webkit-touch-callout: none; }
.glass[data-s="menu"], .glass[data-s="menu"] * { touch-action: pan-y; }
.glass video, .glass svg { pointer-events: none; }

/* v8: simulator rebuilt from the real Flask recording */
.glass { background: linear-gradient(165deg, #131a44 0%, #0a0e2a 55%, #0d1338 100%); color: #dff6f4; --t: #3fe6d0; }
.glass.day { background: linear-gradient(165deg, #8ff0dc, #dffbf4 60%, #9cf0e0); color: #12343a; --t: #12343a; }
.glass.night { filter: none; }
.glass[data-s="lock"] { background: linear-gradient(170deg, #3f7fc4, #2f69ad); color: #fff; }
.glass[data-s="menu"], .glass[data-s="menu"] *, .glass[data-s="color"], .glass[data-s="color"] * { touch-action: pan-y; }
.batt { right: 6cqw; top: 5cqw; width: 8cqw; color: #fff; opacity: .9; }
.glass.day .batt { color: #12343a; }
.slock { width: auto; height: auto; background: none; border-radius: 0; padding: 0; gap: 4cqw; justify-content: center; top: 52%; }
.slock span { width: 22cqw; height: 22cqw; border: 1.5px solid #fff; }
.slock span svg { width: 12cqw; }
.slock > svg { height: 26cqw; }
.slock .knob { background: #fff; color: #2f69ad; border: 0; }
.sstart { top: 24%; color: var(--t); gap: 0; }
.sstart svg { width: 56cqw; stroke: none; filter: drop-shadow(0 0 5cqw rgba(63,230,208,.45)); }
.sgear { width: 15cqw; height: 15cqw; margin-left: -7.500cqw; bottom: 6%; color: var(--t); }
.scount { gap: 1cqw; }
.scount b { font-size: 27cqw; font-weight: 400; color: #7dffc0; letter-spacing: -.01em; text-shadow: 0 0 6cqw rgba(255,255,255,.9); }
.scount em { font-style: normal; font-size: 10cqw; font-weight: 600; color: #fff; text-shadow: 0 1px 3cqw rgba(0,30,90,.9); font-variant-numeric: tabular-nums; }
.stip { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: 8.200cqw; line-height: 1.2; font-weight: 600; color: #fff; text-shadow: 0 1px 3cqw rgba(0,30,90,.95); animation: tipblink 1.6s ease-in-out infinite; }
@keyframes tipblink { 50% { opacity: .45; } }
.sdone { color: var(--t); gap: 4cqw; }
.sdone svg { width: 40cqw; filter: drop-shadow(0 0 4cqw var(--t)); }
.sdone b { color: inherit; }
.sdone em { font-style: normal; font-size: 10cqw; font-weight: 600; color: #fff; }
.glass.day .sdone em { color: #12343a; }
.smenu { padding: 7cqw 0 8cqw; gap: 5cqw; scroll-snap-type: y proximity; }
.smenu button { font-size: 8.800cqw; font-weight: 600; gap: 1cqw; color: inherit; scroll-snap-align: start; }
.smenu svg { width: 40cqw; color: var(--t); }
.smenu span { color: inherit; }
.scolors { justify-content: flex-start; }
.scolors button { opacity: 1; gap: 2.500cqw; }
.scolors i { display: block; width: 26cqw; height: 26cqw; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 42%, var(--o) 78%); box-shadow: 0 0 0 1.600cqw #0c1132, 0 0 0 2.600cqw var(--o), 0 0 6cqw var(--o); opacity: .8; }
.glass.day .scolors i { box-shadow: 0 0 0 1.600cqw #c9f7ee, 0 0 0 2.600cqw var(--o); }
.scolors button.on i { opacity: 1; box-shadow: 0 0 0 1.600cqw #0c1132, 0 0 0 3.400cqw var(--o), 0 0 10cqw var(--o); }
.scolors i.cyc { background: conic-gradient(#ff7a7a, #ffd95c, #5fe3a1, #5cc8ff, #b07cff, #ff7a7a); }
.sopt { padding: 0 6cqw; gap: 3cqw; }
.sopt > svg { width: 50cqw; color: var(--t); }
.sopt p { font-size: 10.500cqw; font-weight: 600; line-height: 1.15; color: inherit; }
.tog { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 56cqw; height: 24cqw; padding: 2.400cqw; border-radius: 12cqw; background: var(--t); margin-top: 3cqw; }
.glass.day .tog { background: #1c8f86; }
.tog span { display: grid; place-items: center; border-radius: 50%; font-size: 7.500cqw; font-weight: 600; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.55); margin: 0 1.500cqw; z-index: 1; transition: .2s; }
.tog span:nth-child(2), .tog.on span:nth-child(1) { background: #fff; color: #0e3a44; border-color: #fff; }
.tog.on span:nth-child(2) { background: none; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.55); }
.led { --c: #2f8bff; width: 26px; height: 4px; border-radius: 4px; margin-top: 12px; background: var(--c); box-shadow: 0 0 14px 2px var(--c); transition: background .3s, box-shadow .3s, opacity .3s; }
.led.off { opacity: .12; box-shadow: none; }
.led.cyc { animation: hue 4s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.sim .hint { margin-top: 14px; }
.glass .sstart, .glass .sgear { color: var(--t); }
.smenu { scroll-snap-type: none; } .smenu button { scroll-snap-align: none; }

/* v10: every touch on the device belongs to the simulator */
.device, .device *, .glass[data-s="menu"], .glass[data-s="menu"] *, .glass[data-s="color"], .glass[data-s="color"] * { touch-action: none; }
.device { -webkit-user-select: none; user-select: none; }
.smenu { overflow: hidden; }

/* v11: swipe tip beside the device */
.devrow { position: relative; flex: none; }
.swipetip { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 10px; width: 62px; display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; line-height: 1.25; font-weight: 600; color: var(--glow); opacity: 0; transition: opacity .25s; pointer-events: none; }
.swipetip.show { opacity: 1; }
.swipetip svg { width: 34px; height: 16px; stroke-width: 1.8; animation: tipleft 1.5s ease-in-out infinite; }
@keyframes tipleft { 50% { transform: translateX(-7px); } }

/* v12: streak jar and redeem */
.jarcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(150deg, rgba(92,200,255,.13), var(--card) 60%); }
.jarcard.won { border-color: rgba(95,227,161,.6); box-shadow: 0 0 30px rgba(95,227,161,.14) inset; }
.jarwrap { width: 58px; flex: none; }
.jar { width: 100%; display: block; overflow: visible; }
.jar .wave { animation: wave 2.6s linear infinite; }
@keyframes wave { to { transform: translateX(30px); } }
.jar .jb { animation: jbub 3s ease-in infinite; }
@keyframes jbub { from { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } to { transform: translateY(var(--up)); opacity: 0; } }
.jar.full { filter: drop-shadow(0 0 12px rgba(92,200,255,.7)); }
.jartxt { flex: 1; min-width: 0; }
.jartxt .eyebrow { margin-bottom: 4px; }
.jartxt h3 { font-size: 19px; letter-spacing: -.02em; }
.jartxt span { display: block; font-size: 13px; color: var(--mute); margin-top: 7px; }
.jarcard > svg:last-child { width: 18px; height: 18px; color: var(--dim); flex: none; }
.jbar { height: 6px; border-radius: 6px; background: var(--card2); margin-top: 10px; overflow: hidden; }
.jbar i { display: block; height: 100%; min-width: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--glow2), var(--glow)); transition: width .5s; }
.jarcard.won .jbar i { background: var(--good); }
.jbar.big { height: 8px; margin: 4px 0 10px; }
.rsheet { text-align: center; }
.rsheet .tag { display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .04em; background: var(--card2); border: 1px solid var(--line); color: var(--mute); animation: tagbob 2.4s ease-in-out infinite; }
.rsheet .tag.on { background: var(--good); border-color: var(--good); color: #000; }
@keyframes tagbob { 50% { transform: translateY(-5px); } }
.jarbig { width: 132px; margin: 8px auto 14px; }
.rsheet h3 { font-size: 23px; letter-spacing: -.02em; }
.rsheet .fine { margin: 0 0 16px; }
.code { display: block; width: 100%; padding: 16px; margin-bottom: 12px; border-radius: 16px; border: 1.5px dashed var(--good); font-size: 24px; font-weight: 600; letter-spacing: .08em; }
.code span { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-top: 3px; }
button.reward { width: 100%; text-align: left; }
.drow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 2px; font-size: 17px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); }
.drow > svg:first-child { width: 22px; height: 22px; color: var(--good); flex: none; }
.drow span { flex: 1; }
.drow em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(95,227,161,.16); color: var(--good); }
.drow > svg:last-child { width: 17px; height: 17px; color: var(--dim); }
a.btn { text-decoration: none; text-align: center; display: block; }

/* v13: light blocks, science cards */
.card.light { background: #f3f5f7; color: #0b0d10; border-color: #fff; --ink: #0b0d10; --mute: #5a636e; --dim: #98a1ab; --line: rgba(0,0,0,.1); --card: rgba(0,0,0,.055); --card2: rgba(0,0,0,.1); -webkit-backdrop-filter: none; backdrop-filter: none; }
.card.light .eyebrow { color: #5a636e; }
.card.light.jarcard { background: linear-gradient(150deg, #ffffff, #e6f3fb); }
.card.light.jarcard.won { border-color: var(--good); box-shadow: none; }
.card.light .opt { color: #0b0d10; border-color: rgba(0,0,0,.12); }
.card.light .bar i { background: rgba(0,0,0,.09); } .card.light .bar.mine i { background: rgba(31,127,214,.28); }
.sci { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 0 16px; scrollbar-width: none; }
.sci::-webkit-scrollbar { display: none; }
.scard { flex: none; width: 84%; scroll-snap-align: center; border-radius: 26px; padding: 20px 18px 18px; border: 1px solid var(--line); background: linear-gradient(165deg, color-mix(in srgb, var(--c) 20%, #0c0e12), #0c0e12 70%); }
.scard h3 { font-size: 22px; letter-spacing: -.025em; line-height: 1.12; }
.scard p { color: var(--mute); font-size: 14.5px; margin-top: 12px; }
.svis { height: 190px; margin-top: 14px; border-radius: 18px; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 10px; overflow: hidden; }
.scisvg { width: 100%; height: 100%; }
.svl { fill: #fff; stroke: none; font: 600 12px "Work Sans", sans-serif; text-anchor: middle; letter-spacing: .04em; }
.svl.s { fill: rgba(255,255,255,.6); font-weight: 400; } .svl.g { fill: #5fe3a1; }
.mol.in { animation: molin 3.6s linear infinite; }
@keyframes molin { from { transform: translateX(-30px); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } to { transform: translateX(96px); opacity: 0; } }
.mol.up { animation: molup 4.2s linear infinite; }
@keyframes molup { from { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(-125px); opacity: 0; } }
.draw { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 3.2s ease-out infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
.sbars { width: 100%; display: grid; gap: 14px; padding: 0 6px; }
.sbars div { display: grid; grid-template-columns: 74px 1fr 34px; align-items: center; gap: 10px; font-size: 13.5px; }
.sbars span { color: #dfe4e9; } .sbars b { font-weight: 600; text-align: right; }
.sbars i { display: block; height: 16px; width: var(--w); min-width: 8px; border-radius: 8px; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); transform-origin: left; animation: growx 2.8s ease-out infinite both; }
@keyframes growx { from { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }
.sbars em { font-style: normal; font-size: 11.5px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.scols { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 8px 0; }
.scols div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-height: 0; }
.scols b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.scols i { display: block; width: 100%; max-width: 62px; height: calc(var(--h) * .68); border-radius: 12px 12px 4px 4px; background: linear-gradient(#5fe3a1, #1f9d6b); transform-origin: bottom; animation: growy 3s ease-out infinite both; }
@keyframes growy { from { transform: scaleY(0); } 35%, 100% { transform: scaleY(1); } }
.scols span { font-size: 12px; color: var(--mute); white-space: nowrap; }
.scidots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.scidots i { width: 6px; height: 6px; border-radius: 6px; background: var(--card2); transition: .25s; }
.scidots i.on { width: 20px; background: var(--ink); }
.simcta { display: flex; align-items: center; gap: 16px; background: linear-gradient(150deg, rgba(92,200,255,.16), var(--card) 60%); }
.simcta > div:nth-child(2) { flex: 1; } .simcta .eyebrow { margin-bottom: 3px; } .simcta span { color: var(--mute); font-size: 13.5px; }
.simcta > svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.minidev { width: 38px; height: 68px; border-radius: 9px; padding: 3px; background: linear-gradient(160deg, #2a2d33, #0c0d10); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 22px rgba(92,200,255,.35); flex: none; }
.minidev i { display: block; width: 100%; height: 100%; border-radius: 7px; background: radial-gradient(circle at 50% 45%, #bfe9ff, #2f8bff 45%, #0d1338 80%); animation: tipblink 2s ease-in-out infinite; }

/* v17: product choice, product on Home, photo tick box, lesson photos */
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; flex: 1; grid-auto-rows: minmax(150px, 1fr); max-height: 640px; }
.prod { position: relative; overflow: hidden; border-radius: 20px; border: 1.5px solid var(--line); background: radial-gradient(120% 90% at 50% 35%, rgba(92,200,255,.16), rgba(255,255,255,.03) 70%); padding: 14px 10px 44px; display: grid; place-items: center; min-height: 150px; transition: transform .12s, border-color .2s, box-shadow .2s; }
.prod img { max-width: 78%; max-height: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(40,140,255,.28)); }
.prod b { position: absolute; left: 0; right: 0; bottom: 13px; text-align: center; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.prod:active { transform: scale(.97); }
.prod.on { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(92,200,255,.35); }
.hero .flaskwrap.other, .flaskwrap.other { left: 50%; height: var(--h, 70%); }
.flaskcard img { max-width: 34%; object-fit: contain; }
.consent { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.consent .tick { flex: 1; border: 0; padding: 8px 0; font-size: 15px; }
.consent .tick.on { color: var(--ink); text-decoration: none; }
.consent .btn { width: auto; margin: 0; padding: 10px 22px; font-size: 15px; flex: none; }
.ltile.haspic { padding: 0 0 13px; overflow: hidden; }
.ltile.haspic .lpic { display: block; aspect-ratio: 4 / 3; background: var(--card2) center/cover no-repeat; }
.ltile.haspic b { margin: 11px 13px 0; }
.ltile.haspic span { margin: 4px 13px 0; }
.ltile.haspic em { box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.readimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; margin-bottom: 22px; }

/* v18: three needle meters on Home */
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.meter { position: relative; text-align: center; padding: 12px 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(170deg, color-mix(in srgb, var(--c) 13%, transparent), var(--card) 70%); color: var(--ink); }
button.meter:active { transform: scale(.97); }
.meter svg { width: 100%; display: block; overflow: visible; }
.meter .mtrack { stroke: rgba(255,255,255,.1); stroke-width: 7; stroke-linecap: round; }
.meter .mfill { stroke: var(--c); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c) 70%, transparent)); transition: stroke-dasharray .7s ease; }
.meter .mticks path { stroke: rgba(255,255,255,.32); stroke-width: 1.2; }
.meter .mneedle { transform-origin: 60px 62px; transform: rotate(var(--a)); animation: needle .9s cubic-bezier(.3,1.4,.5,1) both; }
.meter .mneedle path { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.meter .mhub { fill: #fff; stroke: none; }
@keyframes needle { from { transform: rotate(var(--from)); } to { transform: rotate(var(--a)); } }
.meter b { display: block; margin-top: 2px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.meter b small { font-size: 12.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; margin-left: 1px; }
.meter span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--mute); }
.minirow { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.minirow span { display: inline-flex; align-items: center; gap: 6px; }
.minirow svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .meter .mneedle { animation: none; } }
.hero { height: 46dvh; min-height: 320px; }
.counter { padding-top: 16px; padding-bottom: 14px; }

/* v19: rank card, clearer reminder card */
.rank { text-align: center; background: radial-gradient(120% 90% at 50% 0%, rgba(255,217,92,.2), rgba(255,255,255,.03) 62%); border-color: rgba(255,217,92,.28); padding-top: 22px; }
.rank .crown { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,217,92,.16); color: #ffd95c; box-shadow: 0 0 28px rgba(255,217,92,.35); }
.rank .crown svg { width: 28px; height: 28px; stroke-width: 1.9; }
.rank h2 { font-size: 34px; letter-spacing: -.03em; margin: 4px 0 4px; background: linear-gradient(180deg, #fff, #ffd95c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank p { color: var(--mute); font-size: 14.5px; }
.rank .rbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 16px 0 8px; overflow: hidden; }
.rank .rbar i { display: block; height: 100%; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, #ffb65c, #ffd95c); transition: width .6s ease; }
.rank .rsteps { display: flex; justify-content: space-between; gap: 4px; font-size: 9.5px; color: var(--dim); }
.rank .rsteps .on { color: #ffd95c; }
.rank .fine { margin-top: 12px; }
.card.cta.warnc { border-color: rgba(255,182,92,.5); background: rgba(255,182,92,.08); }
.card.cta.warnc svg { color: #ffb65c; }
.meter span { font-size: 11px; line-height: 1.2; min-height: 26px; display: grid; place-items: center; }

/* v20: short reminder card with an i button, ask-for-reminders screen */
button.card.cta { width: 100%; text-align: left; color: var(--ink); }
.cta .ibtn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #ffb65c; color: #ffb65c; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; flex: none; }
.askpush { text-align: center; justify-content: center; }
.askpush .back { display: none; }
.askpush .bigbell { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(92,200,255,.14); color: var(--glow); box-shadow: 0 0 50px rgba(92,200,255,.4); animation: ring 2.4s ease-in-out infinite; }
.askpush .bigbell svg { width: 44px; height: 44px; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-12deg); } 76% { transform: rotate(10deg); } 84% { transform: rotate(-6deg); } 92% { transform: rotate(3deg); } }
.dialog .steps { text-align: left; margin: 12px 0 4px; }

/* v22: Steel Tumbler guide (one button on the bottom) */
.tsim .tmodels { display: flex; gap: 10px; width: 100%; margin: 16px 0 6px; }
.tmodels button { flex: 1; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.tmodels button.on { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow) inset; }
.tmodels i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); flex: none; }
.tmodels em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--mute); }
.tbase { --lit: transparent; width: 150px; margin: 14px auto 0; display: flex; flex-direction: column; align-items: center; }
.tbase.l-blue { --lit: #3aa0ff; }
.tbase.l-green { --lit: #35e27c; }
.tbody { width: 122px; height: 74px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #0b0c0e, #2a2c31 28%, #191a1d 62%, #08090a); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%); }
.tbase.m-blue .tbody { background: linear-gradient(90deg, #6f9dbd, #b5d6ec 28%, #8fb8d6 62%, #5f8aa8); }
.tseam { width: 124px; height: 5px; background: #6d7178; transition: background .3s, box-shadow .3s; }
.tbase.m-black .tseam { background: color-mix(in srgb, var(--lit) 85%, #3a3d44); box-shadow: 0 0 18px var(--lit); }
.tfoot { width: 116px; height: 96px; border-radius: 0 0 16px 16px; background: linear-gradient(90deg, #050506, #1d1e22 30%, #101113 65%, #030303); display: grid; place-items: center; }
.tdisp { width: 74px; height: 74px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #eaf6ff; transition: box-shadow .3s; }
.tdisp.l-blue { box-shadow: 0 0 0 1.5px rgba(58,160,255,.7), 0 0 22px rgba(58,160,255,.45); }
.tdisp.l-green { box-shadow: 0 0 0 1.5px rgba(53,226,124,.7), 0 0 22px rgba(53,226,124,.45); color: #baffd6; }
.tdisp .trow { display: flex; align-items: center; gap: 8px; }
.tdisp .th2 { font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: -.02em; }
.tdisp .th2 sub { font-size: 8px; }
.tdisp .trow svg { width: 17px; height: 9px; }
.tdisp .ttime { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tpanel { width: 46px; height: 46px; border-radius: 9px; background: #000; box-shadow: 0 0 0 1.5px rgba(255,255,255,.12); display: grid; place-items: center; }
.tpanel i { width: 16px; height: 16px; border-radius: 4px; transform: rotate(45deg); background: #2a2d33; transition: background .3s, box-shadow .3s; }
.tpanel.l-blue i { background: #3aa0ff; box-shadow: 0 0 18px #3aa0ff; }
.tpanel.l-green i { background: #35e27c; box-shadow: 0 0 18px #35e27c; }
.tpanel.soft i, .tdisp.soft { animation: tipblink 1.2s ease-in-out infinite; }
.tbtn { position: relative; width: 104px; height: 104px; margin: 22px auto 0; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #3a3d44, #15161a 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 10px 28px rgba(0,0,0,.6), 0 0 34px rgba(92,200,255,.25); color: var(--ink); display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .12s; }
.tbtn b { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.tbtn.down { transform: scale(.93); }
.tring { position: absolute; inset: -7px; pointer-events: none; }
.tring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tring circle { fill: none; stroke: #35e27c; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.tbtn.down .tring circle { transition: stroke-dashoffset 3s linear; stroke-dashoffset: 0; }
.tlabel { margin-top: 12px; font-size: 13px; color: var(--mute); text-align: center; }
.tkeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 12px; }
.tkeys div { padding: 10px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.tkeys b { display: block; font-size: 13.5px; } .tkeys span { font-size: 12px; color: var(--mute); }
.tsim .hint { min-height: 68px; font-size: 15px; }
.tsim .fine { margin-top: 10px; }
