/* ==========================================================================
   Alcora Games — site styles
   Fairground ticket booth meets studio pinboard: poster type, paper tickets,
   ink stamps, masking tape and hand-drawn marks. Alcor (✦) is our star.
   ========================================================================== */

/* Self-hosted fonts (latin + latin-ext for Turkish) — SIL Open Font License */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/bigshouldersdisplay-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/bigshouldersdisplay-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #110f1a;
  --ink-2: #181523;
  --ink-3: #221d30;
  --text: #efe7d8;
  --text-2: #c4baa9;
  --muted: #8d859b;
  --paper: #efe4cc;
  --paper-ink: #1b1622;
  --paper-muted: #6b6170;
  --line: rgba(239, 231, 216, 0.14);
  --line-strong: rgba(239, 231, 216, 0.3);
  --star: #ffc45c;
  --tape: rgba(238, 226, 192, 0.8);
  --discord: #5865f2;
  --discord-hi: #6c78ff;
  --live: #3ddc84;

  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;

  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5c38-6.2 79-7.4 121-4.9 36 2.1 72 1.2 113-3.3' fill='none' stroke='%23ffc45c' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M14 13.6c52-4.1 104-4.4 158-2.2 21 .8 40 .2 57-1.6' fill='none' stroke='%23ffc45c' stroke-width='2.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E");
  --scribble-discord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5c38-6.2 79-7.4 121-4.9 36 2.1 72 1.2 113-3.3' fill='none' stroke='%235865f2' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M14 13.6c52-4.1 104-4.4 158-2.2 21 .8 40 .2 57-1.6' fill='none' stroke='%235865f2' stroke-width='2.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E");
  --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .35 0 0 0 0 .24 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  will-change: transform; /* own compositor layer: never repainted while scrolling */
  transform: translateZ(0);
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
main { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px dashed var(--star); outline-offset: 4px; }
::selection { background: var(--star); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type & hand-made bits ---------- */

.section-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1;
}
.section-lede {
  margin-top: 0.9rem;
  max-width: 44ch;
  color: var(--text-2);
}

.scribble {
  padding-bottom: 0.04em;
  background: var(--scribble) left 100% / 100% 0.16em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--star);
}
.scribble--discord { background-image: var(--scribble-discord); color: var(--discord); }

.stamp {
  display: inline-block;
  padding: 0.35em 0.65em 0.28em;
  border: 2.5px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3.5px currentColor;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent, var(--star));
  transform: rotate(-6deg);
  -webkit-mask: var(--ink-mask) 0 0 / 220px 220px;
  mask: var(--ink-mask) 0 0 / 220px 220px;
}

.tape {
  position: absolute;
  z-index: 4;
  width: 84px;
  height: 24px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  clip-path: polygon(0 10%, 6% 0, 12% 8%, 18% 0, 82% 3%, 88% 10%, 94% 0, 100% 8%, 100% 92%, 94% 100%, 88% 90%, 82% 98%, 18% 94%, 12% 100%, 6% 92%, 0 98%);
  pointer-events: none;
}
.tape::after { content: ""; position: absolute; inset: 0; background: var(--paper-grain); opacity: 0.8; }

/* paper ticket (Discord pass, press factsheet) */
.ticket {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--paper-grain);
  pointer-events: none;
}

/* text link with a pencil underline */.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-block: 0.4rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.link svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 1.2rem; bottom: 0.05rem;
  height: 6px;
  background: var(--scribble) center / 100% 100% no-repeat;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.link:hover { color: var(--star); }
.link:hover::after { opacity: 1; }
.link:hover svg { transform: translate(2px, -2px); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  --btn-shadow: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 3px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 3px 3px 0 var(--btn-shadow);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }
.btn:hover { --btn-bd: var(--text); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-shadow); }

.btn--primary { --btn-bg: var(--paper); --btn-fg: var(--paper-ink); --btn-bd: var(--paper); --btn-shadow: var(--accent, var(--star)); }
.btn--accent { --btn-bg: var(--accent, var(--star)); --btn-fg: var(--paper-ink); --btn-bd: var(--accent, var(--star)); --btn-shadow: var(--paper); }
.btn--primary:hover,
.btn--accent:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--btn-shadow); }
.btn--ghost { --btn-bg: rgba(17, 15, 26, 0.35); }

.btn--discord { --btn-bg: var(--discord); --btn-fg: #fff; --btn-bd: var(--discord); }
.btn--discord:hover { --btn-bg: var(--discord-hi); --btn-bd: var(--discord-hi); }

.btn--sm { min-height: 36px; padding: 0.45rem 0.8rem; font-size: 0.88rem; box-shadow: none; }
.btn--lg { min-height: 56px; padding: 0.95rem 1.5rem; font-size: 1.02rem; --btn-shadow: var(--paper-ink); }
.btn--lg svg { width: 1.3rem; height: 1.3rem; }
.btn--lg:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--btn-shadow); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* The frosted backdrop lives on a pseudo-element: a backdrop-filter on the header itself would
   turn it into the containing block for the fixed mobile menu, squashing the menu into the bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(17, 15, 26, 0.95);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: auto; }
.brand__logo { width: auto; height: 42px; }
.brand__star { width: 1.1rem; height: 1.1rem; fill: var(--star); animation: twinkle 7s ease-in-out infinite; }
.brand__name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-nav ul { display: flex; gap: 1.8rem; }
.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; bottom: -7px;
  height: 6px;
  background: var(--scribble) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { clip-path: inset(0 0 0 0); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang { display: flex; gap: 0.15rem; min-width: 4.4rem; }
.lang button {
  padding: 0.35rem 0.45rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--text); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle__bar,
.nav-toggle__bar::before {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle__bar { top: 18px; }
.nav-toggle__bar::before { content: ""; left: 0; right: 4px; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; right: 0; transform: rotate(-90deg); }

/* ---------- Hero: who we are + rotating game showcase ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(640px, 94svh);
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.hero__bgs { position: absolute; inset: 0; z-index: -1; }
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__bg.is-active { opacity: 1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: 70% 40%; will-change: transform; }
.hero__bg.is-active img { animation: drift 16s linear forwards; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 15, 26, 0.96) 0%, rgba(17, 15, 26, 0.86) 42%, rgba(17, 15, 26, 0.45) 75%, rgba(17, 15, 26, 0.6) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(17, 15, 26, 0) 45%),
    linear-gradient(180deg, rgba(17, 15, 26, 0.75) 0%, rgba(17, 15, 26, 0) 25%);
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 7rem;
}

.hero__kicker { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--star); }
.hero__kicker svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.hero__title {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.84;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero__about { display: grid; gap: 0.85rem; margin-top: 1.3rem; max-width: 56ch; color: var(--text-2); }
.hero__lede { font-size: 1.15rem; color: var(--text); }
.hero__about .scribble { color: var(--star); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.6rem; margin-top: 2rem; }

.hero__showcase { position: relative; justify-self: end; width: min(100%, 360px); }
.hero__label {
  margin-bottom: 1.1rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-2);
}
.hero__cards { display: grid; }
.hero-card {
  grid-area: 1 / 1;
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: rotate(3deg) translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.7s;
}
.hero-card.is-active { opacity: 1; visibility: visible; transform: rotate(3deg); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s; }
.hero-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--paper-grain); pointer-events: none; }
.hero-card .tape { top: -11px; left: 50%; margin-left: -42px; transform: rotate(-4deg); }
.hero-card__art { display: block; padding: 9px 9px 0; }
.hero-card__art img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 3px; }
.hero-card__body {
  position: relative;
  margin-top: 12px;
  padding: 14px 16px 16px;
  border-top: 2px dashed rgba(27, 22, 34, 0.32);
}
.hero-card__status { font-size: 0.85rem; font-weight: 600; color: color-mix(in srgb, var(--accent) 55%, var(--paper-ink)); }
.hero-card__name { margin-top: 0.3rem; font-family: var(--display); font-size: 1.9rem; font-weight: 900; text-transform: uppercase; line-height: 0.95; }
.hero-card__genre { margin-top: 0.3rem; font-size: 0.9rem; color: var(--paper-muted); }
.hero-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 1rem; }
.hero-card__actions .btn--accent { --btn-shadow: var(--paper-ink); box-shadow: 3px 3px 0 var(--btn-shadow); }
.hero-card .link { color: var(--paper-ink); }
.hero-card .link svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.hero-card .link:hover { color: color-mix(in srgb, var(--accent) 50%, var(--paper-ink)); }

/* the game index along the bottom of the hero: a lit band of ticket stubs, one per game */
.hero__rail {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.9rem var(--gutter) 1.1rem;
}
.hero__rail::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 15, 26, 0.7), rgba(17, 15, 26, 0.95));
  border-top: 1.5px dashed var(--line-strong);
}
.hero__rail-label {
  align-self: center;
  flex: none;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--star);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__index {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
}
.hero__index button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  border-radius: 6px;
  background: rgba(239, 231, 216, 0.06);
  border: 1.5px solid var(--line);
  text-align: left;
  color: var(--text-2);
  overflow: hidden;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.hero__index button::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent, var(--text));
  transform: scaleX(0);
  transform-origin: left;
}
.hero__index button:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.hero__index button[aria-current="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, rgba(17, 15, 26, 0.6));
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}
.hero__index button[aria-current="true"]::before { animation: progress var(--dur, 8s) linear forwards; }
.hero.is-paused .hero__index button[aria-current="true"]::before { animation-play-state: paused; }
.hero__thumb {
  flex: none;
  width: clamp(84px, 9vw, 120px);
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--paper);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.hero__index button[aria-current="true"] .hero__thumb,
.hero__index button:hover .hero__thumb { opacity: 1; }
.hero__tab-text { display: grid; gap: 0.25rem; min-width: 0; }
.hero__name {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__status { font-size: 0.82rem; font-weight: 600; color: var(--accent); }.hero__pause {
  display: grid;
  place-items: center;
  width: 48px;
  border-radius: 6px;
  color: var(--muted);
}
.hero__pause svg { width: 13px; height: 13px; fill: currentColor; }
.hero__pause:hover { color: var(--text); }

.hero__noscript { position: relative; z-index: 2; padding-bottom: 6rem; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; }

/* ---------- Studio ---------- */

.studio { padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1.5px dashed var(--line-strong); }
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.studio__kicker { font-weight: 600; color: var(--star); }
.studio__title {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  text-wrap: balance;
}
.studio__copy { display: grid; gap: 1rem; color: var(--text-2); font-size: 1.05rem; max-width: 54ch; }

/* ---------- Games ---------- */

/* the section reads as its own room: lighter floor + ticket-perforation edge */
.games {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem);
  background: var(--ink-2);
}
.games::before {
  content: "";
  position: absolute;
  inset: -9px 0 auto;
  height: 18px;
  background: radial-gradient(circle at 9px 9px, var(--ink) 6px, transparent 6.5px) 0 0 / 26px 18px repeat-x;
}

.games__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1rem 2.5rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.games__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.84;
  background: var(--scribble) left 100% / 100% 0.14em no-repeat;
  padding-bottom: 0.12em;
}
.games__lede { max-width: 44ch; color: var(--text-2); padding-bottom: 0.4rem; }
.games__list { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.follow, .press, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* each game is its own booth, lit by its own art and colour */
.game {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, var(--ink));
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent);
}
.game__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.game__backdrop img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(24px) saturate(1.3);
  transform: scale(1.2) translateZ(0);
  will-change: transform;
  opacity: 0.32;
}
.game__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(17, 15, 26, 0.2), rgba(17, 15, 26, 0.75) 70%);
}
.game__number {
  position: absolute;
  top: -0.12em; right: 0.12em;
  z-index: -1;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(8rem, 18vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 35%, transparent);
  pointer-events: none;
}

.game__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }
.game__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 0.9;
}
.game .stamp { box-shadow: inset 0 0 0 2px transparent, inset 0 0 0 3.5px currentColor; }

.game__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}
.game:nth-child(even) .game__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.game:nth-child(even) .game__media { order: 2; }

.game__media { position: relative; }
.game__media > .tape:first-child { top: -10px; left: -14px; transform: rotate(-30deg); }
.game__media > .tape + .tape { top: -10px; right: -14px; left: auto; transform: rotate(26deg); }

/* player */
.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #000 center / cover no-repeat;
  box-shadow: 0 0 0 6px var(--paper), 0 26px 50px -24px rgba(0, 0, 0, 0.8);
}
.player__poster,
.player__screen,
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.player__poster { object-fit: cover; cursor: zoom-in; transition: transform 1.2s var(--ease), opacity 0.3s; }
.player[data-kind="video"] .player__poster { cursor: pointer; }
.player:not(.is-started):hover .player__poster { transform: scale(1.02); }
.player__screen { pointer-events: none; }
.player__video { object-fit: contain; background: #000; pointer-events: auto; }
.player.is-started .player__poster { opacity: 0; pointer-events: none; }

.player[data-kind="video"]:not(.is-started)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 15, 26, 0.8), rgba(17, 15, 26, 0) 55%);
  pointer-events: none;
}
.player__title {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 0.9rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  pointer-events: none;
}
.player.is-started .player__title,
.player[data-kind="image"] .player__title { display: none; }

.player__big { position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; }
.player__big span {
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.player__big svg { width: 34%; height: 34%; fill: currentColor; margin-left: 6%; }
.player__big:hover span { transform: translate(-2px, -2px) rotate(-6deg); box-shadow: 7px 7px 0 var(--accent); }
.player.is-started .player__big { display: none; }

/* step through trailers and screenshots right on the stage */
.player__step {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 3px 3px 0 var(--accent);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.player__step svg { width: 20px; height: 20px; }
.player__step--prev { left: 0.8rem; }
.player__step--next { right: 0.8rem; }
.player__step:hover { opacity: 1; transform: scale(1.08) rotate(-4deg); }
.player.is-playing .player__step { opacity: 0; pointer-events: none; }
.player.is-playing:hover .player__step { opacity: 0.85; pointer-events: auto; }

.player__spinner {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid rgba(239, 231, 216, 0.25);
  border-top-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.player.is-loading .player__spinner { opacity: 1; animation: spin 0.8s linear infinite; }

.player__bar {
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.7rem;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  background: rgba(17, 15, 26, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s;
}
.player.is-started .player__bar { display: flex; }
.player.is-playing:not(:hover):not(:focus-within) .player__bar { opacity: 0; }
.player__btn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: var(--text); }
.player__btn svg { width: 18px; height: 18px; fill: currentColor; }
.player__btn:hover { color: var(--accent); }
.player__time { flex: none; font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--text-2); }
.player__vol { display: flex; align-items: center; flex: none; }

.player__seek,
.player__volume {
  --p: 0%;
  height: 20px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.player__seek { flex: 1; min-width: 60px; }
.player__volume { width: 76px; }
.player__seek::-webkit-slider-runnable-track,
.player__volume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--line-strong) var(--p));
}
.player__seek::-moz-range-track,
.player__volume::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.player__seek::-moz-range-progress,
.player__volume::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.player__seek::-webkit-slider-thumb,
.player__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--paper);
  border: 0;
}
.player__seek::-moz-range-thumb,
.player__volume::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 0; }
.player:fullscreen { box-shadow: none; aspect-ratio: auto; }

/* thumbnails */
.strip-wrap { position: relative; margin-top: 1.3rem; }
.strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 6px;
}
.strip::-webkit-scrollbar { display: none; }
.strip { cursor: grab; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging button { pointer-events: none; }
.strip button {
  position: relative;
  flex: 0 0 clamp(100px, 10vw, 136px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  scroll-snap-align: start;
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
/* the selected frame is drawn inside the thumbnail so the strip's edge can't clip it */
.strip button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2.5px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.25s;
}
.strip button:hover { opacity: 0.95; transform: rotate(-1.5deg); }
.strip button[aria-current="true"] { opacity: 1; }
.strip button[aria-current="true"]::before { border-color: var(--accent); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip .is-video::after {
  content: "";
  position: absolute;
  left: 7px; bottom: 7px;
  z-index: 2;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231b1622' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.strip-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: opacity 0.25s;
}
.strip-nav svg { width: 16px; height: 16px; }
.strip-nav--prev { left: -12px; }
.strip-nav--next { right: -12px; }
.strip-nav[disabled] { opacity: 0; pointer-events: none; }

/* info */
.game__info { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.2rem; }
.game__genre { font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.game__desc { color: var(--text); }
.game__meta { display: grid; gap: 0.1rem; font-size: 0.92rem; color: var(--text-2); }
.game__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 0.5rem; }

/* devlog posts pinned to the board — cover image from Steam, localized when Steam has it */
.notes { margin-top: clamp(2rem, 4vw, 2.8rem); padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); }
.notes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.notes__head h4 { font-family: var(--display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.notes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.note {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 2px;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.7);
  transform: rotate(var(--tilt, -1deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.note::before { content: ""; position: absolute; inset: 0; background: var(--paper-grain); pointer-events: none; }
.note .tape { top: -10px; left: 50%; margin-left: -42px; transform: rotate(2deg); }
.notes__list li:nth-child(2) .note { --tilt: 0.8deg; }
.notes__list li:nth-child(3) .note { --tilt: -0.4deg; }
.note:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 20px 30px -16px rgba(0, 0, 0, 0.8); }
.note__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1px; background: #d9ccb0; }
.note__body { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; padding: 0.8rem 0.5rem 0.5rem; }
.note__date { font-size: 0.8rem; color: var(--paper-muted); }
.note__title { font-weight: 700; line-height: 1.3; }
.note__summary {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a4250;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note__more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: auto; padding-top: 0.4rem; font-size: 0.85rem; font-weight: 600; color: color-mix(in srgb, var(--accent) 45%, var(--paper-ink)); }
.note__more svg { width: 0.85rem; height: 0.85rem; }

/* ---------- Discord (the big ticket) ---------- */

.discord {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: radial-gradient(60% 70% at 80% 50%, rgba(88, 101, 242, 0.24), transparent 70%);
  border-block: 1.5px dashed var(--line-strong);
}

/* The Discord pass. As you scroll, a tear runs down the perforation (--tear 0..1 from main.js):
   the flap above the tear front peels away like a page, the rest of the stub stays attached. */
.ticket--discord {
  --stub: clamp(70px, 7vw, 96px);
  --tear: 0;
  --fall: 0;
  --front: calc(var(--tear) * 100%);
  --notch: 13px;
  display: grid;
  grid-template-columns: var(--stub) 1fr;
  background: none;
  transform: rotate(-0.5deg);
}
/* static shadow behind the pass (a drop-shadow filter here re-rendered the whole pass on every change) */
.ticket--discord::before {
  content: "";
  position: absolute;
  inset: 6px 0 0 var(--stub);
  z-index: -1;
  background: none;
  border-radius: 8px;
  box-shadow: 0 34px 70px -26px rgba(88, 101, 242, 0.55);
  pointer-events: none;
}

.ticket__stub-wrap { position: relative; z-index: 1; }
.ticket__stub {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0;
  background: var(--discord);
  color: #fff;
  border-radius: 8px 0 0 8px;
  border-right: 3px dashed rgba(239, 228, 204, 0.85);
  -webkit-mask:
    radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
}
.ticket__stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticket__stub svg { width: 30px; height: 30px; fill: currentColor; }

/* The tear, in two scroll-driven phases set by main.js:
   --tear 0..1  the tear runs down the perforation; the stub pivots on the tip of the tear and
                curls slightly towards the viewer (the part below the tip tucks under the body)
   --fall 0..1  the stub comes loose and drops towards the screen, rolling as it goes
   Scrolling back up plays it all in reverse. */
.ticket__stub-wrap {
  perspective: 900px;
  /* while tearing, nothing may hang below the ticket's bottom edge */
  clip-path: inset(-200vh -200vw 0 -200vw);
}
.ticket--discord.is-falling .ticket__stub-wrap { z-index: 3; clip-path: none; }
/* the part the tear hasn't reached yet: flat, still joined to the ticket */
.ticket__stub--base { clip-path: inset(var(--front) 0 0 0); }
.ticket__stub--flap {
  transform-origin: 100% var(--front);
  transform:
    translate3d(calc(var(--fall) * -60px), calc(var(--fall) * 220px), calc(var(--fall) * 320px))
    rotateX(calc(var(--fall) * 38deg))
    rotateY(calc(var(--tear) * 16deg + var(--fall) * 26deg))
    rotateZ(calc(var(--tear) * var(--tear) * -8deg - var(--tear) * 3deg - var(--fall) * 22deg));
  opacity: calc(1 - var(--fall) * var(--fall) * var(--fall));
  backface-visibility: visible;
  will-change: transform, opacity;
}
/* the top corner curls over as it tears: the corner is cut away and its folded-back
   underside is drawn on top, growing with the tear (and flattening when scrolling back) */
.ticket__stub--flap {
  --curl: calc(var(--tear) * 58px + var(--fall) * 14px);
  /* only the torn part (above the tip) moves; the rest is drawn by the flat base below */
  clip-path: polygon(var(--curl) 0, 100% 0, 100% var(--front), 0 var(--front), 0 var(--curl));
}
.ticket__curl {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  width: var(--curl);
  height: var(--curl);
  filter: drop-shadow(3px 4px 3px rgba(10, 8, 30, 0.45));
  pointer-events: none;
}
.ticket__curl::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  border-radius: 0 0 6px 0;
  /* the paper's underside, rounded by light across the roll */
  background: linear-gradient(315deg, #4b52c4 0%, #8d95f6 38%, #dfe1ff 62%, #a9afff 78%, #6a72e6 100%);
}
/* a little shade as the paper turns away from the light */
.ticket__stub--flap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 30, 0.4), transparent 45%);
  opacity: calc(var(--tear) * 0.6 + var(--fall) * 0.4);
  pointer-events: none;
}
.ticket__body { z-index: 2; }
/* ragged paper fibres along both torn edges, only as far as the tear has run */
.ticket__stub--flap::after,
.ticket__body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  clip-path: inset(0 0 calc(100% - var(--front)) 0);
  will-change: clip-path;
  opacity: min(1, calc(var(--tear) * 6));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 40' preserveAspectRatio='none'%3E%3Cpath fill='%23f3ead6' d='M8 0H4L1 3l4 3-3 4 4 4-3 4 2 4-4 4 3 4-2 4 3 3-2 3h5z'/%3E%3C/svg%3E") 0 0 / 100% 38px repeat-y;
  pointer-events: none;
}
.ticket__stub--flap::after { right: -3px; }
.ticket__body::after { left: 0; z-index: 1; transform: scaleX(-1); filter: brightness(0.86); }
.ticket__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.8rem, 4.5vw, 3.6rem);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
}
.ticket__body::before { content: ""; position: absolute; inset: 0; background: var(--paper-grain); pointer-events: none; border-radius: inherit; }
.discord__live { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; color: var(--discord); }
.ticket--discord h2 {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 0.92;
}
.discord__copy { margin-top: 1.1rem; max-width: 48ch; color: #463e4d; }
.discord__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.8rem; }
.discord__counts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-size: 0.9rem; color: var(--paper-muted); }
.discord__counts strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--paper-ink);
  margin-right: 0.25rem;
  vertical-align: -0.1em;
}
.discord__counts > span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--live);
  animation: live-blink 2.2s ease-in-out infinite;
  will-change: opacity;
  vertical-align: 0.2em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25); animation: live-blink 2.2s ease-in-out infinite; will-change: opacity; }

.perks { border-top: 2px dashed rgba(27, 22, 34, 0.2); }
.perks li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 2px dashed rgba(27, 22, 34, 0.2);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}
.perks svg { width: 0.9rem; height: 0.9rem; fill: var(--discord); transform: translateY(0.05rem) rotate(-10deg); }
.perks small { display: block; margin-top: 0.2rem; font-size: 0.9rem; font-weight: 400; color: var(--paper-muted); }

/* ---------- Follow: stickers ---------- */

.follow { padding-block: clamp(4.5rem, 9vw, 7rem); text-align: center; }
.follow .section-lede { margin-inline: auto; }

.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.2rem;
  max-width: 860px;
  margin: 2.6rem auto 0;
}
.sticker {
  --bg: var(--paper);
  --fg: var(--paper-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem 0.75rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5.5px rgba(239, 231, 216, 0.25), 0 12px 22px -12px rgba(0, 0, 0, 0.8);
  transform: rotate(var(--r, -2deg));
  transition: transform 0.35s var(--ease);
}
.sticker svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.sticker:hover { transform: rotate(0) scale(1.06); }
.sticker--yt { --bg: #ff4e45; --fg: #fff; --r: -3deg; }
.sticker--x { --bg: var(--paper); --r: 2deg; }
.sticker--ig { --bg: #f2a1c2; --r: -1deg; }
.sticker--tt { --bg: #7fd6c8; --r: 3deg; }
.sticker--steam { --bg: #1b2838; --fg: #c7d5e0; --r: -2.5deg; }
.sticker--in { --bg: #8ab4f8; --r: 1.5deg; }
.sticker--fb { --bg: var(--star); --r: -1.5deg; }

/* ---------- Press ---------- */

.press { padding-block: clamp(4rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem); border-top: 1.5px dashed var(--line-strong); }
.press__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.press__mail {
  display: inline-block;
  margin-top: 1.6rem;
  padding-bottom: 0.3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  text-transform: uppercase;
  background: var(--scribble) left bottom / 100% 0.3rem no-repeat;
  transition: color 0.2s;
}
.press__mail:hover { color: var(--star); }

.press__kits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.kit {
  position: relative;
  display: block;
  padding: 8px 8px 0;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 3px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.35s var(--ease);
}
.kit::before { content: ""; position: absolute; inset: 0; background: var(--paper-grain); pointer-events: none; }
.kit img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 2px; }
.kit__text { display: block; padding: 0.8rem 0.4rem 0.9rem; }
.kit strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.kit__text > span { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.3rem; font-size: 0.88rem; font-weight: 600; color: var(--paper-muted); }
.kit__text svg { width: 0.95rem; height: 0.95rem; }
.kit:hover { transform: rotate(0) translateY(-4px); }
.kit:hover .kit__text > span { color: var(--paper-ink); }

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(3rem, 6vw, 4rem); overflow: hidden; }
.site-footer__mark {
  display: flex;
  align-items: flex-start;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 19vw, 16rem);
  line-height: 0.76;
  text-transform: uppercase;
  color: var(--ink-3);
  user-select: none;
}
.site-footer__mark svg { width: 0.2em; height: 0.2em; fill: var(--star); margin: 0.02em 0 0 0.04em; }
.site-footer__logo { display: block; width: clamp(220px, 34vw, 440px); height: auto; margin-inline: auto; }
.site-footer__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
.site-footer__socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.site-footer__socials svg { width: 19px; height: 19px; fill: currentColor; }
.site-footer__socials a:hover { color: var(--ink); border-color: var(--star); background: var(--star); transform: rotate(-8deg); }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.6rem 2.2rem;
  margin-top: 1.4rem;
  border-top: 1.5px dashed var(--line-strong);
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a:hover { color: var(--text); }

/* ---------- Screenshot viewer ---------- */

.viewer {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 10, 17, 0.97);
  color: var(--text);
}
.viewer::backdrop { background: rgba(11, 10, 17, 0.8); }
.viewer[open] { display: grid; place-items: center; animation: fade 0.3s var(--ease); }
.viewer__stage { display: grid; place-items: center; width: min(92vw, calc(82vh * 16 / 9)); }
.viewer__stage img { width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 0 0 6px var(--paper); }
.viewer__caption {
  position: absolute;
  left: 50%; bottom: 1.4rem;
  transform: translateX(-50%);
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
.viewer__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 3px 3px 0 var(--star);
  transition: transform 0.2s var(--ease);
}
.viewer__btn svg { width: 20px; height: 20px; }
.viewer__btn:hover { transform: translate(-1px, -1px) rotate(-6deg); }
.viewer__close { top: 1.2rem; right: 1.2rem; }
.viewer__prev { left: 1.2rem; top: 50%; margin-top: -23px; }
.viewer__next { right: 1.2rem; top: 50%; margin-top: -23px; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .ticket--discord[data-reveal].is-visible { transform: rotate(-0.5deg); }

/* ---------- Keyframes ---------- */

@keyframes drift { to { transform: scale(1) translate3d(-1.5%, 0, 0); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(18deg) scale(0.86); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes live-blink { 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .game__grid,
  .game:nth-child(even) .game__grid { grid-template-columns: minmax(0, 1fr); }
  .game:nth-child(even) .game__media { order: 0; }
  .ticket__body { grid-template-columns: minmax(0, 1fr); }
  .notes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes__list li:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    display: flex;
    align-items: flex-start;
    padding: 1.5rem var(--gutter);
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav li { border-bottom: 1.5px dashed var(--line); }
  .site-nav a {
    display: block;
    padding: 0.8rem 0;
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text);
  }
  .site-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open { background: var(--ink); border-bottom-color: var(--line); }
  body.menu-open { overflow: hidden; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); align-content: end; padding-bottom: 6rem; }
  .hero__showcase { justify-self: start; width: min(100%, 340px); }
  .studio__grid,
  .press__grid,
  .games__intro { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body::after { display: none; }
  .game__backdrop img { filter: blur(16px); }
  .header-actions { gap: 0.4rem; }
  .header-actions .btn--discord span { display: none; }
  .header-actions .btn--discord { padding-inline: 0.65rem; }

  .hero__bg::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(17, 15, 26, 0.9) 55%, rgba(17, 15, 26, 0.55) 100%); }
  .hero__rail-label { display: none; }
  .hero__index { gap: 0.6rem; }
  .hero__index button { padding: 0.45rem; gap: 0.5rem; }
  .hero__thumb { width: 64px; }
  .hero__name { font-size: 0.95rem; }
  .hero__status { display: none; }

  .game { padding: 1.2rem 1rem 1.6rem; border-radius: 8px; }
  .strip-nav { display: none; }
  .game__media > .tape { width: 64px; height: 20px; }
  .player__time, .player__volume { display: none; }
  .notes__list { grid-template-columns: minmax(0, 1fr); }
  .notes__list li:nth-child(3) { display: block; }
  .note { transform: none; }

  .ticket--discord { grid-template-columns: minmax(0, 1fr); transform: none; }
  .ticket__stub, .ticket__body { -webkit-mask: none; mask: none; transform: none; }
  .ticket__stub { position: static; border-radius: 8px 8px 0 0; }
  .ticket__stub--base { clip-path: none; }
  .ticket__stub-wrap { clip-path: none; }
  .ticket__stub--flap { display: none; }
  .ticket__body { border-radius: 0 0 8px 8px; }
  .ticket__stub::after, .ticket__body::after { display: none; }
  .js .ticket--discord[data-reveal].is-visible { transform: none; }
  .ticket__stub { flex-direction: row; padding: 0.9rem 1.4rem; border-right: 0; border-bottom: 3px dashed rgba(239, 228, 204, 0.85); }
  .ticket__stub span { writing-mode: horizontal-tb; transform: none; font-size: 1.15rem; }
  .ticket__stub svg { width: 26px; height: 26px; }
  .discord__foot .btn { width: 100%; justify-content: center; }

  .sticker { font-size: 1.15rem; padding: 0.6rem 0.95rem 0.6rem 0.8rem; }
  .press__kits { grid-template-columns: minmax(0, 1fr); }
  .press__mail { font-size: 1.25rem; word-break: break-all; }

  .viewer__prev, .viewer__next { top: auto; bottom: 1rem; margin-top: 0; }
  .viewer__caption { bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__bg.is-active img { animation: none; transform: none; }
  .ticket__stub--base { clip-path: none; }
  .ticket__stub-wrap { clip-path: none; }
  .ticket__stub--flap, .ticket__body::after { display: none; }
  .hero__index button[aria-current="true"]::before { animation: none; transform: scaleX(1); }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Press kit pages (press/<game>/) ---------- */

.pk .site-header { justify-content: space-between; }
.pk-main { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: 4rem; }
.pk-hero { max-width: 46rem; }
.pk-title {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.9;
}
.pk-genre { margin-top: 0.8rem; font-weight: 600; color: var(--accent); }
.pk-lede { margin-top: 0.8rem; color: var(--text-2); max-width: 56ch; }
.pk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 1.6rem; }

.pk-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.pk-facts { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.4rem 1.4rem 1.2rem; transform: rotate(-1deg); }
.pk-facts h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.pk-facts dl { margin-top: 0.9rem; border-top: 2px dashed rgba(27, 22, 34, 0.25); }
.pk-facts dt { margin-top: 0.7rem; font-size: 0.8rem; color: var(--paper-muted); }
.pk-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.pk-facts dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pk-facts p { margin-top: 1rem; padding-top: 0.8rem; border-top: 2px dashed rgba(27, 22, 34, 0.25); font-size: 0.88rem; color: var(--paper-muted); }

.pk-block + .pk-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pk-h { font-family: var(--display); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 1rem; }
.pk-video { width: 100%; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 6px var(--paper); }
.pk-dl { margin-top: 0.8rem; }
.pk-note { margin-top: 0.3rem; color: var(--text-2); font-size: 0.92rem; }

.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.pk-grid--logos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pk-item { display: block; }
.pk-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; transition: transform 0.3s var(--ease); }
.pk-grid--logos .pk-item img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 1rem;
  background: repeating-conic-gradient(#2a2438 0% 25%, #221d30 0% 50%) 50% / 18px 18px;
}
.pk-item span { display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.pk-item:hover img { transform: rotate(-1deg) scale(1.02); }
.pk-item:hover span { color: var(--star); }

@media (max-width: 900px) {
  .pk-layout { grid-template-columns: minmax(0, 1fr); }
  .pk-facts { position: static; transform: none; }
}
.pk-back { margin-bottom: 1.4rem; }
