/* ============================================================================
   PARLOR DESIGN SYSTEM — CANONICAL (BLACKLINE 6.4)
   One authoritative token + component-state layer for every Parlor route.
   Loaded LAST on all 25 content routes so these tokens win the cascade over
   the 20 legacy :root blocks (5 competing --brass definitions) without
   rewriting game-specific art stylesheets, which remain component-owned.
   Direction: premium classic-games club — warm cream surfaces, rich forest
   green, restrained brass. No SaaS gradients, no glassmorphism, no glow.
   Supersedes parlor-ux-integrity.css (6.3 recovery layer, retired 6.4).
   ============================================================================ */
:root{
  color-scheme:light;
  /* Color — forest / brass / cream club palette */
  --parlor-forest-900:#143325; --parlor-forest-800:#1d4732; --parlor-forest-700:#2a5a41;
  --parlor-forest-600:#235347; --parlor-forest-500:#2e6b58;
  --parlor-brass:#cfa14a; --parlor-brass-deep:#9a741f; --parlor-brass-soft:#ecd28a;
  --parlor-cream:#f6f0e6; --parlor-paper:#fffdf8; --parlor-surface:#fffdf8;
  --parlor-ink:#1c1917; --parlor-ink-soft:#44403c; --parlor-muted:#5c564c; --parlor-muted-on-dark:#e9dfc9;
  --parlor-line:#ddd3c2; --parlor-line-dark:rgba(154,116,31,.30);
  /* Restored 2026-11-21 materials tokens (parlor-materials-v1): wood, grain, light model */
  --parlor-wood:#8a6642; --parlor-wood-deep:#6d4f30; --parlor-wood-hi:#a97f52;
  --parlor-paper-edge:#e9dfc9; --parlor-sienna:#7c2d12;
  --parlor-inner-hi:inset 0 1px 0 rgba(255,253,248,.85),inset 1px 0 0 rgba(255,253,248,.35);
  --parlor-shadow-pressed:inset 0 2px 5px rgba(28,25,23,.28),inset 0 -1px 0 rgba(255,253,248,.5);
  --parlor-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  --parlor-felt-gradient:radial-gradient(ellipse 90% 60% at 32% 18%,#2a5a41 0%,#1d4732 55%,#143325 100%);
  --parlor-alert:#bd4c4c; --parlor-success:#1e7a4f; --parlor-focus:#0b6e66;
  /* Typography */
  --parlor-font-serif:Georgia,'Times New Roman',serif;
  --parlor-font-sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --parlor-text-xs:.78rem; --parlor-text-sm:.9rem; --parlor-text-md:1rem; --parlor-text-lg:1.25rem;
  --parlor-text-xl:clamp(1.6rem,3.4vw,2.4rem); --parlor-text-display:clamp(2.4rem,6vw,4.6rem);
  --parlor-leading:1.55;
  /* Spacing / radius / elevation / motion */
  --parlor-space-1:.25rem; --parlor-space-2:.5rem; --parlor-space-3:.75rem; --parlor-space-4:1rem;
  --parlor-space-6:1.5rem; --parlor-space-8:2rem; --parlor-space-12:3rem;
  --parlor-radius-sm:10px; --parlor-radius-md:16px; --parlor-radius-lg:24px; --parlor-radius-pill:999px;
  --parlor-shadow-1:0 1px 1px rgba(28,25,23,.22),0 3px 6px rgba(28,25,23,.16);
  --parlor-shadow-2:0 1px 2px rgba(28,25,23,.18),0 4px 10px rgba(28,25,23,.14),0 12px 28px rgba(28,25,23,.10);
  --parlor-motion-fast:120ms cubic-bezier(.34,1.2,.64,1); --parlor-motion:220ms cubic-bezier(.22,1,.36,1); --parlor-motion-slow:380ms cubic-bezier(.22,1,.36,1);
  /* Layout */
  --parlor-content-max:1400px; --parlor-tap-min:44px; --parlor-header-offset:84px;
}
body.parlor-site{--parlor-focus:#f9d992}

/* ---- Base integrity (ported from the retired 6.3 recovery layer) ---- */
html{scroll-behavior:smooth}
body{overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
main{min-width:0}
:is(h1,h2,h3,p,li,dd,figcaption){overflow-wrap:break-word}
:is(button,input,select,textarea){font:inherit}
button:not(:disabled),[role="button"]:not([aria-disabled="true"]),input[type="submit"]:not(:disabled){cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
:is(input,select,textarea){max-width:100%;min-width:0}
main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:44px}
a{text-underline-offset:3px;touch-action:manipulation}
button,[role="button"]{touch-action:manipulation}
[hidden]{display:none!important}
section,article,aside,nav,header,footer,main{scroll-margin-top:var(--parlor-header-offset)}

/* ---- Focus: one visible indicator everywhere (WCAG 2.2 AA) ---- */
:is(a,button,input,select,textarea,[tabindex],[role="button"],summary):focus-visible{
  outline:3px solid var(--parlor-focus);outline-offset:3px;border-radius:4px}
.skip-link,.skip{position:absolute;left:12px;top:-60px;z-index:200;background:var(--parlor-paper);
  color:var(--parlor-ink);padding:12px 18px;border-radius:0 0 var(--parlor-radius-sm) var(--parlor-radius-sm);
  font-weight:650;text-decoration:none;transition:top var(--parlor-motion-fast)}
.skip-link:focus,.skip:focus{top:0}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* ---- Component state normalization (geometry + states; color stays component-owned) ---- */
:is(.primary-button,.secondary-button,.pill-button,.primary-cta,.small-button,.account-button){
  min-height:var(--parlor-tap-min);border-radius:var(--parlor-radius-pill);
  transition:transform var(--parlor-motion-fast),box-shadow var(--parlor-motion-fast),background var(--parlor-motion-fast)}
:is(.primary-button,.secondary-button,.pill-button,.primary-cta,.small-button):active{transform:translateY(1px)}
:is(.card,.rm-card,.shop-item,.gift-card,.game-card){min-width:0}
:is(.card,.rm-card,.shop-item,.gift-card):focus-within{border-color:var(--parlor-focus)}
dialog{max-width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;
  border-radius:var(--parlor-radius-lg)}
[role="dialog"]{max-width:calc(100vw - 24px)}
[role="alert"]{border-left:4px solid var(--parlor-alert);padding-left:var(--parlor-space-3)}
[aria-busy="true"]{cursor:progress}
.empty-state{padding:var(--parlor-space-8) var(--parlor-space-4);text-align:center;color:var(--parlor-muted)}

/* ---- Character Studio canonical option states (club.html #character) ---- */
.avatar-editor-tabs [data-character-tab]{min-height:var(--parlor-tap-min);border-radius:var(--parlor-radius-pill);
  transition:background var(--parlor-motion-fast),color var(--parlor-motion-fast)}
.avatar-editor-tabs [data-character-tab][aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--parlor-brass-deep)}
.avatar-option{min-height:var(--parlor-tap-min);transition:transform var(--parlor-motion-fast),box-shadow var(--parlor-motion-fast)}
.avatar-option:not(:disabled):hover{transform:translateY(-1px)}
.avatar-option[aria-pressed="true"]{box-shadow:0 0 0 3px var(--parlor-brass-deep);border-radius:var(--parlor-radius-md)}
.avatar-option:disabled{cursor:not-allowed;opacity:.55}
.character-stage .large-portrait{max-width:100%;height:auto}

/* ---- Game surfaces: boards never distort or overflow ---- */
:is(.game-board,.board,.game-stage,canvas.game-canvas){max-width:100%}
.game-stage{overflow-x:clip}
table{max-width:100%}

/* ---- Homepage clarity strip (index.html, static — answers the 5-second test) ---- */
.parlor-clarity{max-width:var(--parlor-content-max);margin:0 auto;padding:var(--parlor-space-8) clamp(16px,4vw,54px)}
.parlor-clarity h2{font-family:var(--parlor-font-serif);font-weight:400;font-size:var(--parlor-text-xl);margin:0 0 var(--parlor-space-3)}
.parlor-clarity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:var(--parlor-space-4);margin-top:var(--parlor-space-4)}
.parlor-clarity-grid article{border:1px solid var(--parlor-line-dark);border-radius:var(--parlor-radius-md);padding:var(--parlor-space-4);background:rgba(255,250,240,.05)}
.parlor-clarity-grid h3{margin:0 0 var(--parlor-space-2);font-size:var(--parlor-text-md)}
.parlor-clarity-grid p{margin:0;font-size:var(--parlor-text-sm);line-height:var(--parlor-leading)}
.parlor-clarity-grid a{font-weight:650}

/* ---- Responsive guards: 320–430 / 768–1024 / 1280+ ---- */
@media(max-width:640px){
  main{padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
  :is(h1,h2){line-height:1.15}
  :is(.card,.rm-card,.shop-item,.gift-card){max-width:100%}
  table{display:block;overflow-x:auto}
  :is(button,input[type="submit"]){max-width:100%}
  .parlor-clarity{padding-top:var(--parlor-space-6)}
}
@media(max-width:360px){ :is(.ps-account,.account-button){padding:8px;font-size:12px} }

/* Responsive layout ownership: only the home route owns the hero container. */
body.parlor-site:has(#main > #app) #main{width:100%;max-width:1600px;margin-inline:auto;padding:clamp(12px,2vw,28px) clamp(14px,2vw,28px) 70px;min-width:0}
body.parlor-site #app{min-width:0;width:100%}
body.parlor-site #app>.arcade-hero{width:100%;max-width:none;margin:0;box-sizing:border-box}
body.parlor-site #app .arcade-hero-copy{max-width:min(720px,70%)}
@media(max-width:800px){body.parlor-site #app .arcade-hero-copy{max-width:85%}}
@media(max-width:560px){body.parlor-site:has(#main > #app) #main{padding:12px 12px 70px}body.parlor-site #app .arcade-hero-copy{max-width:100%}}
/* Shared responsive containment without hiding overflowing content. */
body.parlor-site{min-width:0;max-width:100%;overflow-x:clip}
body.parlor-site :is(main,section,article,nav,.ps-header,.ps-subnav,.ps-footer){min-width:0}
body.parlor-site :is(img,video,svg){max-width:100%;height:auto}
body.parlor-site :is(.game-grid,.parlor-clarity-grid){min-width:0}
body.parlor-site :is(.game-grid,.parlor-clarity-grid)>*{min-width:0}
body.parlor-site :is(h1,h2,h3){overflow-wrap:break-word}
@media(max-width:640px){body.parlor-site .ps-footer{flex-wrap:wrap;gap:12px;padding-inline:16px}body.parlor-site :is(.ps-subnav,.ps-tabbar){scrollbar-width:none}body.parlor-site :is(.ps-subnav,.ps-tabbar)::-webkit-scrollbar{display:none}}
@media(max-width:430px){body.parlor-site .arcade-hero h1{font-size:clamp(38px,10.5vw,52px)}body.parlor-site .arcade-hero-copy{padding:22px 18px}body.parlor-site .hero-actions{flex-wrap:wrap}}

/* ---- Motion & contrast preferences ---- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media(forced-colors:active){
  :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid Highlight}
  .avatar-option[aria-pressed="true"]{box-shadow:0 0 0 3px Highlight}
}
/* ==== BLACKLINE 6.4 — BROWSER-DEFECT REPAIRS (parent live-browser certification of v314) ==== */
/* D1 guarantee: club hero text on the dark forest band. Owning fix also landed in
   parlor-atmosphere-v195.css (the file that paints the band #102920); these canonical
   rules keep cream/brass text even if legacy daylight tokens re-darken --muted/--ivory.
   Contrast on #102920: cream #f6f0df ~13:1, subtitle #cfdcc9 ~10:1, brass #d9b978 ~7:1. */
.club-hero{color:var(--parlor-cream)}
.club-hero h1{color:var(--parlor-cream)}
.club-hero h1 em{color:var(--parlor-brass)}
.club-hero p{color:#e9dfc9}
/* D5: game-header containment. parlor-atmosphere-v195.css gives .game-head BOTH
   width:100vw with calc(50% - 50vw) margins AND position:relative;left:50%;
   transform:translateX(-50%). 100vw includes the scrollbar, so the double full-bleed
   overflows ~7px per side and clips "All games" / the H1 / "Share game" at desktop.
   Neutralize the technique in the canonical layer; the compact at-game header design
   (parlor-daylight) is otherwise untouched and the board is not affected. */
body.parlor-site .game-head{width:auto;max-width:100%;left:auto;transform:none;flex-wrap:wrap;min-width:0}
body.parlor-site .game-head-main{min-width:0;flex:1 1 320px}
body.parlor-site .game-head h1{overflow-wrap:break-word}
body.parlor-site .game-actions{min-width:0}
body.parlor-site .game-head-buttons{flex-wrap:wrap;justify-content:flex-end;max-width:100%}
/* BLACKLINE 6.9 — mobile first-screen recovery: content before decoration. */
@media(max-width:680px){
 body.parlor-site #main{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
 body.parlor-site .parlor-trust-strip{display:none!important}
 body.parlor-site .parlor-discover{min-width:0}
 body.parlor-site .parlor-feature-carousel{min-height:0!important;height:auto!important;aspect-ratio:auto!important;border-radius:14px!important;overflow:hidden}
 body.parlor-site .parlor-feature-carousel .parlor-hero-slide{position:relative!important;inset:auto!important;min-height:430px!important;height:auto!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important}
 body.parlor-site .parlor-feature-carousel .parlor-hero-slide[hidden]{display:none!important}
 body.parlor-site .parlor-feature-carousel .parlor-discover-hero-art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 32%!important;opacity:.56!important}
 body.parlor-site .parlor-feature-carousel .parlor-hero-slide::after{background:linear-gradient(180deg,#0a211bcf 0%,#0a211be8 55%,#0a211bf7 100%)!important}
 body.parlor-site .parlor-feature-carousel .parlor-discover-hero-copy{width:100%!important;min-width:0!important;max-width:none!important;justify-content:flex-start!important;padding:30px 22px 110px!important;height:auto!important}
 body.parlor-site .parlor-feature-carousel :is(h1,h2){font-size:clamp(35px,9vw,48px)!important;line-height:1.07!important;max-width:17ch!important;margin:12px 0 12px!important;letter-spacing:-.045em!important}
 body.parlor-site .parlor-feature-carousel .parlor-discover-hero-copy>p{font-size:14px!important;line-height:1.5!important;margin-bottom:18px!important;max-width:36ch!important}
 body.parlor-site .parlor-feature-carousel .parlor-discover-hero-actions{gap:8px!important;width:100%!important}
 body.parlor-site .parlor-feature-carousel .parlor-discover-hero-actions :is(a,button){min-height:44px!important;font-size:12px!important;padding:10px 14px!important}
 body.parlor-site .parlor-feature-carousel .parlor-feature-rail{min-height:64px!important;padding:9px 12px!important;gap:8px!important}
 body.parlor-site .parlor-feature-carousel .parlor-feature-dots{flex:1 1 auto!important;justify-content:space-between!important;min-width:0!important}
 body.parlor-site .parlor-feature-carousel .parlor-hero-dot{min-height:42px!important;padding:7px 8px!important;font-size:10px!important}
 body.parlor-site .parlor-feature-carousel .parlor-hero-dot span{display:none!important}
 body.parlor-site .parlor-feature-carousel .parlor-feature-arrows button{min-width:38px!important;width:38px!important;height:42px!important}
}
@media(max-width:370px){body.parlor-site .parlor-feature-carousel .parlor-discover-hero-copy{padding:24px 17px 105px!important}body.parlor-site .parlor-feature-carousel .parlor-hero-slide{min-height:455px!important}body.parlor-site .parlor-feature-carousel .parlor-hero-dot{padding:6px!important;font-size:9px!important}}
/* D6: homepage first-screen trust strip (index.html, static, above the SPA hero).
   Existing truth only: free, no account required, play with friends, Plus membership. */
.parlor-trust-strip{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;justify-content:center;padding:10px 16px;margin:0 0 14px;background:var(--parlor-forest-800);color:var(--parlor-cream);border:1px solid var(--parlor-line-dark);border-radius:var(--parlor-radius-md);font-size:var(--parlor-text-sm)}
.parlor-trust-strip span::before{content:"\2713  ";color:var(--parlor-brass);font-weight:700}
.parlor-trust-strip a{color:var(--parlor-brass-soft);font-weight:650;text-underline-offset:3px}
.parlor-trust-strip a:hover{color:var(--parlor-brass)}
/* D3: Club Shop onto the canonical system (shop.html body.parlor-site.shop-page).
   Shop previously loaded only the light daylight layer: cream shell, default sans
   headings, unstyled native selects/buttons. Serif club type, token cards,
   44px form controls and forest/brass actions now come from the system layer. */
body.shop-page{background:var(--parlor-cream);color:var(--parlor-ink)}
.shop-main{max-width:960px;margin:0 auto;padding:28px clamp(16px,4vw,32px) 64px;min-width:0}
.shop-main h1{font-family:var(--parlor-font-serif);font-weight:400;font-size:var(--parlor-text-xl);margin:0 0 10px;color:var(--parlor-forest-800)}
.shop-main h2{font-family:var(--parlor-font-serif);font-weight:400;font-size:var(--parlor-text-lg);margin:30px 0 10px;color:var(--parlor-forest-800)}
.shop-main h3{margin:0 0 6px}
.shop-main p{line-height:var(--parlor-leading)}
.shop-main #balances{font-weight:650;background:var(--parlor-surface);border:1px solid var(--parlor-line);border-radius:var(--parlor-radius-md);padding:14px 16px}
.shop-main .shop-item{background:var(--parlor-forest-800);border-color:var(--parlor-brass-deep);border-radius:var(--parlor-radius-md);padding:18px;box-shadow:var(--parlor-shadow-1)}
.shop-main .gift-card{background:var(--parlor-surface);border-color:var(--parlor-line);border-radius:var(--parlor-radius-md);color:var(--parlor-ink)}
.shop-main button{min-height:var(--parlor-tap-min);border-radius:var(--parlor-radius-pill);padding:10px 20px;background:var(--parlor-forest-600);color:var(--parlor-cream);border:1px solid var(--parlor-forest-600);font-weight:650}
.shop-main button:hover{background:var(--parlor-forest-700)}
.shop-main button:disabled{background:var(--parlor-surface);color:var(--parlor-muted);border-color:var(--parlor-line)}
.shop-main .shop-item button{background:var(--parlor-brass);color:var(--parlor-forest-900);border-color:var(--parlor-brass)}
.shop-main select,.shop-main input[type="text"]{min-height:var(--parlor-tap-min);border:1.5px solid var(--parlor-line);border-radius:var(--parlor-radius-sm);padding:10px 12px;background:var(--parlor-surface);color:var(--parlor-ink);width:100%;max-width:480px;box-sizing:border-box}
.shop-main label{font-weight:650}
.shop-main a{color:var(--parlor-forest-600);font-weight:650}

/* BLACKLINE 6.8 — Modern Heritage Arcade: restrained, legible, responsive covers. */
body.parlor-site #library .parlor-group-card{border:1px solid #c5bca9;border-radius:16px;box-shadow:0 4px 18px #102a2218;transition:transform 200ms ease,box-shadow 200ms ease}
body.parlor-site #library .parlor-group-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px #102a2224}
body.parlor-site #library .parlor-group-card .parlor-card-media img{filter:saturate(1.02) contrast(1.02);transform:none;transition:transform 220ms ease,filter 220ms ease}
body.parlor-site #library .parlor-group-card:hover .parlor-card-media img,body.parlor-site #library .parlor-group-card:focus-within .parlor-card-media img{transform:scale(1.018);filter:saturate(1.08) contrast(1.02)}
body.parlor-site #library .parlor-group-card .parlor-card-overlay{background:linear-gradient(180deg,rgba(8,28,23,.10) 0%,rgba(8,28,23,.02) 35%,rgba(20,51,37,.72) 72%,rgba(20,51,37,.88) 100%);text-shadow:0 1px 5px #0008}
body.parlor-site #library .parlor-group-card .parlor-card-title{font-family:var(--parlor-font-serif);font-weight:500;letter-spacing:-.035em}
body.parlor-site #library .parlor-group-card .parlor-card-description{color:#f1e9d8}
body.parlor-site #library .parlor-group-card .parlor-card-footer{border-color:#ffffff35}
body.parlor-site #library .parlor-group-card .parlor-card-cta{box-shadow:none}
body.parlor-site #library .parlor-group-card .parlor-cinematic-tile:focus-visible{outline:3px solid #f2d49c;outline-offset:-4px}
@media(prefers-reduced-motion:reduce){body.parlor-site #library .parlor-group-card,body.parlor-site #library .parlor-group-card .parlor-card-media img{transition:none!important;transform:none!important}}

/* ==== DESIGN RESTORATION 2026-11-22 — last night's materials, expressed through this canonical layer ====
   Source of truth for values: public/parlor-materials-v1.css (2026-11-21, Lane 2 materiality system).
   Light from top-left everywhere: inner highlight top/left, warm shadow bottom/right.
   The .mat-* utilities are ported here so EVERY route gets them from the one system
   file, not only the two files that @import materials-v1 (today/rooms). */
.mat-grain{position:relative}
.mat-grain::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:.04;background-image:var(--parlor-noise);background-size:140px 140px}
.mat-felt{background-color:var(--parlor-forest-800);background-image:var(--parlor-felt-gradient);color:var(--parlor-cream)}
.mat-wood{background-color:var(--parlor-wood);background-image:repeating-linear-gradient(93deg,rgba(60,38,16,.16) 0 2px,transparent 2px 7px,rgba(255,235,200,.07) 7px 8px,transparent 8px 15px),linear-gradient(100deg,var(--parlor-wood-hi) 0%,var(--parlor-wood) 38%,var(--parlor-wood-deep) 100%);color:var(--parlor-cream);box-shadow:var(--parlor-inner-hi),var(--parlor-shadow-1)}
.mat-paper{background-color:var(--parlor-paper);color:var(--parlor-ink);border:1px solid var(--parlor-paper-edge);box-shadow:var(--parlor-inner-hi),var(--parlor-shadow-2)}
.mat-brass{background-color:var(--parlor-brass);background-image:linear-gradient(115deg,var(--parlor-brass-soft) 0%,var(--parlor-brass) 42%,var(--parlor-brass-deep) 78%,var(--parlor-brass) 100%);color:var(--parlor-ink);border:1px solid var(--parlor-brass-deep);box-shadow:var(--parlor-inner-hi),var(--parlor-shadow-1)}
.mat-eyebrow{font-family:var(--parlor-font-serif);letter-spacing:.14em;font-size:.78rem;font-weight:700;color:var(--parlor-sienna);text-transform:uppercase}
.mat-note{transform:rotate(-1.1deg)}
.mat-note-r{transform:rotate(.8deg)}
/* Material depth on the shared card + primary-action vocabulary (geometry/states were
   already canonical here; now the light model is too). */
:is(.card,.rm-card,.shop-item,.gift-card,.game-card){box-shadow:var(--parlor-inner-hi),var(--parlor-shadow-1)}
:is(.primary-button,.primary-cta,.pill-button):active{box-shadow:var(--parlor-shadow-pressed)}
.shop-main .shop-item{background-color:var(--parlor-forest-800);background-image:var(--parlor-felt-gradient)}
/* Wood ring + toolbar wash on the game stage on EVERY at-game route, not only
   body.parlor-site ones (materials-v1 scoped it to parlor-site; routes without the
   class fell back to flat cold stages). */
.memory-grid{grid-template-columns:repeat(4,minmax(0,112px));width:min(100%,490px);max-width:100%}
:root[data-graphics-quality="low"] body[data-table-finish="memory-master"] .game-stage{background:#29243f !important}
.memory-grid[data-memory-pairs="10"]{grid-template-columns:repeat(5,minmax(0,92px));width:min(100%,500px)}
body.at-game .game-stage{border-color:var(--parlor-brass-deep);box-shadow:inset 0 1px 0 rgba(246,240,230,.30),inset 0 0 0 5px rgba(109,79,48,.55),inset 0 -28px 52px rgba(0,25,15,.21),0 18px 49px rgba(4,32,22,.19)}
.arcade-hero{background:#1d4732}
.arcade-hero:before{background:linear-gradient(90deg,#0f2e21e6 0%,#0f2e21d9 35%,#0f2e2138 80%)}
body.at-game .game-stage .game-toolbar{background-color:rgba(109,79,48,.34);background-image:repeating-linear-gradient(93deg,rgba(60,38,16,.14) 0 2px,transparent 2px 7px,rgba(255,235,200,.06) 7px 8px,transparent 8px 15px);border-color:rgba(236,210,138,.35);box-shadow:inset 0 1px 0 rgba(246,240,230,.22)}
/* ==========================================================================
   GAMIFIED UX LAYER (2026-11-22) — journey, mastery, celebration.
   One motion language: physical, warm, quick. All progress shown here is a
   read model over real device-local play records (arcade stamps, stats,
   daily completions). No fabricated activity, no dark patterns.
   ========================================================================== */
@keyframes pj-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes pj-pop{0%{transform:scale(.96) translateY(6px);opacity:0}60%{transform:scale(1.015) translateY(0);opacity:1}100%{transform:scale(1)}}
@keyframes pj-medal{0%{transform:scale(.4) rotate(-14deg)}55%{transform:scale(1.18) rotate(4deg)}100%{transform:scale(1) rotate(0)}}
.pj-bar{background:rgba(28,25,23,.16);border-radius:999px;height:12px;overflow:hidden;box-shadow:inset 0 1px 3px rgba(20,51,37,.35)}
.pj-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(180deg,var(--parlor-brass-soft),var(--parlor-brass) 55%,var(--parlor-brass-deep));transform-origin:left center;animation:pj-grow .9s cubic-bezier(.22,1,.36,1) both;box-shadow:inset 0 1px 0 rgba(255,253,248,.65)}
.pj-bar-small{height:8px}
/* Shell level pill */
.ps-level{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 12px;border-radius:999px;background:linear-gradient(180deg,var(--parlor-forest-700),var(--parlor-forest-900));color:var(--parlor-brass-soft);border:1px solid rgba(207,161,74,.55);font:600 .8rem var(--parlor-ui-font,Inter,system-ui,sans-serif);letter-spacing:.02em;text-decoration:none;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(246,240,230,.18),0 2px 8px rgba(20,51,37,.25);transition:transform .18s ease,box-shadow .18s ease}
.ps-level:hover,.ps-level:focus-visible{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(246,240,230,.22),0 6px 16px rgba(20,51,37,.32)}
.ps-level span[aria-hidden]{color:var(--parlor-brass)}
@media(max-width:560px){.ps-level{padding:6px 9px;font-size:.74rem}}
/* Journey strip (home SPA: Discover / Daily / My Parlor views) */
.parlor-journey{margin:18px auto 6px;max-width:1180px;border-radius:20px;padding:20px clamp(16px,3vw,30px);color:var(--parlor-cream);background:radial-gradient(120% 150% at 18% 0%,rgba(236,210,138,.20),transparent 55%),linear-gradient(160deg,var(--parlor-forest-700),var(--parlor-forest-900) 70%);border:1px solid rgba(207,161,74,.5);box-shadow:inset 0 1px 0 rgba(246,240,230,.16),inset 0 -24px 44px rgba(0,25,15,.28),0 16px 38px rgba(20,51,37,.22);display:grid;gap:16px}
.pj-main{display:flex;gap:16px;align-items:flex-start}
.pj-medal{flex:0 0 auto;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:1.5rem;color:#3a2a08;background:radial-gradient(circle at 32% 28%,var(--parlor-brass-soft),var(--parlor-brass) 60%,var(--parlor-brass-deep));box-shadow:inset 0 2px 3px rgba(255,253,248,.7),inset 0 -3px 6px rgba(90,60,5,.45),0 6px 14px rgba(0,0,0,.3);animation:pj-medal .6s cubic-bezier(.22,1,.36,1) both}
.pj-copy{flex:1;min-width:0}
.pj-rank{font:700 .72rem var(--parlor-ui-font,Inter,system-ui,sans-serif);letter-spacing:.16em;color:var(--parlor-brass-soft)}
.parlor-journey h2{font-family:var(--parlor-font-serif,Georgia,serif);font-size:clamp(1.35rem,2.6vw,1.8rem);margin:4px 0 2px;color:var(--parlor-cream)}
.pj-copy p{margin:0 0 10px;color:var(--parlor-muted-on-dark)}
.pj-copy small{color:var(--parlor-muted-on-dark);font-size:.78rem}
.parlor-journey .pj-bar{background:rgba(246,240,230,.18)}
.pj-quests{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pj-quest{background:rgba(246,240,230,.07);border:1px solid rgba(246,240,230,.14);border-radius:14px;padding:10px 12px;display:grid;gap:6px}
.pj-quest span{font-size:.8rem;color:var(--parlor-muted-on-dark)}
.pj-quest strong{font-size:.95rem;color:var(--parlor-cream)}
.pj-actions{display:flex;flex-wrap:wrap;gap:10px}
.pj-cta{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--parlor-brass-deep);background:linear-gradient(180deg,var(--parlor-brass-soft),var(--parlor-brass));color:#2c1e04;font:700 .9rem var(--parlor-ui-font,Inter,system-ui,sans-serif);cursor:pointer;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.25);transition:transform .18s ease,box-shadow .18s ease}
.pj-cta:hover,.pj-cta:focus-visible{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.3)}
.pj-cta-alt{background:transparent;color:var(--parlor-brass-soft);border-color:rgba(207,161,74,.6);box-shadow:none}
@media(max-width:720px){.pj-quests{grid-template-columns:1fr}.pj-main{gap:12px}.pj-medal{width:44px;height:44px;font-size:1.2rem}}
/* Library card mastery */
body.parlor-site .parlor-card-mastery{display:inline-flex;align-items:center;gap:5px;font:700 .72rem var(--parlor-ui-font,Inter,system-ui,sans-serif);letter-spacing:.06em;color:var(--parlor-brass-soft);text-transform:uppercase}
body.parlor-site .parlor-discover-mastery{margin-top:10px}
body.parlor-site .parlor-discover-mastery .parlor-card-mastery{color:var(--parlor-brass-deep,#8a6a1f)}
body.parlor-site .parlor-discover-mastery .parlor-card-mastery-new{color:inherit;opacity:.75}
body.parlor-site .parlor-discover-mastery .parlor-card-progress{background:rgba(20,51,37,.18);max-width:220px}
body.parlor-site .game-play-area .game-stage.parlor-stage-complete{min-height:0}
body.parlor-site .parlor-card-mastery-new{color:var(--parlor-cream);opacity:.85;text-transform:none;letter-spacing:.02em;font-weight:600}
body.parlor-site .parlor-card-progress{display:block;height:6px;border-radius:999px;background:rgba(246,240,230,.22);overflow:hidden;margin-top:2px}
body.parlor-site .parlor-card-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--parlor-brass-soft),var(--parlor-brass));animation:pj-grow .8s cubic-bezier(.22,1,.36,1) both;transform-origin:left center}
body.parlor-site .game-card{transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s ease}
body.parlor-site .game-card:hover,body.parlor-site .game-card:focus-within{transform:translateY(-5px);box-shadow:0 20px 40px rgba(20,51,37,.30)}
body.parlor-site .game-card:hover .game-cover img,body.parlor-site .game-card:focus-within .game-cover img{transform:scale(1.045)}
body.parlor-site .game-cover img{transition:transform .45s cubic-bezier(.22,1,.36,1)}
/* Hub family mastery */
.parlor-hub-mastery{margin:14px 0 4px;background:var(--parlor-paper);border:1px solid var(--parlor-line-dark);border-radius:16px;padding:14px 16px;box-shadow:0 8px 22px rgba(20,51,37,.10)}
.parlor-hub-mastery .phm-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.85rem;color:var(--parlor-ink-soft)}
.parlor-hub-mastery .phm-top span{font:700 .7rem var(--parlor-ui-font,Inter,system-ui,sans-serif);letter-spacing:.14em;color:var(--parlor-brass-deep)}
.parlor-hub-mastery .phm-bar{margin:10px 0 8px}
.parlor-hub-mastery p{margin:0;color:var(--parlor-ink-soft);font-size:.92rem}
/* Completion celebration */
.parlor-levelup{display:flex;gap:16px;align-items:center;margin:16px 0;padding:18px 20px;border-radius:18px;color:var(--parlor-cream);background:radial-gradient(120% 160% at 15% 0%,rgba(236,210,138,.28),transparent 55%),linear-gradient(155deg,var(--parlor-forest-700),var(--parlor-forest-900));border:1px solid rgba(207,161,74,.6);box-shadow:0 16px 34px rgba(20,51,37,.30);animation:pj-pop .55s cubic-bezier(.22,1,.36,1) both}
.parlor-levelup .plu-medal{flex:0 0 auto;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:1.6rem;color:#3a2a08;background:radial-gradient(circle at 32% 28%,var(--parlor-brass-soft),var(--parlor-brass) 60%,var(--parlor-brass-deep));box-shadow:inset 0 2px 3px rgba(255,253,248,.7),0 8px 16px rgba(0,0,0,.32);animation:pj-medal .7s cubic-bezier(.22,1,.36,1) both}
.parlor-levelup .plu-kicker{font:700 .72rem var(--parlor-ui-font,Inter,system-ui,sans-serif);letter-spacing:.18em;color:var(--parlor-brass-soft)}
.parlor-levelup h2{font-family:var(--parlor-font-serif,Georgia,serif);margin:3px 0;color:var(--parlor-cream)}
.parlor-levelup p{margin:0;color:var(--parlor-muted-on-dark)}
.arcade-reward{animation:pj-pop .5s cubic-bezier(.22,1,.36,1) both}
body.parlor-site .arcade-reward{background:var(--parlor-forest-800)}
body.parlor-site .arcade-hero:before{background:rgba(7,24,18,.55)}
/* Today journey banner */
.lt-journey{display:flex;gap:16px;align-items:flex-start;border-radius:18px;padding:18px;margin-bottom:16px;color:var(--parlor-cream);background:var(--parlor-forest-800);border:1px solid rgba(207,161,74,.4);border:1px solid rgba(207,161,74,.5);box-shadow:0 14px 30px rgba(20,51,37,.22)}
.lt-journey-medal{flex:0 0 auto;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font-size:1.35rem;color:#000;background:radial-gradient(circle at 32% 28%,var(--parlor-brass-soft),var(--parlor-brass) 60%,var(--parlor-brass-deep));box-shadow:inset 0 2px 3px rgba(255,253,248,.7),0 6px 14px rgba(0,0,0,.3)}
.lt-journey-copy{flex:1;min-width:0}
.lt-journey-rank{font:700 .7rem var(--parlor-ui-font,Inter,system-ui,sans-serif);letter-spacing:.16em;color:var(--parlor-brass-soft)}
.lt-journey .lt-title{color:var(--parlor-cream);margin:2px 0}
.lt-journey .lt-stats{color:var(--parlor-muted-on-dark);margin:0 0 10px}
.lt-journey-bar{background:rgba(246,240,230,.18)}
.lt-journey small{color:var(--parlor-muted-on-dark)}
/* Club journey panel */
.club-journey{margin:22px auto;max-width:1060px;border-radius:20px;padding:22px clamp(16px,3vw,30px);color:var(--parlor-cream);background:var(--parlor-forest-800);border:1px solid rgba(207,161,74,.4);border:1px solid rgba(207,161,74,.5);box-shadow:0 16px 38px rgba(20,51,37,.22)}
.club-journey h2{font-family:var(--parlor-font-serif,Georgia,serif);color:var(--parlor-cream);margin:4px 0 6px}
.club-journey p{color:var(--parlor-muted-on-dark);margin:0 0 12px}
.club-journey .pj-rank{color:var(--parlor-brass-soft)}
.club-journey-stats{display:flex;flex-wrap:wrap;gap:10px 22px;margin-bottom:12px;font-weight:600}
.club-journey a.cj-cta{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:999px;background:var(--parlor-brass);color:#2c1e04;font-weight:700;text-decoration:none;margin-top:12px}
/* Reduced motion: the celebration becomes a calm state change */
@media (prefers-reduced-motion: reduce){
 .pj-bar i,.parlor-card-progress i,.pj-medal,.parlor-levelup,.parlor-levelup .plu-medal,.arcade-reward{animation:none}
 .ps-level,.pj-cta,body.parlor-site .game-card,body.parlor-site .game-cover img{transition:none}
 body.parlor-site .game-card:hover,body.parlor-site .game-card:focus-within{transform:none}
 body.parlor-site .game-card:hover .game-cover img{transform:none}
}
body.reduce-motion .pj-bar i,body.reduce-motion .parlor-card-progress i,body.reduce-motion .pj-medal,body.reduce-motion .parlor-levelup,body.reduce-motion .arcade-reward{animation:none}
/* ============================================================================
   OVERLAY SYSTEM + ICON-FIRST + BUTTON DENSITY (2026-11-22, owner voice call)
   ----------------------------------------------------------------------------
   WS1 — ONE OVERLAY LAYER. Root cause of "overlays sitting on headers":
   #parlor-shell is a positioned sibling of <main> carrying z-index:1000 +
   isolation:isolate (its own stacking context), while every page-level
   overlay lived far below it (.modal-cover z-20→140, .parlor-onb z-120,
   signup/milestone z-60/61). The sticky header therefore painted THROUGH
   every modal backdrop. The scale below is the single authority; values
   inside #parlor-shell (header 920 / backdrop 930 / drawer 940 / search 980,
   re-declared 1020–1040 by three convergence sheets) stay internal to the
   shell unit and are NOT reused by page overlays.
     page content ......... auto / 1
     #parlor-shell unit ... 1000 (header+drawer+search+tabbar live inside)
     modal / dialog ....... 1200  (.modal-cover — settings, locker, account)
     help / onboarding .... 1250  (.parlor-onb)
     toast / signup ....... 1300  (.parlor-signup-card, .parlor-loop-milestone)
   Native <dialog>.showModal() (Learn report form) paints in the browser top
   layer above all of these by platform design.
   ============================================================================ */
:root{--pz-modal:1200;--pz-help:1250;--pz-toast:1300}
body .modal-cover{z-index:var(--pz-modal);overscroll-behavior:contain}
body .parlor-onb{z-index:var(--pz-help)}
body .parlor-signup-card{z-index:var(--pz-toast)}
body .parlor-loop-milestone{z-index:var(--pz-toast)}
body.parlor-modal-open,body.parlor-onb-open{overflow:hidden}
/* Every dialog gets a real, visible 44px close control with the shared icon */
.modal .modal-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%}
.modal .modal-close svg{width:20px;height:20px;display:block}
.parlor-onb-close{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid rgba(60,45,20,.35);background:#fffdf7;color:#3c2d14;cursor:pointer}
.parlor-onb-close svg{width:20px;height:20px;display:block}
.parlor-onb-card{position:relative}
@media (prefers-reduced-motion: reduce){.modal-cover,.parlor-onb{transition:none}}

/* ---- WS2 — icon-first primitives (icons are inline SVG, stroke 1.8) ---- */
.picon{flex:none;display:inline-block;vertical-align:-3px}
.ps-subnav a{display:inline-flex;align-items:center;gap:7px}
.ps-subnav a svg{width:16px;height:16px;color:var(--parlor-brass-soft,#ecd28a)}
#parlor-shell .ps-drawer-more>a{display:flex;align-items:center;gap:11px}
#parlor-shell .ps-drawer-more>a svg{width:19px;height:19px;flex:none;color:#dfc18a}
.ps-level .picon{width:14px;height:14px;vertical-align:-2px;color:var(--parlor-brass-soft)}
.parlor-primary-actions .picon{width:19px;height:19px}
.parlor-discover-play .picon,.parlor-discover-modes .picon{width:15px;height:15px;vertical-align:-2px}
.pj-cta .picon{width:17px;height:17px;vertical-align:-3px}
.parlor-card-category .picon{width:14px;height:14px;vertical-align:-2px;margin-right:5px;color:var(--parlor-brass-soft,#ecd28a)}
.parlor-mode-play-now .picon,.parlor-mode-arrow .picon{width:16px;height:16px;vertical-align:-3px}
.parlor-rematch-buttons .picon{width:16px;height:16px;vertical-align:-3px}
.lt-play .picon,.club-journey .cj-cta .picon{width:17px;height:17px;vertical-align:-3px}

/* ---- WS3 — button density: same styling, ~half the fat ----------------
   Before → after (source values; harness measures rendered values):
   .primary/.secondary base padding ~12px 22px → 8px 16px, min-height 46px
   .small-button padding ~9px 14px → 6px 10px, min-height 40px
   discover card actions 10px 14px / mh48 → 6px 11px / mh44, gap 8→6
   journey + club CTAs 10px 18px → 6px 13px (min-height stays 44px)
   drawer nav rows 10px 14px / mh53 → 6px 12px / mh46, gap 16→12
   drawer more rows 11px 14px → 7px 12px (min-height stays 44px)
   search chips 9px 18px → 5px 12px, min-height 44→40px
   loops play 12px 18px → 7px 13px; loops dismiss 10px 14px → 6px 11px
   shop buttons 10px 20px → 6px 14px (min-height stays 44px)
   game-head button gap 10px → 6px                                            */
body .primary-button,body .secondary-button{padding:8px 16px;min-height:46px}
body .small-button{padding:6px 10px;min-height:40px}
body .game-head-buttons{gap:6px}
body.parlor-site .parlor-discover-card-actions{gap:6px;margin-top:6px}
body.parlor-site .parlor-discover-card-actions button{min-height:44px;padding:6px 11px}
.pj-cta{padding:6px 13px}
.club-journey a.cj-cta{padding:6px 13px}
#parlor-shell .ps-drawer-nav a{padding:6px 12px;min-height:46px;gap:12px}
#parlor-shell .ps-drawer-more>a{padding:7px 12px}
#parlor-shell .ps-search-chips button{padding:5px 12px;min-height:40px}
#parlor-shell .ps-search-dismiss{padding:6px 12px}
.parlor-loop-play{padding:7px 13px}
.parlor-loop-dismiss,.parlor-loop-sharebtn,.parlor-loop-close{padding:6px 11px}
.shop-main button{padding:6px 14px}
.parlor-signup-actions{gap:6px;margin-top:8px}
.weekly-actions{gap:6px}

/* WS9 — Rooms + Paths run LONG on desktop (were narrow single columns) */
@media(min-width:900px){
 body.parlor-site .rm{max-width:1180px;display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
 body.parlor-site .rm>.rm-title,body.parlor-site .rm>p,body.parlor-site .rm>.rm-error{grid-column:1/-1}
 body.parlor-site .rm-card{margin:0}
 .learn-paths{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;max-width:1180px;margin-inline:auto}
 .learn-paths>.lt-title,.learn-paths>.lt-note{grid-column:1/-1}
 .lt-domain ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0 0}
}
/* WS8 — Explore tabbed inside search: the panel goes LONG (wide sheet),
   the tall drawer is retired. */
#parlor-shell .ps-search-panel{top:calc(76px + env(safe-area-inset-top,0px));bottom:auto;left:auto;right:clamp(12px,2vw,28px);transform:none;width:min(540px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 92px);overflow-y:auto;border-radius:16px}
@media(max-width:640px){#parlor-shell .ps-search-panel{top:calc(66px + env(safe-area-inset-top,0px));right:8px;left:auto;width:calc(100vw - 16px);max-height:calc(100dvh - 80px);border-radius:14px}}
#parlor-shell .ps-tabs{display:flex;gap:6px;margin:12px 0 6px}
#parlor-shell .ps-tabs [role="tab"]{min-height:44px;padding:7px 20px;border-radius:999px;border:1px solid var(--parlor-line-dark);background:transparent;color:var(--parlor-cream);font:700 .9rem Inter,system-ui,sans-serif;cursor:pointer}
#parlor-shell .ps-tabs [role="tab"][aria-selected="true"]{background:var(--parlor-brass);border-color:var(--parlor-brass);color:#231a08}
#parlor-shell .ps-explore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#parlor-shell .ps-explore-grid a{display:flex;align-items:center;gap:11px;min-height:62px;padding:10px 14px;border:1px solid var(--parlor-line-dark);border-radius:12px;background:var(--parlor-forest-800);color:var(--parlor-cream);text-decoration:none;font:650 1rem Inter,system-ui,sans-serif}
#parlor-shell .ps-explore-grid a svg{width:22px;height:22px;flex:none;color:var(--parlor-brass-soft)}
#parlor-shell .ps-explore-grid a[aria-current="page"]{border-color:var(--parlor-brass);background:#1d4732}
@media(max-width:640px){#parlor-shell .ps-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* PARENT-FIX D3 (2026-11-22) - search title wrapping. Root cause, three links:
   (1) the full-viewport-era panel padding in parlor-shell.css
   (calc((100vw - 1120px)/2) side padding) survived the WS8 move to a centered
   1180px sheet, double-centering content into a 380px column at 1920px and a
   44px title box at 1280 CSS px (a 1920 screen at 150% scaling);
   (2) row cards spend 96px on the art thumb beside the title;
   (3) parlor-shell.css set overflow-wrap:anywhere on the title, licensing
   mid-word breaks. Fixes: sheet padding back to sheet scale, wider grid
   columns on the wide sheet, titles wrap at word boundaries only. */
#parlor-shell .ps-search-panel{padding:22px clamp(18px,3vw,34px) 26px}
#parlor-shell .ps-search-results .ps-search-game-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
#parlor-shell .ps-search-results .ps-search-game strong{overflow-wrap:break-word;word-break:normal}
@media(max-width:640px){#parlor-shell .ps-search-panel{padding:calc(16px + env(safe-area-inset-top,0px)) 14px calc(100px + env(safe-area-inset-bottom,0px))}}
#parlor-shell .ps-explore-frame{margin-top:14px;border:1px solid var(--parlor-line-dark);border-radius:12px;padding:12px 14px 14px}
#parlor-shell .ps-explore-frame h3{margin:0 0 8px;font:700 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.12em;color:var(--parlor-brass-soft)}
#parlor-shell .ps-explore-links{display:grid;gap:2px}
#parlor-shell .ps-explore-links a{display:flex;align-items:center;gap:11px;min-height:46px;padding:7px 10px;border-radius:9px;color:var(--parlor-cream);text-decoration:none;font:600 .95rem Inter,system-ui,sans-serif}
#parlor-shell .ps-explore-links a svg{width:19px;height:19px;color:var(--parlor-brass-soft)}
#parlor-shell .ps-explore-links a:hover,#parlor-shell .ps-explore-links a:focus-visible{background:var(--parlor-forest-800)}
#parlor-shell .ps-explore-account{margin-top:8px;min-height:44px;padding:7px 16px;border-radius:9px;border:1px solid var(--parlor-brass);background:transparent;color:var(--parlor-cream);font:700 .9rem Inter,system-ui,sans-serif;cursor:pointer}
/* ============================================================================
   WS5 STACKED CARDS + MODES OVERLAY + WS6 CATALOG + WS7 PROFILE (2026-11-22)
   Cards: cover art is a clean top block (no text on the art), one short line
   of text below, Play Now + Modes & Editions inside the card. Modes open as
   an overlay on the WS1 layer. Profile = icon-led stacked frames.
   ============================================================================ */
body.parlor-site #library .parlor-group-card{display:flex;flex-direction:column;background:#fdfaf1;border:1px solid rgba(154,116,31,.35);border-radius:16px;overflow:hidden;color:#1e2b24;text-align:left}
body.parlor-site #library .parlor-card-media{position:relative;inset:auto;aspect-ratio:16/9.6;overflow:hidden;flex:none;background:#0e271e}
body.parlor-site .parlor-card-media img{width:100%;height:100%;object-fit:cover;display:block}
body.parlor-site .parlor-card-body{display:grid;gap:5px;padding:11px 13px 13px}
body.parlor-site .parlor-card-category{display:inline-flex;align-items:center;font:700 10.5px/1.3 Inter,system-ui,sans-serif;letter-spacing:.1em;color:#8a6a1f}
body.parlor-site .parlor-card-title{font:600 19px/1.15 Georgia,serif;margin:0;color:#17362a}
body.parlor-site .parlor-card-line{margin:0;font-size:.86rem;line-height:1.35;color:#4c5f55;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
body.parlor-site #library .parlor-card-mastery{color:#8a6a1f;text-transform:none;letter-spacing:.01em}
body.parlor-site #library .parlor-card-mastery-new{color:#5c564c;opacity:.8}
body.parlor-site #library .parlor-card-progress{background:rgba(20,51,37,.16);max-width:220px}
body.parlor-site .parlor-card-locked{display:inline-flex;gap:6px;align-items:center;font:600 .8rem Inter,system-ui,sans-serif;color:#7c6a3a}
body.parlor-site .parlor-card-locked .picon{width:14px;height:14px}
body.parlor-site .parlor-card-actions{display:flex;gap:6px;margin-top:5px}
body.parlor-site .parlor-card-play{flex:1.25;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 10px;border-radius:10px;border:1px solid #1d4732;background:#1d4732;color:#f6f0e6;font:700 .86rem Inter,system-ui,sans-serif;cursor:pointer}
body.parlor-site .parlor-card-modes{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 10px;border-radius:10px;border:1px solid rgba(29,71,50,.5);background:transparent;color:#1d4732;font:700 .86rem Inter,system-ui,sans-serif;cursor:pointer}
body.parlor-site .parlor-card-play .picon,body.parlor-site .parlor-card-modes .picon{width:15px;height:15px}
/* Discover cards: same stacked pattern (art block, paper body below) */
body.parlor-site .parlor-discover-card{aspect-ratio:auto;height:auto;background:#fdfaf1;border-color:rgba(154,116,31,.4)}
body.parlor-site .parlor-discover-card-art{position:relative;inset:auto;aspect-ratio:16/9.5;width:100%;height:auto;flex:none}
/* P3 CARD ANATOMY (owner evidence 2026-11-22 16:26 CST): no eyebrow on cards,
   mastery is a small inline marker beside the title, actions sit directly
   under the text — card height is content-driven, no filler rows. */
.parlor-card-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.parlor-card-head .parlor-card-title{margin:0}
.parlor-card-head .parlor-card-mastery{font-size:.72rem;font-weight:700;white-space:nowrap}
.parlor-discover-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.parlor-discover-head h3{margin:0}
.parlor-discover-head .parlor-card-mastery{font-size:.72rem;font-weight:700;color:#8a6a1f;white-space:nowrap}
body.parlor-site .parlor-discover-card-actions{margin-top:6px}
body.parlor-site .parlor-discover-card-content{color:#22392e;padding:11px 13px 13px;gap:5px;justify-content:flex-start}
body.parlor-site .parlor-discover-card-content h3{color:#17362a;margin:0}
body.parlor-site .parlor-discover-card-content p{color:#4c5f55;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:0}
body.parlor-site .parlor-discover-card-kicker{color:#8a6a1f;display:inline-flex;align-items:center;gap:5px}
body.parlor-site .parlor-discover-card-kicker .picon{width:14px;height:14px}
body.parlor-site .parlor-discover-modes{border-color:rgba(29,71,50,.5);background:transparent;color:#1d4732}
body.parlor-site .parlor-discover-mastery .parlor-card-mastery{color:#8a6a1f}
body.parlor-site .parlor-discover-mastery .parlor-card-progress{background:rgba(20,51,37,.16)}
/* Modes & editions overlay (WS1 layer, z 1200 via .modal-cover) */
.parlor-modes-cover{padding:14px}
.parlor-modes-modal{width:min(1060px,100%);max-height:calc(100dvh - 28px);padding:clamp(16px,3vw,30px);position:relative}
.parlor-modes-modal .modal-close{position:absolute;top:10px;right:10px;z-index:6;background:#f5eee0;border:1px solid rgba(60,45,20,.25)}
.parlor-modes-modal .parlor-mode-gate{margin:0;max-width:none;padding:0}
.parlor-modes-modal .parlor-mode-art img{max-height:210px;width:100%;object-fit:cover}
@media(max-width:640px){.parlor-modes-cover{padding:0}.parlor-modes-modal{max-height:100dvh;border-radius:20px 20px 0 0}}
/* WS7 Profile frames */
.parlor-profile{display:grid;gap:14px;margin:18px auto;max-width:1180px}
.pp-frame{background:var(--parlor-paper);border:1px solid var(--parlor-line-dark);border-radius:16px;padding:16px 18px;color:var(--parlor-ink);box-shadow:0 8px 22px rgba(20,51,37,.08)}
.pp-frame-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.pp-frame-head .picon{width:20px;height:20px;color:var(--parlor-brass-deep)}
.pp-frame-head h3{font:600 19px/1.2 Georgia,serif;margin:0;color:var(--parlor-forest-900)}
.pp-frame-head>span{margin-left:auto;font:600 .8rem Inter,system-ui,sans-serif;color:var(--parlor-muted)}
.pp-frame p{color:var(--parlor-ink-soft)}
.pp-milestones{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pp-milestones li{display:flex;gap:10px;align-items:flex-start}
.pp-milestones li small{display:block;color:var(--parlor-muted)}
.pp-fam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pp-fam{display:grid;gap:6px;text-align:left;padding:10px 12px;border:1px solid var(--parlor-line);border-radius:12px;background:#fffdf8;color:var(--parlor-ink);cursor:pointer;font:inherit}
.pp-fam:hover,.pp-fam:focus-visible{border-color:var(--parlor-brass)}
.pp-fam-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-width:0}
.pp-fam-top strong{font:600 14.5px/1.2 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp-fam-top small{font:600 11px/1.3 Inter,system-ui,sans-serif;color:var(--parlor-muted);flex:none}
.pp-fam-bar{background:rgba(20,51,37,.15)}
.pp-settings-actions{display:flex;gap:6px;flex-wrap:wrap}
.pp-frame-link{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
@media(max-width:760px){.pp-fam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.pp-fam-grid{grid-template-columns:1fr}}
/* WS1 DEEP FOLLOW-UP (2026-11-22): sub-page hero convergence. Today / Paths /
 * Rooms / Learn heroes join the home .parlor-hero grid grammar — text LEFT,
 * art RIGHT, headline first, flat felt, tight icon CTAs, no wordmark. These
 * rules live in the canonical sheet so pages that do not load the
 * blackline12 sheet still get the grammar; values mirror the home hero. */
.parlor-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(20px,3.5vw,52px);align-items:center;background:#143325;border:1px solid rgba(207,161,74,.35);border-radius:20px;padding:clamp(26px,4vw,54px);margin:14px auto 18px;color:#f6f0e6;max-width:1180px;box-sizing:border-box}
.parlor-hero-eyebrow{font:700 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.16em;color:#e8c98d}
.parlor-hero h1,.parlor-hero h2{font:600 clamp(32px,4.2vw,54px)/1.05 Georgia,serif;margin:10px 0 12px;color:#f6f0e6;letter-spacing:-.01em}
.parlor-hero-lede{font-size:1.02rem;line-height:1.55;color:#e9e0cb;max-width:52ch;margin:0 0 18px}
.parlor-hero-ctas{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ph-cta{display:inline-flex;align-items:center;gap:7px;min-height:46px;padding:8px 16px;border-radius:999px;border:1px solid rgba(246,240,230,.4);background:transparent;color:#f6f0e6;font:700 .92rem Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer}
.ph-cta .picon{width:16px;height:16px}
.ph-cta-primary{background:#cfa14a;border-color:#cfa14a;color:#231a08}
/* PARENT-FIX D2 (2026-11-22) - hero CTAs sit on dark felt on every hero, but
   page-level link colors built for cream body copy (.learn-today a /
   .learn-paths a in parlor-today-v1.css, the Rooms sheet) outrank .ph-cta and
   rendered hero anchors dark-on-dark (measured 1.31:1 Today, 1.57:1 Rooms).
   The established on-dark treatment (cream text + brass border), scoped to
   .parlor-hero so light-surface links are untouched. */
.parlor-hero .ph-cta{color:#f6f0e6;border-color:rgba(207,161,74,.6)}
.parlor-hero .ph-cta:hover{color:#fff;border-color:#cfa14a}
.parlor-hero .ph-cta-primary{color:#231a08;border-color:#cfa14a}
.parlor-hero-art{min-width:0}
.sub-hero-art{background:rgba(246,240,230,.06);border:1px solid rgba(207,161,74,.3);border-radius:16px;padding:18px}
.sub-hero-art .pj-bar,.sub-hero-art .lt-journey-bar{background:rgba(246,240,230,.18);border-radius:999px;height:8px;overflow:hidden;margin:10px 0 6px}
.sub-hero-art .pj-bar i,.sub-hero-art .lt-journey-bar i{display:block;height:100%;background:#cfa14a}
.sub-hero-art small{color:#b9ac8f}
.sub-hero-art img{width:100%;height:auto;border-radius:12px;display:block}
.learn-paths>.parlor-hero{grid-column:1/-1;width:100%}
.learn-today .parlor-hero{max-width:none}
.rooms-art-code{font:700 clamp(26px,3vw,40px)/1.1 Georgia,serif;letter-spacing:.18em;color:#f6f0e6;margin:6px 0}
@media(max-width:860px){.parlor-hero{grid-template-columns:1fr}}
.pp-frame h4{font:600 14px/1.3 Georgia,serif;margin:14px 0 6px}
/* WS-B restructure: the mode hub hero joins the .parlor-hero grammar. These scoped
   rules retire the mode-flow sheet's off-grammar composition inside the gate only
   (112px display type, Arial lede, gradient scrim over the cover art). */
body.parlor-site .parlor-mode-hero.parlor-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:#143325;border:1px solid rgba(207,161,74,.35);border-radius:16px;padding:clamp(22px,3.4vw,40px);margin:0;max-width:none;min-height:0;color:#f6f0e6}
body.parlor-site .parlor-mode-hero .parlor-mode-hero-copy{position:relative;z-index:2;max-width:none;width:auto;padding:0;display:block}
body.parlor-site .parlor-mode-hero .parlor-mode-hero-copy h1{font:600 clamp(32px,4.2vw,54px)/1.05 Georgia,serif;letter-spacing:-.01em;color:#f6f0e6;margin:10px 0 12px;max-width:none}
body.parlor-site .parlor-modes-modal .parlor-mode-hero .parlor-hero-lede{font:400 1.02rem/1.55 Inter,system-ui,sans-serif;color:#e9e0cb;max-width:52ch;margin:0 0 18px}
body.parlor-site .parlor-mode-hero .parlor-mode-back{margin-bottom:12px}
body.parlor-site .parlor-mode-hero .parlor-mode-play-now{border-radius:999px;padding:8px 16px;min-height:46px;background:#cfa14a;border-color:#cfa14a;color:#231a08}
body.parlor-site .parlor-mode-hero .parlor-mode-art{position:relative;overflow:hidden;background:none;border-radius:12px;min-height:180px}
body.parlor-site .parlor-mode-hero .parlor-mode-art:before{display:none}
body.parlor-site .parlor-mode-hero .parlor-mode-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media(max-width:860px){body.parlor-site .parlor-mode-hero.parlor-hero{grid-template-columns:1fr}body.parlor-site .parlor-mode-hero .parlor-mode-art{position:relative;inset:auto;opacity:1;min-height:160px}}
/* WS-C restructure: contrast pins from the rendered census. The Learn Today
   components are skinned twice (today-v1 light cards; identity-recovery dark
   section inside the home Daily Club disclosure) and inherited whichever
   color lost. These pins make each component own its scheme in its context. */
.sub-hero-art .lt-stats{color:#f6f0e6}
body.parlor-site .parlor-discover-card .parlor-card-mastery{color:#7d5f1a}
.parlor-daily-disclosure .learn-today .lt-route{background:#fffaf0;color:#1d342b}
.parlor-daily-disclosure .learn-today .lt-activity{background:#fffaf0;color:#1d342b}
.parlor-daily-disclosure .learn-today .lt-activity-note{color:#cbd7c9}
.lt-nav a{display:inline-flex;align-items:center;min-height:44px}

/* BLACKLINE 13 — source-owned structural convergence, 2026-11-23.
   Navigation is a drawer; search is a popover; collections are in-flow gates. */
#parlor-shell .ps-nav-drawer{position:fixed;z-index:980;inset:0 0 0 auto;width:min(380px,calc(100vw - 14px));max-width:calc(100vw - 14px);height:100dvh;padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px));background:#143325;color:#f6f0e6;border-left:1px solid rgba(207,161,74,.42);border-radius:18px 0 0 18px;overflow-y:auto;overscroll-behavior:contain;box-shadow:-18px 0 50px rgba(3,22,15,.3)}
#parlor-shell .ps-nav-drawer[aria-hidden="true"]{visibility:hidden;pointer-events:none;transform:translateX(105%)}
#parlor-shell .ps-nav-drawer[aria-hidden="false"]{visibility:visible;pointer-events:auto;transform:translateX(0)}
#parlor-shell .ps-nav-drawer .ps-drawer-head{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:2px 0 14px;border-bottom:1px solid rgba(207,161,74,.3)}
#parlor-shell .ps-nav-drawer .ps-drawer-head strong{font:600 clamp(25px,5vw,31px)/1.15 Georgia,serif;letter-spacing:-.025em}
#parlor-shell .ps-nav-drawer .ps-drawer-close{margin-left:auto;min-width:44px;min-height:44px;border:1px solid rgba(236,210,138,.45);border-radius:10px;background:rgba(255,255,255,.05);color:#f6f0e6;font-size:24px;line-height:1;cursor:pointer}
#parlor-shell .ps-nav-drawer .ps-explore-grid{grid-template-columns:minmax(0,1fr);gap:4px;margin:0}
#parlor-shell .ps-nav-drawer .ps-explore-grid a{min-height:48px;padding:10px 12px;background:transparent;border-color:transparent;border-radius:9px;font-size:14px;gap:12px}
#parlor-shell .ps-nav-drawer .ps-explore-grid a:hover,#parlor-shell .ps-nav-drawer .ps-explore-grid a[aria-current="page"]{background:#ecd28a1c;border-color:#cfa14a70}
#parlor-shell .ps-nav-drawer .ps-explore-grid a svg{width:19px;height:19px}
#parlor-shell .ps-nav-drawer .ps-explore-frame{padding:12px;margin-top:18px}
#parlor-shell .ps-search-panel{left:auto;right:clamp(12px,2vw,28px);transform:none;width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:auto;min-height:0;max-height:calc(100dvh - 92px);border-radius:16px}
#parlor-shell .ps-search-panel .ps-search-heading label{font:600 clamp(25px,3vw,32px)/1.1 Georgia,serif;letter-spacing:-.03em}
#parlor-shell .ps-search-panel input{min-height:48px;padding:11px 14px;font-size:15px}
#parlor-shell .ps-search-game-grid{grid-template-columns:minmax(0,1fr);gap:7px}
#parlor-shell .ps-search-panel .ps-search-game{min-height:64px;padding:8px 10px}
#parlor-shell .ps-search-panel .ps-search-game-mark.ps-search-game-art{width:74px;height:52px}
#parlor-shell .ps-search-panel .ps-search-chips{margin:12px 0;gap:6px}
#parlor-shell .ps-search-panel .ps-search-chips button{min-height:40px;padding:6px 11px}
body.parlor-site #discover .parlor-discover-row{width:min(100%,1240px);max-width:1240px;margin:clamp(18px,3vw,42px) auto!important;padding-inline:clamp(14px,2vw,24px)}
body.parlor-site #discover .parlor-discover-row-header{display:flex;align-items:center;gap:16px;margin:0 0 12px;padding:0 0 14px;min-height:0}
body.parlor-site #discover .parlor-discover-row-header h2{font-size:clamp(30px,4vw,48px);line-height:1.1;letter-spacing:-.04em}
body.parlor-site #discover .parlor-discover-row-header>button{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:auto;height:auto;min-height:44px;padding:8px 15px;font-size:12px;white-space:nowrap;flex:none}
body.parlor-site #discover .parlor-collection-gate{border:1px solid rgba(154,116,31,.3);border-radius:13px;background:#faf7ef;padding:10px 12px 14px;overflow:hidden}
body.parlor-site #discover .parlor-collection-gate>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 9px;cursor:pointer;list-style:none;color:#214936;font:650 14px/1.35 system-ui,sans-serif}
body.parlor-site #discover .parlor-collection-gate>summary::-webkit-details-marker{display:none}
body.parlor-site #discover .parlor-collection-gate>summary small{margin-left:auto;font:600 12px/1.3 system-ui,sans-serif;color:#685e4d}
body.parlor-site #discover .parlor-gate-symbol{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid rgba(154,116,31,.36);border-radius:8px;font:600 20px/1 system-ui,sans-serif;transition:transform .2s}
body.parlor-site #discover .parlor-collection-gate[open] .parlor-gate-symbol{transform:rotate(45deg)}
body.parlor-site #discover .parlor-collection-gate>.parlor-discover-row-grid{margin-top:10px}
body.parlor-site #discover .parlor-discover-card{background:#fdfaf1;min-height:0;height:auto;aspect-ratio:auto;overflow:hidden}
body.parlor-site #discover .parlor-discover-card:after{content:none!important}
body.parlor-site #discover .parlor-discover-card-content{background:#fdfaf1;color:#17362a;min-width:0;gap:7px}
body.parlor-site #discover .parlor-discover-card-content h3{font-size:clamp(22px,2.2vw,29px);line-height:1.15;color:#17362a}
body.parlor-site #discover .parlor-discover-card-content p{color:#4c5f55;font-size:13px;line-height:1.45}
body.parlor-site #discover .parlor-discover-modes{background:transparent;border:1px solid rgba(29,71,50,.5);color:#1d4732}
body.parlor-site #discover .parlor-discover-play{background:#1d4732;border-color:#1d4732;color:#fdfaf1}
body.parlor-site #library{max-width:1240px;width:calc(100% - 32px);margin:clamp(16px,2.5vw,32px) auto;min-width:0}
body.parlor-site #library .game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:clamp(12px,1.5vw,18px);min-width:0}
body.parlor-site #library .parlor-group-card{min-width:0;width:100%;height:auto;min-height:0;display:flex;flex-direction:column}
body.parlor-site #library .parlor-card-body{min-width:0;width:100%;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:6px;flex:1;padding:12px 14px 14px}
body.parlor-site #library .parlor-card-head{min-width:0;max-width:100%;width:100%;gap:5px;align-items:flex-start}
body.parlor-site #library .parlor-card-title{max-width:100%;min-width:0;overflow-wrap:break-word;font-size:clamp(17px,2vw,20px)}
body.parlor-site #library .parlor-card-actions{min-width:0;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-self:end}
body.parlor-site #library .parlor-card-actions button{width:100%;min-width:0;font-size:12px;white-space:normal}
body.parlor-site #library .parlor-card-media{aspect-ratio:16/9.5;max-height:225px;flex:none}
@media(max-width:740px){
 #parlor-shell .ps-nav-drawer{width:min(360px,calc(100vw - 14px));border-radius:14px 0 0 14px}
 #parlor-shell .ps-search-panel{top:calc(66px + env(safe-area-inset-top,0px));right:8px;width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 80px);border-radius:14px;padding:14px}
 body.parlor-site #discover .parlor-discover-row-header{align-items:flex-start;flex-wrap:wrap;gap:10px}
 body.parlor-site #discover .parlor-discover-row-header>button{min-height:44px}
 body.parlor-site #discover .parlor-discover-card-art{max-height:180px;aspect-ratio:16/9.5}
 body.parlor-site #library .game-grid{grid-template-columns:minmax(0,1fr)}
 body.parlor-site #library{width:calc(100% - 28px)}
}
@media(max-width:400px){#parlor-shell .ps-nav-drawer{padding-inline:14px}#parlor-shell .ps-search-panel .ps-search-game-mark.ps-search-game-art{width:64px;height:48px}}
@media(prefers-reduced-motion:reduce){#parlor-shell .ps-nav-drawer,body.parlor-site #discover .parlor-gate-symbol{transition:none}}

/* BLACKLINE 13.1 — small-viewport containment invariants. */
@media(max-width:420px){
 #parlor-shell .ps-header .ps-level{display:none!important}
 #parlor-shell .ps-header{justify-content:space-between!important;gap:8px!important;padding-inline:12px!important}
 #parlor-shell .ps-header-actions{flex:0 0 auto!important;min-width:0!important;max-width:calc(100% - 94px)!important;gap:7px!important;margin-left:auto!important}
 #parlor-shell .ps-header-actions :is(.ps-icon-button,.ps-avatar){flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important}
}
@media(max-width:640px){
 body.parlor-site #library .game-grid{grid-template-columns:minmax(0,1fr)!important}
}
body.parlor-site #library .parlor-group-card{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden}
body.parlor-site #library .parlor-card-body{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;flex:1 0 auto!important}
body.parlor-site #library .parlor-card-head{min-width:0!important;max-width:100%!important}

/* BLACKLINE 13.2 — mode selection is a real in-page gated destination. */
body.parlor-site.at-mode-gate :is(.parlor-daily-top,.parlor-clarity){display:none!important}
body.parlor-site.at-mode-gate #main{width:100%;max-width:1280px;margin-inline:auto;padding:clamp(16px,2vw,30px) clamp(14px,3vw,28px) 64px}
body.parlor-site.at-mode-gate #app{width:100%;min-width:0}
body.parlor-site.at-mode-gate .parlor-mode-gate{max-width:1180px;margin:0 auto;min-width:0}
body.parlor-site.at-mode-gate .parlor-mode-hero{margin:0 0 20px}
body.parlor-site.at-mode-gate .parlor-mode-content{min-width:0}
body.parlor-site.at-mode-gate .parlor-mode-back{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;min-height:44px;padding:9px 15px;margin-bottom:12px;border:1px solid rgba(207,161,74,.6);border-radius:10px;background:rgba(255,255,255,.07);color:#f6f0e6;font:650 13px/1.3 system-ui,sans-serif;cursor:pointer}
body.parlor-site.at-mode-gate .parlor-mode-back:focus-visible{outline:3px solid #ecd28a;outline-offset:3px}
@media(max-width:740px){
 body.parlor-site.at-mode-gate #main{padding-inline:14px}
 body.parlor-site.at-mode-gate .parlor-mode-hero{padding:20px;gap:15px}
}

/* BLACKLINE 14.1 — Daily Club follows the homepage hero, never precedes or overlays it. */
body.parlor-site #discover > .parlor-daily-top{
 width:100%;max-width:100%;min-width:0;box-sizing:border-box;
 margin:clamp(16px,2.4vw,28px) 0;padding:0;
}
body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure{
 width:100%;max-width:100%;min-width:0;margin:0!important;box-sizing:border-box;
}
body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary{
 min-width:0;max-width:100%;box-sizing:border-box;flex-wrap:wrap;
 gap:8px clamp(12px,2vw,22px);padding:clamp(13px,2vw,20px) clamp(16px,2.5vw,28px);
}
body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary strong{
 min-width:0;flex:1 1 220px;font-size:clamp(19px,2.15vw,28px);
 white-space:normal;overflow-wrap:break-word;line-height:1.2;
}
body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary span:last-child{
 min-width:0;white-space:normal;text-align:right;
}
body.parlor-site #discover > .parlor-daily-top #learn-today{
 min-width:0;max-width:100%;overflow-wrap:anywhere;
}
@media(max-width:640px){
 body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;min-height:0;
 }
 body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary span:first-child{
  grid-column:1;grid-row:1;
 }
 body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary span:last-child{
  grid-column:2;grid-row:1;margin:0;justify-self:end;
 }
 body.parlor-site #discover > .parlor-daily-top .parlor-daily-disclosure > summary strong{
  grid-column:1/-1;grid-row:2;order:initial;flex-basis:auto;font-size:clamp(19px,5vw,24px);
 }
}