/* Two worlds: a dark, cinematic shell for browsing (black, charcoal, gold), and a calm, light-by-default
   reader whose colors come from the Eye Comfort settings (set as variables on <body> by js/comfort.js). */
:root {
  --bg: #0B0B0C;
  --bg-2: #111113;
  --surface: #17171A;
  --surface-2: #1F1F23;
  --ink: #F2EFE8;
  --muted: #A8A49C;
  --rule: #2B2B30;
  --sodium: #E8B04B;          /* gold: the main action and "you are here" */
  --gold-2: #F4CD80;
  --on-sodium: #1A1206;
  --glow: rgba(232, 176, 75, 0.28);
  --hl-line: #E8B04B;
  --danger: #E8836F;
  --ok: #5FBF8A;
  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-ui: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --read-font: "Literata", Georgia, serif;
  --read-size: 1.1875rem;
  --read-lh: 1.7;
  --read-width: 38em;
  --col: 46rem;
  --wide: 82rem;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-ui); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
svg { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: var(--sodium); color: var(--on-sodium); padding: .5rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.gold { color: var(--sodium); }

/* ---------- top bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(11,11,12,.96), rgba(11,11,12,.82));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-top: env(safe-area-inset-top, 0px);
}
.appbar-inner { max-width: var(--wide); margin: 0 auto; padding: .65rem 24px; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.brand .mono { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; color: var(--sodium); letter-spacing: -.04em; padding-right: .1rem; border-right: 1px solid color-mix(in srgb, var(--sodium) 45%, transparent); padding: 0 .55rem 0 0; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; white-space: nowrap; }
.brand-text small { font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: .15rem; align-items: center; }
.nav a { text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--muted); padding: .45rem .7rem; position: relative; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--sodium); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -.15rem; height: 2px; border-radius: 2px; background: var(--sodium); }
.top-search { margin-left: auto; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 0 .35rem 0 1rem; width: min(22rem, 30vw); transition: border-color .2s; }
.top-search:focus-within { border-color: var(--sodium); }
.top-search input { border: 0; background: none; padding: .55rem 0; width: 100%; min-width: 0; font-size: .875rem; outline: none; }
.top-search button { border: 0; background: none; color: var(--muted); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; }
.icon-btn { display: none; color: var(--ink); width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; }
.who { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; font-size: .875rem; padding: .2rem .25rem; border-radius: 999px; }
.who .avatar.sm { width: 2.1rem; height: 2.1rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--sodium) 70%, transparent); }

/* bottom tab bar (phones) */
.tabbar { display: none; }

/* ---------- page column ---------- */
.page { max-width: var(--col); margin: 0 auto; padding: 1.75rem 24px 5rem; outline: none; }
.page.wide { max-width: var(--wide); }
.page.reader-page { padding: 0 0 11rem; max-width: none; }
h1.title, .page-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.02; margin: 0 0 .6rem; text-wrap: balance; display: flex; align-items: center; gap: .6rem; }
.page-title svg { color: var(--sodium); }
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 40em; font-size: 1rem; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--sodium); margin: 0 0 .5rem; }
h2.shelf-title { font-family: var(--f-ui); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 0 0 .75rem; }
.section { margin-top: 2.75rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-head h2 { font-family: var(--f-ui); font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: .5rem; }
.sec-head h2 svg { color: var(--sodium); }
.see-all { font-size: .8125rem; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.see-all:hover { color: var(--sodium); }
.back-link { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.back-link:hover { color: var(--ink); }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--rule); background: var(--surface); border-radius: 10px; padding: .6rem 1.15rem; font-weight: 700; font-size: .9375rem; text-decoration: none; line-height: 1.2; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--rule)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--sodium)); border-color: var(--sodium); color: var(--on-sodium); box-shadow: 0 8px 24px -12px rgba(232,176,75,.7); }
.btn.primary:hover { box-shadow: 0 10px 28px -10px rgba(232,176,75,.85); }
.btn.ghost, .btn.quiet { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); }
.btn.ghost:hover, .btn.quiet:hover { background: rgba(255,255,255,.09); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--rule)); background: none; }
.btn.small { padding: .4rem .85rem; font-size: .8125rem; border-radius: 8px; }
.btn.lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .field .label { font-size: .8125rem; font-weight: 700; }
.field input, .field select, select, textarea { border: 1px solid var(--rule); background: var(--bg-2); border-radius: 10px; padding: .65rem .75rem; min-width: 0; }
.field input, .field select { width: 100%; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.date-row { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: .5rem; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.form-card { max-width: 28rem; }
.msg { border-radius: 10px; padding: .75rem .9rem; font-size: .875rem; margin-bottom: 1rem; background: color-mix(in srgb, var(--sodium) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sodium) 35%, var(--rule)); }
.msg.error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 45%, var(--rule)); }
.tabs { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--surface); width: fit-content; margin-bottom: 1.25rem; }
.tabs button { border: 0; background: none; padding: .45rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 700; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--sodium); color: var(--on-sodium); }
.badge { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 6px; padding: .1rem .45rem; color: var(--muted); }
.badge.soon { color: var(--sodium); border-color: color-mix(in srgb, var(--sodium) 50%, var(--rule)); }
.chip { border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; padding: .3rem .6rem; font-size: .75rem; font-weight: 700; color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--sodium); color: var(--sodium); }

/* ---------- covers ---------- */
.cover {
  position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 8px; padding: .8rem; display: flex; flex-direction: column; justify-content: space-between;
  color: #EFEAE0; box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06) inset; isolation: isolate; flex: none;
}
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.45)); z-index: -1; }
.cover::after { content: ""; position: absolute; left: 50%; top: -18%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(240,174,72,.55), rgba(240,174,72,0) 70%); z-index: -1; }
.cover .c-author { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: #CFC8B8; font-weight: 700; }
.cover .c-title { font-family: var(--f-display); line-height: .98; font-size: 1.4rem; text-wrap: balance; }
.cover.has-art { padding: 0; }
.cover.has-art::before, .cover.has-art::after { display: none; }
.cover.has-art img { width: 100%; height: 100%; object-fit: cover; }
.cover.big { width: min(15rem, 42vw); padding: 1.1rem; }
.cover.big .c-title { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.cover.big .c-author { font-size: .6875rem; }
.cover.thumb { width: 4.5rem; padding: .45rem; border-radius: 6px; }
.cover.thumb .c-title { font-size: .8rem; }
.cover.thumb .c-author { font-size: .4375rem; }

/* ---------- home: hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; isolation: isolate; min-height: clamp(22rem, 46vw, 32rem);
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem);
  background:
    radial-gradient(60% 90% at 78% 30%, rgba(240,166,60,.42), rgba(240,166,60,0) 70%),
    radial-gradient(40% 60% at 95% 100%, color-mix(in srgb, var(--tone) 80%, #000), transparent 70%),
    linear-gradient(115deg, #0B0B0C 30%, color-mix(in srgb, var(--tone) 60%, #1A120A) 100%);
  border: 1px solid rgba(255,255,255,.06);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.85) 0%, rgba(11,11,12,.2) 55%, transparent); z-index: -1; pointer-events: none; }
.hero-copy { max-width: 36rem; animation: rise .7s var(--ease) both; }
.hero-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .98; margin: .3rem 0 1rem; letter-spacing: -.01em; text-wrap: balance; }
.hero-desc { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #D9D4CA; margin: 0 0 1.1rem; max-width: 34em; }
.hero-art { order: 2; justify-self: center; animation: float-in .9s var(--ease) both .1s; }
.hero-art img { max-height: 28rem; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.cover.hero-cover { width: clamp(11rem, 22vw, 17rem); padding: 1.3rem; transform: rotate(-3deg); box-shadow: 0 40px 80px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.08) inset; }
.cover.hero-cover .c-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cover.hero-cover .c-author { font-size: .75rem; }
.hero-ctas { margin-top: 1.4rem; }
.empty-hero { grid-template-columns: 1fr; min-height: 16rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.chips li { font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #E8E3D9; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.band-cta { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); }
.band-cta h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 .2rem; }
.band-cta p { margin: 0; color: var(--muted); }

/* ---------- carousels ---------- */
.carousel { position: relative; }
.car-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 2px 2px 1rem; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.car-track > * { scroll-snap-align: start; }
.car-btn { position: absolute; top: calc(50% - .5rem); transform: translateY(-50%); z-index: 3; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(17,17,19,.88); color: var(--ink); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.car-btn.prev { left: -.6rem; } .car-btn.next { right: -.6rem; }
.carousel:hover .car-btn:not(:disabled), .car-btn:focus-visible { opacity: 1; }
.car-btn:disabled { opacity: 0 !important; pointer-events: none; }
.carousel.static .car-btn { display: none; }
@media (hover: none) { .car-btn { display: none; } }

/* continue reading */
.cont-card { flex: 0 0 min(21rem, 82vw); display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; text-decoration: none; padding: .85rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); transition: border-color .2s, transform .25s var(--ease); }
.cont-card:hover { border-color: color-mix(in srgb, var(--sodium) 55%, var(--rule)); transform: translateY(-2px); }
.cont-info { display: grid; gap: .3rem; min-width: 0; }
.cont-info b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-info .muted { font-size: .8125rem; }
.cont-pct { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--sodium), var(--gold-2)); }

/* featured books */
.feat-card { flex: 0 0 min(25rem, 86vw); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.1rem; padding: 1rem; text-decoration: none; border-radius: 18px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--tone) 85%, #3A2410), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--tone) 70%, #111) 0%, #121214 70%);
  border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.feat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sodium) 45%, transparent); box-shadow: 0 24px 50px -28px rgba(0,0,0,.9); }
.cover.feat-cover { width: 100%; }
.feat-info { display: flex; flex-direction: column; gap: .55rem; min-width: 0; align-items: flex-start; }
.feat-title { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; line-height: 1.05; }
.mini-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.mini-chips span { font-size: .6875rem; font-weight: 700; padding: .15rem .5rem; border-radius: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E5E0D6; }
.feat-desc { font-size: .8125rem; color: #CBC6BC; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-info .btn { margin-top: auto; }

/* genres */
.genre-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; }
.genre-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; text-decoration: none; padding: .85rem; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  background: radial-gradient(90% 80% at 85% 10%, color-mix(in srgb, var(--g2) 75%, transparent), transparent 70%), linear-gradient(160deg, var(--g1), #0D0D0F 85%);
  border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease), border-color .2s; }
.genre-tile::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); z-index: -1; }
.genre-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g2) 70%, transparent); }
.g-name { font-weight: 800; font-size: 1rem; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.g-count { font-size: .75rem; color: #D7D2C8; font-weight: 600; }

/* clubs + trivia rows on dark pages */
.club-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: .9rem; }
.club-tile { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; text-decoration: none; padding: .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
.club-tile:hover { border-color: color-mix(in srgb, var(--sodium) 55%, var(--rule)); transform: translateY(-2px); }
.club-tile:not(:has(.cover)) { grid-template-columns: 1fr; }
.ct-info { display: grid; gap: .25rem; min-width: 0; justify-items: start; }
.ct-info b { font-size: .9375rem; line-height: 1.25; }
.ct-info .muted { font-size: .8125rem; display: inline-flex; align-items: center; gap: .3rem; }
.ct-info .btn { margin-top: .35rem; }
.club-tile.more { grid-template-columns: auto 1fr; border-style: dashed; color: var(--muted); font-weight: 700; justify-content: center; text-align: left; }
.club-tile.more svg { color: var(--sodium); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.promo { position: relative; overflow: hidden; border-radius: 18px; padding: 1.4rem 1.5rem; min-height: 11rem; display: flex; align-items: flex-end; isolation: isolate;
  background: radial-gradient(60% 100% at 100% 0%, rgba(232,176,75,.35), transparent 70%), linear-gradient(140deg, #1C1406, #121214 70%); border: 1px solid rgba(255,255,255,.08); }
.promo.trivia { background: radial-gradient(60% 100% at 100% 0%, rgba(120,90,230,.38), transparent 70%), radial-gradient(40% 80% at 0% 100%, rgba(232,176,75,.25), transparent 70%), linear-gradient(140deg, #16112A, #121214 70%); flex-direction: column; align-items: stretch; justify-content: flex-end; gap: .75rem; }
.promo.originals { background: radial-gradient(60% 100% at 100% 0%, rgba(214,80,140,.32), transparent 70%), linear-gradient(140deg, #1E0F1B, #121214 70%); }
.promo h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin: .4rem 0 .35rem; line-height: 1.1; }
.promo p { margin: 0 0 1rem; color: #D2CDC3; max-width: 34em; }
.live-game { display: grid; gap: .2rem; justify-items: start; text-decoration: none; padding: .8rem 1rem; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.live-game.card-like { background: var(--surface); border-color: var(--rule); }
.live-game .btn { margin-top: .4rem; }
.live-dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FF8D7A; }
.live-dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,141,122,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,141,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,141,122,0); } }
.loading.small { padding: 1rem 0; text-align: left; font-size: .875rem; }
.small-note { font-size: .8125rem; margin-top: .9rem; }

/* ---------- book page ---------- */
.book-hero { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding: clamp(1.25rem, 3.5vw, 2.5rem); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(50% 90% at 15% 20%, rgba(240,166,60,.28), transparent 70%), linear-gradient(120deg, color-mix(in srgb, var(--tone) 75%, #1A120A), #0F0F11 75%); border: 1px solid rgba(255,255,255,.07); }
.book-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; margin: .2rem 0 .9rem; text-wrap: balance; }
.bh-info { min-width: 0; display: grid; gap: .25rem; align-content: center; }
.bh-info .chips { margin-bottom: .9rem; }
.bh-progress { display: grid; gap: .35rem; max-width: 24rem; margin-top: .25rem; font-size: .8125rem; }
.tablist { display: flex; gap: .25rem; border-bottom: 1px solid var(--rule); margin: 1.75rem 0 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tablist [role=tab] { border: 0; background: none; padding: .75rem 1rem; font-weight: 700; font-size: .9375rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tablist [role=tab][aria-selected="true"] { color: var(--sodium); border-bottom-color: var(--sodium); }
[role=tabpanel] { outline: none; animation: rise .35s var(--ease) both; }
.ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ch-list li { display: flex; align-items: center; gap: .6rem; border-radius: 12px; background: var(--surface); border: 1px solid transparent; padding-right: .6rem; transition: border-color .2s, background-color .2s; }
.ch-list li:hover { border-color: var(--rule); background: var(--surface-2); }
.ch-list li.here { border-color: color-mix(in srgb, var(--sodium) 55%, var(--rule)); }
.ch-main { flex: 1; display: grid; grid-template-columns: 2.25rem 1fr auto; gap: .75rem; align-items: center; padding: .75rem 0 .75rem .75rem; text-decoration: none; min-width: 0; }
.ch-ico { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--sodium); }
.ch-name { min-width: 0; font-weight: 600; }
.ch-name small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.here-tag { font-size: .6875rem; font-weight: 800; color: var(--sodium); text-transform: uppercase; letter-spacing: .08em; margin-left: .35rem; }
.ch-meta { font-size: .8125rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.facts { margin: 0; display: grid; gap: .1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: .5rem 1.1rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.facts dd { margin: 0; font-size: .9375rem; }
.facts a { color: var(--sodium); }

/* ---------- books grid ---------- */
.search-row { margin: .5rem 0 1rem; }
.search-field { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 0 1rem; color: var(--muted); max-width: 40rem; }
.search-field:focus-within { border-color: var(--sodium); }
.search-field input { flex: 1; border: 0; background: none; padding: .85rem 0; font-size: 1.05rem; outline: none; color: var(--ink); min-width: 0; }
.filter-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.filter-chips button { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: .4rem .9rem; font-size: .8125rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.filter-chips button[aria-pressed="true"] { background: var(--sodium); border-color: var(--sodium); color: var(--on-sodium); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1.5rem 1.1rem; margin-top: 1.5rem; }
.grid-book { display: grid; gap: .35rem; text-decoration: none; align-content: start; justify-items: start; }
.grid-book .cover { width: 100%; transition: transform .3s var(--ease); }
.grid-book:hover .cover { transform: translateY(-4px); }
.grid-book b { font-size: .9375rem; line-height: 1.25; margin-top: .25rem; }
.grid-book .muted { font-size: .75rem; }

/* ---------- profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.pf { border: 0; background: none; display: grid; justify-items: center; align-content: start; gap: .6rem; padding: .5rem; border-radius: 14px; text-align: center; min-width: 0; }
.pf:hover .avatar { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 3px var(--sodium); }
.avatar { width: 6rem; height: 6rem; border-radius: 18px; display: grid; place-items: center; font-family: var(--f-display); font-size: 2.6rem; color: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
.avatar.sm { width: 1.75rem; height: 1.75rem; border-radius: 7px; font-size: .95rem; font-family: var(--f-ui); font-weight: 800; }
.pf .pf-name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf .pf-band { font-size: .75rem; color: var(--muted); }
.av-amber { background: #9A5A0C; } .av-teal { background: #1F7A72; } .av-plum { background: #7A3F7A; }
.av-slate { background: #44525E; } .av-brick { background: #A2412E; } .av-moss { background: #557235; }
.manage-list { display: grid; gap: .75rem; }
.manage-item { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .85rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.manage-item input { border: 1px solid var(--rule); background: var(--bg-2); border-radius: 8px; padding: .45rem .6rem; width: 100%; min-width: 0; }
.swatches { display: flex; gap: .4rem; flex-wrap: wrap; }
.swatches button { width: 1.75rem; height: 1.75rem; border-radius: 7px; border: 2px solid transparent; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }
.pin-input { letter-spacing: .6em; text-align: center; font-size: 1.5rem; max-width: 10rem; }

/* ---------- misc ---------- */
.empty { color: var(--muted); padding: 2rem 0; }
.loading { color: var(--muted); padding: 3rem 0; text-align: center; }
.search-box { width: 100%; border: 1px solid var(--rule); background: var(--surface); border-radius: 12px; padding: .8rem 1rem; font-size: 1.05rem; }
.results { display: grid; gap: .75rem; margin-top: 1.25rem; }
.radio { display: flex; gap: .5rem; align-items: center; font-size: .9375rem; padding: .25rem 0; }

/* ---------- clubs ---------- */
.code-join { margin-top: .75rem; }
.code-input { border: 1px solid var(--rule); background: var(--surface); border-radius: 10px; padding: .5rem .7rem; width: 9rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.club-list, .thread-list { display: grid; gap: .6rem; }
.club-card, .thread-card { display: grid; gap: .3rem; text-decoration: none; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); min-width: 0; transition: border-color .2s, transform .25s var(--ease); }
.club-card:hover, .thread-card:hover { border-color: color-mix(in srgb, var(--sodium) 55%, var(--rule)); transform: translateY(-1px); }
.club-name { font-weight: 800; font-size: 1.05rem; }
.club-meta, .thread-card .muted { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.club-desc { font-size: .875rem; color: var(--muted); }
.club-head { padding: 1.25rem 1.4rem; border-radius: 18px; background: radial-gradient(60% 120% at 100% 0%, rgba(232,176,75,.2), transparent 70%), var(--surface); border: 1px solid var(--rule); }
.club-head .title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.club-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--rule); margin: 1.25rem 0 1rem; overflow-x: auto; scrollbar-width: none; }
.club-tabs a { text-decoration: none; padding: .65rem .95rem; font-weight: 700; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.club-tabs a[aria-current="page"] { color: var(--sodium); border-bottom-color: var(--sodium); }
.club-head.compact { padding: .85rem 1.1rem; }
.club-head.compact .lede, .club-head.compact .eyebrow { display: none; }
.club-head.compact .title { font-size: 1.35rem; margin-bottom: .4rem; }
.club-head.compact + .club-tabs { margin-top: .5rem; }

/* posts (chat messages, threads, replies) */
.chat { display: grid; gap: .25rem; padding-bottom: 1rem; }
.post { display: grid; grid-template-columns: auto 1fr; gap: .65rem; padding: .6rem .5rem; position: relative; border-radius: 12px; }
.post:hover { background: rgba(255,255,255,.025); }
.post .avatar.sm { margin-top: .15rem; border-radius: 50%; }
.post-main { min-width: 0; }
.post-head { display: flex; align-items: baseline; gap: .5rem; font-size: .875rem; }
.post-body { font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.thread-title { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.05; margin: .25rem 0 .5rem; }
.post-menu { margin-left: auto; position: relative; }
.post-menu summary { list-style: none; cursor: pointer; color: var(--muted); padding: 0 .4rem; border-radius: 4px; }
.post-menu summary::-webkit-details-marker { display: none; }
.post-menu-items { position: absolute; right: 0; top: 1.4rem; z-index: 5; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: .25rem; display: grid; min-width: 10rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); }
.post-menu-items button { border: 0; background: none; text-align: left; padding: .5rem .65rem; border-radius: 7px; font-size: .875rem; }
.post-menu-items button:hover { background: var(--bg-2); }
.spoiler { border: 1px dashed var(--rule); background: var(--bg-2); border-radius: 8px; padding: .4rem .65rem; font-size: .8125rem; color: var(--muted); }
.spoiler-tag { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sodium); }
.report-box { grid-column: 2; margin-top: .4rem; padding: .75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.report-box select { width: 100%; }
.composer { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(11,11,12,.6), var(--bg) 30%); padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); display: grid; gap: .5rem; z-index: 4; }
.composer textarea { width: 100%; border: 1px solid var(--rule); background: var(--surface); border-radius: 12px; padding: .65rem .8rem; resize: none; }
.composer textarea:focus { border-color: var(--sodium); outline: none; }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.composer-row select { max-width: 60%; padding: .4rem .5rem; font-size: .8125rem; }
.join-prompt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px dashed var(--rule); border-radius: 12px; margin-top: 1rem; }
.join-prompt p { margin: 0; color: var(--muted); }
.new-thread > summary { list-style: none; display: inline-flex; }
.new-thread > summary::-webkit-details-marker { display: none; }
.new-thread textarea, .new-thread input { width: 100%; }
.thread-list { margin-top: 1rem; }
.member-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.member-list li { display: flex; align-items: center; gap: .6rem; }
.member-list li .btn { margin-left: auto; }

/* trivia */
.trivia-card { display: grid; gap: .9rem; }
.trivia-q { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 4.5vw, 1.9rem); line-height: 1.2; margin: 0; text-wrap: balance; }
.timer { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.timer span { display: block; height: 100%; background: linear-gradient(90deg, var(--sodium), var(--gold-2)); transition: width .25s linear; }
.options { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.option { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; border: 2px solid var(--rule); background: var(--surface); border-radius: 12px; padding: .9rem 1rem; font-weight: 700; font-size: 1rem; min-height: 3.5rem; transition: border-color .15s, background-color .15s, transform .15s; }
.option:not(:disabled):hover { border-color: var(--sodium); transform: translateY(-1px); }
.option:disabled { opacity: 1; cursor: default; }
.option.picked { border-color: var(--sodium); background: color-mix(in srgb, var(--sodium) 16%, var(--surface)); }
.option.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, var(--surface)); }
.option.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 15%, var(--surface)); }
.option .count { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.leaderboard { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.leaderboard li { display: grid; grid-template-columns: 1.5rem auto 1fr auto auto; gap: .6rem; align-items: center; padding: .55rem .4rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.leaderboard.compact li { grid-template-columns: 1.5rem auto 1fr auto; padding: .3rem .25rem; font-size: .875rem; }
.leaderboard .rank { font-weight: 800; color: var(--sodium); text-align: center; font-variant-numeric: tabular-nums; }
.leaderboard .lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard .lb-pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.trivia-live { border-color: var(--sodium); }

/* admin */
.report-item { border-top: 1px solid var(--rule); padding: .75rem 0; }
.report-item blockquote { margin: .4rem 0 .6rem; padding: .5rem .75rem; border-left: 3px solid var(--sodium); background: var(--bg-2); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
form.tq .radio input[type=text], form.tq .radio input:not([type]) { border: 1px solid var(--rule); background: var(--bg-2); border-radius: 8px; padding: .45rem .6rem; min-width: 0; }

/* =====================================================================
   READER: light by default, colors set by Eye Comfort. The dark shell is hidden here.
   ===================================================================== */
body.in-reader { background: var(--bg); transition: background-color .35s; }
body.in-reader .appbar, body.in-reader .tabbar, body.in-reader .skip { display: none; }
body.in-reader:not([data-paper]) { --bg: #F8EEDB; --surface: #FCF6EA; --ink: #2A2017; --muted: #66553F; --rule: #E6D8BD; --sodium: #8F560C; --on-sodium: #fff; --glow: #F6D39F; --hl-line: #8F560C; color-scheme: light; }
.reader-bar { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.rb-inner { max-width: 60rem; margin: 0 auto; padding: .55rem 16px; display: flex; align-items: center; gap: .75rem; }
.rb-back { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.rb-back:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rb-title { min-width: 0; flex: 1; display: grid; line-height: 1.2; }
.rb-title b { font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-title span { font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-aa { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; display: grid; place-items: center; }
.rb-aa[aria-expanded="true"] { border-color: var(--sodium); color: var(--sodium); }
.reader-bar .saved { position: absolute; right: 16px; bottom: -1.4rem; font-size: .6875rem; color: var(--muted); }
.modes { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--bg); flex: none; }
.modes button { border: 0; background: none; padding: .4rem .85rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.modes button[aria-pressed="true"] { background: var(--sodium); color: var(--on-sodium); }
.no-audio { font-size: .8125rem; color: var(--muted); max-width: var(--read-width); margin: 1rem auto 0; padding: 0 20px; font-family: var(--read-font); }

.reading { max-width: calc(var(--read-width) + 40px); margin: 0 auto; padding: 2.5rem 20px 0; }
.chapter-no { text-align: center; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0 0 .6rem; font-family: var(--f-ui); }
.chapter-name { text-align: center; font-family: var(--read-font); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 .9rem; text-wrap: balance; }
.chapter-name::after { content: ""; display: block; width: 3.5rem; height: 1px; margin: 1.1rem auto 2.2rem; background: linear-gradient(90deg, transparent, var(--sodium), transparent); }
.text { font-family: var(--read-font); font-size: var(--read-size); line-height: var(--read-lh); max-width: var(--read-width); margin: 0 auto; hyphens: auto; -webkit-hyphens: auto; }
.text p { margin: 0 0 1.05em; }
.text hr.scene { border: 0; text-align: center; margin: 1.6em 0; }
.text hr.scene::after { content: "· · ·"; color: var(--muted); letter-spacing: .5em; }
/* Read Along: a soft tint plus a solid underline under the spoken word (both contrast-checked). */
.w { border-radius: 3px; transition: background-color .12s, box-shadow .12s; }
body.calm .w { transition: none; }
body.mode-along .w { cursor: pointer; }
body.mode-along .w:hover { background: color-mix(in srgb, var(--glow) 55%, transparent); }
body.mode-along .w.now, .now-line .w.now { background: var(--glow); box-shadow: 0 0 0 2px var(--glow), inset 0 -3px 0 var(--hl-line); }
.chapter-name .w.now, .chapter-no .w.now { background: none !important; box-shadow: inset 0 -3px 0 var(--hl-line) !important; }
.chapter-end { margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: grid; gap: .75rem; max-width: var(--read-width); font-family: var(--f-ui); }
.chapter-end .next-link { text-decoration: none; display: grid; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.chapter-end .next-link span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.chapter-end .next-link b { font-family: var(--read-font); font-size: 1.4rem; font-weight: 400; line-height: 1.15; }
.chapter-end .next-link small { color: var(--muted); }

.listen { display: none; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding: 2.5rem 20px 0; max-width: 40rem; margin: 0 auto; }
body.mode-listen .listen { display: flex; }
body.mode-listen .reading { display: none; }
.listen .cover { width: min(12rem, 48vw); }
.now-line { font-family: var(--read-font); font-size: clamp(1.3rem, 4.5vw, 1.7rem); line-height: 1.45; max-width: 30em; min-height: 4.4em; text-wrap: pretty; }
.next-line { font-family: var(--read-font); color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 34em; min-height: 3em; }
.listen-meta { font-size: .75rem; color: var(--muted); letter-spacing: .06em; font-variant-numeric: tabular-nums; text-transform: uppercase; font-weight: 700; }

.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); padding: .65rem 16px calc(.75rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px -20px rgba(0,0,0,.35); }
.player-inner { max-width: 46rem; margin: 0 auto; display: grid; gap: .45rem; }
.scrub { display: flex; align-items: center; gap: .7rem; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.scrub input { flex: 1; min-width: 0; accent-color: var(--sodium); }
.ctrls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ctrls .mid { display: flex; align-items: center; gap: .55rem; }
.round { border: 1px solid var(--rule); background: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .6875rem; font-weight: 800; padding: 0; color: var(--ink); }
.round:hover { border-color: var(--sodium); }
.play { width: 3.4rem; height: 3.4rem; border: 0; background: var(--ink); color: var(--bg); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.play svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.ctrls select { border: 1px solid var(--rule); background: var(--bg); border-radius: 8px; padding: .3rem .45rem; font-size: .8125rem; color: var(--ink); }
.ctrls .side { display: flex; gap: .4rem; align-items: center; font-size: .75rem; color: var(--muted); font-weight: 700; }
.read-cta { display: none; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.read-cta .where { font-size: .8125rem; color: var(--muted); min-width: 0; }
body.mode-read .read-cta { display: flex; }
body.mode-read .scrub, body.mode-read .ctrls { display: none; }
body.in-reader .btn { border-color: var(--rule); background: var(--surface); color: var(--ink); box-shadow: none; }
body.in-reader .btn.primary { background: var(--sodium); border-color: var(--sodium); color: var(--on-sodium); }
.back-to { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(8.75rem + env(safe-area-inset-bottom, 0px)); z-index: 13; border: 1px solid var(--sodium); background: var(--surface); color: var(--sodium); border-radius: 999px; padding: .5rem 1.05rem; font-weight: 700; font-size: .8125rem; box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); }

/* Eye Comfort panel: a sheet from the bottom on phones, a card under the Aa button on larger screens. */
.comfort-panel { position: fixed; z-index: 30; right: max(16px, calc((100vw - 60rem) / 2 + 16px)); top: calc(env(safe-area-inset-top, 0px) + 4rem); width: min(24rem, calc(100vw - 32px)); max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 18px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); font-family: var(--f-ui); animation: rise .25s var(--ease) both; }
body.calm .comfort-panel, body.calm [role=tabpanel] { animation: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cp-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.cp-close { border: 0; background: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1rem; color: var(--muted); }
.cp-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.cp-group { border: 0; padding: 0; margin: .75rem 0 0; }
.cp-group legend { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0; margin-bottom: .5rem; }
.theme-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.theme-swatches button { border: 2px solid var(--rule); background: var(--bg); border-radius: 12px; padding: .45rem .3rem .4rem; display: grid; justify-items: center; gap: .25rem; font-size: .75rem; font-weight: 700; color: var(--ink); }
.theme-swatches button[aria-pressed="true"] { border-color: var(--sodium); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sodium) 30%, transparent); }
.theme-swatches .sw { width: 100%; max-width: 3.4rem; height: 2.1rem; border-radius: 8px; display: grid; place-items: center; background: var(--sw-bg); color: var(--sw-ink); font-family: Georgia, serif; font-size: 1.05rem; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 -3px 0 var(--sw-line); }
.cp-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; font-size: .875rem; font-weight: 700; }
.cp-row output { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; font-size: .8125rem; }
.cp-row select { padding: .4rem .5rem; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink); max-width: 13rem; }
.comfort-panel input[type=range] { width: 100%; accent-color: var(--sodium); margin: .35rem 0 0; }
.cp-hint { font-size: .75rem; color: var(--muted); margin: .25rem 0 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 10px; padding: 3px; background: var(--bg); }
.seg button { border: 0; background: none; padding: .45rem; border-radius: 8px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--sodium); color: var(--on-sodium); }
.cp-sep { height: 1px; background: var(--rule); margin: 1rem 0 .4rem; }
.toggle { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: center; padding: .6rem 0; cursor: pointer; }
.toggle span { font-weight: 700; font-size: .9rem; }
.toggle small { grid-column: 1; color: var(--muted); font-size: .75rem; }
.toggle input { grid-column: 2; grid-row: 1 / span 2; appearance: none; -webkit-appearance: none; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, var(--bg)); position: relative; cursor: pointer; transition: background-color .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--sodium); }
.toggle input:checked::after { transform: translateX(1.15rem); }
.cp-evening-set { padding: .1rem 0 .6rem .1rem; }
.cp-times { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .8125rem; font-weight: 700; }
.cp-times label { display: flex; align-items: center; gap: .4rem; }
.cp-times input { border: 1px solid var(--rule); background: var(--bg); border-radius: 8px; padding: .35rem .5rem; color: var(--ink); }
.cp-evening { font-size: .8125rem; background: color-mix(in srgb, var(--sodium) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sodium) 35%, var(--rule)); border-radius: 10px; padding: .55rem .7rem; margin: .25rem 0 0; }
.link { border: 0; background: none; padding: 0; color: var(--sodium); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.cp-note { font-size: .75rem; color: var(--muted); margin: .8rem 0 0; padding: .6rem .7rem; border-radius: 10px; background: var(--bg); }
.cp-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; }
.cp-status { font-size: .75rem; color: var(--muted); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
body.calm *, body.calm *::before, body.calm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* ---------- tablet ---------- */
@media (max-width: 64rem) {
  .genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-search { width: min(16rem, 26vw); }
  .nav a { padding: .45rem .5rem; }
}
@media (max-width: 52rem) {
  .appbar-inner { padding: .6rem 16px; gap: .75rem; }
  .nav, .top-search { display: none; }
  .icon-btn { display: grid; margin-left: auto; }
  .who .who-name { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(13,13,14,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.08); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: .15rem; text-decoration: none; font-size: .6875rem; font-weight: 700; color: var(--muted); padding: .3rem 0; }
  .tabbar a[aria-current="page"] { color: var(--sodium); }
  .page { padding: 1.25rem 16px 6.5rem; }
  .hero { grid-template-columns: 1fr; text-align: left; gap: 1.25rem; padding: 1.5rem 1.25rem 1.75rem; border-radius: 18px; }
  .hero::after { background: linear-gradient(180deg, transparent 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.9) 100%); }
  .hero-art { order: 0; justify-self: start; }
  .cover.hero-cover { width: 9.5rem; transform: rotate(-2deg); }
  .split { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .book-hero { grid-template-columns: 1fr; justify-items: start; }
  .cover.big { width: 10.5rem; }
}
@media (max-width: 40rem) {
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-card { grid-template-columns: 6.5rem 1fr; }
  .feat-title { font-size: 1.3rem; }
  .hero-ctas .btn.lg { padding: .75rem 1.1rem; font-size: .9375rem; }
  .ch-main { grid-template-columns: 2rem 1fr; }
  .ch-meta { grid-column: 2; }
  .ch-along { padding: .35rem .6rem; }
  .facts div { grid-template-columns: 6rem 1fr; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options { grid-template-columns: 1fr; }
  /* reader bar: title row, then the mode switch full width */
  .rb-inner { flex-wrap: wrap; row-gap: .5rem; padding: .45rem 12px .55rem; }
  .rb-title { flex: 1; order: 1; }
  .rb-back { order: 0; }
  .rb-aa { order: 2; }
  .modes { order: 3; width: 100%; }
  .modes button { flex: 1; padding: .45rem .4rem; }
  .comfort-panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 82vh; border-radius: 20px 20px 0 0; padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
  .ctrls { gap: .3rem; }
  .ctrls .side .lbl { display: none; }
  .ctrls select { width: 3.9rem; padding: .3rem .2rem; }
  .ctrls .mid { gap: .3rem; }
  .round { width: 2.35rem; height: 2.35rem; }
  .play { width: 3.1rem; height: 3.1rem; }
  .brand-text small { display: none; }
}
.book-grid > .empty { grid-column: 1 / -1; }

/* real cover art: a blurred, darkened copy of the cover behind banners and cards */
.art-bg { position: absolute; inset: -12%; z-index: -2; background-size: cover; background-position: center 30%; filter: blur(38px) saturate(1.25) brightness(.5); transform: scale(1.05); pointer-events: none; }
.hero.with-art { background: linear-gradient(115deg, #0B0B0C 25%, transparent 75%); }
.hero.with-art::after { background: linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 50%, rgba(11,11,12,.15) 100%); }
.book-hero.with-art { background: linear-gradient(120deg, rgba(11,11,12,.55), rgba(11,11,12,.88) 70%); }
.feat-card.with-art { background: linear-gradient(135deg, rgba(11,11,12,.35), rgba(15,15,17,.92) 65%); }
.feat-card.with-art .art-bg { filter: blur(30px) saturate(1.2) brightness(.42); }
.cover.has-art img { object-position: center 42%; }
.cover.hero-cover.has-art { padding: 0; width: clamp(12rem, 24vw, 18.5rem); }
@media (max-width: 52rem) {
  .hero.with-art::after { background: linear-gradient(180deg, rgba(11,11,12,.2) 0%, rgba(11,11,12,.7) 45%, rgba(11,11,12,.94) 100%); }
  .cover.hero-cover.has-art { width: 10.5rem; }
}
.cover.has-art, .cover.big.has-art, .cover.thumb.has-art, .cover.feat-cover.has-art { padding: 0; }

/* admin: AI question drafts */
.ai-box { margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.ai-box > summary { list-style: none; cursor: pointer; }
.ai-box > summary::-webkit-details-marker { display: none; }
.ai-form { margin-top: .9rem; display: grid; gap: .6rem; justify-items: start; }
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; width: 100%; }
.ai-grid .field { margin: 0; }
.ai-drafts { display: grid; gap: .8rem; margin-top: 1rem; }
.draft { border: 1px solid var(--rule); border-radius: 12px; padding: .75rem .9rem .9rem; display: grid; gap: .45rem; min-width: 0; background: var(--bg-2); }
.draft legend { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sodium); padding: 0 .3rem; }
.draft textarea { width: 100%; resize: vertical; font-weight: 600; }
.draft .radio input:not([type]) { flex: 1; min-width: 0; border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; padding: .4rem .6rem; }
.draft .btn { justify-self: start; }
@media (max-width: 40rem) { .ai-grid { grid-template-columns: 1fr 1fr; } }
input[type=radio], input[type=checkbox] { accent-color: var(--sodium); }

/* ---------- membership ---------- */
.join-btn { padding: .38rem .9rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 46rem; margin-top: 1.25rem; }
.plan-card { position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.4rem 1.4rem 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); }
.plan-card.featured { border-color: color-mix(in srgb, var(--sodium) 60%, var(--rule)); background: radial-gradient(80% 120% at 100% 0%, rgba(232,176,75,.16), transparent 70%), var(--surface); }
.plan-card .badge { position: absolute; top: 1rem; right: 1rem; }
.plan-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; margin: 0; }
.plan-price { margin: 0; color: var(--muted); }
.plan-price b { color: var(--ink); font-size: 1.6rem; font-weight: 800; }
.plan-card ul { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: grid; gap: .45rem; }
.plan-card li { padding-left: 1.5rem; position: relative; font-size: .9375rem; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sodium); font-weight: 800; }
.plan-card .btn { justify-self: stretch; }
.plans.compact .plan-card { padding: 1.1rem 1.1rem 1.2rem; }
.plans.compact .plan-card h3 { font-size: 1.45rem; }
.member-card { max-width: 40rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: radial-gradient(80% 120% at 100% 0%, rgba(232,176,75,.18), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--sodium) 45%, var(--rule)); display: grid; gap: .5rem; }
.member-card.warn { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.member-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; margin: 0; display: flex; align-items: center; gap: .6rem; }
.member-card p { margin: 0; }
.paywall { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: start; max-width: 62rem; margin: 1rem auto 0; }
.cover.pw-cover { width: clamp(9rem, 20vw, 14rem); }
.pw-copy { min-width: 0; }
.free-tag { font-size: .6875rem; font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: .08em; margin-left: .35rem; }
.lock-tag { color: var(--muted); margin-left: .35rem; display: inline-flex; vertical-align: -1px; }
@media (max-width: 40rem) {
  .plans { grid-template-columns: 1fr; }
  .paywall { grid-template-columns: 1fr; }
  .cover.pw-cover { width: 8rem; }
}

/* ---------- genre tiles with cinematic scenes ---------- */
.genre-tile.with-img { background: #0D0D0F; }
.genre-tile.with-img::before { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); z-index: -1; }
.g-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .4s; filter: saturate(1.05); }
.genre-tile.with-img:hover .g-img, .genre-tile.with-img:focus-visible .g-img { transform: scale(1.1); filter: saturate(1.2) brightness(1.08); }
.genre-grid.big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.genre-grid.big .genre-tile { aspect-ratio: 16 / 10; padding: 1.1rem 1.2rem; border-radius: 18px; }
.genre-grid.big .g-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 2rem); }

/* ---------- landing ---------- */
.page.landing { padding-top: 0; }
.lh { position: relative; isolation: isolate; overflow: hidden; margin-inline: calc(50% - 50vw); min-height: clamp(34rem, calc(100svh - 4rem), 52rem); display: grid; align-items: center; }
.lh::before, .lh::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(1.25rem, 3.5vw, 2.75rem); background: #000; z-index: 2; pointer-events: none; }
.lh::before { top: 0; } .lh::after { bottom: 0; }
.lh-reel { position: absolute; inset: 0; z-index: -2; background: #0B0B0C; }
.lh-reel span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  animation: reel calc(var(--n) * 6s) linear infinite; animation-delay: calc(var(--i) * 6s - 1s); }
@keyframes reel {
  0% { opacity: 0; transform: scale(1.04); }
  3% { opacity: 1; }
  17% { opacity: 1; }
  21% { opacity: 0; transform: scale(1.13) translateX(-1.5%); }
  100% { opacity: 0; transform: scale(1.13) translateX(-1.5%); }
}
.lh-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.7) 38%, rgba(8,8,9,.15) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 30%); }
.lh-inner { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 4.5rem 24px 5rem; display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: center; }
.lh-copy { max-width: 38rem; animation: rise .9s var(--ease) both .1s; }
.lh-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: .95; letter-spacing: -.015em; margin: .4rem 0 1.1rem; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.lh-lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #E2DDD3; margin: 0; max-width: 32em; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.lh-posters { position: relative; height: clamp(18rem, 34vw, 27rem); }
.lh-poster { position: absolute; top: 50%; left: 50%; width: clamp(10rem, 17vw, 14.5rem); text-decoration: none; transition: transform .5s var(--ease);
  transform: translate(calc(-50% + (var(--k) - 1) * 62%), -50%) rotate(calc((var(--k) - 1) * 7deg)); z-index: calc(3 - var(--k)); animation: poster-in 1s var(--ease) both; animation-delay: calc(.25s + var(--k) * .12s); }
.lh-posters.n1 .lh-poster { transform: translate(-50%, -50%) rotate(-3deg); }
.lh-posters.n2 .lh-poster { transform: translate(calc(-50% + (var(--k) - .5) * 70%), -50%) rotate(calc((var(--k) - .5) * 10deg)); }
.lh-poster:nth-child(2) { z-index: 3; }
.lh-poster .cover { box-shadow: 0 40px 70px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1); }
.lh-poster:hover { z-index: 5; }
@keyframes poster-in { from { opacity: 0; margin-top: 2rem; } to { opacity: 1; margin-top: 0; } }
.lh-down { position: absolute; left: 50%; bottom: calc(clamp(1.25rem, 3.5vw, 2.75rem) + .75rem); z-index: 3; transform: translateX(-50%) rotate(90deg); width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 6px; } }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.way { padding: 1.3rem 1.4rem; border-radius: 18px; background: linear-gradient(160deg, #19150D, var(--surface) 60%); border: 1px solid var(--rule); }
.way h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin: .7rem 0 .3rem; }
.way p { margin: 0; color: var(--muted); }
.way-ic { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; color: var(--sodium); background: rgba(232,176,75,.12); border: 1px solid rgba(232,176,75,.3); }

.now-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12rem, 42%), 1fr)); gap: 1.1rem; }
.now-card { display: grid; gap: .7rem; text-decoration: none; transition: transform .3s var(--ease); }
.now-card:hover { transform: translateY(-4px); }
.now-card .cover { box-shadow: 0 24px 40px -22px rgba(0,0,0,.95); }
.now-info { display: grid; gap: .4rem; }
.now-info b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }

.lh-end { margin: 3rem calc(50% - 50vw) 0; padding: 4rem 24px; text-align: center; display: grid; justify-items: center; gap: 1.2rem;
  background: radial-gradient(50% 120% at 50% 100%, rgba(232,176,75,.22), transparent 70%), linear-gradient(180deg, var(--bg), #120D06); border-top: 1px solid rgba(255,255,255,.06); }
.lh-end h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; line-height: 1.05; }
.lh-end .row { justify-content: center; }

@media (max-width: 52rem) {
  .lh { min-height: calc(100svh - 3.6rem); align-items: end; }
  .lh-inner { grid-template-columns: 1fr; padding: 3.25rem 16px 5.5rem; gap: 1.25rem; }
  .lh-posters { order: -1; height: 15rem; }
  .lh-poster { width: 8.6rem; }
  .lh-shade { background: linear-gradient(180deg, rgba(8,8,9,.35) 0%, rgba(8,8,9,.5) 40%, rgba(8,8,9,.92) 72%, var(--bg) 100%); }
  .ways { grid-template-columns: 1fr; }
  .genre-grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .lh-end { padding: 3rem 16px 4rem; margin-bottom: -6.5rem; padding-bottom: 8rem; }
}
@media (max-width: 40rem) {
  .genre-grid.big .genre-tile { aspect-ratio: 4 / 3; padding: .85rem; }
  .lh-title { font-size: clamp(2.9rem, 14vw, 4rem); }
  .lh-down { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lh-reel span:first-child { opacity: 1; } }
body.calm .lh-reel span:first-child { opacity: 1; }

/* ================= Cinematic pass (from the ChatGPT design): pill buttons, poster headings, scene cards ================= */
.btn { border-radius: 999px; }
.btn.small { border-radius: 999px; }
.btn.primary { background: linear-gradient(120deg, var(--gold-2), var(--sodium)); border-color: transparent; box-shadow: 0 6px 22px -8px rgba(232,176,75,.55); }
.btn.ghost { border-color: color-mix(in srgb, var(--sodium) 70%, transparent); background: rgba(11,11,12,.45); }
.btn.ghost:hover { background: rgba(232,176,75,.12); }
.btn svg { flex: none; }
.filter-chips button { border-radius: 999px; padding: .55rem 1rem; }
.join-btn { border-radius: 10px; }
body.in-reader .btn { border-radius: 10px; }

.sec-head { align-items: flex-end; margin-bottom: 1.1rem; }
.sec-head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.05; letter-spacing: 0; }
.sec-sub { margin: .3rem 0 0; color: var(--muted); font-size: .875rem; }
.see-all { color: var(--sodium); display: inline-flex; align-items: center; gap: .3rem; }
.see-all:hover { color: var(--gold-2); }

/* front page hero, stacked like a film title */
.lh-title { font-size: clamp(3.6rem, 8.2vw, 7rem); line-height: .9; letter-spacing: -.02em; margin: .5rem 0 1.1rem; }
.lh-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 26rem; line-height: 1.6; }
.lh-sub { margin: .5rem 0 0; color: var(--gold-2); font-weight: 700; font-size: .9375rem; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.lh .hero-ctas { margin-top: 1.6rem; }
.lh-modes { list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; gap: 1.8rem; }
.lh-modes li { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .875rem; }
.lh-modes svg { color: var(--gold-2); }
.lh-poster { width: clamp(9.5rem, 15vw, 13rem); }
.lh-posters.n2 .lh-poster { transform: translate(calc(-50% + (var(--k) - .5) * 64%), calc(-50% + var(--k) * 6%)) rotate(calc(-6deg + var(--k) * 12deg)); }

/* genre tiles: six across like posters */
.genre-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.genre-tile { aspect-ratio: 1 / 1; border-radius: 14px; padding: .85rem; }
.genre-tile .g-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.1; }

/* the big scene cards */
.scene-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; pointer-events: none; transition: transform 1.2s var(--ease); }
.cine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cine-card { position: relative; isolation: isolate; overflow: hidden; min-height: 17rem; border-radius: 16px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(255,255,255,.1); background: linear-gradient(120deg, color-mix(in srgb, var(--tone) 70%, #342218), #161C34);
  transition: transform .35s var(--ease), border-color .2s, box-shadow .35s; }
.cine-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,11,.96) 8%, rgba(8,8,11,.55) 45%, rgba(8,8,11,.05) 80%); }
.cine-card .art-bg { inset: 0; filter: blur(20px) brightness(.6) saturate(1.2); }
.cine-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sodium) 55%, transparent); box-shadow: 0 26px 50px -26px rgba(0,0,0,.95); }
.cine-card:hover .scene-bg { transform: scale(1.06); }
.cc-body { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: flex-end; gap: 1rem; }
.cover.cc-cover { width: 5.6rem; flex: none; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.7); }
.cover.cc-cover .c-title { font-size: .85rem; } .cover.cc-cover .c-author { font-size: .45rem; }
.cc-info { display: grid; gap: .35rem; min-width: 0; }
.cc-info small { font-size: .6875rem; font-weight: 800; letter-spacing: .04em; color: var(--gold-2); }
.cc-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.05; }
.cc-status { font-size: .75rem; font-weight: 700; color: #D8D3C9; }
.cc-status.live { color: var(--ok); }
.cine-grid > .empty { grid-column: 1 / -1; }

/* three colored promo cards */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.promo-card { display: grid; align-content: start; gap: .5rem; min-height: 12rem; padding: 1.4rem; border-radius: 16px; text-decoration: none; color: var(--ink); border: 1px solid rgba(255,255,255,.1); transition: transform .3s var(--ease), border-color .2s; }
a.promo-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sodium) 55%, transparent); }
.promo-card svg { color: var(--sodium); }
.promo-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; margin: .3rem 0 0; }
.promo-card p { margin: 0; color: #CFCAC0; font-size: .875rem; }
.promo-card > span:last-child { margin-top: auto; color: var(--sodium); font-weight: 800; font-size: .8125rem; display: inline-flex; align-items: center; gap: .3rem; justify-self: start; }
.pc-clubs { background: radial-gradient(80% 100% at 100% 0%, rgba(160,70,200,.35), transparent 70%), linear-gradient(120deg, #24132D, #11121A); }
.pc-games { background: radial-gradient(80% 100% at 100% 0%, rgba(232,176,75,.32), transparent 70%), linear-gradient(120deg, #292011, #13121A); }
.pc-orig { background: radial-gradient(80% 100% at 100% 0%, rgba(60,110,230,.38), transparent 70%), linear-gradient(120deg, #102544, #14121B); }

/* the featured banner and book pages use the book's own scene */
.hero .scene-bg, .book-hero .scene-bg { filter: saturate(1.1); }
.lh-end { background: radial-gradient(60% 120% at 50% 100%, rgba(232,176,75,.28), transparent 70%), linear-gradient(180deg, var(--bg), #1A1206); }

@media (max-width: 64rem) {
  .genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-tile { aspect-ratio: 4 / 3; }
}
@media (max-width: 52rem) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 0; }
  .lh-modes { margin-top: 1.6rem; gap: 1.4rem; }
}
@media (max-width: 40rem) {
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cine-card { min-height: 16rem; border-radius: 14px; }
  .cc-body { display: grid; gap: .55rem; left: .7rem; right: .7rem; bottom: .75rem; }
  .cover.cc-cover { width: 3.6rem; }
  .cc-title { font-size: 1.2rem; }
  .cc-info small { font-size: .625rem; }
  .lh-title { font-size: clamp(3.4rem, 17vw, 4.6rem); }
  .lh-modes li { flex-direction: column; gap: .3rem; font-size: .75rem; }
  .sec-head { flex-wrap: wrap; }
  .sec-head h2 { font-size: 1.85rem; }
}
.book-hero .scene-bg { filter: brightness(.5) saturate(1.05); }
.hero .scene-bg { filter: brightness(.7) saturate(1.1); }

/* ================= Mockup match: standing books, mode captions, genre taglines, pill buttons on cards ================= */
.lh-art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center right; }
.lh-shade { background: linear-gradient(90deg, rgba(8,8,9,.9) 0%, rgba(8,8,9,.55) 34%, rgba(8,8,9,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 26%); }
.lh-reel span { filter: saturate(1.35) brightness(1.12); }
.lh-books { display: flex; align-items: flex-end; justify-content: center; gap: clamp(.5rem, 1.4vw, 1.1rem); perspective: 1400px; padding-top: 2rem; animation: float-in 1s var(--ease) both .2s; }
.lh-book { width: clamp(8.5rem, 13vw, 12rem); text-decoration: none; transform: rotateY(calc(18deg - var(--k) * 18deg)) translateY(calc(var(--k) * -4px)); transform-style: preserve-3d; transition: transform .5s var(--ease); position: relative; }
.lh-book .cover { border-radius: 3px 8px 8px 3px; box-shadow: -10px 30px 50px -10px rgba(0,0,0,.95), 0 0 60px -10px rgba(232,176,75,.35); }
.lh-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 2; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(0,0,0,.4) 60%, rgba(255,255,255,.1)); pointer-events: none; }
.lh-book:hover { transform: rotateY(0) translateY(-10px); }
.lh-books::after { content: ""; position: absolute; }
.lh-modes { gap: 2.2rem; }
.lh-modes li { align-items: center; gap: .7rem; }
.lh-modes li span { display: grid; line-height: 1.2; }
.lh-modes b { font-size: .9375rem; }
.lh-modes small { color: var(--muted); font-size: .75rem; font-weight: 600; }

.genre-item { display: grid; gap: .45rem; align-content: start; min-width: 0; }
.g-tag { margin: 0; font-size: .75rem; color: var(--muted); line-height: 1.35; }
.genre-tile .g-count { display: none; }
.genre-tile.with-img::before { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.82) 100%); }
.g-img { filter: saturate(1.3) brightness(1.1); }

.cine-card .scene-bg { filter: saturate(1.3) brightness(1.08); }
.cine-card::after { background: linear-gradient(0deg, rgba(8,8,11,.92) 6%, rgba(8,8,11,.35) 50%, rgba(8,8,11,0) 85%); }
.cc-info { flex: 1; }
.cc-btn { justify-self: end; align-self: end; margin-top: .2rem; padding: .4rem .95rem; border-radius: 999px; font-size: .75rem; font-weight: 800; color: var(--on-sodium); background: linear-gradient(120deg, var(--gold-2), var(--sodium)); box-shadow: 0 6px 18px -8px rgba(232,176,75,.7); }
.cc-btn.soon { background: rgba(255,255,255,.12); color: var(--ink); box-shadow: none; border: 1px solid rgba(255,255,255,.25); }

.promo-card { position: relative; isolation: isolate; overflow: hidden; }
.promo-card[style*="--pc-img"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,14,.92) 30%, rgba(10,10,14,.2)), var(--pc-img) center/cover; }
.pc-btn { margin-top: auto; justify-self: start; display: inline-flex; align-items: center; gap: .3rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sodium) 70%, transparent); color: var(--ink); font-weight: 800; font-size: .8125rem; }
a.promo-card:hover .pc-btn { background: rgba(232,176,75,.15); }
.pc-btn.soon { color: var(--sodium); }
.promo-card > span:last-child { color: inherit; }
.promo-card > .pc-btn.soon { color: var(--sodium); }

/* personal home: full-width banner like the front page */
.hero.bleed { margin-inline: calc(50% - 50vw); border-radius: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); min-height: clamp(26rem, 62vh, 40rem); margin-top: -1.5rem;
  padding-inline: max(24px, calc((100vw - var(--wide)) / 2 + 24px)); }
.page.wide > .hero.bleed:first-child { margin-top: -2rem; }

@media (max-width: 52rem) {
  .lh-books { order: -1; padding-top: 0; justify-content: center; }
  .lh-book { width: 6.4rem; }
  .lh-posters { display: none; }
  .hero.bleed { margin-top: -1.25rem; padding-inline: 16px; }
}
@media (max-width: 40rem) {
  /* phone: genres scroll sideways, four in view; three portrait book cards across */
  .genre-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .5rem; margin-inline: -16px; padding: 0 16px .5rem; scrollbar-width: none; }
  .genre-grid::-webkit-scrollbar { display: none; }
  .genre-item { flex: 0 0 23%; scroll-snap-align: start; }
  .genre-tile { aspect-ratio: 3 / 4; padding: .45rem; border-radius: 10px; }
  .genre-tile .g-name { font-size: .8rem; }
  .g-tag { display: none; }
  .cine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .cine-card { min-height: 13.5rem; border-radius: 10px; }
  .cine-card .scene-bg { display: none; }
  .cc-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: .5rem; gap: .3rem; left: 0; right: 0; bottom: 0; }
  .cover.cc-cover { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: -2; box-shadow: none; }
  .cover.cc-cover img { width: 100%; height: 100%; object-fit: cover; }
  .cine-card::after { background: linear-gradient(0deg, rgba(8,8,11,.95) 10%, rgba(8,8,11,.2) 55%, rgba(8,8,11,0) 75%); }
  .cc-info small { display: none; }
  .cc-title { font-size: .875rem; }
  .cc-btn { justify-self: stretch; text-align: center; padding: .35rem .3rem; font-size: .6875rem; }
  .lh-modes { justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }
  .lh-modes li { flex-direction: column; text-align: center; gap: .35rem; }
  .lh-modes small { font-size: .625rem; }
}
@media (max-width: 40rem) {
  .cc-title { display: none; }
  .lh-shade { background: linear-gradient(180deg, rgba(8,8,9,.25) 0%, rgba(8,8,9,.55) 30%, rgba(8,8,9,.9) 55%, var(--bg) 100%); }
}

/* ================= Approved reference: gold lotus wordmark, painted artwork ================= */
.logo-mark { color: var(--sodium); display: grid; place-items: center; }
.brand-text.gold-brand b { color: var(--sodium); font-size: 1.45rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-text.gold-brand small { color: var(--gold-2); letter-spacing: .02em; text-transform: none; font-size: .6875rem; font-weight: 600; }
.lh-art { background-position: 60% center; filter: saturate(1.15); }
.lh-art + .lh-shade { background: linear-gradient(90deg, rgba(5,7,12,.96) 0%, rgba(5,7,12,.8) 26%, rgba(5,7,12,.15) 52%, rgba(5,7,12,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 22%); }
.cine-card .scene-bg { background-position: center 28%; }
.hero.bleed .scene-bg { background-position: center 22%; }
.genre-tile.with-img .g-img { background-position: center 35%; }

@media (max-width: 52rem) {
  .lh-art { background-size: 270% auto; background-position: 40% 0; background-repeat: no-repeat; background-color: var(--bg); }
  .lh-art + .lh-shade { background: linear-gradient(180deg, rgba(5,7,12,0) 0%, rgba(5,7,12,.15) 28%, rgba(5,7,12,.85) 50%, var(--bg) 62%); }
  .lh:has(.lh-art) .lh-inner { padding-top: 11rem; }
  .lh:has(.lh-art) .lh-books { margin-bottom: .5rem; }
  .brand-text.gold-brand b { font-size: 1.15rem; }
  .logo-mark svg { width: 32px; height: 22px; }
}
@media (min-width: 52.01rem) {
  .lh:has(.lh-art) { min-height: max(34rem, 37vw); }
  .lh-art { background-position: left center; }
  .lh-art + .lh-shade { background: linear-gradient(90deg, rgba(5,7,12,.95) 0%, rgba(5,7,12,.78) 24%, rgba(5,7,12,.1) 38%, rgba(5,7,12,0) 60%), linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 20%); }
}
.cine-card .scene-bg { background-position: center 18%; }
@media (min-width: 52.01rem) {
  .lh:has(.lh-art) .lh-title { font-size: clamp(3rem, 5.3vw, 5.4rem); margin-bottom: .8rem; }
  .lh:has(.lh-art) .lh-inner { padding-top: 3.2rem; padding-bottom: 3.6rem; }
  .lh:has(.lh-art) .lh-modes { margin-top: 1.6rem; }
  .lh:has(.lh-art) .lh-book { width: clamp(7.5rem, 11vw, 10.5rem); }
}

/* ================= Learning World (kid and teen profiles) ================= */
.lw-page { --lw-violet: #9f67ff; }
.lw-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1; margin: .2rem 0 .5rem; }
.lw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.lw-head .lede { margin: 0; }
.lw-levels { display: flex; gap: .4rem; flex-wrap: wrap; }
.lw-levels button { display: grid; text-align: left; gap: .05rem; min-height: 48px; padding: .5rem .9rem; border-radius: 14px; border: 2px solid rgba(255,255,255,.14); background: var(--surface); color: var(--ink); }
.lw-levels button b { font-size: .9375rem; }
.lw-levels button small { font-size: .75rem; color: var(--muted); }
.lw-levels button[aria-pressed="true"] { border-color: var(--sodium); background: linear-gradient(135deg, rgba(232,176,75,.22), rgba(159,103,255,.18)); }
.lw-world { position: relative; height: clamp(22rem, 62vh, 40rem); border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #1a1040 0%, #6b2f8f 45%, #ff8a3d 62%, #1f3d8a 63%, #0d1d4f 100%); touch-action: none; }
.lw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.lw-canvas:active { cursor: grabbing; }
.lw-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.lw-tags { position: absolute; inset: 0; pointer-events: none; }
.lw-tags.flying .lw-tag { opacity: 0 !important; }
.lw-tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-grid; justify-items: center; gap: .05rem; min-height: 44px; padding: .35rem .9rem;
  border-radius: 999px; border: 2px solid var(--c); background: rgba(12,10,28,.78); color: #fff; font-weight: 800; font-size: .875rem; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.7), 0 0 18px -4px var(--c); transition: opacity .25s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lw-tag:hover, .lw-tag:focus-visible { background: color-mix(in srgb, var(--c) 40%, #0c0a1c); }
.lw-tag-badge { font-size: .6875rem; font-weight: 700; color: #ffe6a8; }
.lw-world.flat { touch-action: auto; }
.lw-flat { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.25rem; align-content: center; }
.lw-flat-isle { min-height: 7rem; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; border: 3px solid var(--c); color: #fff; font-weight: 800; display: grid; place-content: center; gap: .2rem;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 35%, color-mix(in srgb, var(--c) 40%, #1a1040) 100%); box-shadow: 0 16px 30px -12px rgba(0,0,0,.8); }
.lw-flat-isle span { font-size: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.lw-flat-isle small { color: #fff3cf; font-weight: 700; }
.lw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: .75rem; margin-top: 1.25rem; }
.lw-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; text-align: left; min-height: 64px; padding: .8rem 1rem; border-radius: 16px; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--rule)); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 18%, var(--surface)), var(--surface)); }
.lw-card:hover { border-color: var(--c); }
.lw-card-dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--c); box-shadow: 0 0 18px -4px var(--c); }
.lw-card-text { display: grid; gap: .1rem; min-width: 0; }
.lw-card-text small { color: var(--muted); font-size: .8125rem; }
.lw-card-badge { font-size: .75rem; font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.lw-lock { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 16px; background: rgba(232,176,75,.1); border: 1px solid rgba(232,176,75,.4); }
.lw-lock span { font-size: 1.6rem; } .lw-lock p { margin: .2rem 0 .6rem; color: var(--muted); }
.lw-lock.pulse { animation: lw-pulse .6s ease 2; }
@keyframes lw-pulse { 50% { transform: scale(1.02); border-color: var(--sodium); } }
.lw-gate { max-width: 40rem; margin: 1.5rem auto; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.lw-gate-art { font-size: 4rem; line-height: 1; filter: drop-shadow(0 10px 20px rgba(159,103,255,.5)); }
.lw-setup { text-align: left; width: 100%; }
.lw-setup .check { display: flex; gap: .6rem; align-items: flex-start; margin: .8rem 0; font-size: .9375rem; }
.lw-setup .check input { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.lw-setup select, .lw-parent select { min-height: 44px; border-radius: 10px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); padding: .4rem .6rem; }
#lw-setup .card { margin-top: .5rem; }

.lw-island-head { padding: 1.4rem 1.5rem; border-radius: 22px; margin: .5rem 0 1rem; border: 1px solid color-mix(in srgb, var(--c) 50%, var(--rule));
  background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), linear-gradient(135deg, #1a1040, var(--surface)); }
.lw-island-head .lede { margin: 0 0 .6rem; }
.lw-island-stars { margin: 0; color: var(--gold-2); font-weight: 700; display: flex; gap: .5rem; align-items: center; }
.lw-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: .8rem; }
.lw-act { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; min-height: 84px; padding: 1rem 1.1rem; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 2px solid color-mix(in srgb, var(--c) 35%, var(--rule)); transition: transform .2s var(--ease), border-color .2s; }
.lw-act:hover { transform: translateY(-2px); border-color: var(--c); }
.lw-act-icon { font-size: 2rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.lw-act-text { display: grid; gap: .15rem; } .lw-act-text b { font-size: 1.0625rem; } .lw-act-text small { color: var(--muted); }
.lw-act-stars { display: grid; justify-items: end; gap: .1rem; } .lw-act-stars small { color: var(--muted); font-size: .75rem; }
.lw-stars { display: inline-flex; gap: .1rem; font-size: 1.15rem; letter-spacing: 0; }
.lw-stars span { color: rgba(255,255,255,.18); } .lw-stars span.on { color: #ffd166; text-shadow: 0 0 10px rgba(255,209,102,.6); }

/* the game itself */
.lw-game { max-width: 46rem; margin: 0 auto; display: grid; gap: 1rem; }
.lw-game-top { display: flex; align-items: center; gap: .8rem; }
.lw-icon-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); font-size: 1.2rem; display: grid; place-items: center; color: var(--ink); }
.lw-progress { flex: 1; height: 12px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.lw-progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--c), #ffd166); transition: width .4s var(--ease); }
.lw-game-title { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin: 0; color: color-mix(in srgb, var(--c) 60%, #fff); }
.lw-q { font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 800; line-height: 1.3; margin: 0 0 .4rem; }
.lw-show { border-radius: 18px; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--rule)); margin-bottom: .8rem; }
.lw-show.pic { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.35; text-align: center; letter-spacing: .05em; word-break: break-word; }
.lw-show.text { font-size: 1.0625rem; line-height: 1.6; }
.lw-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.lw-options.wide { grid-template-columns: 1fr; }
.lw-opt, .lw-bin { min-height: 64px; padding: .8rem 1rem; border-radius: 16px; font-size: 1.125rem; font-weight: 800; color: var(--ink); background: var(--surface-2);
  border: 3px solid color-mix(in srgb, var(--c) 40%, var(--rule)); transition: transform .15s, background .2s, border-color .2s; }
.lw-opt:not(:disabled):hover, .lw-bin:not(:disabled):hover { border-color: var(--c); transform: translateY(-2px); }
.lw-opt.right, .lw-slot.right, .lw-placed li.right, .lw-sort-card.right { border-color: #4ade80 !important; background: rgba(74,222,128,.16); }
.lw-opt.wrong, .lw-slot.wrong, .lw-placed li.wrong, .lw-sort-card.wrong { border-color: #fb7185 !important; background: rgba(251,113,133,.14); }
.lw-opt:disabled, .lw-bin:disabled, .lw-tile:disabled { opacity: 1; cursor: default; }
.lw-opt:disabled:not(.right):not(.wrong) { opacity: .55; }
.lw-slots { display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; margin: .5rem 0 1rem; }
.lw-slot { width: clamp(2.6rem, 9vw, 3.4rem); height: clamp(3rem, 10vw, 3.8rem); border-radius: 12px; border: 3px dashed color-mix(in srgb, var(--c) 50%, var(--rule)); display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; }
.lw-slot.filled { border-style: solid; background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.lw-tiles { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.lw-tile { min-width: 56px; min-height: 56px; padding: .4rem .8rem; border-radius: 14px; font-size: 1.4rem; font-weight: 900; color: #1a1040;
  background: linear-gradient(180deg, #fff6d8, #ffd166); border: 0; box-shadow: 0 5px 0 #c9971f; transition: transform .1s, opacity .2s; }
.lw-tile.wide { font-size: 1rem; font-weight: 800; min-height: 52px; max-width: 100%; text-align: left; }
.lw-tile:disabled { opacity: .25; box-shadow: none; transform: translateY(4px); }
.lw-tile:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 #c9971f; }
.lw-tools { justify-content: center; margin-top: .6rem; }
.lw-placed { list-style: decimal inside; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.lw-placed li { padding: .6rem .9rem; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 40%, var(--rule)); background: var(--surface); font-weight: 700; }
.lw-placed li.empty { list-style: none; color: var(--muted); border-style: dashed; font-weight: 600; text-align: center; }
.lw-answer { margin: .4rem 0 0; padding-left: 1.4rem; text-align: left; }
.lw-sort-card { font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 800; text-align: center; padding: 1.4rem 1rem; border-radius: 18px; border: 3px solid color-mix(in srgb, var(--c) 50%, var(--rule)); background: var(--surface-2); margin: .4rem 0 1rem; }
.lw-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .7rem; }
.lw-note { color: var(--muted); font-size: .875rem; margin: 0; text-align: center; }
.lw-feedback { min-height: 1.6rem; margin: 0; font-size: 1.125rem; text-align: center; }
.lw-feedback.good b { color: #4ade80; } .lw-feedback.try b { color: #fda4af; }
.lw-next { display: flex; justify-content: center; }
.lw-finish { text-align: center; justify-items: center; padding-top: 2rem; }
.lw-finish-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 0; }
.lw-big-stars .lw-stars { font-size: clamp(3rem, 12vw, 4.5rem); gap: .4rem; }
.lw-big-stars .lw-stars span.on { animation: lw-star .6s var(--ease) both; }
.lw-big-stars .lw-stars span:nth-child(2) { animation-delay: .15s; } .lw-big-stars .lw-stars span:nth-child(3) { animation-delay: .3s; }
@keyframes lw-star { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lw-score { font-size: 1.2rem; margin: 0; }
.lw-finish-ctas { justify-content: center; }
body.lw-playing .tabbar { display: none; }

/* home invite card */
.lw-invite { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: radial-gradient(70% 140% at 0% 0%, rgba(159,103,255,.45), transparent 70%), radial-gradient(60% 120% at 100% 100%, rgba(255,138,61,.35), transparent 70%), #17112e; border: 1px solid rgba(159,103,255,.4); }
.lw-invite > span:nth-child(2) { display: grid; gap: .15rem; } .lw-invite b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; } .lw-invite small { color: #d9d2f0; }
.lw-invite .kicker { margin: 0; }
.lw-invite-art { position: relative; width: 4.2rem; height: 3.4rem; }
.lw-invite-art i { position: absolute; border-radius: 50% 50% 45% 45%; box-shadow: 0 0 14px -2px currentColor; }
.lw-invite-art i:nth-child(1) { left: 0; top: .9rem; width: 2rem; height: 1.3rem; background: #9f67ff; color: #9f67ff; }
.lw-invite-art i:nth-child(2) { left: 1.6rem; top: 0; width: 1.8rem; height: 1.2rem; background: #f6b83f; color: #f6b83f; }
.lw-invite-art i:nth-child(3) { left: 2.3rem; top: 1.8rem; width: 1.9rem; height: 1.2rem; background: #3bd4df; color: #3bd4df; }

/* parent controls */
.lw-parent { display: grid; gap: .8rem; }
.lw-parent-row { display: grid; gap: .5rem; padding: .9rem 1rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--rule); }
.lw-parent-who { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; } .lw-parent-who small, .lw-parent-stats { color: var(--muted); font-size: .8125rem; }
.lw-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.lw-table th, .lw-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--rule); }
.lw-table .lw-stars { font-size: .9rem; }

@media (max-width: 52rem) {
  .lw-world { height: 58vh; margin-inline: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .lw-flat { grid-template-columns: repeat(2, 1fr); gap: .7rem; padding: .9rem; }
  .lw-flat-isle { min-height: 5.6rem; }
  .lw-invite { grid-template-columns: auto 1fr; } .lw-invite .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 40rem) {
  .lw-options { grid-template-columns: 1fr; }
  .lw-tag { padding: .3rem .7rem; font-size: .8125rem; }
  .lw-act { grid-template-columns: auto 1fr; } .lw-act-stars { grid-column: 2; justify-items: start; }
}
.lw-game:not(.lw-finish) { padding: clamp(1rem, 3vw, 1.6rem); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--rule));
  background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(255,138,61,.16), transparent 70%), #130e28; }
.lw-finish { padding: 2rem 1rem; border-radius: 24px; background: radial-gradient(60% 60% at 50% 30%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), #130e28; }
@media (max-width: 40rem) {
  .lw-tag { min-height: 36px; padding: .25rem .65rem; font-size: .75rem; }
  .lw-tag-badge { display: none; }
  .lw-world { height: 62vh; }
}

/* ================= Learning World: visual games ================= */
.lw-act.is-visual { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 22%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--c) 60%, var(--rule)); }
.lw-new { display: inline-block; vertical-align: 2px; margin-left: .3rem; padding: .05rem .45rem; border-radius: 99px; font-size: .625rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: var(--sodium); color: var(--on-sodium); }
.lw-confetti { position: absolute; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; z-index: 5; animation: lw-burst .8s ease-out forwards; }
@keyframes lw-burst { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(200deg) scale(.4); opacity: 0; } }
.shake { animation: lw-shake .45s; }
@keyframes lw-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* balloons */
.lw-sky { position: relative; height: clamp(20rem, 52vh, 28rem); border-radius: 20px; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 110%, rgba(255,209,102,.35), transparent 70%), linear-gradient(180deg, #2b1a5e 0%, #6b3fa0 55%, #ff9a5a 100%); }
.lw-sky::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 90px; border-radius: 50%; background: #3fae6a; box-shadow: 0 -10px 0 #2f8f55 inset; }
.lw-balloon { position: absolute; left: var(--x); bottom: -130px; width: 74px; height: 92px; border: 0; padding: 0; background: none; cursor: pointer;
  animation: lw-rise var(--dur) linear infinite; animation-delay: var(--delay); }
.lw-balloon span { position: absolute; inset: 0 0 18px 0; display: grid; place-items: center; border-radius: 50% 50% 46% 46%; font-size: 1.5rem; font-weight: 900; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.4);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 8%, transparent 18%), var(--bc); box-shadow: inset -8px -10px 0 rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.25); }
.lw-balloon::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 22px; background: rgba(255,255,255,.7); transform: translateX(-50%); }
.lw-balloon::before { content: ""; position: absolute; left: 50%; bottom: 16px; width: 10px; height: 8px; transform: translateX(-50%); background: var(--bc); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes lw-rise { from { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-260px) rotate(3deg); } to { transform: translateY(calc(-1 * clamp(20rem, 52vh, 28rem) - 140px)) rotate(-3deg); } }
.lw-sky.still .lw-balloon, .lw-balloon.popped, .lw-balloon.hint, .lw-balloon.fade { animation-play-state: paused; }
.lw-sky.still .lw-balloon { animation: none; bottom: auto; top: calc(14% + (var(--n, 0)) * 1%); }
.lw-sky.still .lw-balloon:nth-child(odd) { top: 12%; } .lw-sky.still .lw-balloon:nth-child(even) { top: 46%; }
.lw-balloon.popped span { animation: lw-pop .35s forwards; }
@keyframes lw-pop { to { transform: scale(1.6); opacity: 0; } }
.lw-balloon.popped::after, .lw-balloon.popped::before { opacity: 0; }
.lw-balloon.hint span { box-shadow: 0 0 0 5px #fff, 0 0 30px 10px rgba(255,255,255,.7); }
.lw-balloon.fade { opacity: .25; }
.lw-balloon:focus-visible span { outline: 4px solid #fff; outline-offset: 3px; }

/* picture match */
.lw-word-card { text-align: center; font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: .04em; padding: .4rem 1rem .8rem; color: #fff; }
.lw-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.lw-pic { aspect-ratio: 1.25; border-radius: 22px; border: 3px solid color-mix(in srgb, var(--c) 45%, var(--rule)); font-size: clamp(3.2rem, 14vw, 5rem);
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.14), transparent 60%), linear-gradient(160deg, #2a1d55, #1a1430); display: grid; place-items: center;
  animation: lw-card-in .45s var(--ease) both; animation-delay: var(--d); transition: transform .15s, border-color .2s; }
.lw-pic:not(:disabled):hover { transform: translateY(-3px) scale(1.02); border-color: var(--c); }
.lw-pic.right { border-color: #4ade80; background: radial-gradient(circle, rgba(74,222,128,.35), #1a1430 70%); }
.lw-pic.wrong { border-color: #fb7185; }
.lw-pic:disabled { cursor: default; }
@keyframes lw-card-in { from { opacity: 0; transform: translateY(14px) rotateX(40deg); } to { opacity: 1; transform: none; } }

/* solar system */
.lw-space { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; padding: 1rem .8rem; border-radius: 20px; overflow: hidden;
  background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent), linear-gradient(135deg, #080a2a, #1b0f3d); }
.lw-sun { width: clamp(52px, 12vw, 84px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6c2, #ffcc33 40%, #ff8a00); box-shadow: 0 0 40px 12px rgba(255,170,40,.6); }
.lw-orbits { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: .35rem; }
.lw-orbit { position: relative; min-height: 86px; border-radius: 14px; border: 2px dashed rgba(255,255,255,.28); background: rgba(255,255,255,.03); display: grid; place-items: center; color: #fff; padding: .3rem; }
.lw-orbit:not(:disabled):hover { border-color: var(--c); background: rgba(255,255,255,.08); }
.lw-orbit.filled { border-style: solid; border-color: rgba(74,222,128,.7); }
.lw-orbit-num { position: absolute; top: 4px; left: 6px; font-size: .6875rem; font-weight: 800; color: rgba(255,255,255,.6); }
.lw-orbit .ghost { position: absolute; opacity: .28; filter: grayscale(.3); }
.lw-planet { position: relative; display: block; width: var(--ps); height: var(--ps); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55), transparent 35%), var(--pc); box-shadow: inset -6px -6px 0 rgba(0,0,0,.22); }
.lw-planet.bands { background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.5), transparent 35%), repeating-linear-gradient(170deg, var(--pc) 0 6px, #b97a45 6px 9px, #f0d2a6 9px 13px); }
.lw-planet.land { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 30%), radial-gradient(circle at 60% 55%, #46b06a 0 22%, transparent 24%), radial-gradient(circle at 30% 70%, #46b06a 0 14%, transparent 16%), var(--pc); }
.lw-planet.ring::after { content: ""; position: absolute; left: -35%; right: -35%; top: 42%; height: 18%; border-radius: 50%; border: 3px solid #f3e1a8; transform: rotate(-18deg); }
.lw-tray { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .9rem; }
.lw-planet-btn { display: grid; justify-items: center; align-content: center; gap: .3rem; min-width: 76px; min-height: 92px; padding: .4rem .5rem; border-radius: 16px; border: 2px solid var(--rule); background: var(--surface); color: var(--ink); touch-action: none; }
.lw-planet-btn small { font-weight: 800; font-size: .75rem; }
.lw-planet-btn.selected { border-color: var(--sodium); box-shadow: 0 0 0 3px rgba(232,176,75,.35); transform: translateY(-3px); }
.lw-drag { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) scale(1.2); }
.lw-space.spinning .lw-orbit .placed { animation: lw-orbit 3s linear infinite; }
.lw-space.spinning .lw-orbit:nth-child(2n) .placed { animation-duration: 4.5s; }
.lw-space.spinning .lw-orbit:nth-child(3n) .placed { animation-duration: 6s; }
@keyframes lw-orbit { from { transform: rotate(0) translateX(10px) rotate(0); } to { transform: rotate(360deg) translateX(10px) rotate(-360deg); } }

/* color mixer */
.lw-mixer { display: flex; justify-content: center; align-items: flex-end; gap: clamp(1.5rem, 6vw, 3.5rem); margin: .5rem 0 1rem; }
.lw-target, .lw-bowl-wrap { display: grid; justify-items: center; gap: .4rem; text-align: center; } .lw-target small, .lw-bowl-wrap small { color: var(--muted); font-weight: 700; text-transform: capitalize; }
.lw-swatch { width: 92px; height: 92px; border-radius: 22px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.lw-bowl { position: relative; width: 150px; height: 84px; border-radius: 0 0 80px 80px; overflow: hidden; background: linear-gradient(180deg, #e9e4f7, #b9b1d6); border: 4px solid #fff; border-top-width: 6px; }
.lw-paint { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 100%); transition: height .45s var(--ease), background-color .45s; border-radius: 40% 40% 0 0 / 14% 14% 0 0; }
.lw-bowl.swirl .lw-paint { animation: lw-swirl .8s ease; }
@keyframes lw-swirl { 30% { transform: scaleX(1.08) skewX(8deg); } 60% { transform: scaleX(.94) skewX(-8deg); } }
.lw-buckets { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.lw-bucket { display: grid; justify-items: center; gap: .3rem; min-width: 74px; min-height: 92px; padding: .45rem; border-radius: 16px; border: 2px solid var(--rule); background: var(--surface); color: var(--ink); text-transform: capitalize; }
.lw-bucket small { font-weight: 800; }
.lw-can { position: relative; width: 46px; height: 46px; border-radius: 6px 6px 12px 12px; background: linear-gradient(90deg, #8f97a3, #e3e7ee 45%, #9aa2ad); overflow: hidden; }
.lw-can span { position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--pc); border-bottom: 3px solid rgba(0,0,0,.1); }
.lw-bucket.pour { animation: lw-pour .45s ease; }
@keyframes lw-pour { 40% { transform: rotate(-28deg) translateY(-6px); } }

/* corner store */
.lw-store { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
.lw-shelf { position: relative; display: grid; place-items: center; gap: .3rem; min-width: 130px; padding: 1rem; border-radius: 18px; background: linear-gradient(180deg, #3a2a1a, #23180f); border: 2px solid #5a3f22; }
.lw-item { font-size: 3.6rem; line-height: 1; }
.lw-tag { padding: .2rem .6rem; border-radius: 8px; background: #fff3c4; color: #3a2400; font-weight: 900; transform: rotate(-4deg); box-shadow: 0 3px 0 #c9a54a; }
.lw-paid { font-size: .8125rem; font-weight: 800; color: #b9f6ca; }
.lw-register { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; border: 2px solid color-mix(in srgb, var(--c) 50%, var(--rule)); background: #101c17; }
.lw-reg-top { display: flex; justify-content: space-between; align-items: baseline; padding: .55rem .9rem; background: #0b2a1e; font-weight: 700; color: #b9f6ca; }
.lw-reg-top b { font-family: ui-monospace, monospace; font-size: 1.5rem; color: #6dff9c; }
.lw-tray-money { display: flex; flex-wrap: wrap; gap: .35rem; align-content: flex-start; padding: .7rem; min-height: 96px; }
.lw-empty-note { color: rgba(255,255,255,.45); align-self: center; margin: auto; }
.lw-wallet { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.lw-money { display: grid; justify-items: center; align-content: center; gap: .2rem; border: 0; padding: .3rem; background: none; color: var(--ink); min-width: 60px; min-height: 72px; }
.lw-money.coin > span { width: var(--ms); height: var(--ms); border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 900; color: #2b2b2b;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), transparent 40%), var(--mc); box-shadow: inset 0 0 0 3px rgba(0,0,0,.12), 0 3px 6px rgba(0,0,0,.35); }
.lw-money.bill > span { width: 72px; height: 36px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; color: #0d3b17;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.35) 0 22%, transparent 24%), var(--mc); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 3px 6px rgba(0,0,0,.35); }
.lw-money small { font-size: .6875rem; font-weight: 700; color: var(--muted); }
.lw-money.small { min-width: 0; min-height: 0; padding: 0; }
.lw-money.small.bill > span { width: 58px; height: 30px; font-size: .75rem; }
.lw-money:not(:disabled):active > span { transform: scale(.92); }

@media (max-width: 40rem) {
  .lw-store { grid-template-columns: 1fr; } .lw-shelf { grid-auto-flow: column; justify-content: center; min-width: 0; }
  .lw-pics { gap: .55rem; } .lw-balloon { width: 62px; height: 80px; } .lw-balloon span { font-size: 1.25rem; }
  .lw-space { grid-template-columns: 1fr; justify-items: center; } .lw-orbits { width: 100%; grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lw-balloon { animation: none !important; } }

/* ===================== Good Vibes Lounge + Zen Garden ===================== */
.lounge { max-width: 1100px; margin: 0 auto; }
.lounge-hero { padding: 2.2rem 1.6rem; border-radius: 26px; margin-bottom: 1.4rem; position: relative; overflow: hidden;
  background: radial-gradient(60% 120% at 85% 10%, rgba(255,170,120,.45), transparent 70%), radial-gradient(70% 120% at 0% 100%, rgba(120,90,200,.5), transparent 70%), linear-gradient(180deg, #1a1838, #0f1426); border: 1px solid rgba(255,200,160,.25); }
.lounge-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); margin: .2rem 0 .4rem; }
.lounge-hero p { color: #e6def5; max-width: 38rem; margin: 0; } .lounge-hero .eyebrow { color: var(--gold-2); font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.lounge-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.lounge-card { display: grid; text-decoration: none; color: var(--ink); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,210,170,.28); background: #141428; transition: transform .2s, box-shadow .2s; }
.lounge-card:hover, .lounge-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(255,160,110,.55); }
.lounge-card-body { display: grid; gap: .35rem; padding: 1rem 1.2rem 1.2rem; } .lounge-card-body strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.lounge-card-body span { color: #d9d2ea; } .lounge-card-body em { font-style: normal; font-weight: 800; color: var(--gold-2); }
.zg-card-art { position: relative; height: 190px; background: linear-gradient(180deg, #13203a 0%, #4a3a6e 45%, #ffaa80 78%, #2a4e66 79%, #12324a 100%); overflow: hidden; }
.zg-card-art .s1 { position: absolute; left: 18%; top: 52%; width: 46px; height: 46px; border-radius: 50%; background: #ffe2b0; box-shadow: 0 0 40px 14px rgba(255,190,130,.7); }
.zg-card-art .s2 { position: absolute; inset: auto 0 0 0; height: 21%; background: repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 2px, transparent 2px 7px); }
.zg-card-art .isle { position: absolute; left: 50%; bottom: 14%; width: 62%; height: 34px; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(180deg, #7fb86a 0 40%, #6e4b3a 41%); box-shadow: 0 16px 24px -10px rgba(0,0,0,.6); }
.zg-card-art .tree { position: absolute; left: 40%; bottom: 30%; width: 60px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd0de, #f39ab9); box-shadow: 30px 8px 0 -6px #f6b3c8; }
.zg-card-art .lamp { position: absolute; left: 66%; bottom: 31%; width: 10px; height: 14px; border-radius: 3px; background: #ffd38d; box-shadow: 0 0 18px 6px rgba(255,170,80,.75); }
.lounge-blocked { max-width: 34rem; margin: 3rem auto; text-align: center; }
.lounge-invite { background: radial-gradient(70% 140% at 0% 0%, rgba(255,150,110,.4), transparent 70%), radial-gradient(60% 120% at 100% 100%, rgba(110,180,200,.3), transparent 70%), #16182c; border-color: rgba(255,190,140,.4); }
.zg-mini { position: relative; width: 4.2rem; height: 3.4rem; }
.zg-mini i { position: absolute; border-radius: 50%; }
.zg-mini i:nth-child(1) { left: .2rem; right: .2rem; bottom: .3rem; height: .9rem; background: linear-gradient(180deg, #7fb86a 0 45%, #6e4b3a 46%); }
.zg-mini i:nth-child(2) { left: 1rem; bottom: 1rem; width: 1.8rem; height: 1.5rem; background: #f39ab9; box-shadow: 0 0 14px -2px #f39ab9; }
.zg-mini i:nth-child(3) { right: .7rem; bottom: 1.05rem; width: .45rem; height: .6rem; border-radius: 2px; background: #ffd38d; box-shadow: 0 0 10px 3px rgba(255,170,80,.7); }

body.zg-playing .tabbar { display: none; }
body.zg-playing .page { padding: 0; max-width: none; }
.zg { position: relative; }
.zg-stage { position: relative; height: calc(100dvh - var(--hdr-h, 64px)); min-height: 420px; overflow: hidden; background: #241f3d; touch-action: none; user-select: none; -webkit-user-select: none; }
.zg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: crosshair; }
.zg-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gold-2); }
.zg-top { position: absolute; z-index: 2; top: .75rem; left: .75rem; right: .75rem; display: flex; align-items: center; gap: .75rem; pointer-events: none; }
.zg-top > * { pointer-events: auto; }
.zg-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 2.1rem); color: #fff6ea; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.zg-status { margin-left: auto; font-size: .8rem; font-weight: 700; color: #fff1dc; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.zg-btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff8ee; font: inherit; font-weight: 700; font-size: .875rem; text-decoration: none; cursor: pointer;
  background: rgba(22,18,40,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zg-btn:hover { background: rgba(40,32,70,.7); } .zg-btn.ghost { background: transparent; } .zg-btn[aria-pressed="true"] { border-color: var(--gold-2); color: var(--gold-2); }
.zg-btn:disabled { opacity: .45; cursor: default; }
.zg-hint { position: absolute; z-index: 2; left: 50%; top: 4.4rem; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); margin: 0; padding: .5rem .9rem; border-radius: 999px; text-align: center;
  font-size: .85rem; color: #fff6ea; background: rgba(20,16,36,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .8s; pointer-events: none; }
.zg-hint.fade { opacity: 0; }
.zg-nogl .zg-hint { top: 40%; border-radius: 16px; white-space: normal; }
.zg-toast { position: absolute; z-index: 3; left: 50%; bottom: 9.5rem; transform: translate(-50%, 10px); padding: .55rem 1rem; border-radius: 999px; background: rgba(255,240,220,.95); color: #2a1f33; font-weight: 700; font-size: .875rem; opacity: 0; transition: .3s; pointer-events: none; max-width: calc(100% - 2rem); text-align: center; }
.zg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.zg-dock { position: absolute; z-index: 2; left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(100% - 1.5rem, 760px); display: grid; gap: .5rem; }
.zg-tools { display: flex; gap: .4rem; overflow-x: auto; padding: .45rem; border-radius: 22px; background: rgba(20,16,36,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); scrollbar-width: none; }
.zg-tools::-webkit-scrollbar { display: none; }
.zg-tool { flex: 1 0 auto; min-width: 64px; min-height: 58px; display: grid; place-items: center; gap: .1rem; padding: .35rem .4rem; border-radius: 16px; border: 1px solid transparent; background: transparent; color: #f4ecff; font: inherit; cursor: pointer; }
.zg-tool span { font-size: 1.45rem; line-height: 1; } .zg-tool small { font-size: .68rem; font-weight: 700; white-space: nowrap; }
.zg-tool:hover { background: rgba(255,255,255,.08); }
.zg-tool[aria-checked="true"] { background: linear-gradient(180deg, rgba(255,205,140,.35), rgba(255,150,100,.25)); border-color: rgba(255,210,160,.7); box-shadow: 0 0 18px -6px rgba(255,180,110,.9); }
.zg-tool.erase span { font-size: 1.15rem; color: #ffb3b3; }
.zg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
@media (max-width: 560px) {
  .zg-hint { top: 3.9rem; font-size: .78rem; border-radius: 14px; white-space: normal; }
  .zg-actions .zg-btn { padding: .45rem .7rem; font-size: .8rem; }
  .zg-toast { bottom: 10.5rem; }
}

/* Learning World: Pizza Fractions + Clock Time */
.lw-pizza-wrap { display: grid; justify-items: center; gap: .4rem; }
.lw-pizza { width: min(78vw, 320px); height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); touch-action: manipulation; }
.lw-pizza .crust { fill: #d9a35b; stroke: #a8692c; stroke-width: 3; }
.lw-slice { cursor: pointer; outline: none; }
.lw-slice path { fill: #f4d77c; stroke: #c98b3e; stroke-width: 2.5; transition: fill .2s; }
.lw-slice .pep { fill: #c0392b; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.6,1); }
.lw-slice:hover path { fill: #f8e19a; }
.lw-slice.on path { fill: #f6c75a; } .lw-slice.on .pep { opacity: 1; transform: scale(1); }
.lw-slice:focus-visible path { stroke: #fff; stroke-width: 5; }
.lw-slice.want path { stroke: #4cc9f0; stroke-width: 5; }
.lw-pizza-count { margin: 0; font-weight: 700; font-size: 1.1rem; }
.lw-clock-wrap { display: grid; justify-items: center; gap: .3rem; }
.lw-clock { width: min(74vw, 300px); height: auto; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); }
.lw-clock .face { fill: #fffaf0; stroke: #f0a04b; stroke-width: 8; }
.lw-clock .tk { stroke: #8a8a9a; stroke-width: 1.5; } .lw-clock .tk.big { stroke: #2b2440; stroke-width: 3; }
.lw-clock text { font: 700 17px system-ui, sans-serif; fill: #2b2440; text-anchor: middle; }
.lw-clock .hand line { stroke-linecap: round; } .lw-clock .hour line { stroke: #2b2440; stroke-width: 8; } .lw-clock .min line { stroke: #e63946; stroke-width: 5; }
.lw-clock .grip { fill: transparent; stroke: transparent; } .lw-clock .hand:not(.fixed) { cursor: grab; } .lw-clock .hand:not(.fixed) .grip { fill: rgba(255,209,102,.35); }
.lw-clock .pin { fill: #f0a04b; }
.lw-clock.dragging .hand { cursor: grabbing; }
.lw-clock .hand { transition: transform .12s; } .lw-clock.dragging .hand { transition: none; }
.lw-clock.fix .hand { transition: transform .6s ease; } .lw-clock.fix .face { stroke: #4cc9f0; }
.lw-clock-start { margin: 0; font-size: 1rem; }
.lw-clock-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .5rem; margin: .6rem 0; }
.lw-clock-btns span { font-weight: 700; font-size: .9rem; margin-left: .4rem; }
.lw-clock-btns .btn { min-width: 44px; min-height: 44px; }
.lw-clock-hint { text-align: center; font-size: .85rem; opacity: .8; margin: .3rem 0 0; }
@media (prefers-reduced-motion: reduce) { .lw-clock .hand, .lw-slice .pep { transition: none !important; } }
.lw-pizza, .lw-slice, .lw-clock { -webkit-tap-highlight-color: transparent; }
.lw-slice:focus { outline: none; }
.lw-clock-btns { gap: .5rem 1.2rem; }
.lw-clock-pair { display: inline-flex; align-items: center; gap: .4rem; }
.lw-clock-pair span { margin: 0 .2rem 0 0; min-width: 5.2em; text-align: right; }
.zg-tool.isle { background: rgba(127,214,224,.12); } .zg-tool.isle[aria-checked="true"] { background: linear-gradient(180deg, rgba(127,214,224,.4), rgba(80,160,200,.3)); border-color: rgba(160,230,240,.8); box-shadow: 0 0 18px -6px rgba(127,214,224,.9); }
.zg-tool.turn span { font-size: 1.3rem; color: #ffe2a8; }
/* Zen Garden music picker */
.zg-music { position: absolute; z-index: 4; right: .75rem; bottom: 9.6rem; width: min(calc(100% - 1.5rem), 360px); max-height: calc(100% - 12rem); overflow: auto; padding: .8rem; border-radius: 20px;
  background: rgba(20,16,36,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,220,180,.25); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); color: #fff6ea; }
.zg-music-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.zg-music h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
.zg-x { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #fff6ea; font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.zg-moods { display: grid; gap: .35rem; }
.zg-mood { display: grid; text-align: left; gap: .1rem; padding: .55rem .75rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.zg-mood b { font-size: .95rem; } .zg-mood small { font-size: .78rem; color: #d9cfe8; }
.zg-mood:hover { background: rgba(255,255,255,.09); }
.zg-mood[aria-checked="true"] { border-color: rgba(255,210,160,.75); background: linear-gradient(180deg, rgba(255,205,140,.25), rgba(255,150,100,.15)); }
.zg-mood[aria-checked="true"] b::after { content: '  ♪'; color: var(--gold-2); }
.zg-vol { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; font-size: .85rem; font-weight: 700; }
.zg-vol input { flex: 1; accent-color: #f4cd80; min-height: 32px; }
.zg-btn.on { border-color: var(--gold-2); color: var(--gold-2); }
@media (max-width: 560px) { .zg-music { left: .75rem; right: .75rem; width: auto; bottom: 10.4rem; } }
#zg-sound { max-width: 11.5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: inline-block; line-height: 1.9; }
@media (max-width: 560px) {
  .zg-music { padding: .65rem; bottom: 10rem; max-height: calc(100% - 11.5rem); }
  .zg-music h2 { font-size: 1.2rem; }
  .zg-moods { grid-template-columns: 1fr 1fr; gap: .3rem; }
  .zg-mood { padding: .45rem .55rem; } .zg-mood b { font-size: .85rem; } .zg-mood small { font-size: .7rem; line-height: 1.25; }
  #zg-sound { max-width: 9.5em; }
}

/* ===== Learning World: Grow a Plant, Map Explorer, Beat Maker, Catch the Rhyme, Safe Crossing ===== */
.lw-emo { font-size: 1.8rem; line-height: 1; display: block; margin-bottom: .2rem; }
.lw-options .lw-opt .lw-emo + span { font-size: 1rem; }
/* plant */
.lw-garden { display: grid; gap: .6rem; justify-items: center; }
.lw-plant-box { width: min(64vw, 240px); }
.lw-plant-box.grow { animation: lw-grow .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes lw-grow { from { transform: scale(.92); } to { transform: none; } }
.lw-plant { width: 100%; height: auto; overflow: visible; }
.pl-pot { fill: #c8683f; } .pl-rim { fill: #dd7c4e; } .pl-soil { fill: #5a3a28; } .pl-shadow { fill: rgba(0,0,0,.25); }
.pl-seed { fill: #9c6b3f; } .pl-stem { fill: none; stroke: #4c9a4e; stroke-width: 6; stroke-linecap: round; }
.pl-root { fill: none; stroke: #c9a67a; stroke-width: 3; stroke-linecap: round; }
.pl-leaf { fill: #5fbf5a; stroke: #3e8a3f; stroke-width: 1.5; } .pl-bud { fill: #ff8fab; } .pl-petal { fill: #ff8fab; stroke: #e0607f; stroke-width: 1; }
.pl-center { fill: #ffd166; } .pl-fruit { fill: #e63946; }
.pl-hot { fill: transparent; cursor: pointer; } .pl-hot:hover { fill: rgba(255,209,102,.18); } .pl-hot.want { fill: rgba(74,222,128,.28); stroke: #4ade80; stroke-width: 2; }
.lw-part-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; } .lw-part-btns .want { border-color: #4ade80; }
.lw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 520px; }
.lw-chip { min-height: 48px; padding: .55rem .95rem; border-radius: 999px; border: 2px solid var(--line, rgba(255,255,255,.2)); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.lw-chip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 25%, transparent); }
.lw-chip.right { border-color: #4ade80 !important; } .lw-chip.wrong { border-color: #fb7185 !important; }
/* map */
.lw-map-wrap { display: grid; grid-template-columns: auto auto; gap: .6rem 1rem; justify-content: center; align-items: start; margin-bottom: .8rem; }
.lw-map { --cell: min(13vw, 54px); background: linear-gradient(160deg, #e9dcb5, #d8c48f); border-radius: 14px; padding: .4rem .5rem .6rem .3rem; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6), inset 0 0 30px rgba(120,80,30,.35); color: #4a3720; }
.lw-map-cols { display: grid; grid-template-columns: 1.3rem repeat(var(--n), var(--cell)); font-weight: 800; text-align: center; font-size: .85rem; } .lw-map-cols i, .lw-map-rows i { font-style: normal; }
.lw-map-body { display: grid; grid-template-columns: 1.3rem auto; }
.lw-map-rows { display: grid; grid-template-rows: repeat(var(--n), var(--cell)); align-items: center; font-weight: 800; font-size: .85rem; text-align: center; }
.lw-map-grid { display: grid; grid-template-columns: repeat(var(--n), var(--cell)); grid-template-rows: repeat(var(--n), var(--cell)); border: 2px solid #8a6a3a; }
.lw-cell { position: relative; border: 1px dashed rgba(110,80,40,.45); background: transparent; font-size: calc(var(--cell) * .55); padding: 0; cursor: pointer; display: grid; place-items: center; color: inherit; }
.lw-cell:hover { background: rgba(255,255,255,.25); }
.lw-cell.right { background: rgba(74,222,128,.45); box-shadow: inset 0 0 0 3px #22a356; } .lw-cell.wrong { background: rgba(251,113,133,.4); }
.lw-me { position: absolute; inset: auto 2px 2px auto; font-size: calc(var(--cell) * .42); filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.lw-compass { display: grid; grid-template-areas: ". n ." "w c e" ". s ."; width: 74px; height: 74px; place-items: center; border-radius: 50%; background: #f3ead1; color: #4a3720; font-weight: 900; font-size: .85rem; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.lw-compass b:first-child { grid-area: n; color: #c0392b; } .lw-compass b:last-child { grid-area: s; } .lw-compass span:nth-of-type(1) { grid-area: w; } .lw-compass span:nth-of-type(2) { grid-area: e; } .lw-compass i { grid-area: c; font-style: normal; }
.lw-scale { grid-column: 1 / -1; margin: 0; text-align: center; font-weight: 700; }
@media (max-width: 560px) { .lw-map-wrap { grid-template-columns: 1fr; justify-items: center; } .lw-compass { width: 60px; height: 60px; order: -1; } }
/* beat */
.lw-beat { display: grid; gap: .5rem; max-width: 640px; margin: 0 auto; }
.lw-beat-row { display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: .4rem; }
.lw-inst { font-size: 1.5rem; text-align: center; }
.lw-steps { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 4px; }
.lw-tstep { height: 18px; border-radius: 5px; background: rgba(255,255,255,.1); } .lw-tstep.on { background: var(--c); box-shadow: 0 0 10px -2px var(--c); }
.lw-step { min-height: 44px; border-radius: 9px; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--ink-2, #bbb); font: inherit; cursor: pointer; padding: 0; position: relative; }
.lw-step small { position: absolute; top: 2px; left: 4px; font-size: .6rem; opacity: .7; }
.lw-step.beat { background: rgba(255,255,255,.11); }
.lw-step[aria-pressed="true"] { background: var(--c); border-color: color-mix(in srgb, var(--c) 70%, white); box-shadow: 0 0 12px -3px var(--c); }
.lw-step.now { outline: 3px solid #fff; outline-offset: -3px; }
.lw-step.right { border-color: #4ade80; } .lw-step.wrong { border-color: #fb7185; background: rgba(251,113,133,.35); }
.lw-beat-grid { padding: .5rem; border-radius: 14px; background: rgba(0,0,0,.18); }
/* rhyme rain */
.lw-rain { position: relative; height: min(52vh, 420px); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #23305e, #3d4f8f 60%, #5c6fb0); }
.lw-rain-target { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: .3rem .9rem; border-radius: 999px; background: #ffd166; color: #2b2440; font-weight: 900; font-size: 1.2rem; z-index: 2; text-transform: uppercase; letter-spacing: .04em; }
.lw-drop { position: absolute; left: var(--x); top: -60px; min-width: 76px; min-height: 48px; padding: .4rem .7rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.92); color: #2b2440; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  animation: lw-fall var(--dur) linear var(--delay) infinite; box-shadow: 0 8px 16px -8px rgba(0,0,0,.6); z-index: 1; }
@keyframes lw-fall { from { top: -60px; } to { top: calc(100% + 10px); } }
.lw-rain.still .lw-drop { animation: none; top: calc(20% + (var(--x) * .9)); }
.lw-drop.stop { animation-play-state: paused; } .lw-drop.fade { opacity: .25; }
.lw-drop.hint { border-color: #4ade80; box-shadow: 0 0 18px #4ade80; } .lw-drop.caught { background: #4ade80; color: #08311a; }
.lw-drop.shake { animation-play-state: paused; border-color: #fb7185; }
.lw-basket { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 2.4rem; pointer-events: none; }
/* street */
.lw-street-wrap { max-width: 520px; margin: 0 auto .8rem; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 28px -14px rgba(0,0,0,.7); }
.lw-street { display: block; width: 100%; height: auto; }
.st-walk-far, .st-side { fill: #b9b3a6; } .st-road { fill: #3a3d46; } .st-mid { fill: #e9c46a; } .st-zebra { fill: #f2f2f2; }
.st-box { fill: #1e1e24; stroke: #555; } .st-pole { fill: #6b6f78; }
.st-walk circle, .st-walk path { fill: none; stroke: #f5f5f5; stroke-width: 3; stroke-linecap: round; } .st-walk circle { fill: #f5f5f5; }
.st-hand path { fill: #ff6b3d; } .st-signal.flash .st-hand { animation: st-blink 1s steps(2) infinite; } .st-count { fill: #ff6b3d; font: 900 13px system-ui; text-anchor: middle; }
@keyframes st-blink { 50% { opacity: .15; } }
.st-win { fill: #bfe3ff; } .st-tire { fill: #1b1b1f; } .st-light { fill: #ffe08a; }
.st-car.moving.a { animation: st-drive-r 3.2s linear infinite; } .st-car.moving.b { animation: st-drive-l 3.8s linear infinite -1.4s; }
@keyframes st-drive-r { from { transform: translate(-60px, 112px); } to { transform: translate(420px, 112px); } }
@keyframes st-drive-l { from { transform: translate(420px, 162px) scale(-1, 1); } to { transform: translate(-60px, 162px) scale(-1, 1); } }
.lw-street.still .st-car.moving.a { animation: none; transform: translate(90px, 112px); } .lw-street.still .st-car.moving.b { animation: none; transform: translate(260px, 162px) scale(-1, 1); }
.lw-street.still .st-signal.flash .st-hand { animation: none; }
.st-kid { transform: translate(176px, 222px); transition: transform 2.2s ease-in-out; } .st-kid circle { fill: #8d5524; } .st-kid rect { fill: #4361ee; }
.lw-street.go .st-kid { transform: translate(176px, 78px); }
.lw-street.still .st-kid { transition: none; }
.st-ball { fill: #ff595e; stroke: #fff; stroke-width: 2; } .st-night { fill: rgba(10,14,40,.55); pointer-events: none; } .st-emo { font-size: 26px; }
@media (prefers-reduced-motion: reduce) { .lw-drop, .st-car, .st-hand, .lw-plant-box.grow { animation: none !important; } .st-kid { transition: none !important; } }
.pl-pot.see, .pl-rim.see { opacity: .45; }
.lw-drop { max-width: 44%; }
@media (max-width: 560px) { .lw-drop { min-width: 64px; font-size: .95rem; padding: .35rem .6rem; } }
.zg-sub { margin: .9rem 0 .4rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.zg-nature { display: flex; flex-wrap: wrap; gap: .4rem; }
.zg-chip { min-height: 44px; padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: inherit; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.zg-chip[aria-pressed="true"] { border-color: rgba(160,230,240,.85); background: rgba(127,214,224,.22); }
.zg-gfx { display: grid; gap: .35rem; grid-template-columns: 1fr 1fr; }
.zg-perf { margin: .5rem 0 0; font-size: .78rem; color: #d9cfe8; }
.zg-music { width: min(calc(100% - 1.5rem), 420px); }
.zg-moods { grid-template-columns: 1fr 1fr; gap: .3rem; }
.zg-music .zg-mood { padding: .4rem .6rem; } .zg-music .zg-mood b { font-size: .85rem; } .zg-music .zg-mood small { font-size: .7rem; line-height: 1.25; }
.zg-music .zg-vol { margin-top: .45rem; } .zg-music .zg-sub { margin: .7rem 0 .35rem; }

/* ---------------- Puzzle Pavilion (Peaceful Puzzles · Water Flow) ---------------- */
.pv-card-art { position: relative; height: 190px; overflow: hidden; background: linear-gradient(180deg, #1b2440 0%, #5a4170 42%, #f0a07a 70%, #2a4a60 71%, #10283a 100%); }
.pv-card-art .g { position: absolute; left: 50%; bottom: 12%; width: 58%; height: 58%; transform: translateX(-50%) perspective(260px) rotateX(48deg); border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 25%), repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px 25%), linear-gradient(180deg, #cfc6b8, #9e958a); box-shadow: 0 18px 30px -10px rgba(0,0,0,.6); }
.pv-card-art .w1, .pv-card-art .w2 { position: absolute; height: 9px; border-radius: 9px; background: linear-gradient(90deg, #7fd0ff, #3f9fe0); box-shadow: 0 0 14px rgba(110,190,255,.7); }
.pv-card-art .w1 { left: 30%; bottom: 40%; width: 30%; } .pv-card-art .w2 { left: 56%; bottom: 26%; width: 9px; height: 34px; background: linear-gradient(180deg, #7fd0ff, #3f9fe0); }
.pv-card-art .p { position: absolute; left: 58%; bottom: 18%; width: 30px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #f6c6d6 0 30%, #3f9fe0 34%); box-shadow: 0 0 12px rgba(120,200,255,.6); }
.pv-card-art .l { position: absolute; left: 16%; bottom: 46%; width: 10px; height: 14px; border-radius: 3px; background: #ffd38d; box-shadow: 0 0 18px 6px rgba(255,170,80,.75); }
.pv .zg-top { flex-wrap: wrap; }
.pv-level { margin-left: auto; }
.pv-canvas { cursor: pointer; }
.pv-goals { position: absolute; z-index: 2; top: 4.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; width: max-content; max-width: calc(100% - 1.5rem); pointer-events: none; }
.pv-goal { padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff6ea; background: rgba(20,16,36,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); }
.pv-goal.ok { border-color: rgba(150,230,190,.6); color: #c9f5dc; }
.pv-goal.warn { border-color: rgba(255,150,130,.7); color: #ffd1c6; }
.pv-hintbox { position: absolute; z-index: 3; left: 50%; bottom: 5.4rem; transform: translateX(-50%); width: min(calc(100% - 1.5rem), 520px); display: flex; gap: .5rem; align-items: flex-start; padding: .7rem .5rem .7rem 1rem; border-radius: 18px;
  background: rgba(255,244,222,.96); color: #2a1f14; box-shadow: 0 16px 40px -18px rgba(0,0,0,.7); }
.pv-hintbox p { margin: .2rem 0; font-weight: 600; line-height: 1.45; } .pv-hintbox .zg-x { color: #2a1f14; flex: none; }
.pv .zg-toast { bottom: 5.6rem; }
.pv .zg-music, .pv-panel { bottom: 4.9rem; max-height: calc(100% - 10.5rem); }
.pv-rules { margin: .2rem 0 .6rem; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .9rem; line-height: 1.45; color: #efe6f6; }
.pv-rules b { color: #fff6ea; }
.pv-sym { font-weight: 900; } .pv-sym.c0 { color: #3f9fe0; } .pv-sym.c1 { color: #2fbf8f; } .pv-sym.c2 { color: #e8a23a; }
.pv-note { margin: 0; font-size: .82rem; color: #d9cfe8; }
.pv-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.pv-tabs [aria-selected="true"] { border-color: rgba(255,210,160,.85); background: rgba(255,200,140,.22); }
.pv-tierinfo { margin: .6rem 0; font-size: .85rem; color: #d9cfe8; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .4rem; }
.pv-cell { display: grid; place-items: center; gap: .05rem; min-height: 58px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; font: inherit; cursor: pointer; }
.pv-cell b { font-size: 1.05rem; } .pv-cell small { font-size: .68rem; color: #d9cfe8; }
.pv-cell:hover { background: rgba(255,255,255,.1); }
.pv-cell.done { border-color: rgba(150,230,190,.55); background: rgba(80,190,140,.16); } .pv-cell.done small { color: #c9f5dc; font-size: .9rem; }
.pv-cell.going small { color: var(--gold-2); }
.pv-cell.next { box-shadow: 0 0 0 2px rgba(255,210,150,.55) inset; }
.pv-cell.here { border-color: var(--gold-2); }
.pv-solved { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(calc(100% - 2rem), 420px); padding: 1.3rem 1.3rem 1.1rem; border-radius: 24px; text-align: center;
  background: rgba(20,16,36,.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,220,180,.35); box-shadow: 0 30px 70px -25px rgba(0,0,0,.8); color: #fff6ea; animation: pv-in .6s ease both; }
.pv-solved h2 { margin: 0 0 .4rem; font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; }
.pv-solved p { margin: 0 0 1rem; color: #e6dcef; }
.pv-solved-btns { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.zg-btn.primary { background: linear-gradient(180deg, #f6cf8a, #e9a868); color: #2a1a10; border-color: transparent; }
@keyframes pv-in { from { opacity: 0; transform: translate(-50%, -44%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .pv-solved { animation: none; } }
@media (max-width: 560px) {
  .pv .zg-title { font-size: 1.25rem; }
  .pv-goals { top: 6.9rem; } .pv-goal { font-size: .72rem; padding: .25rem .55rem; }
  .pv-actions .zg-btn { padding: .45rem .6rem; font-size: .78rem; }
  .pv-hintbox, .pv .zg-toast { bottom: 7.6rem; }
  .pv .zg-music, .pv-panel { bottom: 7.2rem; max-height: calc(100% - 15rem); left: .75rem; right: .75rem; width: auto; }
}

/* ---------------- Zen Garden 3.0 · Choose Your Paradise ---------------- */
.g3-title { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .2rem .4rem; border: 0; background: transparent; color: #fff6ea; cursor: pointer; font-family: var(--f-display); font-size: clamp(1.25rem, 3.6vw, 1.9rem); text-shadow: 0 2px 18px rgba(0,0,0,.6); text-align: left; }
.g3-title small { font-family: var(--f-body, inherit); font-size: .8rem; opacity: .8; }
.g3-title:focus-visible { outline: 3px solid var(--gold-2); border-radius: 12px; }
.g3-envs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.g3-env { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .5rem; align-items: center; text-align: left; padding: .5rem .6rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; }
.g3-env .g3-env-ico { grid-row: span 2; font-size: 1.5rem; }
.g3-env b { font-size: .86rem; } .g3-env small { font-size: .7rem; color: #d9cfe8; line-height: 1.25; }
.g3-env:hover { background: rgba(255,255,255,.09); }
.g3-env[aria-checked="true"] { border-color: rgba(255,210,160,.8); background: linear-gradient(180deg, rgba(255,205,140,.25), rgba(255,150,100,.14)); }
.zg-chip[aria-checked="true"], .zg-chip[aria-selected="true"] { border-color: rgba(255,210,160,.85); background: rgba(255,200,140,.22); }
.g3-name { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; }
.g3-name input { min-height: 44px; padding: .4rem .7rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff6ea; font: inherit; }
.g3-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.g3-gardens { display: grid; gap: .45rem; margin-bottom: .7rem; }
.g3-garden { display: grid; gap: .35rem; padding: .5rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.g3-garden.here { border-color: rgba(255,210,160,.7); }
.g3-open { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: .2rem; min-height: 44px; }
.g3-open .g3-env-ico { grid-row: span 2; font-size: 1.6rem; align-self: center; }
.g3-open small { color: #d9cfe8; font-size: .75rem; }
.g3-garden-btns { display: flex; flex-wrap: wrap; gap: .3rem; } .g3-garden-btns .zg-btn { min-height: 38px; padding: .3rem .7rem; font-size: .78rem; }
.zg-btn.danger { border-color: rgba(255,150,130,.55); color: #ffd1c6; }
.g3-new-btn { width: 100%; justify-content: center; }
.g3-cats { display: flex; gap: .35rem; justify-content: center; }
.g3-cats .zg-chip { min-height: 34px; padding: .25rem .8rem; font-size: .78rem; background: rgba(20,16,36,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.g3-group { flex: none; align-self: center; font-size: 1.3rem; padding: 0 .2rem 0 .5rem; opacity: .85; border-left: 1px solid rgba(255,255,255,.18); }
.g3-sel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .6rem; border-radius: 20px; background: rgba(20,16,36,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(160,230,255,.35); color: #fff6ea; }
.g3-sel-name { font-weight: 800; margin-right: .3rem; }
.g3-sel .zg-btn { min-height: 40px; padding: .35rem .7rem; }
.g3-size { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; } .g3-size input { width: 110px; accent-color: #9fe8ff; min-height: 32px; }
.g3-sel-tip { width: 100%; text-align: center; font-size: .72rem; color: #cfe8f4; }
.zg-dock.g3-busy { opacity: .35; pointer-events: none; }
.g3-decide { position: absolute; z-index: 5; left: 50%; top: 4.4rem; transform: translateX(-50%); width: min(calc(100% - 1.5rem), 560px); padding: 1rem 1.1rem; border-radius: 20px; background: rgba(20,16,36,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,200,120,.5); color: #fff6ea; box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); }
.g3-decide h2 { margin: 0 0 .35rem; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; } .g3-decide p { margin: 0; color: #e6dcef; font-size: .9rem; line-height: 1.45; }
.g3 .zg-music, .g3-panel { width: min(calc(100% - 1.5rem), 460px); }
@media (max-width: 560px) {
  .g3-envs { grid-template-columns: 1fr; }
  .g3-env small { display: none; }
  .g3-env { padding: .4rem .55rem; }
  .g3-size input { width: 90px; }
  .g3 .zg-music, .g3-panel { bottom: 12.2rem; max-height: calc(100% - 17rem); }
  .g3 .zg-tool { min-width: 58px; min-height: 52px; }
  .g3 .zg-toast { bottom: 13rem; }
}
.zg-dock.g3-busy .g3-cats, .zg-dock.g3-busy .zg-tools { visibility: hidden; }
.zg-dock.g3-selecting .g3-cats, .zg-dock.g3-selecting .zg-tools { display: none; }
@media (max-width: 560px) { .g3-sel { gap: .25rem; padding: .4rem; } .g3-sel .zg-btn { min-height: 38px; padding: .3rem .55rem; font-size: .78rem; } .g3-sel-name { width: 100%; text-align: center; margin: 0; } }
/* Zen Garden graphics test scene */
.g3x-bar { position: absolute; z-index: 3; left: 50%; top: 4.3rem; transform: translateX(-50%); display: flex; gap: .4rem; padding: .35rem; border-radius: 999px; background: rgba(20,16,36,.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.g3x-panel { bottom: auto; top: 7.6rem; right: .75rem; max-height: calc(100% - 9rem); width: min(calc(100% - 1.5rem), 380px); }
.g3x-status { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .3rem; }
.g3x-status li { display: grid; gap: .05rem; padding: .35rem .5rem; border-radius: 10px; background: rgba(255,255,255,.04); font-size: .82rem; }
.g3x-status li.ok b { color: #c9f5dc; } .g3x-status li.wait b { color: #ffd9a8; } .g3x-status small { color: #cfc6dc; font-size: .72rem; }
.g3-test-link { margin-top: .6rem; width: 100%; justify-content: center; text-align: center; }
@media (max-width: 560px) { .g3x-panel { top: auto; bottom: .75rem; max-height: 45%; } .g3x-bar { top: 6.6rem; } }

/* ---------------- Adult Lounge (Stage 1: layout, activity cards, backgrounds) ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lx-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #0d1116; }
.lx-backdrop picture, .lx-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-backdrop img { object-fit: cover; }
.lx-backdrop .lx-ph { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(14px); transform: scale(1.06); }
.lx-backdrop .lx-full { opacity: 0; transition: opacity .35s ease; }
.lx-backdrop .lx-full.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lx-backdrop .lx-full { transition: none; } }
.lx-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,14,.35), rgba(6,8,14,.15) 40%, rgba(6,8,14,.55)); }
.lx-shade::after { content: ''; position: absolute; inset: 0; background: #05070c; opacity: var(--lx-dim, .2); transition: opacity .2s; }
body.lx-on { background: #0d1116; }
body.lx-on .page { background: transparent; max-width: 1140px; }
@media (max-width: 560px) { body.lx-on .page { padding-left: 14px; padding-right: 14px; } }
.lx { max-width: 1100px; margin: 0 auto; padding: 0 max(4px, env(safe-area-inset-left)) calc(2rem + env(safe-area-inset-bottom)); color: #fbf7ef; }
.lx-hero { padding: clamp(1.2rem, 5vw, 2.6rem) 0 1rem; max-width: 40rem; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.lx-eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #f4dfb0; }
.lx-hero h1 { margin: .35rem 0 .5rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05; }
.lx-hero p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #f1ece2; }
.lx-atmos { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.2rem; }
.lx-pill { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(14,16,24,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fbf7ef; font: inherit; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; }
.lx-pill:focus-visible, .lx-card:focus-visible, .lx-bg:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.lx-pill[aria-pressed="true"] { border-color: #f4cd80; }
.lx-range input { width: clamp(90px, 26vw, 150px); accent-color: #f4cd80; min-height: 30px; }
.lx-sheet { margin: 0 0 1.2rem; padding: .9rem; border-radius: 22px; background: rgba(14,16,24,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.18); }
.lx-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.lx-sheet h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-x { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fbf7ef; font-size: 1.1rem; cursor: pointer; }
.lx-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.lx-bg { display: grid; gap: .3rem; padding: .3rem .3rem .45rem; border-radius: 14px; border: 2px solid transparent; background: rgba(255,255,255,.06); color: #fbf7ef; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; text-align: left; }
.lx-bg img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; display: block; background: #222; }
.lx-bg[aria-checked="true"] { border-color: #f4cd80; background: rgba(244,205,128,.16); }
.lx-match { align-content: center; justify-items: center; text-align: center; min-height: 100px; }
.lx-match-ico { font-size: 1.6rem; color: #f4cd80; }
.lx-note { margin: .6rem 0 0; font-size: .8rem; color: #ddd6c8; line-height: 1.45; }
.lx-h2 { margin: 1.6rem 0 .7rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 4.5vw, 1.8rem); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.lx-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lx-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-height: 150px; padding: 1rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.22); background: rgba(14,16,24,.66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fbf7ef; text-decoration: none; transition: transform .15s, border-color .15s; }
.lx-card:hover { border-color: rgba(244,205,128,.6); transform: translateY(-2px); }
.lx-card:active { transform: scale(.98); }
.lx-ico { font-size: 1.8rem; line-height: 1; }
.lx-card strong { font-size: 1.02rem; }
.lx-card small { color: #e2dccf; font-size: .82rem; line-height: 1.4; }
.lx-card em { margin-top: auto; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #f4cd80; }
.lx-card em.lx-soon { color: #cfc6b5; }
.lx-foot { margin: 1.8rem 0 0; padding: .7rem .9rem; border-radius: 14px; background: rgba(14,16,24,.6); font-size: .8rem; line-height: 1.5; color: #e2dccf; }
.lx-act-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 0; }
.lx-act-top h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 5vw, 2.2rem); text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.lx-panel { padding: 1.2rem; border-radius: 22px; background: rgba(14,16,24,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.18); }
.lx-panel h2 { margin: .3rem 0 .4rem; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.lx-panel p { line-height: 1.55; }
@media (max-width: 560px) {
  .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .lx-card { min-height: 158px; padding: .85rem; border-radius: 18px; }
  .lx-card small { font-size: .78rem; }
  .lx-bgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-pill { font-size: .82rem; padding: .4rem .75rem; }
}
@media (prefers-reduced-motion: reduce) { .lx-card, .lx-shade::after { transition: none; } }
/* Background picker: grouped by time of day, scrolls inside its sheet, preview then keep or cancel */
.lx-sheet { max-height: min(74vh, 680px); max-height: min(74dvh, 680px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 0; padding-bottom: 0; }
.lx-sheet-head { position: sticky; top: 0; z-index: 2; margin: 0 -.9rem .4rem; padding: .7rem .9rem .5rem; background: rgba(14,16,24,.96); border-radius: 22px 22px 0 0; }
.lx-times { position: sticky; top: 56px; z-index: 2; display: flex; gap: .35rem; margin: 0 -.9rem .2rem; padding: .25rem .9rem .5rem; background: rgba(14,16,24,.96); overflow-x: auto; scrollbar-width: none; }
.lx-times::-webkit-scrollbar { display: none; }
.lx-time { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fbf7ef; font-size: .8rem; font-weight: 700; text-decoration: none; }
.lx-time:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.lx-time-h { margin: .9rem 0 .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #f4dfb0; scroll-margin-top: 110px; }
.lx-bgs-extra { margin: .2rem 0 .6rem; }
.lx-bgs-extra .lx-bg { grid-template-columns: auto 1fr; align-items: center; min-height: 52px; padding: .45rem .7rem; }
.lx-bgs-extra .lx-match-ico { font-size: 1.2rem; }
.lx-keepbar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem -.9rem 0; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(14,16,24,.97); border-top: 1px solid rgba(255,255,255,.16); color: #fbf7ef; font-size: .85rem; }
.lx-keepbar span { flex: 1 1 10rem; min-width: 0; }
.lx-keepbar .btn { min-height: 44px; }
.lx-keepbar[hidden] { display: none; }
.lx-sheet > .lx-note:last-of-type { margin-bottom: .9rem; }
.lx-bright-row { display: flex; align-items: center; gap: .7rem; margin: .1rem 0 .5rem; font-size: .85rem; font-weight: 700; color: #fbf7ef; }
.lx-bright-row input { flex: 1; max-width: 260px; min-height: 30px; accent-color: #f4cd80; }
@media (max-width: 560px) {
  .lx-picker .lx-bgs:not(.lx-bgs-extra) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .lx-picker .lx-bg { font-size: .7rem; padding: .25rem .25rem .4rem; border-radius: 12px; }
  .lx-picker .lx-bg img { border-radius: 8px; }
  .lx-bgs-extra { grid-template-columns: 1fr; }
  .lx-keepbar span { flex-basis: 100%; }
  .lx-keepbar .btn { flex: 1 1 0; }
}
/* Book club rooms and trivia with a background: the page sits on a frosted panel so text stays readable */
.bd-ctl { display: contents; }
.bd-ctl .lx-sheet { flex-basis: 100%; width: 100%; margin: .4rem 0 0; text-align: left; }
body.lx-on.bd-room .page { max-width: var(--col); margin-top: 1.4rem; margin-bottom: 1.5rem; background: rgba(11,11,12,.68); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
body.lx-on.bd-room.wide .page, body.lx-on.bd-room .page.wide { max-width: 1140px; }
@media (max-width: 560px) { body.lx-on.bd-room .page { margin-left: 8px; margin-right: 8px; padding-left: 14px; padding-right: 14px; border-radius: 18px; } }

/* ===== Adult Lounge · Relax & create (shared) ===== */
.lx-play { position: relative; padding: 1rem; color: #fbf7ef; }
@media (max-width: 560px) { .lx-play { padding: .75rem; border-radius: 18px; } body.lx-on .lx-act .lx-act-top { padding: .6rem 0; } }
.lx-play .btn { min-height: 40px; }
.cr-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.cr-tabs { display: flex; gap: .3rem; padding: 3px; margin: 0 0 .9rem; border-radius: 999px; background: rgba(255,255,255,.08); width: fit-content; max-width: 100%; overflow-x: auto; }
.cr-tabs button { min-height: 40px; padding: .35rem 1rem; border: 0; border-radius: 999px; background: transparent; color: #fbf7ef; font: inherit; font-weight: 700; font-size: .88rem; white-space: nowrap; cursor: pointer; }
.cr-tabs button[aria-selected="true"] { background: #f4cd80; color: #1b1406; }
.cr-tabs button:focus-visible, .cr-chip:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.cr-chip { min-height: 38px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fbf7ef; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; }
.cr-chip[aria-pressed="true"], .cr-chip[aria-checked="true"] { background: #f4cd80; border-color: #f4cd80; color: #1b1406; }
.cr-chip:disabled { opacity: .45; cursor: default; }
.cr-private { margin: 0 0 .8rem; padding: .55rem .8rem; border-radius: 12px; background: rgba(120,190,150,.14); border: 1px solid rgba(140,210,170,.3); font-size: .82rem; line-height: 1.45; color: #e3f4e8; }
.cr-empty { color: #d8d0c2; font-size: .9rem; }
.cr-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: .6rem 1rem; border-radius: 12px; background: rgba(14,16,24,.95); border: 1px solid rgba(255,255,255,.2); color: #fbf7ef; font-size: .88rem; font-weight: 600; transition: opacity .2s, transform .2s; }
.cr-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cr-ask { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5,7,12,.6); }
.cr-ask-box { width: min(360px, 100%); padding: 1.1rem; border-radius: 18px; background: #161922; border: 1px solid rgba(255,255,255,.2); color: #fbf7ef; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cr-ask-box p { margin: 0 0 .9rem; line-height: 1.5; }
.cr-ask-box .cr-row { justify-content: flex-end; }
.cr-gal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin: 1.2rem 0 .5rem; }
.cr-gal-head h3 { margin: 0; font-size: 1.05rem; }
.cr-gal-note { font-size: .8rem; color: #d8d0c2; }
.cr-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; }
.cr-gal-item { display: grid; gap: .3rem; padding: .35rem; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .78rem; font-weight: 700; }
.cr-gal-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: #fff; }
.cr-gal-item .btn { min-height: 34px; padding: .2rem .55rem; }
@media (max-width: 560px) { .cr-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reflection Journal */
.jr-off { margin: 0 0 .9rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(244,205,128,.14); border: 1px solid rgba(244,205,128,.35); font-size: .88rem; line-height: 1.5; }
.jr-off p { margin: 0; }
.jr-prompt { padding: .8rem .9rem; border-radius: 14px; background: rgba(255,255,255,.07); margin-bottom: .9rem; }
.jr-plabel, .jr-l, .jr-write legend { display: block; margin: 0 0 .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f4dfb0; }
.jr-ptext { margin: 0 0 .5rem; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.35; }
.jr-moods, .jr-grat { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
.jr-moods { display: flex; flex-wrap: wrap; gap: .35rem; }
.jr-moods legend { width: 100%; }
.jr-moods label { flex: 1 1 0; min-width: 58px; display: grid; justify-items: center; gap: .1rem; padding: .45rem .2rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); cursor: pointer; }
.jr-moods label span { font-size: 1.5rem; line-height: 1; }
.jr-moods label small { font-size: .72rem; font-weight: 700; }
.jr-moods input { position: absolute; opacity: 0; pointer-events: none; }
.jr-moods label:has(input:checked) { border-color: #f4cd80; background: rgba(244,205,128,.2); }
.jr-moods label:has(input:focus-visible) { outline: 3px solid #f4cd80; outline-offset: 2px; }
.jr-body, .jr-grat input { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,253,246,.96); color: #1d1a14; font: inherit; font-size: 16px; line-height: 1.6; }
.jr-body { padding: .8rem .9rem; margin-bottom: .9rem; resize: vertical; min-height: 180px; }
.jr-grat { display: grid; gap: .4rem; }
.jr-grat input { padding: .55rem .75rem; min-height: 44px; }
.jr-status { font-size: .82rem; color: #d8d0c2; }
.jr-items { display: grid; gap: .45rem; margin: .4rem 0 .9rem; }
.jr-item { display: flex; gap: .4rem; align-items: center; padding: .25rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.jr-open { flex: 1; min-width: 0; display: grid; gap: .15rem; padding: .5rem .6rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.jr-open:focus-visible { outline: 3px solid #f4cd80; }
.jr-date { font-size: .78rem; font-weight: 800; color: #f4dfb0; }
.jr-snip { font-size: .88rem; color: #ece6da; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-dots { display: flex; align-items: flex-end; gap: 4px; height: 70px; padding: .3rem; margin-bottom: .6rem; border-radius: 12px; background: rgba(255,255,255,.05); }
.jr-dots span { flex: 1; display: flex; align-items: flex-start; justify-content: center; height: var(--h); min-height: 20px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, rgba(244,205,128,.55), rgba(244,205,128,.12)); font-size: .8rem; }
.lx-act-top .lx-pill { flex: none; white-space: nowrap; }
.lx-act-btns { display: flex; gap: .35rem; flex: none; }
.lx-snd-btn { justify-content: center; min-width: 44px; }
.lx-act-top .lx-snd-btn { padding-left: .6rem; padding-right: .6rem; }
.lx-snd-sec { padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.lx-snd-sec:first-of-type { border-top: 0; padding-top: .2rem; }
.lx-snd-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.lx-snd-top h3 { margin: 0; font-size: 1rem; }
.lx-snd-top .lx-mood { padding: .35rem .9rem; }
.lx-snd-sub { margin: .3rem 0 .4rem; font-size: .8rem; color: #e7dfd0; }
.lx-snd-group { margin: .6rem 0 .3rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #f4cd80; font-weight: 800; }
.lx-moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem; }
.lx-mood { display: grid; gap: .1rem; text-align: left; padding: .55rem .75rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: var(--glass-control, rgba(12,14,20,.62)); color: #fbf7ef; font: inherit; cursor: pointer; transition: background var(--glass-ease, .25s ease), border-color var(--glass-ease, .25s ease); }
.lx-mood b { font-size: .92rem; } .lx-mood small { font-size: .75rem; color: #d9cfe8; line-height: 1.3; }
.lx-mood:hover { background: rgba(255,255,255,.12); }
.lx-mood[aria-checked="true"] { border-color: #f4cd80; background: rgba(244,205,128,.2); box-shadow: 0 0 0 1px #f4cd80 inset; }
.lx-mood:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.lx-snd-vol { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; }
.lx-snd-vol input { flex: 1; max-width: 320px; min-height: 32px; accent-color: #f4cd80; }
@media (max-width: 560px) { .lx-moods { grid-template-columns: 1fr 1fr; } .lx-mood { padding: .5rem .6rem; } .lx-mood small { font-size: .7rem; } }
.lx-act-top h1 { min-width: 0; }
@media (max-width: 560px) {
  .lx-act-top { gap: .4rem; }
  .lx-act-top h1 { font-size: 1.25rem; line-height: 1.2; }
  .lx-act-top .lx-pill { min-height: 40px; padding: .35rem .7rem; font-size: .8rem; }
}

/* Healing Canvas */
.hc-bar { display: grid; gap: .55rem; margin-bottom: .7rem; }
.hc-tools { gap: .35rem; }
.hc-sliders { gap: .8rem; }
.hc-feel { gap: .35rem; align-items: center; font-size: .8rem; }
.hc-feel-l { font-weight: 700; margin-right: .1rem; }
.hc-seg { display: flex; gap: .25rem; }
.hc-feel .cr-chip { padding: .3rem .65rem; font-size: .78rem; }
.hc-stylus { font-size: .75rem; opacity: .85; }
.hc-slide { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; }
.hc-slide input { width: clamp(90px, 28vw, 170px); min-height: 30px; accent-color: #f4cd80; }
.hc-dot { width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%; background: var(--c, #2f5d8a); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.hc-colors { display: flex; flex-wrap: wrap; gap: .35rem; }
.hc-sw { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: var(--c); cursor: pointer; display: grid; place-items: center; }
.hc-sw[aria-checked="true"] { box-shadow: 0 0 0 3px #f4cd80; border-color: #1b1406; }
.hc-sw:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.hc-custom { --c: conic-gradient(#e8794a, #f2b84b, #6fae6a, #4f9bc9, #8c6bb1, #c9475c, #e8794a); color: #fff; font-weight: 800; text-shadow: 0 1px 2px #000; overflow: hidden; }
.hc-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.hc-stage { display: grid; place-items: center; }
.hc-paper { position: relative; width: 100%; max-width: 100%; background: var(--tint, #fff); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.35); overflow: hidden; }
.hc-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hc-live { touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hc-actions { margin-top: .7rem; }
.hc-sp { flex: 1; }
.hc-guide { margin-bottom: .7rem; padding: .7rem .8rem; border-radius: 14px; background: rgba(244,205,128,.12); border: 1px solid rgba(244,205,128,.35); font-size: .85rem; }
.hc-gtext { margin: .35rem 0 .55rem; font-size: 1rem; line-height: 1.5; }
.hc-sheet { margin-top: .7rem; padding: .8rem; border-radius: 14px; background: rgba(255,255,255,.07); }
.hc-sheet h3 { margin: 0 0 .3rem; }
.hc-sheet .cr-empty { margin: .5rem 0 .3rem; font-size: .8rem; }
@media (max-width: 560px) {
  .hc-tools .cr-chip { padding: .3rem .6rem; font-size: .78rem; }
  .hc-sw { width: 30px; height: 30px; }
  .hc-sp { display: none; }
}
@media (max-width: 560px) {
  .hc-tools, .hc-colors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; margin: -3px -2px; }
  .hc-tools::-webkit-scrollbar, .hc-colors::-webkit-scrollbar { display: none; }
  .hc-tools .cr-chip, .hc-sw { flex: none; }
  .hc-sliders { flex-wrap: nowrap; gap: .5rem; }
  .hc-feel { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; margin: -3px -2px; }
  .hc-feel::-webkit-scrollbar { display: none; }
  .hc-feel .cr-chip, .hc-feel-l, .hc-stylus { flex: none; }
  .hc-slide input { width: 24vw; }
  .hc-bar { gap: .45rem; margin-bottom: .55rem; }
  .hc-guide { padding: .55rem .65rem; }
  .hc-gtext { font-size: .92rem; margin: .25rem 0 .45rem; }
}

/* Color & Unwind */
.cu-pages { display: flex; gap: .5rem; overflow-x: auto; padding: 3px 2px .5rem; margin: -3px -2px .4rem; scrollbar-width: thin; }
.cu-page { flex: none; width: 92px; display: grid; gap: .25rem; padding: .3rem; border-radius: 12px; border: 2px solid transparent; background: rgba(255,255,255,.07); color: #fbf7ef; font: inherit; font-size: .7rem; font-weight: 700; text-align: center; cursor: pointer; }
.cu-page svg { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #fff; display: block; }
.cu-page[aria-checked="true"] { border-color: #f4cd80; background: rgba(244,205,128,.16); }
.cu-page:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.cu-bar { display: grid; gap: .5rem; margin-bottom: .6rem; }
.cu-pal { min-height: 38px; border-radius: 999px; padding: .2rem .8rem; background: rgba(255,255,255,.08); color: #fbf7ef; border: 1px solid rgba(255,255,255,.28); font: inherit; font-size: .82rem; font-weight: 700; }
.cu-pal option { color: #111; }
.cu-wrap { width: min(100%, 72vh); width: min(100%, 72svh); margin: 0 auto; aspect-ratio: 1; border-radius: 12px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35); overflow: hidden; }
.cu-wrap.zoomed { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cu-zoom { width: 100%; height: 100%; }
.cu-wrap.zoomed .cu-zoom { width: 200%; height: 200%; }
.cu-svg { display: block; width: 100%; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cu-svg path { transition: fill .18s ease; }
.cu-svg path:hover { filter: brightness(.96); }
.cu-svg.erasing { cursor: cell; }
.cu-actions { margin-top: .7rem; }
.cu-hint { margin: .5rem 0 0; font-size: .8rem; color: #d8d0c2; }
@media (max-width: 560px) { .cu-colors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; } .cu-colors .hc-sw { flex: none; } .cu-page { width: 78px; } }
@media (prefers-reduced-motion: reduce) { .cu-svg path { transition: none; } }

/* Serenity Jigsaw */
.jg-h { margin: .2rem 0 .5rem; font-size: 1rem; }
.jg-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .45rem; margin-bottom: 1rem; }
.jg-pic { display: grid; gap: .25rem; padding: .25rem .25rem .4rem; border-radius: 12px; border: 2px solid transparent; background: rgba(255,255,255,.06); color: #fbf7ef; font: inherit; font-size: .72rem; font-weight: 700; text-align: left; cursor: pointer; }
.jg-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.jg-pic[aria-checked="true"] { border-color: #f4cd80; background: rgba(244,205,128,.16); }
.jg-pic:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.jg-note { margin: .55rem 0; font-size: .8rem; color: #d8d0c2; }
.jg-top { margin-bottom: .6rem; }
.jg-count { font-weight: 800; font-size: .9rem; }
.jg-table { position: relative; margin: 0 auto; border-radius: 16px; background: radial-gradient(ellipse at 50% 30%, rgba(80,64,44,.55), rgba(30,24,18,.75)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; touch-action: pan-y; }
.jg-board { position: absolute; border-radius: 4px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.jg-ghost { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .3s; border-radius: 4px; }
.jg-ghost.on { opacity: .28; }
.jg-piece { position: absolute; left: 0; top: 0; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); will-change: transform; }
.jg-piece.lift { cursor: grabbing; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.jg-piece.set { cursor: default; filter: none; }
.jg-piece.snap { animation: jg-snap .35s ease; }
@keyframes jg-snap { 50% { filter: brightness(1.25); } }
.jg-table.done .jg-piece.set { filter: none; }
@media (max-width: 560px) { .jg-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .jg-piece.snap { animation: none; } .jg-ghost { transition: none; } }

/* Word Puzzles */
.wp-levels { margin: -.3rem 0 .8rem; }
.ws-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; margin-bottom: .5rem; font-size: .92rem; }
.ws-left, .cn-status { font-size: .82rem; color: #d8d0c2; font-weight: 700; }
.ws-words { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .7rem; }
.ws-w { padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.ws-w.got { text-decoration: line-through; opacity: .5; }
.ws-grid { --n: 9; position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; display: grid; grid-template-rows: repeat(var(--n), 1fr); padding: 0; border-radius: 14px; background: rgba(255,253,246,.96); color: #1d1a14; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; overflow: hidden; }
.ws-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.ws-c { position: relative; z-index: 1; display: grid; place-items: center; font-weight: 800; font-size: clamp(.8rem, calc(68vw / var(--n)), 1.35rem); line-height: 1; }
.ws-c.pick { background: rgba(244,205,128,.75); border-radius: 50%; }
.ws-c.glow { animation: ws-glow 2.4s ease; border-radius: 50%; }
@keyframes ws-glow { 0%, 60% { background: #f4cd80; box-shadow: 0 0 0 4px rgba(244,205,128,.6); } 100% { background: transparent; box-shadow: none; } }
.ws-marks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ws-marks line { stroke-width: .72; stroke-linecap: round; opacity: .7; }
.ws-marks .ws-sel { stroke: #f4cd80; opacity: .55; }
.ws-grid.nope, .cn-grid.nope { animation: wp-nope .35s ease; }
@keyframes wp-nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ws-actions { margin-top: .7rem; }
.ws-note { font-size: .8rem; color: #d8d0c2; }
.ws-done { margin-top: .8rem; padding: .8rem .9rem; border-radius: 14px; background: rgba(120,190,150,.16); border: 1px solid rgba(140,210,170,.35); }
.ws-done p { margin: 0 0 .6rem; }
.cn-solved { display: grid; gap: .4rem; margin-bottom: .4rem; }
.cn-row { display: grid; gap: .1rem; padding: .6rem .7rem; border-radius: 12px; background: var(--t); color: #1b1406; text-align: center; animation: cn-in .35s ease; }
.cn-row b { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.cn-row span { font-size: .85rem; }
@keyframes cn-in { from { transform: scale(.96); opacity: .4; } }
.cn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.cn-w { min-height: 62px; padding: .3rem .15rem; border-radius: 12px; border: 0; background: rgba(255,253,246,.94); color: #1d1a14; font: inherit; font-weight: 800; font-size: clamp(.7rem, 3.6vw, .92rem); letter-spacing: .01em; cursor: pointer; overflow-wrap: anywhere; line-height: 1.1; }
.cn-w.long { font-size: clamp(.6rem, 2.9vw, .82rem); letter-spacing: 0; }
.cn-w.xlong { font-size: clamp(.52rem, 2.4vw, .74rem); letter-spacing: 0; }
.cn-w[aria-pressed="true"] { background: #5b4a7a; color: #fff; }
.cn-w:focus-visible, .cn-num:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
.cn-hint { margin: .6rem 0 0; font-size: .88rem; }
.cn-actions { margin-top: .7rem; }
.cn-pick { margin-top: 1rem; gap: .3rem; }
.cn-num { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fbf7ef; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.cn-num.done { background: rgba(120,190,150,.35); }
.cn-num[aria-current="true"] { border-color: #f4cd80; box-shadow: 0 0 0 2px #f4cd80; }
@media (min-width: 700px) { .cn-w { min-height: 72px; font-size: 1rem; } .cn-w.long { font-size: .86rem; } .cn-w.xlong { font-size: .76rem; } }
@media (prefers-reduced-motion: reduce) { .ws-c.glow, .ws-grid.nope, .cn-grid.nope, .cn-row { animation: none; } .ws-c.glow { background: #f4cd80; } }

/* ===== Adult Lounge · Play at your pace (shared) ===== */
.gm-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; margin-bottom: .6rem; }
.gm-status { font-weight: 800; font-size: 1.02rem; }
.gm-who { font-size: .78rem; color: #d8d0c2; }
.gm-actions { margin-top: .7rem; }
.gm-sheet { margin-top: .7rem; padding: .8rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.gm-sheet h3 { margin: 0 0 .5rem; }
.gm-sheet p { margin: .2rem 0 .5rem; }
.gm-lab { margin: .7rem 0 .35rem !important; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f4dfb0; }
.gm-stats { margin: .6rem 0 0; font-size: .8rem; color: #d8d0c2; }

/* Chess */
.ch-wrap { width: min(100%, 560px, 68vh); width: min(100%, 560px, 68svh); margin: 0 auto; }
.ch-cap { display: flex; align-items: center; gap: 0; min-height: 22px; font-size: .8rem; }
.ch-cap .pc { width: 20px; height: 20px; margin-right: -5px; }
.ch-cap b { margin-left: .5rem; color: #f4dfb0; }
.ch-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 0 3px #4a3626; }
.ch-sq { position: relative; display: grid; place-items: center; padding: 0; border: 0; aspect-ratio: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-sq.l { background: #ecdcbf; } .ch-sq.d { background: #a27b5c; }
.ch-sq.last.l { background: #f3e08f; } .ch-sq.last.d { background: #c9a45a; }
.ch-sq.sel { box-shadow: inset 0 0 0 4px #4f9bc9; }
.ch-sq.hint { box-shadow: inset 0 0 0 4px #6fae6a; }
.ch-sq.chk { background: radial-gradient(circle, #ff6b5a 0%, #e04a3a 45%, transparent 75%), #a27b5c; }
.ch-sq.dot::after { content: ''; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(30,40,30,.32); }
.ch-sq.cap::after { content: ''; position: absolute; inset: 4%; border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(30,40,30,.32); }
.ch-sq:focus-visible { outline: 3px solid #4f9bc9; outline-offset: -3px; z-index: 1; }
.ch-sq i { position: absolute; font-style: normal; font-size: .58rem; font-weight: 800; opacity: .7; pointer-events: none; }
.ch-sq i.rk { left: 3px; top: 2px; } .ch-sq i.fl { right: 3px; bottom: 1px; }
.ch-sq.l i { color: #8a6b4f; } .ch-sq.d i { color: #f2e6d0; }
.pc { width: 88%; height: 88%; pointer-events: none; }
.pc.pw { fill: #fbf8f1; stroke: #2a241e; stroke-width: 1.4; stroke-linejoin: round; }
.pc.pb { fill: #2a241e; stroke: #0d0a07; stroke-width: 1.2; stroke-linejoin: round; }
.pc .line { fill: none; } .pc.pw .eye { fill: #2a241e; stroke: none; } .pc.pb .eye { fill: #fbf8f1; stroke: none; } .pc.pb .line { stroke: #d8cdb8; }
.ch-promo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: #ecdcbf; cursor: pointer; }
.ch-moves-box { margin-top: .7rem; font-size: .85rem; }
.ch-moves-box summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.ch-moves { margin: .3rem 0 0; padding-left: 1.6rem; columns: 3 9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ch-sq i { font-size: .5rem; } }

/* Checkers */
.ck-wrap { width: min(100%, 540px, 66vh); width: min(100%, 540px, 66svh); margin: 0 auto; }
.ck-count { display: flex; align-items: center; gap: .4rem; min-height: 26px; font-size: .8rem; font-weight: 700; color: #ece6da; }
.ck-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 0 3px #3b2a20; }
.ck-sq { position: relative; display: grid; place-items: center; padding: 0; border: 0; aspect-ratio: 1; -webkit-tap-highlight-color: transparent; }
.ck-sq.l { background: #e9d8b8; cursor: default; } .ck-sq.d { background: #5e7c5a; cursor: pointer; }
.ck-sq.last.d { background: #7b9a62; }
.ck-sq.sel { box-shadow: inset 0 0 0 4px #f4cd80; }
.ck-sq.hint { box-shadow: inset 0 0 0 4px #8fd0e0; }
.ck-sq.must .ck-pc { box-shadow: 0 0 0 3px #f4cd80, 0 3px 6px rgba(0,0,0,.45); }
.ck-sq.dot::after { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(244,205,128,.85); box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
.ck-sq:focus-visible { outline: 3px solid #f4cd80; outline-offset: -3px; }
.ck-pc { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; font-size: clamp(.9rem, 4.6vw, 1.5rem); line-height: 1; box-shadow: 0 3px 6px rgba(0,0,0,.45); pointer-events: none; }
.ck-pc.b { background: radial-gradient(circle at 35% 30%, #5a5048, #221c18 70%); color: #f4cd80; box-shadow: inset 0 0 0 3px #3a322b, inset 0 0 0 5px #1a1512, 0 3px 6px rgba(0,0,0,.5); }
.ck-pc.w { background: radial-gradient(circle at 35% 30%, #fffaf0, #d9c9a8 75%); color: #8a5a3c; box-shadow: inset 0 0 0 3px #e8dbc0, inset 0 0 0 5px #c4b28e, 0 3px 6px rgba(0,0,0,.45); }
.ck-pc.mini { width: 16px; height: 16px; box-shadow: none; }

/* Dominoes */
.dm-score { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .45rem .8rem; border-radius: 12px; background: rgba(255,255,255,.07); font-size: .9rem; margin-bottom: .5rem; }
.dm-score b { color: #f4dfb0; margin-right: .3rem; }
.dm-target { font-size: .75rem; color: #d8d0c2; }
.dm-cpu { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }
.dm-backs { display: flex; gap: 3px; }
.dm-backs i { width: 11px; height: 20px; border-radius: 3px; background: linear-gradient(135deg, #3d5a50, #22352f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dm-bone { margin-left: auto; color: #d8d0c2; }
.dm-table { padding: .6rem; border-radius: 16px; background: radial-gradient(ellipse at 50% 40%, #2f6150, #1d3d33 75%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 0 40px rgba(0,0,0,.35); min-height: 140px; display: grid; place-items: center; }
.dm-line { width: 100%; max-height: 52vh; max-height: 52svh; }
.dm-t rect { fill: #fbf6ea; stroke: #3a3328; stroke-width: .05; }
.dm-t line { stroke: #9a8f7d; stroke-width: .05; }
.dm-t .dm-p { fill: #2a241e; }
.dm-t.cpu rect { fill: #f1eadb; }
.dm-ends { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(244,205,128,.14); font-size: .85rem; font-weight: 700; }
.dm-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .8rem; }
.dm-tile { width: 44px; padding: 3px; border-radius: 9px; border: 2px solid transparent; background: transparent; cursor: pointer; transition: transform .15s; opacity: .55; }
.dm-tile svg { width: 100%; display: block; }
.dm-tile.can { opacity: 1; border-color: rgba(244,205,128,.85); box-shadow: 0 0 12px rgba(244,205,128,.35); }
.dm-tile.sel { transform: translateY(-6px); border-color: #f4cd80; background: rgba(244,205,128,.18); }
.dm-tile:focus-visible { outline: 3px solid #f4cd80; outline-offset: 2px; }
@media (min-width: 700px) { .dm-tile { width: 54px; } }
@media (prefers-reduced-motion: reduce) { .dm-tile { transition: none; } }

/* 8-Ball Pool */
.pl-hud { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .5rem; }
.pl-side { display: grid; gap: .15rem; padding: .45rem .6rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 2px solid transparent; font-size: .78rem; }
.pl-side b { font-size: .9rem; }
.pl-side.on { border-color: #f4cd80; background: rgba(244,205,128,.12); }
.pl-mini { display: flex; flex-wrap: wrap; gap: 3px; min-height: 12px; }
.pl-mini i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.pl-mini i.st { background: linear-gradient(#f6f1e4 0 28%, var(--c) 28% 72%, #f6f1e4 72%); }
.pl-stage { display: grid; place-items: center; }
.pl-cv { display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.pl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .7rem; }
.pl-aim { display: flex; gap: .3rem; }
.pl-aim .btn { min-width: 48px; min-height: 48px; font-size: 1.4rem; padding: 0; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.pl-power { flex: 1 1 140px; display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; }
.pl-power input { flex: 1; min-width: 0; width: 100%; min-height: 36px; accent-color: #f4cd80; }
.pl-pv { min-width: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.pl-shoot { min-height: 48px; min-width: 96px; font-size: 1rem; }
@media (max-width: 560px) { .pl-controls { flex-wrap: nowrap; gap: .35rem; } .pl-power { flex: 1 1 auto; min-width: 0; gap: .3rem; } .pl-power > span { display: none; } .pl-pv { min-width: 2.2rem; font-size: .75rem; } .pl-shoot { min-width: 74px; padding-left: .7rem; padding-right: .7rem; } .pl-aim .btn { min-width: 44px; min-height: 48px; } .pl-hud { margin-bottom: .35rem; } .pl-side { padding: .35rem .5rem; } }

/* 3D game tables */
.t3-host { position: relative; width: 100%; display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, rgba(255,240,220,.08), rgba(0,0,0,.25)); }
.t3-canvas { display: block; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.ch-wrap.is3d, .ck-wrap.is3d { width: 100%; }

/* =====================================================================================================================
   Viboreya glass standard: one shared look for every lounge, game and activity surface.
   Panels, menus, boards and overlays use a 25%-opaque tinted background (75% see-through) so the scenery shows
   through. Text, pieces, buttons and controls stay fully opaque, and opacity is never set on whole containers.
   Change --glass-opacity here to adjust everything at once; new screens can use .glass-panel / .glass-panel-dark.
   ===================================================================================================================== */
:root {
  --glass-opacity: .25;
  --glass-dark: rgba(8, 10, 16, var(--glass-opacity));
  --glass-light: rgba(255, 255, 255, var(--glass-opacity));
  --glass-border: rgba(255, 255, 255, .24);
  --glass-border-soft: rgba(255, 255, 255, .16);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --glass-blur: 3px;                 /* just enough to soften busy detail; the scenery stays recognisable */
  --glass-radius: 16px;
  --glass-ease: .25s ease;
  --glass-text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 12px rgba(0, 0, 0, .45);   /* keeps light text readable on bright scenes */
  --glass-control: rgba(12, 14, 20, .62);   /* buttons and controls keep a clear, solid-feeling fill */
}
.glass-panel { background: rgba(255, 255, 255, var(--glass-opacity)); border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); transition: background-color var(--glass-ease), border-color var(--glass-ease); }
.glass-panel-dark { background: rgba(0, 0, 0, var(--glass-opacity)); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); transition: background-color var(--glass-ease), border-color var(--glass-ease); }

/* Surfaces: lounge, activities, games, and the 3D games' HUD panels */
.lx-sheet, .lx-card, .lx-foot, .lx-panel, .gm-sheet, .cr-ask-box, .cr-toast, .cr-private, .cr-gal-item, .jr-off, .jr-prompt, .jr-item, .jr-dots,
.hc-guide, .hc-sheet, .cu-page, .jg-pic, .jg-table, .dm-score, .dm-table, .pl-side, .ws-done, .t3-host, .lx-bg,
.zg-status, .zg-toast, .zg-tools, .zg-music, .pv-goal, .pv-hintbox, .pv-solved, .g3-sel, .g3-decide, .g3x-bar {
  background: var(--glass-dark); border: 1px solid var(--glass-border-soft); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  transition: background-color var(--glass-ease), border-color var(--glass-ease);
}
.lx-card:hover { background: rgba(8, 10, 16, .34); border-color: rgba(244, 205, 128, .6); }
.lx-bg[aria-checked="true"], .cu-page[aria-checked="true"], .jg-pic[aria-checked="true"] { background: rgba(244, 205, 128, .22); border-color: #f4cd80; }
.pl-side.on { background: rgba(244, 205, 128, .18); border: 2px solid #f4cd80; }
.pv-hintbox { color: #fff6ea; }
.cr-ask { background: rgba(5, 7, 12, .35); }
/* the background picker: no inner scrolling, so nothing slides under a see-through header */
.lx-sheet { max-height: none; overflow: visible; padding-top: .9rem; padding-bottom: .9rem; }
.lx-sheet-head, .lx-times { position: static; background: transparent; margin: 0 0 .5rem; padding: 0; border-radius: 0; }
.lx-keepbar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin: .6rem 0 0; border-radius: 14px; background: var(--glass-dark); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (min-width: 900px) { .lx-keepbar { bottom: 12px; } }

/* Text stays fully opaque and readable over any scene */
body.lx-on .page, .zg, .pv, .g3x { text-shadow: var(--glass-text-shadow); }
body.lx-on .page :is(input, textarea, select, .btn.primary, [aria-checked="true"], [aria-pressed="true"], [aria-selected="true"], .ch-board, .ck-board, .hc-paper, .cu-wrap, .cn-row, .dm-tile, .ch-promo, .lw-tag),
.zg-btn.primary, .pv-hintbox b { text-shadow: none; }

/* Buttons and controls keep a clear fill (they are never 25%) */
body.lx-on .page .btn:not(.primary) { background: var(--glass-control); border-color: rgba(255, 255, 255, .3); color: #fbf7ef; }
body.lx-on .page .btn:not(.primary):hover { background: rgba(30, 32, 40, .75); }
.cr-chip:not([aria-checked="true"]):not([aria-pressed="true"]), .cr-tabs, .cu-pal { background: var(--glass-control); }

/* Writing surfaces (journal, gratitude, club composer): glass with light text */
.jr-body, .jr-grat input, body.bd-room .composer textarea { background: var(--glass-dark); color: #fbf7ef; border: 1px solid var(--glass-border); caret-color: #f4cd80; -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.jr-body::placeholder, .jr-grat input::placeholder, body.bd-room .composer textarea::placeholder { color: rgba(251, 247, 239, .7); }
.jr-body:focus, .jr-grat input:focus { outline: 2px solid #f4cd80; outline-offset: 1px; }
.jr-moods label { background: var(--glass-control); }

/* Game boards: see-through squares, solid pieces, clear markings */
.ch-sq.l { background: rgba(236, 220, 191, .55); } .ch-sq.d { background: rgba(140, 100, 72, .62); }
.ch-sq.last.l { background: rgba(243, 224, 143, .7); } .ch-sq.last.d { background: rgba(201, 164, 90, .75); }
.ch-sq.chk { background: radial-gradient(circle, #ff6b5a 0%, rgba(224, 74, 58, .85) 45%, transparent 75%), rgba(140, 100, 72, .62); }
.ch-board { box-shadow: 0 0 0 3px rgba(74, 54, 38, .85), var(--glass-shadow); }
.ck-sq.l { background: rgba(233, 216, 184, .5); } .ck-sq.d { background: rgba(70, 104, 66, .6); } .ck-sq.last.d { background: rgba(110, 150, 86, .72); }
.ck-board { box-shadow: 0 0 0 3px rgba(59, 42, 32, .85), var(--glass-shadow); }
.ws-grid { background: var(--glass-dark); color: #fff; border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.ws-c { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6); }
.ws-c.pick { color: #1b1406; text-shadow: none; }
.cn-w { background: var(--glass-control); color: #fff; border: 1px solid var(--glass-border); }
.cn-w[aria-pressed="true"] { background: #5b4a7a; border-color: #b9a7ea; }
.jg-board { background: rgba(0, 0, 0, .18); }
.lw-tag { text-shadow: none; }

/* Book club rooms and trivia with a background: every card, list and composer turns to glass */
body.bd-room { --surface: var(--glass-dark); --surface-2: rgba(255, 255, 255, .1); --rule: rgba(255, 255, 255, .2); }
body.lx-on.bd-room .page { background: var(--glass-dark); border: 1px solid var(--glass-border-soft); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
body.bd-room .club-head { background: var(--glass-dark); border: 1px solid var(--glass-border-soft); }
body.bd-room .composer { background: transparent; }
body.bd-room .club-tabs a { color: #ece6da; }
body.bd-room .muted, body.bd-room .lede, body.bd-room .eyebrow { color: #efe9dd; }
@media (prefers-reduced-transparency: reduce) {   /* people who ask their device for less transparency get solid panels */
  :root { --glass-opacity: .82; }
}
