/* torcua.com
   Colours and fonts mirror brand/tokens.css. Black first, one yellow.
   Product colours (Cyclo gold/red/blue) appear only inside that product's own art. */

:root {
  --yellow: #F5C518;
  --on-yellow: #090909;
  --black: #090909;
  --surface: #1C1C1C;
  --line: #2E2E2E;
  --line-2: #3A3A3A;
  --grey: #A0A0A0;
  --paper: #F5F5F0;
  --card: #F3EFE4;           /* playing-card stock: paper, a touch warmer */
  --ink: #141414;

  --display: 'Encode Sans Expanded', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Encode Sans', 'Helvetica Neue', Arial, sans-serif;

  --g: clamp(20px, 4vw, 56px);          /* side gutter */
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }   /* components set display, so hidden has to win */
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }

/* Film grain over everything: keeps the black from looking flat */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .045;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Shared type */
/* Section labels: plain sentence case, the way a person would label a section */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 1rem/1.2 var(--text); color: var(--grey);
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: var(--surface); color: var(--paper);
  font: 600 .8125rem/1 var(--text);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--dev { background: #E2553F; }
.dot--live { background: var(--yellow); box-shadow: 0 0 0 0 rgba(245, 197, 24, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); } }

.display {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 8.5rem); line-height: .88; letter-spacing: -0.05em;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1.5px solid var(--yellow);
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Reveal on scroll (only when JS runs, so the page never hides content without it) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Page-load entrance for the hero (pure CSS, so it never waits on scrolling) */
.rise { animation: rise 1.1s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ───────────── Nav ───────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--g);
  transition: background-color .35s, color .35s, padding .35s;
}
.nav.is-solid { background: rgba(9, 9, 9, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); padding-block: 12px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--display); letter-spacing: -0.045em; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); list-style: none; }
.nav li { display: flex; }
.nav a:not(.nav-brand) {
  display: inline-flex; align-items: center; gap: 8px; height: 36px;
  text-decoration: none; font: 600 .9375rem/1 var(--text); color: var(--grey); transition: color .2s, background-color .2s, border-color .2s;
}
.nav a:not(.nav-brand):hover { color: var(--paper); }
.nav .nav-mail { color: var(--paper); padding: 0 16px; margin-left: -4px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.nav .nav-mail:hover { border-color: var(--yellow); }
.nav .nav-mail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.nav.on-yellow .nav-mail { border-color: rgba(9, 9, 9, .35); }
.nav.on-yellow { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--on-yellow); }
.nav.on-yellow a:not(.nav-brand), .nav.on-yellow .nav-mail { color: var(--on-yellow); }
.nav.on-yellow .nav-mail::before { background: var(--on-yellow); }

/* ───────────── Hero: the coin pile ───────────── */
.hero {
  position: relative; min-height: max(620px, 100svh); overflow: hidden; isolation: isolate;
  padding: calc(96px + 4vh) var(--g) 0;
}
.hero::before { /* warm light falling on the pile */
  content: ""; position: absolute; inset: auto 0 0; height: 70%; z-index: -1;
  background: radial-gradient(70% 90% at 50% 100%, rgba(245, 197, 24, .10), transparent 70%);
}
.hero-pile { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; cursor: grab; }
.hero-pile.is-grabbing { cursor: grabbing; }
.hero-copy { position: relative; z-index: 1; pointer-events: none; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero-copy a { pointer-events: auto; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font: 500 1rem/1 var(--text); color: var(--grey); }
.hero-kicker img { width: 20px; }
.hero h1 { font: 800 clamp(3rem, 7.6vw, 8rem)/.92 var(--display); letter-spacing: -0.05em; max-width: 9.5em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-sub { margin-top: 28px; color: var(--grey); font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 30em; }
.hero-sub a { color: var(--paper); text-decoration-color: var(--yellow); text-underline-offset: 4px; transition: color .2s; }
.hero-sub a:hover { color: var(--yellow); }
.hero-count {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 8px 18px 8px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(28, 28, 28, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 .9375rem/1 var(--text); color: var(--grey);
}
.hero-count img { width: 26px; height: 26px; }
.hero-count b {
  display: inline-block; min-width: 1.4ch; margin-right: -2px;
  font: 800 1.25rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--paper);
}
.hero-count b.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); color: var(--yellow); } }

/* ───────────── Statement ───────────── */
.statement { padding: clamp(110px, 16vw, 240px) var(--g); max-width: var(--max); margin: 0 auto; }
.statement-text {
  font: 500 clamp(1.75rem, 4.3vw, 4.1rem)/1.14 var(--display); letter-spacing: -0.03em;
  max-width: 19.5em; text-wrap: balance;
}
.statement-text.is-lighting .w { color: var(--line-2); transition: color .5s ease; }
.statement-text.is-lighting .w.lit { color: var(--paper); }
.chip-wrap { white-space: nowrap; }   /* the comma after a chip never wraps onto its own line */
.inline-chip {
  display: inline-flex; align-items: center; gap: .22em; vertical-align: -0.08em;
  text-decoration: none; color: var(--paper); white-space: nowrap; font-weight: 800;
  transition: color .2s;
}
.inline-chip img, .inline-chip svg { width: .92em; height: .92em; border-radius: .22em; flex: none; transition: transform .4s var(--ease); }
.inline-chip:hover { color: var(--yellow); }
.inline-chip:hover img, .inline-chip:hover svg { transform: rotate(-8deg) scale(1.08); }
.statement-text.is-lighting .inline-chip { opacity: .25; transition: opacity .5s, color .2s; }
.statement-text.is-lighting .inline-chip.lit { opacity: 1; }

/* Shared spin, used by Cyclo's orbits and rolling ring */
.roll { transform-box: view-box; transform-origin: 50% 50%; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Spanish-deck playing card (used by the 404 page) */
.card {
  --cw: 240px;
  position: relative; display: block; width: var(--cw); aspect-ratio: 61 / 95;
  border-radius: calc(var(--cw) * .055); text-decoration: none; color: var(--ink);
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-10px); }
.paper {
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .7), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    var(--card);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 0 rgba(0, 0, 0, .25), 0 40px 70px -30px rgba(0, 0, 0, .95);
}
.card-frame {
  position: absolute; inset: 5.5%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: center;
  border: 1.5px solid var(--ink); border-radius: calc(var(--cw) * .025); padding: 19% 15% 17%; text-align: center;
}
.card-index { position: absolute; top: 3.2%; left: 5.5%; display: grid; justify-items: center; gap: calc(var(--cw) * .012); }
.card-index b { font: 800 calc(var(--cw) * .1)/1 var(--display); letter-spacing: -0.04em; }
.card-index img { width: calc(var(--cw) * .058); }
.card-index--flip { top: auto; left: auto; bottom: 3.2%; right: 5.5%; rotate: 180deg; }
.card-art { width: 70%; aspect-ratio: 1; display: grid; place-items: center; }
.card-art img { width: 100%; height: 100%; }
.card-name { font: 800 calc(var(--cw) * .078)/1 var(--display); letter-spacing: -0.035em; margin-top: 8%; }
.card-kind { font: 600 calc(var(--cw) * .034)/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #77726A; margin-top: 4.5%; }

/* ───────────── Product spreads ───────────── */
.spread {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(48px, 7vw, 120px);
  max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 180px) var(--g);
  border-top: 1px solid var(--line);
  overflow-x: clip; overflow-clip-margin: 40px;
}
.spread-copy { display: grid; gap: 22px; justify-items: start; }
.product-logo img { width: clamp(220px, 24vw, 340px); height: auto; margin: 8px 0 4px; }
.product-title {
  display: flex; align-items: center; gap: .28em;
  font: 800 clamp(3rem, 6.4vw, 5.75rem)/0.9 var(--display); letter-spacing: -0.05em;
}
.product-title img, .product-title svg { width: .86em; height: .86em; border-radius: .2em; flex: none; }
.lede { font: 500 clamp(1.375rem, 2.2vw, 1.9rem)/1.2 var(--display); letter-spacing: -0.025em; }
.body { color: var(--grey); max-width: 33em; }
.specs { display: grid; grid-template-columns: repeat(3, auto); gap: 0 clamp(24px, 3vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.specs dt { font: 500 .875rem/1 var(--text); color: var(--grey); margin-bottom: 8px; }
.specs dd { font-weight: 600; }
.features { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.features li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.features b { font: 800 1rem/1.2 var(--display); letter-spacing: -0.02em; }
.features span { color: var(--grey); font-size: .9375rem; line-height: 1.45; }
.games-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.games-list li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .875rem; font-weight: 600; line-height: 1.2; color: var(--paper);
}
.games-list .is-soon { border-style: dashed; color: var(--grey); }
.games-list small { font-size: .6875rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--surface); color: var(--grey); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.stores a:not(.link-arrow) { display: block; border-radius: 8px; transition: transform .25s var(--ease); }
.stores a:not(.link-arrow):hover { transform: translateY(-2px); }
.stores img[src*="app-store"] { height: 46px; width: auto; }
.stores img[src*="google-play"] { height: 68px; width: auto; margin: -11px -9px; }
.stores .link-arrow { margin-left: 6px; }

/* Cyclo: a little machine you can tap */
.spread-visual { position: relative; }
.orbits { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.orbits-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* view-box origin is user-space 0,0, which is the centre of this viewBox */
.orbit { transform-box: view-box; transform-origin: 0 0; animation: spin linear infinite; }
.o1 { animation-duration: 16s; }
.o2 { animation-duration: 30s; animation-direction: reverse; }
.o3 { animation-duration: 52s; }
.ripples circle { fill: none; stroke: #F9CF4A; transform-box: view-box; transform-origin: 0 0; }
.disc {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; translate: -50% -50%;
  padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer;
  transition: transform .12s ease; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6));
}
.disc:hover { transform: scale(1.03); }
.disc:active, .disc.is-hit { transform: scale(.93); }
.power {
  position: absolute; left: 50%; bottom: -2%; translate: -50% 0;
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  font: 800 clamp(1.25rem, 2vw, 1.6rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.power-bolt { width: .8em; height: .8em; align-self: center; fill: #F9CF4A; }
.power-label { font: 600 .75rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters span {
  position: absolute; font: 800 1.25rem/1 var(--display); color: #F9CF4A; letter-spacing: -0.02em;
  animation: floatUp 1s var(--ease) forwards;
}
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0) scale(.9); } to { opacity: 0; transform: translate(-50%, -70px) scale(1.15); } }
.visual-caption { text-align: center; color: var(--grey); font-size: .9375rem; margin-top: 44px; min-height: 1.6em; transition: color .3s; }
.visual-caption.is-hot { color: var(--paper); }

/* TCGVisor: three real screens, fanned like cards */
.phones { height: clamp(520px, 52vw, 760px); }
.phones::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 197, 24, .12), transparent);
}
.phone {
  --p: 0;
  position: absolute; top: 50%; left: 50%; width: clamp(200px, 19vw, 285px);
  container-type: inline-size;          /* everything inside is sized in cqw, so the phone scales as one piece */
  transition: transform .9s var(--ease), filter .5s;
}

/* iPhone (15/16 Pro proportions): titanium rim, black bezel, Dynamic Island.
   The screenshots are a little shorter than the screen, which leaves exactly the room the status bar takes,
   so the app is shown uncropped below a real status bar. */
.iphone {
  position: relative; padding: 1.1cqw; border-radius: 17cqw;
  background: linear-gradient(145deg, #6b6b70 0%, #2c2c30 22%, #4a4a4f 50%, #232326 78%, #5a5a5f 100%);
  box-shadow: 0 0 0 .25cqw #111 inset, 0 30cqw 50cqw -22cqw rgba(0, 0, 0, .95);
}
.iphone::before, .iphone::after { /* side buttons */
  content: ""; position: absolute; width: 1cqw; border-radius: 1cqw;
  background: linear-gradient(90deg, #2a2a2d, #5d5d62);
}
.iphone::before { left: -.75cqw; top: 25%; height: 6.5%; box-shadow: 0 9cqw 0 #46464a, 0 22cqw 0 #46464a; }   /* action, volume up, volume down */
.iphone::after { right: -.75cqw; top: 33%; height: 11%; background: linear-gradient(90deg, #5d5d62, #2a2a2d); }  /* side button */
.iphone-bezel { padding: 2.6cqw; border-radius: 15.9cqw; background: #030303; }
.iphone-screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 1179 / 2556; border-radius: 13.3cqw; background: #000;
}
.iphone-status {
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 34cqw 1fr; align-items: center;
  color: #fff; font: 600 4.2cqw/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
}
.iphone-time { justify-self: center; padding-left: 3cqw; }
.iphone-island { justify-self: center; width: 31cqw; height: 9.2cqw; border-radius: 9cqw; background: #000; box-shadow: 0 0 0 .3cqw #0b0b0b; }
.iphone-icons { justify-self: center; width: 18cqw; height: auto; padding-right: 2cqw; fill: #fff; }
.iphone-screen img { display: block; width: 100%; height: auto; flex: none; }
.iphone-home { position: absolute; left: 50%; bottom: 2cqw; width: 36cqw; height: 1.4cqw; translate: -50% 0; border-radius: 1cqw; background: rgba(255, 255, 255, .85); }
.phone--c { z-index: 3; transform: translate(-50%, -50%); }
.phone--l { z-index: 1; filter: brightness(.55); transform: translate(calc(-50% - 62% - var(--p) * 10%), calc(-50% + 7%)) rotate(calc(-6deg - var(--p) * 3deg)); }
.phone--r { z-index: 2; filter: brightness(.55); transform: translate(calc(-50% + 62% + var(--p) * 10%), calc(-50% + 7%)) rotate(calc(6deg + var(--p) * 3deg)); }
.phones:hover .phone--l, .phones:hover .phone--r { filter: brightness(.8); }

/* ───────────── Studio ───────────── */
.studio {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start;
  max-width: var(--max); margin: 0 auto; padding: clamp(110px, 13vw, 200px) var(--g);
}
.studio-head { display: grid; gap: 26px; justify-items: start; }
.studio-coins { display: flex; gap: clamp(10px, 2vw, 22px); margin-bottom: 14px; }
.studio-coins img { width: clamp(48px, 6vw, 76px); transition: rotate .8s var(--ease); }
.studio-coins img:nth-child(2) { translate: 0 -10px; }
.studio-coins:hover img { rotate: 360deg; }
.studio-coins:hover img:nth-child(2) { transition-delay: .08s; }
.studio-coins:hover img:nth-child(3) { transition-delay: .16s; }
.studio-quote { font: 800 clamp(2.1rem, 4.6vw, 4.25rem)/1.02 var(--display); letter-spacing: -0.045em; }
.studio-quote em { font-style: normal; color: var(--yellow); }
.studio-text { color: var(--grey); font-size: 1.125rem; max-width: 32em; }
.tenets { list-style: none; display: grid; }
.tenets li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.tenets li:last-child { border-bottom: 1px solid var(--line); }
.tenet-n { font: 800 1.75rem/1 var(--display); color: var(--yellow); letter-spacing: -0.04em; }
.tenets b { display: block; font: 800 1.125rem/1.3 var(--display); letter-spacing: -0.025em; margin-bottom: 4px; }
.tenets p { color: var(--grey); font-size: 1rem; }

/* The games that made us: a hand of six cards on card stock. Ink on paper, never yellow text on it. */
.deck { grid-column: 1 / -1; display: grid; gap: clamp(36px, 4vw, 56px); margin-top: clamp(40px, 6vw, 90px); }
.deck-head { display: grid; gap: 18px; justify-items: start; }
.deck-title { font: 800 clamp(1.9rem, 3.6vw, 3.25rem)/1.02 var(--display); letter-spacing: -0.045em; }
.deck-text { color: var(--grey); font-size: 1.125rem; max-width: 32em; }
.deck-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.deck-cards .game { /* beats .js [data-reveal] so hover moves at once while the reveal keeps its stagger */
  --tilt: 0deg;
  position: relative; display: grid; align-content: start; gap: 10px;
  padding: clamp(22px, 2.2vw, 30px); border-radius: 14px; color: var(--ink);
  rotate: var(--tilt);
  transition: rotate .5s var(--ease), translate .5s var(--ease), opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.game::before { /* the card's printed frame */
  content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--ink); border-radius: 9px; opacity: .85; pointer-events: none;
}
.game:nth-child(1) { --tilt: -1.6deg; }
.game:nth-child(2) { --tilt: 1deg; }
.game:nth-child(3) { --tilt: -.6deg; }
.game:nth-child(4) { --tilt: 1.4deg; }
.game:nth-child(5) { --tilt: -1deg; }
.game:nth-child(6) { --tilt: .8deg; }
.game:hover { rotate: 0deg; translate: 0 -6px; }
/* Each card's art window: the game's own key art (Steam header proportions) */
.game-art {
  position: relative; isolation: isolate; aspect-ratio: 460 / 215; border-radius: 6px; overflow: hidden; margin-bottom: 6px;
  background: var(--ink); box-shadow: 0 0 0 1.5px var(--ink);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.game:hover .game-art img { scale: 1.05; }
.game-art--title img { object-position: 50% 18%; }   /* keep the logo and Rayquaza in frame */
.game-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 500 .8125rem/1.3 var(--text); color: #77726A;
}
.game-year { font: 800 1rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.game-name { font: 800 clamp(1.3rem, 1.8vw, 1.6rem)/1.05 var(--display); letter-spacing: -0.035em; margin: 6px 0 0; }
.game-text { font-size: .96875rem; line-height: 1.5; color: #3A3833; }
.game-text b { color: var(--ink); }
.game-text a { color: var(--ink); font-weight: 600; text-decoration-color: #BE8908; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.game-text a:hover { text-decoration-color: var(--ink); }
.game :focus-visible { outline-color: var(--ink); }

/* ───────────── Contact ───────────── */
.contact {
  position: relative; background: var(--yellow); color: var(--on-yellow); text-align: center;
  padding: clamp(110px, 14vw, 200px) var(--g) clamp(100px, 12vw, 170px);
  display: grid; justify-items: center; overflow: hidden;
}
.contact-kicker { font: 500 1.0625rem/1 var(--text); opacity: .75; }
.contact-title { font: 800 clamp(3.5rem, 14.5vw, 13.5rem)/.86 var(--display); letter-spacing: -0.06em; margin: 22px 0 clamp(34px, 4vw, 54px); }
.contact-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; }
.contact-mail {
  font: 800 clamp(1.4rem, 3.4vw, 2.75rem)/1.1 var(--display); letter-spacing: -0.035em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 3px no-repeat; padding-bottom: 6px;
  transition: background-size .4s var(--ease);
}
.contact-mail:hover { background-size: 0 3px; background-position: 100% 100%; }
.copy {
  border: 2px solid var(--on-yellow); background: transparent; border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: .875rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.copy:hover, .copy.is-done { background: var(--on-yellow); color: var(--yellow); }
.contact :focus-visible { outline-color: var(--on-yellow); }
.contact-note { margin-top: 26px; font-size: 1.0625rem; opacity: .75; }
/* Discord in its own colours: blurple button, white Clyde */
.contact-discord {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  background: #5865F2; color: #fff; border-radius: 999px; padding: 15px 28px 15px 22px;
  font: 600 1.0625rem/1 var(--text); text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(88, 101, 242, .9);
  transition: background-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-discord svg { width: 26px; height: 26px; fill: currentColor; }
.contact-discord:hover { background: #4752C4; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(88, 101, 242, 1); }
.contact-social { display: grid; justify-items: center; gap: 12px; margin-top: 30px; }
.contact-social p { font-size: .9375rem; opacity: .75; }

/* Social icon row, shared by contact and footer */
.social { display: flex; gap: 8px; list-style: none; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(9, 9, 9, .25); color: var(--on-yellow);
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a:hover { background: var(--on-yellow); color: var(--yellow); border-color: var(--on-yellow); transform: translateY(-2px); }
.social--footer a { width: 38px; height: 38px; border-color: var(--line-2); color: var(--grey); }
.social--footer svg { width: 17px; height: 17px; }
.social--footer a:hover { background: none; color: #fff; transform: translateY(-2px); }
.social--footer .social--discord { color: #fff; background: #5865F2; border-color: #5865F2; }
.social--footer .social--discord:hover { background: #4752C4; border-color: #4752C4; }
.social--footer .social--instagram:hover { border-color: #E4405F; color: #E4405F; }
.social--footer .social--tiktok:hover { border-color: #25F4EE; }
.social--footer .social--x:hover { border-color: #fff; }
.social--footer .social--youtube:hover { border-color: #FF0000; color: #FF0000; }

/* ───────────── Footer ───────────── */
.footer { padding: 36px var(--g) calc(36px + env(safe-area-inset-bottom)); }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  max-width: var(--max); margin: 0 auto; color: var(--grey); font-size: .9375rem;
}
.footer-coin img { width: 28px; height: 28px; transition: rotate .6s var(--ease); }
.footer-coin:hover img { rotate: 360deg; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--paper); }
.footer .social--footer { margin-left: auto; }
@media (max-width: 720px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer .social--footer { margin-left: 0; }
}

/* ───────────── Achievements ───────────── */
.ach-open {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 .9375rem/1 var(--text); color: var(--grey); transition: color .2s;
}
.ach-open svg { width: 16px; height: 16px; fill: var(--yellow); }
.ach-open span { font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
.ach-open:hover { color: var(--paper); }

.ach-toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: min(360px, calc(100vw - 40px));
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  background: rgba(28, 28, 28, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-left: 3px solid var(--yellow); border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .4s var(--ease), translate .5s var(--ease);
}
.ach-toast.is-in { opacity: 1; translate: 0 0; }
.ach-toast img { width: 40px; height: 40px; flex: none; }
.ach-toast.is-in img { animation: achSpin .9s var(--ease); }
@keyframes achSpin { from { rotate: -200deg; scale: .4; } }
.ach-toast div { display: grid; gap: 2px; }
.ach-toast small { font: 500 .8125rem/1.2 var(--text); color: var(--yellow); }
.ach-toast b { font: 800 1.0625rem/1.2 var(--display); letter-spacing: -0.02em; }
.ach-toast span { font-size: .875rem; line-height: 1.35; color: var(--grey); }

.ach-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: min(720px, calc(100svh - 48px)); padding: 0;
  border: 1px solid var(--line-2); border-radius: 18px; background: #121212; color: var(--paper);
  box-shadow: 0 40px 100px -30px #000;
}
.ach-dialog::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ach-dialog[open] { animation: rise .45s var(--ease); }
.ach-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.ach-head h2 { font: 800 1.5rem/1 var(--display); letter-spacing: -0.035em; }
.ach-close {
  width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--grey); transition: color .2s, border-color .2s;
}
.ach-close:hover { color: var(--paper); border-color: var(--grey); }
.ach-intro { padding: 8px 24px 16px; color: var(--grey); font-size: .9375rem; }
.ach-list { list-style: none; display: grid; padding: 0 12px 16px; }
.ach-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 12px; border-radius: 12px; }
.ach-list li + li { border-top: 1px solid var(--line); border-radius: 0; }
.ach-badge {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--line-2);
  background: center / 60% no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233A3A3A'><path d='M12 2a5 5 0 0 1 5 5v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v3h6V7a3 3 0 0 0-3-3Z'/></svg>");
}
.ach-list .is-done .ach-badge { border: 0; background: center / contain no-repeat url("/assets/coin-tiny.svg"); }
.ach-list b { display: block; font: 800 1rem/1.25 var(--display); letter-spacing: -0.02em; color: var(--grey); }
.ach-list .is-done b { color: var(--paper); }
.ach-list p { font-size: .875rem; line-height: 1.4; color: #7A7A7A; margin-top: 2px; }
.ach-list .is-done p { color: var(--grey); }

/* ───────────── 404 ───────────── */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 96px var(--g); }
.notfound-inner { display: grid; justify-items: center; gap: 22px; }
.notfound .card { --cw: clamp(200px, 26vw, 250px); rotate: -6deg; margin-bottom: 18px; }
.notfound h1 { font: 800 clamp(2.75rem, 8vw, 5.5rem)/.95 var(--display); letter-spacing: -0.05em; }
.notfound p { color: var(--grey); max-width: 24em; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .spread, .studio { grid-template-columns: 1fr; }
  .spread-visual { order: -1; }
  .features { grid-template-columns: 1fr; gap: 0; }
  .features li { grid-template-columns: 6.5em 1fr; padding-block: 12px; }
  .phones { height: clamp(440px, 118vw, 640px); }
  .phone { width: clamp(170px, 42vw, 260px); }
  .deck-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .deck-cards { grid-template-columns: 1fr; }
  .deck-cards .game { rotate: 0deg; }
}
@media (max-width: 720px) {
  .specs { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .nav ul li:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
