/* Duemello — paper, pastels, and a single typographic rhythm.
   Loaded after page styles; game boards and White Room keep their own rules. */
html[data-audience][data-audience][data-audience][data-audience]{
  --dm-page:#faf9f6;--dm-surface:#fff;--dm-raised:#fff;--dm-soft:#e6eee7;--dm-soft-2:#dce9df;
  --dm-ink:#292d2b;--dm-muted:#656b67;--dm-line:#e2e4df;--dm-line-strong:#707b73;
  --dm-primary:#40594b;--dm-on-primary:#fff;--dm-accent:#e9dfbd;--dm-on-accent:#38362d;
  --dm-pop:#e8cbd0;--dm-pop-2:#dbe6f1;--dm-glow:#eee8d4;
  --dm-display:Inter,"Segoe UI",system-ui,sans-serif;--dm-body:Inter,"Segoe UI",system-ui,sans-serif;
  --dm-display-weight:550;--dm-display-tracking:-.045em;--dm-display-case:none;
  --dm-radius-xl:20px;--dm-radius-lg:16px;--dm-radius-md:12px;--dm-radius-sm:9px;--dm-radius-pill:10px;
  --dm-border:1px;--dm-card-border:1px solid var(--dm-line);--dm-shadow:none;--dm-shadow-lift:0 5px 16px #292d2b08;
  --dm-pattern:none;--dm-body-bg:var(--dm-page);--dm-topbar-bg:var(--dm-page);color-scheme:light;
}
html[data-audience="couples"][data-audience][data-audience][data-audience]{--dm-soft:#f5e9ec;--dm-soft-2:#efdee3;--dm-primary:#78535e}
html[data-audience="friends"][data-audience][data-audience][data-audience]{--dm-soft:#eeebf6;--dm-soft-2:#e4dff1;--dm-primary:#62577d}
html[data-audience="family"][data-audience][data-audience][data-audience]{--dm-soft:#e7eff5;--dm-soft-2:#dbe7f0;--dm-primary:#486278}
html[data-audience] body.dm-app{font-family:var(--dm-body);line-height:1.5}
html[data-audience] body.dm-app :is(h1,h2,h3,.dm-display){font-family:var(--dm-body);font-style:normal;font-weight:550;letter-spacing:-.035em;line-height:1.2}
html[data-audience] body.dm-app :is(button,input,select,textarea){font-family:var(--dm-body)}
html[data-audience] body.dm-app :is(.dm-btn,.button,.dm-icon-btn,.header-room,.dm-nav,.dm-person .avatar,.ambience-toggle,.ambience-settings){box-shadow:none}
html[data-audience] body.dm-app :is(.dm-btn,.button){border-width:1px;font-weight:550;transform:none}
html[data-audience] body.dm-app :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--dm-primary);outline-offset:4px}
html[data-audience] body.dm-app .dm-nav{background:var(--dm-surface);border-color:var(--dm-line);backdrop-filter:none}
html[data-audience] body.dm-app .dm-nav-item{font-weight:500;letter-spacing:-.015em}
html[data-audience] body.dm-app .dm-nav-item[aria-current="page"]{background:var(--dm-soft);color:var(--dm-primary)}
html[data-audience] body.dm-app .dm-nav-item svg{stroke-width:1.65}
html[data-audience] body.dm-app .dm-nav-item[data-nav="ask"] svg{color:currentColor}
html[data-audience] body.dm-app .dm-main{max-width:1280px}
html[data-audience] body.dm-app :is(.dm-swatch,.dm-theme-dots i){box-shadow:inset 0 0 0 1px #0000000d}
html[data-audience] .dm-swatch[data-swatch="everyone"]{background:#dce9df}html[data-audience] .dm-swatch[data-swatch="couples"]{background:#efdee3}html[data-audience] .dm-swatch[data-swatch="friends"]{background:#e4dff1}html[data-audience] .dm-swatch[data-swatch="family"]{background:#dbe7f0}
html[data-audience] .dm-swatch::after{display:none}
html[data-audience] body.dm-app :is(.dm-theme-card,.audience-choice){border:1px solid transparent!important;box-shadow:none!important;border-radius:12px}
html[data-audience] body.dm-app :is(.dm-theme-card,.audience-choice) strong{font:550 1rem/1.25 var(--dm-body);letter-spacing:-.025em}
html[data-audience] body.dm-app :is(.dm-theme-card,.audience-choice)[aria-pressed="true"]{border-color:var(--dm-primary)!important;box-shadow:inset 0 0 0 1px var(--dm-primary)!important}
html[data-audience] body.dm-app :is([data-preview="everyone"],.audience-choice[data-audience="everyone"]){background:#e6eee7;color:#34483a}
html[data-audience] body.dm-app :is([data-preview="couples"],.audience-choice[data-audience="couples"]){background:#f5e9ec;color:#644550}
html[data-audience] body.dm-app :is([data-preview="friends"],.audience-choice[data-audience="friends"]){background:#eeebf6;color:#534865}
html[data-audience] body.dm-app :is([data-preview="family"],.audience-choice[data-audience="family"]){background:#e7eff5;color:#3f5568}
html[data-audience] body.dm-app .dm-theme-card{min-height:118px}
/* Calm landing composition, with the White Room still the main feature. */
html[data-audience] body.dm-home #library-view{gap:36px}
html[data-audience] body.dm-home #library-view>.welcome.dm-hero{order:-3}
html[data-audience] body.dm-home #library-view>.wr-home-preview{order:-2}
html[data-audience] body.dm-home #library-view>.social-start{order:0}
html[data-audience] body.dm-home .welcome.dm-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;grid-template-areas:"copy feature";min-height:0;gap:40px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;align-items:center}
html[data-audience] body.dm-home .dm-hero .welcome-copy{padding:20px 0;gap:18px}
html[data-audience] body.dm-home .dm-hero h1{font:550 clamp(2rem,3.9vw,3.45rem)/1.08 var(--dm-body);letter-spacing:-.055em;max-width:16ch}
html[data-audience] body.dm-home .dm-hero #hero-subtitle{max-width:48ch;font-size:1rem;line-height:1.65}
html[data-audience] body.dm-home .dm-hero-eyebrow{padding:0;background:none;font-size:.75rem!important;letter-spacing:.07em!important;text-transform:uppercase!important;color:var(--dm-muted)!important;font-weight:500!important}
html[data-audience] body.dm-home .dm-hero-eyebrow::before{display:none}
html[data-audience] body.dm-home .dm-hero .hero-actions{margin:0;gap:10px}
html[data-audience] body.dm-home .dm-hero .hero-celebration{font-size:.75rem}
html[data-audience] body.dm-home .hero-showcase{position:static;grid-area:feature;display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0;padding:0;border:1px solid var(--dm-line);border-radius:16px;background:var(--dm-surface);backdrop-filter:none;overflow:hidden;box-shadow:none;gap:0;transform:none}
html[data-audience] body.dm-home .hero-showcase .hero-illustration{width:100%;height:auto;aspect-ratio:8/5;border-radius:0;object-fit:cover}
html[data-audience] body.dm-home .hero-showcase .preview-caption{padding:16px;gap:6px;box-sizing:border-box}
html[data-audience] body.dm-home .hero-showcase .preview-play{display:none}
html[data-audience] body.dm-home .dm-hero :is(.event-decoration,.dm-hero-art){display:none}
.dm-home-search{display:flex;align-items:center;gap:12px;padding:6px 6px 6px 16px;background:var(--dm-surface);border:1px solid #cdd3cd;border-radius:12px;max-width:600px}
.dm-home-search>span{display:flex;color:var(--dm-muted)}.dm-home-search svg{width:20px;height:20px}
html[data-audience] body.dm-home .dm-home-search input{min-width:0;width:100%;min-height:44px;border:0;padding:0;background:none;box-shadow:none;font-size:15px}
.dm-home-search button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:var(--dm-soft);color:var(--dm-primary);cursor:pointer}
.dm-home-search:focus-within{border-color:var(--dm-primary);box-shadow:0 0 0 2px var(--dm-soft)}
html[data-audience] body.dm-home .wr-home-preview{border-radius:16px;padding:28px 32px;box-shadow:none;min-height:0;background:#f2f1ed;border-color:#deddd7}
html[data-audience] body.dm-home .wr-home-preview h2{font:550 clamp(1.65rem,3vw,2.6rem)/1.12 var(--dm-body);letter-spacing:-.045em}
html[data-audience] body.dm-home .wr-home-preview h2 em{font-family:inherit;font-style:normal}
html[data-audience] body.dm-home .wr-home-preview p{max-width:46ch;font-size:.9rem}
html[data-audience] body.dm-home .wr-home-art{width:180px;max-height:180px}
html[data-audience] body.dm-home .wr-floating-square{animation:none}
html[data-audience] body.dm-home .social-start{padding:0;background:none;border:0;box-shadow:none}
html[data-audience] body.dm-home .audience-switch{gap:10px}
html[data-audience] body.dm-home .audience-switch .audience-choice{min-height:78px;padding:16px;gap:6px}
html[data-audience] body.dm-home .audience-switch .audience-choice svg{display:none}
html[data-audience] body.dm-home .audience-switch .audience-choice small{font-size:.75rem}
html[data-audience] body.dm-home .dm-surprise-invite{background:transparent;border:1px solid var(--dm-line)}
html[data-audience] body.dm-home :is(.section-heading,.dm-section-head,.library-heading) h2{font-size:clamp(1.3rem,2vw,1.65rem);letter-spacing:-.035em}
html[data-audience] body.dm-home :is(.section-heading,.dm-section-head,.library-heading) p{font-size:.88rem;line-height:1.5}
html[data-audience] body.dm-home .dm-hello{padding:16px 20px;background:var(--dm-surface);box-shadow:none}
html[data-audience] body.dm-home .dm-hello-status{font:550 1rem/1.4 var(--dm-body)}
html[data-audience] body.dm-home .dm-hello-hint{font-size:.8rem}
html[data-audience] body.dm-home .dm-quick-icon{border:0;box-shadow:none;border-radius:12px;background:var(--dm-soft)}
html[data-audience] body.dm-home .dm-quick-item{box-shadow:none;border-radius:12px}
html[data-audience] body.dm-home .dm-quick-item:nth-child(2) .dm-quick-icon{background:#f3edda;color:#72613c}
html[data-audience] body.dm-home .dm-quick-item:nth-child(3) .dm-quick-icon{background:#f3e4e8;color:#78535e}
html[data-audience] body.dm-home .dm-quick-item:nth-child(4) .dm-quick-icon{background:#e9e5f1;color:#62577d}
/* Consistent shelves and covers: aligned baseline, one media ratio. */
html[data-audience] body.dm-app :is(.game-card,.instant-card,.discover-card,.recent-card,.directory-card,.dm-product){box-shadow:none;border-radius:14px;transform:none}
html[data-audience] body.dm-app :is(.game-card,.instant-card,.discover-card,.recent-card,.directory-card,.dm-product):hover{border-color:#aab4ad;box-shadow:0 4px 14px #292d2b07;transform:translateY(-2px)}
html[data-audience] body.dm-app :is(.game-cover,.instant-art,.discover-art,.dm-product-art){aspect-ratio:8/5;object-fit:cover;border-radius:0;background:var(--dm-soft);outline:none}
html[data-audience] body.dm-app :is(.game-cover img,.instant-art img,.discover-art img){mix-blend-mode:normal;object-fit:cover;filter:none;width:100%;height:100%}
html[data-audience] body.dm-app :is(.game-card-copy,.directory-card-copy,.instant-copy,.discover-copy,.dm-product-copy){padding:16px;gap:8px}
html[data-audience] body.dm-app :is(.game-card h3,.directory-card-copy strong,.instant-copy strong,.discover-copy strong,.dm-product strong){font:550 1rem/1.35 var(--dm-body);letter-spacing:-.025em}
html[data-audience] body.dm-home .game-card p{line-height:1.5;min-height:2.5em}
html[data-audience] body.dm-home .card-category{font-size:.65rem;font-weight:500;letter-spacing:.07em;color:var(--dm-muted)}
html[data-audience] body.dm-home .card-meta{padding-top:10px;margin-top:auto}
html[data-audience] body.dm-home .game-card-actions{border-top:1px solid var(--dm-line);padding:5px 10px;gap:4px}
html[data-audience] body.dm-home .game-card-actions button{border:0;font-weight:500;border-radius:8px;font-size:.75rem}
html[data-audience] body.dm-home .game-card-actions button:hover{background:var(--dm-soft)}
/* A single, predictable search surface. */
html[data-audience] body.dm-home .discovery-section{padding:0;background:none;border:0;box-shadow:none}
html[data-audience] body.dm-home .discovery-search{margin:18px 0 12px}
html[data-audience] body.dm-home .search-box{display:flex;width:100%;max-width:none;min-height:56px;border:1px solid #cdd3cd;border-radius:12px;background:var(--dm-surface);box-shadow:none;gap:12px;padding:0 14px}
html[data-audience] body.dm-home .search-box input{border:0;box-shadow:none;padding:0;font-size:16px;background:none;min-width:0}
html[data-audience] body.dm-home .search-box:focus-within{border-color:var(--dm-primary);box-shadow:0 0 0 2px var(--dm-soft)}
html[data-audience] body.dm-home .dm-library-filters{gap:4px;margin:16px 0;background:none;padding:0;box-shadow:none}
html[data-audience] body.dm-home .dm-library-filters .side-link{min-height:44px;padding:10px 14px;border-radius:9px;background:transparent;border:1px solid transparent;color:var(--dm-muted);font-weight:500}
html[data-audience] body.dm-home .dm-library-filters .side-link.active{background:var(--dm-soft);color:var(--dm-primary);border-color:var(--dm-soft-2)}
.dm-filter-panel{padding:0;border:0;margin:0 0 10px}
.dm-filter-panel>summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;font-size:.84rem;font-weight:550;min-height:44px;color:var(--dm-primary);width:fit-content}
.dm-filter-panel>summary::-webkit-details-marker{display:none}.dm-filter-panel>summary svg{width:16px;height:16px}.dm-filter-panel[open]>summary svg{transform:rotate(180deg)}
html[data-audience] body.dm-home .discovery-filters{padding:16px;background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:12px;margin:0 0 12px;gap:16px;align-items:end;grid-template-columns:repeat(3,minmax(0,1fr)) auto}
html[data-audience] body.dm-home .discovery-filters label{font-size:.75rem;gap:6px;color:var(--dm-muted)}
html[data-audience] body.dm-home .discovery-filters select{border-color:var(--dm-line);border-radius:8px;font-size:.875rem}
.dm-search-suggestions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 18px;font-size:.75rem;color:var(--dm-muted)}
.dm-search-suggestions>span{margin-right:4px}.dm-search-suggestions button{min-height:44px;border:1px solid var(--dm-line);border-radius:7px;background:transparent;color:var(--dm-muted);padding:6px 10px;cursor:pointer;font:inherit}.dm-search-suggestions button:hover{background:var(--dm-soft);color:var(--dm-primary)}
html[data-audience] body.dm-home .category-tabs{display:flex;gap:6px;padding:0 0 14px;border:0;border-bottom:1px solid var(--dm-line);flex-wrap:wrap}
html[data-audience] body.dm-home .category-tab{min-height:44px;border:1px solid transparent;border-radius:8px;background:transparent;font:500 .8rem/1.2 var(--dm-body);padding:9px 12px;box-shadow:none;color:var(--dm-muted)}
html[data-audience] body.dm-home .category-tab.active{background:var(--dm-soft);color:var(--dm-primary);border-color:var(--dm-soft-2)}
html[data-audience] body.dm-home .category-tab svg{display:none}
html[data-audience] body.dm-home .discovery-result-summary{margin:18px 0;gap:12px;font-size:.8rem}
html[data-audience] body.dm-home .discovery-result-summary p:empty{display:none}
html[data-audience] body.dm-home .activity-grid,html[data-audience] body.dm-page .directory-grid{gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-audience] body.dm-page .directory-search{border-radius:12px;box-shadow:none}
html[data-audience] body.dm-page .directory-intro h1{font:550 clamp(2rem,4vw,3rem)/1.15 var(--dm-body);letter-spacing:-.05em}
html[data-audience] body.dm-page .directory-filters{margin-top:0}
/* Remove decorative gradients and thick shadows from surrounding app chrome. */
html[data-audience] body.dm-app :is(.smart-spot,.weekly-picks,.saved-plan,.celebrate-cta,.dm-spark,.dm-spark-panel,.newspaper-entry,.dm-np){box-shadow:none;border-radius:16px;background:var(--dm-surface);color:var(--dm-ink)}
html[data-audience] body.dm-app :is(.dm-spark-moods button,.dm-spark-next,.dm-spark-share){border-radius:8px;font-family:var(--dm-body)}
html[data-audience] body.dm-app .dm-spark-question{font-family:var(--dm-body);font-size:1.35rem;line-height:1.5;font-weight:500}
html[data-audience] body.dm-app .dm-np-play{background:var(--dm-primary);color:var(--dm-on-primary)}
html[data-audience] body.dm-app #event-ribbon.event-ribbon{background:var(--dm-soft);color:var(--dm-ink);font-size:.8rem;border-radius:10px;padding:8px 14px}
html[data-audience] body.dm-app #event-ribbon .event-decoration{display:none}
html[data-audience] body.dm-home .event-decoration--hero{display:none}
html[data-audience] body.dm-app .public-footer strong{font-family:var(--dm-body)}
@media(min-width:1400px){html[data-audience] body.dm-home .activity-grid,html[data-audience] body.dm-page .directory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1099px){html[data-audience] body.dm-home .welcome.dm-hero{grid-template-columns:minmax(0,1fr) 200px;gap:24px}}
@media(max-width:799px){html[data-audience] body.dm-home .hero-showcase{display:none}html[data-audience] body.dm-home .welcome.dm-hero{grid-template-columns:1fr;grid-template-areas:"copy";gap:0}html[data-audience] body.dm-home .dm-hero h1{max-width:22ch}html[data-audience] body.dm-home .activity-grid,html[data-audience] body.dm-page .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:699px){
 html[data-audience] body.dm-home #library-view{gap:28px}
 html[data-audience] body.dm-app .dm-nav{left:0;right:0;bottom:0;height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-radius:0;border-width:1px 0 0;box-shadow:none}
 html[data-audience] body.dm-app .dm-nav-list{height:66px}
 html[data-audience] body.dm-app .dm-nav-item{border-radius:10px;margin:0 4px;font-size:10px;height:50px}
 html[data-audience] body.dm-home .dm-hero .welcome-copy{padding:6px 0;gap:16px}
 html[data-audience] body.dm-home .dm-hero h1{font-size:clamp(2rem,8.5vw,2.65rem);max-width:18ch}
 html[data-audience] body.dm-home .dm-hero #hero-subtitle{font-size:.92rem}
 html[data-audience] body.dm-home .dm-hero .hero-actions{display:flex;flex-wrap:wrap}
 html[data-audience] body.dm-home .dm-hero .hero-actions .dm-btn{width:auto;flex:1;min-height:44px;font-size:.84rem;padding-inline:12px}
 html[data-audience] body.dm-home .dm-home-search input{font-size:16px}
 html[data-audience] body.dm-home .wr-home-preview{padding:24px;grid-template-columns:1fr}
 html[data-audience] body.dm-home .wr-home-art{display:none}
 html[data-audience] body.dm-home .wr-home-preview h2 br{display:none}
 html[data-audience] body.dm-home .wr-home-preview h2 em::before{content:' '}
 html[data-audience] body.dm-home .wr-home-preview p{font-size:.85rem}
 html[data-audience] body.dm-home .dm-hello{display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;justify-items:stretch;padding:14px}
 html[data-audience] body.dm-home .dm-hello .dm-pair{display:none}
 html[data-audience] body.dm-home .dm-hello .dm-hello-action{width:auto;font-size:.8rem;min-height:44px;padding:8px 12px}
 html[data-audience] body.dm-home .dm-hello-status{font-size:.875rem}
 html[data-audience] body.dm-home .audience-switch{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 html[data-audience] body.dm-home .audience-switch .audience-choice{min-height:48px;align-items:center;justify-content:center;padding:10px 4px}
 html[data-audience] body.dm-home .audience-switch .audience-choice strong{font-size:.8rem}
 html[data-audience] body.dm-home .audience-switch .audience-choice small{display:none}
 html[data-audience] body.dm-home .dm-scroller{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;margin:0;padding:0;overflow:visible}
 html[data-audience] body.dm-home .dm-scroller>*{min-width:0}
 html[data-audience] body.dm-app :is(.game-card-copy,.directory-card-copy,.instant-copy,.discover-copy,.dm-product-copy){padding:12px;gap:6px}
 html[data-audience] body.dm-app :is(.game-card h3,.directory-card-copy strong,.instant-copy strong,.discover-copy strong,.dm-product strong){font-size:.875rem;line-height:1.35}
 html[data-audience] body.dm-home :is(.instant-copy>span,.discover-copy>span){display:none}
 html[data-audience] body.dm-home .game-card h3{min-height:2.7em}
 html[data-audience] body.dm-home .game-card-actions button span{display:inline}
 html[data-audience] body.dm-home .game-card-actions{padding:3px 4px}
 html[data-audience] body.dm-home .game-card-actions button{font-size:.7rem;padding:0 4px;gap:4px}
 html[data-audience] body.dm-home .game-card-actions button svg{width:14px;height:14px}
 html[data-audience] body.dm-home .discovery-filters{grid-template-columns:1fr;gap:12px}
 html[data-audience] body.dm-home .discovery-filters label:first-child{grid-column:auto}
 html[data-audience] body.dm-home .category-tabs{flex-wrap:nowrap;overflow:auto;white-space:nowrap;scrollbar-width:thin;gap:2px}
 html[data-audience] body.dm-home .category-tab{flex:none;padding:8px 10px;font-size:.75rem}
 html[data-audience] body.dm-home .dm-library-filters .side-link{padding:8px 11px;font-size:.78rem}
 html[data-audience] body.dm-home .dm-library-filters .side-link svg{width:15px;height:15px}
 html[data-audience] body.dm-home .dm-quick{grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-audience] body.dm-home .dm-quick-icon{width:46px;height:46px}
 html[data-audience] body.dm-home .dm-quick-item strong{font-size:.68rem}
 html[data-audience] body.dm-home .text-action{font-size:.8rem;white-space:normal;text-align:right}
 html[data-audience] body.dm-home .dm-spark{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html[data-audience] body.dm-app :is(.game-card,.instant-card,.discover-card,.recent-card,.directory-card,.dm-product):hover{transform:none}}
/* A very light seasonal tint preserves local celebrations without taking over the UI. */
html[data-audience][data-audience][data-audience][data-audience]{--dm-body-bg:color-mix(in srgb,var(--dm-page),var(--event-tint) 2%);--dm-topbar-bg:var(--dm-body-bg)}
html[data-audience] body.dm-home .welcome.dm-hero{background:color-mix(in srgb,var(--dm-page),var(--event-tint) 2%)}
html[data-audience] body.dm-home .dm-hero .event-decoration--hero{display:block;position:absolute;top:0;right:0;inset:auto 0 auto auto;width:32px;height:32px;filter:none;opacity:.8;pointer-events:none}
html[data-audience] body.dm-page .dm-directory-clear{align-self:flex-start;min-height:44px;padding:6px 12px;border:1px solid var(--dm-line);border-radius:8px;background:var(--dm-surface);color:var(--dm-primary);font-size:.8rem;cursor:pointer}
html[data-audience] body.dm-page .directory-search .dm-filter-panel{margin:0;border:0;padding:0;background:none}
html[data-audience] body.dm-page .directory-search .dm-filter-panel>summary{font-size:.84rem}
/* Search stays first even when older shelf styles assign a negative order. */
html[data-audience] body.dm-home #library-view>#activity-plans{order:2;background:transparent;padding:0;gap:20px}
html[data-audience] body.dm-home #activity-plans :is(.weekly-picks,.saved-plan){padding:20px;border:1px solid var(--dm-line);border-radius:14px}
html[data-audience] body.dm-home #library-view .library-heading #discovery-title{font:550 clamp(1.7rem,3vw,2.35rem)/1.2 var(--dm-body);letter-spacing:-.045em}
html[data-audience] body.dm-home :is(.search-box,.dm-home-search) input:focus-visible{outline:none}
@layer dm-important{html[data-audience] body.dm-home .search-box:focus-within{outline:none!important;box-shadow:0 0 0 2px var(--dm-soft)!important}}

/* Keep the automatic evening shift subtle, with the same readable pastel accents. */
html[data-audience][data-audience][data-audience][data-audience][data-mode="dark"]{--dm-page:#f1f3f0;--dm-surface:#fcfdfb;--dm-raised:#fcfdfb}

/* One spacing rhythm keeps discovery compact on every screen. */
html[data-audience] body.dm-home .discovery-section{gap:16px}
html[data-audience] body.dm-home .discovery-section :is(.discovery-search,.dm-library-filters,.dm-filter-panel,.dm-search-suggestions,.discovery-result-summary){margin:0}
@media(max-width:767px){
 html[data-audience] body.dm-home .discovery-section{gap:12px}
 html[data-audience] body.dm-home .dm-library-filters{display:flex;flex-wrap:nowrap}
 html[data-audience] body.dm-home .dm-library-filters .side-link{flex:1;justify-content:center;padding:8px 6px;font-size:.75rem;gap:5px}
 html[data-audience] body.dm-home .dm-library-filters .side-link svg{display:none}
 html[data-audience] body.dm-home .dm-search-suggestions{flex-wrap:nowrap;overflow:auto;white-space:nowrap;padding-bottom:3px}
 html[data-audience] body.dm-home .dm-search-suggestions button{flex:none}
}
@media(max-width:767px){
 html[data-audience] body.dm-home :is(.category-tabs,.dm-search-suggestions){scrollbar-width:none}
 html[data-audience] body.dm-home :is(.category-tabs,.dm-search-suggestions)::-webkit-scrollbar{display:none}
}
@media(max-width:767px){
 html[data-audience] body.dm-home .dm-library-filters .side-link{min-width:0;padding-inline:4px;gap:4px}
 html[data-audience] body.dm-home .dm-library-filters .side-link>[data-icon]{display:none}
 html[data-audience] body.dm-home .dm-library-filters .side-link b{min-width:1.25em;padding:1px 3px}
}

/* Completed app layout: shared navigation, purposeful sections and clear controls. */
html[data-audience][data-audience][data-audience][data-audience]{
 --dm-page:#fafaf7;--dm-surface:#fff;--dm-raised:#fff;
 --theme-paper:var(--dm-surface);--theme-text:var(--dm-ink);--theme-muted:var(--dm-muted);--theme-main:var(--dm-primary);
 --dm-body-bg:color-mix(in srgb,var(--dm-page),var(--event-tint) 2%);--dm-topbar-bg:var(--dm-body-bg)
}
body.dm-app,body.dm-app *,body.dm-app *::before,body.dm-app *::after{box-sizing:border-box}
html[data-audience] body.dm-app .dm-nav{align-items:stretch;overflow-x:hidden}
html[data-audience] body.dm-app .dm-nav-list{width:100%;margin-inline:0;align-items:stretch}
html[data-audience] body.dm-app .dm-nav-list li{list-style:none;min-width:0}
html[data-audience] body.dm-app .dm-nav-item{width:100%;text-decoration:none;color:var(--dm-muted);background:transparent;border:0;box-shadow:none}
html[data-audience] body.dm-app .dm-nav-item[aria-current="page"]{background:var(--dm-soft);color:var(--dm-primary)}
html[data-audience] body.dm-app .dm-nav-item[aria-current="page"]::before{display:none}
html[data-audience] body.dm-app .dm-nav-item:hover{background:color-mix(in srgb,var(--dm-soft) 65%,white)}
html[data-audience] body.dm-app .dm-topbar{min-height:68px;border-color:var(--dm-line);background:var(--dm-topbar-bg);backdrop-filter:none}
html[data-audience] body.dm-app .dm-topbar-title strong{font:550 1rem/1.3 var(--dm-body);letter-spacing:-.02em}
html[data-audience] body.dm-app .dm-topbar-title small{font-size:.75rem}
html[data-audience] body.dm-app .dm-icon-btn{border-radius:10px}
html[data-audience] body.dm-app :is(.dm-btn,.button,.commerce-button,.commerce-secondary){min-height:44px;border-radius:10px;font-size:.875rem;font-weight:550;line-height:1.4;box-shadow:none}
html[data-audience] body.dm-app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){border-radius:10px;border-color:var(--dm-line);color:var(--dm-ink);background:var(--dm-surface)}
html[data-audience] body.dm-app dialog{font-family:var(--dm-body);border:1px solid var(--dm-line);border-radius:16px;background:var(--dm-surface);color:var(--dm-ink)}
html[data-audience] body.dm-app :is(.dm-sheet,.app-dialog) h2{font-size:1.5rem;line-height:1.2}
html[data-audience] body.dm-home #library-view{gap:32px}
html[data-audience] body.dm-home #library-view>*{order:0;margin-top:0}
html[data-audience] body.dm-home #library-view>.welcome.dm-hero,
html[data-audience] body.dm-home #library-view>.wr-home-preview,
html[data-audience] body.dm-home #library-view>.social-start{order:0}
html[data-audience] body.dm-home .welcome.dm-hero{grid-template-columns:minmax(0,1fr) 210px;gap:40px;background:color-mix(in srgb,var(--dm-page),var(--event-tint) 2%);padding:10px 0 0}
html[data-audience] body.dm-home .dm-hero h1{font-size:clamp(2rem,3.4vw,3rem);line-height:1.12;max-width:17ch}
html[data-audience] body.dm-home .dm-hero .welcome-copy{padding:0;gap:16px}
html[data-audience] body.dm-home .dm-hero #hero-subtitle{font-size:.94rem;max-width:52ch}
html[data-audience] body.dm-home .dm-hero .hero-celebration{display:none}
html[data-audience][data-theme="birthday"] body.dm-home .dm-hero .hero-celebration{display:flex}
html[data-audience] body.dm-home .dm-hero .event-decoration--hero{display:none}
html[data-audience] body.dm-home .hero-showcase{border-radius:12px;border-color:var(--dm-line)}
html[data-audience] body.dm-home .social-start{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:0;border:0}
html[data-audience] body.dm-home .social-start .dm-section-head{margin:0;flex:none}
html[data-audience] body.dm-home .social-start .dm-section-head h2{font-size:.875rem;font-weight:500;letter-spacing:0;color:var(--dm-muted)}
html[data-audience] body.dm-home .social-start :is(.dm-section-head p,.dm-surprise-invite){display:none}
html[data-audience] body.dm-home .social-start .audience-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:1;max-width:600px;margin:0}
html[data-audience] body.dm-home .social-start .audience-choice{min-height:44px;padding:10px 16px;align-items:center;justify-content:center;border-radius:9px}
html[data-audience] body.dm-home .social-start .audience-choice strong{font-size:.8rem;font-weight:500;letter-spacing:0}
html[data-audience] body.dm-home .social-start .audience-choice small{display:none}
html[data-audience] body.dm-home .wr-home-preview{padding:28px 32px;background:#f0efeb;grid-template-columns:minmax(0,1fr) 150px;gap:32px}
html[data-audience] body.dm-home .wr-home-preview h2{font-size:clamp(1.7rem,2.8vw,2.25rem);margin:0 0 12px}
html[data-audience] body.dm-home .wr-home-preview h2 br{display:none}
html[data-audience] body.dm-home .wr-home-preview h2 em::before{content:' '}
html[data-audience] body.dm-home .wr-home-preview p{max-width:64ch}
html[data-audience] body.dm-home .wr-home-preview small{font:400 .72rem/1.6 var(--dm-body);max-width:65ch}
html[data-audience] body.dm-home .wr-home-preview .wr-home-art{width:150px}
html[data-audience] body.dm-home .wr-home-link{min-height:44px;border-radius:8px;padding:12px 18px;font-size:.8rem;font-weight:500}
html[data-audience] body.dm-home .dm-quick{gap:12px;margin:0}
html[data-audience] body.dm-home .dm-quick-item{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 12px;padding:14px;align-items:center;text-align:left;border:1px solid var(--dm-line);background:#fff;border-radius:12px}
html[data-audience] body.dm-home .dm-quick-icon{grid-row:1/3;width:40px;height:40px;margin:0;border-radius:10px}
html[data-audience] body.dm-home .dm-quick-item strong{font-size:.8rem;align-self:end;line-height:1.3}
html[data-audience] body.dm-home .dm-quick-item small{font-size:.68rem;align-self:start;line-height:1.4}
html[data-audience] body.dm-home .dm-hello{grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--dm-line);padding:16px 20px;border-radius:12px;background:#fff}
html[data-audience] body.dm-home .dm-hello .dm-pair{display:none}
html[data-audience] body.dm-home .dm-hello-hint{font-size:.8rem;line-height:1.5}
html[data-audience] body.dm-home .dm-spark{padding:24px;border:1px solid #e6dbe7;background:#f7f1f6;gap:24px;border-radius:14px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
html[data-audience] body.dm-home .dm-spark-copy h2{font-size:1.4rem}
html[data-audience] body.dm-home .dm-spark-copy p{font-size:.85rem;line-height:1.6}
html[data-audience] body.dm-home .dm-spark-panel{padding:20px;border:1px solid #e6dbe7;background:#fff}
html[data-audience] body.dm-home .dm-spark-moods{gap:4px;flex-wrap:wrap}
html[data-audience] body.dm-home .dm-spark-moods button{font-size:.72rem;padding:8px;min-height:40px}
html[data-audience] body.dm-home .dm-spark-actions{gap:8px}
html[data-audience] body.dm-home .dm-spark-actions button{min-height:44px;font-size:.75rem}
html[data-audience] body.dm-home .dm-spark-eyebrow{font-size:.65rem;letter-spacing:.08em}
/* Seasonal recommendations are useful on the occasion, not a second default library. */
html[data-audience][data-theme="default"] body.dm-home #experience-spotlight{display:none}
html[data-audience] body.dm-home .community-row{display:none}
html[data-audience] body.dm-home .dm-duo{gap:16px}
html[data-audience] body.dm-home .dm-paper-teaser{background:#f3efe0;border:1px solid #e4deca;border-radius:14px;padding:24px}
html[data-audience] body.dm-home .dm-paper-fold{display:none}
html[data-audience] body.dm-home .dm-paper-teaser .newspaper-entry-title{font:550 1.4rem/1.2 var(--dm-body);letter-spacing:-.035em}
html[data-audience] body.dm-home .dm-paper-teaser .newspaper-entry-copy{font:400 .85rem/1.6 var(--dm-body)}
html[data-audience] body.dm-home .daily-panel{padding:24px;border:1px solid #dce5eb;border-radius:14px;background:#edf3f7;color:var(--dm-ink)}
html[data-audience] body.dm-home .daily-panel h2{font-size:1.4rem}
html[data-audience] body.dm-home .daily-panel p{font-size:.85rem;line-height:1.6}
html[data-audience] body.dm-home .daily-icon{display:none}
html[data-audience] body.dm-home .dm-home-details{border:1px solid var(--dm-line);border-radius:14px;background:#fff}
.dm-home-details>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;min-height:80px}
.dm-home-details>summary::-webkit-details-marker{display:none}.dm-home-details>summary strong{display:block;font-size:1rem;font-weight:550;letter-spacing:-.02em}.dm-home-details>summary small{display:block;font-size:.8rem;color:var(--dm-muted);margin-top:4px}.dm-home-details>summary>span:last-child{font-size:24px;font-weight:300}.dm-home-details[open]>summary>span:last-child{transform:rotate(45deg)}
.dm-details-content{display:grid;gap:24px;padding:0 24px 24px}
html[data-audience] body.dm-home .dm-details-content .smart-spot{padding:20px;margin:0;border:1px solid var(--dm-line);background:#f6f7f2}
html[data-audience] body.dm-home .dm-details-content .smart-heart{display:none}
html[data-audience] body.dm-home .dm-details-content .activity-plans{padding:0;background:none;gap:16px;margin:0}
html[data-audience] body.dm-home .dm-details-content .dm-shop-teaser{margin:0}
html[data-audience] body.dm-home .dm-details-content .dm-duo{grid-template-columns:1fr}
html[data-audience] body.dm-home .dm-partners{padding-top:24px;border-top:1px solid var(--dm-line)}
/* Equal card heights, readable labels, and aligned actions on every shelf. */
html[data-audience] body.dm-app :is(.instant-grid,.discover-grid,.dm-shop-row){gap:16px}
html[data-audience] body.dm-app :is(.instant-card,.discover-card,.dm-product,.recent-card){min-width:0;height:100%;display:flex;flex-direction:column;text-align:left}
html[data-audience] body.dm-app :is(.instant-copy,.discover-copy,.dm-product-copy){flex:1;display:flex;flex-direction:column;width:100%}
html[data-audience] body.dm-app :is(.instant-copy>b,.discover-copy small,.dm-product-copy>b){margin-top:auto;padding-top:12px}
html[data-audience] body.dm-app :is(.game-card,.directory-card){height:100%;display:flex;flex-direction:column;min-width:0}
html[data-audience] body.dm-app .game-card .card-main{display:flex;flex-direction:column;flex:1;min-height:0}
html[data-audience] body.dm-app .game-card-copy{display:flex;flex-direction:column;flex:1;width:100%}
html[data-audience] body.dm-app .game-card-copy p{font-size:.84rem;line-height:1.5;margin-bottom:8px}
html[data-audience] body.dm-app .game-card .card-meta{margin-top:auto;min-height:32px}
html[data-audience] body.dm-app .game-cover{display:block;flex:none;width:100%;height:auto;aspect-ratio:8/5;overflow:hidden}
html[data-audience] body.dm-home .game-card-actions button{min-height:44px}
html[data-audience] body.dm-home .discovery-section{gap:14px}
.dm-active-filters{display:flex;gap:6px;flex-wrap:wrap}.dm-active-filters button{display:flex;align-items:center;gap:8px;min-height:36px;border:1px solid var(--dm-line);border-radius:8px;background:var(--dm-soft);color:var(--dm-primary);padding:6px 10px;font:500 .75rem/1.3 var(--dm-body);cursor:pointer}.dm-active-filters button svg{width:13px;height:13px}
/* In-game controls share the same hierarchy as browsing; boards retain their geometry. */
html[data-audience] body.dm-home .play-header{align-items:center;gap:16px;margin-bottom:16px}
html[data-audience] body.dm-home #play-title{font-size:clamp(1.7rem,3vw,2.25rem)}
html[data-audience] body.dm-home :is(.game-stage,.play-aside>div,.aside-card,.play-card){border:1px solid var(--dm-line);border-radius:14px;box-shadow:none;background:var(--dm-surface)}
html[data-audience] body.dm-home .game-stage{padding:24px}
html[data-audience] body.dm-home .play-aside{gap:16px}
html[data-audience] body.dm-home .play-aside h3{font-size:1rem;margin:0 0 8px}
html[data-audience] body.dm-home .play-aside p{font-size:.84rem;line-height:1.55}
html[data-audience] body.dm-home .play-aside .button{width:100%;justify-content:center}
html[data-audience] body.dm-home :is(.game-heading h2,.bond-heading h2){font-size:1.35rem;line-height:1.25}
html[data-audience] body.dm-home :is(.bond-card,.smart-pick){border-radius:12px;border:1px solid var(--dm-line);box-shadow:none;background:var(--dm-surface)}
html[data-audience] body.dm-home .bond-track>span{background:var(--dm-primary)}
/* Reading, gift and purchase pages use the same grid and type scale. */
html[data-audience] body.dm-page .theme-settings.automatic-context{display:none}
html[data-audience] body.dm-page main.dm-doc{max-width:1280px;padding-top:32px}
html[data-audience] body.dm-page main.dm-doc h1{font:550 clamp(2rem,3.4vw,3rem)/1.15 var(--dm-body);letter-spacing:-.045em}
html[data-audience] body.dm-page main.dm-doc h2{font:550 clamp(1.3rem,2vw,1.7rem)/1.25 var(--dm-body);letter-spacing:-.03em}
html[data-audience] body.dm-page main.dm-doc :is(p,li){font-size:.94rem;line-height:1.75}
html[data-audience] body.dm-page .extras-hero{padding:24px;gap:32px;background:#f2f0e7;border:1px solid #e5e1d2;border-radius:16px;align-items:center}
html[data-audience] body.dm-page.extras-page main.dm-doc>*{max-width:none}
html[data-audience] body.dm-page .extras-hero img{width:100%;border-radius:12px}
html[data-audience] body.dm-page .extras-facts{font-size:.8rem;padding-block:18px;line-height:1.6;gap:12px 24px}
html[data-audience] body.dm-page :is(.commerce-offer,.commerce-recovery,.commerce-download,.extras-free){border:1px solid var(--dm-line);border-radius:12px;background:var(--dm-surface);box-shadow:none;color:var(--dm-ink)}
html[data-audience] body.dm-page :is(.commerce-offer,.commerce-recovery,.commerce-download){padding:20px}
html[data-audience] body.dm-page .commerce-button{background:var(--dm-primary);color:#fff;border-color:var(--dm-primary)}
html[data-audience] body.dm-page .commerce-price{font:550 1.8rem/1.25 var(--dm-body)}
html[data-audience] body.dm-page .commerce-secondary{color:var(--dm-primary);background:var(--dm-soft);border:1px solid var(--dm-line)}
html[data-audience] body.dm-app footer{border-top:1px solid var(--dm-line);font-family:var(--dm-body)}
html[data-audience] body.dm-app footer nav{display:flex;flex-wrap:wrap;gap:12px 20px;justify-content:flex-start}
html[data-audience] body.dm-app footer a{font-size:.8rem}
html[data-audience] body.dm-ask :is(.ask-hero,.ask-preview,.ask-form){box-shadow:none;border-radius:16px}
html[data-audience] body.dm-ask h1{font:550 clamp(2rem,3.4vw,3rem)/1.15 var(--dm-body)}
@media(min-width:700px) and (max-width:1099px){html[data-audience] body.dm-app .dm-nav{align-items:center}html[data-audience] body.dm-app .dm-nav-list{width:76px}html[data-audience] body.dm-app .dm-nav-item{border-radius:12px}}
@media(max-width:1099px){html[data-audience] body.dm-home .dm-quick-item{grid-template-columns:1fr;justify-items:center;text-align:center}html[data-audience] body.dm-home .dm-quick-icon{grid-row:auto}html[data-audience] body.dm-home .dm-quick-item small{display:none}}
@media(max-width:799px){html[data-audience] body.dm-home .welcome.dm-hero{grid-template-columns:1fr;gap:0}html[data-audience] body.dm-home .dm-spark{grid-template-columns:1fr}html[data-audience] body.dm-home .social-start{gap:10px}html[data-audience] body.dm-home .social-start .dm-section-head{width:100%}}
@media(max-width:699px){
 html[data-audience] body.dm-app .dm-topbar{min-height:60px}
 html[data-audience] body.dm-app .dm-nav-list{padding:0 4px}
 html[data-audience] body.dm-app .dm-nav-item{height:52px;margin:0;width:100%;padding:0 2px;gap:5px;font-size:9px;border-radius:8px}
 html[data-audience] body.dm-app .dm-nav-item svg{width:20px;height:20px}
 html[data-audience] body.dm-app .dm-nav-item span{overflow:visible;text-overflow:clip}
 html[data-audience] body.dm-home #library-view{gap:24px}
 html[data-audience] body.dm-home .dm-hero h1{font-size:clamp(2rem,8vw,2.6rem)}
 html[data-audience] body.dm-home .social-start .audience-switch{width:100%;gap:6px}
 html[data-audience] body.dm-home .social-start .audience-choice{padding:8px 4px}
 html[data-audience] body.dm-home .wr-home-preview{grid-template-columns:1fr;padding:22px;gap:0}
 html[data-audience] body.dm-home .wr-home-preview .wr-home-art{display:none}
 html[data-audience] body.dm-home .wr-home-preview h2{font-size:1.7rem}
 html[data-audience] body.dm-home .wr-home-preview small{font-size:.7rem}
 html[data-audience] body.dm-home .dm-quick{gap:8px}
 html[data-audience] body.dm-home .dm-quick-item{padding:12px 4px;border:0;background:transparent}
 html[data-audience] body.dm-home .dm-quick-item strong{font-size:.65rem}
 html[data-audience] body.dm-home .dm-hello{grid-template-columns:1fr;padding:16px;gap:12px}
 html[data-audience] body.dm-home .dm-hello-action{justify-self:start}
 html[data-audience] body.dm-home .dm-spark{padding:18px;gap:12px}
 html[data-audience] body.dm-home .dm-spark-panel{padding:14px}
 html[data-audience] body.dm-home .dm-spark-question{font-size:1.2rem}
 html[data-audience] body.dm-home .dm-spark-actions{flex-wrap:wrap}
 html[data-audience] body.dm-home .dm-spark-actions .primary{width:100%}
 html[data-audience] body.dm-home :is(.dm-paper-teaser,.daily-panel){padding:20px}
 .dm-home-details>summary{padding:18px;gap:12px}.dm-home-details>summary small{line-height:1.5}.dm-details-content{padding:0 14px 14px}
 html[data-audience] body.dm-home .dm-details-content .smart-spot{padding:14px}
 html[data-audience] body.dm-home .dm-details-content .activity-plans{grid-template-columns:1fr}
 html[data-audience] body.dm-home .game-stage{padding:14px}
 html[data-audience] body.dm-home .play-header{gap:10px;flex-wrap:wrap}
 html[data-audience] body.dm-page main.dm-doc{padding-top:24px}
 html[data-audience] body.dm-page .extras-hero{padding:20px;gap:20px}
 html[data-audience] body.dm-page :is(.commerce-offer,.commerce-recovery,.commerce-download){padding:16px}
}

html[data-audience] body.dm-ask .dm-ask-hero{background:transparent;border:0;box-shadow:none}
html[data-audience] body.dm-app .dm-moment :is(.dm-m-question,.dm-m-after-title){font-weight:450;letter-spacing:-.045em;line-height:1.2}
@media(max-width:699px){html[data-audience] body.dm-app .dm-nav{overflow:hidden;scrollbar-width:none}}
@layer dm-important{html[data-audience] body.dm-app .automatic-context{display:none!important}}
