/* =====================================================================
   BLACK & YELLOW SPACE UI — Crashgames
   Implements "Black & Yellow Space UI Styleguide" (11 Nov 2026).
   Loaded after every other stylesheet; re-themes the legacy "cyan print" system.

   One idea: a spacecraft at night. Black is the space (~80%), yellow is the
   energy (5–8%, one focal point per view), white is for reading (12–15%).
   Red appears only for a crash. Engineered, not cute: chamfered corners,
   corner brackets, 4px utility radii, no pills. Light does the decorating.

   Order: tokens · type · chrome · controls · buttons · hero · sections ·
          components · footer · overlays · motion · responsive
   ===================================================================== */

@font-face{font-family:'Barlow Condensed';src:url('/assets/fonts/barlow-condensed-800.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap}

/* ---------- 1. Tokens ---------- */
html[data-theme]{
 --yellow:#FFE000;--yellow-hi:#FFEA4D;--yellow-lo:#E6C800;--yellow-dim:#3F3A12;--red:#FF3B30;
 --dark-canvas:#0C0C0C;--on-dark:#EDEDED;--on-dim:#EDEDED;
 --glow-ui:0 0 24px rgba(255,224,0,.35);--glow-text:0 0 32px rgba(255,224,0,.5);
 --trail:linear-gradient(to top right,rgba(255,224,0,0) 0%,#FFE000 70%,#FFF6B3 100%);
 --haze:radial-gradient(circle at 60% 40%,rgba(255,224,0,.08),transparent 60%);
 --font-display:'Barlow Condensed','Arial Narrow',Impact,sans-serif;
 --font-body:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
 --font-num:var(--font-display);--font-mono:var(--font-display);
 --ease-ui:cubic-bezier(.2,0,0,1);--ease-in:cubic-bezier(.16,1,.3,1);--ease-out:cubic-bezier(.4,0,1,1);
 --cut:12px;
 --radius-sm:4px;--radius-md:4px;--radius-lg:4px;--radius-xl:4px;
 --space-section:64px;
 /* legacy aliases so un-restyled components inherit the system */
 --cg-yellow:var(--yellow);--cg-pink:var(--yellow);--cg-ink:#000;
 --color-primary-glow:transparent;--color-accent-glow:transparent;
 /* four corner brackets, arms 18px, 2px thick, sides left open */
 --brackets:linear-gradient(var(--yellow),var(--yellow)) 0 0/18px 2px,linear-gradient(var(--yellow),var(--yellow)) 0 0/2px 18px,
  linear-gradient(var(--yellow),var(--yellow)) 100% 0/18px 2px,linear-gradient(var(--yellow),var(--yellow)) 100% 0/2px 18px,
  linear-gradient(var(--yellow),var(--yellow)) 0 100%/18px 2px,linear-gradient(var(--yellow),var(--yellow)) 0 100%/2px 18px,
  linear-gradient(var(--yellow),var(--yellow)) 100% 100%/18px 2px,linear-gradient(var(--yellow),var(--yellow)) 100% 100%/2px 18px;
}
/* Dark is the system. The light theme keeps the hero black ("light contexts" rule). */
html[data-theme="dark"],
html[data-theme="light"] :is(.cg-search-home,.hero--lobby,.site-footer,.site-header,.mobile-nav,.site-search,.cg-cat-hero,.cg-contents-sheet){
 --void:#0C0C0C;--surface:#141414;--surface-2:#1C1C1C;--line:#2B2B2B;--line-strong:#6B6B6B;
 --text:#EDEDED;--text-2:#ABABAB;--accent-text:var(--yellow);--on-yellow:#000000;--chrome-bg:#0C0C0C;
 --color-bg:#0C0C0C;--color-surface:#141414;--color-surface-alt:#1C1C1C;--color-surface-raised:#1C1C1C;
 --color-text:#EDEDED;--color-text-muted:#ABABAB;--color-text-faint:#ABABAB;
 --color-border:#6B6B6B;--color-border-subtle:#2B2B2B;
 --color-primary:#FFE000;--color-primary-dark:#E6C800;--color-primary-hover:#FFEA4D;--color-primary-muted:#3F3A12;
 --color-accent:#FFE000;--color-success:#8FE3B5;--color-success-bg:#12261C;
 color-scheme:dark;
 --color-text-muted:#ABABAB!important;--text-muted:#ABABAB!important;--ink-mute:#ABABAB!important;
 --color-success-muted:var(--color-success-bg);--color-success-glow:transparent;
}
html[data-theme="light"]{
 --void:#F5F5F5;--surface:#FFFFFF;--surface-2:#EDEDED;--line:#E2E2E2;--line-strong:#767676;
 --text:#0F0F0F;--text-2:#5C5C5C;--accent-text:#0F0F0F;--on-yellow:#000000;--chrome-bg:#FFFFFF;
 --color-bg:#F5F5F5;--color-surface:#FFFFFF;--color-surface-alt:#EDEDED;--color-surface-raised:#EDEDED;
 --color-text:#0F0F0F;--color-text-muted:#5C5C5C;--color-text-faint:#5C5C5C;
 --color-border:#767676;--color-border-subtle:#E2E2E2;
 --color-primary:#0F0F0F;--color-primary-dark:#0F0F0F;--color-primary-hover:#0F0F0F;--color-primary-muted:#EDEDED;
 --color-accent:#0F0F0F;--color-success:#1F6B4A;--color-success-bg:#D8EFE3;
 --color-success-muted:var(--color-success-bg);--color-success-glow:transparent;
 --text-muted:#5C5C5C;--ink-mute:#5C5C5C;
 color-scheme:light;
}
html[data-theme] body[data-playful] :is(.compare-table,.room-row--detailed){--color-text:var(--text);--color-text-muted:var(--text-2)}

/* ---------- 2. Canvas and type ---------- */
body[data-playful]{background-color:var(--void);background-image:none;color:var(--text);font:400 16px/24px var(--font-body);-webkit-font-smoothing:antialiased}
::selection{background:var(--yellow);color:#000}
body[data-playful] :is(h1,h2,h3,h4,h5,h6){font-family:var(--font-body);font-weight:700;line-height:1.25;letter-spacing:0;color:var(--text)}
body[data-playful] h2{font-size:24px;line-height:30px}
body[data-playful] h3{font-size:18px;line-height:26px}
body[data-playful] :is(button,input,select,textarea){font-family:var(--font-body)}
body[data-playful] .prose,body[data-playful] .prose p{font-size:16px;line-height:1.6;color:var(--text)}
body[data-playful] .prose h2{margin-top:0}
body[data-playful] .text-muted,body[data-playful] .cg-dek{color:var(--text-2)!important}
/* Micro label: 12/16, uppercase, +0.08em, 600, muted */
.cg-kicker,body[data-playful] .eyebrow,.cg-footer-h,body[data-playful] .site-footer .cg-footer-h{
 font:600 12px/16px var(--font-body)!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--text-2)!important;display:block}
/* Display: heavy, condensed, all caps, set tight */
body[data-playful] .cg-home-games__head h2,body[data-playful] .cg-home-rankings h2,body[data-playful] .cg-dialog-head h2{
 font:800 32px/30px var(--font-display);text-transform:uppercase;letter-spacing:0;color:var(--text)}
::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-thumb{background:var(--line-strong);border:3px solid var(--void)}::-webkit-scrollbar-track{background:var(--void)}

/* Focus: 2px yellow ring, 2px gap (the gap keeps it visible around yellow buttons) */
body[data-playful] :is(button,a,input,select,summary,textarea,[tabindex]):focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
html[data-theme="light"] body[data-playful] :is(button,a,input,select,summary,textarea,[tabindex]):focus-visible{outline-color:#0F0F0F}
html[data-theme="light"] :is(.cg-search-home,.hero--lobby,.site-footer,.site-header,.mobile-nav,.site-search,.cg-cat-hero,.cg-contents-sheet) :is(button,a,input,select,summary):focus-visible{outline-color:var(--yellow)}

/* Icons: 24px grid, 2px stroke, square caps, mitred joins */
body[data-playful] .lucide,.theme-toggle svg,.mobile-toggle svg{stroke-width:2;stroke-linecap:square;stroke-linejoin:miter}

/* ---------- 3. Chrome: disclosure, header, navigation ---------- */
body[data-playful] .disclosure-bar{background:var(--chrome-bg);color:var(--text-2);border-bottom:1px solid var(--line);font-size:12px;line-height:16px;padding:8px 0;min-height:0}
body[data-playful] .disclosure-bar a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
body[data-playful] .disclosure-bar a:hover{color:var(--accent-text)}
html[data-theme="light"] body[data-playful] .disclosure-bar{background:var(--void);color:var(--text);border-bottom-color:var(--line)}
body[data-playful] .site-header{background:var(--chrome-bg)!important;border-bottom:1px solid var(--line);box-shadow:none}
body[data-playful] .site-header__inner{min-height:72px}
html[data-theme] body[data-playful] .site-logo{background:transparent;padding:0;border-radius:0}
html[data-theme] body[data-playful] .site-logo__img{content:url('/assets/img/crash-games-logo.svg')!important;width:auto!important;height:52px!important;object-fit:contain!important}
html[data-theme="light"] body[data-playful] .site-header .site-logo__img{content:url('/assets/img/crash-games-logo-light.svg')!important}
body[data-playful] .site-footer .site-logo__img{height:44px!important}
body[data-playful] .site-nav{gap:0}
body[data-playful] .site-nav a{font:600 14px/20px var(--font-body);white-space:nowrap;color:var(--text);padding:12px 10px;border-radius:0;box-shadow:inset 0 -2px 0 transparent;transition:box-shadow .14s var(--ease-ui),color .14s var(--ease-ui);background:none}
body[data-playful] .site-nav a:hover{background:none;box-shadow:inset 0 -2px 0 var(--accent-text);color:var(--accent-text)!important}
body[data-playful] .site-nav a[aria-current="page"]{background:none;box-shadow:inset 0 -2px 0 var(--accent-text);color:var(--accent-text)!important}
body[data-playful] .mobile-nav{background:var(--chrome-bg);border-bottom:1px solid var(--line)}
body[data-playful] .mobile-nav a{font:600 16px/24px var(--font-body);border-bottom:1px solid var(--line)}
/* Mobile menu country picker: aligned with the links, full width, 4px radius (no pill) */
html[data-theme] body[data-playful] .cg-country-pick--mobile{padding:16px 0 8px!important;gap:8px;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
html[data-theme] body[data-playful] .cg-country-pick--mobile select{width:100%;max-width:none;min-height:48px;padding:0 14px;border:2px solid var(--line-strong);border-radius:4px;background:var(--surface-2);color:var(--text)}

/* ---------- 4. Utility controls: plain, 4px radius, strong 2px edge ---------- */
html[data-theme] body[data-playful] :is(.cg-control,.theme-toggle,.mobile-toggle){
 background:transparent!important;color:var(--text)!important;border:2px solid var(--line-strong)!important;border-radius:4px!important;box-shadow:none!important;
 font:600 14px/20px var(--font-body);letter-spacing:0;min-height:44px;padding:0 16px;transition:border-color .14s var(--ease-ui),background .14s var(--ease-ui),color .14s var(--ease-ui);transform:none}
html[data-theme] body[data-playful] :is(.theme-toggle,.mobile-toggle){width:44px;padding:0}
html[data-theme] body[data-playful] :is(.cg-control,.theme-toggle,.mobile-toggle):hover{border-color:var(--accent-text)!important;transform:none;box-shadow:none!important}
html[data-theme] body[data-playful] :is(.cg-control,.theme-toggle,.mobile-toggle):active{background:rgba(255,224,0,.12)!important}
html[data-theme] body[data-playful] .cg-control[aria-pressed="true"]{border-color:var(--accent-text)!important;color:var(--accent-text)!important;background:rgba(255,224,0,.1)!important}
[data-saved-count]{background:transparent;border:1px solid var(--line-strong);color:var(--text);border-radius:50%;font:600 12px/1 var(--font-body);min-width:22px;height:22px;display:inline-grid;place-items:center;padding:0}
/* 4b. Every text button shares the display face (Barlow Condensed, uppercase). */
html[data-theme] body[data-playful] .cg-control,html[data-theme] body[data-playful] .cg-country-pick select{font:800 15px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase}
/* Action buttons use the guide's SECONDARY variant: transparent, 2px yellow border, yellow text, 48px.
   (Chips use the secondary style too.) Chrome controls above stay plain; the footer compliance control stays white. */
html[data-theme] body[data-playful] :is(.cg-hero-buttons .cg-control,.cg-daily-spotlight .cg-control,.cg-quiz-answers .cg-control,.cg-dialog-actions .cg-control,.cg-shelf-empty .cg-control,.cg-playful-actions .cg-control[data-surprise],.cg-control.cg-catalogue-more),
html[data-theme] body[data-playful] :is(.cg-daily-spotlight,.cg-dialog-actions,.cg-shelf-empty) a.cg-control:not(.btn):not(.cg-code-btn):not(.site-logo):not(.brand-link):not(.cg-brand-plate){
 background:transparent!important;color:var(--accent-text)!important;border:2px solid var(--accent-text)!important;border-radius:4px!important;
 font:800 17px/1 var(--font-display)!important;letter-spacing:.04em!important;text-transform:uppercase;height:48px;min-height:48px;padding:0 22px;gap:10px}
html[data-theme] body[data-playful] :is(.cg-hero-buttons .cg-control,.cg-daily-spotlight .cg-control,.cg-quiz-answers .cg-control,.cg-dialog-actions .cg-control,.cg-shelf-empty .cg-control,.cg-playful-actions .cg-control[data-surprise],.cg-control.cg-catalogue-more):hover,
html[data-theme] body[data-playful] :is(.cg-daily-spotlight,.cg-dialog-actions,.cg-shelf-empty) a.cg-control:not(.btn):not(.cg-code-btn):not(.site-logo):not(.brand-link):not(.cg-brand-plate):hover{background:rgba(255,224,0,.1)!important;border-color:var(--accent-text)!important}
html[data-theme] body[data-playful] :is(.cg-hero-buttons .cg-control,.cg-daily-spotlight .cg-control,.cg-quiz-answers .cg-control,.cg-dialog-actions .cg-control,.cg-shelf-empty .cg-control,.cg-playful-actions .cg-control[data-surprise],.cg-control.cg-catalogue-more):active,
html[data-theme] body[data-playful] :is(.cg-hero-buttons .cg-control,.cg-daily-spotlight .cg-control,.cg-quiz-answers .cg-control,.cg-dialog-actions .cg-control,.cg-shelf-empty .cg-control,.cg-playful-actions .cg-control[data-surprise],.cg-control.cg-catalogue-more)[aria-pressed="true"]{background:rgba(255,224,0,.2)!important}
html[data-theme="light"] body[data-playful] .cg-quiz-answers .cg-control:hover{background:rgba(255,224,0,.35)!important}
html[data-theme="light"] body[data-playful] .cg-quiz-answers .cg-control:active,html[data-theme="light"] body[data-playful] .cg-quiz-answers .cg-control[aria-pressed="true"]{background:var(--yellow)!important}
/* Round badge: the one place a pill/circle is allowed */
.cg-save-dot{border:1px solid var(--line-strong)!important;background:rgba(0,0,0,.72)!important;color:var(--on-dark)!important;border-radius:50%!important;box-shadow:none!important;width:44px;height:44px;padding:0;transform:none}
.cg-save-dot:hover{border-color:var(--yellow)!important;transform:none}
.cg-save-dot[aria-pressed="true"]{color:var(--yellow)!important;border-color:var(--yellow)!important;background:rgba(0,0,0,.72)!important}
.cg-save-dot[aria-pressed="true"] svg{fill:currentColor}

/* ---------- 5. Buttons ---------- */
/* Primary: yellow fill, black text, two opposite corners chamfered (gradient cut, so the glow still works). */
html[data-theme] body[data-playful] :is(.btn--primary,.btn.btn--primary,.wtp-row__cta,.sl-btn-play,.play-facade__btn){
 --btn-bg:var(--yellow);
 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;border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:none;
 font:800 17px/1 var(--font-display)!important;letter-spacing:.04em!important;text-transform:uppercase;
 height:48px!important;min-height:48px!important;padding:0 24px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
 transition:box-shadow .14s var(--ease-ui),filter .14s;transform:none}
html[data-theme] body[data-playful] :is(.btn--primary,.btn.btn--primary,.wtp-row__cta,.sl-btn-play,.play-facade__btn):hover{--btn-bg:var(--yellow-hi);box-shadow:var(--glow-ui)!important;transform:none!important;filter:none}
html[data-theme] body[data-playful] :is(.btn--primary,.btn.btn--primary,.wtp-row__cta,.sl-btn-play,.play-facade__btn):active{--btn-bg:var(--yellow-lo);box-shadow:none!important;transform:none!important}
html[data-theme] body[data-playful] :is(.btn--primary,.btn.btn--primary):disabled{--btn-bg:var(--yellow-dim);color:var(--text-2)!important;box-shadow:none!important}
/* On a light page, a yellow fill needs a hard edge: a drop-shadow follows the chamfer. */
html[data-theme="light"] body[data-playful] :is(.btn--primary,.btn.btn--primary,.wtp-row__cta,.sl-btn-play){
 filter:drop-shadow(1px 0 0 #0F0F0F) drop-shadow(-1px 0 0 #0F0F0F) drop-shadow(0 1px 0 #0F0F0F) drop-shadow(0 -1px 0 #0F0F0F)}
html[data-theme="light"] .cg-search-home :is(.btn--primary,.btn.btn--primary){filter:none}
/* Secondary: transparent, 2px yellow border, yellow text. */
html[data-theme] body[data-playful] :is(.btn--outline,.btn--ghost),
html[data-theme] body[data-playful] .cg-search-form button.btn.btn--primary,
html[data-theme] body[data-playful] :is(.cg-home-rankings,.sl-wtp) tbody tr:not(:first-child) :is(.btn--primary,.btn.btn--primary){
 background:transparent!important;color:var(--accent-text)!important;border:2px solid var(--accent-text)!important;border-radius:4px!important;box-shadow:none!important;
 font:800 17px/1 var(--font-display)!important;letter-spacing:.04em!important;text-transform:uppercase;height:48px!important;padding:0 22px!important;filter:none!important}
html[data-theme] body[data-playful] :is(.btn--outline,.btn--ghost,.cg-search-form button.btn.btn--primary):hover,
html[data-theme] body[data-playful] :is(.cg-home-rankings,.sl-wtp) tbody tr:not(:first-child) :is(.btn--primary,.btn.btn--primary):hover{background:rgba(255,224,0,.1)!important;box-shadow:none!important;transform:none!important}
html[data-theme] body[data-playful] :is(.btn--outline,.btn--ghost,.cg-search-form button.btn.btn--primary):active,
html[data-theme] body[data-playful] :is(.cg-home-rankings,.sl-wtp) tbody tr:not(:first-child) :is(.btn--primary,.btn.btn--primary):active{background:rgba(255,224,0,.2)!important}
/* The search field's button sits on the dark hero in both themes. */
body[data-playful] .cg-search-form button.btn.btn--primary{flex:none}

/* ---------- 6. Links ---------- */
html[data-theme] body[data-playful] a:not(.btn):not(.cg-code-btn):not(.site-logo):not(.brand-link):not(.cg-brand-plate){color:var(--text)!important}
html[data-theme] body[data-playful] :is(.prose,.faq,.cg-fold,.table,.cg-search-home__meta,.cg-footer-help) a:not(.btn):not(.cg-code-btn){text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
html[data-theme] body[data-playful] :is(.prose,.faq,.cg-fold,.table,.cg-search-home__meta,.cg-footer-help,.cg-home-games__head) a:not(.btn):not(.cg-code-btn):hover{color:var(--accent-text)!important}
html[data-theme] body[data-playful] .site-footer a:not(.btn){color:var(--text-2)!important}
html[data-theme] body[data-playful] .site-footer a:not(.btn):hover{color:var(--text)!important;text-decoration:underline}
html[data-theme="light"] .cg-search-form .cg-suggestions__all{color:var(--text)!important}

/* ---------- 7. Hero: message left, craft upper-right, black void ---------- */
body[data-playful] #cg-home-hero{position:relative;isolation:isolate;overflow:hidden;min-height:640px;padding:40px 0 96px;border:0;
 background:radial-gradient(circle at 74% 38%,rgba(255,224,0,.09),transparent 52%),var(--void)}
html[data-theme="light"] body[data-playful] #cg-home-hero{background:radial-gradient(circle at 74% 38%,rgba(255,224,0,.09),transparent 52%),var(--dark-canvas)}
/* With the search bar gone, centre the headline block in the hero (desktop) instead of leaving a gap under it.
   At 1000px and below the hero is already a column (see the responsive section). */
@media(min-width:1001px){
 body[data-playful] #cg-home-hero{display:flex;flex-direction:column;justify-content:center;min-height:480px;padding:44px 0}
}
body[data-playful] #cg-home-hero>.container{position:relative;z-index:2}
html[data-theme="dark"] body[data-playful] #cg-home-hero::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:122px;z-index:1;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--dark-canvas) 96%)}
body[data-playful] .cg-search-home__layout{display:block}
body[data-playful] .cg-search-form input{background:var(--surface-2);border:1px solid var(--line-strong);border-radius:4px;min-height:48px;padding:0 16px;color:var(--text);font:400 16px/24px var(--font-body)}
body[data-playful] .cg-search-form input::placeholder{color:var(--text-2)}
body[data-playful] .cg-search-form input:focus{outline:2px solid var(--yellow);outline-offset:2px;border-color:var(--yellow)}
body[data-playful] .cg-search-form__row{gap:12px}
html[data-theme] body[data-playful] #cg-home-hero h1{font:800 clamp(38px,5.1vw,64px)/.92 var(--font-display)!important;text-transform:uppercase;letter-spacing:-.005em!important;
 color:var(--yellow)!important;-webkit-text-fill-color:var(--yellow)!important;text-shadow:var(--glow-text)!important;margin:16px 0 24px;max-width:none}
body[data-playful] #cg-home-hero h1 span{display:block}
body[data-playful] .cg-search-home__intro{font:400 18px/28px var(--font-body);color:var(--text);max-width:460px}
body[data-playful] .cg-hero-buttons{gap:16px;margin-top:32px;align-items:center}
body[data-playful] .cg-search-home__meta{margin-top:36px;font-size:13px;line-height:20px;color:var(--text-2);gap:4px 24px}
body[data-playful] .cg-search-home__meta a{color:var(--text-2)!important}
/* The art bleeds off the right edge; it is a light show on pure black, not a box. */
body[data-playful] .cg-flight-art{position:absolute;z-index:1;top:-30px;right:-6vw;bottom:-70px;left:auto;width:min(68vw,1040px);aspect-ratio:auto!important;
 border:0;border-radius:0;background:none;box-shadow:none!important;transform:none!important;overflow:visible;pointer-events:none}
.cg-flight-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
/* Trails dissolve into the void before the hero's bottom edge (dark only; in light the hero is a cropped black banner). */
html[data-theme="dark"] body[data-playful] .cg-flight-svg{-webkit-mask-image:linear-gradient(to bottom,#000 76%,transparent 90%);mask-image:linear-gradient(to bottom,#000 76%,transparent 90%)}
/* One featured message per screen gets the bracket frame. */
body[data-playful] .cg-flight-label{position:absolute;right:calc(6vw + 84px);top:68px;left:auto;bottom:auto;z-index:3;transform:none;box-shadow:none;border:0;border-radius:0;
 padding:16px 24px;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text);background:var(--brackets);background-repeat:no-repeat;pointer-events:none;max-width:min(320px,60%)}

/* ---------- 8. Sections ---------- */
body[data-playful] .cg-home-games{padding:40px 0 24px}
body[data-playful] .cg-home-games__head{gap:24px;margin-bottom:24px}
body[data-playful] .cg-home-games__head>a{font:600 14px/20px var(--font-body);color:var(--text)!important}
body[data-playful] .cg-game-shelf{gap:24px}
body[data-playful] .cg-daily{gap:24px;margin:48px auto 72px}

/* ---------- 9. Cards and panels: surface, 1px line, one chamfered corner (top-right) ---------- */
html[data-theme] body[data-playful] :is(.cg-game-tile,.cg-daily-quiz,.cg-fold,.cg-home-rankings>.container,.sl-filterbar,.sl-wtp-wrap,#using-the-catalogue>.container,.card,.cg-rank-card,.wtp-row,.sl-card,.cg-reveal-ticket,.cg-local-box){
 background:var(--surface);border:1px solid var(--line);border-radius:0;box-shadow:none;
 clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,0 100%)}
body[data-playful] .cg-game-tile{overflow:hidden;transition:border-color .14s var(--ease-ui)}
body[data-playful] .cg-game-tile:hover{transform:none;border-color:var(--line-strong);box-shadow:none}
body[data-playful] .cg-game-tile:hover img{transform:scale(1.03)}
body[data-playful] .cg-game-tile__image{border:0;border-bottom:1px solid var(--line);border-radius:0;aspect-ratio:4/3;background:var(--surface-2)}
body[data-playful] .cg-game-tile h3{font:700 16px/22px var(--font-body);margin:14px 16px 2px;color:var(--text)}
body[data-playful] .cg-game-tile p{font:400 13px/18px var(--font-body);margin:0 16px 16px;color:var(--text-2)}
.cg-save-dot{left:10px;right:auto;top:10px}
/* The featured card: yellow corner brackets and the UI glow. */
html[data-theme] body[data-playful] .cg-daily-spotlight{position:relative;display:grid;grid-template-columns:112px 1fr;gap:24px;align-items:center;padding:32px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;clip-path:none}
.cg-daily-spotlight::after{content:"";position:absolute;inset:-1px;pointer-events:none;background:var(--brackets);background-repeat:no-repeat}
html[data-theme="light"] .cg-realmoney>.container{background:var(--surface);box-shadow:none}
html[data-theme="light"] .cg-realmoney>.container :is(h2,h3,p,span){color:var(--text)}
.cg-daily>div{padding:32px;min-width:0}
.cg-daily h2{font:700 24px/30px var(--font-body);margin:8px 0 12px}
.cg-daily p{font-size:16px;line-height:24px;color:var(--text-2);margin:0 0 24px}
.cg-spotlight-img{width:112px;height:138px;object-fit:cover;border:1px solid var(--line-strong);border-radius:0;transform:none;box-shadow:none}
.cg-quiz-answers{gap:12px}
.cg-quiz-response{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;color:var(--text)}
.cg-quiz-response a{color:var(--text);text-decoration:underline}

/* Folds: heading-sized summaries, chevron goes yellow when open */
body[data-playful] .cg-fold{margin:16px auto}
body[data-playful] .cg-fold>summary{font:700 20px/28px var(--font-body);padding:20px 64px 20px 28px;min-height:68px;color:var(--text)}
body[data-playful] .cg-fold>.section{padding:8px 28px 32px}
body[data-playful] details>summary{background:transparent}
body[data-playful] details>summary:hover{background:var(--surface-2)}
html[data-theme] body[data-playful] details>summary::after{border-right-color:var(--text-2);border-bottom-color:var(--text-2);border-radius:0}
html[data-theme] body[data-playful] details[open]>summary::after{border-right-color:var(--accent-text);border-bottom-color:var(--accent-text)}
html[data-theme] body[data-playful] details[open]{border-color:var(--line-strong);box-shadow:none}
body[data-playful] .faq summary::after{color:var(--accent-text)}
html[data-theme] body[data-playful] .faq details{border:1px solid var(--line);border-radius:0;box-shadow:none;background:var(--surface-2)}
body[data-playful] .h2-anim::after{background:var(--line-strong)!important;height:2px;border-radius:0}
html[data-theme] body[data-playful] .editorial-hero{background:var(--surface-2);background-image:none;border:1px solid var(--line);border-radius:0}
body[data-playful] .editorial-hero h2{font:700 24px/30px var(--font-body)}

/* Rankings: left-aligned panel; numbers in the numbers face; one primary action per list */
body[data-playful] .cg-home-rankings{padding-block:24px}
body[data-playful] .cg-home-rankings .container--narrow{max-width:1240px}
body[data-playful] .cg-home-rankings>.container{padding:40px!important}
body[data-playful] .cg-home-rankings :is(h2,p){text-align:left!important}
body[data-playful] .cg-home-rankings p.text-muted{max-width:70ch;margin-inline:0}
body[data-playful] .cg-home-rankings .table-wrap{border:0;border-radius:0;box-shadow:none;background:transparent;margin-top:32px!important}
body[data-playful] .cg-home-rankings .table{border:0;border-radius:0;background:transparent}
body[data-playful] .cg-home-rankings .table th{background:transparent;color:var(--text-2);font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--line-strong);padding:12px 16px}
body[data-playful] .cg-home-rankings .table td{border-bottom:1px solid var(--line);padding:18px 16px;background:transparent!important;vertical-align:middle}
body[data-playful] .cg-home-rankings .table tr:last-child td{border-bottom:0}
body[data-playful] .cg-home-rankings .table tbody tr{transition:background .14s var(--ease-ui)}
body[data-playful] .cg-home-rankings .table tbody tr:hover td{background:var(--surface-2)!important}
body[data-playful] .cg-home-rankings .table td strong{font:700 16px/22px var(--font-body)}
body[data-playful] .cg-home-rankings .table td.num{font:800 24px/1 var(--font-num);letter-spacing:.01em;font-variant-numeric:tabular-nums;color:var(--text)}
body[data-playful] .cg-home-rankings .table td:nth-child(3){font:400 14px/20px var(--font-body);color:var(--text-2)}
body[data-playful] .cg-code-btn,body[data-playful] .wtp-row__code-chip{background:transparent;color:var(--text);border:2px solid var(--line-strong);border-radius:4px;min-height:40px;padding:0 14px;
 font:800 15px/1 var(--font-display);letter-spacing:.06em;text-transform:uppercase;transition:border-color .14s var(--ease-ui),color .14s var(--ease-ui)}
body[data-playful] .cg-code-btn:hover{border-color:var(--accent-text);color:var(--accent-text)}
body[data-playful] .cg-home-rankings p[style*="center"]{text-align:left!important}
body[data-playful] .cg-home-rankings .btn--outline{margin-top:8px}

/* ---------- 10. Footer: white compliance row, quiet ---------- */
body[data-playful] .site-footer,body[data-playful] main+.site-footer{margin-top:96px!important;border-top:1px solid var(--line);padding-top:56px;background:var(--chrome-bg)!important}
body[data-playful] .site-footer :is(p,li){color:var(--text-2)}
body[data-playful] .cg-footer-rg{border-top:1px solid var(--line)}
/* legacy slate (#475569) fails on the black footer in the light theme */
html[data-theme] body[data-playful] .site-footer__bottom,html[data-theme] body[data-playful] .site-footer__bottom span{color:var(--text-2)!important}
body[data-playful] .cg-age-label{border:2px solid var(--text);color:var(--text);border-radius:50%;font:800 22px/1 var(--font-display)}
body[data-playful] .cg-footer-safety strong{font:700 16px/24px var(--font-body);color:var(--text)}
html[data-theme="dark"] body[data-playful] .site-footer .cg-brand-plate{box-shadow:none}

/* ---------- 11. Overlays: dialog and toast ---------- */
html[data-theme] body[data-playful] .cg-dialog,.cg-dialog{background:var(--surface-2);color:var(--text);border:1px solid var(--line-strong);border-radius:0;box-shadow:0 32px 96px rgba(0,0,0,.65);
 clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%)}
html[data-theme="light"] .cg-dialog{background:#fff}
.cg-dialog::backdrop{background:rgba(0,0,0,.78);backdrop-filter:none}
.cg-dialog[open]{animation:sp-modal .26s var(--ease-in)}
@keyframes sp-modal{from{opacity:0;transform:translate(-16px,16px)}to{opacity:1;transform:none}}
.cg-dialog-head{border-bottom:1px solid var(--line)}
.cg-reveal-ticket{background:var(--surface);border:1px solid var(--line);padding:20px;animation:none}
.cg-reveal-ticket img{border:1px solid var(--line-strong);border-radius:0;box-shadow:none}
.cg-shelf-item{background:var(--surface);border:1px solid var(--line);border-radius:0}
.cg-shelf-empty{border:1px dashed var(--line-strong);border-radius:0}
.cg-shelf-settings{border-top:1px solid var(--line)}
.cg-shelf-settings input{accent-color:var(--yellow)}
/* Toast slides in from the top-right, on the diagonal. */
.cg-toast{top:24px;right:24px;bottom:auto;left:auto;transform:none;background:var(--surface-2);color:var(--text);border:1px solid var(--line-strong);border-left:3px solid var(--yellow);border-radius:0;box-shadow:0 16px 48px rgba(0,0,0,.6);
 font:600 14px/20px var(--font-body);padding:14px 20px;animation:sp-toast .24s var(--ease-in)}
html[data-theme="light"] .cg-toast{background:var(--surface-2);color:var(--text)}
@keyframes sp-toast{from{opacity:0;transform:translate(24px,-24px)}to{opacity:1;transform:none}}
/* Suggestions dropdown */
.cg-suggestions{background:var(--surface-2);border:1px solid var(--line-strong);border-radius:4px;box-shadow:0 20px 56px rgba(0,0,0,.6)}
.cg-suggestions__option:hover,.cg-suggestions__option[aria-selected="true"]{background:var(--yellow-dim)!important;box-shadow:inset 2px 0 var(--yellow)!important}
html[data-theme="light"] .cg-suggestions{background:var(--surface-2)}
html[data-theme] body[data-playful] .cg-suggestions__option:is(:hover,[aria-selected="true"]){--text:var(--on-dim);--text-2:var(--on-dim);--color-text:var(--on-dim);--color-text-muted:var(--on-dim);color:var(--on-dim)!important}
html[data-theme] body[data-playful] .cg-suggestions__option:is(:hover,[aria-selected="true"]) :is(strong,small,span){color:var(--on-dim)!important}

/* ---------- 12. Motion: fast, decisive, directional (up and to the right) ---------- */
.sp-drift{animation:sp-idle 7s ease-in-out infinite alternate}
.sp-trails{animation:sp-shimmer 3.6s ease-in-out infinite alternate}
@keyframes sp-idle{from{transform:translate(0,0)}to{transform:translate(14px,0)}}
@keyframes sp-shimmer{from{opacity:.82;transform:scaleX(1)}to{opacity:1;transform:scaleX(1.06)}}

/* ---------- 13. Responsive ---------- */
@media(max-width:1000px){
 body[data-playful] #cg-home-hero{display:flex;flex-direction:column;min-height:0;padding:24px 0 24px}
 body[data-playful] #cg-home-hero>.container{order:1}
 body[data-playful] .cg-flight-art{order:2;position:relative;top:auto;right:auto;bottom:auto;width:100%;height:min(62vw,300px);margin-top:-8px}
 html[data-theme="dark"] body[data-playful] .cg-flight-svg{-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}
 body[data-playful] .cg-search-home__meta{margin-top:32px}
 body[data-playful] .cg-flight-label{right:auto;left:20px;top:16px;bottom:auto}
}
/* Stacked table rows: one separator per row, not one per cell */
@media(max-width:720px){
 body[data-playful] .cg-home-rankings .table td{border-bottom:0!important;padding:8px 0!important}
 body[data-playful] .cg-home-rankings .table tbody tr{padding:14px 0}
 body[data-playful] .cg-home-rankings .table tbody tr:hover td{background:transparent!important}
}
@media(max-width:760px){
 body[data-playful] .cg-daily{margin:32px auto 48px}
 .cg-daily>div,.cg-daily-spotlight{padding:24px!important}
 body[data-playful] .cg-home-rankings>.container{padding:24px!important}
 body[data-playful] .cg-fold>summary{font-size:18px;padding:18px 56px 18px 20px}
 body[data-playful] .cg-fold>.section{padding:4px 20px 24px}
 body[data-playful] .cg-home-games{padding-top:32px}
}
@media(max-width:540px){
 html[data-theme] body[data-playful] .site-logo__img{height:42px!important}
 html[data-theme] body[data-playful] #cg-home-hero h1{font-size:clamp(30px,9.2vw,40px)!important}
 body[data-playful] .cg-search-home__intro{font-size:16px;line-height:24px}
 body[data-playful] .cg-hero-buttons{gap:12px}
 body[data-playful] .site-footer,body[data-playful] main+.site-footer{margin-top:64px!important}
 body[data-playful] .cg-home-games__head h2{font-size:28px}
}


/* =====================================================================
   14. Catalogue page  (/lobby/crash-games)
   ===================================================================== */
/* Breadcrumb: a micro label trail */
body[data-playful] .breadcrumb{font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);gap:0 8px}
html[data-theme] body[data-playful] .breadcrumb a:not(.btn):not(.cg-code-btn):not(.site-logo):not(.brand-link):not(.cg-brand-plate){color:var(--text-2)!important;text-decoration:none}
html[data-theme] body[data-playful] .breadcrumb a:not(.btn):not(.cg-code-btn):not(.site-logo):not(.brand-link):not(.cg-brand-plate):hover{color:var(--accent-text)!important;text-decoration:underline}
body[data-playful] .breadcrumb__sep{color:var(--text-2)}
body[data-playful] .hero--lobby .breadcrumb{margin:0 0 40px!important}
body[data-playful] main>.section--tight:first-child{padding-block:20px 0!important}

/* Hero banner: message left, craft upper-right on the void */
html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art:not(#cg-home-hero){position:relative;isolation:isolate;overflow:hidden;min-height:0!important;padding:40px 0 88px!important;border:0;
 background:radial-gradient(ellipse 58% 50% at 78% 46%,rgba(255,224,0,.09),transparent 100%),var(--void)!important}
html[data-theme="light"] body[data-playful] .hero.hero--lobby.hero--aviator-art:not(#cg-home-hero){background:radial-gradient(ellipse 58% 50% at 78% 46%,rgba(255,224,0,.09),transparent 100%),var(--dark-canvas)!important}
body[data-playful] .hero--lobby>.container{position:relative;z-index:2}
html[data-theme="dark"] body[data-playful] .hero--lobby::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:100px;z-index:1;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--dark-canvas) 96%)}
html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art h1{font:800 clamp(40px,5vw,64px)/.92 var(--font-display)!important;text-transform:uppercase;letter-spacing:-.005em!important;
 color:var(--yellow)!important;-webkit-text-fill-color:var(--yellow)!important;text-shadow:var(--glow-text)!important;margin:0 0 20px!important;max-width:12em}
html[data-theme] body[data-playful] .hero--lobby .h1-stamp{display:flex;width:fit-content;max-width:100%;align-items:center;gap:8px;background:transparent!important;border:1px solid var(--line-strong)!important;border-radius:4px!important;
 padding:6px 12px;margin:0 0 12px;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)!important}
html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art .cg-editorial-byline{display:block!important;font:400 13px/20px var(--font-body);color:var(--text-2);margin:0 0 20px!important}
html[data-theme] body[data-playful] .hero--lobby .cg-editorial-byline a{color:var(--text-2)!important}
html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art .hero__sub{font:400 18px/28px var(--font-body)!important;color:var(--text)!important;max-width:480px;margin:0 0 28px!important}
body[data-playful] .cg-playful-actions{gap:16px;margin-top:0;align-items:center}
.cg-lobby-art{position:absolute;z-index:0;top:-40px;right:-5vw;bottom:-50px;width:min(62vw,900px);pointer-events:none}
html[data-theme="dark"] body[data-playful] .cg-lobby-art .cg-flight-svg{-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 94%);mask-image:linear-gradient(to bottom,#000 70%,transparent 94%)}

/* Section head: display title + numeral stats */
html[data-theme] body[data-playful] #sl-grid-section{padding-top:64px!important;background:transparent!important}
body[data-playful] .sl-grid__head{text-align:left!important;max-width:none!important;margin:0 0 24px!important}
html[data-theme] body[data-playful] .sl-grid__head h2{font:800 32px/30px var(--font-display)!important;text-transform:uppercase;letter-spacing:0;margin:0 0 20px!important;color:var(--text)}
body[data-playful] .sl-grid__meta{display:flex;flex-wrap:wrap;justify-content:flex-start!important;gap:12px 40px;padding:0;margin:0 0 24px;list-style:none;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
body[data-playful] .sl-grid__meta li{display:flex;align-items:baseline;gap:8px}
body[data-playful] .sl-grid__meta strong{font:800 32px/1 var(--font-num);letter-spacing:.01em;text-transform:none;color:var(--text)}

/* Filter bar */
body[data-playful] .sl-filterbar{padding:24px;position:relative;top:auto}
body[data-playful] .sl-filterbar__row{gap:16px;align-items:flex-end}
body[data-playful] .sl-filterbar__label{display:block;margin:0 0 8px;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
html[data-theme] body[data-playful] .sl-filterbar :is(input,select){min-height:48px;padding:0 14px;border-radius:4px;border:1px solid var(--line-strong);background:var(--surface-2)!important;color:var(--text)!important;font:400 16px/24px var(--font-body)}
body[data-playful] .sl-filterbar input::placeholder{color:var(--text-2)}
html[data-theme] body[data-playful] .sl-filterbar__reset{background:none!important;border:0!important;box-shadow:none!important;color:var(--text)!important;font:800 15px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase;min-height:48px;padding:0 12px;
 text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer}
html[data-theme] body[data-playful] .sl-filterbar__reset:hover{color:var(--accent-text)!important}
body[data-playful] .cg-extra-filters{border:0;background:transparent;box-shadow:none;border-radius:0!important;overflow:visible!important;margin:0!important}
body[data-playful] .cg-extra-filters>summary{display:flex;align-items:center;min-height:48px;padding:0 40px 0 16px;border:2px solid var(--line-strong);border-radius:4px;font:800 15px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase;color:var(--text)}
body[data-playful] .cg-extra-filters[open]>summary{border-color:var(--accent-text)}
body[data-playful] .sl-filterbar__status{margin-top:20px;font:400 14px/20px var(--font-body);color:var(--text-2)}
body[data-playful] .sl-filterbar__status #sl-filter-count{font:800 18px/1 var(--font-num);letter-spacing:.01em;color:var(--text)}

/* Pagination: numerals in the numbers face; current page is the active (yellow) state */
body[data-playful] .cg-catalogue-nav{margin:28px 0}
body[data-playful] .cg-catalogue-nav__label{margin:0 0 12px;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
html[data-theme] body[data-playful] .cg-catalogue-nav :is(a,[aria-current]){min-width:44px;min-height:44px;padding:0 14px;border:2px solid var(--line-strong);border-radius:4px;background:transparent;color:var(--text)!important;font:800 16px/1 var(--font-display);letter-spacing:.02em;text-transform:uppercase;text-decoration:none}
html[data-theme] body[data-playful] .cg-catalogue-nav a:hover{border-color:var(--accent-text);background:transparent;color:var(--accent-text)!important}
html[data-theme] body[data-playful] .cg-catalogue-nav [aria-current]{border-color:var(--accent-text);color:var(--accent-text)!important;background:rgba(255,224,0,.1)}
html[data-theme="light"] body[data-playful] .cg-catalogue-nav [aria-current]{background:var(--yellow);color:var(--on-yellow)!important;border-color:var(--line-strong)}

/* Game cards */
body[data-playful] .sl-grid{gap:24px;margin-top:24px}
html[data-theme] body[data-playful] .sl-card{overflow:hidden;transition:border-color .14s var(--ease-ui)}
body[data-playful] .sl-card:hover{transform:none;border-color:var(--line-strong)}
body[data-playful] .sl-card__play{border-bottom:1px solid var(--line)}
body[data-playful] .sl-card__thumb{aspect-ratio:16/10;background:var(--surface-2)}
body[data-playful] .sl-card__body{padding:14px 16px 16px}
body[data-playful] .sl-card__title{font:700 16px/22px var(--font-body);margin:0;color:var(--text)}
body[data-playful] .sl-card__provider{font:400 13px/18px var(--font-body);color:var(--text-2);margin:2px 0 0}
body[data-playful] .sl-card__overlay{background:rgba(0,0,0,.74);color:var(--on-dark);gap:8px;font:800 15px/1 var(--font-display);letter-spacing:.06em;text-transform:uppercase}
body[data-playful] .sl-card__overlay svg{color:var(--yellow)}
/* Touch: no hover, so keep the play hint but let the artwork breathe (legacy uses a bottom gradient here) */
@media(hover:none){
 body[data-playful] .sl-card__overlay{background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.82) 100%);justify-content:flex-end;padding-bottom:10px;gap:4px;font-size:12px}
 body[data-playful] .sl-card__overlay svg{width:22px;height:22px}
}
body[data-playful] .sl-more{text-align:left;margin:12px 0 8px}
body[data-playful] .sl-more .text-muted{color:var(--text-2)}
body[data-playful] .cg-catalogue-more{margin:24px 12px 6px 0}

/* Real-money comparison table (same pattern as the home rankings) */
body[data-playful] .sl-grid__after{margin-top:72px}
html[data-theme] body[data-playful] .sl-grid__after h3{font:800 32px/30px var(--font-display);text-transform:uppercase;letter-spacing:0;margin:0 0 16px;text-align:left;color:var(--text)}
body[data-playful] .sl-grid__after>p{text-align:left!important;max-width:70ch!important;margin:0!important;color:var(--text-2)}
html[data-theme] body[data-playful] .sl-wtp-wrap{max-width:none!important;margin:24px 0 0!important;padding:0;overflow-x:auto}
body[data-playful] .sl-wtp{width:100%;border-collapse:collapse;background:transparent;border:0;border-radius:0}
body[data-playful] .sl-wtp caption{caption-side:top;text-align:left;padding:20px 24px;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);border-bottom:1px solid var(--line)}
body[data-playful] .sl-wtp thead th{text-align:left;padding:14px 16px;background:transparent;font:600 12px/16px var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);border-bottom:1px solid var(--line-strong)}
body[data-playful] .sl-wtp :is(tbody td,tbody th){padding:18px 16px;vertical-align:middle;text-align:left;background:transparent;border-bottom:1px solid var(--line)}
body[data-playful] .sl-wtp tbody tr:last-child :is(td,th){border-bottom:0}
body[data-playful] .sl-wtp tbody tr{transition:background .14s var(--ease-ui)}
body[data-playful] .sl-wtp tbody tr:hover :is(td,th){background:var(--surface-2)}
body[data-playful] .sl-wtp__brand{display:block;font:700 16px/22px var(--font-body);color:var(--text)}
html[data-theme] body[data-playful] .sl-wtp__score{border-radius:0!important;display:block;margin-top:4px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font:800 22px/1 var(--font-num)!important;letter-spacing:.01em;color:var(--text)!important}
body[data-playful] .sl-wtp__tagline{font:400 14px/20px var(--font-body);color:var(--text)}
body[data-playful] .sl-wtp__license{font:400 12px/16px var(--font-body);color:var(--text-2)}
body[data-playful] .sl-wtp__cta{text-align:right;white-space:nowrap}
html[data-theme] body[data-playful] .sl-wtp .btn.btn--sm{height:40px!important;min-height:40px!important;padding:0 18px!important;font-size:15px!important}
body[data-playful] .sl-wtp__note{max-width:none!important;margin:16px 0 0!important;font:400 13px/20px var(--font-body);color:var(--text-2);text-align:left}
body[data-playful] .cg-code-btn__icon{display:inline-flex;margin-left:6px;opacity:.8;vertical-align:middle}

/* By Provider / By Country */
body[data-playful] section:has(>.container>.card-grid){padding-block:40px!important;background:transparent!important}
html[data-theme] body[data-playful] section:has(>.container>.card-grid) h2{font:800 32px/30px var(--font-display);text-transform:uppercase;text-align:left!important;margin:0 0 12px}
body[data-playful] section:has(>.container>.card-grid) p.text-center{text-align:left!important;max-width:70ch}
body[data-playful] .card-grid--providers,body[data-playful] .card-grid--countries{gap:24px;margin-top:32px}
body[data-playful] :is(.card--provider,.card--country){display:block;text-decoration:none;color:inherit;transition:border-color .14s var(--ease-ui)}
body[data-playful] :is(.card--provider,.card--country):hover{border-color:var(--line-strong)}
html[data-theme] body[data-playful] .card--country .card__flag{display:inline-block;margin-bottom:12px;font-size:28px!important;line-height:1}
body[data-playful] .card__providerlogo{display:block;height:28px;width:auto;max-width:100%;margin-bottom:16px;object-fit:contain;object-position:left}
body[data-playful] .card__title{font:700 18px/24px var(--font-body);margin:0 0 4px}
html[data-theme="light"] body[data-playful] .card--provider img[src*="gaming-corps"]{filter:brightness(0)}

/* Real-money strip: this page's one featured message (bracket frame) */
body[data-playful] .cg-realmoney{padding:32px 0 8px!important;background:none!important;border:0!important}
html[data-theme] body[data-playful] .cg-realmoney>.container{position:relative;max-width:1240px!important;margin-inline:auto!important;padding:48px!important;background:var(--surface);box-shadow:var(--glow-ui);text-align:left}
body[data-playful] .cg-realmoney>.container::after{content:"";position:absolute;inset:-1px;pointer-events:none;background:var(--brackets);background-repeat:no-repeat}
html[data-theme="light"] body[data-playful] .cg-realmoney>.container{background:var(--surface);box-shadow:none}
html[data-theme] body[data-playful] .cg-realmoney h3{font:800 32px/30px var(--font-display);text-transform:uppercase;letter-spacing:0;margin:12px 0 16px;color:var(--text)}
body[data-playful] .cg-realmoney h3 a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
html[data-theme] body[data-playful] .cg-realmoney p:not(.cg-kicker){max-width:60ch;margin:0 0 28px;color:var(--text-2)!important}

/* "Using the catalogue" prose panel */
html[data-theme] body[data-playful] #using-the-catalogue{padding-block:56px 24px!important}
html[data-theme] body[data-playful] #using-the-catalogue>.container{max-width:1240px;margin-inline:auto;padding:40px 0 0;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;clip-path:none}
body[data-playful] #using-the-catalogue .prose,body[data-playful] #using-the-catalogue p,body[data-playful] #using-the-catalogue ul{max-width:76ch}

@media(max-width:1000px){
 html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art:not(#cg-home-hero){display:flex;flex-direction:column;padding:28px 0 40px!important}
 body[data-playful] .hero--lobby>.container{order:1}
 .cg-lobby-art{order:2;position:relative;top:auto;right:auto;bottom:auto;width:100%;height:min(70vw,320px);margin-top:12px}
 html[data-theme="dark"] body[data-playful] .hero--lobby::after{display:none}
}
@media(max-width:720px){
 body[data-playful] .sl-wtp :is(tbody td,tbody th){border-bottom:0;padding:8px 16px}
 body[data-playful] .sl-wtp tbody tr{border-bottom:1px solid var(--line-strong);padding:12px 0}
 body[data-playful] .sl-wtp tbody tr:last-child{border-bottom:0}
 body[data-playful] .sl-wtp tbody tr:hover :is(td,th){background:transparent}
}
@media(max-width:760px){
 body[data-playful] .sl-grid__meta{gap:10px 28px}
 body[data-playful] .sl-grid__meta strong{font-size:26px}
 body[data-playful] .cg-realmoney>.container{padding:28px!important}
 body[data-playful] .sl-filterbar{padding:20px}
}
@media(max-width:540px){
 html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art h1{font-size:clamp(32px,10vw,40px)!important}
 html[data-theme] body[data-playful] .hero.hero--lobby.hero--aviator-art .hero__sub{font-size:16px!important;line-height:24px!important}
}


/* =====================================================================
   15. Header layout and site search
   logo · nav links  ………  [search] [country] [shelf] [theme]
   ===================================================================== */
body[data-playful] .site-header__inner{gap:32px;justify-content:flex-start}
body[data-playful] .site-nav{margin-right:auto}
body[data-playful] .site-nav a{padding:12px clamp(8px,1.05vw,14px)}
body[data-playful] .site-header .row{margin-left:auto;gap:8px;flex-shrink:0}
/* Icon-only controls: search, shelf (label dropped, the accessible name stays on the button) */
body[data-playful] .cg-header-shelf .cg-shelf-label{display:none}
html[data-theme] body[data-playful] :is(.site-search-toggle,.cg-header-shelf){width:44px;padding:0}
html[data-theme] body[data-playful] .site-search-toggle[aria-expanded="true"]{border-color:var(--accent-text)!important;background:rgba(255,224,0,.12)!important}

/* style.css clips the header at <=640px (overflow:hidden), which cut the search panel off and let focus()
   scroll the bar. The panel is absolutely positioned inside the header, so let it show. */
html[data-theme] body[data-playful] .site-header{overflow:visible}
/* style.css puts overflow-x:hidden on both <html> and <body>. That makes <body> a scroll container, and the
   sticky header then scrolls away with the page instead of staying pinned. Clip on <body> instead: the same
   visual result without a scroll container, so the nav bar stays at the top while you scroll. */
html[data-theme] body[data-playful]{overflow-x:clip}

/* Search panel: drops under the header, no layout shift */
body[data-playful] .site-search{position:absolute;left:0;right:0;top:100%;z-index:79;background:var(--chrome-bg);border-bottom:1px solid var(--line);
 box-shadow:0 28px 56px rgba(0,0,0,.4);animation:sp-panel .24s var(--ease-in)}
html[data-theme="light"] body[data-playful] .site-search{box-shadow:0 24px 48px rgba(0,0,0,.12)}
@keyframes sp-panel{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
body[data-playful] .site-search__form{max-width:1304px;margin:0 auto;padding:16px 32px}
body[data-playful] .site-search .cg-search-form__row{gap:12px;align-items:center}
body[data-playful] .site-search input[type="search"]{flex:1}
html[data-theme] body[data-playful] .site-search__close{width:48px;height:48px;padding:0}
@media(max-width:540px){
 body[data-playful] .site-search__form{padding:12px 16px}
 body[data-playful] .site-search .cg-search-form__row{flex-wrap:wrap}
 body[data-playful] .site-search input[type="search"]{flex:1 1 100%}
 html[data-theme] body[data-playful] .site-search .btn{flex:1 1 auto}
}

/* Full-width bar: the logo and the controls sit 30px in from the left and right edges of the window
   (tablet and desktop; phones keep the 16px gutter used by the page content). The search panel lines up with the bar. */
@media(min-width:641px){
 body[data-playful] .site-header__inner{max-width:none;padding-left:30px;padding-right:30px}
 body[data-playful] .site-search__form{max-width:none;padding-left:30px;padding-right:30px}
}

/* Header tiers: everything fits at every width.
   >=1360  full layout · 1240-1359  tighter nav · <1240  nav moves into the menu (search, country, shelf, theme stay in the bar) */
@media(min-width:1240px) and (max-width:1359px){
 body[data-playful] .site-header__inner{gap:20px}
 body[data-playful] .site-nav a{padding:12px 10px}
}
@media(min-width:1001px) and (max-width:1239px){
 body[data-playful] .site-nav{display:none!important}
 body[data-playful] .mobile-toggle{display:inline-flex!important}
}

/* The menu panel starts at the header's height but the disclosure strip sits above it at the top of the page;
   the original fix only covered phones (<=640px), so cover tablet widths too. */
@media(min-width:641px){body[data-playful] .mobile-nav{padding-top:56px}}

/* =====================================================================
   16. Lift-off ship (assets/js/liftoff.js, artwork: assets/img/spaceship.svg)
   The ship sits in the left margin. It is at the bottom of the window at the top of the page and climbs
   toward the nav bar as you scroll. Only shown where there is a margin for it (the script measures it).
   ===================================================================== */
.cg-liftoff{position:fixed;top:0;left:0;z-index:60;width:var(--lo-w,96px);pointer-events:none;opacity:0;user-select:none;
 transition:opacity .3s var(--ease-in);will-change:transform}
.cg-liftoff.is-on{opacity:1}
.cg-liftoff .lo-ship{position:relative;z-index:1;display:block;width:100%;height:auto}
/* exhaust: sits just under the engine, a small idle flame that grows while the page is moving */
.cg-liftoff .lo-flame{position:absolute;z-index:0;left:50%;top:calc(100% - 3px);width:21.6%;margin-left:-10.8%;
 transform-origin:50% 0;transform:scaleY(.4);transition:transform .35s var(--ease-in)}
.cg-liftoff.is-lit .lo-flame{transform:scaleY(1)}
.cg-liftoff .lo-flame svg{display:block;width:100%;height:auto;overflow:visible}
.cg-liftoff .lo-flick{transform-box:view-box;transform-origin:20px 0;animation:sp-flicker .16s steps(2,end) infinite alternate}
@keyframes sp-flicker{from{transform:scaleY(.9)}to{transform:scaleY(1.08)}}
/* Narrow desktop windows (1100-1499px): the page column narrows, so both side margins grow and the left one stays wide
   enough (about 128px) for the ship. From 1500px up the column is its normal 1240px; below 1100px the ship is not shown
   and the layout is untouched. The legacy sheets cap .container with a literal 1240px (not the --container variable), and
   a few sections repeat it with !important, so the override has to match. The hero container has its own cap. */
@media(min-width:1100px) and (max-width:1499px){
 html[data-theme] body[data-playful]{--container:calc(100vw - 256px);--container-max:calc(100vw - 296px)}
 html[data-theme] body[data-playful] .container:not(.hero>.container):not(#x){max-width:min(1240px,calc(100vw - 256px))!important}
}

/* multiplier tag above the nose: climbs with the ship, turns red when it crashes (red is reserved for crashes) */
.cg-liftoff .lo-mult{position:absolute;z-index:3;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);padding:1px 8px;
 font:800 18px/22px var(--font-display);letter-spacing:.03em;white-space:nowrap;font-variant-numeric:tabular-nums;
 color:var(--yellow);background:var(--dark-canvas);border:1px solid rgba(255,224,0,.4);border-radius:4px}

/* explosion: everything is centred on the ship and sized in ship-widths (--lo-w), so it scales with the ship */
.cg-liftoff .lo-fx{position:absolute;z-index:2;left:50%;top:50%;width:0;height:0}
.cg-liftoff .lo-fx>*{position:absolute;display:block;opacity:0;max-width:none}   /* (a global svg max-width:100% would squash them: their parent is zero-width) */
.cg-liftoff .lo-flash{width:calc(var(--lo-w)*1.1);height:calc(var(--lo-w)*1.1);margin:calc(var(--lo-w)*-.55) 0 0 calc(var(--lo-w)*-.55);
 background:#fff;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
.cg-liftoff .lo-ring{width:var(--lo-w);height:var(--lo-w);margin:calc(var(--lo-w)*-.5) 0 0 calc(var(--lo-w)*-.5);overflow:visible}
.cg-liftoff .lo-burst{width:calc(var(--lo-w)*1.9);height:calc(var(--lo-w)*1.9);margin:calc(var(--lo-w)*-.95) 0 0 calc(var(--lo-w)*-.95);overflow:visible}
.cg-liftoff .lo-shard{left:0;top:0;width:calc(var(--lo-w)*var(--sz,.15));height:calc(var(--lo-w)*var(--sz,.15)*var(--ar,1));
 margin:calc(var(--lo-w)*var(--sz,.15)*-.5) 0 0 calc(var(--lo-w)*var(--sz,.15)*-.5);background:var(--c,#C1C1C1);clip-path:polygon(var(--cp,0 0,100% 25%,35% 100%))}

/* the crash: the ship and flame vanish at once, then flash, starburst, shockwave and debris play, and the tag goes red */
.cg-liftoff.is-crashed .lo-ship,.cg-liftoff.is-crashed .lo-flame{opacity:0;transition:none;animation:none}
.cg-liftoff.is-crashed .lo-flash{animation:lo-flash .28s ease-out both}
.cg-liftoff.is-crashed .lo-burst{animation:lo-burst .7s cubic-bezier(.1,.8,.3,1) both}
.cg-liftoff.is-crashed .lo-ring{animation:lo-ring .75s cubic-bezier(.1,.7,.3,1) both}
.cg-liftoff.is-crashed .lo-shard{animation:lo-shard 1.05s cubic-bezier(.12,.7,.3,1) both}
.cg-liftoff.is-crashed .lo-mult{color:#0F0F0F;background:#FF3B30;border-color:#FF3B30;animation:lo-pop .3s ease-out,lo-fade-out .4s ease 1.7s forwards}
@keyframes lo-flash{0%{transform:scale(.3);opacity:1}100%{transform:scale(1.5);opacity:0}}
@keyframes lo-burst{0%{transform:scale(.12);opacity:1}55%{opacity:1}100%{transform:scale(1);opacity:0}}
@keyframes lo-ring{0%{transform:scale(.3);opacity:.9}100%{transform:scale(2.6);opacity:0}}
@keyframes lo-shard{0%{transform:translate(0,0) rotate(0) scale(1);opacity:1}65%{opacity:1}
 100%{transform:translate(calc(var(--lo-w)*var(--dx,0)),calc(var(--lo-w)*var(--dy,0))) rotate(var(--rot,0deg)) scale(.5);opacity:0}}
@keyframes lo-pop{0%{transform:translateX(-50%) scale(1)}40%{transform:translateX(-50%) scale(1.3)}100%{transform:translateX(-50%) scale(1)}}
@keyframes lo-fade-out{to{opacity:0}}
/* next round: the new ship rises into place */
.cg-liftoff.is-spawn:not(.is-crashed) .lo-ship{animation:lo-spawn .45s var(--ease-in)}
.cg-liftoff.is-spawn:not(.is-crashed) .lo-mult{animation:lo-fade-in .45s ease}
@keyframes lo-spawn{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes lo-fade-in{from{opacity:0}to{opacity:1}}
/* the ship has white faces: on the light theme give it a fine dark edge and a soft shadow so it still reads */
html[data-theme="light"] .cg-liftoff .lo-burst,html[data-theme="light"] .cg-liftoff .lo-shard,html[data-theme="light"] .cg-liftoff .lo-ring{filter:drop-shadow(0 0 1px rgba(14,13,10,.8))}
html[data-theme="light"] .cg-liftoff .lo-ship{filter:drop-shadow(0 0 1px rgba(14,13,10,.85)) drop-shadow(0 8px 14px rgba(0,0,0,.18))}
html[data-theme="light"] .cg-liftoff .lo-flame{filter:drop-shadow(0 0 1px rgba(14,13,10,.7))}
html[data-motion="off"] .cg-liftoff{display:none}
@media(prefers-reduced-motion:reduce){.cg-liftoff{display:none}}
@media print{.cg-liftoff{display:none}}

/* Daily Discovery "Open the game": keep the label on one line on phones (the column is narrow; it used to wrap to 3 lines) */
/* (:not(#x) adds id-level specificity: the shared button rules above use !important and :is(), so a class-level rule cannot beat them) */
html[data-theme] body[data-playful] .cg-daily-spotlight .cg-control:not(#x){white-space:nowrap;padding:0 12px!important;gap:6px!important;max-width:100%}
@media(max-width:380px){html[data-theme] body[data-playful] .cg-daily-spotlight .cg-control:not(#x){font-size:16px!important;letter-spacing:.02em!important}}
