:root {
  --navy: #16233f;
  --navy-2: #24406b;
  --green: #5e9a6c;
  --green-dark: #457a52;
  --green-2: #86c493;
  --green-soft: #e9f4ed;
  --blue-soft: #e8edf6;
  --bg: #f2f9f6;
  --card: #ffffff;
  --ink: #152038;
  --muted: #6b7a90;
  --line: #e2eae7;
  --gold: #f2b53a;
  --coral: #ef7b5a;
  --red: #d24f4a;
  --red-soft: #fbe9e8;
  --radius: 20px;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #24406b 0, #0e1830 60%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- shell ---------- */
.app {
  position: relative;
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 600px) {
  body { display: grid; place-items: center; min-height: 100%; }
  .app {
    width: 410px;
    height: min(880px, calc(100dvh - 40px));
    border-radius: 40px;
    border: 10px solid #0a1222;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  }
}
main {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: calc(18px + env(safe-area-inset-top)) 18px 28px;
  outline: none;
}
.app.full main { padding: 0; display: flex; flex-direction: column; }
.app.full main > * { flex: 1 0 auto; }
.app.full main > .lesson-wrap { flex: 1 1 0; min-height: 0; }
.app.dark main { background: linear-gradient(180deg, #16233f 0%, #24406b 100%); color: #fff; }

.tabs {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.app.no-nav .tabs { display: none; }
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #96a3b5;
}
.tab.on { color: var(--green); }
.tab .ico { width: 23px; height: 23px; }

/* ---------- shared bits ---------- */
.page-title { font-size: 30px; font-weight: 800; }
.sub { color: var(--muted); margin-top: 4px; font-size: 15.5px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.section-h { font-family: var(--head); font-weight: 700; font-size: 18px; margin: 24px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.bar { height: 10px; background: #e6ece9; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-2)); border-radius: 99px; transition: width .6s ease; }
.dark-bar { background: rgba(255, 255, 255, .14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 16px;
  height: 52px; padding: 0 22px; border-radius: 16px;
  background: var(--green); color: #fff;
  box-shadow: 0 4px 0 var(--green-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.navy { background: var(--navy); box-shadow: 0 4px 0 #0b1426; }
.btn:disabled { background: #c7d2cd; box-shadow: 0 4px 0 #b3bfba; }
.btn.small { height: 42px; font-size: 14.5px; padding: 0 16px; border-radius: 13px; }
.link { color: var(--green); font-weight: 600; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; color: #3c4a60; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.seg { display: flex; background: #e3ece8; border-radius: 14px; padding: 4px; margin: 16px 0; }
.seg button { flex: 1; height: 40px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: #4d5c72; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ---------- home ---------- */
.hello { display: flex; justify-content: space-between; align-items: center; }
.hello h1 { font-size: 28px; font-weight: 800; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--green-2), var(--green)); color: #fff; font-family: var(--head); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; margin: 16px 0 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.stat b { font-family: var(--head); font-size: 18px; line-height: 1.2; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.stat small { color: var(--muted); font-size: 12.5px; }
.stat.lv b { font-size: 15px; }
.stat .bar { height: 5px; margin-top: 5px; }
.stat.cold b { color: #9aa8a3; }

.credit-card { display: block; position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 24px; padding: 20px; }
.credit-card::after { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(134, 196, 147, .16); }
.credit-card .eyebrow { color: var(--green-2); }
.credit-amt { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; position: relative; z-index: 1; }
.credit-amt b { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; }
.credit-amt span { color: #a9b6cc; font-size: 15px; }
.credit-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.credit-foot span:last-child { color: var(--green-2); }
.credit-card.won { background: linear-gradient(135deg, #2c6b44, #16233f); }

.daily { margin-top: 14px; border-radius: 22px; padding: 16px; background: linear-gradient(135deg, #fff6e2, #fff); border: 1.5px solid #f6ddaa; }
.daily-top { display: flex; justify-content: space-between; align-items: center; }
.daily-top .eyebrow { color: #b07b0f; }
.xp-pill { font-size: 12.5px; font-weight: 700; background: var(--gold); color: #4a3200; border-radius: 99px; padding: 3px 9px; }
.daily-from { color: #9a7a3a; font-size: 13px; margin-top: 6px; }
.daily h3 { font-size: 17px; margin: 4px 0 12px; line-height: 1.3; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 15.5px; line-height: 1.3; transition: border-color .15s, background .15s; }
.opt:not(:disabled):active { transform: scale(.99); }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt.dim { opacity: .55; }
.why { margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; }
.why.ok { background: var(--green-soft); color: #23532f; }
.why.no { background: var(--red-soft); color: #7d2622; }
.daily-done { display: flex; gap: 12px; align-items: center; font-weight: 600; margin-top: 8px; }
.daily-done span { font-size: 30px; }

.continue { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; }
.thumb { width: 74px; height: 74px; border-radius: 16px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-2), var(--green)); color: var(--navy); }
.thumb .play { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.thumb .play .ico { width: 16px; height: 16px; }
.continue h3 { font-size: 16.5px; margin: 3px 0 8px; line-height: 1.25; }
.continue .bar { height: 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile { border-radius: 20px; padding: 16px; min-height: 140px; display: flex; flex-direction: column; }
.tile .t-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: auto; }
.tile h3 { font-size: 16.5px; margin-top: 14px; }
.tile p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tile.g { background: var(--green-soft); } .tile.g .t-ico { background: var(--green); }
.tile.b { background: var(--blue-soft); } .tile.b .t-ico { background: var(--navy-2); }

/* ---------- learn path ---------- */
.prog-card { display: flex; gap: 14px; align-items: center; background: var(--green-soft); border-radius: 20px; padding: 14px 16px; margin-top: 4px; }
.mini-ring { width: 64px; height: 64px; flex: none; position: relative; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 15px; color: var(--green-dark); }
.prog-card h3 { font-size: 16.5px; }
.prog-card p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.sec-h { display: flex; align-items: center; gap: 10px; margin: 28px 0 18px; font-family: var(--head); font-weight: 700; font-size: 15.5px; }
.sec-h::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 1; }
.sec-h em { order: 2; font-family: var(--body); font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); }
.sec-h.done { color: var(--green); }
.sec-h.locked { color: #a9b5b1; }
.sec-h.active em { color: var(--green); }

.path { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.node-wrap { width: 190px; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateX(var(--x, 0)); }
.node { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; transition: transform .08s; }
.node .ico { width: 28px; height: 28px; }
.node.done { background: var(--green); box-shadow: 0 6px 0 var(--green-dark); }
.node.current { background: linear-gradient(135deg, var(--navy-2), var(--green)); box-shadow: 0 6px 0 #10213e; }
.node.current::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--green-2); animation: pulse 1.8s ease-out infinite; }
.node.locked { background: #e3eae7; color: #9fadaa; box-shadow: 0 6px 0 #cdd7d3; }
.node:not(.locked):active { transform: translateY(4px); box-shadow: none; }
.node .stars { position: absolute; bottom: -6px; right: -8px; background: var(--gold); color: #4a3200; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 6px; border: 2px solid var(--bg); }
.node-label { margin-top: 12px; }
.node-label b { display: block; font-family: var(--head); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.node-label small { color: var(--muted); font-size: 12.5px; }
.node-wrap.locked .node-label b { color: #a9b5b1; }
.start-tag { display: inline-block; margin-bottom: 8px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 4px 10px; position: relative; }
.start-tag::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
.goal-node { margin-top: 26px; text-align: center; }
.goal-node .chest { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 24px; display: grid; place-items: center; font-size: 40px; background: #fff3d6; border: 2px dashed var(--gold); }
.goal-node.won .chest { background: var(--gold); border-style: solid; }
.goal-node b { font-family: var(--head); }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- lesson ---------- */
.media { position: relative; height: 250px; background: linear-gradient(135deg, #16233f 0%, #24406b 55%, #5e9a6c 100%); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 16px 16px; display: flex; flex-direction: column; }
.media.read { height: 190px; }
.media-top { display: flex; justify-content: space-between; }
.round { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; color: #fff; }
.round.on { background: var(--gold); color: #4a3200; }
.round .ico { width: 20px; height: 20px; }
.round.on .ico { fill: currentColor; }
.bigplay { width: 72px; height: 72px; border-radius: 50%; background: #f3f4f6; color: var(--navy); display: grid; place-items: center; margin: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.bigplay .ico { width: 26px; height: 26px; }
.media .times { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; opacity: .9; }
.media .bar { height: 6px; background: rgba(255, 255, 255, .25); }
.media .demo-note { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); font-size: 12px; opacity: .7; white-space: nowrap; }
.read-art { margin: auto; font-size: 64px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.lesson-body { padding: 22px 20px 26px; }
.lesson-body h1 { font-size: 27px; font-weight: 800; line-height: 1.15; margin: 6px 0 14px; }
.lesson-body p { font-size: 17.5px; line-height: 1.6; color: #3d4b60; margin-bottom: 14px; }
.lesson-body p b { color: var(--ink); }
.takeaway { margin-top: 8px; background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 6px 18px 18px 6px; padding: 14px 16px; }
.takeaway h4 { font-size: 15px; color: var(--green-dark); margin-bottom: 4px; }
.takeaway p { font-size: 16px; margin: 0; }
.best { margin-top: 16px; font-weight: 600; color: var(--green-dark); }
.dock { display: flex; align-items: center; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.dock .d-prog { flex: 1; }
.dock small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.dock .bar { height: 6px; }

.lesson-wrap { display: flex; flex-direction: column; height: 100%; }
.lesson-wrap .scroll { flex: 1; overflow-y: auto; }

/* quiz */
.quiz { padding: calc(18px + env(safe-area-inset-top)) 20px 24px; display: flex; flex-direction: column; min-height: 100%; }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz-top .x { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.dots { flex: 1; display: flex; gap: 6px; }
.dots i { flex: 1; height: 10px; border-radius: 99px; background: #e2e9e6; }
.dots i.ok { background: var(--green); }
.dots i.no { background: var(--red); }
.dots i.now { background: var(--green-2); }
.quiz h2 { font-size: 23px; line-height: 1.3; margin: 6px 0 22px; }
.quiz .opts .opt { padding: 16px; font-size: 16.5px; }
.quiz .spacer { flex: 1; min-height: 20px; }

.result { padding: calc(36px + env(safe-area-inset-top)) 22px 26px; text-align: center; display: flex; flex-direction: column; min-height: 100%; }
.result .big { font-size: 74px; line-height: 1; }
.result h1 { font-size: 30px; font-weight: 800; margin: 14px 0 6px; }
.result .score { color: var(--muted); font-size: 17px; }
.gains { display: grid; gap: 10px; margin: 24px 0; text-align: left; }
.gain { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-weight: 600; }
.gain .g-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: #fff3d6; flex: none; }
.gain small { display: block; font-weight: 500; color: var(--muted); }
.gain .bar { margin-top: 6px; height: 7px; }
.result .actions { margin-top: auto; display: grid; gap: 12px; }

/* ---------- rewards ---------- */
.reward-hero { text-align: center; padding: 6px 0 4px; }
.reward-hero h1 { color: #fff; font-size: 28px; font-weight: 800; }
.reward-hero > p { color: #b6c3d8; font-size: 15.5px; margin: 8px auto 0; max-width: 300px; line-height: 1.45; }
.ring { position: relative; width: 210px; height: 210px; margin: 24px auto 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .ring-in b { font-family: var(--head); font-weight: 800; font-size: 46px; line-height: 1; }
.ring .ring-in span { color: var(--green-2); font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.pill { display: inline-block; background: rgba(134, 196, 147, .16); color: var(--green-2); font-weight: 700; border-radius: 99px; padding: 10px 18px; font-size: 15px; }
.pill.won { background: var(--gold); color: #4a3200; }
.steps { margin-top: 22px; }
.steps .eyebrow { color: var(--green-2); }
.step { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.step i { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; background: rgba(255, 255, 255, .12); color: #c8d3e4; }
.step.done i { background: var(--green); color: #fff; }
.step b { font-family: var(--head); font-weight: 600; font-size: 16.5px; display: block; }
.step span { color: #a3b1c7; font-size: 14.5px; }
.redeem { margin-top: 24px; }
.white-panel { background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; margin: 28px -18px -28px; padding: 22px 18px 30px; }

.cert { position: relative; border-radius: 20px; padding: 20px; background: #fffdf6; border: 2px solid #ecd9a4; text-align: center; overflow: hidden; }
.cert.locked { background: #f6f7f6; border-color: #dfe5e2; }
.cert.locked > :not(.lock-over) { filter: grayscale(1) blur(3px); opacity: .5; }
.cert .seal { font-size: 38px; }
.cert h3 { font-size: 19px; margin: 6px 0 2px; }
.cert .who { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--green-dark); margin: 10px 0 4px; }
.cert small { color: var(--muted); }
.cert .lock-over { position: absolute; inset: 0; display: grid; place-items: center; }
.cert .lock-over span { background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; border-radius: 99px; padding: 9px 16px; }

.ladder { display: grid; gap: 8px; }
.rung { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.rung span { font-size: 22px; }
.rung b { font-family: var(--head); font-weight: 600; flex: 1; }
.rung small { color: var(--muted); font-weight: 600; }
.rung.on { border-color: var(--green); background: var(--green-soft); }
.rung.past { opacity: .6; }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 6px 12px; text-align: center; }
.badge .b-ico { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: #fff3d6; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .06); }
.badge b { font-size: 13px; line-height: 1.2; display: block; }
.badge.locked .b-ico { background: #eef2f0; filter: grayscale(1); opacity: .45; }
.badge.locked b { color: #a3afab; }

/* ---------- simulator ---------- */
.keys-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 18px; }
.keys-card .eyebrow { color: var(--green-2); }
.keys-date { font-family: var(--head); font-weight: 800; font-size: 32px; margin: 4px 0 2px; }
.keys-card > p { color: #b6c3d8; font-size: 15px; margin-bottom: 14px; }
.keys-card .bar { background: rgba(255, 255, 255, .15); }
.bar-labels { display: flex; justify-content: space-between; font-size: 13px; color: #b6c3d8; margin-top: 6px; font-weight: 600; }
.keys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.keys-grid div { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 10px 12px; }
.keys-grid small { color: #a3b1c7; font-size: 12.5px; display: block; }
.keys-grid b { font-family: var(--head); font-size: 18px; }
.keys-grid b.g { color: var(--green-2); }
.keys-grid em { display: block; font-style: normal; font-size: 12px; color: var(--green-2); margin-top: 2px; }
.keys-grid em.hi { color: #f6c27a; }
.credit-note { margin-top: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(242, 181, 58, .45); color: #ffd98a; border-radius: 14px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; }

.sliders { display: grid; gap: 16px; margin-top: 18px; }
.slider { display: block; }
.sl-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.sl-top b { font-family: var(--head); }
input[type=range] { width: 100%; height: 30px; appearance: none; -webkit-appearance: none; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--p, 50%), #dde6e2 var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--p, 50%), #dde6e2 var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--green); margin-top: -10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.boosts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.boost { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.boost span { display: block; color: var(--green-dark); font-size: 13px; margin-top: 2px; }
.boost.on { border-color: var(--green); background: var(--green-soft); }
.fine { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 16px; }

.grow-out { display: grid; gap: 12px; }
.grow-row small { display: block; font-weight: 600; color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.grow-bar { height: 44px; border-radius: 12px; display: flex; align-items: center; padding: 0 12px; color: #fff; font-family: var(--head); font-weight: 700; font-size: 17px; min-width: 120px; transition: width .4s ease; white-space: nowrap; }
.grow-bar.now { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.grow-bar.later { background: #9aa9bd; }
.grow-cost { background: #fff3d6; border-radius: 16px; padding: 14px; font-size: 16px; line-height: 1.4; }
.grow-cost b { font-family: var(--head); }

/* ---------- directory ---------- */
.loc { color: var(--muted); font-size: 14.5px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.loc .ico { width: 16px; height: 16px; color: var(--green); }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 0 14px; height: 52px; margin: 16px 0 12px; color: #9aa6b6; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; color: var(--ink); }
.pros { display: grid; gap: 12px; margin-top: 14px; }
.pro { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.pro-top { display: flex; gap: 14px; }
.pro-av { width: 58px; height: 58px; border-radius: 16px; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--head); font-weight: 700; font-size: 19px; }
.pro h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--green-dark); background: var(--green-soft); border-radius: 6px; padding: 3px 7px; }
.pro .role { color: var(--muted); font-size: 14.5px; margin: 2px 0; }
.rating { font-size: 14px; font-weight: 600; color: #3c4a60; }
.rating .st { color: var(--gold); letter-spacing: 1px; }
.pro-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- welcome ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #16233f 0%, #24406b 100%); color: #fff; }
.welcome .w-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.welcome .w-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); }
.welcome .w-dots i.on { width: 24px; background: var(--green-2); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 26px; }
.logo img { width: 44px; height: 44px; border-radius: 12px; }
.hero-art { font-size: 96px; text-align: center; margin: auto 0; padding: 20px 0; }
.hero-art span { display: inline-grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(134, 196, 147, .28), rgba(134, 196, 147, 0) 70%); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.welcome h1 { font-size: 32px; font-weight: 800; line-height: 1.15; }
.welcome h2 { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.welcome .lead { color: #b6c3d8; font-size: 17px; line-height: 1.5; margin-top: 10px; }
.welcome .w-body { flex: 1; display: flex; flex-direction: column; }
.welcome .w-foot { display: grid; gap: 12px; margin-top: 24px; }
.choice-list { display: grid; gap: 10px; margin-top: 22px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 14px 16px; color: #fff; font-weight: 600; font-size: 16.5px; }
.choice span { font-size: 26px; }
.choice small { display: block; font-weight: 500; color: #a3b1c7; font-size: 14px; }
.choice.on { border-color: var(--green-2); background: rgba(134, 196, 147, .16); }
.name-input { margin-top: 22px; width: 100%; height: 60px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 20px; font-weight: 600; padding: 0 18px; outline: none; }
.name-input:focus { border-color: var(--green-2); }
.name-input::placeholder { color: #8796ad; }
.txt-btn { color: #a9b6cc; font-weight: 600; font-size: 15px; padding: 8px; }

/* ---------- sheet / toast / confetti ---------- */
.sheet-root { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.sheet-root.open { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(10, 18, 34, .45); opacity: 0; transition: opacity .2s; }
.sheet-root.open .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease; }
.sheet-root.open .sheet { transform: none; }
.grab { width: 44px; height: 5px; border-radius: 99px; background: #dde3e1; margin: 0 auto 14px; }
.sheet h2 { font-size: 22px; }
.sheet .s-center { text-align: center; }
.sheet .s-big { font-size: 64px; }
.sheet p { color: #4d5c72; line-height: 1.5; margin-top: 8px; }
.sheet .actions { display: grid; gap: 10px; margin-top: 20px; }
.share-card { margin: 18px auto 0; width: 220px; aspect-ratio: 9 / 14; border-radius: 22px; background: linear-gradient(160deg, #16233f, #24406b 60%, #5e9a6c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; gap: 8px; }
.share-card .s-big { font-size: 70px; }
.share-card b { font-family: var(--head); font-size: 20px; }
.share-card small { color: #c7d3e4; }
.share-card .brand { margin-top: auto; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--green-2); }
.demo-box { margin-top: 20px; border: 1.5px dashed #d3dcd8; border-radius: 18px; padding: 14px; }
.demo-box h4 { font-size: 14px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.demo-box .btn { margin-top: 8px; }
.version { text-align: center; color: #a3afab; font-size: 12.5px; margin-top: 16px; }

.toasts { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: grid; gap: 8px; z-index: 40; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-weight: 600; animation: toastIn .3s ease; }
.toast span { font-size: 26px; }
.toast small { display: block; color: #b6c3d8; font-weight: 500; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-20px); opacity: 0; } }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
