/* Shared by both sites. Each site maps these roles to its own palette:
   --bg --surface --fg --muted --line --accent --accent-text --on-accent --soft, and --font-text. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: var(--font-text); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-kerning: normal; overflow-x: clip;
}
.cjk body { font-size: 16px; line-height: 1.8; }
/* Korean breaks lines between words, as Korean is set; Japanese keeps small kana and closing marks off the start of a line. */
.lang-ko body { word-break: keep-all; overflow-wrap: break-word; }
.lang-ja body { line-break: strict; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.wrap { width: min(calc(100% - 2 * clamp(16px, 4vw, 48px)), 1160px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { height: 68px; display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--muted); transition: color .2s; padding-block: 8px; }
.nav a:hover { color: var(--fg); }
.controls { display: flex; align-items: center; gap: 6px; }
.lang, .theme { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--fg); cursor: pointer; transition: border-color .2s, background-color .2s; }
.theme { width: 38px; justify-content: center; padding: 0; }
.lang:hover, .theme:hover { border-color: var(--soft); background: color-mix(in srgb, var(--soft) 14%, transparent); }
/* Language menu, for sites with more than two languages: each name in its own language. */
.langs { position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 172px; padding: 6px; display: grid; gap: 2px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45); }
.langs-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; line-height: 1.4; color: var(--fg); }
.langs-list a:hover { background: color-mix(in srgb, var(--soft) 16%, transparent); }
.langs-list a[aria-current]::after { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-play { fill: currentColor; stroke: none; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .controls { margin-left: auto; }
}

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.cjk .eyebrow { letter-spacing: .24em; font-size: 14px; }
.h2 { margin-top: 10px; font-weight: 500; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
.cjk .h2 { letter-spacing: .02em; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--fg); max-width: 34em; }
.cjk .lead { line-height: 1.9; max-width: 30em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s, filter .2s; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 26px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i-arrow { transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--soft); }

/* Placeholders: words or pictures still to come. Drawn plainly so nobody mistakes them for the real thing. */
.todo { display: inline; padding: .12em .5em; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--muted) 70%, transparent); background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--muted) 10%, transparent) 6px 12px); color: var(--muted); font-size: .86em; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.slot { position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 16px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--muted) 7%, transparent) 10px 20px); color: var(--muted); font-size: 14px; line-height: 1.45; }
.slot .i { width: 28px; height: 28px; margin: 0 auto 8px; opacity: .8; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 28px 36px; font-size: 14px; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--fg); }
.foot .to-top { margin-left: auto; }

/* Things that move only move for people who are fine with motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* playglasswild.com. Day in the light theme, night in the dark one, in Glasswild's own colours (art/palette.json):
   ink #2b1e33, bone #f3e6cf/#fffaf0, light #ffc65a/#ffd25a, dusk sky #2a2160 #7a4f9c #c97a9a #ffbf8e.
   The hero is the store key art: the day island on pink clouds, or the night island under the aurora.
   Pixel text (class "px") is set at whole multiples of the face's 12 px grid: 12, 24, 36, 48. */
:root {
  --bg: #f3e6cf; --surface: #fffaf0; --fg: #2b1e33; --muted: #64536a; --line: #dcc5b4;
  --accent: #ffc65a; --accent-text: #8c4a1e; --on-accent: #2b1e33; --soft: #b59fa0;
  --sky: linear-gradient(180deg, #b58fb0 0%, #d3a7b8 50%, #f3e6cf 100%);
  --hero-top: rgba(214, 178, 196, .55); --art-pos: 50% 40%; --art-tint: transparent;
  --night-fade: linear-gradient(180deg, transparent 0, #000 26%, #000 72%, transparent 100%);
  --mote: rgba(255, 255, 255, .9); --mote-glow: rgba(255, 255, 255, .6); --spark: #fffaf0;
  --thumb-bg: #2a2160; --shadow: rgba(43, 30, 51, .32); --clip-bg: #c99aa8;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .12 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120e26; --surface: #1d1740; --fg: #f3e6cf; --muted: #c2adb0; --line: #332a5c;
    --accent: #ffd25a; --accent-text: #ffd25a; --on-accent: #2b1e33; --soft: #7a4f9c;
    --sky: radial-gradient(60% 50% at 50% 55%, #17153a 0%, transparent 70%), linear-gradient(180deg, #08071a 0%, #0e0c24 55%, #120e26 100%);
    --hero-top: rgba(13, 11, 34, .6); --art-pos: 58% 50%; --art-tint: rgba(18, 14, 38, .28);
    --mote: #ffd98a; --mote-glow: rgba(255, 210, 90, .7); --spark: #fff4c8;
    --thumb-bg: #2a2160; --shadow: rgba(0, 0, 0, .6); --clip-bg: #1d1740;
    --grain: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120e26; --surface: #1d1740; --fg: #f3e6cf; --muted: #c2adb0; --line: #332a5c;
  --accent: #ffd25a; --accent-text: #ffd25a; --on-accent: #2b1e33; --soft: #7a4f9c;
  --sky: radial-gradient(60% 50% at 50% 55%, #17153a 0%, transparent 70%), linear-gradient(180deg, #08071a 0%, #0e0c24 55%, #120e26 100%);
  --hero-top: rgba(13, 11, 34, .6); --art-pos: 58% 50%; --art-tint: rgba(18, 14, 38, .28);
  --mote: #ffd98a; --mote-glow: rgba(255, 210, 90, .7); --spark: #fff4c8;
  --thumb-bg: #2a2160; --shadow: rgba(0, 0, 0, .6); --clip-bg: #1d1740;
  --grain: none; color-scheme: dark;
}
body { background-image: var(--grain); }
.px { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; }

/* Things drawn twice, for the day and for the night (the Steam logo, the studio wordmark). */
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
  :root:not([data-theme="light"]) .on-light { display: none !important; }
}

/* Header: clear over the art, paper once scrolled. */
.top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); }
.top:not(.scrolled) .lang, .top:not(.scrolled) .theme { border-color: color-mix(in srgb, var(--fg) 30%, transparent); background: color-mix(in srgb, var(--bg) 22%, transparent); }
.top:not(.scrolled) .nav a { color: var(--fg); opacity: .85; }
.top:not(.scrolled) .nav a:hover { opacity: 1; }
.by { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; line-height: 1; }
.by img { width: 32px; height: 32px; }

/* Hero: the key art, the logo on its sky, and the dock over the clouds. */
.hero { position: relative; margin-top: -68px; min-height: clamp(660px, 100svh, 1120px); display: grid; overflow: hidden; isolation: isolate; background: var(--sky); }
.hero-art { position: absolute; inset: 0; z-index: -2; background: var(--art-day) var(--art-pos) / cover no-repeat; }
/* The art's URLs live on the hero itself (they are hashed at build time), so the night swaps the image here. */
/* The night art is a wide banner: it sits as a band under the night sky, its edges fading into it. */
:root[data-theme="dark"] .hero-art { inset: 15% 0 17%; background: var(--art-night) 58% 50% / cover no-repeat; -webkit-mask-image: var(--night-fade); mask-image: var(--night-fade); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art { inset: 15% 0 17%; background: var(--art-night) 58% 50% / cover no-repeat; -webkit-mask-image: var(--night-fade); mask-image: var(--night-fade); } }
.hero-art::before { content: ""; position: absolute; inset: 0; background: var(--art-tint); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--hero-top) 0, transparent 150px, transparent 56%, color-mix(in srgb, var(--bg) 55%, transparent) 76%, var(--bg) 97%); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-in { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; padding-block: calc(68px + clamp(14px, 3.4vh, 44px)) clamp(26px, 5vh, 60px); }
.hero-logo { line-height: 0; }
.logo { --n: 1; width: calc(var(--n) * 204px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 22px rgba(29, 23, 64, .35)); animation: gw-bob 6s steps(6, jump-none) infinite alternate; }
.logo-zh { width: calc(var(--n) * 163px); }
@keyframes gw-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.dock { grid-row: 3; display: grid; justify-items: center; gap: clamp(18px, 2.6vh, 26px); }
.tagline { max-width: 30em; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.45; font-weight: 500; color: var(--fg); text-wrap: balance; text-shadow: 0 1px 18px color-mix(in srgb, var(--bg) 80%, transparent); }
.cjk .tagline { letter-spacing: .04em; line-height: 1.6; }
/* Headings never split a word: Chinese breaks only at punctuation, Japanese between phrases. */
:is(.lang-zh, .lang-zh-hant) :is(h1, h2, h3, .tagline, .intro-h, .about-h) { word-break: keep-all; overflow-wrap: break-word; }
.lang-ja :is(h1, h2, h3, .tagline, .intro-h, .about-h) { word-break: auto-phrase; }
.get { display: flex; align-items: center; justify-content: center; }
.get-demo { display: grid; justify-items: center; gap: 10px; padding-inline: clamp(20px, 3vw, 40px); }
.get-note { font-size: 14px; color: var(--muted); }
/* Steam: Valve's logo on its own, with clear space all round (at least 0.35 of its height), then the words apart. */
.get-steam { display: grid; justify-items: center; gap: 20px; padding: 4px clamp(20px, 3vw, 40px); border-left: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.steam-logo { display: block; padding: 0; line-height: 0; }
.steam-logo img { width: auto; height: 52px; }
.steam-soon { font-size: 24px; line-height: 1; color: var(--fg); }

.btn-demo { height: 60px; padding: 0 28px; white-space: nowrap; border-radius: 14px; font-size: 24px; letter-spacing: 0; box-shadow: 0 -4px 0 rgba(43, 30, 51, .22) inset, 0 12px 28px -12px rgba(43, 30, 51, .7), 0 0 0 0 rgba(255, 210, 90, .0); }
.btn-demo:hover { box-shadow: 0 -4px 0 rgba(43, 30, 51, .22) inset, 0 16px 32px -12px rgba(43, 30, 51, .7), 0 0 0 6px rgba(255, 210, 90, .25); }
.btn-demo .i { width: 22px; height: 22px; stroke-width: 2.4; }
.btn-demo .i-play { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.motes i { position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; background: var(--mote); box-shadow: 0 0 10px 2px var(--mote-glow); opacity: 0; animation: gw-mote 11s ease-in-out var(--d) infinite; }
@keyframes gw-mote { 0% { opacity: 0; transform: translate(0, 18px); } 30% { opacity: .9; } 65% { opacity: .6; transform: translate(10px, -16px); } 100% { opacity: 0; transform: translate(-6px, -40px); } }
.sparkles .sp { position: absolute; width: 10px; height: 10px; opacity: 0; animation: gw-twinkle 5.2s steps(1, end) var(--d) infinite; }
.sparkles .sp.s2 { width: 14px; height: 14px; }
.sparkles .sp::before, .sparkles .sp::after { content: ""; position: absolute; background: var(--spark); }
.sparkles .sp::before { left: calc(50% - 1px); top: 0; width: 2px; height: 100%; }
.sparkles .sp::after { top: calc(50% - 1px); left: 0; height: 2px; width: 100%; }
@keyframes gw-twinkle { 0% { opacity: 0; } 8% { opacity: .6; } 14% { opacity: 1; } 22% { opacity: .5; } 28%, 100% { opacity: 0; } }

/* Sections */
.sec { padding-block: clamp(48px, 5.6vw, 84px); }
.px-h { display: flex; align-items: center; gap: 14px; font-size: 24px; line-height: 1.5; }
.px-h::before { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(var(--accent-text), var(--accent-text)) 5px 0 / 2px 12px no-repeat, linear-gradient(var(--accent-text), var(--accent-text)) 0 5px / 12px 2px no-repeat; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.sec-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Watch: two tabs over one frame. */
.watch { padding-top: clamp(28px, 4vw, 56px); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: baseline; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 24px; line-height: 44px; cursor: pointer; transition: background-color .2s, color .2s; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 -3px 0 rgba(43, 30, 51, .2) inset; }
.frame { margin-top: clamp(18px, 2.4vw, 26px); border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #120e26; box-shadow: 0 40px 70px -48px var(--shadow); }
.player, .player video { width: 100%; height: 100%; }
.player video { object-fit: cover; background: #120e26; }

/* The game */
.intro { margin-top: clamp(20px, 2.6vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.intro-h { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.22; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.cjk .intro-h { letter-spacing: .03em; line-height: 1.45; }
.feats { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: clamp(40px, 6vw, 88px); }
.feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4.4vw, 64px); align-items: center; }
.feat:nth-child(even) .clip { order: 2; }
.clip { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--clip-bg); box-shadow: 0 34px 64px -40px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.loop-toggle { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(18, 14, 38, .5); color: #fffaf0; cursor: pointer; opacity: .75; transition: opacity .2s, background-color .2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.loop-toggle:hover, .loop-toggle:focus-visible { opacity: 1; background: rgba(18, 14, 38, .72); }
.loop-toggle .i-pause { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.loop-toggle .i-play { display: none; width: 16px; height: 16px; }
.loop-toggle.paused .i-pause { display: none; }
.loop-toggle.paused .i-play { display: block; }
.feat-text { display: grid; justify-items: start; gap: 12px; }
.feat-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 24px; line-height: 1; box-shadow: 0 -3px 0 rgba(43, 30, 51, .2) inset; }
.feat h3 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
.feat p { color: var(--muted); max-width: 30em; }
.cjk .feat h3 { letter-spacing: .03em; }

.cards { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card > img, .card .bars { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.card-text { display: grid; align-content: start; gap: 8px; padding: clamp(20px, 2.4vw, 28px); }
.card h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; font-weight: 500; }
.card p { color: var(--muted); }
/* The music card: sixteen bars rising and falling in steps, like the score following a chain. */
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 26px 26px 0; background: linear-gradient(180deg, #2a2160 0%, #4a3480 55%, #7a4f9c 100%); }
.bars i { flex: 0 1 18px; height: 20%; background: linear-gradient(180deg, #ffd25a, #c97a9a); border-radius: 3px 3px 0 0; animation: gw-bar 2.4s steps(6, jump-none) calc(var(--i) * -.17s) infinite alternate; }
@keyframes gw-bar { 0% { height: 14%; } 50% { height: 78%; } 100% { height: 36%; } }

/* What the demo holds */
.demo { padding-top: 0; }
.demo-box { position: relative; padding: clamp(28px, 4vw, 56px); border-radius: 24px; overflow: hidden; background: radial-gradient(80% 120% at 100% 0%, rgba(122, 79, 156, .55) 0%, transparent 60%), linear-gradient(160deg, #2a2160 0%, #1d1740 60%, #17122f 100%); color: #f3e6cf; box-shadow: 0 40px 80px -50px var(--shadow); }
.demo-h { font-size: 36px; line-height: 1.3; color: #ffd25a; }
.stats { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stats li { display: grid; align-content: start; gap: 6px; padding: 16px 14px; border-radius: 14px; background: rgba(255, 250, 240, .06); border: 1px solid rgba(255, 250, 240, .1); }
.stat-num { font-size: 48px; line-height: 1; color: #ffd25a; }
.stat-label { font-size: 15px; line-height: 1.4; color: #e6d6c7; }
.points { margin-top: 22px; display: grid; gap: 8px; color: #e6d6c7; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: #ffd25a; box-shadow: 2px 2px 0 rgba(0, 0, 0, .25); }
.demo-get { margin-top: clamp(24px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.demo-full { max-width: 34em; color: #c2adb0; font-size: 15px; }

/* Screenshots */
.shot-grid { margin-top: clamp(20px, 2.6vw, 30px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.shot { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--clip-bg); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .3, 1); }
.shot:hover img { transform: scale(1.04); }

/* Press kit */
.press-title { margin-top: 18px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.cjk .press-title { letter-spacing: .02em; }
.press-intro { margin-top: 12px; color: var(--muted); max-width: 40em; }
.press-grid { margin-top: clamp(26px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.paper { padding: clamp(22px, 2.6vw, 32px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 60px -48px var(--shadow); }
.paper-h { font-size: 12px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.dl { display: grid; gap: 10px; align-content: start; min-width: 0; }
.dl-thumb { width: 100%; height: 100px; object-fit: none; background: var(--thumb-bg); border-radius: 10px; image-rendering: pixelated; }
.dl-photo { object-fit: cover; image-rendering: auto; }
.dl h3 { margin: 0; font-size: 16px; font-weight: 500; }
.dl h3 a { text-decoration: none; }
.dl h3 a:hover { text-decoration: underline; }
.dl-links { margin-top: 2px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dl-links a { color: var(--accent-text); }
.dl-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.press-contact { margin-top: 24px; color: var(--muted); }
/* The press page: the kit on a page of its own under the header, opening with the game in a few lines to quote. */
.press-page .press { padding-top: clamp(36px, 4.4vw, 64px); }
.press-about { margin-top: clamp(26px, 3.4vw, 40px); display: grid; gap: 10px; }
.about-h { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
.cjk .about-h { letter-spacing: .03em; line-height: 1.5; }
.press-about p:not(.about-h) { color: var(--muted); max-width: 46em; }
.press-contact a { color: var(--fg); font-weight: 500; }

/* Footer: the studio, the privacy policy, and Valve's trademark notice for the Steam logo. */
.foot-studio img { width: 174px; height: 38px; image-rendering: pixelated; }
.valve { flex: 1 0 100%; font-size: 12px; line-height: 1.6; color: var(--muted); opacity: .85; }

/* Screenshot viewer */
.viewer { width: min(96vw, 1600px); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 14px; background: #000; color: #fff; overflow: visible; }
.viewer::backdrop { background: rgba(18, 14, 38, .88); }
.viewer img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; image-rendering: auto; border-radius: 14px; }
.viewer button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 250, 240, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer button { display: grid; place-items: center; }
.viewer button .i { width: 24px; height: 24px; stroke-width: 2; }
.viewer button:hover { background: rgba(255, 250, 240, .26); }
.v-close { right: 10px; top: 10px; font-size: 20px; }
.v-prev { left: 10px; top: calc(50% - 24px); }
.v-next { right: 10px; top: calc(50% - 24px); }

/* Logo scales: whole numbers only. */
@media (min-width: 360px) { .logo-zh { --n: 2; } }
@media (min-width: 440px) { .logo-en { --n: 2; } }
@media (min-width: 900px) and (min-height: 700px) { .logo-en { --n: 3; } .logo-zh { --n: 3; } }
@media (min-width: 1600px) and (min-height: 1000px) { .logo-en { --n: 4; } }
/* Phones: one logo pixel to a whole number of device pixels (3 at 2x density, 4 at 3x), so it can be larger than 1x and stay crisp. */
@media (max-width: 439px) and (resolution: 2dppx) { .logo-en { --n: 1.5; } }
@media (max-width: 439px) and (resolution: 3dppx) { .logo-en { --n: 1.3334; } }
@media (min-width: 760px) { .px-h { font-size: 36px; gap: 18px; } }
@media (max-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .intro, .press-grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feat:nth-child(even) .clip { order: 0; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones and tall windows: the portrait key art across the top, the dock below the island. */
@media (max-width: 699px), (max-aspect-ratio: 4 / 5) {
  .hero { min-height: calc(128vw + 330px); }
  .hero-art { inset: 0 0 auto !important; aspect-ratio: 2 / 3; background-image: var(--art-tall) !important; background-position: 50% 0 !important; background-size: cover !important; -webkit-mask-image: none !important; mask-image: none !important; }
  :root[data-theme="dark"] .hero-art::before { background: rgba(18, 14, 38, .42); }
  .hero-art::after { background: linear-gradient(180deg, var(--hero-top) 0, transparent 120px, transparent 62%, color-mix(in srgb, var(--bg) 60%, transparent) 80%, var(--bg) 96%); }
  .get { flex-direction: column; align-items: stretch; width: min(100%, 420px); }
  .get-demo { padding: 0; }
  .btn-demo { justify-content: center; }
  .get-steam { margin-top: 22px; padding: 22px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
}
@media (max-width: 699px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art::before { background: rgba(18, 14, 38, .42); } }
@media (max-width: 520px) {
  .dls { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .by span { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-num { font-size: 36px; }
  .demo-h { font-size: 24px; }
  .demo-get .btn-demo { width: 100%; justify-content: center; }
  .btn-demo { font-size: 21px; padding: 0 22px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; }
}
@media (max-width: 380px) { .shot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Holding page: one screen. */
.is-holding .controls { margin-left: auto; }
.hero.hold { min-height: 100vh; min-height: 100svh; }
.hold .hero-in { padding-bottom: 96px; }
.hold-line { grid-row: 3; font-size: 24px; line-height: 1.5; color: var(--fg); text-shadow: 0 1px 14px color-mix(in srgb, var(--bg) 80%, transparent); }
.hold-foot { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 13px; color: var(--muted); }

/* 404 */
.nf { position: relative; min-height: 100vh; display: grid; place-items: center; isolation: isolate; background: var(--sky); }
.nf-in { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 48px; }
.nf .logo { --n: 2; margin-bottom: 18px; }
.nf-line { display: grid; gap: 2px; font-size: 17px; color: var(--fg); }
.nf-line a { color: inherit; font-weight: 500; }

/* Legal pages: plain reading text on the page's own ground, under the bar. */
.is-legal .controls { margin-left: auto; }
.legal { padding-block: 104px 40px; }
.legal-in { max-width: 46rem; }
.legal h1 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); line-height: 1.3; text-wrap: balance; margin: .3em 0 .4em; }
.legal h2 { font-size: 1.18rem; line-height: 1.4; text-wrap: balance; margin: 2.2em 0 .6em; }
.legal p, .legal li { line-height: 1.85; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: .35em; }
.legal a { color: var(--accent-text); text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal-back { font-size: .92rem; }
.legal-back a, .legal-dates { color: var(--muted); }
.legal-dates { font-size: .92rem; }
.legal-table { overflow-x: auto; margin: 1em 0; }
.legal table { border-collapse: collapse; min-width: 34rem; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6em .75em; text-align: left; vertical-align: top; line-height: 1.65; }
.legal th { background: var(--surface); font-weight: 600; }
.legal-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 56px; }

@font-face{font-family:"Jost Web";src:url(/assets/text.tI6-w1k1_m.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"Jost Web Zh";src:url(/assets/text.tI6-w1k1_m.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+20-7e,U+a0-b6,U+b8-ff,U+100-17f,U+401,U+410-44f,U+451,U+2010-2013,U+2015-2017,U+2020-2025,U+2027,U+2030-203a,U+2044,U+20ac,U+2116,U+2122,U+2190-2193,U+2212}
@font-face{font-family:"Fusion Pixel Web latin";src:url(/assets/pixel.latin.ow7SIhSl9x.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans SC Web";src:url(/assets/text-zh.EqzPrPbBBU.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans SC Web Name";src:url(/assets/name-zh.Ssqh3anUIi.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Fusion Pixel Web zh";src:url(/assets/pixel.zh.nzs--QgC-t.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans TC Web";src:url(/assets/text-zh-hant.RrSwllZp2v.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans TC Web Name";src:url(/assets/name-zh-hant.fJB55BqJSu.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Fusion Pixel Web zh-hant";src:url(/assets/pixel.zh-hant.jQjyMdGIG_.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans JP Web";src:url(/assets/text-ja.FXJVjkojMe.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans JP Web Name";src:url(/assets/name-ja.SsEoTL-xmw.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Fusion Pixel Web ja";src:url(/assets/pixel.ja.21fGwgak04.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans KR Web";src:url(/assets/text-ko.wqm7MkSKIU.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans KR Web Name";src:url(/assets/name-ko.A_DJ5YWvHs.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Fusion Pixel Web ko";src:url(/assets/pixel.ko.6S5mzu0ZcJ.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
html.lang-en{--font-text:"Jost Web",sans-serif;--font-pixel:"Fusion Pixel Web latin","Jost Web",sans-serif;}[lang="en"]{font-family:"Jost Web",sans-serif}.langs-list a[lang="en"],.langs summary[lang="en"]{font-family:"Jost Web",sans-serif}
html.lang-zh{--font-text:"Jost Web Zh","Noto Sans SC Web",sans-serif;--font-pixel:"Fusion Pixel Web zh","Jost Web Zh","Noto Sans SC Web",sans-serif;}[lang="zh-Hans"]{font-family:"Jost Web Zh","Noto Sans SC Web",sans-serif}.langs-list a[lang="zh-Hans"],.langs summary[lang="zh-Hans"]{font-family:"Noto Sans SC Web Name","Jost Web Zh","Noto Sans SC Web",sans-serif}
html.lang-zh-hant{--font-text:"Jost Web Zh","Noto Sans TC Web",sans-serif;--font-pixel:"Fusion Pixel Web zh-hant","Jost Web Zh","Noto Sans TC Web",sans-serif;}[lang="zh-Hant"]{font-family:"Jost Web Zh","Noto Sans TC Web",sans-serif}.langs-list a[lang="zh-Hant"],.langs summary[lang="zh-Hant"]{font-family:"Noto Sans TC Web Name","Jost Web Zh","Noto Sans TC Web",sans-serif}
html.lang-ja{--font-text:"Jost Web Zh","Noto Sans JP Web",sans-serif;--font-pixel:"Fusion Pixel Web ja","Jost Web Zh","Noto Sans JP Web",sans-serif;}[lang="ja"]{font-family:"Jost Web Zh","Noto Sans JP Web",sans-serif}.langs-list a[lang="ja"],.langs summary[lang="ja"]{font-family:"Noto Sans JP Web Name","Jost Web Zh","Noto Sans JP Web",sans-serif}
html.lang-ko{--font-text:"Jost Web","Noto Sans KR Web",sans-serif;--font-pixel:"Fusion Pixel Web ko","Jost Web","Noto Sans KR Web",sans-serif;}[lang="ko"]{font-family:"Jost Web","Noto Sans KR Web",sans-serif}.langs-list a[lang="ko"],.langs summary[lang="ko"]{font-family:"Noto Sans KR Web Name","Jost Web","Noto Sans KR Web",sans-serif}
html.lang-ru{--font-text:"Jost Web",sans-serif;--font-pixel:"Fusion Pixel Web latin","Jost Web",sans-serif;}[lang="ru"]{font-family:"Jost Web",sans-serif}.langs-list a[lang="ru"],.langs summary[lang="ru"]{font-family:"Jost Web",sans-serif}
html.lang-es{--font-text:"Jost Web",sans-serif;--font-pixel:"Fusion Pixel Web latin","Jost Web",sans-serif;}[lang="es"]{font-family:"Jost Web",sans-serif}.langs-list a[lang="es"],.langs summary[lang="es"]{font-family:"Jost Web",sans-serif}
