/* オルキャン user pages (top, settings, contact, messages). Design "E": a navy
   hero with the big number, white cards below, gold for the reward pass,
   violet for actions, red only for what cannot be undone.
   System fonts only, and no inline styles: the CSP allows this file only.
   The admin screen keeps app.css. */
:root {
  --bg:#f3f4fa; --card:#fff; --ink:#141833; --ink2:#4a5072; --muted:#5e6488; --line:#e6e8f2; --field:#f6f7fb;
  --navy:#0b1036; --navy2:#1c1650; --violet:#4a2b8f;
  --pri:#5b47f5; --pri2:#8a5cf6; --pri-ink:#3b2bcb; --pri-soft:#f1f0ff;
  --gold:#e9b95a; --gold2:#f6d58d; --gold-ink:#2a1b05;
  --ok:#0e7a54; --ok-dot:#17a673; --ok-soft:#e3f6ee; --warn:#8a4b00; --warn-soft:#fbf1da; --bad:#c2261c; --bad-soft:#fdecea;
  --shadow:0 1px 0 rgba(20,24,51,.04),0 10px 26px rgba(30,30,90,.08);
  --jp:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Zen Kaku Gothic New","Yu Gothic",Meiryo,system-ui,sans-serif;
  --num:"SF Pro Display",-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0a0d26; --card:#151937; --ink:#eceefa; --ink2:#c3c6e6; --muted:#9ea3c8; --line:#2a2f57; --field:#1d2246;
    --pri-ink:#c9c0ff; --pri-soft:#262257; --ok:#4fd1a0; --ok-soft:#12352a; --warn:#f0b54a; --warn-soft:#3a2c10; --bad:#ff7a70; --bad-soft:#3a1716;
    --shadow:0 1px 0 rgba(0,0,0,.2),0 10px 26px rgba(0,0,0,.25);
    color-scheme:dark;
  }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:#120d3a; color:var(--ink); font:16px/1.65 var(--jp); -webkit-font-smoothing:antialiased; }
/* Aurora: one purple aurora behind every user page. A fixed layer, because
   iOS Safari ignores background-attachment: fixed. Cards sit on top. */
body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(124,77,255,.75), transparent 70%),
    radial-gradient(50% 40% at 92% 18%, rgba(255,92,178,.45), transparent 72%),
    radial-gradient(55% 45% at 78% 72%, rgba(56,214,197,.35), transparent 72%),
    radial-gradient(60% 50% at 10% 88%, rgba(91,71,245,.6), transparent 72%),
    linear-gradient(170deg, #160f45 0%, #241565 45%, #13184a 100%); }
a { color:var(--pri-ink); }
h1,h2,h3 { line-height:1.35; margin:0; }
p { margin:0; }
code { font-family:var(--mono); font-size:.88em; background:var(--field); padding:1px 6px; border-radius:6px; word-break:break-all; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid var(--pri); outline-offset:2px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- page frame ---- */
.page { width:100%; max-width:560px; margin:0 auto; min-height:100vh; padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
.page.no-tabs { padding-bottom:40px; }
.top { position:sticky; top:0; z-index:20; color:#fff; background:rgba(14,10,48,.55);
  -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%);
  padding:max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
.top-in { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; }
.logo { display:flex; align-items:center; gap:10px; white-space:nowrap; font-weight:900; font-size:19px; letter-spacing:.04em; color:#fff; text-decoration:none; }
.logo .mk { width:30px; height:30px; border-radius:8px; display:block; flex:none; box-shadow:0 2px 8px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.4); }
.pass-mini { min-height:44px; padding:0 14px; border-radius:22px; border:1px solid rgba(246,213,141,.55); background:rgba(255,255,255,.08);
  color:var(--gold2); font:700 14px/1 var(--jp); display:inline-flex; align-items:center; gap:6px; cursor:pointer; white-space:nowrap; }
.pass-mini svg { width:16px; height:16px; flex:none; }
.pass-mini.running { background:var(--gold); color:var(--gold-ink); border-color:var(--gold); }
.top-r { display:flex; align-items:center; gap:8px; flex:none; }
/* the bar fits any width: the name gives way first, the buttons never */
.top-in > .logo { flex:1 1 auto; min-width:0; }
.top-in > .logo > span { overflow:hidden; text-overflow:ellipsis; min-width:0; }
/* ad blocking ON/OFF in the header, on every tab */
.sw-mini { min-height:44px; min-width:84px; justify-content:center; flex:none; padding:0 10px 0 8px; border-radius:22px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08);
  color:#fff; font:800 13px/1 var(--num); display:inline-flex; align-items:center; gap:6px; cursor:pointer; letter-spacing:.04em; }
.sw-mini .k { width:30px; height:18px; border-radius:9px; background:#8a8fae; position:relative; flex:none; transition:background .15s; }
.sw-mini .k::after { content:""; position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:#fff; transition:left .15s; }
.sw-mini.on .k { background:#17a673; }
.sw-mini.on .k::after { left:14px; }
.sw-mini:not(.on) { border-color:rgba(246,213,141,.7); color:var(--gold2); }
.sw-mini:disabled { opacity:.6; }
/* "Start with Google" (Google's own look: white, logo, dark text) */
.btn.btn-google { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; background:#fff; color:#1f1f1f;
  border:1px solid #747775; font-weight:700; text-decoration:none; }
.btn-google svg { width:20px; height:20px; flex:none; }
.or { text-align:center; color:var(--muted); font-size:13px; margin:12px 0 0; }
/* cancelling: a small, plain row at the very bottom (still readable: AA contrast) */
details.quiet { margin:6px 0 0; }
details.quiet > summary { color:#eef0ff; font-weight:700; font-size:15px; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
details.quiet > summary::before { font-size:16px; }
details.quiet[open] { background:var(--card); color:var(--ink); border-radius:16px; padding:4px 16px 16px; }
details.quiet[open] > summary { color:var(--muted); }
details.quiet .sub-h { font-size:16px; margin:14px 0 6px; color:var(--ink); }
details.quiet .sub-h2 { font-weight:800; font-size:14px; margin-top:10px; }
details.quiet .kv { font-size:14px; }
.link-btn { background:none; border:0; padding:10px 0; min-height:44px; font:inherit; font-size:14px; color:var(--pri-ink); text-decoration:underline; cursor:pointer; }
.stay { border-radius:14px; padding:14px; background:var(--pri-soft); margin:6px 0 10px; }
.stay-t { font-weight:800; }
/* Orunyan, the black cat: standing in the hero, feet melting into the aurora */
.hero > .cat-blend { position:absolute; pointer-events:none; width:auto; z-index:1;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 62%,rgba(0,0,0,.55) 80%,transparent 100%);
          mask-image:linear-gradient(to bottom,#000 0%,#000 62%,rgba(0,0,0,.55) 80%,transparent 100%);
  /* a black cat on a dark sky: a thin light rim and a violet glow keep its outline */
  filter:drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 20px rgba(150,120,255,.5)); }
.intro { position:relative; }
.hero.intro > *:not(.cat-blend) { position:relative; z-index:2; }
.intro .lead, .intro .pts, .intro .lead-note, .intro .assure { max-width:56%; }
.hero > .cat-top { right:0; bottom:6px; height:200px; -webkit-mask-image:none; mask-image:none; filter:drop-shadow(0 0 1px rgba(255,255,255,.6)) drop-shadow(0 0 18px rgba(150,120,255,.55)) drop-shadow(0 10px 16px rgba(0,0,0,.35)); } /* fully visible on the top page (owner's choice) */
.mascot-hero { position:relative; overflow:hidden; }
.hero.mascot-hero > *:not(.cat-blend):not(.cat-bubble) { position:relative; z-index:2; }
.hero > .cat-home { right:-4px; top:44px; height:200px; opacity:.92;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 45%,rgba(0,0,0,.4) 70%,transparent 88%);
          mask-image:linear-gradient(to bottom,#000 0%,#000 45%,rgba(0,0,0,.4) 70%,transparent 88%); }
.hero > .cat-bubble { position:absolute; right:122px; top:128px; max-width:min(196px, 52%); z-index:3; border:0; cursor:pointer;
  background:rgba(255,255,255,.94); color:#141833; font:700 12px/1.45 var(--jp); padding:7px 11px; border-radius:14px; text-align:left;
  box-shadow:0 4px 12px rgba(0,0,0,.2); min-height:44px; }
.hero > .cat-bubble::after { content:""; position:absolute; right:-6px; top:12px; border:7px solid transparent; border-left-color:rgba(255,255,255,.94); border-right:0; }
@media (min-width:700px) { .hero > .cat-home { height:230px; } }
.hero > .cat-home.asleep { height:92px; top:96px; right:6px; -webkit-mask-image:none; mask-image:none; } /* the sleeping cat lies flat: small, beside the bubble, not faded */

/* sign-up / sign-in */
.choice { display:grid; gap:12px; }
.auth label { display:block; font-weight:700; margin:14px 0 6px; }
.auth .agree label, .keep label { display:inline; font-weight:400; margin:0; }
.opt { font-weight:400; color:var(--muted); font-size:13px; margin-left:6px; }
.pw { position:relative; }
.pw input { padding-right:72px; }
.pw-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); border:0; background:none; color:var(--pri-ink); font:700 14px/1 var(--jp); min-height:44px; min-width:56px; cursor:pointer; }
#pw-msg:not(:empty) { color:var(--bad); font-weight:700; }
.row-s { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; font-size:14px; }
.row-s a { color:var(--pri-ink); font-weight:700; }
.keep { display:flex; align-items:center; gap:8px; }
.keep input { width:22px; height:22px; }
.reward-run .btn { margin-left:6px; vertical-align:middle; }
.start h2 { font-size:21px; }
.plan-btn .pill { margin-left:6px; vertical-align:middle; }
.how { margin:10px 0 0; padding-left:1.3em; font-size:14px; color:var(--ink2); }
.how li + li { margin-top:4px; }
.bell { position:relative; width:44px; height:44px; border-radius:22px; display:grid; place-items:center; color:#fff; background:rgba(255,255,255,.08); }
.bell svg { width:22px; height:22px; }
.bell-n { position:absolute; top:4px; right:3px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#ff5c72; color:#fff;
  font:800 11px/18px var(--num); text-align:center; box-shadow:0 0 0 2px var(--navy); }
.hero-notice { display:flex; align-items:center; gap:10px; margin-top:14px; padding:10px 12px; border-radius:14px; text-decoration:none; color:#fff;
  background:rgba(255,255,255,.1); box-shadow:inset 0 0 0 1px rgba(246,213,141,.45); min-height:48px; }
.hero-notice .t { flex:1; min-width:0; font-weight:700; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hero-notice svg { width:16px; height:16px; flex:none; color:var(--gold2); }
.notice h2 { font-size:17px; margin-top:8px; }
.notice-meta { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.notice-body { white-space:pre-line; font-size:15px; margin-top:6px; color:var(--ink2); overflow-wrap:anywhere; }
.notice.unread { box-shadow:var(--shadow), inset 4px 0 0 var(--gold); }
.new-dot { font-weight:800; color:var(--bad); font-size:12px; }
.lang-mini { color:#c6c8ec; font-size:14px; font-weight:700; text-decoration:none; min-height:44px; display:inline-flex; align-items:center; padding:0 6px; }

.hero { position:relative; color:#fff; background:transparent; padding:10px 20px 26px; }
.hero > * { position:relative; z-index:1; }
.hero.tall { padding-bottom:22px; }
.hero h1 { font-size:26px; font-weight:900; }
.hero .sub { font-size:15px; color:#d2d3f0; margin-top:4px; }
.hero .lbl { margin:0; font-size:14px; color:#c6c8ec; font-weight:700; letter-spacing:.04em; }
.hero-row { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.big { font-family:var(--num); font-weight:800; font-size:clamp(54px, 18vw, 80px); line-height:1; letter-spacing:-.03em; margin-top:6px; display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.big small { font-family:var(--jp); font-size:19px; font-weight:700; letter-spacing:0; color:#dcddf6; margin-bottom:6px; }
.big .delta { font-family:var(--num); font-size:14px; font-weight:600; color:#9ef0c8; letter-spacing:0; margin-bottom:8px; }
.badge { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:0 12px; border-radius:14px; border:1px solid rgba(246,213,141,.6);
  color:var(--gold2); font:700 12px/1 var(--num); letter-spacing:.16em; background:rgba(233,185,90,.08); white-space:nowrap; }
.badge svg { width:12px; height:12px; }
.badge.mute { border-color:rgba(255,255,255,.3); color:#c6c8ec; background:transparent; }
.week { margin-top:14px; }
.week .cols { display:grid; grid-template-columns:repeat(7,1fr); gap:10px; align-items:end; height:72px; border-bottom:1px solid rgba(255,255,255,.15); }
.week .col { height:100%; display:flex; align-items:flex-end; }
.week .col i { display:block; width:100%; min-height:4px; border-radius:7px 7px 3px 3px; background:linear-gradient(180deg,rgba(185,166,255,.9),rgba(185,166,255,.25)); }
.week .col.today i { background:linear-gradient(180deg,var(--gold2),var(--gold)); }
.week .days { display:grid; grid-template-columns:repeat(7,1fr); gap:10px; text-align:center; font:12px/1.8 var(--num); color:#a9acd6; }
.week .days b { color:#fff; }
.week-total { margin-top:6px; font-size:14px; color:#c6c8ec; }
.week-total b { color:#fff; font-family:var(--num); }
.week-saved { margin-top:2px; font-size:13px; color:#c6c8ec; }
.week-saved b { color:#ffd76a; font-family:var(--num); }
.week-saved .q { display:inline-block; width:28px; height:28px; line-height:28px; position:relative; font-size:14px; text-align:center; border-radius:50%; border:1px solid #c6c8ec; color:#c6c8ec; text-decoration:none; }
.first-win h2 { display:flex; gap:6px; align-items:center; }

/* ---- content ---- */
.body { padding:0 16px; }
.stack > * + * { margin-top:12px; }
.lift { position:relative; z-index:2; }
.gap { margin-top:14px; }
.card { background:var(--card); border-radius:22px; box-shadow:var(--shadow); padding:18px; }
.card.tight { padding:14px 16px; }
.card h2 { font-size:18px; font-weight:900; }
.card h3 { font-size:16px; font-weight:900; margin-top:14px; }
.h4 { font-size:16px; font-weight:900; margin-bottom:10px; }
.h4 em { display:block; font-style:normal; font-size:13px; color:var(--muted); font-weight:700; margin-top:2px; }
.note { font-size:14px; color:var(--muted); line-height:1.65; margin-top:8px; }
.note:first-child { margin-top:0; }
.small-c { text-align:center; }
.sec-t { font-size:13px; font-weight:700; color:var(--muted); letter-spacing:.06em; margin:18px 4px 8px; }
ol.steps-txt, ul.plain { margin:8px 0 0; padding-left:1.3em; font-size:15px; }
ol.steps-txt li + li, ul.plain li + li { margin-top:6px; }

/* switch card */
.sw-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sw-row h2 { font-size:18px; }
.sw-row p { font-size:15px; color:var(--muted); margin-top:2px; }
.sw-row > .btn { flex:none; white-space:nowrap; }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--ok-dot); margin-right:6px; box-shadow:0 0 0 4px rgba(23,166,115,.15); vertical-align:1px; }
.dot.off { background:#c9ccdd; box-shadow:0 0 0 4px rgba(150,155,190,.15); }
.dot.warn { background:var(--gold); box-shadow:0 0 0 4px rgba(233,185,90,.2); }
.switch { width:68px; height:40px; border-radius:20px; border:0; padding:0; cursor:pointer; position:relative; flex:none;
  background:linear-gradient(135deg,var(--pri),var(--pri2)); }
.switch::after { content:""; position:absolute; right:4px; top:4px; width:32px; height:32px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25); transition:right .15s, left .15s; }
.switch[aria-checked="false"] { background:#d5d8e6; }
.switch[aria-checked="false"]::after { right:auto; left:4px; }
.switch:disabled { opacity:.6; }

/* buttons */
button, .btn { font:inherit; }
.btn { display:flex; align-items:center; justify-content:center; gap:10px; min-height:52px; width:100%; border-radius:16px; border:0; cursor:pointer;
  font:700 16px/1.3 var(--jp); text-decoration:none; padding:8px 16px; text-align:center; }
.btn svg { width:20px; height:20px; flex:none; }
.btn:disabled { opacity:.55; cursor:default; }
.btn-pri { background:linear-gradient(135deg,var(--pri),var(--pri2)); color:#fff; box-shadow:0 8px 18px rgba(91,71,245,.3); }
.btn-ghost { background:var(--pri-soft); color:var(--pri-ink); }
.btn-line { background:var(--card); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line); }
.btn-danger { background:var(--card); color:var(--bad); box-shadow:inset 0 0 0 1.5px var(--line); }
.btn-danger.solid { background:var(--bad); color:#fff; box-shadow:none; }
.btn-gold { min-height:72px; border-radius:20px; justify-content:space-between; padding:0 20px; text-align:left;
  background:linear-gradient(135deg,#f8de9e 0%,#e9b95a 55%,#d99a35 100%); color:var(--gold-ink);
  box-shadow:0 10px 24px rgba(217,154,53,.35),inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold .t { font-size:19px; font-weight:900; line-height:1.3; }
.btn-gold .t span { display:block; font-size:13px; font-weight:700; color:#5a3d0a; }
.btn-gold .t .reward-label { display:inline; font-size:19px; font-weight:900; color:inherit; }
.btn-gold .sec { font:800 15px/1 var(--num); background:rgba(42,27,5,.88); color:var(--gold2); min-height:40px; padding:0 14px; border-radius:12px; display:flex; align-items:center; flex:none; }
.btn-sm { min-height:44px; font-size:15px; border-radius:12px; width:auto; padding:0 16px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.row { display:flex; gap:10px; align-items:center; }
.row > .grow { flex:1; min-width:0; }
.mt { margin-top:10px; }
.reward-run { font-size:14px; color:var(--warn); background:var(--warn-soft); border-radius:12px; padding:8px 12px; margin-top:8px; }

/* onboarding */
.steps .top-r { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.steps .n { font:700 14px/1 var(--num); color:var(--pri); }
.bar { height:6px; border-radius:3px; background:var(--pri-soft); margin-bottom:6px; overflow:hidden; }
.bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--pri),var(--pri2)); }
.step { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.step:first-of-type { border-top:0; }
.step .c { width:32px; height:32px; border-radius:50%; flex:none; display:grid; place-items:center; font:800 15px/1 var(--num); background:var(--field); color:var(--muted); }
.step.now .c { background:var(--pri); color:#fff; box-shadow:0 0 0 5px rgba(91,71,245,.15); }
.step.done .c { background:var(--ok-dot); color:#fff; font-size:0; }
.step.done .c::before { content:"✓"; font-size:16px; }
.step .tx { flex:1; font-size:15px; font-weight:700; min-width:0; }
.step.done .tx { color:var(--muted); text-decoration:line-through; text-decoration-color:#b8bcd3; }
.step .tx small { display:block; font-weight:400; color:var(--muted); font-size:13px; }
.step .go { flex:none; }

/* trouble */
.fix { background:linear-gradient(150deg,#1a1550 0%,#3b2484 100%); color:#fff; border-radius:22px; padding:20px; box-shadow:0 14px 30px rgba(43,28,120,.35); }
.fix h2 { font-size:24px; font-weight:900; display:flex; align-items:center; gap:10px; }
.fix h2 svg { width:26px; height:26px; flex:none; }
.fix p { font-size:15px; color:#d6d7f3; margin-top:8px; }
.fix .btn-main { background:#fff; color:#2a1c7a; font-size:17px; font-weight:900; min-height:56px; margin-top:14px; }
.fix label { color:#c6c8ec; }
.fix select, .fix input { background:rgba(255,255,255,.1); color:#fff; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.2); }
.fix select option { color:#141833; }
.fix .note, .fix .msg { color:#e3e4f8; }
.fix a { color:var(--gold2); }
.fix .checklist li { border-color:rgba(255,255,255,.15); }
.fix .agree { background:rgba(255,255,255,.08); }
.more { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; color:#d9dcff; font-size:15px; font-weight:700; }
.more svg { width:16px; height:16px; flex:none; }
/* the slim "help / contact" bar at the end of each tab */
.help-bar { display:flex; align-items:center; gap:10px; min-height:48px; padding:0 14px; border-radius:14px; text-decoration:none;
  color:#fff; background:rgba(255,255,255,.12); box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); font-size:14px; font-weight:700; }
.help-bar svg { width:18px; height:18px; flex:none; }
.help-bar .t { flex:1; }
.help-bar .s { font-weight:400; color:#cfd2f5; font-size:13px; }

/* forms */
label { display:block; font-size:14px; font-weight:700; color:var(--ink2); margin:12px 0 6px; }
input[type=text], input[type=search], input[type=email], input[type=password], input:not([type]), input[inputmode], select {
  width:100%; min-height:52px; border-radius:14px; border:0; background:var(--field); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line);
  padding:0 14px; font:16px var(--jp); }
textarea { width:100%; min-height:110px; border-radius:14px; border:0; background:var(--field); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line);
  padding:12px 14px; font:16px/1.6 var(--jp); resize:vertical; }
textarea::placeholder { color:#8a8fb0; }
select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%; background-size:6px 6px; background-repeat:no-repeat; padding-right:36px; }
input::placeholder { color:#8a8fb0; }
.agree { display:flex; gap:10px; align-items:flex-start; background:var(--field); border-radius:14px; padding:12px 14px; margin-top:12px; }
.agree input { width:24px; height:24px; min-height:0; margin:2px 0 0; flex:none; accent-color:var(--pri); box-shadow:none; }
.agree label { margin:0; font-weight:700; font-size:15px; color:var(--ink); }
.consent { border-radius:16px; box-shadow:inset 0 0 0 1.5px var(--line); padding:14px; margin-top:12px; }
.consent .title { font-weight:900; font-size:15px; }
.consent p { font-size:14px; color:var(--ink2); margin-top:6px; }
.en-sum { background:var(--pri-soft); border-radius:12px; padding:10px 12px; margin-top:10px; font-size:14px; color:var(--ink2); }
.en-sum b { color:var(--ink); }

/* lists */
.list { padding:0; overflow:hidden; }
.li { display:flex; align-items:center; gap:12px; padding:14px 16px; border-top:1px solid var(--line); min-height:60px; color:var(--ink); text-decoration:none; width:100%;
  background:none; border-left:0; border-right:0; border-bottom:0; text-align:left; font:inherit; cursor:pointer; }
.li:first-child { border-top:0; }
.li .ico { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex:none; background:var(--pri-soft); color:var(--pri); }
.li .ico svg { width:22px; height:22px; }
.li .ico.mute { background:var(--field); color:var(--ink2); }
.li .ico.red { background:var(--bad-soft); color:var(--bad); }
.li .tx { flex:1; min-width:0; }
.li b { display:block; font-size:16px; font-weight:900; }
.li .s { display:block; font-size:13.5px; color:var(--muted); }
.li .r { margin-left:auto; display:flex; align-items:center; gap:6px; flex:none; color:var(--muted); }
.li .r svg { width:16px; height:16px; }
.li.danger b { color:var(--bad); }
summary.danger-s { color:var(--bad); }
[id] { scroll-margin-top:76px; }
.pill { display:inline-flex; align-items:center; min-height:24px; padding:0 10px; border-radius:12px; font-size:12.5px; font-weight:700; white-space:nowrap; }
.pill.ok { background:var(--ok-soft); color:var(--ok); }
.pill.mute { background:var(--field); color:var(--ink2); }
.pill.gold { background:var(--warn-soft); color:var(--warn); }
.pill.bad { background:var(--bad-soft); color:var(--bad); }
.checklist { list-style:none; padding:0; margin:10px 0 0; }
.checklist li { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); flex-wrap:wrap; }
.checklist li:first-child { border-top:0; }
.checklist input { width:22px; height:22px; min-height:0; accent-color:var(--pri); box-shadow:none; flex:none; }
.checklist label { margin:0; font-weight:400; font-size:15px; color:inherit; word-break:break-all; }
.checklist button { margin-left:auto; }
.checklist .until { font-size:13px; color:var(--muted); }
.segl { display:grid; grid-template-columns:1fr 1fr; background:var(--field); border-radius:14px; padding:4px; gap:4px; }
.segl button, .segl a { min-height:44px; border-radius:11px; border:0; background:none; font:700 15px var(--jp); color:var(--ink2); cursor:pointer;
  display:grid; place-items:center; text-decoration:none; }
.segl .on { background:var(--card); color:var(--pri-ink); box-shadow:0 2px 6px rgba(30,30,90,.12); }

/* devices */
.dev-head { display:flex; align-items:center; gap:12px; }
.dev-head .ico { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:var(--pri-soft); color:var(--pri); flex:none; }
.dev-head .ico svg { width:22px; height:22px; }
.dev-head .tx { flex:1; min-width:0; }
.dev-head .dn { display:block; font-size:17px; font-weight:900; margin:0; }
.dev-head .s { font-size:13.5px; color:var(--muted); }
.copy { display:flex; align-items:center; gap:8px; background:var(--field); border-radius:12px; padding:8px 8px 8px 12px; box-shadow:inset 0 0 0 1.5px var(--line); margin-top:8px; }
.copy code { flex:1; background:none; padding:0; font-size:14px; color:var(--ink); }
.setup h3 { font-size:15px; margin-top:16px; }
.setup ol { margin:6px 0 0; padding-left:1.3em; font-size:15px; }
.setup ol li + li { margin-top:8px; }
details { margin-top:12px; }
details > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; font-weight:700; color:var(--pri-ink); list-style:none; }
details > summary::-webkit-details-marker { display:none; }
details > summary::before { content:"›"; display:inline-block; font-size:20px; line-height:1; transition:transform .15s; }
details[open] > summary::before { transform:rotate(90deg); }
.speed { display:flex; align-items:center; justify-content:center; gap:6px; font-size:14px; color:var(--muted); font-weight:700; }
.speed b { color:var(--ok); }
.bars { display:grid; grid-template-columns:repeat(24,1fr); gap:2px; align-items:end; height:64px; margin-top:10px; }
.bars .b { height:100%; display:flex; align-items:flex-end; }
.bars .b i { display:block; width:100%; background:var(--pri2); border-radius:2px 2px 0 0; min-height:2px; }

/* billing */
.price { font-family:var(--num); font-weight:800; font-size:44px; letter-spacing:-.02em; line-height:1; margin-top:10px; }
.price small { font-family:var(--jp); font-size:16px; font-weight:700; color:#dcddf6; margin-left:4px; letter-spacing:0; }
.plan-btn { display:flex; align-items:center; gap:12px; width:100%; min-height:64px; padding:12px 16px; border-radius:16px; border:0; cursor:pointer; text-align:left;
  background:var(--card); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line); font:inherit; }
.plan-btn + .plan-btn { margin-top:10px; }
.plan-btn .tx { flex:1; }
.plan-btn b { display:block; font-size:16px; font-weight:900; }
.plan-btn span.s { font-size:13.5px; color:var(--muted); }
.plan-btn .yen { font:800 20px/1 var(--num); flex:none; }
.kv { width:100%; border-collapse:collapse; margin-top:10px; font-size:14px; }
.kv th, .kv td { text-align:left; vertical-align:top; padding:8px 0; border-top:1px solid var(--line); }
.kv th { width:34%; color:var(--muted); font-weight:700; padding-right:10px; }
.kv .warn-cell { color:var(--bad); font-weight:700; }

/* alerts and banners */
.banner { border-radius:16px; padding:12px 14px; font-size:15px; }
.banner.ok { background:var(--ok-soft); color:var(--ok); }
.banner.warn { background:var(--warn-soft); color:var(--warn); }
.banner.bad { background:var(--bad-soft); color:var(--bad); }
.banner.dev { background:var(--field); color:var(--ink2); }
.alert-big { border-radius:22px; padding:20px; background:var(--warn-soft); color:var(--ink); text-align:left; }
.alert-big.stop { background:var(--bad-soft); }
.alert-big h2 { font-size:22px; font-weight:900; margin-top:8px; }
.alert-big p { margin-top:8px; font-size:15px; }
.alert-big .btn { margin-top:12px; }
.warn-icon { width:56px; height:56px; display:block; }
.warn-icon .wi-bg { fill:#f2b01e; }
.alert-big.stop .warn-icon .wi-bg { fill:#e0352b; }
.warn-icon .wi-fg { fill:#1b1300; }
.alert-big.stop .warn-icon .wi-fg { fill:#fff; }
.ack { background:var(--warn-soft); border-radius:16px; padding:14px; margin-top:12px; }
.ack .head { display:flex; gap:10px; align-items:center; font-weight:900; }
.ack .head svg { width:32px; height:32px; flex:none; }
.ack p { font-size:14px; margin-top:6px; }
.ack .agree { background:var(--card); }
.check-result { margin-top:10px; border-radius:12px; padding:10px 12px; font-size:15px; background:var(--field); }
.check-result.ok { background:var(--ok-soft); color:var(--ok); }
.check-result.ng { background:var(--bad-soft); color:var(--bad); }
.msg { font-size:14px; color:var(--muted); margin-top:8px; }
.msg:empty { display:none; }

/* tab bar */
.tabs { position:fixed; left:0; right:0; bottom:0; z-index:30; background:rgba(14,10,48,.9); border-top:1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(16px) saturate(140%); backdrop-filter:blur(16px) saturate(140%);
  padding:6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
@media (prefers-color-scheme: dark) {
  .tabs { background:rgba(21,25,55,.96); }
}
.tabs-in { max-width:560px; width:100%; margin:0 auto; display:grid; grid-template-columns:repeat(5,1fr); }
.tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:54px; font-size:13px; line-height:1.2; font-weight:700;
  color:#d4d6f5; text-decoration:none; border-radius:12px; }
.tab svg { width:26px; height:26px; }
.tab[aria-current="page"] { color:#fff; background:rgba(255,255,255,.1); }
.js .panel { display:none; }
.js .panel.on { display:block; }

/* top page */
.intro .big-title { font-size:32px; font-weight:900; line-height:1.3; margin-top:10px; }
.intro .big-title span { color:var(--gold2); }
.intro p.lead { color:#d2d3f0; margin-top:10px; font-size:15px; }
.intro ul.pts { list-style:none; padding:0; margin:14px 0 0; display:flex; flex-wrap:wrap; gap:8px; }
.intro ul.pts li { font-size:13px; font-weight:700; color:var(--gold2); border:1px solid rgba(246,213,141,.5); border-radius:12px; padding:2px 10px; }
.contact-mail { font:700 20px var(--num); margin-top:8px; word-break:break-all; }
.legal-links { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 14px; padding:22px 16px 8px; font-size:13px; }
.legal-links a { color:#cfd2f5; display:inline-flex; align-items:center; min-height:44px; padding:0 2px; }
.code-form { margin-top:10px; }

/* dark mode: the violet is too dark for text on dark cards, use the light
   tint (kept last so it wins over the rules above) */
@media (prefers-color-scheme: dark) {
  .steps .n, .li .ico, .dev-head .ico, .plan-btn .yen, .btn-ghost, .segl .on, details > summary, a { color:var(--pri-ink); }
  .fix a { color:var(--gold2); }
  summary.danger-s { color:var(--bad); }
  .legal-links a { color:#cfd2f5; }
}

/* text that sits on the aurora directly (not in a card) */
.body > .note, .body > .msg, .body > p, .sec-t, .speed { color:#dfe1ff; }
.body > .note a, .sec-t a { color:#fff; }

/* sizes: phones from 320px to tablets and PCs */
@media (max-width:360px) {
  .hero, .body { padding-left:12px; padding-right:12px; }
  .grid2 { grid-template-columns:1fr; }
  .logo { font-size:17px; }
}
@media (max-width:374px) {             /* iPhone SE (1st) and other 320px screens */
  .page:not(.no-tabs) .top-in > .logo > span { display:none; }  /* the settings page header is full; other pages keep the name */
  .top-r { gap:4px; }
  .bell { width:40px; height:40px; }
  .pass-mini { min-height:40px; padding:0 10px; }
  .sw-mini { min-height:40px; min-width:74px; padding:0 8px 0 6px; gap:4px; }
}
@media (max-width:430px) {
  .pass-mini span { display:none; }      /* icon only on phones: the header also holds ON/OFF */
  .pass-mini { padding:0 12px; }
  .pass-mini.running span { display:inline; }
  .top-in:has(.pass-mini.running) .logo > span { display:none; } /* room for the countdown */
  .logo span { font-size:17px; }
  .top-r { gap:6px; }
}
@media (min-width:700px) {
  .page, .tabs-in { max-width:680px; }
  .hero h1 { font-size:30px; }
  .card { padding:22px; }
}
@media (min-width:1100px) {
  .page, .tabs-in { max-width:760px; }
}

/* "add a device": a native <details>, so it opens even if scripts fail */
.add-dev:not([open]) { background:none; box-shadow:none; padding:0; }
.add-dev > summary { color:#fff; justify-content:center; }
.add-dev > summary::before { content:none; }
.add-dev[open] > summary { margin-bottom:4px; }

/* iPhone install guide: small hand-drawn mock-ups of the iOS screens */
ol.ios-steps { margin:8px 0 0; padding-left:1.4em; }
ol.ios-steps > li { margin-top:12px; }
ol.ios-steps .note { display:block; margin-top:4px; }
.ios-mock { margin:10px 0 6px; max-width:300px; border:2px solid var(--line); border-radius:18px; overflow:hidden; background:var(--field); font-size:13px; color:var(--ink); }
.im-bar { padding:8px 12px; font-weight:700; text-align:center; border-bottom:1px solid var(--line); background:var(--card); }
.im-sheet { display:flex; justify-content:space-between; align-items:center; gap:6px; font-weight:400; }
.im-sheet b { font-weight:700; }
.im-hit-txt { color:var(--pri-ink); font-weight:700; outline:2px solid var(--pri); outline-offset:3px; border-radius:6px; }
.im-row { display:flex; align-items:center; gap:8px; padding:9px 12px; background:var(--card); border-bottom:1px solid var(--line); }
.im-row:last-child { border-bottom:0; }
.im-av { width:24px; height:24px; border-radius:50%; background:var(--line); flex:none; }
.im-hit { color:var(--pri-ink); font-weight:700; box-shadow:inset 0 0 0 2px var(--pri); }
.im-chev { margin-left:auto; color:var(--muted); }
.im-dim { color:var(--muted); }
.im-prof { display:flex; gap:10px; align-items:center; padding:12px; background:var(--card); }
.im-prof img { border-radius:10px; flex:none; }
.im-prof b, .im-prof small { display:block; }
.im-prof small { color:var(--muted); margin-top:2px; }
.im-ok { color:var(--ok); font-weight:700; }
.im-ng { color:var(--bad); font-weight:700; }
.ios-path { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0 0; font-size:13px; }
.ios-path span { background:var(--pri-soft); color:var(--pri-ink); border-radius:8px; padding:3px 8px; }
.ios-path span + span::before { content:"→ "; color:var(--muted); }
details.trouble { margin-top:14px; border:1px solid var(--line); border-radius:12px; padding:0 12px; }
details.trouble > summary { padding:12px 0; min-height:44px; font-weight:700; color:var(--ink); cursor:pointer; }
details.trouble[open] { padding-bottom:12px; }
details.trouble ul.plain li { font-size:14px; }

/* install guides: a titled, folding card per platform */
details.guide { margin-top:12px; border:1px solid var(--line); border-radius:16px; background:var(--card); overflow:hidden; transition:box-shadow .2s, border-color .2s; }
details.guide[open] { border-color:var(--pri); box-shadow:0 6px 20px rgba(91,71,245,.12); }
details.guide > summary { padding:12px 14px; gap:12px; color:var(--ink); min-height:60px; }
details.guide > summary::before { content:none; }
details.guide > summary:hover { background:var(--field); }
.g-ico { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; flex:none; color:#fff; background:linear-gradient(135deg,var(--pri),var(--pri2)); }
.g-ico svg { width:20px; height:20px; }
.g-t { display:flex; flex-direction:column; min-width:0; flex:1 1 auto; }
.g-t b { font-size:16px; }
.g-t small { font-weight:400; font-size:12.5px; color:var(--muted); margin-top:2px; }
.g-state { margin-left:auto; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; flex:none; background:var(--pri-soft); color:var(--pri-ink); transition:transform .25s, background .2s, color .2s; }
.g-state svg { width:16px; height:16px; grid-area:1/1; transition:opacity .2s; }
.g-open { opacity:0; }
details.guide[open] .g-state { transform:rotate(180deg); background:var(--pri); color:#fff; }
details.guide[open] .g-closed { opacity:0; }
details.guide[open] .g-open { opacity:1; }
.g-body { padding:0 14px 14px; border-top:1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { details.guide, .g-state, .g-state svg { transition:none; } }

/* share card: this month's count and the picture */
.share-card .share-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.share-card .big-n { margin:2px 0 10px; font-size:15px; color:var(--ink2); }
.share-card .big-n b { font-size:34px; font-weight:800; color:var(--pri-ink); letter-spacing:-.5px; }
.share-cat { width:64px; height:64px; object-fit:cover; object-position:top; border-radius:50%; background:linear-gradient(160deg,#5b47f5,#2a166e); flex:none; }
.share-box { margin-top:12px; display:grid; gap:10px; }
.share-lbl { margin:0; font-size:13px; font-weight:700; color:var(--muted); }
.share-preview { display:grid; }
.share-box img { width:100%; height:auto; max-width:360px; border-radius:16px; border:1px solid var(--line); justify-self:center; }

/* games: votes on the home tab and the public list */
.my-games { margin-top:8px; font-size:14px; color:var(--ink2); }
.my-games:empty { display:none; }
.games-list { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.games-list li { border-bottom:1px solid var(--line); padding-bottom:12px; }
.games-list li:last-child { border-bottom:0; padding-bottom:0; }
.g-row { display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.g-pct { font-weight:700; font-size:14px; color:var(--ink2); }
.g-pct.good { color:var(--ok); }
.g-pct.low { color:var(--bad); }
.meter { height:8px; border-radius:99px; background:var(--field); overflow:hidden; margin:6px 0 4px; }
.meter i { display:block; height:100%; width:0; border-radius:99px; background:linear-gradient(90deg,var(--pri),var(--pri2)); }

/* invite */
.invite .h4 { display:flex; align-items:center; justify-content:flex-start; gap:8px; }
.invite .h4 svg { width:22px; height:22px; color:var(--pri-ink); }

/* cancel reasons: one tap chips */
fieldset.reasons { border:0; padding:0; margin-left:0; margin-right:0; }
fieldset.reasons legend { font-size:14px; color:var(--ink2); margin-bottom:8px; padding:0; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips label { position:relative; }
.chips input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.chips span { display:inline-flex; align-items:center; min-height:40px; padding:6px 14px; border-radius:99px; border:1px solid var(--line); background:var(--card); font-size:14px; color:var(--ink); }
.chips input:checked + span { background:var(--pri-soft); border-color:var(--pri); color:var(--pri-ink); font-weight:700; }
.chips input:focus-visible + span { outline:3px solid var(--pri); outline-offset:2px; }
fieldset.reasons textarea { width:100%; margin-top:10px; }
label.chk { display:flex; gap:10px; align-items:flex-start; font-size:15px; }
label.chk input { width:22px; height:22px; flex:none; margin-top:2px; }

/* Japanese line breaks: lines are filled to the edge (app.js breaks short
   blocks between phrases, top line longer); small kana and closing brackets
   never start a line. */
html:lang(ja) body { line-break:strict; }
.lb, code, .copy-target, input, textarea { word-break:break-all; }

/* account tab: titled folding sections */
details.guide.acc .g-body { display:grid; gap:12px; padding-top:14px; }
details.guide.acc .g-body > .list { margin:0; }
.sub-card { border:1px solid var(--line); border-radius:14px; padding:14px; display:grid; gap:8px; background:var(--card); }
.sub-card .h4 { margin-bottom:0; }
.stack-s { display:grid; gap:12px; }
details.guide.acc#delete .g-ico { background:var(--bad); }
details.guide.acc#delete .g-t b { color:var(--bad); }
details.guide.acc#delete[open] { border-color:var(--bad); box-shadow:none; }
details.guide.acc .list .li { padding-left:0; padding-right:0; }
details.guide.acc .list .li:first-child { border-top:0; }
details.guide.acc .g-body > *, .stack-s > *, .sub-card > * { min-width:0; }
details.guide.acc .kv { width:100%; table-layout:fixed; }
details.guide.acc .kv td { overflow-wrap:anywhere; }
.lb, .nb { white-space:nowrap; }
details.guide.acc .kv th { width:38%; }

/* top page: games where blocking was checked */
.ex-chips { list-style:none; margin:4px 0 10px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.ex-chips li { padding:6px 12px; border-radius:99px; background:var(--pri-soft); color:var(--pri-ink); font-weight:700; font-size:14px; }
/* billing: what every plan includes */
.perks { margin-top:12px; padding:12px 14px; border-radius:14px; background:var(--pri-soft); }
.perks-t { margin:0 0 6px; font-weight:800; color:var(--pri-ink); font-size:14px; }
.perks ul { margin:0; padding-left:1.2em; display:grid; gap:6px; font-size:14px; color:var(--ink); }
.perks li b { color:var(--pri-ink); margin-right:6px; }
details.guide.promo { margin-top:12px; }
.my-promos { font-size:14px; color:var(--ink2); margin:0; }
.sw-mini.setup { text-decoration:none; color:#fff; }
.sw-mini.setup .k { background:#c98a12; }
.sw-mini.setup .k::after { left:8px; }
.ack.calm { background:var(--pri-soft); }
.ack.calm .head svg { color:var(--pri-ink); width:26px; height:26px; }
.ack.calm .how { margin-top:6px; }

/* top page: promises under the sign-up button, price cards, FAQ */
.promise { list-style:none; margin:2px 0 4px; padding:0; display:grid; gap:4px; font-size:13.5px; color:var(--ink2); }
.promise li { padding-left:22px; position:relative; }
.promise li::before { content:""; position:absolute; left:4px; top:.45em; width:10px; height:6px; border-left:2.5px solid var(--ok); border-bottom:2.5px solid var(--ok); transform:rotate(-45deg); }
.price-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-top:10px; }
.price-card { border:1px solid var(--line); border-radius:16px; padding:12px 14px; display:grid; gap:4px; align-content:start; background:var(--card); }
.price-card.best { border:2px solid var(--pri); background:var(--pri-soft); }
.price-card .pill { justify-self:start; }
.price-card .yen { margin:0; font-weight:900; color:var(--ink); }
.price-card .yen span { font-size:26px; }
.price-card .yen small { font-size:13px; color:var(--muted); font-weight:700; }
.faq details { border-top:1px solid var(--line); margin:0; }
.faq details:first-of-type { border-top:0; }
.faq summary { padding:12px 0; color:var(--ink); }
.faq details p { margin:0 0 12px; font-size:14px; color:var(--ink2); }
.consent .sum { margin:6px 0 0; padding-left:1.2em; font-size:14px; }
.consent-full { margin-top:6px; }
.consent-full summary { font-size:14px; min-height:36px; }
.consent-full p { font-size:13px; }
.checked-games { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:8px; }
.checked-games li { border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:grid; gap:2px; }
.checked-games a { display:flex; justify-content:space-between; align-items:center; gap:8px; text-decoration:none; color:var(--ink); }
.pill.ok { background:var(--ok-soft); color:var(--ok); }
.ex-chips a { color:inherit; text-decoration:none; }
.lead-note { position:relative; z-index:1; margin:6px 0 0; font-size:13px; line-height:1.6; color:#dfe1ff; max-width:22em; }
.tm-note { text-align:center; font-size:12px; color:#c3c6e6; margin:0 16px 8px; }
.family-row { margin-top:10px; border:1px dashed var(--line); border-radius:14px; padding:10px 14px; display:grid; gap:2px; }
.family-row span { font-weight:900; font-size:18px; color:var(--ink); }
.family-row span small { font-size:12px; color:var(--muted); font-weight:700; }

/* timer: off for a while, back on by itself (under the reward pass) */
.timer-off h3 { display:flex; align-items:center; gap:8px; margin:0 0 4px; font-size:16px; }
.timer-off h3 svg { width:20px; height:20px; color:var(--pri); flex:none; }
.timer-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.timer-chips .btn { flex:1 1 0; min-width:64px; }
.timer-own { margin-top:12px; }
.timer-own label { font-weight:700; font-size:14px; }
.timer-row { display:flex; align-items:center; gap:6px; margin-top:6px; flex-wrap:wrap; }
.timer-row input { width:64px; text-align:center; }
.timer-row span { font-size:14px; color:var(--ink2); }
.timer-row .btn { margin-left:auto; }
@media (max-width:700px) { body.typing nav.tabs { display:none; } }

.report-none { margin-top:12px; padding-top:10px; border-top:1px dashed var(--line); }
.report-none textarea { width:100%; }
.cancel-offer p { margin:10px 0 0; padding:10px 12px; border-radius:12px; background:var(--field); font-size:14px; }
.dev-own { margin-top:10px; padding-top:10px; border-top:1px solid var(--line); } .dev-own .note { margin:0 0 6px; }
.hunter { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:6px 0; font-size:14px; } .hunter b { color:var(--accent); }
.catdex-grid { list-style:none; margin:8px 0 0; padding:0; display:grid; grid-template-columns:repeat(5, 1fr); gap:6px; }
.catdex-grid li { aspect-ratio:1; border-radius:12px; background:var(--field); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.catdex-grid img { width:100%; height:100%; object-fit:contain; }
.catdex-grid .unknown { font-size:20px; font-weight:bold; color:var(--ink2, #888); }
dialog.ask { border:0; border-radius:18px; padding:20px 18px 16px; max-width:min(420px, calc(100vw - 32px)); background:var(--card, #fff); color:var(--fg, #1d1d1f); box-shadow:0 20px 60px rgba(0,0,0,.35); }
dialog.ask::backdrop { background:rgba(10,10,30,.55); }
dialog.ask .ask-t { margin:0 0 16px; font-size:15px; line-height:1.6; white-space:pre-line; }
.first-win h2 svg, .hunter svg { width:22px; height:22px; flex:none; }
.remove-box { border:2px solid #e8a33d; background:#fff8ec; color:#3a2a10; }
.remove-box h2 { display:flex; gap:8px; align-items:center; font-size:17px; color:#9a5a00; }
.remove-box h2 .warn-icon { width:24px; height:24px; flex:none; }
.remove-box .plain { margin:8px 0; }
.remove-box.done { opacity:.6; border-color:var(--line); background:var(--card); }
.remove-check { display:flex; gap:8px; align-items:flex-start; margin:10px 0; font-size:15px; cursor:pointer; }
.remove-check input { width:22px; height:22px; flex:none; margin-top:1px; }
.remove-check.strong { padding:10px 12px; border-radius:12px; background:#fff3df; border:1px solid #e8a33d; color:#3a2a10; font-weight:700; }
@media (prefers-color-scheme: dark) { .remove-box { background:#2a2010; color:#f3e6cc; } .remove-box h2 { color:#ffc56b; } .remove-check.strong { background:#2a2010; color:#f3e6cc; } }
.safe-list { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:10px; }
.safe-list li { display:grid; gap:2px; padding:10px 12px 10px 38px; border-radius:12px; background:var(--field); position:relative; }
.safe-list li::before { content:"✓"; position:absolute; left:12px; top:9px; width:18px; height:18px; border-radius:50%; background:#1f8a4c; color:#fff; font-size:12px; line-height:18px; text-align:center; font-weight:700; }
.safe-list b { font-size:15px; }
.safe-list span { font-size:13.5px; color:var(--muted, #555); line-height:1.6; }

.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.per-day { margin:2px 0 0; font-size:13px; font-weight:700; color:var(--pri-ink); }
/* easy mode: bigger text and only the main cards */
html.easy body { zoom:1.15; }
html.easy #catdex, html.easy #games-card, html.easy #share-card, html.easy #invite-card, html.easy #year-card, html.easy .week, html.easy .note-fold { display:none !important; }
html.easy .note, html.easy small, html.easy .s, html.easy .h4 em, html.easy .sub, html.easy .legal-links { font-size:16px !important; }
html.easy .tab { font-size:12px; }
html.easy .btn { font-size:17px; }
.note-fold summary { cursor:pointer; font-weight:700; font-size:14px; color:var(--ink2); padding:6px 0; }
.big-steps { margin:8px 0 0; padding-left:24px; font-size:17px; line-height:1.8; }
.big-steps li { margin:6px 0; }
.big-plain li { font-size:16px; line-height:1.7; }
@media print { .no-print, .top, .legal-links, footer { display:none !important; } body { background:#fff !important; color:#000 !important; } .card { box-shadow:none !important; border:1px solid #999; } .page { background:#fff !important; } }
.pay-opt { display:flex; gap:10px; align-items:flex-start; padding:12px; border-radius:12px; background:var(--field); margin:8px 0; font-size:15px; cursor:pointer; } .pay-opt input { width:22px; height:22px; flex:none; margin-top:2px; }
.catdex .streak { margin-top:8px; font-size:14px; } .catdex .streak strong { margin-right:6px; }
.chips .chip { display:inline-flex; align-items:center; min-height:44px; padding:6px 14px; border-radius:99px; border:1px solid var(--line); background:var(--card); font:inherit; font-size:14px; color:var(--ink); cursor:pointer; }
.chips .chip[aria-pressed="true"] { background:var(--pri-soft); border-color:var(--pri); color:var(--pri-ink); font-weight:700; }
.share-shape { justify-content:center; }

/* help tab FAQ: kinds as tiles, then that kind's questions */
.faq-tiles { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.faq-tile { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:72px; padding:12px 14px; text-align:left;
  border-radius:16px; border:1px solid var(--line); background:var(--card); color:var(--ink); font:inherit; cursor:pointer; }
.faq-tile b { font-size:15px; font-weight:900; line-height:1.35; }
.faq-tile span { font-size:13px; color:var(--muted); line-height:1.4; }
.faq-tile[aria-expanded="true"] { background:var(--pri-soft); border-color:var(--pri); }
.faq-tile[aria-expanded="true"] b { color:var(--pri-ink); }
.faq-tile:focus-visible { outline:3px solid var(--pri); outline-offset:2px; }
.faq-panel { margin-top:14px; }
.faq-js .faq-panel { display:none; }
.faq-js .faq-panel.on, .faq-js .faq-panel.hit { display:block; }
.faq-js .faq-q.miss { display:none; }
.faq-search { width:100%; margin-top:10px; }
.faq-panel h3 { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:16px; margin:0 0 6px; }
.faq-panel h3 small { font-size:13px; font-weight:700; color:var(--muted); }
.faq-q { border-top:1px solid var(--line); }
.faq-q summary { cursor:pointer; padding:14px 4px; min-height:44px; font-size:15px; font-weight:700; line-height:1.5; }
.faq-q .a { padding:0 4px 14px; font-size:15px; line-height:1.75; }
.faq-more { margin-top:14px; }
@media (max-width:340px) { .faq-tiles { grid-template-columns:1fr; } }
.week-saved .q::before { content:""; position:absolute; inset:-8px; } /* 44px to tap, 28px to see */

/* top page: three reassuring points in a gold frame */
.intro .assure { list-style:none; margin:14px 0 0; padding:10px 12px; border:1.5px solid rgba(246,213,141,.75); border-radius:14px;
  background:rgba(246,213,141,.08); box-shadow:0 0 0 1px rgba(246,213,141,.15) inset; position:relative; z-index:2; }
.intro .assure li { position:relative; padding-left:22px; font-size:14px; font-weight:700; line-height:1.5; color:#fff4d6; }
.intro .assure li + li { margin-top:6px; }
.intro .assure li::before { content:""; position:absolute; left:2px; top:.35em; width:12px; height:7px; border-left:2.5px solid var(--gold2); border-bottom:2.5px solid var(--gold2); transform:rotate(-45deg); }
