/* css/components/game-dev.css — Game Development showcase page (includes/game-dev-template.php).
   Built on the site tokens (obsidian, sapphire, emerald) with two accents for game art: violet for
   animation and amber for VFX. Every animation is decorative and stops under prefers-reduced-motion. */

.gd { --gd-violet: #8B5CF6; --gd-violet-soft: #a78bfa; --gd-amber: #FBBF24; --gd-red: #ef4444; }
.gd-head { max-width: 46rem; margin-bottom: var(--space-10, 2.5rem); }
.gd-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); max-width: none; flex-wrap: wrap; }
.gd-head--row .gd-head__body { max-width: 30rem; margin: 0; }
.gd .gd-head__body { color: var(--color-text-muted); line-height: 1.7; margin-top: var(--space-4); }

/* ---------- Hero ---------- */
.gd-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: radial-gradient(70rem 30rem at 85% 0%, rgb(139 92 246 / 0.22), transparent 60%), radial-gradient(50rem 26rem at 0% 100%, rgb(37 99 235 / 0.25), transparent 60%), var(--color-obsidian-900); }
.gd-hero__world { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.gd-hero__scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 4px), linear-gradient(90deg, var(--color-obsidian-900) 0%, rgb(10 13 20 / 0.82) 40%, rgb(10 13 20 / 0.2) 100%); }
.gd-hero__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); } }
.gd-hero__title { font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; margin: var(--space-3) 0 1.25rem; text-wrap: balance;
  background: linear-gradient(100deg, #fff 30%, #c4b5fd 62%, #93c5fd 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gd-hero__lede { color: var(--color-slate-200); font-size: 1.1rem; line-height: 1.7; max-width: 40rem; }
.gd-hero__platforms { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-8) 0 var(--space-6); padding: 0; }
.gd-hero__platforms li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.82rem; color: var(--color-slate-200);
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(148 163 184 / 0.2); }
.gd-hero__platforms svg { width: 1.05rem; height: 1.05rem; color: var(--color-sapphire-400); }

/* HUD panel */
.gd-hud { position: relative; border-radius: 18px; padding: var(--space-6); background: linear-gradient(160deg, rgb(23 28 39 / 0.92), rgb(10 13 20 / 0.92)); border: 1px solid rgb(139 92 246 / 0.35);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.03) inset, 0 30px 80px -30px rgb(139 92 246 / 0.55); backdrop-filter: blur(6px); }
.gd-hud::before, .gd-hud::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--color-emerald-400); }
.gd-hud::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.gd-hud::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.gd-hud__bar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--color-emerald-400); letter-spacing: 0.08em; text-transform: uppercase; }
.gd-hud__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-emerald-400); box-shadow: 0 0 10px var(--color-emerald-400); animation: gd-blink 1.6s ease-in-out infinite; }
.gd-hud__fps { margin-left: auto; color: var(--color-slate-400); }
.gd-hud__label { margin: 1.25rem 0 var(--space-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-slate-400); }
.gd-hud__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.gd-hud__slot a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--space-3); row-gap: 0.4rem; align-items: center; padding: 0.7rem 0.85rem;
  border-radius: 12px; text-decoration: none; color: inherit; background: rgb(255 255 255 / 0.03); border: 1px solid rgb(148 163 184 / 0.14); transition: border-color .2s, transform .2s, background .2s; }
.gd-hud__slot a:hover, .gd-hud__slot a:focus-visible { border-color: var(--slot, var(--color-sapphire-400)); background: rgb(255 255 255 / 0.06); transform: translateX(4px); }
.gd-hud__slot--game { --slot: var(--color-sapphire-400); }
.gd-hud__slot--anim { --slot: var(--gd-violet-soft); }
.gd-hud__slot--vfx { --slot: var(--gd-amber); }
.gd-hud__ico { grid-row: 1 / 3; width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--slot) 18%, transparent); }
.gd-hud__ico span { width: 14px; height: 14px; background: var(--slot); }
.gd-hud__slot--game .gd-hud__ico span { border-radius: 3px; animation: gd-hop 1.4s ease-in-out infinite; }
.gd-hud__slot--anim .gd-hud__ico span { border-radius: 50%; animation: gd-bounce 1.1s cubic-bezier(.3,0,.7,1) infinite; }
.gd-hud__slot--vfx .gd-hud__ico span { border-radius: 50%; box-shadow: 0 0 0 0 var(--slot); animation: gd-pulse 1.6s ease-out infinite; }
.gd-hud__txt { display: flex; flex-direction: column; min-width: 0; }
.gd-hud__txt strong { font-size: 0.95rem; color: #fff; }
.gd-hud__txt span { font-size: 0.8rem; color: var(--color-slate-400); }
.gd-hud__xp { height: 5px; border-radius: 3px; background: rgb(148 163 184 / 0.15); overflow: hidden; }
.gd-hud__xp span { display: block; height: 100%; width: var(--xp); background: linear-gradient(90deg, var(--slot), color-mix(in srgb, var(--slot) 40%, #fff)); transform-origin: left; animation: gd-fill 1.6s cubic-bezier(.2,.8,.2,1) both .4s; }
.gd-hud__insight { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed rgb(148 163 184 / 0.25); }
.gd-hud__value { font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif); font-weight: 800; font-size: 2.2rem; line-height: 1; color: #fff; margin: 0; }
.gd-hud__ilabel { margin: 0.35rem 0 0; color: var(--color-slate-200); font-size: 0.92rem; }
.gd-hud__source { margin: 0.5rem 0 0; font-size: 0.68rem; color: var(--color-slate-400); }

/* ---------- Disciplines ---------- */
.gd-disc__row { display: grid; gap: var(--space-4); }
@media (min-width: 1024px) {
  .gd-disc__row { display: flex; gap: var(--space-4); min-height: 34rem; }
  .gd-disc__panel { flex: 1 1 0; transition: flex-grow .55s cubic-bezier(.2,.8,.2,1); }
  .gd-disc__row:hover .gd-disc__panel, .gd-disc__row:focus-within .gd-disc__panel { flex-grow: 0.75; }
  .gd-disc__row .gd-disc__panel:hover, .gd-disc__row .gd-disc__panel:focus-within, .gd-disc__row .gd-disc__panel:focus { flex-grow: 1.6; }
}
.gd-disc__panel { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); outline-offset: 4px; }
.gd-disc__panel--game { --accent: var(--color-sapphire-400); }
.gd-disc__panel--anim { --accent: var(--gd-violet-soft); }
.gd-disc__panel--vfx { --accent: var(--gd-amber); }
.gd-disc__panel:hover, .gd-disc__panel:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.gd-disc__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--color-border-subtle); }
.gd-disc__hud { position: absolute; top: .85rem; left: 1rem; z-index: 1; padding: .25rem .6rem; border-radius: 6px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #E2E8F0; background: rgb(10 13 20 / .55); backdrop-filter: blur(3px); pointer-events: none; }
.gd-disc__art svg { width: 100%; height: 100%; display: block; }
@media (min-width: 1024px) { .gd-disc__art { aspect-ratio: auto; height: 15rem; } .gd-disc__art svg { object-fit: cover; } }
.gd-disc__body { padding: var(--space-6); }
.gd-disc__num { margin: 0; font-size: 0.75rem; color: var(--accent); letter-spacing: 0.12em; }
.gd-disc__title { margin: 0.3rem 0 0.2rem; font-size: 1.45rem; font-weight: 800; color: #fff; }
.gd-disc__tag { margin: 0 0 var(--space-4); color: var(--color-slate-400); }
.gd-disc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.gd-disc__list li { position: relative; padding-left: 1.2rem; color: var(--color-slate-200); font-size: 0.93rem; line-height: 1.5; }
.gd-disc__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }

/* Discipline art motion */
.gd-par--far { animation: gd-slide 18s linear infinite; }
.gd-par--near { animation: gd-slide 10s linear infinite; }
.gd-hero-sprite { animation: gd-jump 1.8s cubic-bezier(.3,.0,.4,1) infinite; transform-box: fill-box; transform-origin: bottom; }
.gd-coins circle { animation: gd-coin 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gd-coins circle:nth-child(2) { animation-delay: .15s; } .gd-coins circle:nth-child(3) { animation-delay: .3s; }
.gd-enemy { animation: gd-patrol 4s ease-in-out infinite alternate; }
.gd-ball { transform: translate(100px, 95px); animation: gd-arc 2.4s infinite; }
.gd-ball__body { animation: gd-squash 2.4s linear infinite; transform-box: fill-box; transform-origin: center bottom; }
.gd-ball__shadow { transform: translateX(100px); animation: gd-shadow 2.4s linear infinite; }
.gd-timeline__head { animation: gd-scrub 2.4s linear infinite; }
.gd-burst { animation: gd-burst 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.gd-ring { animation: gd-ring 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.gd-rays line { stroke-dasharray: 32; animation: gd-rays 2.2s ease-out infinite; }
.gd-orb { animation: gd-orb 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gd-sparks circle { animation: gd-spark 2.6s ease-in-out infinite; }
.gd-sparks circle:nth-child(2n) { animation-delay: .7s; } .gd-sparks circle:nth-child(3n) { animation-delay: 1.3s; }

/* ---------- Pipeline character ---------- */
.gd-pipe__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-pipe__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gd-pipe__steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: 0.35rem; }
.gd-pipe__steps button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: var(--space-3); padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.gd-pipe__steps button:hover { background: rgb(255 255 255 / 0.03); }
.gd-pipe__steps button:focus-visible { outline: 2px solid var(--color-sapphire-400); outline-offset: 2px; }
.gd-pipe__steps button[aria-selected="true"] { background: rgb(59 130 246 / 0.08); border-color: rgb(59 130 246 / 0.35); }
.gd-pipe__n { grid-row: 1 / 3; align-self: start; font-size: 0.78rem; color: var(--color-slate-400); padding-top: 0.15rem; }
.gd-pipe__steps button[aria-selected="true"] .gd-pipe__n { color: var(--color-emerald-400); }
.gd-pipe__t { font-weight: 700; color: #fff; }
.gd-pipe__d { display: none; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.55; margin-top: 0.2rem; }
.gd-pipe__steps button[aria-selected="true"] .gd-pipe__d { display: block; }
.gd-pipe__stage { position: relative; }
.gd-model { position: relative; margin: 0; aspect-ratio: 22 / 26; max-width: 30rem; margin-inline: auto; border-radius: 24px; overflow: hidden; transition: background .5s;
  background: radial-gradient(circle at 50% 40%, rgb(59 130 246 / 0.16), transparent 65%), var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); }
.gd-model[data-stage="0"] { background: radial-gradient(circle at 50% 40%, rgb(148 163 184 / 0.1), transparent 65%), #141821; }
.gd-model svg { width: 100%; height: 100%; display: block; }
.gd-model__cap { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-emerald-400); background: rgb(10 13 20 / 0.8); border: 1px solid rgb(52 211 153 / 0.35); }
/* Layers: hidden by default, revealed per stage */
.gd-model .l-sketch, .gd-model .l-rig, .gd-model .l-vfx, .gd-model .l-engine, .gd-model .gd-char { transition: opacity .5s ease; }
.gd-model .l-sketch, .gd-model .l-rig, .gd-model .l-vfx, .gd-model .l-engine { opacity: 0; }
.gd-model[data-stage="0"] .l-sketch { opacity: 1; }
.gd-model[data-stage="0"] .gd-char { opacity: 0; }
/* Character parts: wireframe by default (Modeling) */
.gd-part polygon, .gd-visor, .gd-core, .gd-antenna circle { fill: transparent; stroke: #60a5fa; stroke-width: 1.4; stroke-linejoin: round; transition: fill .5s, stroke .5s; }
.gd-part line, .gd-antenna line { stroke: #60a5fa; stroke-width: 1; opacity: .7; transition: opacity .5s; }
/* Texturing onward: filled */
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-part line { opacity: 0; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-torso polygon,
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-arm-l polygon,
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-arm-r polygon { fill: url(#gdBody); stroke: #1e3a8a; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-leg polygon { fill: #334155; stroke: #1E293B; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-head polygon { fill: url(#gdHead); stroke: #64748b; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-visor { fill: #0A0D14; stroke: #3B82F6; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-core { fill: url(#gdCore); stroke: #34D399; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-antenna circle { fill: #34D399; stroke: #10B981; }
.gd-model:not([data-stage="0"]):not([data-stage="1"]) .gd-antenna line { stroke: #94A3B8; opacity: 1; }
/* Rigging: bones on, body ghosted */
.gd-model[data-stage="3"] .l-rig { opacity: 1; }
.gd-model[data-stage="3"] .gd-char { opacity: .35; }
/* Animation onward: motion */
.gd-model[data-stage="4"] .gd-char__bob, .gd-model[data-stage="5"] .gd-char__bob, .gd-model[data-stage="6"] .gd-char__bob { animation: gd-bob 1.6s ease-in-out infinite; }
.gd-model[data-stage="4"] .gd-arm-r__swing, .gd-model[data-stage="5"] .gd-arm-r__swing, .gd-model[data-stage="6"] .gd-arm-r__swing { transform-origin: 158px 114px; animation: gd-wave 1.6s ease-in-out infinite; }
.gd-model[data-stage="4"] .gd-visor, .gd-model[data-stage="5"] .gd-visor, .gd-model[data-stage="6"] .gd-visor { animation: gd-visor 3.2s ease-in-out infinite; }
/* VFX & lighting onward */
.gd-model[data-stage="5"] .l-vfx, .gd-model[data-stage="6"] .l-vfx { opacity: 1; }
.gd-model[data-stage="5"] .gd-core, .gd-model[data-stage="6"] .gd-core { filter: drop-shadow(0 0 8px #34D399); }
.gd-model__ring { animation: gd-ringy 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.gd-model__sparks circle { animation: gd-float 3s ease-in-out infinite; }
.gd-model__sparks circle:nth-child(2n) { animation-delay: .8s; } .gd-model__sparks circle:nth-child(3n) { animation-delay: 1.6s; }
/* In engine */
.gd-model[data-stage="6"] .l-engine { opacity: 1; }
.gd-model[data-stage="6"] { background: radial-gradient(circle at 50% 40%, rgb(16 185 129 / 0.14), transparent 65%), linear-gradient(180deg, #0f1524, #0a0d14); }

/* ---------- Platforms & engine orbit ---------- */
.gd-plat__inner { display: grid; gap: var(--space-12, 3rem); align-items: center; }
@media (min-width: 1024px) { .gd-plat__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gd-plat__list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.gd-plat__list li { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem 0.55rem 0.55rem; border-radius: 999px; background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); color: var(--color-slate-200); font-weight: 600; }
.gd-plat__ico { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: rgb(59 130 246 / 0.14); color: var(--color-sapphire-400); }
.gd-plat__ico svg { width: 1.15rem; height: 1.15rem; }
.gd-orbit { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.gd-orbit__ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgb(148 163 184 / 0.3); }
.gd-orbit__ring::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgb(139 92 246 / 0.25); }
.gd-orbit__core { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 35% 30%, #6d28d9, #1e1b4b 70%); box-shadow: 0 0 60px rgb(139 92 246 / 0.5), inset 0 0 20px rgb(255 255 255 / 0.15); animation: gd-glow 3s ease-in-out infinite; }
.gd-orbit__list { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; animation: gd-spin 40s linear infinite; }
/* Each engine sits on the outer ring; the list spins and each label counter-spins to stay upright. */
.gd-orbit__list li { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(-38cqw); }
.gd-orbit__list li span { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: rotate(calc(-360deg / var(--n) * var(--i))) translate(-50%, -50%); white-space: nowrap; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: #fff; background: var(--color-obsidian-800); border: 1px solid rgb(59 130 246 / 0.4); box-shadow: 0 8px 24px -10px rgb(59 130 246 / 0.6); animation: gd-counter 40s linear infinite; }

/* ---------- Genre slider ---------- */
.gd-slider__controls { display: flex; align-items: center; gap: var(--space-3); }
.gd-slider__count { margin: 0 var(--space-2) 0 0; font-size: 0.85rem; color: var(--color-slate-400); letter-spacing: 0.08em; }
.gd-slider__count span { color: #fff; font-weight: 600; }
.gd-slider__btn { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); transition: background .2s, border-color .2s, transform .2s, opacity .2s; }
.gd-slider__btn svg { width: 1.25rem; height: 1.25rem; }
.gd-slider__btn:hover:not(:disabled) { border-color: var(--gd-accent); background: color-mix(in srgb, var(--gd-accent) 18%, var(--color-obsidian-800)); transform: scale(1.06); }
.gd-slider__btn:focus-visible { outline: 2px solid var(--gd-accent); outline-offset: 3px; }
.gd-slider__btn:disabled { opacity: .35; cursor: default; }
.gd-slider { position: relative; }
.gd-slider::before, .gd-slider::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(1rem, 4vw, 4rem); z-index: 2; pointer-events: none; }
.gd-slider::before { left: 0; background: linear-gradient(90deg, var(--color-obsidian-800), transparent); transition: opacity .3s; }
.gd-slider::after { right: 0; background: linear-gradient(-90deg, var(--color-obsidian-800), transparent); transition: opacity .3s; }
.gd-slider.at-start::before, .gd-slider.at-end::after { opacity: 0; }
.gd-slider__track { list-style: none; display: flex; gap: var(--space-4); margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: var(--space-3) max(1.5rem, calc((100% - 1440px) / 2)) var(--space-6); scroll-padding-inline: max(1.5rem, calc((100% - 1440px) / 2)); cursor: grab; outline: none; }
.gd-slider__track::-webkit-scrollbar { display: none; }
.gd-slider__track:focus-visible { box-shadow: inset 0 0 0 2px var(--gd-accent); border-radius: 12px; }
.gd-slider.is-dragging .gd-slider__track { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gd-slider.is-dragging .gd-slider__track * { user-select: none; pointer-events: none; }
.gd-slider__progress { position: relative; height: 3px; border-radius: 3px; background: rgb(148 163 184 / .16); overflow: hidden; margin-top: var(--space-2); }
.gd-slider__progress span { position: absolute; inset: 0 auto 0 0; width: var(--w, 25%); left: var(--x, 0%); border-radius: 3px; background: linear-gradient(90deg, var(--gd-accent), #f472b6); transition: left .25s ease, width .25s ease; }

.gd-card { scroll-snap-align: start; width: min(19rem, 78vw); flex: none; border-radius: 22px; overflow: hidden; background: var(--color-obsidian-900); border: 1px solid var(--color-border-subtle); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.gd-card:hover { transform: translateY(-8px); border-color: var(--card-glow, var(--gd-accent)); box-shadow: 0 30px 60px -28px var(--card-glow, rgb(59 130 246 / .6)); }
.gd-card__art { position: relative; height: 11.5rem; overflow: hidden; }
.gd-card__art svg { width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gd-card:hover .gd-card__art svg { transform: scale(1.06); }
.gd-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(10 13 20 / .55)); pointer-events: none; }
.gd-card__ico { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; width: 2.9rem; height: 2.9rem; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgb(10 13 20 / 0.5); border: 1px solid rgb(255 255 255 / 0.25); backdrop-filter: blur(4px); }
.gd-card__ico svg { width: 1.45rem; height: 1.45rem; }
.gd-card:hover .gd-card__ico { animation: gd-hop 0.8s ease-in-out; }
.gd-card__body { padding: 1.25rem 1.35rem 1.5rem; }
.gd-card__body h3 { margin: 0 0 0.4rem; font-size: 1.12rem; color: #fff; }
.gd-card__body p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.55; }
.gd-card--action { --card-glow: rgb(234 88 12 / .7); }
.gd-card--rpg { --card-glow: rgb(124 58 237 / .7); }
.gd-card--strategy { --card-glow: rgb(5 150 105 / .7); }
.gd-card--casual { --card-glow: rgb(244 114 182 / .7); }
.gd-card--puzzle { --card-glow: rgb(34 211 238 / .6); }
.gd-card--racing { --card-glow: rgb(220 38 38 / .65); }
.gd-card--multi { --card-glow: rgb(37 99 235 / .7); }
.gd-card--serious { --card-glow: rgb(132 204 22 / .6); }
/* Genre scene motion */
.ga-sun { animation: ga-pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ga-embers circle, .ga-stars circle, .ga-spark path { animation: ga-twinkle 2.4s ease-in-out infinite; }
.ga-embers circle:nth-child(2n), .ga-stars circle:nth-child(2n) { animation-delay: .8s; }
.ga-embers circle { animation-name: ga-rise; }
.ga-glint { animation: ga-twinkle 1.8s ease-in-out infinite; }
.ga-windows rect { animation: ga-flicker 3s ease-in-out infinite; }
.ga-windows rect:nth-child(2) { animation-delay: 1.1s; }
.ga-unit { animation: ga-bob 2.2s ease-in-out infinite; }
.ga-unit--b { animation-delay: 1.1s; }
.ga-bubbles circle { animation: ga-rise 5s ease-in-out infinite; }
.ga-bubbles circle:nth-child(2) { animation-delay: 1.2s; } .ga-bubbles circle:nth-child(3) { animation-delay: 2.4s; }
.ga-blob { animation: ga-squish 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.ga-candy circle { animation: ga-bob 2.6s ease-in-out infinite; }
.ga-candy circle:nth-child(2) { animation-delay: 1.3s; }
.ga-fall { animation: ga-fall 3.2s cubic-bezier(.5,0,.5,1) infinite; }
.ga-dash { animation: ga-dash .6s linear infinite; }
.ga-speed { animation: ga-speed .8s linear infinite; }
.ga-car { animation: ga-shake .25s ease-in-out infinite alternate; }
.ga-links path { stroke-dasharray: 6 6; animation: ga-dash 1.2s linear infinite; }
.ga-nodes circle { animation: ga-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ga-chat { animation: ga-bob 2.4s ease-in-out infinite; }
.ga-bars rect { animation: ga-grow 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.ga-bars rect:nth-child(2) { animation-delay: .2s; } .ga-bars rect:nth-child(3) { animation-delay: .4s; } .ga-bars rect:nth-child(4) { animation-delay: .6s; }
.ga-trend { stroke-dasharray: 160; animation: ga-draw 2.8s ease-in-out infinite; }
@keyframes ga-pulse { 50% { transform: scale(1.06); } }
@keyframes ga-twinkle { 50% { opacity: .25; } }
@keyframes ga-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes ga-flicker { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes ga-bob { 50% { transform: translateY(-5px); } }
@keyframes ga-squish { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.06, .94); } }
@keyframes ga-fall { 0% { transform: translateY(-40px); } 70%, 100% { transform: translateY(64px); } }
@keyframes ga-dash { to { stroke-dashoffset: -22; } }
@keyframes ga-speed { from { transform: translateX(0); opacity: .7; } to { transform: translateX(-30px); opacity: 0; } }
@keyframes ga-shake { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes ga-grow { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
@keyframes ga-draw { 0% { stroke-dashoffset: 160; } 60%, 100% { stroke-dashoffset: 0; } }

/* ---------- VFX lab ---------- */
.gd-lab__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-lab__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.gd-lab__fx { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.gd-lab__fx button { font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; padding: 0.6rem 1.05rem; border-radius: 999px; color: var(--color-slate-200); background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); transition: all .2s; }
.gd-lab__fx button:hover { border-color: var(--gd-amber); color: #fff; }
.gd-lab__fx button[aria-checked="true"] { background: linear-gradient(135deg, #f59e0b, #ef4444); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -12px rgb(239 68 68 / .8); }
.gd-lab__fx button:focus-visible { outline: 2px solid var(--gd-amber); outline-offset: 2px; }
.gd-lab__screen { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 120%, #1e1b4b, #05060a 70%); border: 1px solid rgb(251 191 36 / 0.25); box-shadow: inset 0 0 80px rgb(0 0 0 / 0.6); }
.gd-lab__screen canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }

/* ---------- Engagement "mode select" ---------- */
.gd-modes__ui { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .gd-modes__ui { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; } }
.gd-modes__list { display: grid; gap: 0.4rem; }
.gd-modes__list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: var(--space-3); padding: 0.9rem 1rem; border-radius: 12px; font-weight: 600; color: var(--color-slate-200); border: 1px solid var(--color-border-subtle); background: var(--color-obsidian-800); transition: all .2s; }
.gd-modes__list button:hover { border-color: rgb(139 92 246 / .5); color: #fff; }
.gd-modes__list button:focus-visible { outline: 2px solid var(--gd-violet-soft); outline-offset: 2px; }
.gd-modes__list button[aria-selected="true"] { color: #fff; border-color: var(--gd-violet); background: linear-gradient(90deg, rgb(139 92 246 / .22), rgb(139 92 246 / .04)); }
.gd-modes__key { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--color-obsidian-900); background: var(--color-slate-400); }
.gd-modes__list button[aria-selected="true"] .gd-modes__key { background: var(--gd-violet-soft); box-shadow: 0 0 14px var(--gd-violet); }
.gd-modes__panel { height: 100%; padding: var(--space-8); border-radius: 20px; background: radial-gradient(30rem 16rem at 100% 0%, rgb(139 92 246 / .2), transparent 70%), var(--color-obsidian-800); border: 1px solid rgb(139 92 246 / .3); animation: gd-in .35s ease both; }
.gd-modes__label { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gd-violet-soft); }
.gd-modes__panel h3 { margin: 0.5rem 0 0.8rem; font-size: 1.6rem; color: #fff; }
.gd-modes__panel p { color: var(--color-slate-200); line-height: 1.7; }
.gd-modes__best { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
.gd-modes__best span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-slate-400); margin-bottom: 0.3rem; }
.gd-beyond { margin-top: var(--space-12, 3rem); }
.gd-beyond__title { font-size: 1.25rem; color: #fff; margin: 0 0 1.25rem; }
.gd-beyond__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .gd-beyond__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gd-beyond__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gd-beyond__list li { display: flex; gap: var(--space-3); padding-top: var(--space-4); border-top: 2px solid rgb(52 211 153 / .35); }
.gd-beyond__ico { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; color: var(--color-emerald-400); background: rgb(16 185 129 / .12); }
.gd-beyond__ico svg { width: 1.25rem; height: 1.25rem; }
.gd-beyond__list strong { color: #fff; }
.gd-beyond__list p { margin: 0.3rem 0 0; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Process: level path ---------- */
.gd-levels__path { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-6); }
.gd-levels__path::before { content: ""; position: absolute; left: 1.4rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: rgb(148 163 184 / .18); }
.gd-levels__path::after { content: ""; position: absolute; left: 1.4rem; top: 0.5rem; width: 3px; height: calc(100% - 1rem); border-radius: 3px; background: linear-gradient(180deg, var(--color-sapphire-400), var(--gd-violet), var(--color-emerald-400)); transform-origin: top; transform: scaleY(var(--progress, 1)); transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.gd-level { position: relative; padding-left: 4rem; }
.gd-level__badge { position: absolute; left: 0; top: 0; width: 2.9rem; height: 2.9rem; border-radius: 12px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: #fff; z-index: 1;
  background: var(--color-obsidian-800); border: 2px solid var(--color-sapphire-400); transform: rotate(45deg); }
.gd-level__badge { transform: none; }
.gd-level h3 { margin: 0.15rem 0 0.3rem; color: #fff; font-size: 1.1rem; }
.gd-level p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.55; }
.gd-level:last-child .gd-level__badge { border-color: var(--color-emerald-400); box-shadow: 0 0 16px rgb(52 211 153 / .45); }
@media (min-width: 1024px) {
  .gd-levels__path { grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 1.25rem; padding-top: 4rem; }
  /* The line runs from the first badge centre to the last: (steps - 1) column pitches. */
  .gd-levels__path::before { left: 1.45rem; right: auto; top: 1.4rem; bottom: auto; width: calc((100% + 1.25rem) * (var(--steps) - 1) / var(--steps)); height: 3px; }
  .gd-levels__path::after { left: 1.45rem; top: 1.4rem; width: calc((100% + 1.25rem) * (var(--steps) - 1) / var(--steps)); height: 3px; transform-origin: left; transform: scaleX(var(--progress, 1)); background: linear-gradient(90deg, var(--color-sapphire-400), var(--gd-violet), var(--color-emerald-400)); }
  .gd-level { padding-left: 0; }
  .gd-level__badge { top: -4rem; }
  .gd-level:nth-child(odd) .gd-level__badge { border-color: var(--color-sapphire-400); }
  .gd-level:nth-child(even) .gd-level__badge { border-color: var(--gd-violet-soft); }
}

/* ---------- Toolchain ---------- */
.gd-tools__grid { display: grid; gap: var(--space-6) var(--space-8); margin: 0; }
@media (min-width: 720px) { .gd-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gd-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gd-tools__group { padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
.gd-tools__group dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-sapphire-400); margin-bottom: var(--space-3); }
.gd-tools__group dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.gd-tools__group dd span { padding: 0.35rem 0.75rem; border-radius: 8px; font-size: 0.86rem; color: var(--color-slate-200); background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); transition: border-color .2s, color .2s, transform .2s; }
.gd-tools__group dd span:hover { border-color: var(--gd-violet-soft); color: #fff; transform: translateY(-2px); }

.gd-cta { background: radial-gradient(50rem 20rem at 80% 0%, rgb(139 92 246 / .25), transparent 60%), var(--color-obsidian-800); }

/* ---------- Color binding: the accent follows the section in view ---------- */
@property --gd-accent { syntax: '<color>'; inherits: true; initial-value: #60a5fa; }
.gd { --gd-accent: #60a5fa; transition: --gd-accent .8s ease; }
.gd .eyebrow { color: var(--gd-accent); transition: color .6s ease; }
.gd .sv-localnav { position: sticky; }
.gd .sv-localnav::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--gd-progress, 0) * 100%); background: linear-gradient(90deg, var(--gd-accent), #f472b6); box-shadow: 0 0 12px var(--gd-accent); }
.gd .sv-localnav a.is-active { color: #fff; }

/* ---------- Parallax world ---------- */
.gd-world { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(34rem, 82vh, 46rem); display: flex; align-items: center; background: #070616; }
.gd-world__layers { position: absolute; inset: -6% -4%; z-index: -1; }
.gd-world__layer, .gd-world__mist { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; transform: translate3d(var(--px, 0), var(--py, 0), 0); }
.gd-world__mist { pointer-events: none; }
.gd-world__mist--1 { background: linear-gradient(180deg, transparent 52%, rgb(124 58 237 / .32) 64%, transparent 76%); }
.gd-world__mist--2 { background: linear-gradient(180deg, transparent 66%, rgb(56 189 248 / .14) 76%, transparent 88%); }
.gd-world::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(7 6 22 / .88) 0%, rgb(7 6 22 / .55) 38%, transparent 68%), linear-gradient(0deg, var(--color-obsidian-900), transparent 22%), linear-gradient(180deg, var(--color-obsidian-900), transparent 14%); }
.gd-world__content { position: relative; padding-block: var(--space-16, 4rem); }
.gd-world__card { max-width: 32rem; }
.gd-world__card h2 { margin-top: var(--space-2); }
.gd-world__card > p { color: var(--color-slate-200); line-height: 1.75; font-size: 1.05rem; }
.gd-world__points { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); }
.gd-world__points li { padding-left: 1.4rem; position: relative; color: #fff; font-weight: 600; font-size: 0.95rem; }
.gd-world__points li::before { content: ""; position: absolute; left: 0; top: .45em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gd-accent); box-shadow: 0 0 10px var(--gd-accent); }
.gw-stars circle:nth-child(3n) { animation: ga-twinkle 3s ease-in-out infinite; }
.gw-stars circle:nth-child(5n) { animation: ga-twinkle 4.2s ease-in-out infinite .8s; }
.gw-windows rect { animation: ga-flicker 3.4s ease-in-out infinite; }
.gw-cape { animation: gw-cape 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: top right; }
.gw-flies circle { animation: gw-fly 6s ease-in-out infinite; }
.gw-flies circle:nth-child(2n) { animation-delay: -2s; animation-duration: 7s; }
.gw-planet { animation: ga-bob 9s ease-in-out infinite; }
@keyframes gw-cape { 50% { transform: rotate(-6deg) skewX(-4deg); } }
@keyframes gw-fly { 0%, 100% { transform: translate(0, 0); opacity: .3; } 50% { transform: translate(18px, -16px); opacity: 1; } }

/* ---------- Real-time asset viewer ---------- */
.gd-viewer__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-viewer__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.gd-viewer__screen { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid rgb(96 165 250 / .3);
  background: radial-gradient(circle at 50% 45%, #13203a, #070a12 70%); box-shadow: inset 0 0 60px rgb(0 0 0 / .6), 0 30px 70px -40px rgb(59 130 246 / .8); }
.gd-viewer__screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(148 163 184 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(148 163 184 / .06) 1px, transparent 1px); background-size: 32px 32px; }
.gd-viewer__screen canvas { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.gd-viewer__screen canvas:active { cursor: grabbing; }
.gd-viewer__hud { position: absolute; top: .9rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-slate-400); pointer-events: none; }
.gd-viewer__gizmo { position: absolute; right: 1rem; bottom: 1rem; width: 3.2rem; height: 3.2rem; pointer-events: none; font: 700 .62rem/1 var(--font-mono, monospace); }
.gd-viewer__gizmo span { position: absolute; }
.gd-viewer__gizmo .x { right: 0; bottom: .9rem; color: #f87171; } .gd-viewer__gizmo .x::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.6rem; height: 2px; background: #f87171; margin-right: 3px; }
.gd-viewer__gizmo .y { left: 1.1rem; top: 0; color: #34d399; } .gd-viewer__gizmo .y::before { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 1.5rem; background: #34d399; margin-top: 3px; }
.gd-viewer__gizmo .z { left: 0; bottom: 0; color: #60a5fa; }
.gd-viewer__modes { display: inline-flex; gap: 4px; margin-top: var(--space-4); padding: 4px; border-radius: 999px; background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); }
.gd-viewer__modes button { font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: .5rem 1rem; border-radius: 999px; border: 0; color: var(--color-slate-400); background: transparent; transition: all .2s; }
.gd-viewer__modes button:hover { color: #fff; }
.gd-viewer__modes button[aria-checked="true"] { color: #0a0d14; background: var(--gd-accent); }
.gd-viewer__modes button:focus-visible { outline: 2px solid var(--gd-accent); outline-offset: 2px; }
.gd-viewer__points { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: .6rem; }
.gd-viewer__points li { display: flex; gap: .7rem; align-items: baseline; color: var(--color-slate-200); }
.gd-viewer__points li::before { content: ""; flex: none; width: .55rem; height: .55rem; transform: rotate(45deg) translateY(-1px); background: var(--gd-accent); }

/* ---------- Art styles (color bound to the selected style) ---------- */
@property --st-a { syntax: '<color>'; inherits: true; initial-value: #3b0f5c; }
@property --st-b { syntax: '<color>'; inherits: true; initial-value: #d9468f; }
@property --st-c { syntax: '<color>'; inherits: true; initial-value: #ffd166; }
.gd-styles { transition: --st-a .7s ease, --st-b .7s ease, --st-c .7s ease;
  background: radial-gradient(60rem 30rem at 85% 30%, color-mix(in srgb, var(--st-b) 34%, transparent), transparent 65%), radial-gradient(40rem 24rem at 0% 100%, color-mix(in srgb, var(--st-c) 14%, transparent), transparent 70%), var(--color-obsidian-900); }
.gd-styles .eyebrow { color: var(--st-c); }
.gd-styles__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-styles__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.gd-styles__list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-6); }
.gd-styles__list button { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; padding: .45rem .95rem .45rem .45rem; border-radius: 999px; color: var(--color-slate-200); background: rgb(255 255 255 / .04); border: 1px solid rgb(148 163 184 / .2); transition: all .2s; }
.gd-styles__list button:hover { color: #fff; border-color: var(--st-c); }
.gd-styles__list button[aria-checked="true"] { color: #fff; border-color: var(--st-c); background: color-mix(in srgb, var(--st-b) 30%, transparent); box-shadow: 0 10px 30px -14px var(--st-b); }
.gd-styles__list button:focus-visible { outline: 2px solid var(--st-c); outline-offset: 2px; }
.gd-styles__swatch { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid rgb(255 255 255 / .3); }
.gd-styles__desc { margin-top: var(--space-6); padding-left: var(--space-4); border-left: 3px solid var(--st-c); color: var(--color-slate-200); min-height: 3.2em; }
.gd-styles__scene { position: relative; margin: 0; aspect-ratio: 400 / 260; border-radius: 24px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--st-c) 40%, transparent); box-shadow: 0 40px 90px -40px var(--st-b); transition: box-shadow .7s, border-color .7s; }
.gd-styles__scene svg { width: 100%; height: 100%; display: block; }
.gd-styles__tag { position: absolute; top: 1rem; left: 1rem; padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); }
/* Style variants of the same scene */
.gd-styles__scene .st-poly, .gd-styles__scene .st-px, .gd-styles__scene .st-pixgrid { display: none; }
.st--lowpoly .st-smooth, .st--pixel .st-smooth { display: none; }
.st--lowpoly .st-poly { display: inline; }
.st--pixel .st-px, .st--pixel .st-pixgrid { display: inline; }
.st--pixel svg { shape-rendering: crispEdges; }
.st--pixel .st-sun { transform: scale(.9); transform-box: fill-box; transform-origin: center; }
.st--cel .st-art path, .st--cel .st-art circle { stroke: #0b0d14; stroke-width: 3.5; paint-order: stroke; }
.st--painted .st-art { filter: url(#stPaint); }
.st--realistic .st-sun { filter: url(#stSoft); }
.st--realistic .st-far { opacity: .35; }
.st--stylized .st-sun { animation: ga-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gd-styles__scene .st-hero { animation: ga-bob 2.6s ease-in-out infinite; }

/* ---------- Full service index ---------- */
@property --ix { syntax: '<color>'; inherits: true; initial-value: #60a5fa; }
.gd-index { transition: --ix .5s ease; }
.gd-index__grid { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .gd-index__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); align-items: start; } }
.gd-index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border-subtle); }
.gd-index__row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; padding: 1rem .5rem; border-bottom: 1px solid var(--color-border-subtle); transition: background .25s, padding .25s; }
.gd-index__n { font-size: .78rem; color: var(--color-slate-400); transition: color .25s; }
.gd-index__t { font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.55rem); color: var(--color-slate-200); letter-spacing: -0.01em; transition: color .25s, transform .25s; }
.gd-index__d { grid-column: 2 / 3; display: none; margin-top: .35rem; color: var(--color-text-muted); font-size: .92rem; line-height: 1.55; }
.gd-index__go { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; color: var(--color-slate-400); border: 1px solid var(--color-border-subtle); transition: all .25s; }
.gd-index__go svg { width: 1rem; height: 1rem; }
.gd-index__row:hover, .gd-index__row.is-on, .gd-index__row:focus-visible { background: linear-gradient(90deg, color-mix(in srgb, var(--row) 14%, transparent), transparent 70%); padding-left: 1rem; }
.gd-index__row:hover .gd-index__t, .gd-index__row.is-on .gd-index__t, .gd-index__row:focus-visible .gd-index__t { color: #fff; }
.gd-index__row:hover .gd-index__n, .gd-index__row.is-on .gd-index__n { color: var(--row); }
.gd-index__row.is-on .gd-index__go { color: #0a0d14; background: var(--row); border-color: var(--row); transform: rotate(-45deg); }
.gd-index__row:focus-visible { outline: 2px solid var(--row); outline-offset: -2px; }
.gd-index__preview { display: none; position: sticky; top: 9rem; overflow: hidden; border-radius: 24px; padding: var(--space-8); min-height: 22rem; background: var(--color-obsidian-900); border: 1px solid color-mix(in srgb, var(--ix) 40%, transparent); box-shadow: 0 40px 80px -40px var(--ix); transition: border-color .5s, box-shadow .5s; }
@media (min-width: 1024px) { .gd-index__preview { display: block; } }
@media (max-width: 1023px) { .gd-index__row.is-on .gd-index__d { display: block; } }
.gd-index__glow { position: absolute; inset: -30% -30% auto auto; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ix) 55%, transparent), transparent 65%); filter: blur(10px); animation: gd-drift 9s ease-in-out infinite alternate; }
.gd-index__icons { position: relative; width: 6rem; height: 6rem; margin-bottom: var(--space-8); }
.gd-index__ico { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 22px; color: var(--ix); background: color-mix(in srgb, var(--ix) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ix) 40%, transparent); opacity: 0; transform: scale(.7) rotate(-10deg); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.gd-index__ico.is-on { opacity: 1; transform: none; }
.gd-index__ico svg { width: 3rem; height: 3rem; }
.gd-index__pn { position: relative; margin: 0; font-size: .75rem; letter-spacing: .12em; color: var(--ix); }
.gd-index__pt { position: relative; margin: .5rem 0 .75rem; font-size: 1.8rem; color: #fff; }
.gd-index__pd { position: relative; margin: 0; color: var(--color-slate-200); line-height: 1.7; }

/* ---------- VFX breakdown compare ---------- */
.gd-compare { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid rgb(251 146 60 / .35); box-shadow: 0 50px 100px -50px rgb(249 115 22 / .8); user-select: none; }
.gd-compare svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gd-compare__plate { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.gd-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px); background: #fff; box-shadow: 0 0 20px rgb(255 255 255 / .6); pointer-events: none; }
.gd-compare__handle svg { position: absolute; top: 50%; left: 50%; width: 2.8rem; height: 2.8rem; padding: .6rem; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: #0a0d14; box-shadow: 0 10px 30px rgb(0 0 0 / .4); right: auto; bottom: auto; }
.gd-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.gd-compare__range:focus-visible + .gd-compare__handle, .gd-compare:focus-within .gd-compare__handle svg { outline: 3px solid var(--gd-accent); outline-offset: 2px; }
.gd-compare__label { position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .5); backdrop-filter: blur(4px); pointer-events: none; }
.gd-compare__label--l { left: 1rem; } .gd-compare__label--r { right: 1rem; }
.bd-actor path, .bd-actor circle { stroke-linejoin: round; }
.bd-portal { animation: ga-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bd-ring { stroke-dasharray: 20 14; animation: gd-spin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.bd-tip { animation: ga-pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bd-beam { stroke-dasharray: 14 10; animation: ga-dash .8s linear infinite; }
.bd-sparks circle { animation: ga-rise 3s ease-in-out infinite; }
.bd-sparks circle:nth-child(2n) { animation-delay: 1s; } .bd-sparks circle:nth-child(3n) { animation-delay: 2s; }
.gd-bd__passes { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gd-bd__passes li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--color-slate-200); background: var(--color-obsidian-800); border: 1px solid var(--color-border-subtle); }
.gd-bd__passes span { font-size: .7rem; color: #fb923c; }

/* ---------- Performance capture ---------- */
.gd-cap__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-cap__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.gd-cap__stage { margin: 0; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1b1240, #090616 70%); border: 1px solid rgb(192 132 252 / .3); }
.gd-cap__stage svg { width: 100%; height: auto; display: block; }
.cap-body { animation: cap-bob .5s ease-in-out infinite; }
.cap-arm, .cap-fore, .cap-leg, .cap-shin { transform-box: view-box; }
.cap-arm { transform-origin: 300px 178px; }
.cap-fore { transform-origin: 300px 226px; }
.cap-leg { transform-origin: 300px 246px; }
.cap-shin { transform-origin: 300px 292px; }
.cap-arm--l { animation: cap-swing 1s ease-in-out infinite; }
.cap-arm--r { animation: cap-swing 1s ease-in-out infinite reverse; }
.cap-fore { transform: rotate(-60deg); }
.cap-leg--l { animation: cap-thigh 1s ease-in-out infinite; }
.cap-leg--r { animation: cap-thigh 1s ease-in-out infinite -.5s; }
.cap-shin--l { animation: cap-knee 1s ease-in-out infinite; }
.cap-shin--r { animation: cap-knee 1s ease-in-out infinite -.5s; }
.cap-arm line, .cap-leg line { stroke: #e9d5ff; }
.cap-rec { animation: ga-twinkle 1.2s ease-in-out infinite; }
.cap-line { stroke-dasharray: 220; animation: ga-draw 3s ease-in-out infinite; }
.cap-line--b { animation-delay: .6s; }
@keyframes cap-bob { 50% { transform: translateY(-5px); } }
@keyframes cap-swing { 0%, 100% { transform: rotate(38deg); } 50% { transform: rotate(-38deg); } }
@keyframes cap-thigh { 0%, 100% { transform: rotate(-32deg); } 50% { transform: rotate(30deg); } }
@keyframes cap-knee { 0%, 100% { transform: rotate(10deg); } 25% { transform: rotate(60deg); } 50% { transform: rotate(4deg); } }

/* ---------- Cinematics strip ---------- */
.gd-cine__strip { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: frame; }
@media (min-width: 720px) { .gd-cine__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gd-cine__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gd-cine__frame { position: relative; }
@media (min-width: 1100px) { .gd-cine__frame:not(:last-child)::after { content: ""; position: absolute; top: 34%; right: calc(var(--space-4) * -1); width: var(--space-4); height: 2px; background: linear-gradient(90deg, #2dd4bf, transparent); } }
.gd-cine__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border-subtle); background: #000; }
.gd-cine__screen::before, .gd-cine__screen::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 1; }
.gd-cine__screen::before { top: 0; } .gd-cine__screen::after { bottom: 0; }
.gd-cine__screen svg { width: 100%; height: 100%; display: block; }
.gd-cine__label { display: flex; gap: .6rem; align-items: baseline; margin: .75rem 0 0; font-weight: 700; color: #fff; }
.gd-cine__label span { font-size: .72rem; color: #2dd4bf; }
.gd-cine__services { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gd-cine__services li { padding: .45rem .9rem; border-radius: 999px; font-size: .88rem; color: var(--color-slate-200); background: rgb(45 212 191 / .08); border: 1px solid rgb(45 212 191 / .3); }
/* One shot, four looks */
.cf-arrow { display: none; }
.cf--board .cf-bg { fill: #f1ede4; }
.cf--board .cf-stars { display: none; }
.cf--board .cf-planet, .cf--board .cf-mtn, .cf--board .cf-hull, .cf--board .cf-window { fill: none; stroke: #3f3f46; stroke-width: 1.3; stroke-linejoin: round; }
.cf--board .cf-glow { fill: none; stroke: #71717a; stroke-dasharray: 2 2; }
.cf--board .cf-arrow { display: inline; fill: none; stroke: #ef4444; stroke-width: 1.6; stroke-dasharray: 5 4; }
.cf--animatic .cf-bg { fill: #3f3f46; } .cf--animatic .cf-stars { display: none; }
.cf--animatic .cf-planet { fill: #71717a; } .cf--animatic .cf-mtn { fill: #27272a; } .cf--animatic .cf-hull { fill: #d4d4d8; } .cf--animatic .cf-window { fill: #52525b; } .cf--animatic .cf-glow { fill: #a1a1aa; opacity: .5; }
.cf--layout .cf-bg { fill: #1e293b; } .cf--layout .cf-stars { fill: #64748b; }
.cf--layout .cf-planet { fill: #475569; } .cf--layout .cf-mtn { fill: #0f172a; } .cf--layout .cf-hull { fill: #94a3b8; stroke: #e2e8f0; stroke-width: .8; } .cf--layout .cf-window { fill: #cbd5e1; } .cf--layout .cf-glow { fill: #e2e8f0; opacity: .35; }
.cf--final .cf-bg { fill: #0b1026; } .cf--final .cf-stars { fill: #fff; }
.cf--final .cf-planet { fill: #2dd4bf; filter: drop-shadow(0 0 10px #2dd4bf); } .cf--final .cf-mtn { fill: #04131a; } .cf--final .cf-hull { fill: #f8fafc; } .cf--final .cf-window { fill: #38bdf8; } .cf--final .cf-glow { fill: #fb923c; filter: drop-shadow(0 0 8px #fb923c); }
.cf--animatic .cf-ship, .cf--layout .cf-ship, .cf--final .cf-ship { animation: cf-fly 3.6s ease-in-out infinite; }
.cf--final .cf-glow { animation: ga-twinkle .4s ease-in-out infinite; }
.cf--final .cf-stars circle { animation: ga-twinkle 2.4s ease-in-out infinite; }
@keyframes cf-fly { 0% { transform: translate(-90px, 26px); } 50% { transform: translate(10px, -6px); } 100% { transform: translate(90px, -20px); } }

/* ---------- Sound ---------- */
.gd-sound__inner { display: grid; gap: var(--space-10, 2.5rem); align-items: center; }
@media (min-width: 1024px) { .gd-sound__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gd-sound__services { margin: var(--space-6) 0 0; display: grid; gap: var(--space-4) var(--space-6); }
@media (min-width: 600px) { .gd-sound__services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gd-sound__services div { padding-top: var(--space-3); border-top: 1px solid rgb(52 211 153 / .3); }
.gd-sound__services dt { font-weight: 700; color: #fff; }
.gd-sound__services dd { margin: .3rem 0 0; color: var(--color-text-muted); font-size: .9rem; line-height: 1.55; }
.gd-sound__deck { border-radius: 24px; padding: var(--space-6); background: linear-gradient(160deg, #0c1a16, #070a0d); border: 1px solid rgb(52 211 153 / .3); box-shadow: 0 40px 90px -45px rgb(16 185 129 / .8); }
.gd-sound__viz { width: 100%; height: 10rem; display: block; border-radius: 14px; background: #04100c; }
.gd-sound__pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: var(--space-4); }
.gd-sound__pad { position: relative; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; padding: 1.4rem .5rem 1rem; border-radius: 14px; color: #d1fae5; background: linear-gradient(180deg, #11261f, #0a1814); border: 1px solid rgb(52 211 153 / .25); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .35); transition: transform .08s, box-shadow .2s, border-color .2s; }
.gd-sound__pad:hover { border-color: #34d399; }
.gd-sound__pad:active, .gd-sound__pad.is-hit { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .35), 0 0 30px rgb(52 211 153 / .45); border-color: #6ee7b7; }
.gd-sound__pad:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }
.gd-sound__led { position: absolute; top: .55rem; left: 50%; width: .5rem; height: .5rem; margin-left: -.25rem; border-radius: 50%; background: #064e3b; transition: background .1s, box-shadow .1s; }
.gd-sound__pad.is-hit .gd-sound__led { background: #6ee7b7; box-shadow: 0 0 10px #34d399; }

/* ---------- Keyframes ---------- */
@keyframes gd-blink { 50% { opacity: .35; } }
@keyframes gd-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
@keyframes gd-bounce { 0%, 100% { transform: translateY(-7px) scale(1, 1); } 45% { transform: translateY(5px) scale(1.2, .8); } }
@keyframes gd-pulse { 0% { box-shadow: 0 0 0 0 rgb(251 191 36 / .7); } 100% { box-shadow: 0 0 0 12px rgb(251 191 36 / 0); } }
@keyframes gd-fill { from { transform: scaleX(0); } }
@keyframes gd-slide { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes gd-jump { 0%, 55%, 100% { transform: translate(0, 0) scale(1, 1); } 8% { transform: translate(6px, 0) scale(1.1, .9); } 28% { transform: translate(40px, -58px) scale(.95, 1.05); } 50% { transform: translate(70px, 0) scale(1.1, .9); } 75% { transform: translate(35px, 0); } }
@keyframes gd-coin { 50% { transform: scaleX(.2); } }
@keyframes gd-patrol { from { transform: translateX(0); } to { transform: translateX(-40px); } }
/* Two bounces along the dashed arc: ease out on the way up, ease in on the way down. */
@keyframes gd-arc {
  0% { transform: translate(30px, 168px); animation-timing-function: cubic-bezier(.2,.6,.4,1); }
  25% { transform: translate(100px, 95px); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  50% { transform: translate(170px, 168px); animation-timing-function: cubic-bezier(.2,.6,.4,1); }
  75% { transform: translate(220px, 120px); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  100% { transform: translate(270px, 168px); }
}
@keyframes gd-squash { 0%, 49%, 51%, 100% { transform: scale(1, 1); } 48% { transform: scale(1.25, .75); } 52% { transform: scale(.9, 1.1); } 98% { transform: scale(1.25, .75); } }
@keyframes gd-shadow { from { transform: translateX(30px); } to { transform: translateX(270px); } }
@keyframes gd-scrub { from { transform: translateX(0); } to { transform: translateX(290px); } }
@keyframes gd-burst { 0% { transform: scale(.1); opacity: 1; } 70% { opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes gd-ring { 0% { transform: scale(.4); opacity: 1; stroke-width: 4; } 100% { transform: scale(2.6); opacity: 0; stroke-width: .5; } }
@keyframes gd-rays { 0% { stroke-dashoffset: 32; opacity: 1; } 60% { opacity: 1; } 100% { stroke-dashoffset: -32; opacity: 0; } }
@keyframes gd-orb { 50% { transform: scale(1.15); } }
@keyframes gd-spark { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(-14px); opacity: 1; } }
@keyframes gd-bob { 50% { transform: translateY(-5px); } }
@keyframes gd-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-38deg); } 60% { transform: rotate(-18deg); } }
@keyframes gd-visor { 0%, 88%, 100% { opacity: 1; } 92% { opacity: .2; } }
@keyframes gd-ringy { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes gd-float { 50% { transform: translateY(-10px); opacity: .4; } }
@keyframes gd-glow { 50% { box-shadow: 0 0 90px rgb(139 92 246 / .75), inset 0 0 20px rgb(255 255 255 / .2); } }
@keyframes gd-spin { to { transform: rotate(360deg); } }
@keyframes gd-counter { to { rotate: -360deg; } }
@keyframes gd-drift { to { transform: translate(-30px, 20px) scale(1.1); } }
@keyframes gd-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .gd *, .gd *::before, .gd *::after { animation: none !important; transition: none !important; }
  .gd-ball { transform: translate(100px, 95px); }
  .gd-ball__shadow { transform: translateX(100px); }
}
