/* Production adapters for the supplied space.css. Content, offers and brand
   logo plates remain owned by the existing templates and commercial registry. */
html[data-theme] {
  --font-heading: var(--font-display);
  --cg-accent: var(--yellow);
  --color-link: var(--accent-text);
}
html[data-theme] body[data-playful] { background-image: none; }
/* Retain the tested 1280px navigation breakpoint and measured mobile-menu top. */
html[data-theme] body[data-playful] .mobile-nav { padding-top: 8px; }
/* Native dropdown popups may use the OS light surface even in our dark theme.
   Give options their own paired colours rather than inheriting white labels. */
html[data-theme] body[data-playful] select { color-scheme:light; }
html[data-theme] body[data-playful] select :is(option,optgroup) {
  color:#0F0F0F!important; -webkit-text-fill-color:#0F0F0F!important;
  background-color:#fff!important; font-family:Arial,sans-serif;
}
/* One registry-owned plate, never a second box around the actual logo. */
html[data-theme] body[data-playful] .cg-brand-plate {
  border:0!important; box-shadow:none!important; outline:0; border-radius:4px;
}
html[data-theme] body[data-playful] .cg-brand-plate > img.cg-brand-logo {
  background:transparent!important; border:0!important; box-shadow:none!important;
  outline:0; padding:0!important; border-radius:0!important;
}
html[data-theme] body[data-playful] :is(.btn,.wtp-row__cta,.wtp-row__name a,.cg-comparison-jump,.cg-ppc-visit,.cg-ppc-review,.related-card) {
  text-decoration:none!important;
}
html[data-theme] body[data-playful] .cg-comparison-jump {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:8px 16px;border:1px solid var(--line-strong);border-radius:4px;
}
html[data-theme] body[data-playful] .cg-placement-note {font:400 13px/1.6 var(--font-body);color:var(--text-2);margin:12px 0}
html[data-theme] body[data-playful] .cg-related-visible {margin:36px auto}
html[data-theme] body[data-playful] .cg-related-visible .related-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html[data-theme] body[data-playful] .cg-related-visible .related-card {display:block;min-height:100px;padding:16px;border:1px solid var(--line-strong);background:var(--surface)}
html[data-theme] body[data-playful] .cg-related-visible .related-card:hover {border-color:var(--accent-text)}
html[data-theme] body[data-playful] .cg-related-visible h3 {font-size:21px;margin:0 0 8px}
html[data-theme] body[data-playful] .cg-provider-facts {margin:24px 0}
html[data-theme] body[data-playful] .cg-provider-facts dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
html[data-theme] body[data-playful] .cg-provider-facts dl>div {padding:12px 0;border-bottom:1px solid var(--line)}
html[data-theme] body[data-playful] .cg-provider-facts dt {font-weight:600}
html[data-theme] body[data-playful] .cg-provider-facts dd {margin:4px 0}
/* The mock's fixed decoration must also disappear on live motion changes. */
.cg-liftoff:not(.is-on) {display:none!important}
@media(prefers-reduced-motion:reduce){.cg-liftoff{display:none!important}}
@media(max-width:650px){
  html[data-theme] body[data-playful] .cg-related-visible .related-grid,
  html[data-theme] body[data-playful] .cg-provider-facts dl {grid-template-columns:1fr}
}
html[data-theme] body[data-playful] :is(.cg-header-search,.cg-header-shelf,[data-search-close],.cg-motion-setting .cg-control) { width:44px; padding:0; }
html[data-theme] body[data-playful] .cg-art-cta { position:static; inset:auto; }
html[data-theme] body[data-playful] .cg-search-home__meta { align-items:center; }
html[data-theme] body[data-playful] .cg-motion-setting { display:inline-flex; align-items:center; gap:8px; }
/* Keep a pause control on phones too: the hero has CSS motion, even where the
   separate scroll ship is disabled. */
html[data-motion="off"] :is(.sp-drift,.sp-trails) { animation:none!important; }
/* The catalogue has no animation control; its decorative illustration is static. */
.cg-lobby-art :is(.sp-drift,.sp-trails) { animation:none!important; }
/* Production search is an accessible native dialog, not the export's dropdown. */
html[data-theme] .cg-search-overlay { background:var(--chrome-bg); color:var(--text); border:1px solid var(--line-strong); border-radius:4px; box-shadow:0 24px 64px #0008; }
html[data-theme] .cg-search-overlay__head h2 { font:800 32px/1 var(--font-display); text-transform:uppercase; }
html[data-theme] .cg-search-overlay input,
html[data-theme] body[data-playful] .cg-home-search input {
  background:var(--surface-2); color:var(--text); border:1px solid var(--line-strong);
  border-radius:4px; min-height:48px; padding:0 16px; font:400 16px/24px var(--font-body);
}
html[data-theme] body[data-playful] .cg-home-search input::placeholder { color:var(--text-2); }
html[data-theme] body[data-playful] .cg-home-search { max-width:670px; }
html[data-theme="dark"] body[data-playful] .cg-suggestions__option:is(:hover,[aria-selected="true"]) small { color:var(--text)!important; }
html[data-theme] body[data-playful] .cg-suggestions__option:is(:hover,[aria-selected="true"]) { background:var(--yellow-dim)!important; }
html[data-theme] body[data-playful] :is(.cg-country-pick select,.sl-filter select,.cg-catalogue-search input) { background-color:var(--surface-2); color:var(--text); border-color:var(--line-strong); }
/* The original sheet styles the homepage and catalogue; extend its type and
   surfaces to maintained editorial, review, promo and game templates. */
html[data-theme] body[data-playful] main h1 {
  font-family:var(--font-display)!important; font-weight:800!important; text-transform:uppercase;
}
html[data-theme] body[data-playful] .hero:not(#cg-home-hero):not(.hero--lobby) h1,
html[data-theme] body[data-playful] .room-hero-strip h1 {
  font:800 clamp(32px,4.4vw,54px)/1.05 var(--font-display)!important;
  text-transform:uppercase; color:var(--text)!important; -webkit-text-fill-color:var(--text)!important;
}
html[data-theme] body[data-playful] .section-eyebrow { font:800 28px/1.1 var(--font-display); text-transform:uppercase; }
html[data-theme] body[data-playful] :is(.compare-wrap,.compare-table,.room-row--detailed,.room-hero-strip,.promo-box,.cg-promo-hero,.cg-offer-facts,.cg-guide-chapter,.cg-rule-card,.cg-stat-card) {
  border-radius:4px; box-shadow:none; border-color:var(--line); background:var(--surface);
}
html[data-theme] body[data-playful] .compare-table .brand-meta strong { color:var(--text); }
html[data-theme] body[data-playful] .compare-table .btn { padding:0 10px!important; font-size:16px!important; }
html[data-theme] body[data-playful] .compare-table .cg-code-btn { padding:0 6px; }
/* The imported generic anchor rule has greater specificity than its primary
   CTA rule. Bind link colour tokens to the yellow fill's foreground locally. */
html[data-theme] body[data-playful] :is(.wtp-row__cta,.sl-btn-play,.cg-paused-alts a,.cg-ppc-visit) {
  --text:var(--on-yellow); --accent-text:var(--on-yellow);
  color:var(--on-yellow)!important; -webkit-text-fill-color:var(--on-yellow)!important;
}
/* Legacy selected tabs used white text on the former red accent. */
html[data-theme] body[data-playful] .cg-reading-tabs button {
  border-radius:4px; border-color:var(--line-strong); box-shadow:none;
}
html[data-theme] body[data-playful] .cg-reading-tabs button[aria-selected="true"] {
  background:var(--yellow); color:var(--on-yellow); -webkit-text-fill-color:var(--on-yellow);
  border-color:var(--yellow); box-shadow:none;
}
html[data-theme] body[data-playful] .cg-reading-tabs button[aria-selected="true"]:hover { background:var(--yellow-hi); }
html[data-theme] body[data-playful] .cg-reading-tabs button[aria-selected="true"]:active { background:var(--yellow-lo); }
/* Paginated catalogue search previously retained the legacy purple fill. */
html[data-theme] body.cg-catalogue-page[data-playful] .cg-catalogue-search .btn {
  background:linear-gradient(45deg,transparent 7px,var(--btn-bg) 7px) left/52% 100% no-repeat,linear-gradient(225deg,transparent 7px,var(--btn-bg) 7px) right/52% 100% no-repeat!important;
  color:var(--on-yellow)!important;
}
/* A code is a literal value: never visually uppercase a mixed-case feed code. */
html[data-theme] body[data-playful] :is([data-copy],[data-promo-brand],.wtp-row__code-chip) {
  text-transform:none; letter-spacing:normal;
}
html[data-theme] body[data-playful] [data-copy] { min-height:44px; }
html[data-theme] body[data-playful] .cg-save-dot { width:44px; height:44px; padding:10px; }
html[data-theme] body[data-playful] .cg-save-dot svg { width:18px; height:18px; }
/* Keep production's clipped, pauseable scroll effect, not the export's flash
   and particle animation. space.css uses the same outer class name. */
.cg-liftoff-rail .cg-liftoff { position:absolute; top:0; left:0; z-index:auto; width:var(--ship-width,64px); opacity:1; transition:none; }
/* Keep visible focus inside clipped tiles. */
html[data-theme] body[data-playful] :is(.cg-game-tile,.sl-card):focus-within { outline:2px solid var(--accent-text); outline-offset:-3px; }
@media(max-width:640px) {
  html[data-theme] body[data-playful] .cg-hero-buttons :is(.btn,.cg-control) { padding:0 14px!important; font-size:16px!important; white-space:nowrap; }
  html[data-theme] body[data-playful] .compare-table .btn { width:100%; }
  html[data-theme] body[data-playful] .cg-daily-spotlight { grid-template-columns:80px minmax(0,1fr); gap:16px; padding:24px 16px!important; }
  html[data-theme] body[data-playful] .cg-spotlight-img { width:80px; height:110px; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] body[data-playful] *,html[data-theme] body[data-playful] *::before,html[data-theme] body[data-playful] *::after {
    animation:none!important; transition:none!important; scroll-behavior:auto!important;
  }
}
@media print {
  html[data-theme] body[data-playful] { background:white; color:black; }
  .cg-flight-art,.cg-lobby-art,.cg-liftoff-rail,[data-motion-setting] { display:none!important; }
}
/* Table type scale 2026-11-12: one compact size for every content table. */
html[data-theme] body[data-playful] main table:not(.cg-ppc-table) :is(td,th) { font-size:14px; line-height:1.5; }
html[data-theme] body[data-playful] main table:not(.cg-ppc-table) thead th,
html[data-theme] body[data-playful] main table:not(.cg-ppc-table) caption { font-size:12px; line-height:1.4; }
html[data-theme] body[data-playful] main table.cg-offer-facts { display:table; width:100%; border-collapse:collapse; border:1px solid var(--line); }
html[data-theme] body[data-playful] main .cg-offer-facts caption { caption-side:top; padding:0 0 8px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-2); text-align:left; }
html[data-theme] body[data-playful] main .cg-offer-facts :is(th,td) { padding:10px 14px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; }
html[data-theme] body[data-playful] main .cg-offer-facts tr:last-child :is(th,td) { border-bottom:0; }
html[data-theme] body[data-playful] main .table-scroll:has(> .cg-offer-facts) { border:0; border-radius:0; box-shadow:none; background:transparent; }
html[data-theme] body[data-playful] main .table-scroll table.cg-offer-facts tbody th { width:34%; min-width:110px; font-size:13px!important; font-weight:600; text-transform:none; letter-spacing:0; color:var(--text-2); }
html[data-theme] body[data-playful] main .table-scroll table.cg-offer-facts tbody td { font-size:14px!important; font-weight:400; color:var(--text); }
@media (max-width:600px) { html[data-theme] body[data-playful] main .table-scroll table.cg-offer-facts tbody :is(th,td) { padding:9px 10px; font-size:13px!important; } }
