/* Sullifish Studios: the logo's dark green and cream, the games' dusk skies and yuzu gold, crisp pixel edges (no blur). */
@font-face { font-family: "Lilita One"; src: url(fonts/lilita-one.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-medium.woff) format("woff"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #111a19; --night-2: #15211f; --night-3: #1b2a27; --night-4: #223532; --deep: #0b1211;
  --line: #2b403c; --line-2: #3d5752;
  --cream: #f2ead8; --cream-2: #e2d6bc; --sage: #b7c1b9; --muted: #93a39d;
  --yuzu: #ffc93c; --yuzu-hi: #ffe28a; --yuzu-lo: #e0921b; --yuzu-rim: #5e3507; --yuzu-ink: #3a2405;
  --lantern: #ff8a3d; --rose: #e86f86; --plum: #563171; --indigo: #1d1a40; --leaf: #7fd65a;
  --discord: #5865f2; --discord-hi: #8d95ff; --discord-lo: #3d45c7; --discord-rim: #191e63;
  --px: 3px;
  --notch: polygon(var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)), 0 var(--px), var(--px) var(--px));
  --notch2: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 3px 6px, 3px 3px, 6px 3px);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--cream); font: 400 1.0625rem/1.65 var(--font-body);
  background-color: var(--night);
  /* a faint pixel weave, like a game's paper texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='3' height='3' fill='%23ffffff' fill-opacity='.012'/%3E%3Crect x='6' y='6' width='3' height='3' fill='%23ffffff' fill-opacity='.012'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--yuzu); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--yuzu-hi); }
:focus-visible { outline: 3px solid var(--yuzu); outline-offset: 3px; }
::selection { background: var(--yuzu); color: var(--yuzu-ink); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yuzu); color: var(--yuzu-ink); padding: .6em 1em; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: .01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.kicker { display: block; font: 500 .8rem/1.2 var(--font-serif); letter-spacing: .32em; text-transform: uppercase; color: var(--sage); margin: 0 0 .9rem; }
.lead { font: 500 clamp(1.2rem, 2.1vw, 1.45rem)/1.5 var(--font-serif); color: var(--cream); }
.muted { color: var(--sage); }
.serif { font-family: var(--font-serif); font-weight: 500; }

/* A little pixel yuzu before section titles (one 3px pixel, drawn with box-shadows) */
.yuzu-pip { display: inline-block; width: 3px; height: 3px; margin: 0 18px 10px 3px; vertical-align: middle; color: var(--yuzu);
  box-shadow: 3px -3px #6fbe48, 6px -3px #4f9a35, 3px 0 var(--yuzu), 6px 0 var(--yuzu), 9px 0 var(--yuzu), 0 3px var(--yuzu), 3px 3px #fff0a8, 6px 3px var(--yuzu), 9px 3px var(--yuzu), 12px 3px var(--yuzu-lo), 0 6px var(--yuzu), 3px 6px var(--yuzu), 6px 6px var(--yuzu), 9px 6px var(--yuzu-lo), 12px 6px var(--yuzu-lo), 3px 9px var(--yuzu-lo), 6px 9px var(--yuzu-lo), 9px 9px var(--yuzu-lo); }
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

/* Buttons: flat faces, a rim and a bevel band, notched corners. Pixel-crisp at any zoom. */
.btn {
  --face: var(--yuzu); --hi: var(--yuzu-hi); --lo: var(--yuzu-lo); --rim: var(--yuzu-rim); --text: var(--yuzu-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px;
  padding: .75em 1.35em .95em; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 400 1.125rem/1 var(--font-display); letter-spacing: .02em; color: var(--text); background: var(--face);
  box-shadow: inset 0 0 0 3px var(--rim), inset 0 -8px 0 0 var(--lo), inset 0 6px 0 0 var(--hi);
  clip-path: var(--notch);
}
.btn:hover { color: var(--text); filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px var(--rim), inset 0 -5px 0 0 var(--lo), inset 0 6px 0 0 var(--hi); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 6px var(--rim), inset 0 -10px 0 0 var(--lo); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-discord { --face: var(--discord); --hi: var(--discord-hi); --lo: var(--discord-lo); --rim: var(--discord-rim); --text: #fff; }
.btn-ghost { --face: var(--night-3); --hi: #2c4440; --lo: #0d1615; --rim: #4d6964; --text: var(--cream); }
.btn-game { --face: var(--accent); --hi: color-mix(in srgb, var(--accent) 55%, #fff); --lo: color-mix(in srgb, var(--accent) 72%, #000); --rim: color-mix(in srgb, var(--accent) 22%, #000); --text: var(--accent-ink); }
.btn-small { min-height: 44px; font-size: 1rem; padding: .62em 1em .8em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Badges and chips */
.badge { display: inline-block; font: 400 .82rem/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; padding: .5em .75em .55em; clip-path: var(--notch); }
.badge.out { background: var(--leaf); color: #112b06; }
.badge.soon { background: var(--yuzu); color: var(--yuzu-ink); }
.badge.dev { background: #bba7ff; color: #1d1240; }
.chip { display: inline-block; font-size: .85rem; line-height: 1; padding: .5em .7em; color: var(--sage); box-shadow: inset 0 0 0 2px var(--line-2); clip-path: var(--notch); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 1rem; }

/* Pixel frame around pictures */
.frame { position: relative; display: block; padding: 9px; background: var(--deep); clip-path: var(--notch2);
  box-shadow: inset 0 0 0 3px var(--frame, var(--line-2)), inset 0 0 0 6px var(--deep), inset 0 0 0 9px color-mix(in srgb, var(--frame, var(--line-2)) 35%, var(--deep)); }
.frame img { display: block; width: 100%; height: auto; }

/* Header */
.site-header { position: relative; z-index: 20; }
.home .site-header { position: absolute; inset: 0 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 500 1.32rem/1 var(--font-serif); letter-spacing: .05em; text-transform: uppercase; }
.brand-word small { font: 500 .62rem/1 var(--font-serif); letter-spacing: .42em; text-transform: uppercase; color: var(--sage); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav-links a:not(.btn) { color: var(--cream); font: 400 1.08rem/1 var(--font-display); letter-spacing: .02em; text-decoration: none; padding: 10px 2px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--yuzu); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -3px var(--yuzu); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--night-3); color: var(--cream); cursor: pointer; clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--line-2); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 21px; height: 3px; background: currentColor; position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
  .js .nav-links { display: none; }
  .js .nav-links.open { display: grid; position: absolute; top: 76px; left: 16px; right: 16px; gap: 0; padding: 10px; background: var(--night-2); clip-path: var(--notch2); box-shadow: inset 0 0 0 3px var(--line-2); }
  .nav-links.open a:not(.btn) { display: block; padding: 14px 12px; font-size: 1.25rem; }
  .nav-links.open .btn { margin: 8px 4px 4px; width: calc(100% - 8px); }
  .nav { flex-wrap: wrap; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; }
  .brand-word b { font-size: 1.15rem; }
}

/* Home hero: a living pixel scene (assets/site.js draws it) under the logo */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: clamp(640px, 100svh, 1000px); padding: 96px 0 clamp(150px, 22vh, 240px);
  background: linear-gradient(#161735 0%, #2a2152 30%, #563171 52%, #a2486f 64%, #e0775f 70%, #2c2e55 76%, #111a19 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; image-rendering: pixelated; image-rendering: crisp-edges; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 13, 36, .74) 0%, rgba(15, 13, 36, .6) 30%, rgba(15, 13, 36, .28) 46%, rgba(15, 13, 36, 0) 58%); }
.hero-inner { display: grid; gap: 0; max-width: 640px; }
.hero-mark { width: clamp(108px, 13vw, 168px); height: auto; margin: 0 0 10px -6px; filter: drop-shadow(0 4px 0 rgba(8, 8, 24, .55)); }
.wordmark { margin: 0 0 18px; line-height: 1; text-shadow: 0 3px 0 rgba(8, 8, 24, .55); }
.wordmark b { display: block; font: 500 clamp(3.1rem, 8.4vw, 6.2rem)/.95 var(--font-serif); letter-spacing: .03em; text-transform: uppercase; color: var(--cream); }
.wordmark small { display: block; margin-top: .55em; font: 500 clamp(.9rem, 1.7vw, 1.2rem)/1 var(--font-serif); letter-spacing: .62em; text-transform: uppercase; color: var(--sage); }
.tagline { font: 500 clamp(1.35rem, 2.6vw, 1.85rem)/1.3 var(--font-serif); color: var(--yuzu-hi); margin: 0 0 12px; text-shadow: 0 2px 0 rgba(8, 8, 24, .6); }
.hero-text { max-width: 33em; color: var(--cream); font-size: 1.08rem; text-shadow: 0 2px 0 rgba(8, 8, 24, .6); margin-bottom: 26px; }
.hero-note { position: absolute; right: 16px; bottom: 12px; font-size: .75rem; color: rgba(242, 234, 216, .55); }
@media (max-width: 760px) {
  .hero { align-items: start; padding-top: 104px; min-height: max(760px, 100svh); }
  .hero::before { background: linear-gradient(rgba(15, 13, 36, 0) 22%, rgba(15, 13, 36, .55) 50%, rgba(15, 13, 36, .55) 64%, rgba(15, 13, 36, 0) 76%); }
  .hero-inner { text-align: center; justify-items: center; }
  .hero-mark { margin-left: 0; }
  .wordmark small { letter-spacing: .5em; margin-right: -.5em; }
  .hero .btns { justify-content: center; }
}

/* Sections, with dithered pixel edges between grounds */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--night-2); }
.section.alt::before, .section.alt::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; pointer-events: none;
  background: conic-gradient(var(--night-2) 25%, transparent 0 50%, var(--night-2) 0 75%, transparent 0) 0 0 / 6px 6px; }
.section.alt::before { top: -6px; } .section.alt::after { bottom: -6px; transform: scaleY(-1); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.centre { margin-inline: auto; text-align: center; }

/* The games on the home page */
.games { display: grid; gap: clamp(64px, 9vw, 112px); }
.game { --accent: var(--yuzu); --accent-ink: var(--yuzu-ink); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.game:nth-child(even) .game-art { order: 2; }
.game-art { --frame: var(--accent); position: relative; }
.game-art .frame { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 6px var(--deep), inset 0 0 0 9px color-mix(in srgb, var(--accent) 40%, var(--deep)); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; margin-inline: auto; align-items: start; }
.duo .frame:nth-child(2) { margin-top: 44px; }
.tall-one { max-width: 380px; margin-inline: auto; }
.game-icon { width: 64px; height: 64px; flex: none; clip-path: var(--notch); image-rendering: pixelated; }
.game-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-title { margin: 0; font-size: clamp(2rem, 3.6vw, 2.75rem); color: var(--accent); text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.game-title a { color: inherit; text-decoration: none; }
.game-short { font: 500 clamp(1.2rem, 2vw, 1.4rem)/1.45 var(--font-serif); margin: 0 0 .6rem; }
.game-price { color: var(--sage); font-size: .95rem; margin: 0 0 1.3rem; }
.pixel { image-rendering: pixelated; }
.ag-logo { width: min(300px, 70%); margin: 0 0 6px -4px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }

/* The studio: principles and the memory of Sulli */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; padding: 26px 24px 24px; background: var(--night-3); clip-path: var(--notch2); box-shadow: inset 0 0 0 3px var(--line); }
.card h3 { font-size: 1.45rem; color: var(--cream); margin-bottom: .45em; }
.card p { color: var(--sage); margin: 0; }
.card .ico { width: 42px; height: 42px; margin-bottom: 14px; image-rendering: pixelated; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.letter p { font: 500 1.22rem/1.6 var(--font-serif); color: var(--cream-2); }
.letter.cap p:first-child::first-letter { float: left; font: 400 3.6rem/.8 var(--font-display); color: var(--yuzu); padding: .08em .1em 0 0; }

.memorial { position: relative; overflow: hidden; text-align: center; padding: clamp(72px, 10vw, 128px) 0; background: radial-gradient(ellipse 70% 80% at 50% 0%, #1d2346 0%, var(--night) 70%); }
.memorial .stars { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.memorial-mark { width: 150px; height: auto; margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 0 transparent); opacity: .96; }
.memorial h2 { font: 500 clamp(2.1rem, 4.6vw, 3.1rem)/1.1 var(--font-serif); letter-spacing: .02em; color: var(--cream); }
.memorial p { max-width: 36em; margin-inline: auto; font: 500 clamp(1.15rem, 2vw, 1.3rem)/1.65 var(--font-serif); color: var(--cream-2); }
.memorial .sign { color: var(--yuzu-hi); font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-top: 1.2rem; }

/* Discord */
.discord-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #20245a, #15183d 60%, #111a19); clip-path: var(--notch2); box-shadow: inset 0 0 0 3px #3a42a8; }
.discord-panel h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.channel-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.channel-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(9, 10, 32, .55); clip-path: var(--notch); box-shadow: inset 0 0 0 2px rgba(141, 149, 255, .35); }
.channel-list .hash { font: 400 1.35rem/1 var(--font-display); color: var(--discord-hi); }
.channel-list b { font-weight: 600; }
.channel-list small { display: block; color: var(--sage); font-size: .85rem; }
.channel-list img { width: 32px; height: 32px; clip-path: var(--notch); image-rendering: pixelated; }

/* Game pages */
.game-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 85% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(var(--night-2), var(--night)); }
.game-hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.game-hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.6rem); color: var(--accent); text-shadow: 0 4px 0 rgba(0, 0, 0, .5); margin-bottom: .3em; }
.crumbs { font-size: .9rem; color: var(--sage); margin-bottom: 18px; }
.crumbs a { color: var(--sage); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features .card h3 { color: var(--accent, var(--yuzu)); }
.features .num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; font: 400 1.05rem/1 var(--font-display); background: var(--accent, var(--yuzu)); color: var(--accent-ink, var(--yuzu-ink)); clip-path: var(--notch); }
.gallery { display: grid; gap: 16px; }
.gallery.tall { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.shot { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; font: inherit; }
.shot .frame { --frame: var(--line-2); transition: transform .12s steps(2); }
.shot:hover .frame, .shot:focus-visible .frame { --frame: var(--accent, var(--yuzu)); transform: translateY(-3px); }
.shot:focus-visible { outline: none; }
.shot figcaption { margin-top: 8px; font-size: .9rem; color: var(--sage); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.info-grid .card a { font-weight: 600; }
.notice { padding: 16px 20px; background: color-mix(in srgb, var(--accent, var(--yuzu)) 12%, var(--night-3)); clip-path: var(--notch); box-shadow: inset 4px 0 0 var(--accent, var(--yuzu)); }

/* Lightbox */
.lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 9, 9, .9); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(94vh - 110px); width: auto; height: auto; display: block; }
.lightbox figcaption { text-align: center; color: var(--cream-2); }
.lightbox .lb-bar { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

/* Long reading pages: policies, support, about */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-top: 2.2em; padding-top: 1.1em; position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 6px;
  background: conic-gradient(var(--line-2) 25%, transparent 0 50%, var(--line-2) 0 75%, transparent 0) 0 0 / 6px 6px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; color: var(--cream-2); }
.prose li { margin: .35em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose strong { color: var(--cream); }
.updated { color: var(--sage); font-size: .95rem; }
.short { margin: 1.4em 0 1.8em; padding: 18px 22px; background: var(--night-3); clip-path: var(--notch); box-shadow: inset 4px 0 0 var(--yuzu); }
.short p:last-child { margin: 0; }
.toc { margin: 0 0 2em; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: .45em .75em; font-size: .92rem; color: var(--cream-2); text-decoration: none; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line-2); }
.toc a:hover { color: var(--yuzu); box-shadow: inset 0 0 0 2px var(--yuzu); }
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; }
table.odds { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds th, .odds td { padding: .6em .7em; text-align: right; border-bottom: 2px solid var(--line); white-space: nowrap; }
.odds th:first-child, .odds td:first-child { text-align: left; }
.odds thead th { font: 400 1rem/1.2 var(--font-display); color: var(--cream-2); border-bottom-color: var(--line-2); }
.odds td.zero { color: #56665f; }
.odds-cards { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 1.2em 0 1.6em; }
.odds-card { padding: 14px 16px; background: var(--night-3); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line); }
.odds-card h3 { font-size: 1.1rem; margin: 0 0 .2em; color: var(--cream); }
.odds-card .price { margin: 0 0 .6em; font-size: .85rem; color: var(--sage); }
.odds-card ul { list-style: none; margin: 0; padding: 0; }
.odds-card li { display: flex; justify-content: space-between; gap: 8px; margin: .25em 0; font-size: .95rem; font-variant-numeric: tabular-nums; }
.odds-card li span { white-space: nowrap; }
@media (max-width: 700px) { .odds-matrix { display: none; } .odds-cards { display: grid; } }
@media (max-width: 480px) { .odds-cards { grid-template-columns: 1fr 1fr; gap: 10px; } .odds-card { padding: 12px; } .odds-card li { font-size: .86rem; } .odds-card .swatch { margin-right: 6px; } }
@media (max-width: 360px) { .odds-cards { grid-template-columns: 1fr; } }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); }
.swatch.rainbow { background: linear-gradient(90deg, #ff4d40, #ffc233, #4dff80, #40e6ff, #c76bff); }
.faq details { margin: 0 0 10px; background: var(--night-3); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-display); color: var(--yuzu); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--cream-2); }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px; background: var(--night-3); clip-path: var(--notch2); box-shadow: inset 0 0 0 3px var(--line-2); margin: 1.4em 0 2em; }
.contact-card p { margin: 0; }
.mail { font: 400 clamp(1.05rem, 2.6vw, 1.35rem)/1.2 var(--font-display); letter-spacing: .01em; word-break: break-all; }
.fill-me { background: #5a2330; color: #ffd6dc; padding: 0 .3em; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.downloads .card { display: grid; gap: 12px; align-content: start; }
.downloads .card img { max-height: 220px; width: auto; max-width: 100%; justify-self: start; background: repeating-conic-gradient(#1f2f2c 0 25%, #172422 0 50%) 0 0 / 16px 16px; }

/* Footer */
.site-footer { margin-top: 0; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 3px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 1.05rem; color: var(--cream-2); margin: 0 0 .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.site-footer a { color: var(--sage); text-decoration: none; }
.site-footer a:hover { color: var(--yuzu); text-decoration: underline; }
.foot-brand p { color: var(--sage); font-size: .95rem; max-width: 26em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-base p { margin: 0; }

/* Narrow screens */
@media (max-width: 900px) {
  .game, .studio-grid, .discord-panel, .game-hero .grid { grid-template-columns: minmax(0, 1fr); }
  .game:nth-child(even) .game-art { order: 0; }
  .principles, .features, .info-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 900px) { .features, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .btns .btn { flex: 1 1 100%; } .duo { gap: 10px; } .duo .frame:nth-child(2) { margin-top: 28px; } .gallery.tall { grid-template-columns: 1fr 1fr; gap: 10px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .hero canvas, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
