@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url(fonts/fredoka-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url(fonts/fredoka-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

/* Base reset (the artifact host supplied this before) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: one column, phone-first; a home grid of monster cards, then a kid screen with tabs (Earn / Shop / Goals / Week). */
:root {
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --surface-2: #F1ECFF;
  --ink: #2B2650;
  --muted: #6A6488;
  --line: #E6DFF5;
  --accent: #FFB400;
  --accent-ink: #3B2A00;
  --primary: #6B4EFF;
  --good: #16865B;
  --warn: #C2410C;
  --shadow: 0 2px 0 rgba(75,60,140,.06), 0 8px 24px rgba(75,60,140,.10);
  --font-display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 18px;
}
/* One light, pastel look everywhere, even when the phone is in dark mode. */
html, body { min-height: 100%; }
body { background: radial-gradient(circle at 0% 0%, #FFE1EF 0, transparent 38%), radial-gradient(circle at 100% 8%, #D9F1FF 0, transparent 42%), radial-gradient(circle at 15% 100%, #E1F8E6 0, transparent 45%), radial-gradient(circle at 100% 85%, #EFE6FF 0, transparent 40%), var(--bg); background-attachment: fixed; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.45; }
* { box-sizing: border-box; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.15; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; padding-block: 12px 96px; }

.top { display: flex; align-items: center; gap: 10px; padding-block: 8px 14px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .2px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; }
.iconbtn svg { width: 20px; height: 20px; }

.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kidcard { background: var(--surface); border: 0; border-radius: 24px; box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; text-align: left; position: relative; overflow: hidden; }
.kidcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--kid); }
.kidcard .m { width: 112px; height: 112px; }
.kidcard h2 { font-size: 26px; }
.bal { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.bal span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.meta { color: var(--muted); font-size: 14px; }
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--kid, var(--accent)); border-radius: 99px; transition: width .4s ease; }
.stack { display: grid; gap: 6px; min-width: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 16px; align-items: center; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 16px; }
.hero .m { width: 100%; max-width: 220px; aspect-ratio: 1; }
.hero h1 { font-size: 34px; }
@media (max-width: 480px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero .m { max-width: 200px; }
  .hero .stack { justify-items: center; width: 100%; }
  .hero .bar { width: 100%; }
}
.lvl { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 700; }

.tabs { display: flex; gap: 6px; margin-block: 16px 14px; background: var(--surface-2); padding: 5px; border-radius: 16px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 10px 4px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.beh { border: 2px solid transparent; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 10px 14px; display: grid; justify-items: center; gap: 6px; min-height: 132px; align-content: center; transition: transform .12s ease; }
.beh:active { transform: scale(.96); }
.beh .e { font-size: 42px; line-height: 1; }
.beh .l { font-family: var(--font-display); font-weight: 600; font-size: 18px; text-align: center; line-height: 1.15; }
.beh .c { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.beh.bonus { background: var(--accent); color: var(--accent-ink); }
.beh.bonus .c { color: var(--accent-ink); opacity: .8; }

.sect { margin-block: 22px 10px; display: flex; align-items: baseline; gap: 10px; }
.sect h3 { font-size: 20px; }
.sect p { margin: 0; color: var(--muted); font-size: 14px; }

.item { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 6px; justify-items: center; text-align: center; border: 2px solid transparent; }
.item.on { border-color: var(--kid); }
.item .m { width: 100%; max-width: 120px; aspect-ratio: 1; }
.item .n { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.btn { border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; background: var(--surface-2); min-height: 44px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.kid { background: var(--kid); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.small { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }

.treat { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; }
.treat .e { font-size: 30px; }
.treat .t { flex: 1; min-width: 0; }
.treat .t b { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: block; }
.list { display: grid; gap: 10px; }

.goal { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; }
.goal .big { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ms { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.ms .at { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.ms .at small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.pill { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.pill.locked { background: var(--surface-2); color: var(--muted); }
.pill.ready { background: var(--accent); color: var(--accent-ink); }
.pill.given { background: transparent; color: var(--good); border: 1px solid currentColor; }

.wk { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.wkrow { display: grid; grid-template-columns: minmax(0, 150px) 1fr 32px; gap: 10px; align-items: center; font-size: 15px; }
.wkrow .bar { height: 14px; }
.wkrow b { text-align: right; font-variant-numeric: tabular-nums; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.days .d { background: var(--surface-2); border-radius: 10px; padding: 8px 2px; }
.days .d b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.days .d.today { outline: 2px solid var(--kid); }
.log { display: grid; gap: 6px; }
.logrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.logrow .t { flex: 1; min-width: 0; }
.logrow .when { color: var(--muted); font-size: 13px; }
.logrow .p { font-weight: 700; font-variant-numeric: tabular-nums; }
.logrow .p.neg { color: var(--muted); }

.note { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }

/* settings */
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.field input, .field select, .inp { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 10px; min-height: 42px; color: var(--ink); font-size: 16px; width: 100%; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; }
.sw[aria-pressed="true"] { border-color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 7px 12px; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.editrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 62px 40px; gap: 8px; align-items: center; }
.editrow.two { grid-template-columns: 46px minmax(0, 1fr) 40px; }
.editrow input { min-width: 0; }
.x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 18px; }
.lib { display: grid; gap: 8px; }
.libitem { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--bg); }
.libitem .e { font-size: 26px; }
.libitem b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.libitem p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.tag.star { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tag.new { color: #fff; background: #4CBF5A; border-color: #4CBF5A; }
.count { font-weight: 700; }
.count.over { color: var(--warn); }
details > summary { cursor: pointer; font-weight: 700; padding-block: 6px; }

/* overlay */
.ov { position: fixed; inset: 0; background: rgba(10,14,30,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 26px; padding: 22px; width: min(420px, 100%); display: grid; gap: 14px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 26px; }
.modal .m { width: 160px; height: 160px; margin: 0 auto; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keys button { min-height: 58px; font-size: 24px; font-family: var(--font-display); border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.dots { display: flex; justify-content: center; gap: 12px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.dots i.f { background: var(--primary); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: 16px; display: flex; gap: 14px; align-items: center; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 32px); font-weight: 700; }
.toast button { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 10px; padding: 6px 12px; font-weight: 700; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

.m svg { width: 100%; height: 100%; display: block; overflow: visible; }
.blink { animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } .beh, .bar > i { transition: none; } }

/* ---------- added for the installable app ---------- */
.sync { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; }
.sync.ok { background: var(--good); }
.auth { max-width: 440px; margin: 4vh auto 0; display: grid; gap: 16px; }
.auth .m { width: 150px; height: 150px; margin: 0 auto; }
.auth h1 { font-size: 30px; text-align: center; }
.auth p.lead { text-align: center; color: var(--muted); margin: 0; }
.seg2 { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg2 button { flex: 1; border: 0; border-radius: 10px; padding: 10px; background: transparent; font-weight: 700; color: var(--muted); }
.seg2 button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 6px; font-size: 14px; }
.err { color: var(--warn); font-size: 14px; margin: 0; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member .t { flex: 1; min-width: 0; }
.member .t b { display: block; }
.pill.role { background: var(--surface-2); color: var(--ink); }
.code { font-family: var(--font-display); font-size: 34px; letter-spacing: 4px; font-weight: 700; background: var(--surface-2); border-radius: 14px; padding: 10px; user-select: all; }
.small-link { font-size: 13px; color: var(--muted); word-break: break-all; user-select: all; }
.banner { position: fixed; left: 16px; right: 16px; top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--primary); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; z-index: 45; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 728px; margin: 0 auto; }
.banner span { flex: 1; font-weight: 700; }
.banner button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.by { color: var(--muted); font-size: 13px; }

/* ---------- monster tab, house and trophy case ---------- */
.tabs button { font-size: 15px; padding: 10px 2px; }
@media (max-width: 380px) { .tabs button { font-size: 13.5px; } }
.house { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 6px; }
.house svg { display: block; width: 100%; height: auto; }
.m.house-mini { aspect-ratio: 3 / 2; max-width: 100%; }
.mini { display: inline-block; width: 30px; height: 30px; vertical-align: middle; margin-right: 6px; }
.mini svg { width: 100%; height: 100%; }
.seg.pick button { display: inline-flex; align-items: center; }
button.item { border: 2px solid transparent; font: inherit; color: inherit; cursor: pointer; }
button.item.on { border-color: var(--kid); }
.case { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.trophy { background: var(--surface); border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 10px 6px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.trophy .art { width: 64px; height: 64px; }
.trophy .art svg { width: 100%; height: 100%; }
.trophy .n { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.15; }
.trophy .d { font-size: 12px; color: var(--muted); }
.trophy.locked { background: var(--surface-2); box-shadow: none; }
.trophy.locked .n { color: var(--muted); }
.shelfbig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: linear-gradient(to bottom, transparent calc(100% - 14px), #8D6E63 calc(100% - 14px)); padding-bottom: 18px; border-radius: 0 0 6px 6px; }
.shelfbig > p { grid-column: 1 / -1; }
.minishelf { display: flex; gap: 6px; }
.minishelf span { width: 34px; height: 34px; display: block; }
.minishelf svg { width: 100%; height: 100%; }

/* Make: the monster stays in view while options change */
.card.make { padding-top: 0; }
.studio { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 4; margin-inline: -16px; padding: 12px 16px 8px; background: var(--surface); border-radius: 22px 22px 0 0; border-bottom: 1px solid var(--line); display: grid; justify-items: center; gap: 2px; }
.studio .m { width: 150px; height: 150px; }
.studio-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
@media (max-height: 700px) { .studio .m { width: 112px; height: 112px; } }

.pop { position: fixed; left: 50%; top: 42%; z-index: 61; pointer-events: none; font-family: var(--font-display); font-weight: 700; font-size: 120px; line-height: 1; color: var(--pc); -webkit-text-stroke: 6px #fff; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0,0,0,.18), 0 10px 30px rgba(0,0,0,.25); transform: translate(-50%, -50%); }

/* Lobby: monsters hanging out on the lawn */
.lobby { position: relative; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #7CC95A; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lobby > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lobby .cloud { animation: drift 48s linear infinite; }
@keyframes drift { from { transform: translateX(-140px); } to { transform: translateX(460px); } }
.lobby-layer { position: absolute; inset: 0; pointer-events: none; }
.walker { position: absolute; width: 25%; aspect-ratio: 1; border: 0; background: none; padding: 0; pointer-events: auto; transform-origin: 50% 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.walker.pet { width: 12%; }
.walker .act, .walker .face, .walker .bob { display: block; width: 100%; height: 100%; transform-origin: 50% 90%; }
.walker svg { width: 100%; height: 100%; display: block; overflow: visible; }
.walker .shadow { position: absolute; left: 22%; right: 22%; bottom: 1%; height: 9%; background: rgba(0,0,0,.18); border-radius: 50%; }
.walker.walking .bob { animation: hop .44s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6%) rotate(3deg); } }
.walker .tag { position: absolute; left: 50%; top: 98%; transform: translateX(-50%); font: 600 12px var(--font-display); background: rgba(255,255,255,.9); color: #17203B; padding: 1px 8px; border-radius: 99px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.walker .bubble { position: absolute; bottom: 96%; left: 50%; transform: translateX(-50%); background: #fff; color: #17203B; font: 600 15px var(--font-display); padding: 5px 11px; border-radius: 14px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.22); pointer-events: none; animation: say 1.6s ease-out both; }
.walker .bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
@keyframes say { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 20%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.floaty { position: absolute; font-size: 22px; pointer-events: none; z-index: 400; }
.lobby-hint { text-align: center; margin: 8px 0 16px; }
@media (prefers-reduced-motion: reduce) { .lobby .cloud, .walker.walking .bob { animation: none; } }
.walker.selected .shadow { background: color-mix(in srgb, var(--kid, #FFD43B) 35%, transparent); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--kid, #FFD43B); }
.lobby .mark { position: absolute; width: 26px; height: 12px; margin: -6px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; background: color-mix(in srgb, var(--kid, #FFD43B) 50%, transparent); z-index: 1; pointer-events: none; animation: markp 1s ease-in-out infinite; }
@keyframes markp { 50% { transform: scale(1.35); opacity: .6; } }
.m.house-out { border: 0; padding: 0; background: none; width: 100%; aspect-ratio: 8 / 7; border-radius: 14px; overflow: hidden; cursor: pointer; }
.m.house-out svg { width: 100%; height: 100%; }

/* Dojo $ (to spend) and Dojos (earned, for levels) side by side */
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.pot { display: flex; align-items: center; gap: 8px; border-radius: 16px; padding: 8px 10px; min-width: 0; }
.pot b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pot small { display: block; font-size: 12.5px; font-weight: 700; margin-top: 2px; line-height: 1.15; }
.pot.money { background: #FFF3C4; color: #6B4A00; }
.pot.total { background: #DCEBFF; color: #163C7A; }
.wallet.small .pot { padding: 6px 8px; gap: 6px; }
.wallet.small .pot b { font-size: 22px; }
.coin { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE680, #F5B700 60%, #D89A00); color: #6B4A00; font-family: var(--font-display); font-weight: 700; font-size: .8em; box-shadow: inset 0 0 0 2px #E0A800; margin-right: 3px; vertical-align: -.15em; line-height: 1; }
.coin.big { font-size: 22px; flex: none; }
.dstar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3D7BFF; color: #fff; font-size: 17px; line-height: 1; }
.wallet.small .coin.big { font-size: 17px; } .wallet.small .dstar { width: 22px; height: 22px; font-size: 13px; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; padding-block: 6px; }
.tabs .ti { font-size: 20px; line-height: 1.1; }
.wallet { grid-template-columns: 1.25fr 1fr; }
.pot.total b { font-size: 36px; } .wallet.small .pot.total b { font-size: 26px; }

/* ---------- extras ---------- */
.hero .m { position: relative; cursor: pointer; }
.say { position: absolute; left: 50%; bottom: 92%; transform: translateX(-50%); background: #fff; color: #17203B; font: 600 16px var(--font-display); padding: 7px 12px; border-radius: 16px; box-shadow: 0 3px 12px rgba(0,0,0,.2); width: max-content; max-width: 220px; text-align: center; z-index: 6; pointer-events: none; animation: say 3.8s ease-out both; }
.say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.streak { display: inline-flex; align-items: center; gap: 1px; font: 700 15px var(--font-display); color: #C2410C; background: #FFE7D6; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.streak.t2 { font-size: 17px; } .streak.t3 { font-size: 19px; background: #FFD3B0; } .streak.t4 { font-size: 21px; background: linear-gradient(90deg, #FFD3B0, #CFE3FF); }
.streak.paused { filter: grayscale(.7); opacity: .75; }
h2 .streak { font-size: 13px; margin-left: 4px; }
/* eggs */
.egg { position: absolute; width: 11%; aspect-ratio: 6 / 7; border: 0; background: none; padding: 0; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; animation: eggw 2.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.egg svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes eggw { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -8deg; } 90% { rotate: 8deg; } 95% { rotate: -4deg; } }
.eggn { position: absolute; right: -6px; top: -4px; background: #E63946; color: #fff; font: 700 11px var(--font-display); border-radius: 99px; padding: 1px 5px; }
.egg .egghint { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #fff; color: #17203B; font: 600 12px var(--font-display); padding: 3px 8px; border-radius: 10px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); animation: none; }
.sticker-big { font-size: 96px; line-height: 1.1; animation: pop .6s ease-out; }
@keyframes pop { from { transform: scale(.2) rotate(-20deg); } 70% { transform: scale(1.2) rotate(6deg); } to { transform: scale(1); } }
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stk { position: relative; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 2px; }
.stk .e { font-size: 34px; line-height: 1; }
.stk .n { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.stk .x { position: absolute; top: 4px; right: 6px; font: 700 11px var(--font-display); color: var(--muted); }
.stk.locked { background: var(--surface-2); box-shadow: none; }
.stk.locked .e { font: 700 26px var(--font-display); color: var(--muted); opacity: .5; }
.sw.rare { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #FFD43B, 0 0 12px #FFD43B; }
/* lobby secrets + seasons */
.lobby .nightsky { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; background: linear-gradient(#0B1640ee, #1B2A6Baa 55%, #0B164066); }
.lobby .nightsky::before { content: ""; position: absolute; inset: 0 0 50% 0; background-image: radial-gradient(2px 2px at 12% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 8%, #fff, transparent), radial-gradient(2px 2px at 48% 28%, #fff, transparent), radial-gradient(1.5px 1.5px at 66% 12%, #fff, transparent), radial-gradient(2px 2px at 76% 34%, #fff, transparent), radial-gradient(1.5px 1.5px at 20% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 6%, #fff, transparent); }
.lobby .nightsky .moon { position: absolute; right: 7%; top: 6%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #FFF6C8; box-shadow: 0 0 18px #FFF6C8, inset -8px -4px 0 #E8DC9A; }
.lobby .fly { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFF59D; box-shadow: 0 0 8px 3px #FFF59D; animation: fly 4s ease-in-out infinite alternate; }
@keyframes fly { 0% { transform: translate(0, 0); opacity: .2; } 50% { opacity: 1; } 100% { transform: translate(18px, -14px); opacity: .3; } }
.lobby.night .nightsky { opacity: 1; }
.lobby .rain { position: absolute; inset: 0; pointer-events: none; z-index: 500; }
.lobby .rain i { position: absolute; top: -10%; width: 2px; height: 14px; background: linear-gradient(transparent, #7FC8FF); animation: drop .7s linear infinite; }
@keyframes drop { to { transform: translateY(90vw); } }
.lobby .rainbow { position: absolute; left: 10%; right: 10%; top: 8%; height: 70%; border-radius: 50% 50% 0 0; pointer-events: none; z-index: 1; background: radial-gradient(circle at 50% 100%, transparent 52%, #C77DFF 52% 56%, #3D7BFF 56% 60%, #4CBF5A 60% 64%, #FFD43B 64% 68%, #FF8A2A 68% 72%, #E63946 72% 76%, transparent 76%); opacity: 0; animation: rb 4s ease-in-out forwards; }
@keyframes rb { 15%, 75% { opacity: .75; } 100% { opacity: 0; } }
.bedbtn { position: absolute; left: 8px; top: 8px; z-index: 600; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(15,21,40,.55); font-size: 20px; cursor: pointer; }
.lobby .twinkle { animation: tw 1.4s ease-in-out infinite alternate; }
@keyframes tw { from { opacity: .35; } to { opacity: 1; } }
.lobby .flyer { animation: bat 10s linear infinite; } .lobby .flyer.d2 { animation-duration: 14s; animation-delay: -6s; }
.lobby .flyer .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .32s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(-.55); } }
.lobby .flyer .puff { transform-box: fill-box; transform-origin: 0 50%; animation: puff 2.6s ease-out infinite; opacity: 0; }
@keyframes puff { 0%, 70% { opacity: 0; transform: scaleX(.2); } 80% { opacity: 1; transform: scaleX(1.4); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes bat { 0% { transform: translate(-20px, 60px) scale(1); } 50% { transform: translate(200px, 20px) scale(1.2); } 100% { transform: translate(420px, 70px) scale(1); } }
.lobby .bob2 { animation: bob2 2.2s ease-in-out infinite alternate; }
@keyframes bob2 { to { transform: translateY(-5px); } }
.lobby.season-halloween { background: #6A5ACD; }
/* team jar */
.team { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 12px 16px; margin: 0 0 16px; }
.team .jar svg, .jar svg { width: 100%; display: block; }
.team.full { box-shadow: 0 0 0 3px #FFD43B, var(--shadow); }
/* bedtime */
.bedtime { position: fixed; inset: 0; z-index: 1000; background: linear-gradient(#060B26, #16245C 70%, #2B3A7A); color: #E6ECFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; text-align: center; overflow: auto; }
.bedtime h2 { color: #fff; font-size: 26px; } .bedtime .today { color: #BFD0FF; margin: 0; max-width: 420px; }
.bedtime .stars-bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 10% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 25% 40%, #fff, transparent), radial-gradient(2px 2px at 40% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 30%, #fff, transparent), radial-gradient(2px 2px at 80% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 60%, #fff, transparent), radial-gradient(2px 2px at 15% 70%, #fff, transparent); animation: tw 3s ease-in-out infinite alternate; }
.bedtime .moon { position: absolute; right: 10%; top: 6%; width: 64px; height: 64px; border-radius: 50%; background: #FFF6C8; box-shadow: 0 0 30px #FFF6C8, inset -14px -6px 0 #E8DC9A; }
.bedtime .sleepers { display: flex; gap: 10px; justify-content: center; position: relative; }
.bedtime .sleeper { position: relative; width: 130px; animation: breathe 4s ease-in-out infinite; transform-origin: 50% 100%; filter: brightness(.8) saturate(.8); }
.bedtime .sleeper .m { width: 130px; height: 130px; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.04, .97); } }
.bedtime .zz { position: absolute; right: 8px; top: 0; font: 700 22px var(--font-display); color: #CFE0FF; animation: zz 3s ease-in-out infinite; opacity: 0; }
.bedtime .zz.z2 { font-size: 30px; right: -6px; }
@keyframes zz { 0% { transform: translate(0, 10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(16px, -40px); opacity: 0; } }
.bedtime .breath { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.bedtime .breath .ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #7FA6FF55, #7FA6FF11 70%); border: 2px solid #9DB8FF; animation: br 8s ease-in-out infinite; }
@keyframes br { 0%, 100% { transform: scale(.55); } 50% { transform: scale(1); } }
.bedtime .breath span { position: relative; font: 600 18px var(--font-display); color: #fff; }
.bedtime .btn { background: #FFF6C8; color: #2B1F00; position: relative; }
@media (prefers-reduced-motion: reduce) { .bedtime .sleeper, .bedtime .breath .ring, .bedtime .zz, .egg, .lobby .fly, .lobby .flyer, .lobby .flyer .wing, .lobby .flyer .puff { animation: none; } }
/* toddler view */
.toddler { display: grid; gap: 12px; }
.tod-stage { position: relative; border: 0; padding: 0; background: linear-gradient(#BDE6FF, #E4F6FF 70%); border-radius: 28px; height: 290px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.tod-stage .m { position: absolute; left: 50%; bottom: 18px; width: 240px; height: 240px; margin-left: -120px; overflow: visible; }
.tod-stage .bush { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; z-index: 2; }
.tod-stage .say { bottom: 96%; font-size: 22px; }
.tod-name { text-align: center; font: 700 30px var(--font-display); }
.tod-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 34px; min-height: 44px; }
.tod-stars .none { font: 600 18px var(--font-display); color: var(--muted); align-self: center; }
.tod-stars b { font: 700 24px var(--font-display); align-self: center; }
.tod-btns { display: grid; gap: 12px; }
.beh.tod { min-height: 130px; flex-direction: row; gap: 16px; justify-content: center; font-size: 26px; border-radius: 26px; }
.beh.tod .e { font-size: 72px; }
.beh.tod .l { font-size: 26px; }
/* carers' guide */
.guide { display: block; line-height: 1.55; }
.guide h2 { font-size: 21px; margin: 22px 0 6px; } .guide h2:first-child { margin-top: 0; }
.guide p, .guide ul, .guide ol { margin: 0 0 10px; } .guide ul, .guide ol { padding-left: 22px; } .guide li { margin: 3px 0; }
.gtable { overflow-x: auto; margin: 6px 0 12px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 14px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.guide th { font-size: 13px; color: var(--muted); }
.gkids { display: grid; gap: 10px; margin: 4px 0 14px; }
.gkid { border-left: 5px solid var(--kid); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.gkid h3 { font-size: 17px; margin: 0 0 4px; }
.gkid ul { list-style: none; padding: 0; margin: 0; }
.gkid li { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.gkid li .e { font-size: 22px; line-height: 1.2; }
.gkid li p { margin: 0; font-size: 14px; color: var(--muted); }
.tod-stage .say { bottom: auto; top: 0; }
/* shop: price tiers and big furniture pictures */
.item { position: relative; }
.ptier { display: inline-block; font: 700 11px var(--font-display); letter-spacing: .3px; padding: 2px 8px; border-radius: 99px; color: #fff; white-space: nowrap; }
.item > .ptier { justify-self: start; margin: -2px 0 -4px; }
.ptier.quick { background: #2E9D47; } .ptier.bit { background: #2B7BFF; } .ptier.up { background: #E8701A; } .ptier.mega { background: linear-gradient(90deg, #7B61FF, #E0459B); }
.tiers-key { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 8px; align-items: center; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 4px; }
.tiers-key small { color: var(--muted); font-size: 12px; }
.m.furni-big { max-width: 100%; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.m.furni-big svg { width: 100%; height: 100%; display: block; }
.m.pet-big { max-width: 100%; width: 100%; } .m.pet-big svg { width: 100%; height: 100%; display: block; overflow: visible; }
.egg .eggname { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; background: var(--kid, #2BB3A3); color: #fff; font: 700 11px var(--font-display); padding: 1px 7px; border-radius: 99px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
/* garden seasons and holidays */
.lobby .fall { animation: fall 10s linear infinite; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); } 50% { transform: translate(14px, 160px) rotate(180deg); } to { transform: translate(-6px, 320px) rotate(360deg); } }
.lobby circle.fall { animation-name: snow; }
@keyframes snow { from { transform: translate(0, 0); } 50% { transform: translate(8px, 160px); } to { transform: translate(-4px, 320px); } }
.lobby .rise { animation: rise 9s linear infinite; }
@keyframes rise { from { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translate(10px, -310px); opacity: 0; } }
.lobby .flutter { animation: flutter 7s ease-in-out infinite alternate; }
@keyframes flutter { 0% { transform: translate(0, 0); } 33% { transform: translate(24px, -18px); } 66% { transform: translate(-10px, -30px); } 100% { transform: translate(18px, 6px); } }
.lobby .wingb { transform-box: fill-box; transform-origin: 50% 50%; animation: wingb .25s ease-in-out infinite alternate; }
@keyframes wingb { to { transform: scaleX(.4); } }
.lobby .dance { animation: dance 16s linear infinite; }
@keyframes dance { from { transform: translateX(-20px); } to { transform: translateX(520px); } }
.lobby .dance .seg { animation: seg .6s ease-in-out infinite alternate; }
@keyframes seg { to { transform: translateY(-6px); } }
.lobby .flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scale(.8, 1.15); } }
@media (prefers-reduced-motion: reduce) { .lobby .fall, .lobby .rise, .lobby .flutter, .lobby .wingb, .lobby .dance, .lobby .dance .seg, .lobby .flicker { animation: none; } .lobby .fall, .lobby .rise { display: none; } }
/* games */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gcard { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); font: inherit; color: inherit; cursor: pointer; }
.gcard .gi { font-size: 44px; line-height: 1.1; }
.gcard b { font: 700 17px var(--font-display); }
.gcard small { color: var(--muted); font-size: 12.5px; }
.gcard.locked { background: var(--surface-2); box-shadow: none; cursor: default; } .gcard.locked .gi { filter: grayscale(1); opacity: .7; }
.gcard:disabled:not(.locked) { opacity: .55; }
.tod-game { min-height: 80px; font-size: 24px; border-radius: 24px; }
.game { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: linear-gradient(#BDE6FF, #E9F7FF); color: #17203B; touch-action: none; user-select: none; -webkit-user-select: none; }
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px; font: 700 18px var(--font-display); }
.gtop .iconbtn { background: #fff; color: #17203B; }
.gscore { min-width: 48px; text-align: center; background: #fff; border-radius: 99px; padding: 4px 12px; font: 700 20px var(--font-display); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.gbar { height: 8px; margin: 0 16px; background: rgba(255,255,255,.7); border-radius: 99px; overflow: hidden; } .gbar i { display: block; height: 100%; width: 100%; background: var(--kid, #2BB3A3); transition: width .2s linear; }
.gstage { position: relative; flex: 1; overflow: hidden; }
.ghint { position: absolute; left: 0; right: 0; top: 8px; text-align: center; margin: 0; font-weight: 700; color: #3B4A6B; opacity: .8; pointer-events: none; }
.gend { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.gend .m { width: 170px; height: 170px; animation: pop .6s ease-out; } .gend h2 { font-size: 26px; max-width: 340px; }
/* bubbles */
.bub { position: absolute; bottom: -120px; border-radius: 50%; border: 0; padding: 0; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 10%, rgba(255,255,255,.25) 11% 55%, rgba(127,200,255,.35) 75%, rgba(199,125,255,.45)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); animation: bubup 6s linear forwards; display: grid; place-items: center; cursor: pointer; }
@keyframes bubup { from { transform: translate(0, 0); } 50% { transform: translate(18px, -55vh); } to { transform: translate(-10px, -115vh); } }
.bub .bm { width: 72%; height: 72%; } .bub .bm svg { width: 100%; height: 100%; } .bub .bs { font-size: 26px; }
.bub.pop { animation-play-state: paused; transform-origin: center; scale: 1.4; opacity: 0; transition: scale .2s, opacity .2s; }
/* feed */
.g-feed .foods { position: absolute; top: 44px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 12px; }
.food { font-size: 46px; line-height: 1; width: 66px; height: 66px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); cursor: grab; touch-action: none; position: relative; z-index: 2; }
.feedm { position: absolute; left: 50%; bottom: 20px; width: 250px; height: 250px; margin-left: -125px; }
.feedm svg, .smon svg, .jmon svg, .cmon .m svg { width: 100%; height: 100%; }
/* memory */
.g-memory { display: grid; place-items: center; padding: 12px; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); width: min(100%, 440px); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); } .cards.c6 { grid-template-columns: repeat(4, 1fr); } .cards.c8 { grid-template-columns: repeat(4, 1fr); }
.card2 { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: 14px; background: none; perspective: 600px; cursor: pointer; }
.card2 .back, .card2 .face { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .35s; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.card2 .back { background: var(--kid, #2BB3A3); color: #fff; font: 700 30px var(--font-display); }
.card2 .face { background: #fff; transform: rotateY(180deg); } .card2 .face svg { width: 80%; height: 80%; overflow: visible; }
.card2.up .back { transform: rotateY(180deg); } .card2.up .face { transform: rotateY(0); }
.card2.got .face { box-shadow: 0 0 0 4px #4CBF5A; }
/* stars */
.smon { position: absolute; left: 0; bottom: 14px; width: 100px; height: 100px; }
.fstar { position: absolute; left: 0; top: 0; font-size: 32px; line-height: 1; pointer-events: none; } .fstar.gold { font-size: 40px; }
/* jump */
.g-jump .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(#7CC95A, #5DB24A); }
.jmon { position: absolute; left: 36px; bottom: calc(30% - 8px); width: 90px; height: 90px; }
.jmon.oops { animation: oops .5s; } @keyframes oops { 25% { rotate: -14deg; } 50% { rotate: 10deg; opacity: .6; } 100% { rotate: 0deg; } }
.rock { position: absolute; left: 0; bottom: calc(30% - 4px); width: 46px; height: 32px; border-radius: 50% 50% 10% 10%; background: radial-gradient(circle at 35% 30%, #B8C1CC, #6D7A8C); }
/* copy */
.g-copy { display: grid; grid-template-rows: auto 1fr; justify-items: center; padding: 8px 16px 20px; }
.cmon { position: relative; display: grid; justify-items: center; } .cmon .m { width: 140px; height: 140px; }
.csay { position: static; transform: none; margin-top: -6px; font: 700 18px var(--font-display); }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 360px); align-self: center; }
.pad { aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--pc); opacity: .55; box-shadow: inset 0 -8px 0 rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.15); cursor: pointer; transition: opacity .1s, transform .1s; }
.pad.lit { opacity: 1; transform: scale(1.06); box-shadow: 0 0 30px var(--pc), inset 0 -8px 0 rgba(0,0,0,.18); }
@media (prefers-reduced-motion: reduce) { .bub { animation-duration: 10s !important; } }
.tabs:has(> :nth-child(6)) button { font-size: 12.5px; padding-inline: 0; min-width: 0; }
/* games: scoring, streaks and the new layouts */
.gsub { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 6px; font: 600 14px var(--font-display); color: #3B4A6B; min-height: 24px; }
.combo { color: #E8701A; font-weight: 700; }
.gbar i.low { background: #E63946; }
.gbest { font: 700 12px var(--font-display); background: #FFF3C4; color: #7A5A00; border-radius: 99px; padding: 2px 8px; }
.gpts { position: absolute; transform: translate(-50%, -50%); font: 800 22px var(--font-display); color: #2E9D47; text-shadow: 0 2px 0 #fff, 0 0 6px #fff; pointer-events: none; animation: gpts .9s ease-out forwards; z-index: 5; white-space: nowrap; }
.gpts.big { font-size: 28px; color: #E8701A; } .gpts.bad { color: #C2264B; font-size: 18px; }
@keyframes gpts { from { opacity: 0; margin-top: 0; } 15% { opacity: 1; } to { opacity: 0; margin-top: -60px; } }
.gfinal { font: 800 56px var(--font-display); line-height: 1; color: var(--kid, #2BB3A3); text-shadow: 0 3px 0 rgba(0,0,0,.08); display: grid; justify-items: center; }
.gfinal small { font: 600 15px var(--font-display); color: #3B4A6B; }
.ask { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 4; background: #fff; border-radius: 18px; padding: 8px 14px; font: 700 18px var(--font-display); box-shadow: 0 3px 12px rgba(0,0,0,.15); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.ask i { display: inline-block; width: 20px; height: 20px; border-radius: 50%; }
.ask.big { position: static; transform: none; font-size: 20px; } .ask .fe { font-size: 34px; line-height: 1; }
.bub { background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 10%, rgba(255,255,255,.35) 11% 45%, var(--bc, #9ED8FF) 100%); opacity: .9; }
/* feed v2 */
.g-feed { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 14px 18px; }
.feedtop { display: flex; align-items: center; gap: 6px; }
.g-feed .feedm { position: static; margin: 0; width: 130px; height: 130px; flex: none; }
.feedm.shake { animation: oops .45s; }
.foodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 360px); margin-top: auto; margin-bottom: auto; }
.foodgrid .food { width: 100%; height: auto; aspect-ratio: 1; font-size: 50px; cursor: pointer; }
.food.nope { animation: oops .4s; background: #FFE3E3; }
/* stars v2 */
.fstar.rock { font-size: 34px; }
/* jump v2 */
.rock.big { width: 54px; height: 52px; border-radius: 40% 40% 10% 10%; }
.coin2 { position: absolute; left: 0; font-size: 30px; line-height: 1; pointer-events: none; }
/* puzzle */
.g-puzzle { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 16px 18px; }
.pzhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 360px); font: 700 16px var(--font-display); color: #3B4A6B; }
.pzpeek { width: 60px; height: 60px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); } .pzpeek svg { width: 100%; height: 100%; }
.pzgrid { display: grid; gap: 4px; width: min(100%, 360px); max-height: 62vh; background: rgba(255,255,255,.6); padding: 4px; border-radius: 16px; margin: auto 0; }
.pzt { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: pointer; aspect-ratio: 1; }
.pzt.empty { background: transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); cursor: default; }
.pzt.nope { animation: oops .35s; }
.pzimg { position: absolute; pointer-events: none; } .pzimg svg { width: 100%; height: 100%; display: block; }
.pzn { position: absolute; right: 4px; top: 2px; font: 700 11px var(--font-display); color: #8592A8; }
.pzgrid.solved { display: block; aspect-ratio: auto !important; } .pzdone { width: 100%; aspect-ratio: 1; max-height: 60vh; animation: pop .6s ease-out; } .pzdone svg { width: 100%; height: 100%; }

/* admin mode */
.adminbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 14px; background: #2B2D42; color: #FFD43B; font-weight: 800; font-size: 14px; }
.adminbar .btn { color: #fff; border-color: rgba(255,255,255,.4); }

.sayit { border: 0; background: rgba(0,0,0,.08); border-radius: 50%; width: 34px; height: 34px; font-size: 18px; cursor: pointer; vertical-align: middle; margin-left: 4px; }

.admrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.06); }
.admrow .t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admrow small { color: var(--muted, #6b6680); font-size: 12px; }
.admrow .pill.own { background: #E3F6E5; color: #23733A; font-size: 12px; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.admgrp summary { cursor: pointer; padding: 4px 0; }

/* ---------- Monster Islands ---------- */
.dockbtn { position: absolute; right: 8px; bottom: 8px; z-index: 600; border: 0; border-radius: 99px; padding: 8px 14px; min-height: 44px; background: #fff; color: #17203B; font: 700 15px var(--font-display); box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; }
.dockbtn .isl-new, .isl-card .isl-new { position: absolute; top: -8px; right: -6px; font-size: 18px; animation: islpulse 1.4s ease-in-out infinite; }
.isl-title { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; }
.isl-stage { position: relative; isolation: isolate; aspect-ratio: 1; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; }
.isl-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.isl-layer { position: absolute; inset: 0; pointer-events: none; }
.isl-stage .walker { width: 14%; transform: translate(-50%, -100%); }
.isl-stage .walker.pet { width: 7%; }
.isl-stage .walker .tag { font-size: 10px; padding: 0 6px; }
.isl-stage .walker .bubble { font-size: 13px; }
.isl-hint { text-align: center; margin: 8px 0 10px; }
.isl-tray { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.isl-pc { position: relative; flex: 0 0 auto; width: 74px; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); scroll-snap-align: start; cursor: pointer; }
.isl-pc .ic { width: 44px; height: 44px; display: block; }
.isl-pc .ic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.isl-pc small { font-size: 11px; line-height: 1.15; text-align: center; color: var(--muted); }
.isl-pc .cnt { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--kid, var(--accent)); color: #fff; font: 700 12px/22px var(--font-display); text-align: center; }
.isl-pc.on { border-color: var(--kid, var(--accent)); background: color-mix(in srgb, var(--kid, var(--accent)) 16%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kid, var(--accent)) 35%, transparent); }
.isl-pc.empty { opacity: .45; }
.isl-pc.tool .ic { font-size: 32px; line-height: 44px; text-align: center; }
.isl-tray.tod .isl-pc { width: 92px; padding: 10px 6px; }
.isl-tray.tod .isl-pc .ic { width: 60px; height: 60px; }
.isl-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.isl-prog { display: grid; gap: 12px; background: var(--surface); border-radius: 18px; padding: 14px; margin: 6px 0 14px; box-shadow: var(--shadow); }
.isl-prog > div { display: grid; gap: 4px; }
.isl-preview { justify-items: stretch; }
.isl-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.isl-who .chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 4px 12px 4px 4px; min-height: 44px; font: 600 15px var(--font-display); cursor: pointer; }
.isl-who .chip .mini { width: 34px; height: 34px; display: block; }
.isl-who .chip .mini svg { width: 100%; height: 100%; }
.isl-who .chip.on { border-color: var(--kid); background: color-mix(in srgb, var(--kid) 18%, var(--surface)); }
.isl-sea { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; padding: 16px; border-radius: 26px; background: radial-gradient(circle at 50% 40%, #6FCDF4, #2E8FD6); box-shadow: var(--shadow); align-items: center; }
.isl-card { position: relative; display: grid; gap: 6px; justify-items: center; border: 0; background: none; padding: 0; cursor: pointer; color: #fff; }
.isl-card svg { width: 100%; aspect-ratio: 1; border-radius: 50%; display: block; box-shadow: 0 6px 16px rgba(0,0,0,.25); border: 4px solid color-mix(in srgb, var(--kid) 70%, #fff); }
.isl-card .nm { font: 700 15px var(--font-display); background: rgba(15,21,40,.55); padding: 2px 10px; border-radius: 99px; }
.isl-card.big svg { border-width: 5px; }
.isl-preview .isl-card { max-width: 260px; margin: 0 auto; width: 100%; }
.isl-preview .isl-card svg { border-radius: 26px; }
.isl-shopart { width: 100%; display: flex; justify-content: center; }
.isl-shopart svg { width: 80px; height: 80px; }
.isl-shopart.big svg { width: 120px; height: 120px; }
.isl-stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.isl-stk { font-size: 34px; min-height: 60px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.isl-ask { display: grid; justify-items: center; text-align: center; }
.isl-ask .mini { width: 90px; height: 90px; display: block; }
.isl-gift { text-align: center; }
.isl-gift .big { font-size: 54px; }
.isl-giftlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.isl-giftlist .isl-pc { cursor: default; }
.isl-wave { animation: islwave 3s ease-in-out infinite alternate; }
.isl-flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: islflick .5s ease-in-out infinite alternate; }
.isl-twinkle { animation: isltw 1.6s ease-in-out infinite alternate; }
.isl-smoke { animation: islsmoke 3s ease-in-out infinite; }
@keyframes islwave { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
@keyframes islflick { from { transform: scale(1, 1); } to { transform: scale(.9, 1.12); } }
@keyframes isltw { from { opacity: .45; } to { opacity: 1; } }
@keyframes islsmoke { 0% { transform: translateY(0); opacity: .9; } 100% { transform: translateY(-8px); opacity: .3; } }
@keyframes islpulse { 50% { transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .isl-wave, .isl-flicker, .isl-twinkle, .isl-smoke, .dockbtn .isl-new, .isl-card .isl-new { animation: none; } }
.isl-stage.holding .walker { pointer-events: none; }
.isl-sea .isl-card.big { grid-column: 1 / -1; width: min(220px, 70%); justify-self: center; }

/* ---------- home menu and guided setup ---------- */
.modechip { font: 700 12px var(--font-body); border-radius: 99px; padding: 3px 9px; vertical-align: middle; }
.modechip.kids { background: #DFF5E3; color: #1E6B33; } .modechip.parents { background: #FFE7D6; color: #8A3A0C; }
.menu { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
.menu-monsters { display: flex; justify-content: center; gap: 4px; }
.menu-monsters .m { width: 120px; height: 120px; }
.menu-title { text-align: center; font-size: 28px; }
.menutile { display: flex; align-items: center; gap: 16px; text-align: left; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); padding: 18px; min-height: 96px; cursor: pointer; }
.menutile .mi { font-size: 44px; line-height: 1; flex: none; width: 56px; text-align: center; }
.menutile .mt { display: grid; gap: 2px; }
.menutile b { font: 600 22px var(--font-display); }
.menutile small { color: var(--muted); font-size: 14px; }
#goKids { background: linear-gradient(135deg, #DFF5E3, #CDEBFF); }
#goParents { background: linear-gradient(135deg, #FFE6D6, #FFD9E8); }
#goSetup { background: linear-gradient(135deg, #EDE6FF, #D9E6FF); }
#goSettings { background: linear-gradient(135deg, #FFF3C4, #FFE3CC); }
.menutile small { color: #5A5478; }
.wiz .card { gap: 12px; }
.wmon { width: 90px; height: 90px; justify-self: center; }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; }
.wchip { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 8px 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.wchip.on { border-color: var(--kid, var(--accent)); background: color-mix(in srgb, var(--kid, var(--accent)) 18%, var(--surface)); font-weight: 700; }
.wkid .m { flex: none; }
.wsum { gap: 4px; border-left: 6px solid var(--kid); }
/* stars: the outer box slides, the inner one bounces */
.smi { width: 100%; height: 100%; } .smi svg { width: 100%; height: 100%; }
.smon.oops, .rcar.oops { animation: oops .5s; }
/* peekaboo */
.g-peek { display: grid; place-items: center; padding: 40px 14px 20px; background: linear-gradient(#BDE6FF 0 30%, #8FD16A 30%); }
.holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; width: min(100%, 420px); }
.hole { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 30% 30%; }
.hole::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 2%; height: 30%; border-radius: 50%; background: radial-gradient(#3B2A1E, #6B4A2E 70%); z-index: 0; }
.pal { position: absolute; left: 10%; bottom: 8%; width: 80%; height: 80%; border: 0; padding: 0; background: none; cursor: pointer; z-index: 1; transform: translateY(105%); transition: transform .16s ease-out; touch-action: none; }
.pal.up { transform: translateY(0); } .pal svg { width: 100%; height: 100%; pointer-events: none; }
.pal .zz { position: absolute; right: -4px; top: -4px; font-size: 26px; pointer-events: none; }
.pal.sleepy svg { filter: saturate(.5) brightness(.9); }
.pal.bopped { transform: translateY(0) scale(1.15); } .pal.woke { animation: oops .4s; }
.hole::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: #8FD16A; z-index: 2; }
/* racing */
.g-race { background: repeating-linear-gradient(90deg, #6CBF4E 0 40px, #63B547 40px 80px); }
.road { position: absolute; top: 0; bottom: 0; background: #555B66; box-shadow: -10px 0 0 #fff, 10px 0 0 #fff, -18px 0 0 #E63946, 18px 0 0 #E63946; }
.road .lines { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(33.3% - 3px), rgba(255,255,255,.85) calc(33.3% - 3px) calc(33.3% + 3px), transparent calc(33.3% + 3px) calc(66.6% - 3px), rgba(255,255,255,.85) calc(66.6% - 3px) calc(66.6% + 3px), transparent calc(66.6% + 3px)); -webkit-mask: repeating-linear-gradient(transparent 0 50px, #000 50px 120px); mask: repeating-linear-gradient(transparent 0 50px, #000 50px 120px); }
.rcar, .rthing { position: absolute; left: 0; top: 0; width: 60px; height: 90px; pointer-events: none; }
.rcar svg, .rthing svg { width: 100%; height: 100%; }
.rcar .rmon { position: absolute; left: -10px; top: 18px; width: 80px; height: 80px; } .rcar .rmon svg { width: 100%; height: 100%; }
.rcar.zoom { filter: drop-shadow(0 18px 8px rgba(255,212,59,.9)); }

.rthing.knocked { opacity: .35; }
.rpos { position: absolute; right: 10px; top: 36px; z-index: 3; background: #fff; border-radius: 99px; padding: 4px 12px; font: 700 20px var(--font-display); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.rbtn { position: absolute; bottom: 16px; z-index: 3; width: 70px; height: 70px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #17203B; font-size: 30px; box-shadow: 0 3px 10px rgba(0,0,0,.2); touch-action: none; }
.rbtn.l { left: 10px; } .rbtn.r { right: 10px; }
.g-race .ghint { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); z-index: 3; }

.news { text-align: left; }
.news ul { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; line-height: 1.4; }
.settile { position: relative; padding-right: 40px; }
.settile .chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 600 30px var(--font-display); color: var(--muted); }
.settile:nth-of-type(5n+1) { background: linear-gradient(135deg, #FFFFFF, #E9F7EC); }
.settile:nth-of-type(5n+2) { background: linear-gradient(135deg, #FFFFFF, #FFEBDD); }
.settile:nth-of-type(5n+3) { background: linear-gradient(135deg, #FFFFFF, #E3F1FF); }
.settile:nth-of-type(5n+4) { background: linear-gradient(135deg, #FFFFFF, #F1EAFF); }
.settile:nth-of-type(5n+5) { background: linear-gradient(135deg, #FFFFFF, #FFF5CF); }
.kidpick { margin-bottom: 2px; }
.invitebox { text-align: left; gap: 8px; }
.invitebox ol, .welcome-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; text-align: left; }
.invmsg { text-align: left; background: var(--surface-2); border-radius: 14px; padding: 12px; font-size: 14px; line-height: 1.45; word-break: break-word; user-select: text; -webkit-user-select: text; }
.banner .ghostb { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.banner { flex-wrap: wrap; }
.kidlock { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 8px; }
.kidlock .m { width: 140px; height: 140px; }
.lockpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(340px, 100%); }
.lockpad button { aspect-ratio: 1; font-size: 46px; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.lockpad button:active { transform: scale(.94); background: var(--surface-2); }
.lockpad.shake { animation: lockshake .4s; }
@keyframes lockshake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.lockset { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.lockshow { font-size: 22px; letter-spacing: 4px; }
.lockshow.big { font-size: 40px; text-align: center; }
.lobby.yard { margin-bottom: 0; }
.yard .walker.monster { width: 32%; }
.yard .walker.pet { width: 14%; }
.hero.hero-solo { grid-template-columns: 1fr; margin-top: 4px; }
.yardbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 6px; margin-top: 10px; }
.yardbar button { position: relative; display: grid; justify-items: center; gap: 2px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 8px 4px; font: 600 13px var(--font-display); color: var(--ink); min-height: 64px; }
.yardbar .yi { font-size: 26px; line-height: 1; }
.yardbar button:active { transform: scale(.95); }
.ybadge { position: absolute; top: 4px; right: 8px; min-width: 20px; height: 20px; border-radius: 10px; background: #FF4D4D; color: #fff; font: 700 12px/20px var(--font-display); font-style: normal; }
.thing { position: absolute; font-size: 30px; line-height: 1; transform: translate(-50%, -100%); pointer-events: none; }
.yard .walker .bob { position: relative; }
.mud { position: absolute; width: 16%; height: 10%; border-radius: 50%; background: #7A5230; opacity: .85; box-shadow: 6px 4px 0 -2px #7A5230; pointer-events: none; }
.mailglow { animation: mailpulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mailpulse { 50% { transform: scale(1.25); } }
.notes { display: grid; gap: 10px; text-align: left; max-height: 50vh; overflow: auto; }
.notecard { background: var(--surface-2); border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.notecard.new { background: #FFF1D6; box-shadow: inset 0 0 0 2px #FFB400; }
.notecard p { margin: 0; font-size: 18px; font-family: var(--font-display); }
.nfrom { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.nfrom span { font-weight: 400; color: var(--muted); }
.gplots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gplot { display: grid; justify-items: center; background: #F3E6D6; border-radius: 14px; padding: 8px 10px; }
.gplot .gp { font-size: 34px; line-height: 1.1; }
.seedpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seedpick button { aspect-ratio: 1; font-size: 34px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); }
textarea.inp { min-height: 80px; resize: vertical; font: inherit; }
.recrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.btn.recording { background: #FF4D4D; color: #fff; animation: mailpulse 1s infinite; }
.qs { display: grid; gap: 14px; text-align: center; min-height: 340px; align-content: center; }
.qs-ic { font-size: 72px; line-height: 1; animation: qspop .35s ease-out; }
@keyframes qspop { from { transform: scale(.6); opacity: 0; } }
.qs h2 { font-size: 28px; }
.qs-t { font-size: 19px; line-height: 1.45; margin: 0; }
.qs-dots { display: flex; justify-content: center; gap: 7px; }
.qs-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.qs-dots i.on { background: var(--primary); width: 22px; border-radius: 5px; }
.tickets { display: inline-block; background: #FFF1D6; border-radius: 99px; padding: 2px 10px; font-weight: 700; margin-right: 4px; }
/* feedback */
.fbkinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbkind { display: flex; align-items: center; gap: 8px; text-align: left; border: 2px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 12px; min-height: 52px; font-weight: 700; color: var(--ink); }
.fbkind span { font-size: 22px; }
.fbkind.on { border-color: var(--primary); background: var(--surface-2); }
.modal textarea { width: 100%; font: inherit; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; resize: vertical; background: var(--surface); color: var(--ink); }
.fblist { display: grid; gap: 10px; text-align: left; }
.fbitem { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; background: var(--surface); }
.fbitem p { margin: 0; overflow-wrap: anywhere; }
.fbitem.new { border-color: var(--primary); box-shadow: 0 0 0 2px var(--surface-2); }
.fbitem.done { opacity: .6; }
.fbinfo { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* Scenery picker */
.scn-theme { justify-content: center; margin: 4px 0; }
.scn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 14px; text-align: center; }
.scn { border: 3px solid transparent; background: var(--bg); border-radius: 14px; padding: 0 0 4px; overflow: hidden; display: grid; gap: 2px; cursor: pointer; }
.scn img, .scn .scn-drawn { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; font-size: 30px; background: linear-gradient(#BDE6FF 55%, #7CC95A 55%); }
.scn small { font-size: 12px; line-height: 1.2; padding: 0 4px; }
.scn.on { border-color: var(--primary); }
.gplot { min-width: 74px; min-height: 92px; align-content: end; gap: 3px; }
.gplot .gp { display: grid; place-items: end center; height: 40px; }
.gplot small { font-weight: 700; color: var(--muted); }
.gbar { display: block; width: 52px; height: 6px; border-radius: 3px; background: #E2CFB6; overflow: hidden; }
.gbar b { display: block; height: 100%; background: #5CC260; border-radius: 3px; }
.item .shop-pic { width: 100%; height: 100%; object-fit: contain; display: block; }
/* big rewards to redeem */
.rewards { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 8px; margin-block: 10px; }
.rewards h3 { font-size: 19px; }
.rwd { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 10px 12px; }
.rwd .ri { font-size: 30px; line-height: 1; }
.rwd .rt { flex: 1; min-width: 0; display: grid; }
.rwd .rt small { color: var(--muted); }
.rwd.ready { background: linear-gradient(135deg, #FFF3C4, #FFE1B8); border: 2px solid #FFC75F; }
.rwd.done { background: var(--surface-2); }
.rwd .tick { width: 30px; height: 30px; border-radius: 50%; background: #4CBF5A; color: #fff; display: grid; place-items: center; font-weight: 800; }
.rwdpill { background: #FFE1B8; color: #8A4B00; font-size: 12px; }
.redeemhome { margin-top: 10px; }

/* Big reward show: full screen, above everything but the confetti. */
.rshow { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: 16px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #4B2CC9 0%, #23135F 60%, #12082F 100%); color: #fff; text-align: center; animation: rs-fade .35s ease-out; }
.rs-rays { position: absolute; left: 50%; top: 32%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(rgba(255,212,59,.16) 0 10deg, transparent 10deg 20deg); opacity: 0; transition: opacity .6s; animation: rs-spin 18s linear infinite; pointer-events: none; }
.rshow.open .rs-rays { opacity: 1; }
.rs-in { position: relative; display: grid; gap: 8px; justify-items: center; width: min(440px, 100%); max-height: 100%; overflow: auto; }
.rs-kicker { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 3px; text-transform: uppercase; color: #FFD43B; }
.rs-gift { position: relative; width: 170px; height: 150px; display: grid; place-items: center; }
.rs-box, .rs-prize { position: absolute; font-size: 120px; line-height: 1; }
.rs-box { animation: rs-shake .5s ease-in-out infinite; }
.rs-prize { transform: scale(0); opacity: 0; filter: drop-shadow(0 0 24px rgba(255,212,59,.9)); }
.rshow.open .rs-box { animation: rs-pop .45s ease-in forwards; }
.rshow.open .rs-prize { animation: rs-prize .9s cubic-bezier(.2,1.6,.4,1) .15s forwards, rs-float 2.4s ease-in-out 1.2s infinite; }
.rs-name, .rs-label, .rs-sub, .rs-m, .rs-note { opacity: 0; transform: scale(.4); }
.rshow.open .rs-name { animation: rs-slam .5s cubic-bezier(.2,1.5,.4,1) .3s forwards; }
.rshow.open .rs-label { animation: rs-slam .5s cubic-bezier(.2,1.5,.4,1) .6s forwards; }
.rshow.open .rs-sub, .rshow.open .rs-note { animation: rs-slam .4s ease-out .9s forwards; }
.rshow.open .rs-m { animation: rs-slam .5s cubic-bezier(.2,1.5,.4,1) .8s forwards; }
.rs-name { margin: 0; font-family: var(--font-display); font-size: 44px; line-height: 1.05; color: #fff; -webkit-text-stroke: 2px var(--kid); paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0,0,0,.25); }
.rs-label { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; background: linear-gradient(#FFE27A, #FFB400); color: #3A2400; padding: 8px 18px; border-radius: 18px; box-shadow: 0 6px 0 #C47F00, 0 0 30px rgba(255,212,59,.6); }
.rs-sub { font-size: 16px; color: #E6DDFF; }
.rs-m { width: 150px; height: 150px; padding: 0; border: 0; background: none; cursor: pointer; }
.rs-m svg { width: 100%; height: 100%; }
.rshow.open .rs-m svg { animation: rs-dance .8s ease-in-out 1.4s infinite; transform-origin: 50% 90%; }
.rs-note { margin: 0; font-size: 15px; color: #E6DDFF; }
.rs-ok { min-width: 200px; font-size: 22px; }
.rs-ok:disabled { opacity: .35; }
@keyframes rs-fade { from { opacity: 0; } }
@keyframes rs-spin { to { transform: rotate(360deg); } }
@keyframes rs-shake { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-9deg) scale(1.05); } 75% { transform: rotate(9deg) scale(1.05); } }
@keyframes rs-pop { to { transform: scale(1.8); opacity: 0; } }
@keyframes rs-prize { from { transform: scale(0) rotate(-200deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rs-slam { to { opacity: 1; transform: scale(1); } }
@keyframes rs-dance { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-22px) rotate(-8deg); } 50% { transform: translateY(0) scale(1.06, .94); } 75% { transform: translateY(-22px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .rshow, .rs-rays, .rs-box, .rshow.open .rs-prize, .rshow.open .rs-m svg { animation: none; }
  .rshow.open .rs-box { animation: none; opacity: 0; }
  .rshow.open .rs-prize, .rshow.open .rs-name, .rshow.open .rs-label, .rshow.open .rs-sub, .rshow.open .rs-m, .rshow.open .rs-note { animation: none; opacity: 1; transform: none; }
}

/* Parents home: each child's behaviour buttons under their card, for a one-tap Dojo. */
.kidwrap { display: grid; gap: 8px; align-content: start; }
.quickgive { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.qbeh { display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 8px 6px; border: 2px solid color-mix(in srgb, var(--kid) 35%, transparent); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.qbeh span { font-size: 26px; line-height: 1; }
.qbeh small { font-size: 12.5px; font-weight: 700; line-height: 1.15; text-align: center; }
.qbeh:active { transform: scale(.95); }
.qbeh.bonus { border-style: dashed; }

/* Week page: how each behaviour is going over 8 weeks. */
.trend { display: grid; gap: 8px; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 96px 56px; gap: 10px; align-items: center; }
.trow .tl { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.spark i { flex: 1; background: var(--kid, var(--primary)); border-radius: 3px 3px 0 0; }
.spark i.z { opacity: .25; }
.tdir { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tdir.up { color: #2E9A44; } .tdir.down { color: #C2410C; } .tdir.same { color: var(--muted, #6b7280); }
