/* Category-only composition. Artwork is content, never an enlarged backdrop. */
html[data-design-preview] .game-hero[data-game-slug]::before{display:none}
html[data-design-preview] .game-hero[data-game-slug]{min-height:0;background:var(--color-bg);border-bottom:1px solid var(--gp-line)}
html[data-design-preview] .game-hero[data-game-slug] .game-hero-content{padding-block:26px 36px;pointer-events:auto}
html[data-design-preview] .game-hero[data-game-slug] .game-hero-inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,64px);margin-top:28px}
html[data-design-preview] .game-hero[data-game-slug] .game-hero-main{max-width:660px;min-width:0}
html[data-design-preview] .game-hero[data-game-slug] h1{font-size:clamp(32px,3.1vw,44px)!important;line-height:1.14!important;text-wrap:balance;letter-spacing:-.035em;margin-bottom:18px}
html[data-design-preview] .game-hero[data-game-slug] .game-desc{max-width:48ch;font-size:16px;line-height:1.65;margin-bottom:0}
html[data-design-preview] .game-hero[data-game-slug] .game-hero-stats{margin-top:24px}
.game-category-art{margin:0;width:100%;max-width:560px;justify-self:end;overflow:hidden;border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-secondary);isolation:isolate}
.game-category-art img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
html[data-design-preview] .game-hero[data-category-art="false"] .game-hero-inner{grid-template-columns:minmax(0,800px)}
@media(max-width:900px){
  html[data-design-preview] .game-hero[data-game-slug] .game-hero-inner{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}
  html[data-design-preview] .game-hero[data-game-slug] h1{font-size:32px!important}
}
@media(max-width:700px){
  html[data-design-preview] .game-hero[data-game-slug] .game-hero-content{padding-block:20px 28px}
  html[data-design-preview] .game-hero[data-game-slug] .game-hero-inner{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px}
  html[data-design-preview] .game-hero[data-game-slug] h1{font-size:clamp(28px,7.2vw,32px)!important;line-height:1.16!important;margin-bottom:16px}
  html[data-design-preview] .game-hero[data-game-slug] .game-desc{font-size:15px}
  html[data-design-preview] .game-hero[data-game-slug] .game-hero-stats{margin-top:18px}
  .game-category-art{justify-self:start;max-width:480px;border-radius:8px}
}

/* Transparent character scene: no card, frame, image backdrop or fog. */
html[data-design-preview] .game-hero[data-category-style="cutout"]{position:relative;isolation:isolate;background:radial-gradient(ellipse at 78% 48%,color-mix(in srgb,var(--gp-gold) 5%,transparent),transparent 49%),var(--color-bg)}
html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-content{padding-bottom:0}
html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-inner{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);min-height:470px;margin-top:10px;gap:30px}
html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-main{position:relative;z-index:3;padding-block:24px 52px;animation:category-copy-in .65s cubic-bezier(.16,1,.3,1) both}
html[data-design-preview] .game-hero[data-category-style="cutout"] h1{font-size:clamp(34px,3.5vw,50px)!important;line-height:1.12!important;letter-spacing:-.04em;max-width:600px}
html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-stats{margin-top:30px}
.game-category-scene{--scene-x:0px;--scene-y:0px;position:relative;min-width:0;align-self:stretch;min-height:470px;isolation:isolate;pointer-events:none;z-index:1}
.category-scene-space{position:absolute;inset:-35px -20px 0;z-index:-1;transform:translate(calc(var(--scene-x)*-.3),calc(var(--scene-y)*-.25))}
.category-scene-light{position:absolute;inset:3% 0 0;background:radial-gradient(ellipse at 53% 42%,color-mix(in srgb,var(--gp-gold) 19%,transparent),transparent 59%),radial-gradient(ellipse at 77% 42%,#829baf0e,transparent 55%);animation:category-light 8s ease-in-out infinite alternate}
.category-scene-horizon{position:absolute;width:84%;height:1px;inset-inline-start:8%;top:73%;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--gp-gold) 36%,transparent),transparent);transform:rotate(-13deg);opacity:.4}
.category-scene-word{position:absolute;inset-inline:-2% -10%;top:30%;font:600 clamp(60px,8.7vw,124px)/.92 var(--font-main);letter-spacing:-.065em;color:transparent;-webkit-text-stroke:1px color-mix(in srgb,var(--gp-gold) 17%,transparent);text-transform:uppercase;text-wrap:balance;text-align:center;transform:translateY(calc(var(--scene-y)*-.3));opacity:.8}
.category-scene-orbit{position:absolute;width:95%;height:auto;aspect-ratio:1;top:-11%;inset-inline-start:3%;color:var(--gp-gold);opacity:.2;animation:category-orbit 50s linear infinite}
.category-scene-subject{position:absolute;inset:-68px -18px -40px;transform:translate(var(--scene-x),var(--scene-y));animation:category-subject-in .7s cubic-bezier(.16,1,.3,1) both}
.category-scene-character{display:block;width:100%;height:100%;object-fit:contain;object-position:center top;mask-image:linear-gradient(#000 0%,#000 72%,transparent 92%);filter:drop-shadow(0 12px 20px #0002);animation:category-float 7s ease-in-out infinite;transform-origin:50% 75%}
.category-scene-sparks{position:absolute;inset:4% 4% 0;overflow:hidden;mask-image:linear-gradient(transparent,#000 20%,#000 70%,transparent)}
.category-scene-sparks i{position:absolute;inset-block-end:5%;inset-inline-start:18%;width:2px;height:2px;border-radius:50%;background:var(--gp-gold);box-shadow:0 0 8px color-mix(in srgb,var(--gp-gold) 40%,transparent);animation:category-spark 8s linear infinite;opacity:0}
.category-scene-sparks i:nth-child(2){inset-inline-start:78%;animation-delay:-2s;animation-duration:11s}
.category-scene-sparks i:nth-child(3){inset-inline-start:60%;animation-delay:-6s;animation-duration:9s}
.category-scene-sparks i:nth-child(4){inset-inline-start:27%;animation-delay:-4s;animation-duration:10s}
.category-scene-sparks i:nth-child(5){inset-inline-start:88%;animation-delay:-7s;animation-duration:13s}
.category-scene-toggle{position:absolute;inset-inline-end:0;inset-block-end:20px;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--color-border);border-radius:50%;color:var(--color-text-secondary);background:var(--color-bg);cursor:pointer;pointer-events:auto;z-index:4;transition:color .2s,border-color .2s}
.category-scene-toggle:hover{color:var(--gp-gold);border-color:var(--gp-gold)}
.category-scene-toggle:focus-visible{outline:2px solid var(--gp-gold);outline-offset:4px}
.category-scene-toggle[hidden],.category-scene-play{display:none}
.game-category-scene[data-paused="true"] .category-scene-play{display:block}
.game-category-scene[data-paused="true"] .category-scene-pause{display:none}
.game-category-scene[data-active="false"] *{animation-play-state:paused!important}
.game-category-scene:not([data-ready]) *{animation-play-state:paused!important}
.game-category-scene:not([data-ready]) .category-scene-subject{animation:none!important;opacity:1}
@keyframes category-copy-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes category-subject-in{from{opacity:0;translate:22px 14px}to{opacity:1;translate:0 0}}
@keyframes category-float{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-8px) rotate(.25deg)}}
@keyframes category-light{from{opacity:.5;transform:translateX(-12px) scale(.97)}to{opacity:.9;transform:translateX(10px) scale(1.04)}}
@keyframes category-orbit{to{rotate:360deg}}
@keyframes category-spark{0%{opacity:0;transform:translate(0,10px)}20%,65%{opacity:.5}100%{opacity:0;transform:translate(24px,-310px)}}
html[data-theme="light"] .category-scene-word{-webkit-text-stroke-color:color-mix(in srgb,var(--gp-gold) 28%,transparent)}
html[data-theme="light"] .category-scene-light{opacity:.55}
@media(min-width:1800px){.category-scene-subject{inset-block-start:-90px;inset-block-end:-55px}}
@media(min-width:701px) and (max-width:1000px){
  html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-inner{min-height:420px;gap:14px}
  html[data-design-preview] .game-hero[data-category-style="cutout"] h1{font-size:36px!important}
  .game-category-scene{min-height:420px}.category-scene-subject{inset:-12px -40px -30px}.category-scene-word{font-size:70px}
}
@media(max-width:700px){
  html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-inner{grid-template-columns:minmax(0,1fr);min-height:0;gap:0;margin-top:24px}
  html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-main{padding:0;animation-duration:.45s}
  html[data-design-preview] .game-hero[data-category-style="cutout"] h1{font-size:clamp(28px,7.2vw,32px)!important;line-height:1.16!important}
  html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-stats{margin-top:20px}
  .game-category-scene{min-height:310px;margin-top:24px}
  .category-scene-space{inset:-15px -18px 0}.category-scene-subject{inset:0 -10px -55px}
  .category-scene-word{font-size:clamp(50px,16vw,76px);top:28%;inset-inline:-3%}
  .category-scene-orbit{width:100%;top:-15%;inset-inline-start:0;opacity:.15}
  .category-scene-toggle{inset-block-end:16px;inset-inline-end:0}
  .category-scene-character{mask-image:linear-gradient(#000 0%,#000 60%,transparent 85%)}
}
@media(prefers-reduced-motion:reduce){
  .game-category-scene *,html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-main{animation:none!important}
  .category-scene-space,.category-scene-subject{transform:none!important}
  .category-scene-toggle{display:none!important}
}

/* Curated game identities: all share the accessible stage, each has its own art direction. */
.game-category-scene{--scene-accent:var(--gp-gold)}
.game-category-scene .category-scene-light{background:radial-gradient(ellipse at 53% 42%,color-mix(in srgb,var(--scene-accent) 17%,transparent),transparent 59%),radial-gradient(ellipse at 77% 42%,color-mix(in srgb,var(--scene-accent) 5%,transparent),transparent 55%)}
.game-category-scene .category-scene-word{-webkit-text-stroke-color:color-mix(in srgb,var(--scene-accent) 18%,transparent)}
.game-category-scene .category-scene-orbit{color:var(--scene-accent)}
.game-category-scene .category-scene-horizon{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--scene-accent) 36%,transparent),transparent)}
.game-category-scene .category-scene-sparks i{background:var(--scene-accent)}
.game-category-scene .category-scene-character{animation-duration:var(--scene-duration,7s);scale:var(--scene-scale,1)}
.game-category-scene[data-scene-motion="drift"] .category-scene-character{animation-name:category-drift}
.game-category-scene[data-scene-motion="bob"] .category-scene-character{animation-name:category-bob}
.game-category-scene[data-scene-motion="sway"] .category-scene-character{animation-name:category-sway}
.game-category-scene[data-scene-motion="breathe"] .category-scene-character{animation-name:category-breathe}
.game-category-scene[data-scene-motion="hover"] .category-scene-character{animation-name:category-hover}
.game-category-scene[data-scene-motion="bank"] .category-scene-character{animation-name:category-bank}
.game-category-scene[data-scene-framing="object"] .category-scene-subject{inset:10px -10px 30px}
.game-category-scene[data-scene-framing="creature"] .category-scene-subject{inset:10px -30px 20px}
.game-category-scene[data-scene-framing="fullbody"] .category-scene-subject{inset:-10px -15px 15px}
.game-category-scene:is([data-scene-framing="object"],[data-scene-framing="creature"],[data-scene-framing="fullbody"]) .category-scene-character{mask-image:none;object-position:center}
.category-scene-motif{position:absolute;inset:9% -4% 4%;color:var(--scene-accent);opacity:.2;mask-image:radial-gradient(ellipse,#000 25%,transparent 74%)}
.category-scene-motif span{position:absolute;display:block;pointer-events:none}
[data-scene-motif="scan"] .category-scene-motif{background:repeating-linear-gradient(0deg,transparent 0 46px,currentColor 47px,transparent 48px),repeating-linear-gradient(90deg,transparent 0 46px,currentColor 47px,transparent 48px);opacity:.1;transform:perspective(500px) rotateY(-18deg)}
[data-scene-motif="scan"] .category-scene-motif span:first-child{inset:0;background:linear-gradient(0deg,transparent 45%,currentColor 50%,transparent 55%);animation:category-scan 9s ease-in-out infinite alternate}
[data-scene-motif="velocity"] .category-scene-motif span{height:1px;width:110%;inset-inline-start:-5%;top:27%;background:linear-gradient(90deg,transparent,currentColor,transparent);rotate:-27deg;animation:category-streak 10s ease-in-out infinite}
[data-scene-motif="velocity"] .category-scene-motif span:nth-child(2){top:56%;width:75%;animation-delay:-4s}
[data-scene-motif="velocity"] .category-scene-motif span:nth-child(3){top:73%;animation-delay:-7s}
[data-scene-motif="wind"] .category-scene-motif span{width:125%;height:70px;border-top:1px solid currentColor;border-radius:50%;top:30%;inset-inline-start:-10%;rotate:-14deg;animation:category-wind 12s ease-in-out infinite alternate}
[data-scene-motif="wind"] .category-scene-motif span:nth-child(2){top:52%;width:90%;animation-delay:-6s}
[data-scene-motif="wind"] .category-scene-motif span:nth-child(3){top:70%;width:115%;animation-delay:-9s}
[data-scene-motif="prism"] .category-scene-motif span{width:200px;aspect-ratio:1;border:1px solid currentColor;rotate:35deg;inset-inline-start:12%;top:10%;animation:category-prism 23s ease-in-out infinite alternate}
[data-scene-motif="prism"] .category-scene-motif span:nth-child(2){width:110px;inset-inline-start:64%;top:53%;animation-delay:-7s}
[data-scene-motif="prism"] .category-scene-motif span:nth-child(3){width:270px;inset-inline-start:33%;top:28%;opacity:.5;animation-delay:-14s}
[data-scene-motif="runes"] .category-scene-orbit{rotate:25deg;opacity:.16;animation-duration:75s}
[data-scene-motif="runes"] .category-scene-motif span{width:210px;aspect-ratio:1;border:1px solid currentColor;rotate:45deg;top:15%;inset-inline-start:30%;animation:category-prism 30s ease-in-out infinite alternate}
[data-scene-motif="runes"] .category-scene-motif span:nth-child(2){width:310px;inset-inline-start:21%;top:5%;opacity:.45;animation-delay:-10s}
[data-scene-motif="aurora"] .category-scene-light{background:radial-gradient(ellipse at 35% 45%,color-mix(in srgb,var(--scene-accent) 15%,transparent),transparent 55%),radial-gradient(ellipse at 74% 25%,#a6a5dc1a,transparent 50%)}
[data-scene-motif="aurora"] .category-scene-motif span{width:100%;height:130px;border:1px solid currentColor;border-radius:50%;rotate:-27deg;top:28%;animation:category-wind 15s ease-in-out infinite alternate}
[data-scene-motif="aurora"] .category-scene-motif span:nth-child(2){top:34%;rotate:18deg;opacity:.6;animation-delay:-7s}
[data-scene-motif="ember"] .category-scene-sparks i{width:2px;height:5px;border-radius:1px;animation-duration:5s}
[data-scene-motif="ember"] .category-scene-light{background:radial-gradient(ellipse at 48% 77%,color-mix(in srgb,var(--scene-accent) 18%,transparent),transparent 56%)}
[data-scene-motif="nocturne"] .category-scene-word{opacity:.45;-webkit-text-stroke-width:.7px}
[data-scene-motif="nocturne"] .category-scene-light{background:radial-gradient(ellipse at 55% 30%,color-mix(in srgb,var(--scene-accent) 14%,transparent),transparent 55%);animation-duration:12s}
[data-scene-motif="nocturne"] .category-scene-motif span:first-child{width:310px;aspect-ratio:1;border:1px solid currentColor;border-radius:50%;top:3%;inset-inline-start:24%;box-shadow:18px 2px 0 -17px currentColor;opacity:.6}
[data-scene-motif="pixels"] .category-scene-motif span{width:90px;aspect-ratio:1;border:1px solid currentColor;top:15%;inset-inline-start:12%;rotate:15deg;animation:category-pixel 9s steps(6,end) infinite alternate}
[data-scene-motif="pixels"] .category-scene-motif span:nth-child(2){width:48px;inset-inline-start:73%;top:61%;animation-delay:-4s}
[data-scene-motif="pixels"] .category-scene-motif span:nth-child(3){width:150px;inset-inline-start:45%;top:33%;opacity:.5;animation-delay:-6s}
[data-scene-motif="petals"] .category-scene-sparks i{width:5px;height:9px;border-radius:80% 0 80% 0;rotate:30deg;animation-duration:13s}
[data-scene-motif="petals"] .category-scene-light{background:radial-gradient(ellipse at 40% 35%,color-mix(in srgb,var(--scene-accent) 17%,transparent),transparent 53%)}
[data-scene-motif="tide"] .category-scene-motif span{width:125%;height:110px;border-top:1px solid currentColor;border-radius:50%;top:54%;inset-inline-start:-10%;rotate:-7deg;animation:category-wind 10s ease-in-out infinite alternate}
[data-scene-motif="tide"] .category-scene-motif span:nth-child(2){top:64%;animation-delay:-5s;opacity:.6}
[data-scene-motif="tide"] .category-scene-motif span:nth-child(3){top:72%;animation-delay:-8s;opacity:.3}
[data-scene-motif="signal"] .category-scene-orbit{animation-direction:reverse;animation-duration:38s;opacity:.14}
[data-scene-motif="precision"] .category-scene-orbit{animation:none;rotate:18deg;opacity:.17}
[data-scene-motif="precision"] .category-scene-motif span:first-child{inset:18%;border-inline:1px solid currentColor;opacity:.5}
@keyframes category-drift{0%,100%{transform:translate(-4px,0) rotate(-.15deg)}50%{transform:translate(5px,-5px) rotate(.2deg)}}
@keyframes category-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes category-sway{0%,100%{transform:translateX(-3px) rotate(-.6deg)}50%{transform:translateX(4px) rotate(.6deg)}}
@keyframes category-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.012)}}
@keyframes category-hover{0%,100%{transform:translateY(3px) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}
@keyframes category-bank{0%,100%{transform:translate(-5px,2px) rotate(-2deg)}50%{transform:translate(6px,-7px) rotate(2deg)}}
@keyframes category-scan{from{translate:0 -28%}to{translate:0 28%}}
@keyframes category-streak{0%,100%{translate:-20px 10px;opacity:.25}50%{translate:20px -10px;opacity:.8}}
@keyframes category-wind{from{translate:-14px 5px;rotate:-9deg}to{translate:14px -7px;rotate:-17deg}}
@keyframes category-prism{from{rotate:28deg;translate:0 4px}to{rotate:42deg;translate:5px -5px}}
@keyframes category-pixel{from{translate:-3px 6px;rotate:9deg}to{translate:5px -6px;rotate:20deg}}
@media(max-width:700px){
  .game-category-scene:is([data-scene-framing="object"],[data-scene-framing="creature"],[data-scene-framing="fullbody"]) .category-scene-subject{inset:0 -5px 25px}
  .category-scene-motif{inset:2% -18px 2%}
}
@media(prefers-reduced-motion:reduce){.game-category-scene *{animation:none!important}}

html[data-design-preview] .game-hero[data-category-style="cutout"] .game-hero-visual{display:none!important}
