/*
 * Schneider Games: Nacht der Lichterstadt, Leitungen in den Farben aus
 * Glowline (src/ui/theme.ts). Fürs Handy gebaut, am PC breiter.
 */

@font-face { font-family: Unbounded; font-weight: 500; font-display: swap; src: url(fonts/unbounded-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Unbounded; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Kalam; font-weight: 400; font-display: swap; src: url(fonts/kalam-latin-400-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #070A14;
  --card: #10172B;
  --card-hi: #162039;
  --edge: rgba(160, 185, 235, 0.13);
  --edge-hi: rgba(160, 185, 235, 0.26);
  --ink: #F3F6FB;
  --muted: #A3AEC3;
  --dim: #6F7B92;
  --r: #FF6B57;
  --b: #4FA3FF;
  --g: #46D17C;
  --y: #FFC23D;
  --y-deep: #C98A06;
  --warm: #FFE3A1;
  --video: #11151B;

  --display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Kalam', 'Segoe Print', cursive;
  --wrap: 74rem;
  --gutter: 16px;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font: 400 1.0625rem/1.55 var(--body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(50rem 32rem at 100% 0%, rgba(79, 163, 255, 0.16), transparent 70%),
    radial-gradient(44rem 30rem at 0% 8%, rgba(255, 107, 87, 0.11), transparent 70%),
    radial-gradient(60rem 40rem at 50% 100%, rgba(255, 194, 61, 0.07), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--warm); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.4em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 6.4vw, 3.1rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 34rem; text-wrap: balance; }
.hl { color: var(--y); text-shadow: 0 0 24px rgba(255, 194, 61, 0.4); }
.hand { font-family: var(--hand); color: var(--y); font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.3em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }

/* Kopf und Fuß */

.site-header { position: relative; z-index: 3; padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 0.95rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 9px 12px; border-radius: 12px; }
.nav a:hover { background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current='page'] { color: var(--y); }

.site-footer { margin-top: 32px; padding: 28px 0 40px; border-top: 1px solid var(--edge); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer small { color: var(--dim); font-size: 0.92rem; }

/* Knöpfe: dick wie im Spiel */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font: 600 1.05rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-play {
  color: #1D1400; background: linear-gradient(#FFD666, #FFB61C);
  box-shadow: 0 5px 0 var(--y-deep), 0 14px 34px -8px rgba(255, 194, 61, 0.6);
  font: 700 1.15rem/1 var(--display); letter-spacing: -0.01em;
}
.btn-play:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--y-deep), 0 6px 20px -8px rgba(255, 194, 61, 0.6); }
.btn-play small { display: block; font: 600 0.78rem/1 var(--body); letter-spacing: 0.02em; opacity: 0.72; margin-bottom: 5px; }
.btn-play > span { text-align: left; }
.btn-big { min-height: 66px; padding: 0 30px 0 24px; border-radius: 20px; }
.btn-big svg { width: 26px; height: 26px; }
.btn-sm { min-height: 42px; padding: 0 16px; border-radius: 13px; font-size: 0.92rem; box-shadow: 0 4px 0 var(--y-deep), 0 8px 20px -8px rgba(255, 194, 61, 0.6); }
.btn-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--y-deep); }
.btn-tile { background: rgba(255, 255, 255, 0.06); color: var(--ink); border-color: var(--edge-hi); }
.btn-tile:hover { background: rgba(255, 255, 255, 0.1); }

/* Leitung unter dem Namen: Strom fließt von der Batterie zur Lampe */

.title-wire { width: min(100%, 25rem); height: auto; overflow: visible; margin: 0 auto; }
.title-wire .dim { stroke: var(--y); stroke-opacity: 0.18; }
.title-wire .live { stroke: var(--y); }
.title-wire .halo { stroke: var(--y); stroke-opacity: 0.3; }
.title-wire .bat { fill: var(--y); }
.title-wire .bolt { fill: #2A1C00; }
.title-wire .lamp { fill: var(--warm); }
.title-wire .glow { fill: var(--y); opacity: 0.35; }
.title-wire .rays { stroke: var(--y); }
.title-wire .glow, .title-wire .rays { transform-origin: 386px 22px; transform-box: view-box; }

/* Spielseite */

.hero { position: relative; isolation: isolate; padding: 0 0 36px; }
.hero::before {
  content: ''; position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none;
  background: url(img/tile.svg) center top / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'media' 'cta'; justify-items: center; text-align: center; gap: 18px; }
.hero-title { grid-area: title; width: 100%; }
.hero-media { grid-area: media; }
.hero-cta { grid-area: cta; width: 100%; display: grid; justify-items: center; }

.logo { font-size: clamp(2.9rem, 16vw, 4.4rem); letter-spacing: -0.035em; line-height: 0.95; margin: 4px 0 6px; text-shadow: 0 0 40px rgba(255, 227, 161, 0.25); }
.tagline { font: 500 clamp(1.1rem, 4.8vw, 1.75rem)/1.25 var(--display); letter-spacing: -0.015em; margin: 6px 0 0; }
.tagline em { font-style: normal; color: var(--y); text-shadow: 0 0 20px rgba(255, 194, 61, 0.5); }

.hero-media { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; width: 100%; }
.screen {
  --a: 0deg;
  position: relative; z-index: 1;
  width: clamp(250px, calc((100svh - 340px) * 0.8), 400px); max-width: 100%;
  padding: 3px; border-radius: 30px;
  background: conic-gradient(from var(--a), var(--r), var(--y), var(--g), var(--b), var(--r));
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.9);
}
.screen::before {
  content: ''; position: absolute; inset: 6%; z-index: -1; border-radius: inherit;
  background: inherit; filter: blur(34px); opacity: 0.55;
}
.screen video { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 27px; background: var(--video); object-fit: cover; cursor: pointer; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@media (prefers-reduced-motion: no-preference) {
  .screen { animation: spin 8s linear infinite; }
}
@keyframes spin { to { --a: 360deg; } }

.peek { display: none; }

.sound { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: rgba(5, 8, 15, 0.78); color: #fff; font: 600 0.9rem/1 var(--body); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sound[hidden] { display: none; }
.sound svg { width: 20px; height: 20px; }
.sound .on, .sound[aria-pressed='true'] .off { display: none; }
.sound[aria-pressed='true'] .on { display: inline; }

.hero-cta .btn-play { width: min(100%, 22rem); margin-top: 6px; }
.soon { margin: 14px 0 0; font-size: 0.92rem; color: var(--dim); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 6px; height: 11px; margin: -3px 2px 0; border: solid var(--g); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Abschnitte */

.section { padding: clamp(44px, 9vw, 104px) 0; }
.section-head { text-align: center; margin: 0 auto 28px; max-width: 44rem; }
.section-head h2 { margin-bottom: 0.25em; }
.section-head .lead { margin: 0 auto; }
.eyebrow { font: 500 0.82rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-align: center; margin: 0 0 18px; }

/* So geht's: drei Kacheln wie im Spiel */

.how { padding-top: 24px; }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.step {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 20px 8px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge);
}
.step::before { content: ''; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, var(--c), transparent); opacity: 0.22; pointer-events: none; }
.step-b { --c: var(--b); } .step-g { --c: var(--g); } .step-y { --c: var(--y); }
.step p { margin: 0; color: var(--muted); line-height: 1.25; font-size: 0.95rem; }
.step strong { display: block; font: 700 1rem/1.2 var(--display); color: var(--ink); margin-bottom: 2px; }
.icon { position: relative; width: 64px; height: 64px; overflow: visible; }
.icon .t { fill: #1B2644; stroke: #2E3D63; stroke-width: 2; }
.icon .w { fill: none; stroke-width: 7; stroke-linecap: round; }
.icon .a { fill: none; stroke: var(--warm); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.c-r { stroke: var(--r); } .c-b { stroke: var(--b); } .c-g { stroke: var(--g); } .c-y { stroke: var(--y); }
.f-r { fill: var(--r); } .f-y { fill: var(--y); }
.icon .wh { fill: #fff; }
.icon .turn, .icon .halo { transform-origin: 32px 32px; transform-box: view-box; }
.icon .halo { transform-origin: 47px 32px; }
@media (prefers-reduced-motion: no-preference) {
  .icon .turn { animation: turn 4s cubic-bezier(0.5, 0, 0.2, 1.3) infinite; }
  .icon .sl { animation: swapL 3.6s ease-in-out infinite; }
  .icon .sr { animation: swapR 3.6s ease-in-out infinite; }
  .icon .halo { animation: pulse 2s ease-in-out infinite; }
}
@keyframes turn { 0%, 18% { transform: rotate(0); } 25%, 43% { transform: rotate(90deg); } 50%, 68% { transform: rotate(180deg); } 75%, 93% { transform: rotate(270deg); } 100% { transform: rotate(360deg); } }
@keyframes swapL { 0%, 30% { transform: none; } 40% { transform: translate(15px, -7px); } 50%, 80% { transform: translate(31px, 0); } 90% { transform: translate(15px, -7px); } 100% { transform: none; } }
@keyframes swapR { 0%, 30% { transform: none; } 40% { transform: translate(-15px, 7px); } 50%, 80% { transform: translate(-31px, 0); } 90% { transform: translate(-15px, 7px); } 100% { transform: none; } }
@keyframes pulse { 50% { transform: scale(1.35); opacity: 0.15; } }

/* Level: Screenshots */

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px var(--gutter) 20px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots { align-items: start; }
.shots figure { margin: 0; align-content: start; scroll-snap-align: center; display: grid; justify-items: center; gap: 14px; }
.shots img { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #ECEFF3; box-shadow: 0 0 0 1px var(--edge-hi), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.chip { display: inline-block; padding: 7px 13px; border-radius: 999px; font: 500 0.85rem/1 var(--display); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.chip-b { --c: var(--b); } .chip-g { --c: var(--g); } .chip-y { --c: var(--y); } .chip-r { --c: var(--r); }
.swipe { display: block; text-align: center; color: var(--dim); font-size: 0.9rem; margin-top: 4px; }

/* Stadt: geht beim Hinsehen an */

.city-pic { position: relative; margin: 0 auto; max-width: 60rem; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--edge-hi), 0 30px 80px -30px rgba(255, 194, 61, 0.45); background: var(--video); }
.city-pic img { width: 100%; aspect-ratio: 1080 / 580; object-fit: cover; }
.js .city-pic img { transition: filter 1.8s ease 0.2s; }
.js .city-pic:not(.on) img { filter: brightness(0.32) saturate(0.2); }

/* Schluss: drei Sterne */

.final { position: relative; text-align: center; padding-bottom: clamp(64px, 10vw, 120px); }
.final::before { content: ''; position: absolute; inset: 10% 0 0; z-index: -1; background: radial-gradient(ellipse 50% 60% at 50% 45%, rgba(255, 194, 61, 0.14), transparent 70%); pointer-events: none; }
.final h2 { margin-bottom: 0.25em; }
.final .lead { margin: 0 auto; }
.final .buttons { justify-content: center; margin-top: 28px; }
.stars { display: flex; justify-content: center; align-items: end; gap: 8px; margin-bottom: 20px; }
.stars svg { width: 58px; height: 58px; fill: var(--y); filter: drop-shadow(0 0 14px rgba(255, 194, 61, 0.6)); }
.stars svg:nth-child(2) { width: 74px; height: 74px; margin-bottom: 10px; }
.js .stars:not(.on) svg { fill: #26314F; filter: none; transform: scale(0.85); }
.js .stars svg { transition: fill 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.25s ease; }
.js .stars svg:nth-child(2) { transition-delay: 0.3s; }
.js .stars svg:nth-child(3) { transition-delay: 0.6s; }

/* Leiste unten (nur Handy): erscheint, wenn kein Knopf zu sehen ist */

.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 12px; border-radius: 20px;
  background: rgba(16, 23, 43, 0.9); border: 1px solid var(--edge-hi);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(150%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.dock.show { transform: none; visibility: visible; transition: transform 0.28s ease; }
.dock img { width: 40px; height: 40px; flex: none; }
.dock span { flex: 1; min-width: 0; line-height: 1.2; }
.dock b { display: block; font: 700 1rem/1.1 var(--display); }
.dock small { color: var(--muted); font-size: 0.82rem; }

/* Startseite */

.home-hero { padding: clamp(28px, 7vw, 88px) 0 8px; text-align: center; }
.home-hero .lead { margin: 0 auto; }
.home-hero h1 { font-size: clamp(2.3rem, 9vw, 5rem); letter-spacing: -0.035em; margin-bottom: 0.2em; }
.wire { width: 100%; max-width: 760px; height: auto; margin: 28px auto 0; overflow: visible; }
.wire .dim { stroke: var(--y); stroke-opacity: 0.16; }
.wire .live { stroke: var(--y); stroke-dasharray: 1; stroke-dashoffset: 0; }
.wire .glow { stroke: var(--y); stroke-opacity: 0.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wire .battery { fill: var(--y); }
.wire .bolt { fill: #2A1C00; }
.wire .socket { fill: var(--dim); }
.wire .bulb { fill: var(--warm); }
.wire .halo { fill: var(--y); opacity: 0.35; }
.wire .rays { stroke: var(--y); }
.wire .halo, .wire .rays { transform-origin: 714px 40px; transform-box: view-box; }

@media (prefers-reduced-motion: no-preference) {
  .wire .live, .wire .glow, .title-wire .live, .title-wire .halo { animation: flow 1.8s cubic-bezier(0.5, 0, 0.3, 1) 0.3s both; }
  .wire .halo, .wire .rays, .title-wire .glow, .title-wire .rays { animation: lampOn 0.5s ease-out 2s both; }
  .wire .bulb, .title-wire .lamp { animation: bulbOn 0.5s ease-out 2s both; }
}
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lampOn { from { opacity: 0; transform: scale(0.5); } }
@keyframes bulbOn { from { fill: #3A4460; } }
.title-wire .live, .title-wire .halo { stroke-dasharray: 1; }

.game-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 8px;
  padding: 28px 20px 150px; border-radius: 30px;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #1B2A4C, var(--card) 70%);
  border: 1px solid var(--edge-hi);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.game-card .emblem { width: 100%; max-width: 250px; }
.game-card h2, .game-card h3 { font-size: clamp(2.4rem, 9vw, 4rem); margin-bottom: 0.15em; }
.game-card .tagline { color: var(--y); margin-bottom: 0.7em; font-size: clamp(1.1rem, 2.2vw, 1.45rem); }
.game-card p { color: var(--muted); max-width: 30rem; }
.game-card .buttons { justify-content: center; margin-top: 8px; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 120px; width: 100%; object-fit: cover; object-position: center bottom; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .game-card .emblem { animation: breathe 5s ease-in-out infinite; }
}
@keyframes breathe { 50% { filter: drop-shadow(0 0 30px rgba(255, 227, 161, 0.3)); } }

/* Rechtstexte */

.legal { padding: 12px 0 clamp(40px, 6vw, 72px); }
.legal article { max-width: 46rem; margin: 0 auto; background: var(--card); border: 1px solid var(--edge); border-radius: 24px; padding: clamp(22px, 5vw, 56px); overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal h1, .legal h2 { overflow-wrap: normal; hyphens: manual; }
.legal p, .legal li { color: #D3DAE6; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal address { font-style: normal; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); margin: 0 0 1.5em; }
.legal hr { border: 0; border-top: 1px dashed var(--edge-hi); margin: 3em 0; }

/* 404 */

.notfound { position: relative; isolation: isolate; min-height: calc(100svh - 72px); display: grid; place-items: center; text-align: center; padding: 40px 0 180px; overflow: hidden; }
.notfound .buttons { justify-content: center; }

/* Breiter */

@media (min-width: 700px) {
  .steps { gap: 16px; }
  .step { padding: 28px 14px 24px; }
  .icon { width: 80px; height: 80px; }
  .shots { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; overflow: visible; margin: 0; padding: 10px 0 0; }
  .shots figure:nth-child(even) { margin-top: 48px; }
  .shots img { transition: transform 0.25s ease; }
  .shots figure:hover img { transform: translateY(-6px) rotate(-1.5deg); }
  .swipe { display: none; }
  .game-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); text-align: left; justify-items: start; gap: 48px; padding: 56px 56px 170px; align-items: center; }
  .game-card .emblem { max-width: 360px; justify-self: center; }
  .game-card .buttons { justify-content: flex-start; }
}

@media (min-width: 960px) {
  .site-header { padding: 22px 0; }
  .hero { padding: 8px 0 24px; }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'title media' 'cta media';
    grid-template-rows: auto 1fr;
    text-align: left; justify-items: start; column-gap: 40px; row-gap: 0;
    align-items: center;
  }
  .hero-title { align-self: end; }
  .hero-cta { align-self: start; justify-items: start; padding-top: 30px; }
  .logo { font-size: clamp(4.4rem, 8.4vw, 7.2rem); }
  .title-wire { margin: 6px 0 4px; width: min(100%, 31rem); }
  .tagline { font-size: clamp(1.5rem, 2.4vw, 2rem); }
  .facts { justify-content: flex-start; }
  .hero-media { justify-self: center; width: 600px; max-width: 100%; height: 580px; }
  .screen { width: 400px; }
  .peek {
    display: block; position: absolute; top: 50%; width: 220px; aspect-ratio: 9 / 16; border-radius: 22px;
    background: #ECEFF3; box-shadow: 0 0 0 1px var(--edge-hi), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    filter: brightness(0.7) saturate(0.85);
  }
  .peek-l { left: 0; transform: translateY(-44%) rotate(-10deg); }
  .peek-r { right: 0; transform: translateY(-56%) rotate(9deg); }
  .dock { display: none; }
}

.icon .bolt-d { fill: #2A1C00; }
.icon .lamp-d { fill: var(--warm); }
@media (max-width: 959px) { .has-dock .site-footer { padding-bottom: 104px; } }
@media (max-width: 420px) { .brand span { font-size: 0.85rem; } }
@media (max-width: 480px) { .site-header:has(.nav a + a) .brand span { display: none; } }
