:root {
  --bg: #1d2230;
  --card: #2a3144;
  --text: #f4f1e8;
  --muted: #a9b0c2;
  --yellow: #ffd23f;   /* dogs see yellow and blue best */
  --blue: #3fa7ff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; overflow: hidden; }
.screen { display: none; position: fixed; inset: 0; }
.screen.active { display: block; }

#menu { overflow-y: auto; padding: 20px 16px 32px; }
#menu.active { display: flex; flex-direction: column; gap: 16px; }
header h1 { margin: 0; font-size: 28px; }
.sub { margin: 4px 0 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--card); border: 0; border-radius: 16px; padding: 16px 10px;
  color: var(--text); font-size: 16px; text-align: center; cursor: pointer; min-height: 120px; }
.tile .ico { font-size: 44px; display: block; margin-bottom: 8px; }
.tile.locked { opacity: .72; }
.tile .thumb { display: block; width: 132px; height: 84px; max-width: 100%; margin: -4px auto 6px; }
.tile.locked::after { content: "🔒"; position: absolute; top: 8px; right: 10px; font-size: 18px; }
.settings { display: flex; flex-wrap: wrap; gap: 12px; }
.settings label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; flex: 1 1 100px; }
select { background: var(--card); color: var(--text); border: 1px solid #3b4460; border-radius: 10px; padding: 10px; font-size: 16px; }
.stats { margin: 0; color: var(--muted); font-size: 14px; }
.tip { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
button { font: inherit; }
.unlock, #againBtn { background: var(--yellow); color: #1d2230; border: 0; border-radius: 14px; padding: 14px; font-size: 17px; font-weight: 700; cursor: pointer; }
.unlock[hidden] { display: none; }
.ghost { background: transparent; color: var(--text); border: 1px solid #3b4460; border-radius: 14px; padding: 12px; font-size: 16px; cursor: pointer; }

#play { background: #26303f; touch-action: none; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.lock { position: absolute; top: 10px; left: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: 20px; opacity: .55; }
.lock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lock circle { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }

#done.active { display: grid; place-items: center; padding: 16px; }
.done-box { background: var(--card); border-radius: 20px; padding: 28px 20px; max-width: 420px; width: 100%;
  display: flex; flex-direction: column; gap: 12px; text-align: center; }
.bone { font-size: 64px; }
.done-box h2 { margin: 0; font-size: 28px; color: var(--yellow); }
.done-box p { margin: 0; line-height: 1.5; }
.treat { color: var(--muted); }

/* nose cam */
.watch { background: var(--blue); color: #fff; border: 0; border-radius: 14px; padding: 14px; font-size: 17px; font-weight: 700; cursor: pointer; }
.watch[hidden], #camTip[hidden] { display: none; }
#clip.active { display: grid; place-items: center; padding: 12px; }
.clip-box { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; max-width: 420px; height: 100%; }
/* 9:16 video that always leaves room for the status line and buttons below it */
#clipCv { flex: none; aspect-ratio: 9 / 16; width: auto; border-radius: 16px; background: #000;
  height: min(calc(100vh - 150px), calc((100vw - 24px) * 16 / 9)); }
.clip-status { margin: 0; color: var(--muted); font-size: 14px; text-align: center; min-height: 20px; }
.clip-actions { display: flex; gap: 8px; width: 100%; }
.clip-actions button { flex: 1; }
#shareBtn { background: var(--yellow); color: #1d2230; border: 0; border-radius: 14px; padding: 12px; font-size: 16px; font-weight: 700; }
.clip-actions button:disabled { opacity: .4; }

/* owner voice */
.voice-btn { width: 100%; }
#voice { overflow-y: auto; padding: 16px; }
#voice.active { display: flex; flex-direction: column; gap: 12px; }
.voice-head { display: flex; align-items: center; gap: 12px; }
.voice-head h2 { margin: 0; font-size: 22px; }
.back { padding: 8px 14px; }
.slots { display: flex; flex-direction: column; gap: 10px; }
.slot { background: var(--card); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.slot b { font-size: 16px; }
.slot small { color: var(--muted); grid-column: 1; font-size: 13px; line-height: 1.4; }
.slot .acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.slot button { border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; background: #3b4460; color: var(--text); }
.slot button.rec { background: #e05a4f; }
.slot button.recording { background: #fff; color: #e05a4f; animation: pulse 1s infinite; }
.slot button:disabled { opacity: .3; }
.slot .ok { color: var(--yellow); font-size: 13px; }
.slot .bar { grid-column: 1 / span 2; height: 4px; border-radius: 2px; background: #e05a4f; width: 0; transition: width .1s linear; }
@keyframes pulse { 50% { opacity: .5; } }

/* relax mode */
.relax { background: #2c4a5e; color: #e6f2ff; border: 0; border-radius: 14px; padding: 14px; font-size: 17px; font-weight: 700; cursor: pointer; }
.relax[hidden], #relaxTip[hidden] { display: none; }

.credits { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; opacity: .8; }
.credits a { color: inherit; }

/* menu, redesigned for owners: sections, a how-to box, big action buttons, a separate settings screen */
.sect { margin: 6px 0 -4px; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.how { background: var(--card); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 12px 14px; }
.how[hidden] { display: none; }
.how ol { margin: 8px 0 6px; padding-left: 20px; line-height: 1.5; }
.link { background: none; border: 0; color: var(--yellow); font-weight: 700; padding: 4px 0; cursor: pointer; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.action { background: var(--card); color: var(--text); border: 1px solid #3b4460; border-radius: 14px; padding: 14px 10px; font-size: 16px; cursor: pointer; }
#settings { overflow-y: auto; padding: 16px; }
#settings.active { display: flex; flex-direction: column; gap: 12px; }
.set-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.set-row { background: var(--card); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr minmax(120px, 42%); gap: 12px; align-items: center; }
.set-row[hidden] { display: none; }
.set-text { display: flex; flex-direction: column; gap: 3px; }
.set-text b { font-size: 16px; }
.set-text small { color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (max-width: 520px) { .set-row { grid-template-columns: 1fr; } }
.exit-hint { position: absolute; top: 14px; left: 66px; background: rgba(0,0,0,.55); color: #fff; padding: 8px 12px;
  border-radius: 10px; font-size: 14px; pointer-events: none; transition: opacity .6s; }
.exit-hint[hidden] { display: none; }
.set-row select { width: 100%; min-width: 0; max-width: 100%; }


/* ════════════════════════════════════════════════════════════════════════════
   Owner-facing design (2026-10-08). The brand is built on dog vision: deep night
   blue, with the two colours dogs see best — yellow for action, blue for info.
   One typeface with character (Bricolage Grotesque, bundled: works offline).
   ════════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Bricolage"; src: url("fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
:root {
  --ink: #0f1a2e;        /* night sky over the lawn */
  --ink-2: #172742;      /* raised surfaces */
  --ink-3: #20345a;      /* hover / borders */
  --paper: #eef2f8;      /* text */
  --mist: #9db0cc;       /* secondary text */
  --dog-yellow: #f6c945; /* action: what a dog sees brightest */
  --dog-blue: #5aa9f0;   /* information */
  --bg: var(--ink); --card: var(--ink-2); --text: var(--paper); --muted: var(--mist); --yellow: var(--dog-yellow); --blue: var(--dog-blue);
}
html, body { font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
button, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--dog-blue); outline-offset: 2px; }

#menu.active { display: block; overflow-y: auto; padding: 0; }
#menu .wrap { max-width: 1120px; margin: 0 auto; padding: 18px 20px 48px; display: flex; flex-direction: column; gap: 40px; }

.brand { display: flex; align-items: center; justify-content: space-between; }
.mark { font-size: 21px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 4px; }
.mark .paw { filter: saturate(0) brightness(1.6); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; color: var(--paper); font-size: 19px; cursor: pointer; }

/* hero: the live game is the headline */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #4d5b47;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.06); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: .98; letter-spacing: -.035em; font-weight: 800;
  font-stretch: 85%; margin: 0 0 18px; }
.pitch p { font-size: 18px; line-height: 1.55; color: var(--mist); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.btn-primary { background: var(--dog-yellow); color: #14181f; border: 0; border-radius: 999px; padding: 16px 26px;
  font-size: 17px; font-weight: 700; cursor: pointer; }
.btn-primary.wide { width: 100%; border-radius: 16px; padding: 17px; }
.btn-primary[hidden] { display: none; }
.btn-quiet { background: none; border: 0; color: var(--paper); font-size: 16px; font-weight: 600; padding: 12px 6px;
  text-decoration: underline; text-decoration-color: var(--dog-blue); text-underline-offset: 5px; text-decoration-thickness: 2px; cursor: pointer; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--mist); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-blue { background: var(--dog-blue); } .dot-yellow { background: var(--dog-yellow); } .dot-paper { background: var(--paper); }

/* sections */
#menu h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; }
.how { background: var(--ink-2); border-radius: 22px; padding: 24px 26px; }
.how[hidden] { display: none; }
.how ol { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; max-width: 60em; }

/* free games: big, each with one line about what the dog will see */
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game { position: relative; display: flex; flex-direction: column; text-align: left; gap: 6px; padding: 0 0 18px;
  background: var(--ink-2); border: 0; border-radius: 22px; color: var(--paper); cursor: pointer; overflow: hidden; }
.game .pic { display: block; width: 100%; aspect-ratio: 16 / 10; background: #4d5b47; }
.game .pic canvas, .game .pic .emoji { width: 100%; height: 100%; display: grid; place-items: center; font-size: 56px; }
.game .txt { display: flex; flex-direction: column; gap: 5px; padding-top: 12px; }
.game b { font-size: 19px; font-weight: 700; padding: 0 18px; }
.game small { font-size: 14px; color: var(--mist); padding: 0 18px; line-height: 1.4; }
.game .badge { position: absolute; top: 12px; left: 12px; background: rgba(15,26,46,.82); color: var(--dog-yellow);
  font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.game:hover, .pack-game:hover, .extra:hover { background: var(--ink-3); }

/* the full pack: one panel, six games, the price promise, one button */
.pack { background: linear-gradient(180deg, var(--ink-2), #13213a); border-radius: 28px; padding: 28px; }
.pack-head p { color: var(--mist); font-size: 16px; line-height: 1.5; margin: -6px 0 20px; max-width: 46em; }
.pack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.pack-game { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 12px;
  background: rgba(255,255,255,.04); border: 0; border-radius: 16px; color: var(--paper); cursor: pointer; overflow: hidden; }
.pack-game .pic { width: 100%; aspect-ratio: 4 / 3; display: block; background: rgba(77,91,71,.55); }
.pack-game .pic canvas, .pack-game .pic .emoji { width: 100%; height: 100%; display: grid; place-items: center; font-size: 36px; }
.pack-game span.name { font-size: 14px; font-weight: 600; padding: 0 8px; text-align: center; }
.pack-game.locked .pic::after { content: "🔒"; position: absolute; top: 8px; right: 8px; font-size: 14px; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.extra { display: flex; gap: 16px; align-items: center; text-align: left; background: var(--ink-2); border: 0; border-radius: 20px;
  padding: 20px 22px; color: var(--paper); cursor: pointer; }
.extra-ico { font-size: 30px; }
.extra-text { display: flex; flex-direction: column; gap: 4px; }
.extra-text b { font-size: 18px; } .extra-text small { color: var(--mist); font-size: 14px; line-height: 1.4; }

.foot { display: grid; gap: 10px; border-top: 1px solid var(--ink-3); padding-top: 22px; }
.foot .tip { max-width: 60em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .stage { aspect-ratio: 16 / 11; border-radius: 22px; }
  .free-grid { grid-template-columns: 1fr; }
  .free-grid .game { flex-direction: row; align-items: center; padding: 0; gap: 0; }
  .free-grid .game .pic { width: 42%; aspect-ratio: 4 / 3; flex: none; }
  .free-grid .game .txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 4px; }
  .free-grid .game b { padding: 0 14px; font-size: 18px; } .free-grid .game small { padding: 0 14px; }
  .pack { padding: 20px; border-radius: 22px; }
  .pack-grid { grid-template-columns: repeat(3, 1fr); }
  .extras { grid-template-columns: 1fr; }
  #menu .wrap { gap: 30px; padding: 14px 16px 40px; }
}

/* nav: learn more · language · settings */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ink-3); background: transparent; color: var(--paper); font-size: 15px; font-weight: 600; cursor: pointer; }
.nav-btn:hover, .icon-btn:hover { background: var(--ink-2); }
.info-mark { width: 20px; height: 20px; border-radius: 50%; background: var(--dog-yellow); color: #14181f;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; }
@media (max-width: 520px) { .nav-btn { padding: 0 11px; font-size: 14px; } .mark { font-size: 18px; } }

/* sheets (Learn more, Language) */
.sheet { border: 0; padding: 0; border-radius: 26px; background: var(--ink-2); color: var(--paper);
  width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 900px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); }
.sheet::backdrop { background: rgba(6,12,24,.72); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet-small { width: min(440px, calc(100vw - 24px)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 8px 26px; }
.sheet-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.about-list { overflow-y: auto; padding: 8px 26px 26px; display: grid; gap: 18px; }
.about-list article { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.about-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--ink-3); display: grid; place-items: center; font-size: 22px; }
.about-list h3 { margin: 2px 0 6px; font-size: 17px; font-weight: 700; }
.about-list p { margin: 0; color: var(--mist); font-size: 15px; line-height: 1.55; }
.about-list .about-lead { padding: 16px; border-radius: 18px; border: 1px solid rgba(246, 201, 69, .45); background: rgba(246, 201, 69, .07); }
.about-lead .about-ico { background: var(--dog-yellow); }
.about-lead h3 { color: var(--dog-yellow); }
.lang-list { overflow-y: auto; padding: 6px 18px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-list button { text-align: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ink-3);
  background: transparent; color: var(--paper); font-size: 16px; cursor: pointer; }
.lang-list button[aria-current="true"] { border-color: var(--dog-yellow); background: rgba(246,201,69,.08); }

/* right-to-left (Arabic) */
[dir="rtl"] .game, [dir="rtl"] .extra { text-align: right; }
[dir="rtl"] .facts li, [dir="rtl"] .cta-row { direction: rtl; }
[dir="rtl"] .exit-hint { left: auto; right: 66px; }
[dir="rtl"] .game .badge { left: auto; right: 12px; }

/* brand mark in the header */
.mark .logo { width: 46px; height: 28px; margin-right: 6px; }
.paid-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #14181f; background: var(--dog-yellow); vertical-align: middle; }
.paid-tag[hidden] { display: none; }
[dir="rtl"] .paid-tag { margin-left: 0; margin-right: 8px; }
.pack-voice { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 18px; color: var(--paper); font-size: 15px; line-height: 1.5; }

/* full pack: level chip, twin picker, three extras */
.extras { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .extras { grid-template-columns: 1fr; } }
.level-chip { position: absolute; top: 14px; right: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(15,26,46,.6);
  color: var(--dog-yellow); font-weight: 700; font-size: 14px; pointer-events: none; }
.level-chip[hidden] { display: none; }
.level-chip.pop { animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
[dir="rtl"] .level-chip { right: auto; left: 16px; }
.twin-list { overflow-y: auto; padding: 6px 22px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.twin-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 10px; border-radius: 16px;
  border: 1px solid var(--ink-3); background: rgba(77,91,71,.35); color: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.twin-pick canvas { width: 120px; height: 75px; }
.twin-pick[aria-current="true"] { border-color: var(--dog-yellow); background: rgba(246,201,69,.12); }
.twin-none { height: 75px; display: grid; place-items: center; font-size: 26px; color: var(--mist); }

/* owner access (hidden: 7 taps on the logo) */
.owner-chip { margin-inline-start: 10px; padding: 3px 10px; border-radius: 999px; background: var(--dog-yellow); color: #14181f; font-size: 12px; font-weight: 700; vertical-align: middle; }
.owner-chip[hidden] { display: none; }
.owner-body { padding: 4px 24px 24px; display: grid; gap: 14px; }
.owner-body > div { display: grid; gap: 14px; }
.owner-body > div[hidden] { display: none; }
.owner-body p { margin: 0; color: var(--mist); line-height: 1.5; }
.owner-input { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: var(--ink-3); color: var(--paper); font: inherit; font-size: 18px; letter-spacing: .08em; text-align: center; }
.owner-input:focus-visible { outline: 2px solid var(--dog-yellow); outline-offset: 2px; }
.owner-err { color: #ffb4a8 !important; }

/* install (web only) */
.install-btn[hidden] { display: none; }
.install-btn span:first-child { font-size: 18px; line-height: 1; }
@media (max-width: 560px) { .install-btn span:last-child { display: none; } .install-btn { width: 44px; justify-content: center; padding: 0; } }
.install-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; line-height: 1.5; }

/* reviews: one score, a few real voices, one quiet way in */
.reviews[hidden] { display: none; }
.rev-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rev-head h2 { margin: 0 !important; }
.rev-summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 14px 0 20px; }
.rev-avg { font-size: 56px; font-weight: 800; font-stretch: 85%; letter-spacing: -.04em; line-height: 1; }
.rev-stars { color: var(--dog-yellow); letter-spacing: .08em; font-size: 20px; }
.rev-summary .rev-stars { font-size: 24px; }
.rev-count { color: var(--mist); font-size: 15px; }
.rev-empty { margin: 0; color: var(--mist); font-size: 16px; line-height: 1.5; max-width: 40em; }
.rev-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rev-list:empty { display: none; }
.rev-card { background: var(--ink-2); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rev-top .rev-stars { font-size: 16px; }
.rev-react { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink-3); color: var(--paper); }
.rev-loved { background: rgba(246, 201, 69, .16); color: var(--dog-yellow); }
.rev-curious { background: rgba(90, 169, 240, .16); color: var(--dog-blue); }
.rev-text { margin: 0; font-size: 15.5px; line-height: 1.5; }
.rev-by { margin: 0; color: var(--mist); font-size: 13.5px; }
@media (max-width: 860px) { .rev-list { grid-template-columns: 1fr; } .rev-avg { font-size: 46px; } }

/* review form */
.rev-form-wrap { overflow-y: auto; min-height: 0; padding: 4px 24px 24px; }
#revForm { display: grid; gap: 8px; }
#revForm[hidden], .rev-done[hidden] { display: none; }
.rev-label { margin: 10px 0 2px; font-size: 15px; font-weight: 700; color: var(--paper); }
.rev-star-input { display: flex; gap: 6px; }
.rev-star-input button { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--ink-3); background: transparent;
  color: var(--ink-3); font-size: 28px; line-height: 1; cursor: pointer; }
.rev-star-input button.on { color: var(--dog-yellow); border-color: rgba(246, 201, 69, .45); }
.rev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rev-chips button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink-3); background: transparent; color: var(--paper);
  font-size: 15px; font-weight: 600; cursor: pointer; }
.rev-chips button[aria-checked="true"] { background: var(--dog-yellow); border-color: var(--dog-yellow); color: #14181f; }
.rev-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ink-3); background: var(--ink);
  color: var(--paper); font: inherit; font-size: 16px; resize: vertical; user-select: text; -webkit-user-select: text; }
.rev-input:focus-visible { outline: 2px solid var(--dog-blue); outline-offset: 1px; }
.rev-countchar { justify-self: end; color: var(--mist); font-size: 12.5px; margin-top: -4px; }
.rev-note { margin: 6px 0 4px; color: var(--mist); font-size: 13.5px; line-height: 1.45; }
#revPost:disabled { opacity: .45; cursor: default; }
.rev-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 10px 0 4px; }
.rev-done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--dog-yellow); color: #14181f; display: grid; place-items: center; font-size: 34px; }
.rev-done p { margin: 0; font-size: 17px; line-height: 1.5; }
.owner-input { user-select: text; -webkit-user-select: text; }

/* owner dashboard */
.dash-body { overflow-y: auto; min-height: 0; padding: 4px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.dash-body > * { flex-shrink: 0; }   /* the window scrolls; nothing inside it gets squeezed */
.dash-body h3 { margin: 12px 0 0; font-size: 18px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-kpis div { background: var(--ink); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.dash-kpis b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dash-kpis span { color: var(--mist); font-size: 13px; line-height: 1.3; }
.dash-react, .dash-note { margin: 0; color: var(--mist); font-size: 14.5px; line-height: 1.5; }
.dash-table { overflow-x: auto; }
.dash-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dash-table th, .dash-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--ink-3); }
.dash-table th { color: var(--mist); font-weight: 600; }
.dash-rev { background: var(--ink); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.dash-actions { display: flex; gap: 12px; align-items: center; }
.dash-actions .btn-primary { padding: 10px 18px; font-size: 15px; }
@media (max-width: 560px) { .dash-kpis { grid-template-columns: 1fr 1fr; } }

/* web purchase (web.js) */
.restore-link { display: block; margin: 10px auto 0; font-size: 15px; }
.restore-link[hidden] { display: none; }
.unlock-code { margin: 4px 0; padding: 16px; border-radius: 14px; background: var(--ink); text-align: center; font-size: 24px; font-weight: 800;
  letter-spacing: .08em; color: var(--dog-yellow); user-select: all; -webkit-user-select: all; }
.legal-links { margin: 0; font-size: 14px; color: var(--mist); }
.legal-links a { color: var(--paper); text-underline-offset: 4px; }
