/* ============================================================
   Summit: visual design
   ============================================================ */
:root {
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* sky + mountains */
  --sky-top: #c9d9ff;
  --sky-mid: #e9e4ff;
  --sky-bot: #fff2e6;
  --sun: #ffd9a8;
  --m1: #b7c3f0;
  --m2: #95a3e3;
  --m3: #7484d1;
  --stars: 0;

  /* surfaces */
  --text: #151937;
  --muted: #5d6390;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .85);
  --chip: rgba(21, 25, 55, .06);

  /* tiles */
  --tile-top: #ffffff;
  --tile-bot: #eef0fb;
  --tile-edge: #cdd2ee;
  --tile-text: #22274d;

  /* accent (theme-able) */
  --accent: #3d6bff;
  --accent-2: #8b4dff;
  --accent-edge: #2a3fb8;
  --accent-text: #ffffff;
  --accent-soft: rgba(61, 107, 255, .14);

  --good: #13b07a;
  --good-2: #0e8f8a;
  --bad: #ef4462;
  --gold: #ffb800;
  --pro: linear-gradient(135deg, #ff7a59 0%, #ff3d8b 45%, #8b4dff 100%);

  --shadow: 0 20px 50px rgba(40, 50, 120, .18);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #070a1f;
    --sky-mid: #141a44;
    --sky-bot: #2c2462;
    --sun: #f2f0ff;
    --m1: #232a63;
    --m2: #181e4b;
    --m3: #0f1335;
    --stars: 1;

    --text: #eef0ff;
    --muted: #9aa0d0;
    --glass: rgba(24, 29, 70, .58);
    --glass-strong: rgba(26, 31, 74, .92);
    --glass-border: rgba(140, 150, 255, .16);
    --chip: rgba(255, 255, 255, .07);

    --tile-top: #2a3170;
    --tile-bot: #20265a;
    --tile-edge: #12163d;
    --tile-text: #f0f2ff;

    --accent-edge: #1d2b8a;
    --accent-soft: rgba(110, 140, 255, .18);
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

/* Pro themes */
[data-theme="ember"] { --accent: #ff6a2b; --accent-2: #ff2d6f; --accent-edge: #b8341a; --accent-soft: rgba(255, 106, 43, .16); }
[data-theme="moss"]  { --accent: #12b07a; --accent-2: #0b8fb0; --accent-edge: #0a6b55; --accent-soft: rgba(18, 176, 122, .16); }
[data-theme="grape"] { --accent: #9b4dff; --accent-2: #ff4dd2; --accent-edge: #5d22b0; --accent-soft: rgba(155, 77, 255, .16); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--sky-mid);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- scenery ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bot) 100%);
  overflow: hidden;
}
.stars {
  position: absolute; inset: 0; opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 52%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.3); } }
.sun {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -40px; top: 8%;
  background: radial-gradient(circle, var(--sun) 0%, transparent 68%);
  opacity: .9;
}
.range { position: absolute; left: 0; bottom: 0; width: 100%; height: 46vh; min-height: 260px; }
.range .m1 { fill: var(--m1); }
.range .m2 { fill: var(--m2); }
.range .m3 { fill: var(--m3); }

.fx { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 50; pointer-events: none; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 4px;
}
.brand { text-align: center; }
.brand h1 {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-size: 1.65rem; font-weight: 900; letter-spacing: -.03em;
}
.logo { width: 32px; height: 24px; }
.logo stop:first-child { stop-color: var(--accent); }
.logo stop:last-child { stop-color: var(--accent-2); }
.puzzle-no { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.top-right { display: flex; gap: 8px; align-items: center; }
.icon-btn, .streak {
  height: 38px; min-width: 38px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 800;
}
.streak.hot {
  background: linear-gradient(135deg, #ffb347, #ff5e3a);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 94, 58, .4);
}
.pro-btn {
  height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--pro); background-size: 200% 200%;
  color: #fff; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(255, 61, 139, .35);
  animation: shimmer 5s ease infinite;
}
.pro-btn.active::after { content: " ✓"; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- layout ---------- */
main {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  padding: 8px 16px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.glass, .target-card, .board {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
}

/* round progress */
.round-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pips { display: flex; align-items: center; gap: 0; flex: 1; max-width: 190px; }
.pip {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--glass); border: 2px solid var(--glass-border);
  transition: all .3s;
}
.pip-line { flex: 1; height: 3px; background: var(--chip); border-radius: 2px; margin: 0 2px; transition: background .3s; }
.pip-line.done { background: var(--good); }
.pip.done { background: var(--good); border-color: var(--good); }
.pip.current {
  background: var(--accent); border-color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent);
}
.pip.flag { width: 18px; height: 18px; display: grid; place-items: center; font-size: .6rem; }
.mode-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
}
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); min-width: 44px; text-align: right; }

/* target */
.target-card { border-radius: var(--radius); padding: 14px 16px 16px; text-align: center; }
.round-name {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.target-line { font-size: 1.15rem; font-weight: 600; margin-top: 2px; }
.target-line strong {
  font-size: 3rem; font-weight: 900; line-height: 1; margin-left: 6px; vertical-align: -6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.target-line strong.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.target-sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.target-sub strong { color: var(--text); }
.progress { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.slots { display: flex; gap: 6px; }
.slot {
  width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg);
  border: 2px solid var(--muted); opacity: .45; transition: all .18s;
}
.slot.filled {
  opacity: 1; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent);
}
.sum {
  font-weight: 900; font-size: 1.1rem; font-variant-numeric: tabular-nums;
  min-width: 52px; padding: 4px 12px; border-radius: 999px;
  background: var(--chip); transition: all .2s;
}
.sum.over { background: rgba(239, 68, 98, .16); color: var(--bad); }
.sum.hit { background: rgba(19, 176, 122, .18); color: var(--good); }

/* ---------- board ---------- */
.board { position: relative; border-radius: 26px; padding: 12px; }
.grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  position: relative; z-index: 1;
}
.trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.trail .line {
  stroke: #fff; stroke-width: 9; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent));
}
.trail .line-core { stroke: var(--accent-2); stroke-width: 4; stroke-linecap: round; }
.trail .node { fill: #fff; stroke: var(--accent-2); stroke-width: 2.5; }
.board.win .trail .line { filter: drop-shadow(0 0 10px var(--good)); }
.board.win .trail .line-core, .board.win .trail .node { stroke: var(--good); }
.board.shake .trail .line-core, .board.shake .trail .node { stroke: var(--bad); }

.cell {
  aspect-ratio: 1; border: 0; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot));
  color: var(--tile-text);
  box-shadow: 0 5px 0 var(--tile-edge), 0 8px 14px rgba(20, 25, 70, .12), inset 0 1px 0 rgba(255, 255, 255, .5);
  font-size: clamp(1.35rem, 7.2vw, 2rem); font-weight: 800;
  transform: translateY(0);
  transition: transform .1s ease, box-shadow .1s ease, background .15s;
}
.cell:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--tile-edge), 0 4px 8px rgba(20, 25, 70, .1); }
.cell.on {
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: var(--accent-text);
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--accent-edge), 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cell.end { animation: press .25s ease; }
@keyframes press { 40% { transform: translateY(5px) scale(.94); } }
.cell .ord {
  position: absolute; top: 5px; left: 8px;
  font-size: .62rem; font-weight: 800; opacity: .8;
}
.cell.hint::before {
  content: ""; position: absolute; inset: -3px; border-radius: 18px;
  border: 3px dashed var(--gold); animation: spin-dash 1.4s linear infinite;
}
@keyframes spin-dash { 50% { opacity: .45; } }
.cell.hint .hint-no {
  position: absolute; bottom: 4px; right: 7px;
  font-size: .62rem; font-weight: 900; color: var(--gold);
}
.cell.on.hint .hint-no { color: #fff; }

.board.win .cell.on {
  background: linear-gradient(160deg, var(--good), var(--good-2));
  box-shadow: 0 2px 0 #0a5f4a, 0 0 22px rgba(19, 176, 122, .6);
  animation: pop .45s ease;
}
.board.shake { animation: shake .42s; }
.board.shake .cell.on { background: linear-gradient(160deg, #ff6b7f, var(--bad)); box-shadow: 0 2px 0 #9c1d36; }
@keyframes pop { 50% { transform: translateY(0) scale(1.1); } }
@keyframes shake {
  20%, 60% { transform: translateX(-9px); }
  40%, 80% { transform: translateX(9px); }
}
.board.enter .cell { animation: drop .45s cubic-bezier(.3, 1.4, .5, 1) backwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.85); } }

/* ---------- controls ---------- */
.controls { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 9px; }
.btn {
  border: 0; border-radius: 14px; padding: 13px 14px; font-weight: 800;
  transition: transform .1s, filter .15s;
}
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn.ghost {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn.pro {
  background: var(--pro); background-size: 200% 200%; color: #fff;
  box-shadow: 0 8px 22px rgba(255, 61, 139, .38);
  animation: shimmer 5s ease infinite;
}
.btn.wide { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .4; cursor: default; }
.badge {
  display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 2px;
  border-radius: 999px; background: var(--gold); color: #3a2a00; font-size: .72rem; font-weight: 900;
}
.more { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); }
.link { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 6px 2px; }
.hidden { display: none !important; }

/* ---------- dialogs ---------- */
dialog {
  border: 1px solid var(--glass-border); border-radius: 26px;
  background: var(--glass-strong); color: var(--text);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 24px 20px 16px; box-shadow: var(--shadow);
}
dialog[open] { animation: dlg-in .35s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
dialog::backdrop { background: rgba(8, 10, 30, .5); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 8px; text-align: center; font-weight: 900; letter-spacing: -.02em; font-size: 1.6rem; }
dialog h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 18px 0 8px; font-weight: 800; }
.close-link { display: block; margin: 8px auto 0; color: var(--muted); }
.muted { color: var(--muted); text-align: center; margin: 0 0 12px; }

.how { padding-left: 20px; line-height: 1.55; }
.how li { margin-bottom: 6px; }
.how li::marker { color: var(--accent); font-weight: 900; }
.demo { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 16px 0 6px; }
.demo .d {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2)); color: #fff;
  font-weight: 900; font-size: 1.3rem; box-shadow: 0 3px 0 var(--accent-edge);
}
.demo .eq { font-weight: 900; margin-left: 6px; color: var(--good); font-size: 1.1rem; }

.res-sub { text-align: center; color: var(--muted); margin: 0; font-weight: 600; }
.res-stars { display: flex; justify-content: center; gap: 10px; margin: 16px 0; }
.round-stars {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px; border-radius: 14px; background: var(--chip);
  font-size: 1.15rem; letter-spacing: 1px;
  opacity: 0; animation: rise .5s cubic-bezier(.3, 1.4, .5, 1) forwards;
}
.round-stars small { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.round-stars:nth-child(2) { animation-delay: .15s; }
.round-stars:nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.85); } to { opacity: 1; transform: none; } }
.res-stats, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.res-stats div, .stat-grid div { background: var(--chip); border-radius: 14px; padding: 10px 4px; }
.res-stats b, .stat-grid b { display: block; font-size: 1.5rem; font-weight: 900; }
.res-stats span, .stat-grid span { font-size: .7rem; color: var(--muted); font-weight: 600; }
.countdown { text-align: center; color: var(--muted); font-size: .9rem; margin: 12px 0 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.upsell {
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 122, 89, .14), rgba(139, 77, 255, .16));
  border: 1px solid rgba(255, 61, 139, .25);
}
.upsell p { margin: 0; font-size: .92rem; line-height: 1.45; }

.dist { display: flex; flex-direction: column; gap: 5px; }
.dist-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
.dist-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff;
  border-radius: 7px; padding: 3px 8px; font-weight: 800; min-width: 28px; text-align: right;
}
.shield-note { margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }
.themes { display: flex; gap: 12px; justify-content: center; }
.swatch { width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.swatch.sel { border-color: var(--text); }
.swatch.locked { opacity: .4; }
.pro-tag { background: var(--pro); color: #fff; font-size: .58rem; padding: 2px 7px; border-radius: 6px; vertical-align: 1px; letter-spacing: .08em; }
/* account + sign-in */
.account { display: flex; flex-direction: column; gap: 6px; }
.acct-line { margin: 0; text-align: center; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.acct-line b { color: var(--text); }
.acct-warn { color: var(--bad); font-weight: 700; }
.acct-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.acct-actions .btn { padding: 10px 14px; font-size: .9rem; }
.signin { margin-top: 14px; text-align: left; }
.signin-lead { margin: 0 0 10px; font-size: .9rem; color: var(--muted); line-height: 1.45; text-align: center; }
.signin-form { display: flex; gap: 8px; }
.signin-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border-radius: 14px; border: 2px solid var(--glass-border); background: var(--chip);
}
.signin-form input:focus { outline: none; border-color: var(--accent); }
.signin-form .btn { flex: none; }
.link.inline { padding: 0; font-size: inherit; }

.archive { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; max-height: 50dvh; overflow: auto; padding: 2px; }
.arch {
  border: 0; border-radius: 12px; padding: 9px 2px; background: var(--chip);
  font-size: .82rem; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.arch small { font-weight: 600; color: var(--muted); font-size: .65rem; }
.arch.done { background: var(--accent-soft); }
.arch.locked { opacity: .55; }

/* paywall */
.pro-dialog { text-align: center; overflow-x: hidden; }
.pro-hero {
  width: 76px; height: 76px; margin: -4px auto 8px; border-radius: 22px;
  display: grid; place-items: center; font-size: 2.4rem;
  background: var(--pro); box-shadow: 0 12px 30px rgba(255, 61, 139, .4);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-5px) rotate(-3deg); } }
.pro-dialog h2 {
  background: var(--pro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pro-reason { color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.perks { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks span {
  font-size: 1.15rem; width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: var(--chip);
}
.perks div { font-size: .84rem; color: var(--muted); }
.perks div b { display: block; color: var(--text); font-size: .95rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body {
  display: flex; flex-direction: column; gap: 2px; align-items: center;
  padding: 16px 6px 12px; border-radius: 16px; border: 2px solid var(--glass-border);
  background: var(--chip); cursor: pointer; position: relative; height: 100%; transition: all .15s;
}
.plan input:checked + .plan-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan input:focus-visible + .plan-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-tag {
  position: absolute; top: -11px; background: var(--gold); color: #3a2a00;
  font-size: .64rem; font-weight: 900; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 1.4rem; font-weight: 900; }
.price small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.per { font-size: .72rem; color: var(--muted); }
.fine { font-size: .74rem; color: var(--muted); margin: 8px 0 0; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  inset: auto auto 24px 50%; margin: 0; overflow: visible;
  transform: translate(-50%, 20px);
  background: var(--glass-strong); color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 11px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .25s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .brand h1 { font-size: 1.35rem; }
  .logo { width: 26px; }
  .pro-btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .round-stars { opacity: 1; }
}

/* ---------- legal footer ---------- */
.site-foot {
  position: relative; z-index: 1;
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 4px 16px calc(16px + env(safe-area-inset-bottom));
}
.site-foot a, .fine a { color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
