:root {
  --sky-top: #2f80cf;
  --sky-bot: #bfe0f7;
  --ink: #15314a;
  --ink-soft: #5b7488;
  --card: #ffffff;
  --card-2: #f3f8fd;
  --line: #d9e6f2;
  --brand: #2f7fce;
  --brand-dk: #1f5fa3;
  --good: #2faa6a;
  --good-bg: #e4f6ec;
  --bad: #d7553f;
  --bad-bg: #fbe7e2;
  --gold: #e8a93a;
  --shadow: 0 8px 28px rgba(20, 60, 100, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 38%, #eef6fc 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 18px calc(28px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- shared bits ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px 14px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .2px; text-shadow: 0 1px 2px rgba(20,60,100,.25); }
.brand svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 20px; font-weight: 800; }
.brand-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; opacity: .85; }
.streak-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px;
  box-shadow: var(--shadow);
}

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 10px; }
p { line-height: 1.5; }

.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  font-size: 17px; font-weight: 700; padding: 16px; border-radius: 14px;
  background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(47,127,206,.35);
  transition: transform .06s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px) scale(.997); }
.btn.secondary { background: var(--card-2); color: var(--brand-dk); box-shadow: none; border: 1.5px solid var(--line); }
.btn.gold { background: linear-gradient(135deg, #f0b94e, #e2912c); box-shadow: 0 4px 14px rgba(226,145,44,.4); }
.btn.ghost { background: transparent; color: #fff; box-shadow: none; font-weight: 600; }
.btn.share-cta { background: #15a94b; box-shadow: 0 4px 14px rgba(21,169,75,.35); }
/* share icon + invite button */
.share-ic { width: 18px; height: 18px; vertical-align: -3px; flex: 0 0 auto; }
.hm-invite { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.hm-invite .share-ic { width: 17px; height: 17px; }
/* celebratory full-screen share takeover */
.takeover { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 24px; background: rgba(14,32,60,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease; }
.takeover.show { opacity: 1; }
.to-card { width: 100%; max-width: 360px; background: linear-gradient(180deg, #eaf4fd, #fff);
  border-radius: 26px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 24px 60px rgba(14,32,60,.35);
  transform: translateY(18px) scale(.95); transition: transform .3s cubic-bezier(.2,.9,.3,1.25); }
.takeover.show .to-card { transform: none; }
.to-art { width: 190px; max-width: 72%; margin: 0 auto 8px; }
.to-art svg { width: 100%; height: auto; display: block; }
.to-head { font-size: 22px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; line-height: 1.25; text-wrap: balance; }
.to-sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.to-share { background: #15a94b !important; box-shadow: 0 6px 16px rgba(21,169,75,.35);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.to-share .share-ic { width: 20px; height: 20px; }
.to-close { display: block; width: 100%; margin-top: 10px; background: none; border: none;
  color: var(--ink-soft); font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px; }
.btn + .btn { margin-top: 10px; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- home ---------- */
.hero { color: #fff; padding: 6px 4px 18px; }
.hero h1 { font-size: 30px; text-shadow: 0 1px 5px rgba(8,30,55,.5); }
.hero p { margin: 4px 0 0; font-weight: 500; text-shadow: 0 1px 4px rgba(8,30,55,.45); }

/* plain-language explainer next to a genus name */
.opt-nick { color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.h-nick { font-weight: 600; font-size: .8em; opacity: .72; }

.stat-row { display: flex; gap: 12px; margin-bottom: 16px; }
.stat {
  flex: 1; background: rgba(255,255,255,.92); border-radius: 14px;
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow);
}
.stat .n { font-size: 24px; font-weight: 800; color: var(--brand-dk); }
.stat .l { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.25; }
.stat .l-sub { font-size: 10px; opacity: .8; }

/* ---- level ladder UI ---- */
.tier-strip { background: rgba(255,255,255,.92); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 16px; }
.ts-status { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.ts-status strong { color: var(--ink); font-weight: 800; }
.ts-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ts-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #5aa0e6, #2f7fce); border-radius: 999px; transition: width .4s ease; }
.ts-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-top: 8px; }
.ts-foot .lock { color: var(--brand-dk); white-space: nowrap; }

.levelup { background: linear-gradient(135deg, #4a97e4, #2f7fce); color: #fff; border-radius: 16px; padding: 15px; text-align: center; margin-bottom: 12px; box-shadow: var(--shadow); animation: rise .3s ease; }
.levelup.gold { background: linear-gradient(135deg, #f0b94e, #e2912c); }
.levelup .lu-big { font-weight: 800; font-size: 18px; }
.levelup .lu-sub { font-size: 13px; opacity: .96; margin-top: 3px; line-height: 1.4; }
.levelup.nudge { background: var(--card-2); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.levelup.nudge strong { color: var(--brand-dk); }

.q-hint { font-size: 13.5px; font-weight: 700; color: var(--brand-dk); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; margin: 12px 2px 0; }
.q-hint strong { color: var(--brand-dk); }

.daily-card { position: relative; overflow: hidden; }
.daily-card .tag { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--brand); }
.daily-card .done { color: var(--good); }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--card); border-radius: 16px; padding: 16px; text-align: left;
  box-shadow: var(--shadow); border: none; cursor: pointer; font: inherit; color: var(--ink);
}
.tile .ico { font-size: 26px; }
.tile .t { font-weight: 800; margin-top: 8px; font-size: 16px; }
.tile .s { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }
.tile.locked .t::after { content: " 🔒"; }

/* ---- action hierarchy ---- */
/* primary CTA (Quick Play) — biggest, filled blue */
.card-cta {
  display: block; width: 100%; text-align: left; border: none; cursor: pointer; font: inherit;
  position: relative; color: #fff; border-radius: var(--radius); padding: 20px 20px 18px;
  margin-bottom: 14px; background: linear-gradient(135deg, #4a97e4, #2f7fce);
  box-shadow: 0 10px 26px rgba(31, 95, 163, .42);
  transition: transform .06s ease, filter .15s ease;
}
.card-cta:active { transform: translateY(1px) scale(.997); }
.cta-tag { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; opacity: .92; }
.cta-title { font-size: 23px; font-weight: 800; margin-top: 6px; line-height: 1.15; }
.cta-sub { font-size: 14px; opacity: .94; margin-top: 4px; }
.cta-go {
  display: inline-block; margin-top: 14px; background: var(--good); color: #fff;
  font-weight: 800; font-size: 15px; padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(47,170,106,.5);
}

/* secondary action (Pro) — filled gold, horizontal */
.action {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: none; cursor: pointer; font: inherit; color: #fff; border-radius: var(--radius);
  padding: 16px 14px; margin-bottom: 16px; transition: transform .06s ease;
}
.action:active { transform: translateY(1px) scale(.998); }
.action-pro { background: linear-gradient(135deg, #f0b94e, #e2912c); box-shadow: 0 8px 22px rgba(226,145,44,.4); }
.action-ico { font-size: 28px; line-height: 1; flex: none; }
.action-ico .pro-svg { width: 40px; height: 40px; display: block; }
.action-text { flex: 1; }
.action-title { font-weight: 800; font-size: 18px; text-wrap: balance; }
.action-sub { font-size: 12.5px; opacity: .95; margin-top: 1px; text-wrap: balance; }
.action-by { font-size: 11.5px; font-style: italic; opacity: .9; margin-top: 3px; text-wrap: balance; }
.action-arrow { font-size: 18px; font-weight: 800; opacity: .85; flex: none; }
.pro-cta {
  flex: none; background: var(--good); color: #fff; font-weight: 800; font-size: 13px;
  padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(47,170,106,.5);
}

/* supporting utility tiles — quiet, no shadow */
.util-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.util {
  background: rgba(255,255,255,.7); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
}
.util:active { background: var(--card-2); }
.util-ico { font-size: 20px; }
.util-t { font-weight: 700; font-size: 14.5px; margin-top: 5px; }
.util-s { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }

/* ---------- quiz ---------- */
.quiz-head { display: flex; align-items: center; gap: 12px; color: #fff; padding: 14px 2px; }
.progress { flex: 1; height: 8px; background: rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width .35s ease; }
.qx { font-weight: 700; font-size: 14px; }
.timer {
  font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: 5px 11px; border-radius: 999px; min-width: 52px; text-align: center;
}
.timer::before { content: "⏱ "; }
.timer.low { background: var(--bad); color: #fff; animation: tick-pulse .9s ease-in-out infinite; }
@keyframes tick-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.close-x { background: rgba(255,255,255,.85); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--ink); }

.photo-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #cfe2f1; aspect-ratio: 4 / 3; box-shadow: var(--shadow); margin-bottom: 8px;
}
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-wrap .credit {
  position: absolute; bottom: 6px; right: 8px; font-size: 10px; color: #fff;
  background: rgba(0,0,0,.4); padding: 2px 7px; border-radius: 999px;
}
.photo-skel { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; }

.q-prompt { font-weight: 700; font-size: 17px; margin: 16px 2px 12px; }
.options { display: grid; gap: 10px; }
.opt {
  text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 15px 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: border-color .12s ease, background .12s ease;
}
.opt:active { background: var(--card-2); }
.opt.correct { border-color: var(--good); background: var(--good-bg); color: #1c6b43; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); color: #9c3322; }
.opt .mark { font-weight: 800; }
.opt:disabled { cursor: default; }

.explain {
  margin-top: 16px; border-radius: 14px; padding: 16px; background: var(--card-2);
  border-left: 4px solid var(--brand); animation: rise .25s ease;
}
.explain.good { border-color: var(--good); background: var(--good-bg); }
.explain.bad { border-color: var(--bad); background: var(--bad-bg); }
.explain .h { font-weight: 800; margin-bottom: 4px; }
.explain .why { font-size: 14.5px; line-height: 1.5; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.report-row { text-align: center; margin-top: 12px; }
.report-link { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted var(--ink-soft); }
.report-link:active { color: var(--brand-dk); }

.sticky-cta { position: sticky; bottom: 8px; margin-top: 16px; }

/* ---------- result ---------- */
.result-score { font-size: 54px; font-weight: 800; color: var(--brand-dk); line-height: 1; }
.badge-line { display: inline-flex; gap: 6px; align-items: center; background: var(--good-bg); color: #1c6b43; font-weight: 700; padding: 8px 14px; border-radius: 999px; margin-top: 12px; }

/* ---------- learn / gallery ---------- */
.learn-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.learn-item:last-child { border-bottom: none; }
.learn-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: #cfe2f1; }
.learn-item .n { font-weight: 800; }
.learn-item .a { font-size: 12px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.learn-item .d { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }

/* ---------- paywall ---------- */
.pro-eyebrow { font-weight: 800; letter-spacing: .9px; font-size: 13px; color: var(--ink-soft); }
.price { font-size: 46px; font-weight: 800; color: var(--brand-dk); margin: 2px 0 3px; line-height: 1; }
.price-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.pro-pitch { font-size: 15px; line-height: 1.5; color: var(--ink); margin: 0 6px; }
.pro-pitch strong { color: var(--brand-dk); }
.pro-close { font-size: 14px; font-weight: 700; color: var(--brand-dk); margin: 14px 4px 0; }
.two-ways { text-align: left; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin: 14px 0 6px; }
.tw-title { font-weight: 800; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--brand-dk); margin-bottom: 8px; }
.tw-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.tw-row + .tw-row { margin-top: 8px; }
.tw-num { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.feature-list { list-style: none; padding: 0; margin: 16px 0; }
.feature-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.feature-list li::before { content: "✓"; color: var(--good); font-weight: 800; }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.teaser { background: var(--card-2); border-radius: 12px; padding: 12px; }
.teaser .n { font-weight: 800; font-size: 14px; }
.teaser .d { font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.35; }

.backbar { color: #fff; padding: 14px 2px; }
.backbar button { background: rgba(255,255,255,.85); border: none; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow); z-index: 50; animation: rise .25s ease;
}
.spacer { flex: 1; }
.foot { text-align: center; font-size: 11.5px; color: var(--ink-soft); padding: 18px 0 4px; }

/* ================= redesigned home (light, cloud-y) ================= */
body.home { background: linear-gradient(180deg, #cfe7fb 0%, #e9f4fd 42%, #f8fcff 100%); }
.hm-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 8px; }
.hm-brand { display: flex; align-items: center; gap: 9px; }
.hm-brand svg { width: 34px; height: 34px; }
.hm-nm { font-weight: 800; font-size: 19px; color: var(--ink); line-height: 1; }
.hm-tg { font-size: 9px; letter-spacing: 1.4px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.hm-streak { background: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 14px; color: var(--ink); box-shadow: 0 5px 16px rgba(30,60,100,.12); }
.hm-top-right { display: flex; align-items: center; gap: 8px; }
.hm-tog { appearance: none; border: none; background: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 5px 16px rgba(30,60,100,.12); transition: opacity .15s, transform .08s; }
.hm-tog:active { transform: scale(.92); }
.hm-tog.off { opacity: .4; }
.hm-tog.off::after { content: ""; position: absolute; width: 26px; height: 2px; background: currentColor; transform: rotate(-45deg); opacity: .55; }
.hm-tog { position: relative; }
.hm-hero { padding: 2px 2px; }
.hm-hero h1 { font-size: 30px; letter-spacing: -.5px; color: var(--ink); }
.hm-hero p { color: var(--ink-soft); font-size: 14.5px; margin-top: 3px; }

.hm-statrow { display: flex; gap: 4px; margin: 8px 0 4px; }
.hm-statrow .hm-cloud { flex: 1; position: relative; filter: drop-shadow(0 8px 12px rgba(40,90,140,.14)); }
.hm-cloud > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-in { position: relative; text-align: center; padding: 30px 8px 22px; }
.hm-in b { font-size: 19px; display: block; color: var(--brand-dk); }
.hm-in span { font-size: 10.5px; color: var(--ink-soft); }
.hm-in .hm-xp { display: block; font-size: 9.5px; font-weight: 700; color: var(--brand); opacity: .78; letter-spacing: .3px; margin-top: 1px; }

.hm-card {
  display: block; width: 100%; text-align: left; border: none; cursor: pointer; font: inherit;
  color: var(--ink); background: #fff; border-radius: 26px; padding: 20px 20px 22px;
  box-shadow: 0 12px 28px rgba(30,60,100,.13); margin-bottom: 13px; position: relative; overflow: hidden;
  transition: transform .06s ease;
}
.hm-card:active { transform: translateY(1px) scale(.998); }
.hm-deco { position: absolute; right: -18px; bottom: -24px; width: 150px; opacity: .08; }
.hm-deco-tl { position: absolute; left: -16px; top: -22px; right: auto; bottom: auto; width: 132px; opacity: .1; }
.hm-tag { font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--brand); }
.hm-h2 { font-size: 23px; margin-top: 5px; letter-spacing: -.3px; font-weight: 800; text-wrap: balance; }
.hm-sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; line-height: 1.35; }
.hm-play { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; background: var(--good); color: #fff; font-weight: 800; font-size: 16px; padding: 12px 24px; border-radius: 999px; box-shadow: 0 6px 16px rgba(47,170,106,.45); }
.hm-pro { border: 1.5px solid #f1dcac; background: linear-gradient(180deg, #fffaf0, #ffffff); }
.hm-pro-top { display: flex; align-items: center; gap: 12px; }
.hm-pro-text { flex: 1; }
.hm-pro-h { font-size: 19px; }
.hm-by { font-size: 12px; font-style: italic; color: var(--ink-soft); margin-top: 6px; }
.hm-gopro { flex: none; margin-left: auto; align-self: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(47,127,206,.42); white-space: nowrap; }

.hm-daily { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: none; cursor: pointer; font: inherit; color: var(--ink); background: #fff; border-radius: 16px; padding: 12px 15px; box-shadow: 0 8px 20px rgba(30,60,100,.09); margin: 0 0 6px; }
.hm-d-ico { font-size: 22px; flex: none; }
.hm-d-text { flex: 1; }
.hm-d-text b { font-size: 15px; display: block; }
.hm-d-text > span { font-size: 12px; color: var(--ink-soft); }
.hm-d-go { color: var(--brand); font-weight: 800; font-size: 20px; flex: none; }
.hm-atlas { display: block; width: 100%; text-align: center; color: var(--brand); font-weight: 700; font-size: 14px; background: none; border: none; cursor: pointer; padding: 12px; }
.hm-share { color: #15a94b; }
/* Achievements screen */
.achv-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 14px; }
.achv-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.achv-count { font-weight: 800; color: var(--brand); font-size: 15px; }
.achv-grid { display: flex; flex-direction: column; gap: 10px; }
.achv { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid rgba(30,60,100,.08); border-radius: 16px; padding: 14px 16px; box-shadow: 0 5px 16px rgba(30,60,100,.06); }
.achv.locked { opacity: .55; }
.achv-ic { font-size: 30px; line-height: 1; flex: 0 0 auto; width: 44px; text-align: center; }
.achv-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.achv-tx b { font-size: 16px; color: var(--ink); }
.achv-tx span { font-size: 13px; color: var(--ink-soft); }
.achv-tick { color: #15a94b; font-weight: 800; font-size: 20px; flex: 0 0 auto; }
.achv-share { flex: 0 0 auto; background: none; border: none; cursor: pointer; color: var(--brand); padding: 6px; line-height: 0; border-radius: 10px; }
.achv-share .share-ic { width: 22px; height: 22px; }
.achv-share:active { transform: scale(.9); }
/* two side-by-side boxes: achievements / invite */
.hm-duo { display: flex; gap: 10px; margin: 2px 0 6px; }
.hm-duobox { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: none; cursor: pointer; font: inherit; color: var(--ink);
  border-radius: 16px; padding: 16px 10px; box-shadow: 0 8px 20px rgba(30,60,100,.09); min-height: 98px; }
.hm-duobox:active { transform: translateY(1px); }
.hm-duo-ic { font-size: 26px; line-height: 1; display: inline-flex; }
.hm-duo-ic.hm-duo-share { color: var(--brand); }
.hm-duo-share .share-ic { width: 30px; height: 30px; }
.hm-duo-tx { font-size: 14px; font-weight: 700; }
.hm-duo-n { font-size: 13px; font-weight: 800; color: var(--brand); }
.hm-in b { white-space: nowrap; }
.hm-credit { text-align: center; font-size: 11px; color: var(--ink-soft); margin-top: 8px; }
.hm-credit .credit-link { color: var(--brand, #2f7fce); text-decoration: underline; font-weight: 600; }

/* Restore-purchase text link on the paywall */
.restore-link {
  display: block; margin: 6px auto 0; background: none; border: 0;
  color: var(--brand); font: inherit; font-size: 0.86rem; text-decoration: underline;
  cursor: pointer; padding: 6px;
}

.replay-hint { text-align:center; font-size:13px; margin:-2px 0 8px; opacity:.8; }

.hm-unlock { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.hm-restart { display:block; margin:2px auto 12px; padding:6px 14px; background:none; border:none; color:#5b7a99; font-size:13px; text-decoration:underline; cursor:pointer; }
