/* OneCrew design system */
:root {
  --btn: #1e3a5f; --btn-ink: #ffffff; --brand: #1e3a5f; --brand-2: #2f5584; --brand-ink: #152a45; --brand-soft: #e4ecf6;
  --accent: #1e3a5f; --accent-ink: #152a45; --accent-soft: #e4ecf6; --card-edge: rgba(234, 88, 12, .32); --gold: #d4a03c; --silver: #a8a29e;
  --black: #0c0a09; --black-2: #1c1917; --black-3: #292524;
  --ink: #0c0a09; --ink-2: #44403c; --muted: #6b645e; --line: #f0dccd; --line-2: #e6c9b3;
  --bg: #fdf1e8; --surface: #fffaf6; --surface-2: #fef4ec;
  --good: #0f7a53; --good-soft: #e3f6ee; --warn: #a35d00; --warn-soft: #fff3df; --bad: #c62f3c; --bad-soft: #fde8ea;
  --chart: #1e3a5f; --chart-fill: rgba(30, 58, 95, .14); --chart-grid: #f0dccd;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(23,20,46,.06), 0 8px 24px rgba(23,20,46,.06);
  --shadow-lg: 0 20px 60px rgba(23,20,46,.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --btn: #9ec5f0; --btn-ink: #0c0a09; --brand: #9ec5f0; --brand-2: #bcd7f5; --brand-ink: #bcd7f5; --brand-soft: #16233a;
    --accent: #9ec5f0; --accent-ink: #bcd7f5; --accent-soft: #16233a; --card-edge: rgba(251, 146, 60, .30); --gold: #e8b65a; --silver: #c9cbd1;
    --black: #000000; --black-2: #161412; --black-3: #262321;
    --ink: #f5f5f4; --ink-2: #d6d3d1; --muted: #a8a29e; --line: #2b2826; --line-2: #3d3936;
    --bg: #0c0a09; --surface: #171412; --surface-2: #1c1917;
    --good: #45d19a; --good-soft: #0f2e24; --warn: #f2b25c; --warn-soft: #332410; --bad: #ff7b86; --bad-soft: #3a1519;
    --chart: #9ec5f0; --chart-fill: rgba(158,197,240,.16); --chart-grid: #2b2826;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --btn: #9ec5f0; --btn-ink: #0c0a09; --brand: #9ec5f0; --brand-2: #bcd7f5; --brand-ink: #bcd7f5; --brand-soft: #16233a;
  --accent: #9ec5f0; --accent-ink: #bcd7f5; --accent-soft: #16233a; --card-edge: rgba(251, 146, 60, .30); --gold: #e8b65a; --silver: #c9cbd1;
    --black: #000000; --black-2: #161412; --black-3: #262321;
  --ink: #f5f5f4; --ink-2: #d6d3d1; --muted: #a8a29e; --line: #2b2826; --line-2: #3d3936;
  --bg: #0c0a09; --surface: #171412; --surface-2: #1c1917;
  --good: #45d19a; --good-soft: #0f2e24; --warn: #f2b25c; --warn-soft: #332410; --bad: #ff7b86; --bad-soft: #3a1519;
  --chart: #9ec5f0; --chart-fill: rgba(158,197,240,.16); --chart-grid: #2b2826;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; overflow-x: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
main { min-height: 70vh; padding-bottom: 40px; outline: none; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .78rem; }
.center { text-align: center; } .right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.g6 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 760px) { .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spark-bar { position: sticky; bottom: 16px; } @media (max-width: 760px) { .spark-bar { bottom: 76px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } @media (max-width: 900px) { .g21 { grid-template-columns: minmax(0, 1fr); } }
.hide-sm { } @media (max-width: 760px) { .hide-sm { display: none !important; } }
.only-sm { display: none; } @media (max-width: 760px) { .only-sm { display: initial; } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo { color: var(--gold); } .logo b { color: var(--silver); font-weight: 800; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .94rem; white-space: nowrap; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }
.nav a.on { color: var(--brand-ink); background: var(--brand-soft); }
.topsearch { flex: 1; max-width: 360px; position: relative; }
.topsearch input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: inherit; font-size: .93rem; }
.topsearch::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 1.1rem; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; font-size: 1.15rem; }
.iconbtn:hover { background: var(--brand-soft); text-decoration: none; }
.dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 1060px) { .nav a.opt { display: none; } }
@media (max-width: 760px) { .nav, .topsearch { display: none; } .topbar .wrap { height: 56px; } }

/* tab bar (mobile) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .7rem; color: var(--muted); font-weight: 600; }
  .tabbar a span { font-size: 1.25rem; line-height: 1; }
  .tabbar a.on { color: var(--brand); text-decoration: none; }
  body { padding-bottom: 64px; }
}

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; background: var(--btn); color: var(--btn-ink); white-space: nowrap; transition: transform .06s ease, background .15s; text-decoration: none !important; }
.btn:hover { background: var(--brand-ink); }
:root[data-theme="dark"] .btn:not(.ghost):not(.light):not(.danger):hover, .btn.primary:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn.light { background: var(--brand-soft); color: var(--brand-ink); }
.btn.light:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 30%); }
.btn.accent { background: var(--accent); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); vertical-align: middle; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; flex: none; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 600px) { .f2, .f3 { grid-template-columns: 1fr; } }

/* cards & surfaces */
.card { background: var(--surface); border: 1px solid var(--card-edge, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; } .pad-lg { padding: 28px; }
@media (max-width: 600px) { .pad-lg { padding: 20px; } }
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.notice.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .big { font-size: 2.6rem; margin-bottom: 8px; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 64px 16px 48px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 860px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--ink-2); max-width: 720px; }
.bigsearch { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); max-width: 820px; margin-top: 24px; }
.bigsearch input { border: 0; background: transparent; font-size: 1.05rem; }
.bigsearch input:focus { box-shadow: none; }
.bigsearch input + input { border-left: 1px solid var(--line); border-radius: 0; }
@media (max-width: 640px) { .bigsearch { grid-template-columns: 1fr; } .bigsearch input + input { border-left: 0; border-top: 1px solid var(--line); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.trust span::before { content: "✓ "; color: var(--good); font-weight: 800; }

/* role tiles */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.role { display: block; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s; }
.role:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); text-decoration: none; }
.role .ic { font-size: 1.8rem; }
.role h3 { margin: 8px 0 4px; font-size: 1rem; }
.role p { margin: 0; color: var(--muted); font-size: .85rem; }

/* category tiles */
.cat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .93rem; }
.cat:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow); }
.cat .ic { font-size: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); flex: none; }
.cat small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }

/* covers / avatars — generated, never a broken image */
.cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; display: grid; place-items: center; font-size: 3rem; color: rgba(255,255,255,.95); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c0, .c1, .c2, .c3, .c4, .c5, .c6, .c7 { background: linear-gradient(160deg, #f6dcc8, #fbe9dc); }
.avatar.c0, .avatar.c1, .avatar.c2, .avatar.c3, .avatar.c4, .avatar.c5, .avatar.c6, .avatar.c7 { background: #1c1917; }
.avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; font-size: 1rem; }
.avatar.lg { width: 96px; height: 96px; border-radius: 26px; font-size: 2rem; border: 4px solid var(--surface); }

/* pro card */
.pcard { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .12s, box-shadow .12s; position: relative; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(23,20,46,.12); text-decoration: none; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { margin: 0; font-size: 1.02rem; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .84rem; }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .tags .badge { background: rgba(255,255,255,.92); color: #2b2650; }
.pcard .tags .badge.sp { background: #0c0a09; color: #fff; }
.pcard .deal { font-size: .82rem; color: var(--accent-ink); font-weight: 700; }
.pcard .price { margin-top: auto; padding-top: 6px; font-weight: 700; }
.stars { color: #f5a623; letter-spacing: 1px; }

/* event card */
.ecard { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.ecard:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(23,20,46,.12); text-decoration: none; }
.ecard .cover { aspect-ratio: 2 / 1; }
.datebox { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 4px 10px; text-align: center; line-height: 1.1; box-shadow: var(--shadow); }
.datebox b { display: block; font-size: 1.3rem; }
.datebox small { font-size: .7rem; font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
.ecard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ecard h3 { margin: 0; font-size: 1.05rem; }
.promo { font-size: .84rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; align-self: flex-start; }

/* detail pages */
.banner { height: 220px; border-radius: 0 0 28px 28px; display: grid; place-items: center; font-size: 5rem; color: rgba(255,255,255,.9); }
@media (max-width: 600px) { .banner { height: 150px; font-size: 3.5rem; } }
.profile-head { display: flex; gap: 20px; align-items: flex-end; margin-top: -48px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.pkg { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface-2); }
.pkg .amt { font-size: 1.4rem; font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review:first-child { border-top: 0; }
.reply { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .9rem; }
.sticky { position: sticky; top: 84px; }
.disclaimer { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.bio { white-space: pre-line; }

/* tables / lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scrollx { overflow-x: auto; }

/* checklist */
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: 0; }
.check-item.done .t { text-decoration: line-through; color: var(--muted); }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand-ink); border-color: var(--brand); text-decoration: none; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* stat tiles + charts */
.stat { padding: 16px 18px; }
.stat .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); padding: 6px 10px; border-radius: 8px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; }
.chart .tip.on { opacity: 1; }
.bars .bar { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; font-size: .88rem; margin-bottom: 8px; }
.bars .track { height: 12px; background: var(--chart-grid); border-radius: 4px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; }
.bars .bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* messages */
.inbox { display: grid; grid-template-columns: 320px 1fr; min-height: 60vh; overflow: hidden; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } .inbox.has-thread .threads { display: none; } .inbox:not(.has-thread) .convo { display: none; } }
.threads { border-right: 1px solid var(--line); overflow-y: auto; max-height: 75vh; }
.thread { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.thread:hover, .thread.on { background: var(--brand-soft); text-decoration: none; }
.thread.unread b::after { content: " •"; color: var(--accent); }
.convo { display: flex; flex-direction: column; max-height: 75vh; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.msg time { display: block; font-size: .7rem; opacity: .7; margin-top: 4px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 44px; height: 44px; }

/* Spark AI */
.spark-log { display: flex; flex-direction: column; gap: 14px; }
.bubble { padding: 14px 16px; border-radius: 16px; max-width: 100%; }
.bubble.user { align-self: flex-end; background: var(--btn); color: var(--btn-ink); max-width: 80%; }
.bubble.ai { background: var(--surface); border: 1px solid var(--line); }
.bubble.ai h4 { margin: 12px 0 6px; }
.bubble.ai pre { white-space: pre-wrap; font-family: inherit; background: var(--surface-2); border: 1px solid var(--line); padding: 12px; border-radius: 12px; margin: 8px 0; }
.spark-badge { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--brand-ink); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(15,13,31,.55); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; }
.modal h2 { margin-top: 0; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
@media (max-width: 760px) { .toasts { bottom: 80px; } }
.toast { background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); animation: fade .15s; max-width: 90vw; }
.toast.err { background: var(--bad); color: #fff; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; margin-top: 40px; font-size: .9rem; }
.footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { margin: 6px 0; }
.footer a { color: var(--ink-2); }

/* misc */
.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--line) 0%, var(--surface-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); min-height: 260px; }
@keyframes sh { to { background-position: -200% 0; } }
.feature { padding: 22px; }
.feature .ic { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); margin-bottom: 10px; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: .92rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare .us { background: var(--brand-soft); font-weight: 700; color: var(--brand-ink); }
.price-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.price-card .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price-card ul { padding-left: 18px; margin: 0; flex: 1; } .price-card li { margin: 6px 0; }
.price-card.hl { border: 2px solid var(--brand); }
.legal { max-width: 820px; } .legal h2 { margin-top: 1.6em; font-size: 1.2rem; } .legal p, .legal li { color: var(--ink-2); }
.cta-band { background: var(--black); color: #fff; border-radius: 24px; padding: 36px; }
.cta-band h2 { color: #fff; } .cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn { background: #9ec5f0; color: #0c0a09; }
.steps { counter-reset: s; } .steps li { list-style: none; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.kbd { font-family: ui-monospace, monospace; font-size: .85em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .bars .fill, .progress > i { background: CanvasText; } }

/* printable flyers */
.flyer-wrap { display: grid; place-items: center; padding: 8px 16px 40px; }
.flyer { width: min(100%, 8.5in); aspect-ratio: 8.5 / 11; background: #fff; color: #17142e; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.flyer-top { padding: 7% 8% 6%; color: #fff; text-align: center; }
.flyer-ic { font-size: clamp(2.5rem, 9vw, 5rem); line-height: 1; }
.flyer-kick { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: clamp(.7rem, 1.6vw, .95rem); opacity: .9; margin-top: 12px; }
.flyer-title { font-size: clamp(1.6rem, 6vw, 3.3rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin-top: 8px; }
.flyer-sub { font-size: clamp(.9rem, 2.4vw, 1.3rem); font-weight: 600; margin-top: 10px; opacity: .95; }
.flyer-body { flex: 1; padding: 5% 8%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.flyer-body ul { margin: 0; padding-left: 1.2em; font-size: clamp(.95rem, 2.4vw, 1.35rem); font-weight: 600; }
.flyer-body li { margin: .35em 0; }
.flyer-qr { display: flex; align-items: center; gap: 5%; border: 2px dashed #d6d3e6; border-radius: 16px; padding: 4%; font-size: clamp(.9rem, 2.2vw, 1.25rem); }
.qrbox { width: 34%; flex: none; } .qrbox svg { width: 100%; height: auto; display: block; }
.flyer-url { font-size: .8em; color: #4a4766; word-break: break-all; margin-top: 6px; }
.flyer-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #f7f6fb; font-size: clamp(.75rem, 1.6vw, .95rem); color: #4a4766; }
@media print {
  @page { size: letter; margin: 0; }
  body { background: #fff !important; padding: 0 !important; }
  .topbar, .footer, .tabbar, .toasts, .no-print, #modal-root, .skip { display: none !important; }
  main { padding: 0 !important; min-height: 0; }
  .flyer-wrap { padding: 0; } .flyer { width: 8.5in; height: 11in; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .flyer-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .legal a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .split { display: block; } aside { display: none !important; }
}

/* calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: 4px 0; }
.cal-d { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); background: var(--surface); overflow: hidden; }
.cal-d:hover { border-color: var(--brand); text-decoration: none; }
.cal-d .n { font-size: .8rem; font-weight: 700; }
.cal-d.out { background: var(--surface-2); } .cal-d.out .n { color: var(--muted); font-weight: 500; }
.cal-d.today .n { background: var(--btn); color: var(--btn-ink); border-radius: 99px; padding: 0 7px; align-self: flex-start; }
.cal-d.sel { outline: 2px solid var(--brand); outline-offset: -1px; }
.cal-d.unav { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 6px, var(--bad-soft) 6px, var(--bad-soft) 9px); }
.cal-chip { display: block; font-size: .68rem; line-height: 1.3; padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ink); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
@media (max-width: 600px) { .cal-d { min-height: 54px; } .cal-chip { font-size: 0; height: 5px; padding: 0; border-left-width: 0; background: var(--c); } }
.verify-bar { background: var(--warn-soft); color: var(--warn); font-size: .9rem; padding: 10px 16px; text-align: center; }

/* stars, levels, badges */
.lvl-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; color: var(--ink);
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--line) 0); position: relative; flex: none; }
.lvl-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.lvl-ring span { position: relative; z-index: 1; text-align: center; line-height: 1; }
.lvl-ring small { display: block; font-size: .6rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.bdg { border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; background: var(--surface); }
.bdg .i { font-size: 1.8rem; } .bdg b { display: block; font-size: .85rem; margin-top: 4px; } .bdg small { color: var(--muted); font-size: .72rem; display: block; }
.bdg.locked { opacity: .5; filter: grayscale(1); }
.star-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.star-chip:hover { text-decoration: none; filter: brightness(.97); }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.hub a { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.hub a:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow); }
.hub .ic { font-size: 1.7rem; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.hub b { display: block; } .hub small { color: var(--muted); }

/* spotlight billboard */
.spot { position: relative; overflow: hidden; color: #fff; min-height: 170px; display: flex; align-items: flex-end; border: 0; }
.spot-in { padding: 24px; position: relative; z-index: 1; max-width: 720px; }
.spot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.spot h3 { color: #fff; font-size: 1.5rem; margin: 10px 0 4px; } .spot p { color: rgba(255,255,255,.9); margin: 0 0 12px; }
.spot .btn { background: #fff; color: #0c0a09; }
.spot-nav { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .85rem; }
.spot-nav button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #0c0a09; font-size: 1.1rem; cursor: pointer; }
.leaflet-container { font: inherit; } .leaflet-popup-content a { color: #1e3a5f; font-weight: 700; }
@media (max-width: 900px) { .split[style*="360px"] { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------------- Play ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gcard { display: flex; gap: 12px; padding: 14px; color: var(--ink); align-items: flex-start; transition: transform .15s; }
.gcard:hover { transform: translateY(-2px); }
.gcard .gicon { font-size: 2.1rem; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); flex: none; }
.gcard .gbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gcard small { color: var(--ink-2); }
.spons { color: var(--muted); font-style: italic; }
.kidsnote { border-left: 4px solid var(--brand); }
.playgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 12px; }
@media (max-width: 860px) { .playgrid { grid-template-columns: minmax(0, 1fr); } }
#arena { position: relative; min-height: 340px; }
.groot { position: relative; }
.gintro { text-align: center; padding: 30px 10px; }
.gbig { font-size: 3.6rem; line-height: 1.1; }
.gover { position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); display: grid; place-items: center; border-radius: var(--radius); z-index: 5; text-align: center; padding: 16px; }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.stg { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); border-radius: 10px; padding: 8px 0; font-weight: 700; cursor: pointer; font: inherit; }
.stg.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.stg[aria-disabled="true"] { opacity: .55; }
.lb { margin: 0; padding-left: 20px; } .lb li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; } .lb li.me, tr.me { font-weight: 800; color: var(--btn); }
.ghud, .bstat, .quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; font-size: .92rem; margin-bottom: 10px; color: var(--ink-2); }
.gpad { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gpad:empty { display: none; }
.gpad button { width: 58px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; touch-action: manipulation; user-select: none; }
.gpad button:active { background: var(--btn); color: var(--btn-ink); }
@media (hover: hover) and (pointer: fine) { .gpad { opacity: .75; } }
.g3d { width: 100%; }
.hud3d { position: absolute; top: 10px; left: 12px; right: 12px; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; }
/* quiz & word games */
.quiz { max-width: 640px; margin: 0 auto; }
.quiz-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 14px; } .quiz-bar i { display: block; height: 100%; background: var(--btn); transition: width .1s linear; }
.quiz-q { font-size: 1.35rem; font-weight: 800; text-align: center; margin: 18px 0; line-height: 1.3; overflow-wrap: anywhere; }
.quiz-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .quiz-a { grid-template-columns: 1fr; } }
.quiz-a .btn { justify-content: flex-start; text-align: left; white-space: normal; min-height: 50px; }
.quiz-a .btn b { opacity: .55; margin-right: 6px; }
.quiz-a .btn.ok, .quiz-a .btn.ok:disabled { background: #1e8e4e; color: #fff; border-color: #1e8e4e; opacity: 1; }
.quiz-a .btn.no, .quiz-a .btn.no:disabled { background: #c0392b; color: #fff; border-color: #c0392b; opacity: 1; }
.balloon-sky { height: 150px; position: relative; background: linear-gradient(#bfe3ff, #e8f5ff); border-radius: 14px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 6px; overflow: hidden; }
.balloon { font-size: 3.2rem; position: absolute; bottom: 52px; transition: transform .4s; } .kid { font-size: 2.4rem; }
.kbd { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; } .kbd .btn { min-width: 38px; padding: 6px 0; }
.wsgrid { display: grid; gap: 2px; max-width: 480px; margin: 10px auto; user-select: none; }
.wsgrid button { aspect-ratio: 1; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 800; border-radius: 6px; cursor: pointer; font-size: clamp(.7rem, 2.6vw, 1rem); padding: 0; }
.wsgrid button.sel { background: var(--btn); color: var(--btn-ink); } .wsgrid button.found { background: #2ecc7155; }
.wslist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .wslist span { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-weight: 700; font-size: .85rem; } .wslist .done { text-decoration: line-through; opacity: .5; }
.typetext { font-family: ui-monospace, monospace; font-size: 1.1rem; line-height: 1.7; padding: 12px; background: var(--surface-2); border-radius: 12px; margin-bottom: 10px; }
.typetext .ok { color: #1e8e4e; } .typetext .no { background: #c0392b44; color: #c0392b; } .typetext .cur { border-bottom: 2px solid var(--btn); }
/* brain */
.memgrid { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
.mcard { aspect-ratio: 1; border-radius: 12px; border: 0; background: var(--btn); cursor: pointer; font-size: clamp(1.4rem, 5vw, 2.2rem); }
.mcard span { visibility: hidden; } .mcard.up { background: var(--surface-2); } .mcard.up span { visibility: visible; } .mcard.done { opacity: .5; }
.simon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 300px; margin: 10px auto; }
.simon button { aspect-ratio: 1; border-radius: 22px; border: 0; background: var(--c); opacity: .45; cursor: pointer; transition: opacity .1s, transform .1s; } .simon button.lit { opacity: 1; transform: scale(1.05); }
.g2048 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; background: #bbada0; padding: 8px; border-radius: 12px; touch-action: none; }
.g2048 .t { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: #cdc1b4; font-weight: 900; font-size: clamp(1rem, 5vw, 1.7rem); color: #776e65; }
.g2048 .t2 { background: #eee4da; } .g2048 .t4 { background: #ede0c8; } .g2048 .t8 { background: #f2b179; color: #fff; } .g2048 .t16 { background: #f59563; color: #fff; } .g2048 .t32 { background: #f67c5f; color: #fff; } .g2048 .t64 { background: #f65e3b; color: #fff; }
.g2048 .t128, .g2048 .t256, .g2048 .t512 { background: #edcf72; color: #fff; } .g2048 .t1024, .g2048 .t2048, .g2048 .t4096 { background: #e3ac46; color: #fff; }
.slide, .lights, .mines, .sud { display: grid; gap: 4px; max-width: 380px; margin: 0 auto; }
.slide button { aspect-ratio: 1; border-radius: 10px; border: 0; background: var(--btn); color: var(--btn-ink); font-weight: 900; font-size: 1.4rem; cursor: pointer; } .slide button.blank { background: transparent; }
.lights button { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; } .lights button.on { background: #f7d046; box-shadow: 0 0 18px #f7d046aa; }
.sud { gap: 0; border: 2px solid var(--ink); max-width: 420px; }
.sud button { aspect-ratio: 1; border: 1px solid var(--line-2); background: var(--surface); color: var(--btn); font-weight: 800; font-size: clamp(.9rem, 3.4vw, 1.3rem); cursor: pointer; padding: 0; }
.sud button.giv { color: var(--ink); background: var(--surface-2); cursor: default; } .sud button.sel { outline: 3px solid var(--btn); outline-offset: -3px; } .sud button.br { border-right: 2px solid var(--ink); } .sud button.bb { border-bottom: 2px solid var(--ink); }
.sudpad { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; } .sudpad .btn { min-width: 40px; }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.ttt button { aspect-ratio: 1; font-size: 2.4rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; }
.cfour { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; background: #1e4fa8; padding: 8px; border-radius: 14px; max-width: 440px; margin: 0 auto; }
.cfour button { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; } .cfour button.p1 { background: #f7d046; } .cfour button.p2 { background: #e74c3c; }
.mines { max-width: 460px; gap: 2px; }
.mines button { aspect-ratio: 1; border: 0; border-radius: 4px; background: #8a9bb0; cursor: pointer; font-weight: 900; font-size: clamp(.65rem, 2.4vw, .95rem); padding: 0; color: var(--ink); }
.mines button.o { background: var(--surface-2); } .mines .n1 { color: #2471a3; } .mines .n2 { color: #1e8e4e; } .mines .n3 { color: #c0392b; } .mines .n4 { color: #6c3483; } .mines .n5, .mines .n6 { color: #a04000; }
.react { width: 100%; min-height: 220px; border: 0; border-radius: 16px; font-size: 1.5rem; font-weight: 900; color: #fff; cursor: pointer; background: #2471a3; }
.react.wait { background: #c0392b; } .react.go { background: #1e8e4e; } .react.early { background: #a04000; } .react.done { background: var(--btn); color: var(--btn-ink); }
/* classic */
.ck { display: grid; grid-template-columns: repeat(8, 1fr); max-width: 440px; margin: 0 auto; border: 4px solid #5c3d1e; border-radius: 6px; }
.ck button { aspect-ratio: 1; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; }
.ck .lt { background: #f0d9b5; } .ck .dk { background: #8b5a2b; } .ck .sel { outline: 3px solid #f7d046; outline-offset: -3px; } .ck .tg { box-shadow: inset 0 0 0 4px #2ecc71; }
.ck .pc { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #f7d046; font-size: 1rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }
.ck .p1 { background: #c0392b; } .ck .p2 { background: #222; }
.sol .soltop, .sol .soltab { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sol .soltab { margin-top: 14px; align-items: start; } .sol .slot { min-height: 10px; position: relative; } .sol .waste { display: flex; }
.sol .waste .cd:not(:last-child) { width: 40%; overflow: hidden; }
.sol .col { display: flex; flex-direction: column; } .sol .col .cd:not(:last-child) { height: 22px; overflow: hidden; align-items: flex-start; }
.cd { width: 100%; aspect-ratio: 5 / 7; height: auto; border-radius: 6px; border: 1px solid #999; background: #fff; font-weight: 800; font-size: clamp(.6rem, 2.4vw, .95rem); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 2px; cursor: pointer; line-height: 1.1; }
.cd small { font-size: 1.1em; } .cd.rd { color: #c0392b; } .cd.bk { color: #111; } .cd.fd { background: repeating-linear-gradient(45deg, #8a5a12, #8a5a12 4px, #a8742a 4px, #a8742a 8px); }
.cd.empty { background: transparent; border: 2px dashed var(--line-2); color: var(--muted); justify-content: center; } .cd[data-sel] { outline: 3px solid #2ecc71; transform: translateY(-3px); }
.domline { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 50px; padding: 8px; background: #1e6b3a; border-radius: 12px; }
.domhand { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dom { display: inline-flex; flex-direction: column; border: 2px solid #333; border-radius: 6px; background: #fffdf5; color: #111; font-weight: 900; padding: 0; min-width: 30px; cursor: pointer; }
.dom span { padding: 2px 8px; } .dom span + span { border-top: 2px solid #333; } .domline .dom { flex-direction: row; cursor: default; } .domline .dom span + span { border-top: 0; border-left: 2px solid #333; }
.dom.ok { box-shadow: 0 0 0 3px #2ecc71; }
@media (prefers-reduced-motion: reduce) { .gcard:hover { transform: none; } .balloon { transition: none; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* ---------------- Businesses & support ---------------- */
.wrap.narrow { max-width: 820px; }
.blogo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.5rem; flex: none; }
.blogo.sm { width: 26px; height: 26px; border-radius: 8px; display: inline-block; vertical-align: middle; }
.bcard { display: flex; gap: 12px; padding: 14px; color: var(--ink); align-items: center; }
.bcard > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .bcard small { color: var(--ink-2); }
.bhead { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.loc .btn.sm { font-size: .8rem; }
.staffmsg { border-left: 4px solid var(--btn); }
.linkcard { font: inherit; color: var(--ink); cursor: pointer; border: 1px solid var(--line); }
.badge.ok { background: #1e8e4e22; color: #1e8e4e; } .badge.muted { opacity: .7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sharegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .sharegrid .btn { justify-content: center; }
.leaflet-container { isolation: isolate; } /* keep map controls under menus & dialogs */
/* home: 4-part search + "what you can do" tiles */
.bigsearch:has(select) { grid-template-columns: auto 1.6fr 1fr auto; }
.bigsearch select { border: 0; background: var(--surface-2); border-radius: 12px; font-weight: 700; font-size: .95rem; color: var(--ink); }
@media (max-width: 640px) { .bigsearch:has(select) { grid-template-columns: 1fr 1fr; } .bigsearch:has(select) input[name="q"] { grid-column: 1 / -1; order: -1; } .bigsearch:has(select) input + input { border-left: 0; } .bigsearch:has(select) .btn { grid-column: 1 / -1; } }
.dothis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 1100px; }
@media (max-width: 1000px) { .dothis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dothis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dothis a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .12s, border-color .12s; }
.dothis a:hover { transform: translateY(-2px); border-color: var(--btn); }
.dothis .ic { font-size: 1.5rem; } .dothis b { font-size: .95rem; } .dothis small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .dothis a:hover { transform: none; } }
/* appointments */
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-height: 34px; }
.slots .chip { cursor: pointer; font: inherit; }
.apptbox h3 { font-size: 1.05rem; }

/* security */
.sec-bar.sec-critical { background: #c0392b; color: #fff; } .sec-bar.sec-warning { background: #f1c40f33; } .sec-bar a, .sec-bar .linkish { color: inherit; font-weight: 700; }
.sec-critical { border-left: 4px solid #c0392b; } .sec-warning { border-left: 4px solid #e67e22; }
.badge.bad { background: #c0392b22; color: #c0392b; }

/* getting-started guide & profession details */
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.guide-steps a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); height: 100%; }
.guide-steps li.ok a b { text-decoration: line-through; text-decoration-color: var(--good); }
.detwrap:empty { display: none; }

/* Home: live business count (top right of the hero) + "Just joined" strip */
.hero .wrap { position: relative; }
.joined-count { position: absolute; top: 18px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 0; padding: 8px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.15; box-shadow: 0 6px 20px rgba(0,0,0,.06); backdrop-filter: blur(6px); }
.joined-count b { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.joined-count span { font-size: .78rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.joined-count:hover { border-color: var(--accent); }
@media (max-width: 760px) { .joined-count { position: static; flex-direction: row; align-items: baseline; gap: 8px; width: fit-content; margin-bottom: 12px; padding: 6px 12px; } .joined-count b { font-size: 1.2rem; } }
.joined { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 1100px; min-width: 0; }
.joined-h { flex: none; font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.joined-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.joined-row::-webkit-scrollbar { display: none; }
.joined-chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .86rem; line-height: 1.2; }
.joined-chip b { display: block; font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.joined-chip small { display: block; color: var(--ink-2); font-size: .74rem; white-space: nowrap; }
.joined-chip:hover { border-color: var(--accent); }
.joined-chip.new { border-color: var(--accent); animation: joinedIn .6s ease-out; }
@keyframes joinedIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .joined-chip.new { animation: none; } }
@media (max-width: 560px) { .joined { flex-direction: column; align-items: flex-start; gap: 6px; } .joined-row { max-width: 100%; } }
.held-note { border-left: 4px solid var(--warn); }

/* Photo uploader */
.uploader { display: grid; gap: 8px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.up-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.up-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-grid figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.up-x, .up-first { position: absolute; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .8rem; line-height: 26px; padding: 0; }
.up-x { right: 4px; } .up-first { left: 4px; }
.up-grid.pick label { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; }
.up-grid.pick label:has(input:checked) { border-color: var(--accent); }
.up-grid.pick input { position: absolute; top: 6px; left: 6px; }
.up-grid.pick img { width: 100%; height: 100%; object-fit: cover; }
.blurred { filter: blur(24px); }
.badge.vbadge { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); font-weight: 800; text-decoration: none; }
.found-band { margin: 18px 0 0; font-size: .9rem; color: var(--ink-2); }
.found-band a { font-weight: 700; }
.founding-band { border-left: 4px solid var(--good); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-2); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.langbtn { font-weight: 800; font-size: .78rem; letter-spacing: .03em; }

/* Header fit: logo never squeezes; less-used icons give way before the search box does */
.logo { flex-shrink: 0; }
.topsearch { min-width: 180px; }
@media (max-width: 1500px) { .hide-md { display: none !important; } }
@media (max-width: 1300px) { .topsearch { display: none; } }
@media (max-width: 980px) { .nav a { padding: 8px 7px; } .topbar .wrap { gap: 10px; } .star-chip, .topright .btn.light { display: none !important; } }
@media (max-width: 440px) { .topright { gap: 6px; } .topright .btn.sm { padding: 6px 10px; font-size: .82rem; } .logo { font-size: 1.05rem; } .logo img { width: 26px; height: 26px; } }
.up-grid > p { grid-column: 1 / -1; }
/* Accessibility: links inside sentences are underlined so they don't rely on color alone (WCAG 1.4.1) */
p a:not(.btn):not(.badge), li a:not(.btn):not(.badge), .pad > a:not(.btn):not(.badge):not(.notice), .disclaimer a, .notice a:not(.btn), .tiny a:not(.btn), .small a:not(.btn):not(.badge), .footer p a, .hint a { text-decoration: underline; text-underline-offset: 2px; }
.footer ul a, .nav a, .tabbar a, .dothis a, .tabs a, .cat, .role, .pcard, .ecard, .joined-chip, .joined-count { text-decoration: none; }

/* My Planner */
.pl-list { list-style: none; margin: 10px 0 0; padding: 0; min-height: 24px; }
.pl-list.compact .pl-item { padding: 6px 0; } .pl-list.compact .pl-actions [data-up], .pl-list.compact .pl-actions [data-down] { display: none; }
.pl-list.over, .pl-day.over { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 12px; }
.pl-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0 10px 10px; border-top: 1px solid var(--line); border-left: 4px solid var(--c, var(--line-2)); cursor: grab; }
.pl-item:first-child { border-top: 0; } .pl-item.dragging { opacity: .5; } .pl-item.done .pl-title { text-decoration: line-through; color: var(--muted); }
.pl-item.hl { background: color-mix(in srgb, var(--gold) 10%, transparent); border-radius: 0 10px 10px 0; }
.pl-item input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; flex: none; } .pl-body { flex: 1; min-width: 0; }
.pl-actions { display: flex; gap: 2px; flex: none; } .iconbtn.sm { width: 28px; height: 28px; font-size: .8rem; }
.pl-progress { height: 6px; border-radius: 999px; background: var(--line); margin-top: 10px; overflow: hidden; } .pl-progress span { display: block; height: 100%; background: var(--good); transition: width .3s; }
.pl-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; } .pl-day.today { border-color: var(--accent); } .pl-day > a { display: block; margin-bottom: 4px; }
.pl-list.compact .pl-body .small, .pl-list.compact .pl-body .tiny:not(:first-of-type) { display: none; } .pl-list.compact .pl-item { padding: 6px 0 6px 8px; }
.pl-nav { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; } .pl-nav input[type=date] { width: auto; min-width: 0; flex: 1; max-width: 190px; }
@media (max-width: 560px) { .pl-nav { width: 100%; margin-top: 8px; } .pl-nav input[type=date] { max-width: none; } }
.pl-swatch { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid var(--line-2); cursor: pointer; display: grid; place-items: center; font-size: .6rem; }
.pl-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .pl-swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }
.pl-cd { display: flex; gap: 8px; margin: 8px 0 4px; } .pl-cd div { flex: 1; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 6px 2px; } .pl-cd b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; } .pl-cd small { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.pl-habits { display: grid; gap: 8px; margin-top: 8px; } .pl-habit { border-left: 4px solid var(--c); padding-left: 8px; }
.pl-week7 { display: flex; gap: 4px; margin-top: 4px; } .pl-week7 button { flex: 1; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .75rem; cursor: pointer; } .pl-week7 button.on { background: var(--c); color: #fff; border-color: var(--c); }
.pl-big { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; } .pl-keys .btn { padding: 8px 0; }
@media print { .pl-tools, .pl-actions, .tabs, #pl-add, #pl-export, .pl-progress, input[type=checkbox] { display: none !important; } .pl-item { break-inside: avoid; } }

/* Global search dropdown */
.ts-res { position: absolute; top: calc(100% + 6px); left: 0; width: min(440px, 92vw); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.14); z-index: 60; padding: 6px; }
.ts-g { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px 4px; }
.ts-res a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; } .ts-res a small { display: block; color: var(--muted); font-size: .78rem; }
.ts-res a:hover, .ts-res a.on { background: var(--brand-soft); } .ts-res a.ts-all { font-weight: 700; color: var(--brand-ink); border-top: 1px solid var(--line); margin-top: 4px; }

.nl-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 16px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); position: relative; }
.nl-form .check { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .nl-form { grid-template-columns: 1fr; } .nl-form .row { flex-wrap: wrap !important; } }

[hidden] { display: none !important; }
.launch-card { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); }
.launch-card .grid a { text-decoration: none; }

/* ===== iTDEH Black, Peach & Navy ===== */
.topbar { background: color-mix(in srgb, var(--black) 94%, transparent); border-bottom: 1px solid var(--black-3); color-scheme: dark; }
.topbar .nav a, .topbar .iconbtn, .topbar .langbtn { color: #e7e5e4; }
.topbar .nav a:hover, .topbar .nav a.on { background: var(--black-3); color: #9ec5f0; }
.topbar .btn:not(.ghost):not(.light) { background: #9ec5f0; color: #0c0a09; }
.topbar .btn.ghost { color: #fff; border-color: #44403c; } .topbar .btn.ghost:hover { border-color: #9ec5f0; }
.topbar .btn.light, .topbar .star-chip { background: var(--black-3); color: #bcd7f5; }
.topbar .topsearch input { background: var(--black-2); border-color: #44403c; color: #f5f5f4; } .topbar .topsearch input::placeholder { color: #a8a29e; }
.topbar .ts-res { color-scheme: light; }
.topbar .logo b { color: #d6d3d1; } .footer .logo b { color: var(--muted); }
.hero { background: var(--black); border-bottom: 0; color: #f5f5f4; color-scheme: dark; }
.hero h1 { color: #fff; } .hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #9ec5f0; }
.hero .lead, .hero .trust, .hero .found-band { color: #d6d3d1; } .hero .found-band a, .hero a.linkish { color: #9ec5f0; }
.hero .badge { background: var(--black-2); color: #bcd7f5; border-color: var(--black-3); }
.hero .dothis a { background: var(--black-2); border-color: var(--black-3); color: #fff; } .hero .dothis a:hover { border-color: #9ec5f0; } .hero .dothis small { color: #a8a29e; }
.hero .joined-count { background: var(--black-2); border-color: var(--black-3); color: #fff; } .hero .joined-count span { color: #d6d3d1; }
.hero .joined-count b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #9ec5f0; }
.hero .joined-h { color: #d6d3d1; } .hero .joined-chip { background: var(--black-2); border-color: var(--black-3); color: #fff; } .hero .joined-chip small { color: #a8a29e; }
.hero .bigsearch { color-scheme: light; color: #0c0a09; } .hero .bigsearch .btn { background: #9ec5f0; color: #0c0a09; }
.hero .btn.ghost { color: #fff; border-color: #44403c; } .hero .muted, .hero .small.muted { color: #a8a29e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c0, :root:not([data-theme="light"]) .c1, :root:not([data-theme="light"]) .c2, :root:not([data-theme="light"]) .c3, :root:not([data-theme="light"]) .c4, :root:not([data-theme="light"]) .c5, :root:not([data-theme="light"]) .c6, :root:not([data-theme="light"]) .c7 { background: linear-gradient(160deg, #2a211b, #1f1a16); } }
:root[data-theme="dark"] .c0, :root[data-theme="dark"] .c1, :root[data-theme="dark"] .c2, :root[data-theme="dark"] .c3, :root[data-theme="dark"] .c4, :root[data-theme="dark"] .c5, :root[data-theme="dark"] .c6, :root[data-theme="dark"] .c7 { background: linear-gradient(160deg, #2a211b, #1f1a16); }
.avatar.c0, .avatar.c1, .avatar.c2, .avatar.c3, .avatar.c4, .avatar.c5, .avatar.c6, .avatar.c7 { background: #1c1917; }
.theme-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); }
.theme-switch button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
@media (max-width: 440px) { .topright a.btn.ghost[href='#/login'] { display: none; } }
.avatar { box-shadow: 0 0 0 1px var(--card-edge, transparent); }
.fdate { position: relative; display: block; min-width: 0; margin: 0; }
.fdate input[type=date] { width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; min-height: 44px; }
.fdate span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-weight: 500; white-space: nowrap; }
.fdate:not(.unset) span, .fdate:focus-within span { display: none; }
.fdate.unset input[type=date]:not(:focus) { color: transparent; }
.fchecks .check { align-items: center; } .fchecks .check input { margin-top: 0; }
.choice-set { border: 0; padding: 0; margin: 4px 0 16px; min-width: 0; } .choice-set legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--surface); margin: 0; }
.choice input { margin-top: 3px; flex: none; } .choice small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.adm { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.adm.free { background: #dcfce7; color: #14532d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .adm.free { background: #12301d; color: #86efac; } }
:root[data-theme="dark"] .adm.free { background: #12301d; color: #86efac; }
.pl-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pl-stat { padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pl-stat b { font-size: 1.5rem; line-height: 1.1; } .pl-stat small { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .pl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pl-stat:nth-child(n+4) { display: none; } }
.pl-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; text-align: center; }
.pl-mini .h { font-size: .7rem; font-weight: 800; color: var(--muted); padding: 2px 0; }
.pl-mini a { display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; border-radius: 8px; color: var(--ink); font-weight: 700; font-size: .85rem; text-decoration: none; min-height: 34px; }
.pl-mini a:hover { background: var(--surface-2); } .pl-mini a.out { color: var(--muted); opacity: .55; }
.pl-mini a.now { outline: 2px solid var(--brand); outline-offset: -2px; } .pl-mini a.sel { background: var(--btn); color: var(--btn-ink); }
.pl-mini i { display: flex; gap: 2px; height: 6px; margin-top: 2px; } .pl-mini em, em.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.qa-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-bottom: 4px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--card-edge, var(--line)); background: var(--surface); color: var(--ink); font-weight: 700; text-align: center; text-decoration: none; }
.qa:hover { border-color: var(--brand); text-decoration: none; } .qa span { font-size: 1.3rem; }
.qa:first-child { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.citybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 -8px; padding: 10px 14px; border: 1px solid var(--card-edge, var(--line)); border-radius: 14px; background: var(--surface); }
.citybar input { width: 170px; padding: 8px 12px; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.faq details { padding: 14px 16px; } .faq summary { font-weight: 700; cursor: pointer; } .faq p { margin: 8px 0 0; color: var(--ink-2); }
.gscore { display: grid; gap: 2px; justify-items: center; margin: 8px auto 10px; padding: 12px 18px; border: 1px solid var(--card-edge, var(--line)); border-radius: 14px; background: var(--surface); max-width: 320px; }
.gscore > b { font-size: 2.4rem; line-height: 1; color: var(--brand); } .gscore small { color: var(--muted); font-weight: 700; } .gscore span { font-size: .9rem; }
.gbadges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.gtop { max-width: 340px; margin: 0 auto 12px; text-align: left; } .gtop .lb { margin: 6px 0 0; }
.gtop li { display: flex; justify-content: space-between; gap: 8px; } .gtop li.me { font-weight: 800; color: var(--brand); }
.gover { overflow-y: auto; }
.gnotice { margin: 6px 0 12px; }
#arena:fullscreen { background: var(--bg); padding: 16px; overflow: auto; }
#arena.gfull { position: fixed; inset: 0; z-index: 90; border-radius: 0; overflow: auto; background: var(--bg); }
.gfull-x { position: sticky; top: 0; margin-bottom: 8px; z-index: 2; }
/* ---- new Play games ---- */
.chs .cpc { font-size: clamp(1.4rem, 7vw, 2.4rem); line-height: 1; } .chs .cpc.w { color: #fff; text-shadow: 0 0 2px #000, 0 1px 2px #000; } .chs .cpc.b { color: #111; }
.chs .lastmv { box-shadow: inset 0 0 0 3px rgba(59,130,246,.65); }
.oth { background: #1b6b3a; border-color: #0f3d21; gap: 1px; } .oth .og { background: #1f7a43; } .oth .tg::after { content: ''; width: 22%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.35); box-shadow: none; }
.oth .tg { box-shadow: none; } .disc { width: 80%; height: 80%; border-radius: 50%; display: block; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); } .disc.d1 { background: #111; } .disc.d2 { background: #f5f5f4; }
.mnc { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: auto auto; gap: 8px; max-width: 520px; margin: 0 auto; background: #6b4423; padding: 10px; border-radius: 22px; }
.mnc .mstore { grid-row: 1 / 3; display: grid; place-items: center; background: #4a2e16; border-radius: 30px; color: #fde68a; font-weight: 800; font-size: 1.4rem; }
.mnc .mstore.me { grid-column: 3; grid-row: 1 / 3; } .mnc .mrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; grid-column: 2; }
.mpit { aspect-ratio: 1; border-radius: 50%; background: #4a2e16; color: #fde68a; font-weight: 800; font-size: 1.1rem; border: 0; display: grid; place-items: center; }
button.mpit { cursor: pointer; background: #5c3a1c; box-shadow: inset 0 0 0 2px #fbbf24; } button.mpit:disabled { box-shadow: none; opacity: .7; cursor: default; }
.ludo .lgrid { display: grid; grid-template-columns: repeat(8, 1fr); max-width: 440px; margin: 0 auto; position: relative; gap: 2px; }
.ludo .lc { aspect-ratio: 1; border-radius: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px; }
.ludo .lc.tr { background: var(--surface-2); border: 1px solid var(--line-2); } .ludo .lc.safe::before { content: '⭐'; font-size: .6rem; position: absolute; opacity: .5; }
.ludo .lc.s1 { background: #fecaca; } .ludo .lc.s2 { background: #bfdbfe; }
.ludo .lmid { position: absolute; inset: 13% 13%; display: grid; grid-template-rows: auto 1fr 1fr auto; gap: 6px; padding: 6px; }
.lbase, .llane { display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; padding: 4px; min-height: 34px; }
.lbase.p1, .llane.p1 { background: #fee2e2; } .lbase.p2, .llane.p2 { background: #dbeafe; } .llane span { width: 22%; height: 30px; border-radius: 6px; background: rgba(255,255,255,.7); display: grid; place-items: center; }
.llane b { font-size: .75rem; color: #111; white-space: nowrap; } .lbase small { color: #555; }
.tok { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: .7rem; display: inline-grid; place-items: center; padding: 0; cursor: pointer; font-style: normal; }
.tok.p1 { background: #dc2626; } .tok.p2 { background: #2563eb; cursor: default; }
.die { font-size: 2.4rem; line-height: 1; }
.snl .sgrid { display: grid; grid-template-columns: repeat(10, 1fr); max-width: 460px; margin: 0 auto; border: 3px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.snl .sc { aspect-ratio: 1; position: relative; font-size: .6rem; padding: 2px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.snl .sc:nth-child(odd) { background: var(--surface-2); } .snl .sc.lad { background: #dcfce7; } .snl .sc.snk { background: #fee2e2; }
.snl .sc small { color: var(--muted); } .snl .sc em { font-style: normal; font-size: .62rem; color: #111; } .snl .tok { width: 16px; height: 16px; position: absolute; bottom: 2px; font-size: .5rem; } .snl .tok.p2 { right: 2px; }
.ctable { display: grid; gap: 14px; justify-items: center; } .cmid { display: grid; gap: 8px; justify-items: center; text-align: center; }
.chand { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.plcard { width: 52px; height: 74px; border-radius: 8px; border: 1px solid #ccc; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; cursor: pointer; padding: 0; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.plcard span { font-size: 1.3rem; line-height: 1; } .plcard.red { color: #c81e1e; } .plcard.dim { opacity: .45; } .plcard:disabled { cursor: default; } .redt { color: #c81e1e; }
.pback-row { display: flex; gap: 3px; align-items: center; } .pback { width: 26px; height: 38px; border-radius: 5px; background: repeating-linear-gradient(45deg, #1e3a5f, #1e3a5f 4px, #2f5584 4px, #2f5584 8px); border: 1px solid #fff; }
.suitpick { text-align: center; } .suitpick .btn { font-size: 1.4rem; margin: 3px; }
.whack { display: grid; gap: 10px; max-width: 420px; margin: 10px auto; }
.whack button { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 70%, #3b2a1a 55%, #5c4330 56%); font-size: 2.4rem; cursor: pointer; touch-action: manipulation; }
.whack button.up { background: radial-gradient(circle at 50% 70%, #3b2a1a 55%, #8b6a4a 56%); }
.radar { display: grid; gap: 3px; max-width: 420px; margin: 8px auto; }
.radar button { aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 6px; background: #d6c7a1; cursor: pointer; font-size: 1.1rem; padding: 0; } .radar button:disabled { background: #a8956a; cursor: default; }
.echo { display: grid; gap: 12px; max-width: 360px; margin: 12px auto; }
.ep { aspect-ratio: 1.3; border-radius: 18px; border: 0; font-size: 1.6rem; color: rgba(255,255,255,.8); cursor: pointer; opacity: .75; transition: transform .1s, opacity .1s; touch-action: manipulation; }
.ep.on { opacity: 1; transform: scale(1.06); box-shadow: 0 0 18px rgba(255,255,255,.6); }
.ep0 { background: #ef4444; } .ep1 { background: #f59e0b; } .ep2 { background: #22c55e; } .ep3 { background: #3b82f6; } .ep4 { background: #a855f7; } .ep5 { background: #ec4899; }
.beat { display: grid; gap: 6px; max-width: 520px; margin: 8px auto; overflow-x: auto; }
.brow { display: grid; grid-template-columns: 80px repeat(8, 1fr); gap: 4px; align-items: center; } .brow b { font-size: .8rem; }
.bstep { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; padding: 0; min-width: 26px; }
.bstep:nth-of-type(4n+1) { border-color: var(--muted); } .bstep.on { background: var(--btn); border-color: var(--btn); } .bstep.now { outline: 2px solid #f59e0b; } .bstep:disabled { cursor: default; }
.hours { border-collapse: collapse; font-size: .9rem; } .hours td { padding: 1px 10px 1px 0; } .hours tr.today { font-weight: 800; color: var(--brand); }
.hours-ed { margin: 8px 0 12px; } .hours-ed summary { cursor: pointer; }
.hero.photo { background: linear-gradient(180deg, rgba(12,10,9,.78), rgba(12,10,9,.9)), url(/img/hero-crowd.webp) center 30% / cover no-repeat, var(--black); }
@media (max-width: 700px) { .hero.photo { background-image: linear-gradient(180deg, rgba(12,10,9,.8), rgba(12,10,9,.92)), url(/img/hero-crowd-sm.webp); } }
.hero-cta { gap: 10px; margin: 14px 0 4px; } .hero .hero-cta .btn.ghost { color: #fff; border-color: #78716c; }
.trend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.trend a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.trend .tn { font-size: 1.6rem; font-weight: 800; color: var(--muted); min-width: 28px; } .trend .tb { flex: 1; display: grid; } .trend small { color: var(--muted); }
.typechips .chip.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.trend a, .trend a:hover, .trend a * { text-decoration: none; }
.fl { display: grid; gap: 4px; margin: 0; min-width: 0; } .fl > span { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.fhelp { margin: 0 0 10px; font-size: .88rem; color: var(--ink-2); }
/* friendly labels */
.lemo { margin-right: 6px; font-size: .95em; } .fl > span .lemo { margin-right: 4px; }
.fhelp { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.autofl { width: 100%; } .row > .autofl { width: auto; flex: 1 1 160px; }
.trend a b, .trend a small, .trend a span { text-decoration: none !important; }
.no-ai-writer #ai-bio, .no-ai-writer #ai-tag, .no-ai-writer #ai-desc { display: none !important; }
.ai-disclose { margin-top: 10px; border-top: 1px dashed var(--line-2); padding-top: 6px; }

/* ===== Planner Studio ===== */
.st-hero { background: radial-gradient(800px 300px at 90% -20%, rgba(158,197,240,.25), transparent 60%), linear-gradient(135deg, #0c0a09, #12223a 60%, #1e3a5f); color: #f5f5f4; padding: 34px 0 26px; color-scheme: dark; }
.st-hero h1 { color: #fff; margin: 6px 0 4px; } .st-hero p { color: #d6d3d1; margin: 0; }
.st-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #9ec5f0; }
.st-btn { background: #9ec5f0 !important; color: #0c0a09 !important; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.st-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; backdrop-filter: blur(6px); }
.st-tile span { font-size: 1.2rem; } .st-tile b { font-size: 1.6rem; color: #fff; } .st-tile small { color: #a8a29e; }
.st-events { display: grid; gap: 12px; } .st-ev { display: flex; gap: 16px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.st-ev:hover { border-color: var(--brand); text-decoration: none; } .st-ev-b { flex: 1; min-width: 0; display: grid; gap: 4px; } .st-ev-b small { color: var(--muted); }
.st-count { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; } .st-count.hot { background: #fee2e2; color: #991b1b; }
.st-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--ink-2); }
.st-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; } .st-bar i { display: block; height: 100%; background: var(--brand); } .st-bar i.over { background: #dc2626; }
.st-ring .bg { fill: none; stroke: var(--line); stroke-width: 6; } .st-ring .fg { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .6s; }
.st-ring text { font-size: 13px; font-weight: 800; fill: var(--ink); }
.st-dl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .st-dl a { display: grid; padding: 8px 10px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 8px; color: var(--ink); text-decoration: none; }
.st-dl small { color: var(--muted); } .st-dl li.late a { border-color: #dc2626; }
.st-rs input { width: 100%; min-width: 0; padding: 6px 8px; }
.st-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 10px; }
.st-table { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); } .st-table textarea { min-height: 70px; font-size: .85rem; }
.st-round { position: relative; width: 110px; height: 110px; margin: 4px auto 6px; border-radius: 50%; background: var(--brand-soft); display: grid; place-content: center; text-align: center; border: 2px solid var(--brand); }
.st-round b { font-size: .8rem; } .st-round small { font-size: .7rem; color: var(--muted); }
.st-round i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); left: calc(50% - 6px); top: calc(50% - 6px); transform: rotate(calc(var(--k) * 360deg / var(--n))) translateY(-62px); }
.st-round i.on { background: var(--brand); border-color: var(--brand); }
.st-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--brand); } .st-timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0 8px 14px; position: relative; }
.st-timeline li::before { content: ''; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.st-poll { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-opt { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; font: inherit; color: var(--ink); text-align: left; }
button.st-opt { cursor: pointer; } .st-opt.on { border-color: var(--brand); font-weight: 700; } .st-opt i { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); z-index: 0; } .st-opt span, .st-opt em { position: relative; z-index: 1; font-style: normal; font-size: .85rem; }
.upsell { border: 1px dashed var(--brand); }
@media print { .st-hero { background: none; color: #000; } }

/* ===== Business Suite hub ===== */
.hub-ai { position: sticky; top: 80px; border-top: 4px solid var(--hc, var(--brand)); }
.hub-log { max-height: 340px; overflow-y: auto; display: grid; gap: 8px; padding: 4px 0; }
.hub-msg { padding: 8px 12px; border-radius: 14px; font-size: .9rem; max-width: 90%; line-height: 1.45; }
.hub-msg.bot { background: var(--surface-2); border: 1px solid var(--line); justify-self: start; } .hub-msg.me { background: var(--hc, var(--btn)); color: #fff; justify-self: end; }
.nchip { cursor: pointer; } .nchip input { width: 14px; height: 14px; margin-right: 4px; } .nchip:has(input:checked) { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.fy { display: grid; } .fy-bar { display: flex; justify-content: space-between; gap: 8px; padding: 4px 4px 0; } .fy-ask { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 4px; }

/* ===== welcome, tour, tips ===== */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.welcome-ov { position: fixed; inset: 0; z-index: 250; background: rgba(12,10,9,.55); display: grid; place-items: center; padding: 16px; }
.welcome-card { max-width: 460px; background: var(--surface); border-radius: 22px; padding: 28px 24px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); border-top: 5px solid var(--brand); animation: wl-pop .5s cubic-bezier(.2,1.4,.4,1); }
.welcome-burst { font-size: 3rem; } .welcome-card h2 { margin: 6px 0 10px; }
.welcome-acts { display: grid; gap: 8px; margin-top: 14px; }
@keyframes wl-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .welcome-card { animation: none; } }
.tip-card { position: fixed; left: 16px; bottom: 90px; z-index: 120; max-width: 320px; background: var(--surface); border: 1px solid var(--card-edge, var(--line)); border-radius: 16px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); animation: wl-pop .4s ease-out; }
.tip-card p { margin: 4px 0 8px; } .tip-x { position: absolute; top: 6px; right: 6px; }
@media (min-width: 900px) { .tip-card { bottom: 20px; } }

/* guided tour: one overlay, a moving spotlight and a gliding card */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(12,10,9,.55); outline: 3px solid #9ec5f0; pointer-events: none; transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease; }
.tour-hole.off { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; outline: 0; }
.tour-card { position: fixed; z-index: 1; width: min(340px, calc(100vw - 16px)); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); border: 1px solid var(--line); transition: top .3s ease, left .3s ease; }
.tour-card.center { top: 30%; left: 50%; transform: translateX(-50%); }
.tour-card h3 { margin: 4px 0; } .tour-card p { margin: 0 0 10px; font-size: .92rem; line-height: 1.45; }
.tour-dots { display: flex; gap: 4px; margin: 0 0 10px; } .tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); } .tour-dots i.on { background: var(--brand); width: 16px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; } }
.fhelp { grid-column: 1 / -1; flex-basis: 100%; }
.xcats { max-height: 210px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 10px; background: var(--surface); }
.xcats label { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-weight: 500; } .xcats input { flex: none; }
.notice.good { background: #dcfce7; color: #14532d; border-color: transparent; }
/* Account menu + owner button in the top bar */
.owner-btn { background: #1e3a5f; color: #fff; border-color: transparent; white-space: nowrap; }
.owner-btn:hover { filter: brightness(1.15); color: #fff; }
.umenu { position: relative; }
.umenu-btn { border: 1.5px solid var(--line-2); }
.umenu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 250px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 8px; display: flex; flex-direction: column; }
.umenu-pop[hidden] { display: none; }
.umenu-pop a, .umenu-pop button { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: none; }
.umenu-pop a:hover, .umenu-pop button:hover, .umenu-pop a:focus-visible, .umenu-pop button:focus-visible { background: var(--brand-soft); text-decoration: none; }
.umenu-pop hr { border: 0; border-top: 1px solid var(--line, #d9dee8); margin: 6px 4px; }
.umenu-who { display: flex; flex-direction: column; padding: 8px 12px 10px; overflow: hidden; }
.umenu-who span { overflow: hidden; text-overflow: ellipsis; }
.umenu-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #667); padding: 4px 12px; font-weight: 800; }
.umenu-pop .umenu-out { color: var(--bad); }
@media (max-width: 380px) { .topright { gap: 4px; } .topright #theme { display: none; } }
/* Box-style links (cards, tiles, step lists) are not underlined; only links inside sentences are. */
.iconbtn, .iconbtn:hover, .guide-steps a, .guide-steps a:hover, a.card, a.card:hover, .tile a, .tile a:hover { text-decoration: none !important; }
.guide-steps a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.guide-steps li.ok a b { text-decoration: line-through !important; text-decoration-color: var(--good) !important; }
/* Toolkits */
.tool-sec { margin: 18px 0; } .tool-sec h2 { font-size: 1.15rem; margin: 0 0 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; align-items: start; }
.tool summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; list-style: none; }
.tool summary::-webkit-details-marker { display: none; }
.tool summary .badge { align-self: flex-start; }
.tool[open] summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 10px; }
.tool-fields .field label { font-size: .8rem; }
.tool-list { list-style: none; padding: 0; margin: 0; } .tool-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.tool-log input { min-width: 90px; padding: 6px 8px; font-size: .85rem; }
.tool-log .warn-row td { background: var(--warn-soft); }
@media (max-width: 420px) { .tool-grid { grid-template-columns: 1fr; } }
.tool { min-width: 0; } .tool-fields { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
/* ---------- Pro Studio ---------- */
.tool.sig { border-color: var(--brand); }
.sig-badge { background: var(--brand, #1e3a5f); color: #fff; }
.tool[open].wide-open { grid-column: 1 / -1; }
.tool-fields .field.wide { grid-column: span 2; }
@media (max-width: 520px) { .tool-fields .field.wide { grid-column: auto; } }
.tool-filter { margin-bottom: 8px; } .tool-filter .chips { gap: 6px; }
.pro-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 8px; margin: 10px 0; }
.pro-kpis > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pro-kpis span { font-size: .78rem; color: var(--muted); } .pro-kpis b { font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.pro-flag { margin: 6px 0; } .pro-flag.bad { background: var(--bad-soft); border-color: var(--bad); } .pro-flag.warn { background: var(--warn-soft); } .pro-flag.good { background: var(--good-soft); }
.pro-chart-wrap { margin: 10px 0; }
.pro-chart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; } .ch-zero { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 3; }
.ch-ax { fill: var(--muted); font-size: 11px; font-family: var(--font); } .ch-q { fill: var(--muted); font-size: 12px; font-weight: 700; font-family: var(--font); }
.ch-line { fill: none; stroke-width: 2.5; } .ch-dot { stroke: var(--surface); stroke-width: 1.5; }
.ch-line.c1, .ch-dot.c1, .ch-bar.c1, .ch-k.c1 { stroke: #1e3a5f; fill: #1e3a5f; } .ch-line.c1 { fill: none; }
.ch-line.c2, .ch-dot.c2, .ch-bar.c2, .ch-k.c2 { stroke: #d9822b; fill: #d9822b; } .ch-line.c2 { fill: none; }
.ch-line.c3, .ch-dot.c3, .ch-bar.c3, .ch-k.c3 { stroke: #2f8f6b; fill: #2f8f6b; } .ch-line.c3 { fill: none; }
.ch-dot.c4, .ch-bar.c4, .ch-k.c4 { fill: #8a5cc2; stroke: #8a5cc2; }
.ch-bar { stroke: none !important; } .ch-area.c1 { fill: rgba(30, 58, 95, .28); stroke: #1e3a5f; stroke-width: 2; }
:root[data-theme="dark"] .ch-line.c1, :root[data-theme="dark"] .ch-dot.c1, :root[data-theme="dark"] .ch-bar.c1, :root[data-theme="dark"] .ch-k.c1 { stroke: #8fb4e3; fill: #8fb4e3; }
:root[data-theme="dark"] .ch-line.c1 { fill: none; } :root[data-theme="dark"] .ch-area.c1 { fill: rgba(143, 180, 227, .3); stroke: #8fb4e3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch-line.c1, :root:not([data-theme="light"]) .ch-dot.c1, :root:not([data-theme="light"]) .ch-bar.c1, :root:not([data-theme="light"]) .ch-k.c1 { stroke: #8fb4e3; fill: #8fb4e3; } :root:not([data-theme="light"]) .ch-line.c1 { fill: none; } :root:not([data-theme="light"]) .ch-area.c1 { fill: rgba(143, 180, 227, .3); stroke: #8fb4e3; } }
.ch-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 4px; } .ch-k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pro-gauge { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; height: 34px; overflow: hidden; margin: 10px 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.pro-gauge > div { position: absolute; left: 0; top: 0; bottom: 0; opacity: .3; } .pro-gauge .ok { background: var(--good); } .pro-gauge .mid { background: var(--warn); } .pro-gauge .low { background: var(--bad); }
.pro-gauge b, .pro-gauge span { position: relative; } .pro-gauge span { font-size: .85rem; color: var(--muted); }
.pro-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; } .pro-swatches div { display: flex; flex-direction: column; align-items: center; gap: 4px; } .pro-swatches span { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); }
.contrast-prev { padding: 16px; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0; }
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; } .swot > div { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); } .swot ul { margin: 6px 0 0; padding-left: 18px; }
.swot-S { background: var(--good-soft); } .swot-W { background: var(--warn-soft); } .swot-O { background: var(--brand-soft); } .swot-T { background: var(--bad-soft); }
.smart-goal { border-left: 4px solid var(--brand); margin: 10px 0; padding: 10px 14px; background: var(--surface-2); border-radius: 0 12px 12px 0; }
.pnl { stroke: var(--line-2); } .pnl.legA { fill: rgba(30, 58, 95, .18); } .pnl.legB { fill: rgba(217, 130, 43, .2); } .pnl.empty { fill: var(--surface-2); } .pnl-t { font-size: 10px; fill: var(--ink); font-family: var(--font); } .pnl-bus { fill: var(--muted); }
.fp-room { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 2; } .fp-stage { fill: rgba(217, 130, 43, .2); } .fp-t { fill: rgba(30, 58, 95, .35); stroke: #1e3a5f; }
.cam-wheel { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 10px 0; } .cam-wheel span { text-align: center; font-size: .72rem; padding: 6px 0; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.cam-wheel .cam-now { background: var(--brand); color: #fff; font-weight: 800; } .cam-wheel .cam-ok { background: var(--good-soft); border-color: var(--good); font-weight: 700; }
@media (max-width: 520px) { .cam-wheel { grid-template-columns: repeat(6, 1fr); } }
.pro-list { margin: 8px 0; }
/* documents */
.doc-wrap { overflow-x: auto; } .doc { background: #fff; color: #111; border: 1px solid #ddd; border-radius: 10px; padding: 28px; max-width: 780px; font-size: 14px; }
.doc h2 { margin: 0; color: #111; } .doc h3 { margin: 16px 0 6px; color: #1e3a5f; } .doc .muted { color: #555; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 3px solid #1e3a5f; padding-bottom: 12px; margin-bottom: 14px; flex-wrap: wrap; } .doc-meta { text-align: right; } .doc-meta h3 { margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.doc-tbl { width: 100%; border-collapse: collapse; margin: 10px 0; } .doc-tbl th, .doc-tbl td { border-bottom: 1px solid #e5e5e5; padding: 7px 8px; text-align: left; color: #111; } .doc-tbl th { background: #f3f5f8; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.doc-tbl td:last-child, .doc-tbl th:last-child { text-align: right; } .doc-sum td { border: 0; padding: 3px 8px; } .doc-total td { font-weight: 800; font-size: 16px; border-top: 2px solid #111; }
.doc-terms { font-size: 12px; color: #444; margin-top: 12px; } .doc-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; } .doc-pkgs > div { border: 1px solid #ddd; border-radius: 10px; padding: 12px; position: relative; } .doc-pkgs .hl { border: 2px solid #1e3a5f; } .doc-badge { position: absolute; top: -10px; left: 10px; background: #1e3a5f; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; } .doc-pkgs h4 { margin: 4px 0; color: #111; }
#print-root { display: none; }
@media print { body.print-mode > *:not(#print-root) { display: none !important; } body.print-mode #print-root { display: block; } body.print-mode { background: #fff !important; } #print-root .doc { border: 0; max-width: none; padding: 0; } #print-root { color: #111; font-family: var(--font); } }
/* live apps */
.app-big { font: inherit; font-weight: 800; font-size: 1.2rem; border: 0; border-radius: 16px; padding: 16px 28px; background: var(--brand, #1e3a5f); color: #fff; cursor: pointer; min-width: 140px; display: block; margin: 8px auto; }
.app-big.on { background: var(--bad); } .app-big:active { transform: scale(.98); }
.app-readout { text-align: center; margin: 8px 0; } .app-readout b { display: block; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; } .app-readout span { color: var(--muted); font-size: .85rem; }
.app-face { text-align: center; border-radius: 18px; padding: 18px; margin: 10px 0; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app-face b { font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; } .app-face.work { background: var(--good-soft); } .app-face.rest { background: var(--warn-soft); } .app-face.done { background: var(--brand-soft); }
.app-face.stage b { font-size: clamp(3rem, 14vw, 8rem); } .app-face.stage.green { background: #157347; color: #fff; } .app-face.stage.amber { background: #d9822b; color: #111; } .app-face.stage.red, .app-face.stage.over { background: #b42318; color: #fff; }
.app-face:fullscreen { justify-content: center; } .app-face:fullscreen b { font-size: 30vw; }
.mt-dots { display: flex; gap: 10px; justify-content: center; margin: 10px 0; } .mt-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); } .mt-dots i.on { background: var(--brand); border-color: var(--brand); } .mt-dots i:first-child.on { background: #d9822b; border-color: #d9822b; }
.jb { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; margin: 10px 0; } .jb-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 120px; } .jb-col h4 { margin: 0 0 6px; font-size: .85rem; }
.jb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
/* Brand colors: 8 distinct, white-text-safe (all ≥ 4.5:1) for business logos, flyers and color pickers */
.blogo.c0, .flyer-top.c0, .bsw.c0 { background: #1e3a5f; } .blogo.c1, .flyer-top.c1, .bsw.c1 { background: #b5523b; }
.blogo.c2, .flyer-top.c2, .bsw.c2 { background: #2f6b4f; } .blogo.c3, .flyer-top.c3, .bsw.c3 { background: #6b3f6e; }
.blogo.c4, .flyer-top.c4, .bsw.c4 { background: #1f6f78; } .blogo.c5, .flyer-top.c5, .bsw.c5 { background: #8a5a10; }
.blogo.c6, .flyer-top.c6, .bsw.c6 { background: #475569; } .blogo.c7, .flyer-top.c7, .bsw.c7 { background: #a8435a; }
:root[data-theme="dark"] .blogo.c0, :root[data-theme="dark"] .flyer-top.c0, :root[data-theme="dark"] .bsw.c0 { background: #2d5487; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blogo.c0, :root:not([data-theme="light"]) .flyer-top.c0, :root:not([data-theme="light"]) .bsw.c0 { background: #2d5487; } }
.bsw-pick { display: flex; flex-wrap: wrap; gap: 8px; } .bsw-pick label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); cursor: pointer; }
.bsw { width: 34px; height: 34px; border-radius: 10px; display: block; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line-2); }
.bsw-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; } .bsw-pick input:checked + .bsw { border-color: var(--surface); box-shadow: 0 0 0 3px var(--ink); }
.bsw-pick input:focus-visible + .bsw { outline: 3px solid var(--brand); outline-offset: 2px; }
/* Sponsor banner on game pages: rotating names, always labeled "Sponsored by" */
.spb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 8px 0 4px; min-height: 42px; }
.spb-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.spb-track { position: relative; flex: 1; min-width: 160px; min-height: 22px; }
.spb-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spb-slide.on { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.spb-tag { color: var(--muted); font-size: .85rem; } .spb-dots { display: flex; gap: 4px; } .spb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); } .spb-dots i.on { background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .spb-slide { transition: none; transform: none; } }
/* Sponsor a game */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sp-side { position: sticky; top: 84px; } @media (max-width: 900px) { .sp-grid { grid-template-columns: 1fr; } .sp-side { position: static; } }
.sp-games fieldset { border: 0; padding: 0; margin: 0 0 12px; } .sp-games legend { font-weight: 800; margin-bottom: 6px; }
.sp-games fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; } .sp-games legend { grid-column: 1 / -1; }
.sp-g { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); cursor: pointer; }
.sp-g:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); } .sp-g.full { opacity: .55; cursor: not-allowed; }
.sp-g span { display: flex; flex-direction: column; flex: 1; font-size: .9rem; } .sp-g small { color: var(--muted); font-size: .75rem; } .sp-g em { font-style: normal; font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.sp-grp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; } .sp-grp > summary { cursor: pointer; padding: 4px 0; }
.sp-grp[open] > summary { margin-bottom: 8px; } .sp-games .sp-grp fieldset { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.badge.bp { background: var(--good-soft); color: var(--good); border-color: transparent; } .vrev { font-size: .7rem; margin-left: 6px; vertical-align: 1px; }
/* ---------- Hitter ---------- */
.hit { position: relative; user-select: none; -webkit-user-select: none; }
.hit-cv { width: 100%; display: block; border-radius: 16px; touch-action: none; outline: none; box-shadow: 0 10px 30px rgba(20, 18, 40, .18); }
.hit-cv:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hit-ov { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(20, 18, 40, .38); backdrop-filter: blur(3px); border-radius: 16px; overflow: auto; }
.hit-ov[hidden] { display: none; }
.hit-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 22px 20px; width: min(520px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: hitPop .35s cubic-bezier(.2, 1.4, .5, 1); max-height: 100%; overflow: auto; }
.hit-card.wide { width: min(720px, 100%); } .hit-card h2 { margin: 6px 0 8px; }
@keyframes hitPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.hit-title { font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 900; letter-spacing: .04em; margin: 0; background: linear-gradient(90deg, #ff6b9d, #ffb347, #ffd54a, #6bd6ff, #b28dff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }
.hit-tag { margin: 0 0 12px; color: var(--muted); font-weight: 700; }
.hit-logo { display: flex; justify-content: center; gap: 4px; font-size: 1.6rem; } .hit-logo span { animation: hitBob 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes hitBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(8deg); } }
.hit-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; } .hit-btns .btn.lg { min-width: 220px; }
.hit-mode { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; margin: 4px 0; } .hit-mode button { border: 0; background: none; padding: 7px 16px; border-radius: 99px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink-2); } .hit-mode button.on { background: var(--brand); color: #fff; }
.hit-stats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; } .hit-stats span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: .78rem; font-weight: 700; }
.hit-list { text-align: left; padding-left: 4px; list-style: none; margin: 0 0 10px; } .hit-list li { margin: 6px 0; font-size: .92rem; }
.hit-big { font-size: 3.4rem; animation: hitBob 1.4s ease-in-out infinite; }
.hit-stars { font-size: 2.6rem; letter-spacing: 6px; } .hit-stars span { color: var(--line-2); display: inline-block; } .hit-stars span.on { color: #ffc93c; animation: hitStar .5s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 2px 0 #d99a00; }
@keyframes hitStar { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.hit-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 10px 0; } .hit-score div { background: var(--surface-2); border-radius: 12px; padding: 8px; } .hit-score small { display: block; color: var(--muted); font-size: .72rem; } .hit-score b { font-size: 1.15rem; }
.hit-unlock { background: linear-gradient(90deg, #fff1c9, #ffd9e8); color: #3a2a00; border-radius: 12px; padding: 8px; font-weight: 700; animation: hitPop .5s .3s both; }
.hit-tries { display: flex; gap: 6px; justify-content: center; margin: 8px 0; } .hit-tries i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); } .hit-tries i.used { background: #ff9a3c; border-color: #e07b1a; } .hit-tries.big i { width: 22px; height: 22px; } .hit-tries.big i.used { background: #ff5d5d; border-color: #c83b3b; }
.hit-map { display: grid; gap: 8px; text-align: left; margin: 10px 0; } .hit-world { border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; } .hit-world.locked { opacity: .55; } .hit-world > div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hit-node { width: 50px; height: 50px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface-2); font: inherit; font-weight: 900; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--ink); }
.hit-node small { font-size: .6rem; color: #e0a800; margin-top: 2px; } .hit-node.done { border-color: #7cc98a; background: var(--good-soft); } .hit-node.cur { border-color: var(--brand); animation: hitPulse 1.2s infinite; } .hit-node:disabled { cursor: not-allowed; }
@keyframes hitPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 95, .45); } 50% { box-shadow: 0 0 0 7px rgba(30, 58, 95, 0); } }
.hit-card.celebrate { background: linear-gradient(160deg, var(--surface), #fff3cf); }
@media (prefers-reduced-motion: reduce) { .hit-logo span, .hit-big, .hit-node.cur, .hit-card, .hit-stars span.on, .hit-unlock { animation: none !important; } }
.hit-node i { font-style: normal; font-size: .62rem; position: absolute; transform: translate(14px, -14px); } .hit-node { position: relative; }

/* ---- Play: likes, sharing, packs, pass & play, challenges ---- */
.gwrap { position: relative; display: flex; }
.gwrap > .gcard { flex: 1; padding-bottom: 40px; }
.gact { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 4px; align-items: center; }
.gbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 1rem; cursor: pointer; padding: 0; }
.gbtn:hover, .gbtn:focus-visible { border-color: var(--brand); }
.gbtn.on { border-color: #e03131; }
.gtag { font-size: .65rem; font-weight: 800; letter-spacing: .06em; background: #e03131; color: #fff; padding: 3px 7px; border-radius: 999px; }
.gsel { position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--surface); border-radius: 8px; padding: 4px; line-height: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.gsel input { width: 22px; height: 22px; accent-color: var(--brand); }
.selecting .gcard { outline: 2px dashed var(--line-2); outline-offset: -2px; }
.selecting .gwrap:has(input:checked) .gcard { outline: 3px solid var(--brand); }
.gtools { gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gselbar { position: sticky; bottom: 76px; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); margin: 12px 0; }
.gselbar input { flex: 1; min-width: 140px; }
.chbar, .ppbar { margin: 8px 0; border-left: 4px solid var(--gold); }
.pp-p { display: inline-block; margin: 0 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.pp-p.on { background: var(--brand); color: var(--btn-ink); }
.pp-setup input { display: block; width: min(280px, 100%); margin: 6px auto; }
/* ---- Learn & Smash ---- */
.lsm-recap { position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); border-radius: 16px; padding: 18px; overflow: auto; z-index: 4; }
.lsm-recap ul { padding-left: 18px; }
.lsm-recap li { margin: 8px 0; }
.lsm-chip { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); padding: 1px 8px; border-radius: 999px; margin: 2px; font-size: .85rem; }
/* ---- Live rooms ---- */
.lv-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.lv-code { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 8px 12px; }
.lv-code b { font-size: 1.6rem; letter-spacing: .18em; font-family: ui-monospace, Menlo, monospace; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; margin-top: 12px; }
@media (max-width: 760px) { .lv-grid { grid-template-columns: 1fr; } }
.lv-main { min-height: 320px; text-align: center; }
.lv-big { font-size: 3.4rem; }
.lv-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.lv-q { font-size: clamp(1.2rem, 3.5vw, 1.8rem); margin: 18px 0; }
.lv-ans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.lv-ans.one { grid-template-columns: 1fr; }
.lv-opt { background: var(--c); color: #fff; border: 0; border-radius: 14px; padding: 16px 14px; font-size: 1.05rem; font-weight: 700; text-align: left; cursor: pointer; min-height: 60px; }
.lv-opt:disabled { cursor: default; }
.lv-opt.mine { outline: 4px solid var(--ink); outline-offset: 2px; }
.lv-opt.no { opacity: .35; }
.lv-opt.ok { box-shadow: 0 0 0 4px #40c057; }
.lv-opt small { float: right; background: rgba(0,0,0,.25); border-radius: 999px; padding: 1px 8px; }
.lv-res { font-size: 1.2rem; font-weight: 800; margin-top: 16px; }
.lv-card { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--btn-ink); border-radius: 20px; padding: clamp(24px, 6vw, 48px); margin: 16px auto; max-width: 560px; font-size: clamp(1.2rem, 3.4vw, 1.7rem); font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.lv-tl { display: grid; gap: 4px; text-align: left; }
.lv-bars { display: grid; gap: 8px; text-align: left; max-width: 520px; margin: 0 auto; }
.lv-bar { display: grid; grid-template-columns: 110px 1fr 30px; gap: 8px; align-items: center; }
.lv-bar i { display: block; height: 18px; border-radius: 9px; background: var(--brand); }
.lv-pod { display: flex; justify-content: center; gap: 10px; align-items: flex-end; margin: 14px 0; }
.lv-pod > div { display: grid; gap: 2px; background: var(--surface-2); border-radius: 14px 14px 4px 4px; padding: 10px 14px; min-width: 90px; }
.lv-pod span { font-size: 2rem; } .lv-pod-1 { padding-top: 26px !important; order: 2; } .lv-pod-2 { order: 1; } .lv-pod-3 { order: 3; }
.lv-setup textarea { width: 100%; }
.gselbar { position: fixed; left: 16px; right: 16px; bottom: 84px; max-width: 860px; margin: 0 auto; flex-wrap: nowrap; }
.gselbar > *, .gselbar .field { margin: 0 !important; }
.gselbar .field, .gselbar input { flex: 1 1 160px; min-width: 0; }
.gselbar .field > label { display: none; }
@media (min-width: 900px) { .gselbar { bottom: 20px; } }
@media (max-width: 600px) { .gselbar { flex-wrap: wrap; } }
.gselbar > span:first-child { white-space: nowrap; }

.gmodes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin: 4px 0 10px; flex-wrap: wrap; justify-content: center; }
.gmode { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.gmode.on { background: var(--brand); color: var(--btn-ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.bd { position: relative; user-select: none; -webkit-user-select: none; }
.bd-cv { width: 100%; display: block; border-radius: 16px; touch-action: none; outline: none; box-shadow: 0 10px 30px rgba(20, 18, 40, .25); }
.phand { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.wart .pback.big { display: inline-block; width: 56px; height: 80px; border-radius: 8px; }
.wart .phand .plcard:not([disabled]):hover { transform: translateY(-6px); }
/* ---- Game-show quiz ---- */
.qshow { max-width: 720px; }
.qs-stage { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--q2) 85%, #fff 15%), var(--q1)); color: #fff; border-radius: 22px; padding: clamp(14px, 3vw, 24px); box-shadow: 0 14px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.25); position: relative; overflow: hidden; }
.qs-stage::before { content: ""; position: absolute; inset: -40% -10% auto; height: 70%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); pointer-events: none; }
.qs-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qs-pill { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem; }
.qs-streak.hot { background: linear-gradient(90deg, #f76707, #e03131); animation: qsPulse 1s ease-in-out infinite; }
@keyframes qsPulse { 50% { transform: scale(1.06); } }
.qs-timer { height: 10px; border-radius: 99px; background: rgba(0,0,0,.28); margin: 14px 0 4px; overflow: hidden; }
.qs-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--qa), #fff); border-radius: 99px; transition: width .1s linear; }
.qs-timer i.low { background: linear-gradient(90deg, #ff6b6b, #ffa8a8); }
.qs-q { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.25); font-size: clamp(1.2rem, 3.2vw, 1.6rem); }
.qs-opt { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.95); color: #1c1a2e; border: 0; border-radius: 16px; padding: 14px 16px; min-height: 58px; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .12s, box-shadow .12s, opacity .2s; animation: qsIn .35s both; animation-delay: var(--d); }
@keyframes qsIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.qs-opt b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--q1); color: #fff; flex: none; }
.qs-opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.qs-opt:disabled { cursor: default; }
.qs-opt.ok { background: #2f9e44; color: #fff; animation: qsOk .45s; } .qs-opt.ok b { background: rgba(0,0,0,.25); }
.qs-opt.no { background: #e03131; color: #fff; animation: qsNo .4s; } .qs-opt.no b { background: rgba(0,0,0,.25); }
.qs-opt.gone { opacity: .2; }
@keyframes qsOk { 40% { transform: scale(1.05); } } @keyframes qsNo { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qs-pop { position: absolute; right: 12px; top: -6px; background: var(--qa); color: #1c1a2e; font-weight: 900; padding: 2px 8px; border-radius: 999px; animation: qsPop 1s forwards; }
@keyframes qsPop { to { transform: translateY(-26px); opacity: 0; } }
.qs-life { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.qs-lb { background: rgba(0,0,0,.25); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
.qs-lb:disabled { opacity: .35; cursor: default; }
.qs-t { margin-left: auto; font-weight: 900; font-size: 1.1rem; }
.qs-prog { background: rgba(0,0,0,.25); margin: 12px 0 0; } .qs-prog i { background: var(--qa); }
@media (prefers-reduced-motion: reduce) { .qs-opt, .qs-streak.hot, .qs-pop { animation: none; } }

/* Tic-Tac-Toe vanishing, Reflex Rush, Word Scramble tiles */
.ttt button.fade { opacity: .38; outline: 2px dashed var(--line-2); }
.ttt button.win { background: #d3f9d8; border-color: #2f9e44; animation: qsOk .5s; }
.rr-grid { display: grid; gap: 8px; max-width: 420px; margin: 8px auto; }
.rr-cell { aspect-ratio: 1; border-radius: 16px; border: 0; background: linear-gradient(145deg, #2b2d52, #1c1d3a); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); font-size: 1.8rem; color: #fff; cursor: pointer; transition: transform .08s; touch-action: manipulation; }
.rr-cell.on { animation: rrIn .12s ease-out; } .rr-cell.go { background: radial-gradient(circle, #69db7c, #2b8a3e); box-shadow: 0 0 18px #69db7c; }
.rr-cell.gold { background: radial-gradient(circle, #ffe066, #f08c00); box-shadow: 0 0 22px #ffd43b; } .rr-cell.red { background: radial-gradient(circle, #ff8787, #c92a2a); }
.rr-cell.pop { transform: scale(.9); font-size: .85rem; font-weight: 900; } .rr-cell.boom { animation: qsNo .3s; }
@keyframes rrIn { from { transform: scale(.6); } }
.scr-cells { display: flex; gap: 6px; justify-content: center; margin: 16px 0 10px; flex-wrap: wrap; }
.scr-cell { width: 42px; height: 50px; border-radius: 10px; border: 2px dashed var(--line-2); display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; }
.scr-cell:not(:empty) { border-style: solid; border-color: var(--brand); background: var(--brand-soft); } .scr-cell.hint { border-color: var(--gold); }
.scr-cells.ok .scr-cell { background: #d3f9d8; border-color: #2f9e44; } .scr-cells.shake { animation: qsNo .35s; }
.scr-tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.scr-tile { width: 48px; height: 54px; border-radius: 12px; border: 0; background: linear-gradient(180deg, #ffd8a8, #f59f00); color: #3b2300; font-size: 1.5rem; font-weight: 900; box-shadow: 0 4px 0 #c77700; cursor: pointer; }
.scr-tile:disabled { opacity: .25; box-shadow: none; } .scr-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #c77700; }
/* ---- Play doors + Learning Center ---- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin: 14px 0; }
.door { display: flex; gap: 14px; align-items: center; padding: 18px; color: var(--ink); text-decoration: none; border-radius: 20px; transition: transform .15s; position: relative; overflow: hidden; }
.door:hover { transform: translateY(-2px); }
.door b { display: block; font-size: 1.15rem; } .door small { color: var(--ink-2); }
.door-ic { font-size: 2.4rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; flex: none; }
.door-kids .door-ic { background: #ffe3ec; } .door-learn .door-ic { background: #e7f5ff; } .door-team .door-ic { background: #ebfbee; }
.kidsnote + .door { margin-top: 12px; }
.levels { margin-top: 14px; }
.lvcard { display: grid; gap: 4px; padding: 20px; color: var(--ink); text-decoration: none; border-top: 6px solid var(--lv); border-radius: 18px; transition: transform .15s; }
.lvcard:hover { transform: translateY(-2px); }
.lvcard b { font-size: 1.15rem; } .lvcard small { color: var(--ink-2); }
.lv-ic { font-size: 2.6rem; } .lv-kid { color: #2b8a3e; font-weight: 700; }
.lvhead { display: flex; gap: 16px; align-items: center; margin: 8px 0 12px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--lv) 14%, var(--surface)); border-left: 6px solid var(--lv); }

.bstat .turn { color: var(--brand); text-decoration: underline 3px; text-underline-offset: 4px; }
.qs-opt.emo { justify-content: center; font-size: 2.6rem; min-height: 86px; } .qs-opt.emo b { display: none; }
/* Card table polish */
.plcard { position: relative; width: 58px; height: 82px; border-radius: 9px; border: 1px solid #d6d1cc; background: linear-gradient(180deg, #fff, #f6f3ef); box-shadow: 0 3px 8px rgba(0,0,0,.18); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; color: #1c1a2e; font-weight: 800; transition: transform .12s, box-shadow .12s; }
.plcard b { font-size: 1.25rem; line-height: 1; } .plcard span { font-size: 1.4rem; line-height: 1.1; }
.plcard.red { color: #c92a2a; }
.plcard:not([disabled]):hover { transform: translateY(-6px); box-shadow: 0 8px 16px rgba(0,0,0,.22); cursor: pointer; }
.ctable { background: radial-gradient(120% 100% at 50% 0%, #2f7d4f, #1b4d31); border-radius: 18px; padding: 16px; color: #fff; box-shadow: inset 0 0 40px rgba(0,0,0,.35); }
.ctable .muted, .ctable small { color: rgba(255,255,255,.8); }
.bd-intro { background: linear-gradient(160deg, #0b0b1e, #2b1660); color: #fff; border-radius: 18px; padding: clamp(16px, 4vw, 28px); }
.bd-intro h2 { margin-top: 0; } .bd-intro ol { padding-left: 20px; line-height: 1.6; } .bd-intro kbd { background: #fff; color: #1c1a2e; border-radius: 5px; padding: 1px 6px; font-weight: 800; }
.bd-msg { background: rgba(255,255,255,.12); padding: 8px 12px; border-radius: 10px; }
.bd-intro .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.lv-brand { font-size: 1.1rem; }
.plans { margin-top: 12px; } .plan { display: flex; flex-direction: column; gap: 4px; } .plan h3 { margin: 4px 0 0; } .plan ul { padding-left: 18px; flex: 1; }
.plan-ic { font-size: 2.2rem; } .plan-price { font-size: 1.4rem; font-weight: 900; margin: 0; color: var(--brand-ink); }
.cls { padding: 8px 0; border-bottom: 1px solid var(--line); } .cls-code { font-size: 1.05rem; letter-spacing: .12em; font-weight: 800; }
.ncg { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 4px; } .ncg label { display: flex; gap: 6px; align-items: center; }
/* ---- iTDEH Learn (kid-safe shell) ---- */
.learn-mode { --learn1: #ffd8e8; }
.learn-mode #topbar { background: linear-gradient(90deg, #5b2a86, #2b6cb0); }
.learn-logo em { font-style: normal; font-weight: 800; background: #ffd43b; color: #3b2300; border-radius: 8px; padding: 1px 8px; margin-left: 6px; font-size: .8em; }
.learn-nav a { font-weight: 700; }
.learn-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, #fff3bf, #ffdeeb 55%, #d0ebff); border-radius: 24px; padding: clamp(18px, 4vw, 34px); color: #1c1a2e; }
.learn-hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 5vw, 2.8rem); } .learn-hero-art { font-size: clamp(2.4rem, 8vw, 4.4rem); text-align: center; letter-spacing: .1em; }
@media (max-width: 640px) { .learn-hero { grid-template-columns: 1fr; } }
.learn-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.learn-band { display: grid; place-items: center; padding: 18px 8px; text-decoration: none; color: var(--ink); border-radius: 18px; text-align: center; }
.learn-band b { font-size: 1.6rem; } .learn-band small { color: var(--ink-2); }
.learn-band:nth-child(6n+1) { background: #ffe3ec; } .learn-band:nth-child(6n+2) { background: #fff3bf; } .learn-band:nth-child(6n+3) { background: #d3f9d8; } .learn-band:nth-child(6n+4) { background: #d0ebff; } .learn-band:nth-child(6n+5) { background: #e5dbff; } .learn-band:nth-child(6n) { background: #ffe8cc; }
.learn-foot { padding: 18px 0; }
.learn-home h2 { margin: 26px 0 10px; }
