/* TOADAL website coherence v1 — isolated bf23 review candidate, 2026-10-27.
   Native integration contract: reproduce these scoped variants in Studio's owning
   theme/page components; this compiled review stylesheet is not native parity.
   Existing art, copy, route identities and game/lifecycle code remain authoritative. */
body[data-website-coherence="v1"] {
  --coherence-ui: ui-rounded, "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
  --coherence-display: Georgia, "Times New Roman", serif;
  --coherence-gutter: clamp(16px, 2.7vw, 40px);
  --coherence-card-gap: 20px;
  --coherence-card-border: 1px solid rgb(166 102 6 / 24%);
  --coherence-card-shadow: 0 3px 0 rgb(66 36 22 / 7%), 0 8px 20px rgb(66 36 22 / 5%);
  font-family: var(--coherence-ui);
  font-size: 16px;
  line-height: 1.6;
}
body[data-website-coherence] :is(h1,h2,h3,p,li,figcaption) { min-width: 0; }
body[data-website-coherence] h1 { max-width: 22ch; line-height: 1.1; text-wrap: balance; }
body[data-website-coherence] :is(.section-heading,.wo002-section-heading h2) { line-height: 1.2; }
body[data-website-coherence] :is(.button-link,.btn,.game-tab,.portal-section-nav a,.portal-section-nav button,.tf-locale-button) {
  min-height: 44px; max-width: 100%; line-height: 1.3; white-space: normal;
}
body[data-website-coherence] :is(.button-link,.btn) { padding: 10px 18px; font-size: 1rem; }
body[data-website-coherence] :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--navy-900); outline-offset: 3px; box-shadow: 0 0 0 5px var(--cream-50);
}
body[data-website-coherence] :is(.site-header,.site-footer,#feast-pass-full,#feast-pass) :is(a,button,summary):focus-visible {
  outline-color: var(--gold-400); box-shadow: 0 0 0 5px var(--navy-900);
}
body[data-website-coherence] .site-nav { gap: 12px; }
body[data-website-coherence] .site-links a { padding-inline: 9px; font-size: .875rem; }
body[data-website-coherence] .site-footer-links { gap: 12px 24px; grid-template-columns: repeat(4,minmax(0,1fr)); }
body[data-website-coherence] .site-footer-links a { min-height: 44px; line-height: 1.4; }
body[data-website-coherence] .detail-breadcrumb { margin-block: 0 20px; font-size: .9375rem; }
body[data-website-coherence] .detail-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
body[data-website-coherence] .companion-panel { max-width: min(340px,calc(100vw - 32px)); max-height: min(70dvh,580px); overflow-y: auto; }
body[data-website-coherence] .companion-message { font-size: .9375rem; line-height: 1.5; }
/* A helper without its positioning controller must not cover a page control.
   Visibility (not display) preserves measurement for the existing initializer;
   the exact existing ready attribute restores normal visibility automatically. */
body[data-website-coherence] .toadal-companion:not([data-position-ready="true"]),
body[data-website-coherence] .toadal-companion:not([data-position-ready="true"]) * {
  visibility: hidden !important; pointer-events: none !important;
}

/* Home is one explicit layout contract, not accumulated numbered grid rows.
   DOM order matches reading/focus order: hero, app evidence, catalogue, guest,
   world, news, daily discoveries and future-state information. */
html body[data-coherence-family="home"] #main-content {
  display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: none;
  grid-template-rows: none; align-items: start; gap: 32px;
  width: calc(100% - 2 * var(--coherence-gutter)); max-width: 1400px; margin-inline: auto;
}
html body[data-coherence-family="home"] #main-content > * {
  grid-area: auto; grid-column: 1 / -1; grid-row: auto; min-width: 0;
}
html body[data-coherence-family="home"] #main-content > :is(.section,.studio-layout,.home-browser-games-column) {
  width: 100%; max-width: none; margin: 0; grid-area: auto; grid-column: 1 / -1; grid-row: auto;
}
html body[data-coherence-family="home"] #main-content > [data-studio-variant="accessibility-tools"] { position: absolute; width: auto; }
html body[data-coherence-family="home"] #main-content > #companion { padding: 0; margin: 0; }
html body[data-coherence-family="home"] .home-hero { border-radius: 0 0 24px 24px; }
html body[data-coherence-family="home"] .home-hero__title { max-width: 13ch; line-height: 1.04; font-size: clamp(2.25rem,4.7vw,4rem); }
html body[data-coherence-family="home"] .home-hero__lede { font-size: 1rem; line-height: 1.55; max-width: 45ch; }
html body[data-coherence-family="home"] .home-hero__truth { font-size: .875rem; line-height: 1.5; }
html body[data-coherence-family="home"] .hero-benefits { font-size: .8125rem; flex-wrap: wrap; }
html body[data-coherence-family="home"] #browser-games-column { min-width: 0; display: grid; gap: 24px; }
html body[data-coherence-family="home"] .library-spotlight { padding: 20px; gap: 24px; }
html body[data-coherence-family="home"] .library-spotlight-copy h2 { font-family: var(--coherence-display); font-size: clamp(1.75rem,2.8vw,2.25rem); }
html body[data-coherence-family="home"] .library-spotlight-copy p { font-size: 1rem; line-height: 1.55; }
html body[data-coherence-family="home"] #browser-games-intro { border: 0; background: transparent; border-radius: 0; }
html body[data-coherence-family="home"] #browser-games-intro .home-section-inner { padding: 0; gap: 12px 20px; }
html body[data-coherence-family="home"] #browser-games-intro .section-heading { font-size: clamp(1.75rem,2.5vw,2.25rem); }
html body[data-coherence-family="home"] #browser-games-intro .section-lede { font-size: 1rem; line-height: 1.55; }
html body[data-coherence-family="home"] #browser-games-intro :is(.game-tab,.home-play-directory-link) { min-height: 44px; font-size: .9375rem; }
html body[data-coherence-family="home"] #browser-games.studio-layout.studio-layout-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)) !important;
  gap: var(--coherence-card-gap) !important; padding: 0; border: 0; background: transparent;
}
html body[data-coherence-family="home"] #browser-games > .studio-game-card {
  grid-column: auto !important; display: flex; flex-direction: column; gap: 12px;
  min-width: 0; padding: 16px; border: var(--coherence-card-border); border-radius: 16px;
  background: var(--cream-50); box-shadow: var(--coherence-card-shadow);
}
html body[data-coherence-family="home"] #browser-games > .studio-game-card > :is(.button-link--primary,a[href^="/player/"]) { margin-top: auto; }
html body[data-coherence-family="home"] #browser-games .studio-game-card h3 {
  margin: 0; font-family: var(--coherence-ui); font-size: 1.25rem; line-height: 1.25;
}
html body[data-coherence-family="home"] #browser-games .studio-game-card p { margin: 0; font-size: 1rem; line-height: 1.55; }
html body[data-coherence-family="home"] #browser-games [data-game-preview-actions] { display: flex; flex-direction: column; gap: 8px; }
html body[data-coherence-family="home"] #browser-games .studio-game-card :is(a,button) { min-height: 44px; font-size: .9375rem; }
html body[data-coherence-family="home"] #browser-games :is([data-game-preview-link],.button-link--secondary) {
  display: flex; align-items: center; justify-content: center; padding: 10px 14px;
  color: var(--navy-900); background: var(--cream-50); border: 1px solid #a86606;
  box-shadow: none; border-radius: 999px; text-decoration: none;
}
html body[data-coherence-family="home"] #browser-games [data-game-preview-toggle] {
  padding: 8px 12px; background: transparent; border: 1px solid rgb(41 45 126 / 20%); color: var(--navy-900); box-shadow: none;
}
html body[data-coherence-family="home"] #browser-games .play-card__body { padding: 0; }
html body[data-coherence-family="home"] #browser-games .play-card__art { margin: 0; }
/* Override inherited Home fixed thumbnail heights on the three nested covers.
   The unchanged parent supplies the16:9stage; do not crop or replace artwork. */
html body[data-coherence-family="home"] #browser-games.studio-layout.studio-layout-grid .play-card__art img {
  display: block; width: 100%; height: 100%; min-height: 0; max-height: none;
  padding: 0; object-fit: contain; object-position: center;
}
html body[data-coherence-family="home"] :is(#discovery,#interactive-discovery,#today,#whats-next) .home-section-inner { padding: 20px; }
html body[data-coherence-family="home"] #discovery .discovery-heading { display: block; margin-bottom: 20px; }
html body[data-coherence-family="home"] #discovery .discovery-heading .section-heading { font-size: 1.75rem; }
html body[data-coherence-family="home"] #discovery .discovery-heading .section-lede { margin-top: 10px; font-size: 1rem; line-height: 1.5; }
html body[data-coherence-family="home"] #discovery .discovery-grid { gap: 20px; }
html body[data-coherence-family="home"] #discovery .discovery-card { padding: 16px; }
html body[data-coherence-family="home"] #discovery .discovery-card > p { font-size: .9375rem; line-height: 1.55; }
html body[data-coherence-family="home"] #discovery .discovery-card h3 { font-size: 1.375rem; }
html body[data-coherence-family="home"] :is(#today,#interactive-discovery,#whats-next) p { font-size: .9375rem; line-height: 1.55; }
html body[data-coherence-family="home"] :is(#today,#interactive-discovery,#whats-next) :is(a,button) { font-size: .9375rem; }
html body[data-coherence-family="home"] #app .app-conversion-panel--production {
  padding: clamp(20px,3vw,36px); gap: 28px; grid-template-columns: minmax(0,1fr) minmax(280px,.85fr); min-height: 0;
}
html body[data-coherence-family="home"] #app .app-conversion-panel--production .section-heading { max-width: 20ch; font-size: clamp(2rem,3.5vw,3rem); line-height: 1.1; }
html body[data-coherence-family="home"] #app .app-conversion-panel--production .section-lede { font-size: 1.0625rem; line-height: 1.55; }
html body[data-coherence-family="home"] #app .app-links-status { font-size: .9375rem; line-height: 1.5; }
html body[data-coherence-family="home"] #app .app-production-showcase { min-width: 0; }
html body[data-coherence-family="home"] #app .home-app-candy { grid-column: 1 / -1; margin-top: 8px; }
html body[data-coherence-family="home"] [data-toadal-editorial-home] { padding: 0; }
html body[data-coherence-family="home"] [data-toadal-editorial-home] h2 { font-family: var(--coherence-display); font-size: 2rem; }

/* One catalogue art/body/action contract across the existing nine approved covers. */
html body[data-website-coherence] :is(.play-card-grid,[data-other-games-collection]) {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; align-items: stretch;
}
html body[data-website-coherence] .play-card.studio-game-card.module {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  border: var(--coherence-card-border); border-radius: 16px; box-shadow: var(--coherence-card-shadow);
}
html body[data-website-coherence] .play-card__art {
  display: block; width: 100%; min-width: 0; min-height: 0; max-height: none; height: auto; aspect-ratio: 16 / 9;
  flex: none; padding: 0; overflow: hidden; background: var(--cream-100);
}
html body[data-website-coherence] .play-card__art img {
  display: block; width: 100%; height: 100%; min-height: 0; max-height: none; padding: 0; object-fit: contain; object-position: center;
}
html body[data-website-coherence] .play-card__body { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 20px; }
html body[data-website-coherence] .play-card__body h3 { margin: 0; font-family: var(--coherence-ui); font-size: 1.375rem; line-height: 1.25; }
html body[data-website-coherence] .play-card__body p { margin: 0; font-size: 1rem; line-height: 1.55; }
html body[data-website-coherence] .play-card__body :is(.play-card__eyebrow,.catalogue-availability,.chip) { font-size: .8125rem; line-height: 1.45; }
html body[data-website-coherence] .play-card__body > .button-link--primary { margin-top: auto; }
html body[data-website-coherence] .play-card__body > .button-link--secondary {
  color: var(--navy-900); background: var(--cream-50); border: 1px solid #a86606; box-shadow: none;
}
html body[data-website-coherence] .play-card__body > .button-link--secondary:hover,
html body[data-coherence-family="home"] #browser-games :is([data-game-preview-link],.button-link--secondary):hover { background: var(--cream-200); }
body[data-coherence-family="catalogue"] .wo002-play-heading h1 { max-width: none; font-size: clamp(2.25rem,4vw,3.25rem); }
body[data-coherence-family="catalogue"] .catalogue-controls { gap: 16px; }
body[data-coherence-family="catalogue"] :is(input[type="search"],select) { min-height: 48px; font-size: 1rem; }

/* Existing content families share hierarchy without losing distinct artwork. */
body[data-coherence-family="detail"] .wo002-detail-copy h1 { max-width: 20ch; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.1; }
body[data-coherence-family="detail"] .wo002-detail-hero { gap: 32px; padding: clamp(20px,3vw,40px); }
body[data-coherence-family="detail"] .wo002-detail-lede { font-size: 1.0625rem; line-height: 1.6; }
body[data-website-coherence] :is(.detail-fact,.gated-card) { min-height: 0; padding: 20px; border-radius: 16px; box-shadow: var(--coherence-card-shadow); }
body[data-website-coherence] :is(.detail-fact,.gated-card) h2 { font-size: 1.375rem; line-height: 1.25; }
body[data-website-coherence] :is(.detail-fact,.gated-card) p { line-height: 1.6; }
body[data-coherence-family="detail"] [data-game-guide] { padding: clamp(20px,3vw,36px); }
body[data-coherence-family="detail"] [data-game-guide] :is(p,ul,ol) { max-width: 70ch; }
body[data-coherence-family="detail"] [data-game-guide] h2 { font-size: 2rem; }
body[data-coherence-family="detail"] [data-game-guide] h3 { font-size: 1.375rem; }
body[data-coherence-family="editorial"] #main-content { max-width: 1080px; }
body[data-coherence-family="editorial"] #main-content h1 { max-width: 26ch; font-family: var(--coherence-display); font-size: clamp(2rem,4vw,3rem); line-height: 1.15; }
body[data-coherence-family="editorial"] #main-content :is(p,ul,ol) { max-width: 70ch; font-size: 1rem; line-height: 1.65; }
body[data-coherence-family="editorial"] .toadal-editorial-card { padding: 24px; margin-block: 20px; border-radius: 16px; }
body[data-coherence-family="editorial"] .toadal-editorial-card h2 { font-size: 1.625rem; line-height: 1.25; }
body[data-coherence-family="utility"] #main-content h1 { max-width: 26ch; font-size: clamp(2rem,4vw,3rem); line-height: 1.15; }
body[data-coherence-family="utility"] #main-content :is(input,select,textarea) { max-width: 100%; font-size: 1rem; }
body[data-coherence-family="gated"] .gated-hero { padding: clamp(20px,3vw,36px); }
body[data-coherence-family="gated"] .gated-hero h1 { max-width: 22ch; font-size: clamp(2rem,4vw,3.25rem); line-height: 1.1; }
body[data-coherence-family="gated"] [data-studio-variant="about-mission-philosophy-stories"] { padding-top: 24px; }
body[data-coherence-family="gated"] :is(#about-mission,#about-philosophy) { min-height: 0; height: auto; }
body[data-coherence-family="stories"] :is(.story-panel,.story-category-card) { min-height: 0; padding: 20px; }
body[data-coherence-family="stories"] :is(.story-empty-card,.story-progress-empty) { min-height: 0; padding: 20px; }
body[data-coherence-family="stories"] .story-latest-panel { margin-block: 24px; }

/* Preserve actual screenshots and unavailable store states; do not stretch media. */
body[data-coherence-family="app"] .app-product-copy h1 { font-size: clamp(2rem,4.5vw,3.5rem); line-height: 1.1; max-width: 19ch; }
body[data-coherence-family="app"] .app-gameplay-card img { object-fit: contain; }
body[data-coherence-family="app"] .app-icon-image { width: min(100%,128px); height: auto; margin-inline: auto; }
body[data-coherence-family="app"] [data-studio-variant="app-icon-trailer-availability"] :is(.app-gameplay-card,.app-gameplay-section) { min-height: 0; height: auto; }
body[data-website-coherence] .store-badge:disabled { opacity: .72; cursor: not-allowed; }
body[data-website-coherence] :is(.app-links-status,.app-product-status) { font-size: .9375rem; line-height: 1.5; }

/* Compact Home summary; all quests/discoveries remain available in native details. */
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-top { height: auto; min-height: 130px !important; padding: 8px 12px 12px; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-brandline { width: 100%; max-width: 100%; height: 52px; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-title-feast { font-size: 30px; line-height: 1.15; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-local-pill { position: relative; bottom: auto; margin-top: 8px; font-size: .75rem; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-display-note { font-size: .875rem; line-height: 1.5; padding: 8px 12px; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-content { padding: 8px 12px 12px; gap: 12px; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-level-card { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; gap: 8px; height: auto; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-level-title,
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-level-card [data-tfp-bar],
html body[data-coherence-family="home"] #feast-pass#feast-pass [data-tfp-progress-text],
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-next-note { grid-area: auto; grid-column: auto; grid-row: auto; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-level-copy dt { font-size: .75rem !important; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-level-value { font-size: 1.5rem; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-next-note { justify-content: flex-start; font-size: .8125rem; white-space: normal; flex-wrap: wrap; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .home-pass-metrics.tfp-currencies { grid-template-columns: repeat(3,minmax(0,1fr)); }
html body[data-coherence-family="home"] #feast-pass#feast-pass .home-pass-metrics.tfp-currencies > div {
  display: flex !important; flex-direction: column; justify-content: center !important; align-items: center !important;
  height: auto; min-height: 100px !important; gap: 4px; padding: 8px 4px !important;
}
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-currencies img { width: 32px !important; height: 32px !important; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-currencies dt { font-size: .8125rem !important; align-self: center !important; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-currencies dd { font-size: 1.375rem !important; align-self: center !important; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-ready { grid-template-columns: 52px minmax(0,1fr) 28px; height: auto; min-height: 72px; gap: 8px; padding: 8px !important; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-ready > img { width: 52px; height: 60px; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-ready strong { font-size: 1rem; line-height: 1.3; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-ready small { font-size: .8125rem; line-height: 1.4; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-round-arrow { width: 28px; height: 28px; font-size: 22px; }
html body[data-coherence-family="home"] #feast-pass#feast-pass .tfp-storage-note { font-size: .8125rem; line-height: 1.5; }
body[data-coherence-family="home"] .coherence-pass-details { border: 1px solid #647898; border-radius: 12px; background: #102040; }
body[data-coherence-family="home"] .coherence-pass-details > summary { min-height: 44px; display: list-item; padding: 10px 12px; cursor: pointer; color: #fff3d2; font-size: .9375rem; font-weight: 700; }
body[data-coherence-family="home"] .coherence-pass-details[open] > summary { border-bottom: 1px solid #647898; }
body[data-coherence-family="guest"] [data-game-record] { min-width: 0; }
body[data-coherence-family="guest"] [data-game-record] h3 { font-family: var(--coherence-ui); font-size: 1.25rem; }
body[data-coherence-family="guest"] [data-game-record] :is(p,.progression-muted) { font-size: .875rem; line-height: 1.55; }
body[data-coherence-family="guest"] .game-progress-trust-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); }
body[data-coherence-family="guest"] .progression-stat dd { font-variant-numeric: tabular-nums; }

/* Website player chrome only: no iframe dimension, sandbox or lifecycle change. */
body[data-coherence-family="player"] .wo002-player-page { padding-top: 12px; }
body[data-coherence-family="player"] .wo002-player-heading { grid-template-columns: auto minmax(0,1fr) auto; gap: 12px 20px; padding-block: 4px 12px; }
body[data-coherence-family="player"] .wo002-player-heading h1 { max-width: none; font-family: var(--coherence-ui); font-size: clamp(1.5rem,2.5vw,2rem); line-height: 1.2; }
body[data-coherence-family="player"] .wo002-player-toolbar { gap: 8px; padding: 8px; }
body[data-coherence-family="player"] .player-status { font-size: .875rem; line-height: 1.4; }

/* Locale presentation only. All approved French/Spanish words and routes remain exact. */
body[data-coherence-family="locale"] .tf-locale-wrap { width: calc(100% - 2 * var(--coherence-gutter)); max-width: 1200px; padding-inline: 0; }
body[data-coherence-family="locale"] .tf-locale-top { padding: 12px var(--coherence-gutter); gap: 20px; }
body[data-coherence-family="locale"] .tf-locale-top img { width: 148px; height: auto; }
body[data-coherence-family="locale"] .tf-locale-picker { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-coherence-family="locale"] .tf-locale-picker a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; }
body[data-coherence-family="locale"] .tf-locale-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 16px; }
body[data-coherence-family="locale"] .tf-locale-nav a { display: inline-flex; align-items: center; min-height: 44px; }
body[data-coherence-family="locale"] .tf-locale-hero { padding: clamp(20px,3.5vw,40px); border-radius: 24px; }
body[data-coherence-family="locale"] .tf-locale-hero h1 { max-width: 25ch; font-family: var(--coherence-display); font-size: clamp(2rem,4vw,3rem); line-height: 1.15; }
body[data-coherence-family="locale"] .tf-locale-hero :is(p,li) { max-width: 70ch; font-size: 1rem; line-height: 1.65; }
body[data-coherence-family="locale"] .tf-locale-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 20px; margin-block: 24px; }
body[data-coherence-family="locale"] .tf-locale-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; box-shadow: var(--coherence-card-shadow); }
body[data-coherence-family="locale"] .tf-locale-card h2 { margin: 0; font-family: var(--coherence-ui); font-size: 1.25rem; line-height: 1.3; }
body[data-coherence-family="locale"] .tf-locale-card p { margin-top: auto; }
body[data-coherence-family="locale"] .tf-locale-card p a { display: inline-flex; align-items: center; min-height: 44px; }
body[data-coherence-family="locale"] .tf-locale-button { background: var(--navy-900); color: var(--cream-50); }
body[data-coherence-family="locale"] .coherence-locale-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; background: var(--cream-100); }

@media (min-width:1100px) {
  html body[data-coherence-family="home"] #main-content { grid-template-columns: minmax(0,1fr) 300px; }
  html body[data-coherence-family="home"] #main-content > #browser-games-column { grid-column: 1; }
  html body[data-coherence-family="home"] #main-content > #feast-pass { grid-column: 2; }
}
@media (max-width:760px) {
  body[data-website-coherence] .site-footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; }
  html body[data-coherence-family="home"] #main-content { gap: 28px; }
  html body[data-coherence-family="home"] .home-hero__layout { padding: 24px 20px; }
  html body[data-coherence-family="home"] #app .app-conversion-panel--production { grid-template-columns: minmax(0,1fr); }
  html body[data-coherence-family="home"] #app .app-production-showcase { width: 100%; max-width: 480px; margin-inline: auto; }
  html body[data-coherence-family="home"] #app .home-app-candy { grid-column: 1; }
  html body[data-coherence-family="home"] #discovery .discovery-grid { grid-template-columns: minmax(0,1fr); }
  html body[data-coherence-family="home"] #discovery .discovery-card--stories { grid-column: auto; }
  body[data-coherence-family="detail"] .wo002-detail-hero { grid-template-columns: minmax(0,1fr); }
  body[data-coherence-family="detail"] .wo002-detail-facts { grid-template-columns: minmax(0,1fr); }
  body[data-coherence-family="player"] .wo002-player-heading { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  body[data-coherence-family="player"] .wo002-player-heading > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  body[data-coherence-family="locale"] .tf-locale-top { flex-wrap: wrap; }
}
/* Original-bf23 static previews exposed an uninitialized helper overlap and
   clipped Froggie navigation. Keep all links and existing menu behavior: the
   no-controller fallback wraps, while the enhanced menu overlays below the
   accepted 52px game header rather than consuming the game viewport. */
@media (max-width:600px), (max-width:960px) and (max-height:500px) {
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-nav { position: relative; }
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-header:has(.site-nav:not([data-menu-enhanced="true"])) { height: auto; }
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-nav:not([data-menu-enhanced="true"]) { height: auto; flex-wrap: wrap; gap: 0; }
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-nav:not([data-menu-enhanced="true"]) .site-links { flex-basis: 100%; width: 100%; flex-wrap: wrap; overflow: visible; padding-bottom: 6px; }
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-nav[data-menu-enhanced="true"] .site-links { display: none; }
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-nav[data-menu-enhanced="true"]:has(.nav-toggle[aria-expanded="true"]) .site-links {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: absolute;
    top: 100%; left: 0; right: 0; width: 100%; max-height: calc(100dvh - 52px);
    overflow-y: auto; overflow-x: hidden; padding: 8px; gap: 4px; z-index: 100;
    background: var(--chocolate-900); border-bottom: 2px solid var(--gold-400);
  }
  html body[data-coherence-family="player"]:has(.ffb-website-player) .site-nav[data-menu-enhanced="true"] .site-links a { white-space: normal; }
}
@media (max-width:680px) {
  body[data-coherence-family="player"] .wo002-player-page { padding-top: 8px; }
  body[data-coherence-family="player"] .wo002-player-heading { gap: 4px 8px; padding-block: 0 8px; }
  body[data-coherence-family="player"] .wo002-player-heading .section-kicker { font-size: .6875rem; margin: 0 0 2px; }
  body[data-coherence-family="player"] .wo002-player-heading .chip { font-size: .75rem; padding: 4px 8px; }
  body[data-coherence-family="player"] .wo002-player-page > p:not(.player-status):not(.wo002-truth-note) { font-size: .9375rem; line-height: 1.4; margin: 0 0 10px; }
  body[data-coherence-family="player"] .wo002-player-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 6px; margin-block: 0 8px; }
  body[data-coherence-family="player"] .player-toolbar__controls { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; min-width: 0; width: 100%; }
  body[data-coherence-family="player"] .wo002-player-toolbar .btn { min-height: 44px; padding: 8px 4px; font-size: .8125rem; }
  body[data-coherence-family="player"] .wo002-player-toolbar > .btn { align-self: start; }
  body[data-coherence-family="player"] .player-status { margin-block: 6px 10px; }
}
@media (max-width:380px) {
  body[data-coherence-family="player"] .player-toolbar__controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  html body[data-coherence-family="home"] #browser-games.studio-layout.studio-layout-grid,
  html body[data-website-coherence] :is(.play-card-grid,[data-other-games-collection]),
  body[data-coherence-family="locale"] .tf-locale-grid { grid-template-columns: minmax(0,1fr) !important; }
  html body[data-coherence-family="home"] .library-spotlight { grid-template-columns: minmax(0,1fr); padding: 16px; }
  html body[data-coherence-family="home"] #browser-games-intro .home-section-inner { display: flex; flex-direction: column; align-items: stretch; }
  html body[data-coherence-family="home"] #browser-games-intro .home-play-directory-link { align-self: flex-start; }
  html body[data-coherence-family="home"] :is(#discovery,#interactive-discovery,#today,#whats-next) .home-section-inner { padding: 16px; }
  body[data-coherence-family="guest"] #feast-pass-full .game-progress-trust-grid { grid-template-columns: minmax(0,1fr); }
  body[data-coherence-family="locale"] .tf-locale-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-website-coherence] :is(.button-link,.btn,.play-card,.tf-locale-button) { transition: none; }
}

/* Compact EN/FR/ES access belongs in the header, not a full-width content strip.
   Native details keeps language choices available without JavaScript. */
html body[data-website-coherence] .coherence-language {
  position: relative; flex: 0 0 auto; align-self: center; margin: 0;
  color: #fff7df; font: 700 .8125rem/1.2 var(--coherence-ui); z-index: 20;
}
html body[data-website-coherence] .coherence-language > summary {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 48px; min-height: 44px; margin: 0; padding: 6px;
  list-style: none; cursor: pointer; border: 1px solid rgb(255 218 114 / 45%);
  border-radius: 999px; background: rgb(255 255 255 / 4%); color: inherit;
}
html body[data-website-coherence] .coherence-language > summary::-webkit-details-marker { display: none; }
html body[data-website-coherence] .coherence-language > summary > span { font-size: .75rem; }
html body[data-website-coherence] .coherence-language[open] > summary { background: #ffe49a; color: #29170e; }
html body[data-website-coherence] .coherence-language__options {
  position: absolute; top: calc(100% + 8px); right: 0; display: flex; gap: 4px;
  width: max-content; min-width: 160px; max-width: calc(100vw - 24px);
  margin: 0; padding: 6px; border: 1px solid #c49a46; border-radius: 14px;
  background: #fff7df; color: #29170e; box-shadow: 0 8px 24px rgb(39 17 7 / 20%);
}
html body[data-website-coherence] .coherence-language__options > :is(a,span) {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px; border-radius: 9px;
  font: 700 .8125rem/1.2 var(--coherence-ui); text-decoration: none; color: #29170e;
}
html body[data-website-coherence] .coherence-language__options > [aria-current="page"] { background: #34245d; color: white; }
html body[data-website-coherence] .coherence-language__options > a:hover { background: #ffe49a; color: #29170e; }
html body[data-website-coherence] .site-nav > .coherence-language { order: 3; }
html body[data-website-coherence] .site-nav > .site-links { order: 2; }
html body[data-website-coherence] .tf-locale-top { flex-wrap: nowrap; }
html body[data-website-coherence] .tf-locale-top > a { min-width: 0; }
html body[data-website-coherence] .tf-locale-top .coherence-language { color: #29170e; margin-left: auto; }
html body[data-website-coherence] .tf-locale-top .coherence-language > summary { border-color: #a86606; background: #fff7df; }
@media (min-width:961px) and (max-width:1250px) {
  html body[data-website-coherence] .site-nav { gap: 6px; padding-inline: 16px; }
  html body[data-website-coherence] .site-links { gap: 0; }
  html body[data-website-coherence] .site-links > a { padding-inline: 6px; font-size: .8125rem; }
}
@media (max-width:960px) {
  html body[data-website-coherence] .site-nav > .coherence-language { order: 2; margin-left: 0; }
  html body[data-website-coherence] .site-nav > .nav-toggle { order: 1; margin-left: auto; }
  html body[data-website-coherence] .site-nav > .site-links { order: 3; }
  html body[data-website-coherence] .site-nav .coherence-language__options { right: 0; }
}
@media (max-width:380px) {
  html body[data-website-coherence] .site-nav { gap: 6px; padding-inline: 12px; }
  html body[data-website-coherence] .coherence-language > summary { min-width: 44px; }
}
html body[data-website-art="app"] { --coherence-scene: url("/assets/images/website-scenes/app-desktop.1a501ec80ce1.webp"); }
@media (max-width:680px) { html body[data-website-art="app"] { --coherence-scene: url("/assets/images/website-scenes/app-narrow.bc5a93f59404.webp"); } }
html body[data-website-art="catalogue"] { --coherence-scene: url("/assets/images/website-scenes/catalogue-desktop.0fdbb3b28b3a.webp"); }
@media (max-width:680px) { html body[data-website-art="catalogue"] { --coherence-scene: url("/assets/images/website-scenes/catalogue-narrow.8f9c2fbb88a0.webp"); } }
html body[data-website-art="editorial"] { --coherence-scene: url("/assets/images/website-scenes/editorial-desktop.82520e896da4.webp"); }
@media (max-width:680px) { html body[data-website-art="editorial"] { --coherence-scene: url("/assets/images/website-scenes/editorial-narrow.5ad6f9c5f4b8.webp"); } }
html body[data-website-art="guest"] { --coherence-scene: url("/assets/images/website-scenes/guest-desktop.34c7ee0c72bb.webp"); }
@media (max-width:680px) { html body[data-website-art="guest"] { --coherence-scene: url("/assets/images/website-scenes/guest-narrow.9b2b10320a57.webp"); } }
html body[data-website-art="utility"] { --coherence-scene: url("/assets/images/website-scenes/utility-desktop.0239d12c68cd.webp"); }
@media (max-width:680px) { html body[data-website-art="utility"] { --coherence-scene: url("/assets/images/website-scenes/utility-narrow.3d18b2da99bc.webp"); } }
html body[data-website-art="world"] { --coherence-scene: url("/assets/images/website-scenes/world-desktop.e4a9d4d0bf85.webp"); }
@media (max-width:680px) { html body[data-website-art="world"] { --coherence-scene: url("/assets/images/website-scenes/world-narrow.daaed29cb9ac.webp"); } }
/* Page-family art layer. Loaded only after all six clean scene masters pass
   pixel review. All selectors exclude the preserved Home hero and game payloads.
   --coherence-scene is an exact local fingerprinted asset set by the builder. */
html body[data-website-art]:not([data-website-art="game-detail"]):not([data-website-art="player-neutral"]) {
  background-color: #fff7e8;
  background-image: linear-gradient(180deg, rgb(255 247 232 / 8%) 0, rgb(255 247 232 / 28%) 360px, #fff7e8 900px), var(--coherence-scene);
  background-position: center top, center top;
  background-size: 100% 100%, max(100%,1400px) auto;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
html body[data-website-art] #main-content { position: relative; }
html body[data-website-art]:not([data-website-art="player-neutral"]) #main-content h1:not(.feast-pass-lettering) {
  font-family: var(--coherence-display); color: #391b0e;
  font-weight: 700; font-size: clamp(2.2rem,4.2vw,3.75rem); line-height: 1.08;
  letter-spacing: -.035em; max-width: 23ch; text-shadow: none;
}
html body[data-website-art] :is(.section-heading,.wo002-section-heading h2,.story-panel h2) { font-family: var(--coherence-display); }
html body[data-website-art] :is(.button-link--primary,.story-button-primary) { background: linear-gradient(180deg,#292061,#49316b); color: #fffaf0; border-color: #6a4b91; }
html body[data-website-art] :is(.button-link--secondary,.story-button-secondary) { background: #fffaf0; color: #29170e; border: 1px solid #b47c28; box-shadow: none; }
html body[data-website-art] .tf-locale-top { min-height: 64px; padding-block: 8px; }
html body[data-website-art] .tf-locale-top > a > img { width: 108px; height: 48px; object-fit: contain; }

/* Catalogue: the scene frames game choice instead of becoming a competing hero. */
html body[data-website-art="catalogue"] .wo002-play-page { gap: 24px; }
html body[data-website-art="catalogue"] .portal-play-hero {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end;
  min-height: 300px; padding: clamp(24px,4vw,48px); gap: 24px;
  background: linear-gradient(90deg,rgb(255 250 240 / 96%),rgb(255 250 240 / 87%) 60%,rgb(255 250 240 / 38%));
  border: 1px solid rgb(183 128 39 / 30%); border-radius: 24px; box-shadow: none;
}
html body[data-website-art="catalogue"] :is(.portal-play-environment,.portal-play-character) { display: none; }
html body[data-website-art="catalogue"] .wo002-play-hero__copy { position: relative; max-width: 680px; padding: 0; color: #29170e; }
html body[data-website-art="catalogue"] .wo002-play-hero__copy :is(h1,p) { color: #391b0e; text-shadow: none; }
html body[data-website-art="catalogue"] .wo002-play-hero__copy p { max-width: 58ch; line-height: 1.6; }
html body[data-website-art="catalogue"] .wo002-play-proof { position: static; width: 180px; min-height: 0; padding: 16px; background: #fffaf0; color: #391b0e; border: 1px solid #d4ae69; box-shadow: none; }
html body[data-website-art="catalogue"] .wo002-play-proof :is(strong,p,small) { color: #391b0e; }
html body[data-website-art="catalogue"] .wo002-play-proof strong { font-size: 2rem; }
html body[data-website-art="catalogue"] .wo002-play-proof small { font-size: .8125rem; }
html body[data-website-art="catalogue"] :is(.catalogue-controls,.tf-locale-hero) { background: rgb(255 250 240 / 96%); border: 1px solid rgb(183 128 39 / 30%); border-radius: 18px; }
html body[data-website-art="catalogue"] .catalogue-controls { padding: 20px; }
html body[data-website-art="catalogue"] :is(.play-card,.tf-locale-card) { background: #fffaf0; }

/* App: existing approved icon establishes the product; real mode proofs follow.
   The prior overlapping hero screenshots remain in DOM but are redundant with
   the same exact visible mode captures directly below, not replaced by AI art. */
html body[data-website-art="app"] .app-product-hero {
  grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); min-height: 430px;
  padding: clamp(24px,4vw,48px); gap: 32px; color: #29170e;
  background: linear-gradient(90deg,rgb(255 250 240 / 94%),rgb(255 250 240 / 70%) 58%,rgb(255 250 240 / 12%));
  border: 1px solid #d4ae69; box-shadow: var(--coherence-card-shadow);
}
html body[data-website-art="app"] .app-product-hero .app-product-stage { display: none; }
html body[data-website-art="app"] .coherence-app-hero-icon { width: min(100%,256px); height: auto; justify-self: center; align-self: center; border-radius: 25%; filter: drop-shadow(0 12px 18px rgb(63 32 11 / 22%)); }
html body[data-website-art="app"] .app-product-copy :is(h1,.wo002-detail-lede,.app-product-status,.section-kicker) { color: #391b0e; text-shadow: none; }
html body[data-website-art="app"] .app-product-copy .section-kicker { font-size: .8125rem; letter-spacing: .12em; }
html body[data-website-art="app"] .app-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html body[data-website-art="app"] .app-product-store-row { gap: 8px; margin-block: 16px 8px; }
html body[data-website-art="app"] .store-badge:disabled { opacity: .65; min-height: 44px; }
html body[data-website-art="app"] .app-gameplay-section { background: #fffaf0; border: 1px solid rgb(183 128 39 / 30%); border-radius: 24px; padding: clamp(20px,3vw,32px); }
html body[data-website-art="app"] .app-gameplay-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
html body[data-website-art="app"] .app-gameplay-card { display: flex; flex-direction: column; min-width: 0; background: #fffaf0; }
html body[data-website-art="app"] .app-gameplay-card-art { width: 100%; height: 220px; background: #f3e8d2; }
html body[data-website-art="app"] .app-gameplay-card-art img { width: 100%; height: 100%; object-fit: contain; }
html body[data-website-art="app"] .app-gameplay-card > div { padding: 18px; }

/* World: new decorative garden hero; canonical castle art remains in gallery. */
html body[data-website-art="world"] .discovery-world > .wo002-detail-hero {
  grid-template-columns: minmax(0,1fr); min-height: 380px; padding: clamp(24px,4vw,48px);
  background: linear-gradient(90deg,rgb(255 250 240 / 97%),rgb(255 250 240 / 85%) 48%,rgb(255 250 240 / 10%));
  border: 1px solid #d4ae69; border-radius: 24px;
}
html body[data-website-art="world"] .discovery-world > .wo002-detail-hero > .wo002-detail-art { display: none; }
html body[data-website-art="world"] .discovery-world > .wo002-detail-hero > .wo002-detail-copy { max-width: 630px; }
html body[data-website-art="world"] :is(.character-hero-bg,.profile-hero-bg) { background: linear-gradient(90deg,rgb(255 250 240 / 96%),rgb(255 250 240 / 68%) 50%,rgb(255 250 240 / 8%)); }
html body[data-website-art="world"] :is(.character-hero-copy,.profile-hero-copy) { color: #29170e; }
html body[data-website-art="world"] :is(.character-hero-copy,.profile-hero-copy) :is(h1,h2,p,.section-kicker) { color: #391b0e; text-shadow: none; }
html body[data-website-art="world"] :is(.character-hero,.profile-hero) { min-height: 350px; border-radius: 24px; overflow: hidden; }

/* Editorial: an atmosphere at the start, then a quiet reading surface. */
html body[data-website-art="editorial"] #main-content > .progression-page,
html body[data-website-art="editorial"] .stories-publishing-page { background: rgb(255 250 240 / 94%); border: 1px solid #d4ae69; border-radius: 24px; padding: clamp(24px,3vw,40px); }
html body[data-website-art="editorial"] .stories-hero { background: transparent; color: #29170e; border: 0; box-shadow: none; }
html body[data-website-art="editorial"] .stories-hero-copy :is(h1,p) { color: #391b0e; text-shadow: none; }
html body[data-website-art="editorial"] .stories-hero-art { background: #fff3dd; border-radius: 20px; }
html body[data-website-art="editorial"] .stories-world-art { visibility: hidden; }
html body[data-website-art="editorial"] .discovery-media > .wo002-detail-hero { background: rgb(255 250 240 / 94%); border: 1px solid #d4ae69; }
html body[data-website-art="editorial"] .coherence-editorial-cover { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; border-radius: 12px; margin: 0 0 18px; }
html body[data-website-art="editorial"] .toadal-editorial-card { background: #fffaf0 !important; }

/* Guest and future states: calm, useful panels; no decorative invented metrics. */
html body[data-website-art="guest"] :is(.progression-hero,.gated-hero) { background: rgb(255 250 240 / 94%); border: 1px solid #d4ae69; color: #29170e; box-shadow: var(--coherence-card-shadow); }
html body[data-website-art="guest"] :is(.progression-hero,.gated-hero) :is(h1,p,.section-kicker) { color: #391b0e; text-shadow: none; }
html body[data-website-art="guest"] #feast-pass-full .portal-pass-hero { background: linear-gradient(90deg,rgb(255 250 240 / 96%),rgb(255 250 240 / 75%)); }
html body[data-website-art="guest"] :is(.progression-card,.gated-card,.profile-showcase) { min-height: 0; height: auto; background-color: #fffaf0; }
html body[data-website-art="guest"] .progression-grid { align-items: start; }

/* Utility decoration is deliberately quiet; help/legal/search stay task-first. */
html body[data-website-art="utility"] { background-image: linear-gradient(180deg,rgb(255 247 232 / 65%),#fff7e8 650px),var(--coherence-scene); }
html body[data-website-art="utility"] :is(.gated-hero,.wo002-detail-hero,.legal-hero) { min-height: 0; padding: clamp(24px,3vw,36px); background: rgb(255 250 240 / 96%); border: 1px solid #d4ae69; border-radius: 24px; color: #29170e; box-shadow: var(--coherence-card-shadow); }
html body[data-website-art="utility"] :is(.gated-hero,.wo002-detail-hero,.legal-hero) :is(h1,p,.section-kicker) { color: #391b0e; text-shadow: none; }
html body[data-website-art="utility"] :is(.gated-hero-art,.wo002-detail-art) { max-width: 230px; justify-self: center; }

/* Game content remains the identity: no generated background around a player. */
html body[data-website-art="game-detail"],html body[data-website-art="player-neutral"] { background: #fff7e8; }
html body[data-website-art="player-neutral"] #main-content h1 { font-family: var(--coherence-ui); font-size: clamp(1.5rem,2.5vw,2rem); line-height: 1.2; }

@media (max-width:900px) {
  html body[data-website-art="app"] .app-product-hero { grid-template-columns: minmax(0,1fr) minmax(220px,.65fr); gap: 20px; }
  html body[data-website-art="app"] .app-gameplay-grid { grid-template-columns: minmax(0,1fr); }
  html body[data-website-art="app"] .app-gameplay-card-art { height: 270px; }
}
@media (max-width:680px) {
  html body[data-website-art]:not([data-website-art="game-detail"]):not([data-website-art="player-neutral"]) { background-size: 100% 100%, auto 620px; }
  html body[data-website-art]:not([data-website-art="player-neutral"]) #main-content h1:not(.feast-pass-lettering) { font-size: clamp(2rem,8vw,2.75rem); line-height: 1.1; }
  html body[data-website-art="catalogue"] .portal-play-hero { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 24px; gap: 16px; }
  html body[data-website-art="catalogue"] .wo002-play-proof { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  html body[data-website-art="catalogue"] .wo002-play-proof :is(p,small) { margin: 0; }
  html body[data-website-art="catalogue"] .wo002-play-proof small { flex-basis: 100%; }
  html body[data-website-art="app"] .app-product-hero { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 24px; }
  html body[data-website-art="app"] .coherence-app-hero-icon { width: min(56vw,230px); grid-row: 2; }
  html body[data-website-art="app"] .app-product-copy { grid-row: 1; }
  html body[data-website-art="world"] .discovery-world > .wo002-detail-hero { min-height: 0; padding: 24px; background-image: linear-gradient(90deg,rgb(255 250 240 / 96%),rgb(255 250 240 / 82%)); }
  html body[data-website-art="editorial"] #main-content > .progression-page,
  html body[data-website-art="editorial"] .stories-publishing-page { padding: 20px; }
}
/* The duplicate castle hero is not reused as Media's identity; canonical world
   artwork remains in Media's existing lower gallery. */
html body[data-website-art="editorial"] .discovery-media > .wo002-detail-hero { grid-template-columns: minmax(0,1fr); min-height: 300px; background: linear-gradient(90deg,rgb(255 250 240 / 96%),rgb(255 250 240 / 85%) 60%,rgb(255 250 240 / 18%)); }
html body[data-website-art="editorial"] .discovery-media > .wo002-detail-hero > .wo002-detail-art { display: none; }
html body[data-website-art="editorial"] .discovery-media > .wo002-detail-hero > .wo002-detail-copy { max-width: 680px; }
html body[data-website-art="guest"] .guest-showcase { grid-column: 1 / -1; min-height: 0; height: auto; }

/* Keep the branded Feast Pass fallback legible without defeating its existing
   canvas-ready transparent state. Remove the old dark scenic scrim only here. */
html body[data-website-art="guest"] #main-content .feast-pass-lettering:not(.feast-pass-lettering-ready) { color: #ffe49a; -webkit-text-fill-color: #ffe49a; }
html body[data-website-art="guest"] #feast-pass-full .portal-pass-hero::before { background: none; }
/* Back both native fallback and its sibling gold lettering canvas, not only H1. */
html body[data-website-art="guest"] #feast-pass-full .feast-pass-title-plate { background: #281640; border-radius: 18px; }

/* Hosted pixels exposed three inherited scenic layers/foreground contracts.
   One family atmosphere is painted on BODY only. These content panels provide
   explicit reading contrast instead of repeating the full scene inside cards. */
html body[data-website-art="catalogue"] .wo002-play-hero.portal-play-hero::before,
html body[data-website-art="catalogue"] .wo002-play-hero.portal-play-hero::after { content: none; background: none; }
html body[data-website-art="catalogue"] .wo002-play-hero.portal-play-hero { background: linear-gradient(90deg,#fffaf0 0%,rgb(255 250 240 / 96%) 62%,rgb(255 250 240 / 66%) 100%); }
html body[data-website-art="catalogue"] .wo002-play-hero.portal-play-hero .wo002-play-hero__copy :is(h1,p,.section-kicker) { color: #391b0e; text-shadow: none; }
html body[data-website-art="world"] .discovery-world > .wo002-detail-hero { background: linear-gradient(90deg,#fffaf0 0%,rgb(255 250 240 / 96%) 58%,rgb(255 250 240 / 30%) 100%); }
html body[data-website-art="world"] .discovery-world > .wo002-detail-hero .wo002-detail-copy :is(h1,.section-kicker,.wo002-detail-lede) { color: #391b0e; text-shadow: none; }
html body[data-website-art="world"] .discovery-world > .wo002-detail-hero .wo002-detail-copy .chip { color: #391b0e; background: #ffe49a; border-color: #b47c28; }
/* Original inline castle/market URLs are preserved in source history but no
   longer paint this page. Important is required only to override those inlines. */
html body[data-website-art="guest"] [data-studio-variant="guest-progression-feast-pass"] { background-image: none !important; background-color: transparent; }
html body[data-website-art="guest"] #feast-pass-full .portal-pass-hero { background-image: none !important; background-color: #fffaf0; }
html body[data-website-art="guest"] #feast-pass-full .portal-pass-copy > :is(.section-kicker,.progression-eyebrow,.progression-lede) { color: #391b0e; text-shadow: none; }
html body[data-website-art="guest"] #feast-pass-full .portal-pass-art figcaption { color: #391b0e; }
html body[data-website-art="guest"] #feast-pass-full .portal-pass-copy .progression-truth-note { color: #e7efff; background: #102d54; }
html body[data-website-art] .detail-breadcrumb { width: fit-content; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: rgb(255 250 240 / 96%); color: #391b0e; }
html body[data-website-art] .detail-breadcrumb a { color: #34245d; }

/* Actual profile viewport: keep the approved crown and feet inside the hero.
   Contain is geometry only; original character pixels remain untouched. */
html body[data-website-art="world"] .profile-hero-toadal { bottom: 12px; max-height: calc(100% - 24px); object-fit: contain; object-position: center bottom; }
@media (max-width:680px) {
  html body[data-website-art="world"] .profile-hero-toadal { bottom: 10px; max-height: 160px; }
}

/* Reusable production elements, not flattened mockup UI. True-alpha assets
   have a normalized 75% visible footprint; layout dimensions reserve space. */
html body[data-website-art] .coherence-element { pointer-events: none; user-select: none; object-fit: contain; flex-shrink: 0; }
html body[data-website-art] .coherence-element--icon { display: inline-block; width: 64px; height: 64px; margin: 0; vertical-align: middle; }
html body[data-website-art] :is(h2,h3):has(> .coherence-element--icon) { display: flex; align-items: center; gap: 10px; }
html body[data-website-art] .support-faq-summary h2:has(> .coherence-element--icon) { gap: 8px; }
html body[data-website-art] .support-faq-summary .coherence-element--icon { width: 56px; height: 56px; }
html body[data-website-art] .coherence-element--divider { display: block; width: 136px; height: auto; margin: 10px 0 4px; }
html body[data-website-art] .coherence-element--corner { display: block; width: 156px; max-width: 35%; height: auto; margin: 20px 0 0 auto; }
html body[data-website-art] #main-content > .coherence-element--corner { margin-right: var(--coherence-gutter); }
html body[data-website-art] .coherence-element--heading-accent { display: inline-block; width: 68px; height: 74px; margin-left: 14px; vertical-align: middle; }
html body[data-website-art] h2:has(> .coherence-element--heading-accent) { display: flex; align-items: center; gap: 8px; }
/* Tactile, label-independent controls. The original gold raster remains on its
   native Feast Pass consumers; new controls use CSS caps that cannot stretch. */
html body[data-website-art][data-website-coherence] :is(.button-link--primary,.story-button-primary) {
  background: linear-gradient(180deg,#65458c 0%,#49316b 46%,#34214f 100%);
  color: #fffaf0; border: 1px solid #a984c5; border-radius: 999px;
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 20%),inset 0 -2px 0 rgb(23 10 39 / 25%),0 3px 0 #251239,0 5px 10px rgb(40 22 64 / 12%);
  text-shadow: 0 1px 0 rgb(0 0 0 / 20%);
}
html body[data-website-art][data-website-coherence] :is(.button-link--secondary,.story-button-secondary) {
  background: linear-gradient(180deg,#fff3b5 0%,#ffe080 44%,#edb94b 100%);
  color: #391b0e; border: 1px solid #b47c28; border-radius: 999px;
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 65%),inset 0 -2px 0 rgb(180 124 40 / 20%),0 2px 0 #ad7529;
}
html body[data-website-art][data-website-coherence] :is(.button-link,.story-button-primary,.story-button-secondary):focus-visible {
  outline: 3px solid #34245d; outline-offset: 3px; box-shadow: 0 0 0 6px #fffaf0;
}
@media (hover:hover) {
  html body[data-website-art][data-website-coherence] :is(.button-link--primary,.story-button-primary):hover { background: linear-gradient(180deg,#75549b,#513776 46%,#3c265b); }
  html body[data-website-art][data-website-coherence] :is(.button-link--secondary,.story-button-secondary):hover { background: linear-gradient(180deg,#fff8d6,#ffe69b 44%,#f4c760); }
}
@media (max-width:680px) {
  html body[data-website-art] .coherence-element--icon { width: 56px; height: 56px; }
  html body[data-website-art] .support-faq-summary .coherence-element--icon { width: 48px; height: 48px; }
  html body[data-website-art] .coherence-element--corner { width: 128px; }
  html body[data-website-art] .coherence-element--heading-accent { width: 52px; height: 56px; margin-left: 0; }
}
/* Final shared header composition. Bitmap identity; real HTML navigation/search.
   The two-level desktop shell avoids squeezing ten links around a tiny logo. */
html body[data-website-coherence] .site-header {
  height: auto; color: #fff7df; background: linear-gradient(#4b291b,#24130f);
  border-bottom: 2px solid #b58235; box-shadow: 0 3px 12px rgb(36 19 15 / 14%);
}
html body[data-website-coherence] .site-nav {
  display: grid; grid-template-columns: 176px minmax(0,1fr) auto;
  grid-template-areas: "brand search language" "links links links";
  gap: 4px 24px; width: 100%; max-width: 1440px; height: auto; min-height: 0;
  padding: 8px clamp(16px,2.7vw,40px) 10px; align-items: center;
}
html body[data-website-coherence] .site-nav .site-brand.site-brand--static-image {
  grid-area: brand; display: block; position: relative; width: 176px; max-width: 100%;
  height: auto; min-width: 0; min-height: 0; margin: 0; padding: 0;
  aspect-ratio: 648 / 365; line-height: 1; font-size: 1rem; color: #ffe49a;
}
html body[data-website-coherence] .site-brand--static-image .site-brand__image {
  display: block; position: static; width: 100%; height: auto; max-height: none;
  aspect-ratio: 648 / 365; object-fit: contain; visibility: visible;
  transform: none; pointer-events: none;
}
html body[data-website-coherence] .site-nav > .site-links {
  grid-area: links; display: flex; flex-wrap: wrap; justify-content: center;
  width: 100%; min-width: 0; gap: 4px 8px; margin: 0; padding: 2px 0 0;
  overflow: visible; border-top: 1px solid rgb(255 224 151 / 17%);
}
html body[data-website-coherence] .site-nav > .site-links > :is(a,button) {
  min-height: 44px; max-width: 100%; padding: 8px 12px; font-size: .875rem;
  line-height: 1.3; white-space: normal; overflow-wrap: anywhere;
}
html body[data-website-coherence] .site-nav > .coherence-language { grid-area: language; margin: 0; }
html body[data-website-coherence] .site-nav > .nav-toggle { grid-area: toggle; margin: 0; }
html body[data-website-coherence] .coherence-header-search {
  grid-area: search; display: flex; align-items: stretch; justify-self: end;
  width: min(100%,460px); min-width: 0; margin: 0; padding: 0;
  border: 1px solid #c69a58; border-radius: 14px; background: #fffaf0;
  box-shadow: 0 2px 0 rgb(12 5 2 / 20%);
}
html body[data-website-coherence] .coherence-header-search input {
  flex: 1 1 auto; width: 0; min-width: 0; min-height: 44px; margin: 0;
  padding: 10px 12px; border: 0; border-radius: 13px 0 0 13px;
  background: transparent; color: #29170e; font: 400 1rem/1.4 var(--coherence-ui);
}
html body[data-website-coherence] .coherence-header-search input::placeholder { color: #75604d; opacity: 1; }
html body[data-website-coherence] .coherence-header-search button {
  flex: 0 0 auto; min-width: 72px; min-height: 44px; margin: 0; padding: 8px 14px;
  border: 0; border-left: 1px solid #c69a58; border-radius: 0 13px 13px 0;
  background: #f5cf72; color: #29170e; font: 700 .875rem/1.3 var(--coherence-ui); cursor: pointer;
}
html body[data-website-coherence] .coherence-header-search button:hover { background: #ffe49a; }
html body[data-website-coherence] .coherence-header-search :is(input,button):focus-visible {
  outline: 3px solid #ffe49a; outline-offset: 3px; box-shadow: 0 0 0 5px #29170e; position: relative; z-index: 1;
}
html body[data-website-coherence] .tf-locale-top > a > img {
  display: block; width: 156px; max-width: 100%; height: auto; aspect-ratio: 648 / 365; object-fit: contain;
}
html body[data-website-coherence] .tf-locale-top { gap: 16px; align-items: center; }

/* Approved 510×110 lettering uses visible glyph scale, not the old wide canvas.
   Native H1/H2 and source IDs remain; no lettering JS selector matches these. */
html body[data-website-coherence][data-coherence-family] #main-content .coherence-static-feast-title {
  display: block; position: relative; width: min(100%,390px); max-width: none;
  min-width: 0; height: auto; min-height: 0; margin: 8px 0 16px; padding: 0;
  aspect-ratio: 510 / 110; color: #391b0e; -webkit-text-fill-color: currentColor;
  font: 900 2rem/1.15 var(--coherence-ui); text-shadow: none;
}
html body[data-website-coherence] .coherence-static-feast-title > img {
  display: block; width: 100%; height: auto; max-width: 100%; max-height: none; aspect-ratio: 510 / 110; object-fit: contain;
}
html body[data-website-coherence] #feast-pass-full .feast-pass-title-plate {
  display: block; width: 100%; max-width: 100%; height: auto; min-height: 0;
  margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible;
}
html body[data-website-coherence] #feast-pass-full .framed-feast-pass--full .feast-pass-title-plate > .feast-pass-title-frame { display: none; }
html body[data-website-coherence] #feast-pass#feast-pass .tfp-brandline { height: auto; min-height: 58px; }
html body[data-website-coherence] #feast-pass#feast-pass .coherence-static-feast-title {
  width: min(100%,270px); margin: 0 auto; font-size: 1.5rem;
}
/* A restrained chocolate edge only on the light World/App reading surfaces. */
html body[data-website-art="world"] #main-content :is(.wo002-detail-hero,.character-hero,.profile-hero),
html body[data-website-art="app"] #main-content .app-product-hero {
  border-top: 3px solid #59321e;
}
html body[data-website-coherence] .search-results { min-width: 0; }
html body[data-website-coherence] :is(.search-status,.search-result-card) { overflow-wrap: anywhere; }
html body[data-website-coherence] [data-coherence-search-fallback] p { padding: 16px; background: #fff7df; border: 1px solid #b88b44; border-radius: 12px; }

@media (min-width:961px) {
  html body[data-website-coherence] .site-nav > .nav-toggle { display: none; }
  html body[data-website-coherence] .site-nav > .site-links { display: flex; }
  /* Search/card anchors must reveal the portrait below the sticky two-row header. */
  html body[data-website-coherence] .characters-page .character-card { scroll-margin-top: 12rem; }
}
@media (max-width:960px) {
  html body[data-website-coherence] .site-nav {
    grid-template-columns: minmax(0,1fr) auto auto;
    grid-template-areas: "brand language toggle" "search search search" "links links links";
    gap: 8px; padding: 6px 16px 10px;
  }
  html body[data-website-coherence] .site-nav .site-brand.site-brand--static-image { width: 126px; }
  html body[data-website-coherence] .coherence-header-search { width: 100%; justify-self: stretch; }
  html body[data-website-coherence] .site-nav .nav-toggle { min-height: 44px; min-width: 60px; }
  html body[data-website-coherence] .site-nav > .site-links { justify-content: flex-start; padding: 8px 0 0; }
  html body[data-website-coherence] .site-nav[data-menu-enhanced="true"] > .site-links { display: none; }
  html body[data-website-coherence] .site-nav[data-menu-enhanced="true"]:has(.nav-toggle[aria-expanded="true"]) > .site-links {
    display: flex; position: static; inset: auto; width: 100%; max-height: min(55dvh,420px); overflow-y: auto;
    background: transparent; box-shadow: none; border: 0; border-top: 1px solid rgb(255 224 151 / 17%); border-radius: 0;
  }
  html body[data-website-coherence] .site-nav:not([data-menu-enhanced="true"]) > .site-links { display: flex; flex-wrap: wrap; overflow: visible; }
  html body[data-website-coherence] .site-header { position: relative; }
  html body[data-coherence-family="player"] .site-nav .site-brand.site-brand--static-image { width: 90px; }
  html body[data-coherence-family="player"] .site-nav[data-menu-enhanced="true"] > .coherence-header-search { display: none; }
  html body[data-coherence-family="player"] .site-nav[data-menu-enhanced="true"]:has(.nav-toggle[aria-expanded="true"]) > .coherence-header-search { display: flex; }
}
@media (max-width:380px) {
  html body[data-website-coherence] .site-nav { padding-inline: 12px; gap: 6px; }
  html body[data-website-coherence] .site-nav .site-brand.site-brand--static-image { width: 112px; }
}
@media (prefers-reduced-motion:reduce) {
  html body[data-website-coherence] { scroll-behavior: auto; }
  html body[data-website-coherence] :is(.site-brand,.site-links a,.nav-toggle,.coherence-language summary,.coherence-header-search button) { transition: none; animation: none; transform: none; }
}

/* Character encyclopedia cards: original art, readable short bios, real links. */
html body[data-website-coherence] .character-card-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 18px;
}
html body[data-website-coherence] .character-card {
  grid-template-rows: 190px 1fr; border-radius: 18px;
}
/* A definite inner track stops square image intrinsic size expanding the nested
   auto row beyond the art frame (observed268px image inside190px frame). */
html body[data-website-coherence] .character-card-art { height: 190px; min-height: 0; grid-template-rows: minmax(0,1fr); }
html body[data-website-coherence] .character-card-copy { padding: 16px; gap: 10px; }
html body[data-website-coherence] .character-card-copy h3 { margin: 0; color: #391b0e; font-size: 1.25rem; line-height: 1.25; }
html body[data-website-coherence] .character-card-copy p.coherence-character-bio { margin: 0; font-size: .9375rem; line-height: 1.55; color: #5a4334; }
html body[data-website-coherence] .character-card-copy .character-card-action { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; line-height: 1.4; text-align: left; }
html body[data-website-coherence] .coherence-character-card .character-card-art img { max-width: 100%; width: 100%; height: 190px; min-height: 0; max-height: 190px; padding: 12px; object-fit: contain; }
html body[data-website-coherence] #character-chomper .character-card-art img { width: 160px; }
html body[data-website-coherence] #character-candy-shooter .character-card-art { background: #252d36; }
html body[data-website-coherence] .coherence-character-label { font-size: .75rem; font-weight: 700; color: #5a4334; }
html body[data-website-coherence] .character-filter-controls label { min-height: 44px; font-size: .875rem; }
@media (min-width:681px) {
  /* Keep the full crown/body inside the hub at desktop too. Long copy can
     increase this natural grid row instead of colliding with absolute art. */
  html body[data-website-coherence] .characters-page .character-hero {
    display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr);
    align-items: center; min-height: 350px;
  }
  html body[data-website-coherence] .characters-page .character-hero-copy { width: 100%; }
  html body[data-website-coherence] .characters-page .character-hero-toadal {
    position: relative; inset: auto; display: block; justify-self: center;
    width: min(calc(100% - 24px),360px); height: auto; max-height: 326px;
    margin: 12px; object-fit: contain;
  }
}
@media (max-width:680px) {
  /* The hub's former absolute hero image crossed the intro text at500px.
     Natural rows remain separate when copy wraps, fonts grow or images fail. */
  html body[data-website-coherence] .characters-page .character-hero {
    display: grid; grid-template-columns: minmax(0,1fr); min-height: 0;
  }
  html body[data-website-coherence] .characters-page .character-hero-copy { width: 100%; padding: 20px 18px 10px; }
  html body[data-website-coherence] .characters-page .character-hero-copy p { max-width: 100%; font-size: .9375rem; line-height: 1.55; }
  html body[data-website-coherence] .characters-page .character-hero-toadal {
    position: relative; inset: auto; display: block; justify-self: end;
    width: clamp(140px,36vw,180px); height: auto; max-height: 190px;
    margin: 0 18px 18px; object-fit: contain;
  }
}
@media (max-width:600px) {
  html body[data-website-coherence] .character-card-grid { grid-template-columns: minmax(0,1fr); }
  html body[data-website-coherence] .character-card { grid-template-rows: 180px 1fr; }
  html body[data-website-coherence] .character-card-art { height: 180px; }
  html body[data-website-coherence] .coherence-character-card .character-card-art img { height: 180px; max-height: 180px; }
}
