/* VindR Games: the site's one stylesheet. The colours, type and spacing come from the Design System
   (brand/README.md points to it). Dark only: the brand has no light theme. */

@font-face { font-family: "Grenze"; font-weight: 600; font-display: swap; src: url("../assets/fonts/grenze-600.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/alegreya-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("../assets/fonts/alegreya-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/alegreya-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../assets/fonts/fredoka-600.woff2") format("woff2"); }   /* Woolfall's headings */

:root {
  --bg-900: #0c0a10;
  --bg-800: #16121c;
  --stone: #221c2b;          /* the carved frame round the screenshots */
  --glass: rgba(22, 18, 28, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ink: #ece8f0;
  --ink-muted: #a79fb1;
  --name: #f4eef6;           /* the studio name over the banner, as in the banner renders */
  --magenta: #ec008c;
  --magenta-hi: #ff5cbf;
  --frost: #9fb4ff;
  --display: "Grenze", Georgia, serif;
  --body: "Alegreya Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --wide: 1180px;
  --glow: 0 0 24px rgba(236, 0, 140, 0.45);
  --lift: 0 18px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-900);
  color: var(--ink);
  font: 400 18px/29px var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--magenta-hi); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--frost); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
[id] { scroll-margin-top: 88px; }   /* clear of the fixed bar when a link jumps here */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: 10px 16px; background: var(--bg-800); color: var(--ink); border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */

/* the bar stays at the top while you scroll: see-through over the banner, glass once it lies over
   the page. The brand and the links share one baseline. */
.site-header {
  position: fixed; z-index: 5; inset: 0 0 auto 0;
  display: flex; align-items: baseline; gap: 12px 36px;
  padding: 22px var(--gutter) 16px;
  background: linear-gradient(rgba(12, 10, 16, 0.7), rgba(12, 10, 16, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}
.site-header.is-stuck {
  padding-block: 12px;
  background: rgba(12, 10, 16, 0.84);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-block; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  font: 600 24px/1 var(--display);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.brand svg { width: 30px; height: 30px; margin-right: 8px; vertical-align: -6px; }
.nav-links { display: flex; gap: 8px 28px; font-weight: 500; }
.nav-links a, .menu-panel a { color: var(--ink); text-decoration: none; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.nav-links a:hover, .menu-panel a:hover { color: var(--magenta-hi); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 6px; background: var(--glass); border: 1px solid var(--line);
  font-weight: 500;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 210px;
  display: flex; flex-direction: column; padding: 8px;
  background: rgba(22, 18, 28, 0.94); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift);
}
.menu-panel a { padding: 10px 12px; border-radius: 6px; }

/* ---------- hero: the living banner, the name and the sparks ---------- */

.hero { position: relative; isolation: isolate; }
.hero > picture img { width: 100%; }
/* on wide screens the banner takes at most about two thirds of the window; the crop takes grass off
   the bottom, never so much that the foot of the stone goes */
@media (min-width: 641px) {
  .hero > picture img { max-height: max(68vh, 32.9vw); object-fit: cover; object-position: 50% 0; }
}
.hero-name {
  position: absolute; z-index: 2; left: 0; right: 0; margin: 0;
  top: 2.25vw;                /* the letters span 9 to 20 % of the banner's height, as in the render */
  padding-left: 55%;
  display: flex; justify-content: center;
  font: 600 7.03vw/1 var(--display); letter-spacing: 0.01em;
  color: var(--name);
  text-shadow:
    0 0.035em 0.09em rgba(6, 2, 16, 0.75),
    0 0 0.16em rgba(236, 0, 140, 0.42),
    0 0 0.42em rgba(236, 0, 140, 0.22),
    0 0.04em 0.35em rgba(6, 4, 24, 0.5);
}
/* the living banner: a seamless loop over its own first frame, fading in once it plays */
.hero-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero.is-playing .hero-video { opacity: 1; }
.hero.is-playing .sparks { display: none; }        /* the video has the real ones */
.hero-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }

/* sparks torn off the rune by the wind; the box sits over the stone in each banner */
.sparks { position: absolute; left: 39%; top: 11.4vw; width: 11%; height: 16vw; }
.sparks span {
  position: absolute; height: 2px; width: 11px; border-radius: 2px;
  background: var(--magenta-hi); box-shadow: 0 0 6px rgba(236, 0, 140, 0.9);
  opacity: 0;
  animation: drift 6s linear infinite;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-24deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(15vw, -10vw) rotate(-24deg); opacity: 0; }
}
.sparks span:nth-child(1)  { left: 20%; top: 30%; width: 12px; animation-duration: 5.5s; animation-delay: 0s; }
.sparks span:nth-child(2)  { left: 45%; top: 46%; width: 9px;  animation-duration: 6.2s; animation-delay: -1.3s; }
.sparks span:nth-child(3)  { left: 10%; top: 62%; width: 14px; animation-duration: 5.0s; animation-delay: -2.6s; }
.sparks span:nth-child(4)  { left: 55%; top: 24%; width: 8px;  animation-duration: 6.8s; animation-delay: -3.4s; }
.sparks span:nth-child(5)  { left: 30%; top: 78%; width: 11px; animation-duration: 5.8s; animation-delay: -0.7s; }
.sparks span:nth-child(6)  { left: 62%; top: 52%; width: 10px; animation-duration: 6.4s; animation-delay: -4.1s; }
.sparks span:nth-child(7)  { left: 18%; top: 10%; width: 7px;  animation-duration: 7.0s; animation-delay: -2.0s; }
.sparks span:nth-child(8)  { left: 70%; top: 66%; width: 13px; animation-duration: 5.4s; animation-delay: -3.0s; }
.sparks span:nth-child(9)  { left: 40%; top: 90%; width: 9px;  animation-duration: 6.0s; animation-delay: -1.8s; }
.sparks span:nth-child(10) { left: 52%; top: 4%;  width: 8px;  animation-duration: 7.4s; animation-delay: -5.2s; }
.sparks span:nth-child(11) { left: 78%; top: 36%; width: 12px; animation-duration: 5.6s; animation-delay: -0.4s; }
.sparks span:nth-child(12) { left: 25%; top: 50%; width: 7px;  animation-duration: 6.6s; animation-delay: -4.6s; }
.sparks span:nth-child(13) { left: 88%; top: 74%; width: 10px; animation-duration: 5.2s; animation-delay: -2.2s; }
.sparks span:nth-child(14) { left: 66%; top: 18%; width: 11px; animation-duration: 6.9s; animation-delay: -3.8s; }
.sparks span:nth-child(15) { left: 75%; top: 86%; width: 8px;  animation-duration: 6.1s; animation-delay: -1.0s; }
.sparks span:nth-child(16) { left: 35%; top: 40%; width: 14px; animation-duration: 5.9s; animation-delay: -5.0s; }

/* ---------- the game card ---------- */

.game { position: relative; z-index: 3; margin-top: clamp(-160px, -9vw, -24px); padding-inline: var(--gutter); }
.game-card {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
  padding: clamp(20px, 3vw, 40px);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift);
}
.game-card h1 { flex: 1 1 280px; max-width: 420px; }
.game-card h1 img { width: 100%; }
.game-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pitch { font: 600 clamp(26px, 2.4vw, 32px)/1.2 var(--display); }
.muted { color: var(--ink-muted); }
.facts { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 6px; border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.btn:hover { border-color: var(--magenta-hi); color: var(--ink); }
.btn-primary { background: var(--magenta); border-color: var(--magenta); color: #ffffff; font-weight: 700; font-size: 19px; box-shadow: var(--glow); }
.btn-primary:hover { background: #ff1a9a; color: #ffffff; }

/* ---------- trailer ---------- */

.trailer { padding: 48px var(--gutter) 0; }
.trailer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 14px; line-height: 20px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.trailer .eyebrow { color: var(--frost); font-family: var(--body); }
.video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background: var(--bg-800);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
.video-play .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 2px solid var(--magenta); box-shadow: var(--glow);
  transition: transform 0.2s ease;
}
.video-play:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 36px; height: 36px; margin-left: 4px; }
.video-note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- rooms ---------- */

.rooms { padding-top: clamp(56px, 7vw, 104px); }
.room { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.room-backdrop {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.room-backdrop img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(22px) brightness(0.32) saturate(1.3); transform: scale(1.15); }
.room-row {
  position: relative; z-index: 1; max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px;
}
.room:nth-child(even) .room-row { flex-direction: row-reverse; }
.room-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.room-text .eyebrow { color: var(--magenta-hi); }
.room-text h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; }
.room-figure { flex: 1.4 1 420px; min-width: 0; position: relative; margin: 0; }
.room-figure::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(closest-side, var(--torch, rgba(236, 0, 140, 0.22)), transparent);
}
/* each screenshot is a link to the full-size image, which opens larger over the page (site.js) */
.room-figure .zoom { display: block; position: relative; rotate: var(--tilt, 1deg); border-radius: 6px; cursor: zoom-in; }
.room-figure img {
  width: 100%;
  border: 10px solid var(--stone); border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.zoom-icon {
  position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.zoom-icon svg { width: 20px; height: 20px; }
.zoom:hover .zoom-icon, .zoom:focus-visible .zoom-icon { border-color: var(--magenta-hi); background: rgba(236, 0, 140, 0.35); }
/* each room's torch colour and tilt (the magenta torch and a 1deg tilt are the default):
   1 desktop, 2 party, 3 dungeons (frost), 4 through their eyes, 5 gear (warm), 6 automation, 7 offline */
.room:nth-child(2) { --tilt: -1deg; }
.room:nth-child(3) { --torch: rgba(159, 180, 255, 0.18); --tilt: 0.8deg; }
.room:nth-child(4) { --tilt: -0.8deg; }
.room:nth-child(5) { --torch: rgba(242, 162, 58, 0.18); }
.room:nth-child(6) { --tilt: -1deg; }
.room:nth-child(7) { --torch: rgba(159, 180, 255, 0.16); --tilt: 0.8deg; }

/* the screenshots drift a little against the text as you scroll, where the browser can do it */
@supports (animation-timeline: view()) {
  .room-figure .zoom { animation: rise linear both; animation-timeline: view(); }
  @keyframes rise { from { transform: translateY(48px); } to { transform: translateY(-48px); } }
}

/* the screenshot viewer: one image over a dark backdrop; any click or Esc closes it */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px;
  border: 0; background: transparent; color: var(--ink); cursor: zoom-out;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; animation: fade-in 0.2s ease; }
.lightbox::backdrop { background: rgba(6, 4, 10, 0.9); }
.lightbox img {
  width: min(100%, calc((100vh - 120px) * 16 / 9)); width: min(100%, calc((100dvh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9; object-fit: contain;
  border-radius: 6px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7); background: var(--bg-800);
}
.lightbox-caption { max-width: 60ch; text-align: center; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
/* the press kit's screenshots offer the file too: the picture leaves room for the button */
.lightbox.has-download img { width: min(100%, calc((100vh - 180px) * 16 / 9)); width: min(100%, calc((100dvh - 180px) * 16 / 9)); }
.lightbox-download[hidden] { display: none; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong); color: var(--ink);
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--magenta-hi); }
.lightbox-close svg { width: 20px; height: 20px; }
/* a phone on its side: the picture takes the whole height, without the caption */
@media (max-height: 500px) {
  .lightbox-caption { display: none; }
  .lightbox img { width: min(100%, calc((100vh - 32px) * 16 / 9)); width: min(100%, calc((100dvh - 32px) * 16 / 9)); }
  .lightbox.has-download img { width: min(100%, calc((100vh - 92px) * 16 / 9)); width: min(100%, calc((100dvh - 92px) * 16 / 9)); }
}
html:has(.lightbox[open]) { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- the deepest room ---------- */

.end { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) var(--gutter) 56px; text-align: center; }
.end::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: min(720px, 90%); height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(236, 0, 140, 0.26), transparent);
}
.end .sparks { left: 47%; top: 6%; width: 6%; height: 26%; }
.end-inner { position: relative; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.end-inner svg { width: 72px; height: 72px; filter: drop-shadow(0 0 18px rgba(236, 0, 140, 0.6)); }
.end-inner h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; }
.end .actions { justify-content: center; }
.end .btn { min-height: 52px; }
.end .btn-primary { font-size: 20px; padding: 0 28px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 28px var(--gutter) 36px; }
.footer-inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  font-size: 16px; line-height: 24px; color: var(--ink-muted);
}
.about { display: flex; align-items: center; gap: 12px; }
.about img { width: 40px; height: 40px; border-radius: 999px; flex: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }

/* ---------- narrower screens: the menu folds into a button beside the name, top left ----------
   below 1360 px the four links would run up against the big name in the banner */

@media (max-width: 1359px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

/* ---------- phones ---------- */

@media (max-width: 640px) {
  .site-header { justify-content: space-between; }
  .menu-panel { left: auto; right: 0; }
  .hero-name { top: 17%; padding-left: 0; font-size: min(15vw, 60px); }
  .sparks { left: 50%; top: 60vw; width: 16%; height: 39vw; }
  .room:nth-child(even) .room-row { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { transition: none; }
  .sparks span, .room-figure .zoom, .lightbox[open] { animation: none !important; }
  .sparks { display: none; }
}

/* the 404 page: one room, in the middle of the screen */
.lost { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.lost h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; }

/* ---------- the press kit ---------- */

.nav-links a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--magenta-hi); }
.press-top { position: relative; overflow: hidden; padding: 136px var(--gutter) 64px; text-align: center; }
.press-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(6px) brightness(0.32) saturate(1.2); transform: scale(1.06); }
.press-top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg-900)); }
.press-top-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.press-logo { width: min(380px, 80vw); }
.press-top h1 { font-size: clamp(36px, 4vw, 44px); line-height: 1.1; }
.lead { font-size: 20px; line-height: 30px; color: var(--ink); }
.press-top .actions { justify-content: center; }

.press-body, .press-section { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.press-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-top: 24px; }
.press-about { flex: 1.4 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.press-about h2, .press-section h2, .press-facts h2 { font-size: clamp(28px, 2.4vw, 32px); line-height: 1.2; }
.press-about h3 { font-size: 24px; line-height: 30px; margin-top: 12px; }
.quote { padding: 16px 20px; background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px; }
.press-facts { flex: 1 1 320px; min-width: 0; padding: 24px; background: var(--bg-800); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.press-facts dl { margin: 0; display: flex; flex-direction: column; }
.press-facts dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.press-facts dt { color: var(--ink-muted); }
.press-facts dd { margin: 0; overflow-wrap: anywhere; }

.press-section { padding-top: 72px; display: flex; flex-direction: column; gap: 18px; }
.feature-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.feature-list li::marker { color: var(--magenta-hi); }
.shot-grid, .asset-grid { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.asset-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }   /* six items: rows of three */
.shot-grid a { display: block; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.shot-grid .zoom-icon { right: 10px; bottom: 10px; }
.shot-grid a:hover { border-color: var(--magenta-hi); }
.shot-grid img { width: 100%; transition: transform 0.25s ease; }
.shot-grid a:hover img { transform: scale(1.03); }
.asset { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--bg-800); border: 1px solid var(--line); border-radius: 12px; }
.asset h3 { font-size: 22px; line-height: 28px; }
.asset .muted { font-size: 16px; line-height: 24px; }
.asset-preview { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: var(--bg-900); margin-bottom: 6px; }
.asset-preview img { max-height: 100%; object-fit: contain; }
.asset-logo img { width: 86%; }
.asset-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.press-dev-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 28px; }
.press-dev-row img { width: 96px; height: 96px; border-radius: 999px; flex: none; }
.press-dev-row p { flex: 1 1 320px; min-width: 0; max-width: 72ch; }
.press main { padding-bottom: 72px; }
@media (prefers-reduced-motion: reduce) { .shot-grid img { transition: none; } .shot-grid a:hover img { transform: none; } }

/* ---------- the home page: the studio and its two games ---------- */

.intro .game-card h1 { flex: 1 1 320px; max-width: none; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; }
.intro .lead { flex: 1.4 1 380px; min-width: 0; }

.games, .panels {
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 32px;
}
.games { padding: clamp(40px, 5vw, 64px) var(--gutter) 0; }
.panels { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.game-tile {
  flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift);
}
.tile-art { display: block; overflow: hidden; }
.tile-art img { width: 100%; transition: transform 0.3s ease; }
.game-tile:hover .tile-art img { transform: scale(1.03); }
.tile-text { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px 32px 32px; }
.tile-text h2 { font-size: 34px; line-height: 1.1; }
.tile-text h2 a { color: var(--ink); text-decoration: none; }
.tile-text h2 a:hover { color: var(--magenta-hi); }
.tile-text .actions { margin-top: auto; padding-top: 8px; }
.chip {
  align-self: flex-start; padding: 2px 12px; border-radius: 999px; border: 1px solid rgba(159, 180, 255, 0.45);
  color: var(--frost); font-size: 14px; line-height: 22px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
/* Woolfall's tile sits in its own warm earth, as on its page */
.tile-woolfall { background: #1d140d; border-color: rgba(255, 236, 200, 0.14); }
.tile-woolfall .chip { color: #ffd696; border-color: rgba(255, 214, 150, 0.45); }
.tile-woolfall .facts { color: #c9b8a4; }

.panel { flex: 1 1 360px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-800); }
.panel h2 { font-size: 30px; line-height: 1.15; }
.panel .actions { padding-top: 8px; }
.panel-discord { background: radial-gradient(120% 140% at 0% 0%, rgba(236, 0, 140, 0.16), transparent 60%), var(--bg-800); }
.panel-press { background: radial-gradient(120% 140% at 100% 0%, rgba(159, 180, 255, 0.14), transparent 60%), var(--bg-800); }


@media (max-width: 640px) {
  .tile-text, .panel { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .tile-art img { transition: none; } .game-tile:hover .tile-art img { transform: none; } }

/* ---------- a game's page: its logo above its own art (as in its Steam library), then its card ---------- */

.game-page .site-header { background: rgba(12, 10, 16, 0.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.game-sky { display: flex; justify-content: center; padding: clamp(96px, 9vw, 128px) 16px clamp(8px, 1.5vw, 20px); }
.game-sky h1 { width: var(--logo-width, min(640px, 86vw)); }
.game-sky img, .game-art { width: 100%; }
/* on a phone the wide art keeps some height, cut from its middle */
.game-art { min-height: 200px; object-fit: cover; }
.game-card-title { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.game-card-title .eyebrow { color: var(--frost); }
.game-page .game-card .pitch { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; }

/* Dungeoneers Idle: the dark above the hall of portals, lit a little by the purple portal */
.di .game-sky {
  --logo-width: min(520px, 80vw);
  background: radial-gradient(50% 90% at 50% 60%, rgba(130, 80, 230, 0.16), transparent 70%), linear-gradient(#0c0a10, #09080a);
}

/* ---------- Woolfall: bright pixel art above the grass, a mine that gets darker on the way down ----------
   The studio's frame (the bar, the footer, magenta for Wishlist) stays; the rest takes the game's colours. */

.wf {
  --wf-ink: #f3e9da;
  --wf-muted: #d2bfa6;
  --wf-gold: #ffd696;
  --wf-wood: #8a5a2e;
  --wf-wood-dark: #3b2414;
  --wf-panel: #24160d;
  --wf-line: rgba(255, 236, 200, 0.16);
  background: #160d08; color: var(--wf-ink);
}
.wf main h1, .wf main h2, .wf main h3, .wf .pitch { font-family: "Fredoka", var(--body); }
.wf .eyebrow, .wf .trailer .eyebrow, .wf .room-text .eyebrow { color: var(--wf-gold); }
.wf .facts, .wf .muted, .wf .video-note, .wf .asset .muted { color: var(--wf-muted); }
.wf .btn { border-color: rgba(255, 236, 200, 0.30); color: var(--wf-ink); }
.wf .btn:hover { border-color: var(--wf-gold); }
.wf .btn-primary, .wf .btn-primary:hover { border-color: var(--magenta); color: #ffffff; }

/* the sky over the meadow: the Steam art's own sky colour, carried up behind the logo */
.wf .game-sky { --logo-width: min(800px, 86vw); background: linear-gradient(#94c4e8, #bedef2); }
.wf .game-art { image-rendering: pixelated; object-position: 45% 50%; }   /* the pen and the shaft */

.wf .game-card { background: rgba(36, 22, 13, 0.82); border-color: var(--wf-line); }
.wf .video { border: 6px solid var(--wf-wood); box-shadow: 0 0 0 2px var(--wf-wood-dark), 0 24px 60px rgba(0, 0, 0, 0.6); }
.wf .video-play .play { background: rgba(36, 22, 13, 0.78); }

/* the strata: from the topsoil under the grass down to the dark above the lava */
.rooms.wf-strata {
  margin-top: clamp(56px, 7vw, 104px); padding-top: 0;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.07) 0 8px, transparent 8px 72px),
    linear-gradient(#5a3a21, #3f2716 30%, #2b1a0f 60%, #1d110a 85%, #160d08);
}
.wf .room { --torch: rgba(255, 190, 90, 0.14); }
.wf .room-figure img, .wf .clip {
  border: 10px solid var(--wf-wood); border-radius: 2px;
  box-shadow: 0 0 0 3px var(--wf-wood-dark), 0 24px 60px rgba(0, 0, 0, 0.55);
}
/* the living clip: plays while it is on screen (site.js), its first frame until then */
.room-clip .clip { display: block; position: relative; width: 100%; height: auto; box-sizing: border-box; rotate: var(--tilt, 1deg); background: #000; }

/* the bottom of the mine glows with lava instead of the rune's magenta */
.wf-end { background: radial-gradient(60% 70% at 50% 100%, rgba(255, 110, 20, 0.42), rgba(255, 70, 0, 0.12) 55%, transparent 80%); }
.wf-end::before { display: none; }

/* the Woolfall press kit */
.wf .press-facts, .wf .asset, .wf .quote { background: var(--wf-panel); border-color: var(--wf-line); }
.wf .asset-preview { background: #160d08; }
.wf .shot-grid a { border-color: var(--wf-line); }
.wf .shot-grid a:hover { border-color: var(--wf-gold); }
.wf .feature-list li::marker { color: var(--wf-gold); }
