/* ==========================================================================
   Favalia — studio site
   Ink on paper, like Inki Run and Inki Ace. Word Duel brings the colour.
   Day / Night follows the device, or the toggle in the header.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f5f1;
  --paper-2: #edebe5;
  --card: #fffefb;
  --ink: #1b1b1d;
  --ink-2: #3d3d42;
  --muted: #6b6861;
  --rule: #d9d6ce;
  --hi: #ffd84a;
  --mark: #ffd84a;
  --glass: rgba(246, 245, 241, .84);
  --shadow-lg: 0 34px 70px -34px rgba(27, 27, 29, .45);
  --footer-bg: #141416;

  --wd-deep: #2a1276;
  --wd: #6a3cf0;
  --wd-2: #8f5ef8;
  --wd-pink: #c13d8f;
  --wd-green: #27c48b;
  --wd-green-2: #11925f;
  --gold: #f6b93b;
  --heart: #ee3d5c;

  --f-display: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-round: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f10;
    --paper-2: #17171a;
    --card: #161618;
    --ink: #f1efe8;
    --ink-2: #d3d0c8;
    --muted: #9c988f;
    --rule: #2d2d32;
    --mark: rgba(255, 216, 74, .34);
    --glass: rgba(15, 15, 16, .8);
    --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, .9);
    --footer-bg: #0a0a0b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0f10;
  --paper-2: #17171a;
  --card: #161618;
  --ink: #f1efe8;
  --ink-2: #d3d0c8;
  --muted: #9c988f;
  --rule: #2d2d32;
  --mark: rgba(255, 216, 74, .34);
  --glass: rgba(15, 15, 16, .8);
  --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, .9);
  --footer-bg: #0a0a0b;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--hi); color: #1b1b1d; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font: 800 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--paper-2); }

/* ---------- Type ---------- */
.h1, .h2, .h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--muted); }
.mark { background: linear-gradient(transparent 56%, var(--mark) 56%, var(--mark) 90%, transparent 90%); padding-inline: .06em; }

/* The black ink tag, like the captions in the Inki games */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  font: 800 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 10px 6px;
}
.tag--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.tag--hi { background: var(--hi); color: #1b1b1d; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); --sh: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px;
  font: 800 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  background: var(--bg); color: var(--fg);
  border: 2.5px solid var(--bd); border-radius: 0;
  box-shadow: 4px 4px 0 var(--sh);
  cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--hi { --bg: var(--hi); --fg: #1b1b1d; --bd: #1b1b1d; --sh: #1b1b1d; }
.btn--light { --bg: #fff; --fg: var(--wd-deep); --bd: #fff; --sh: rgba(12, 4, 40, .35); }
.btn--clear { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .9); --sh: rgba(12, 4, 40, .35); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 12px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 12px 0; border-bottom: 2.5px solid currentColor;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* App Store badge (official artwork, loaded from Apple) */
.appstore { display: inline-flex; align-items: center; min-height: 54px; border-radius: 10px; transition: transform .16s var(--ease); }
.appstore img { height: 54px; width: auto; }
.appstore:hover { transform: translateY(-2px); }

.soon {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 18px;
  border: 2.5px dashed currentColor;
  font: 800 12px/1.25 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
}
.soon::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hi);
  box-shadow: 0 0 0 2px currentColor; animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { background: transparent; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 12px; border: 2px solid currentColor; border-radius: 999px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 800 18px/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase;
}
.brand svg { width: 36px; height: 36px; flex: none; transition: transform .3s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  font: 700 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-links img { width: 22px; height: 22px; border-radius: 6px; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 2px solid var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }
.menu-btn .x { display: none; }
.site-header.is-open .menu-btn .bars { display: none; }
.site-header.is-open .menu-btn .x { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 59;
  background: var(--paper);
  padding: 12px var(--gutter) 32px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu a {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  font: 800 26px/1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; text-decoration: none;
}
.mobile-menu a img { width: 44px; height: 44px; border-radius: 11px; }
.mobile-menu a small { display: block; margin-top: 6px; font: 600 13px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 28px; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-tools { margin-left: auto; }
}
@media (min-width: 921px) { .mobile-menu { display: none !important; } }

/* ---------- Logo tile ---------- */
.logo-tile .t { fill: var(--hi); stroke: #1b1b1d; }
.logo-tile .s { fill: #1b1b1d; }
.logo-tile .f { fill: #1b1b1d; }

/* ---------- Devices ---------- */
.device {
  position: relative;
  padding: 2.6%;
  background: #0c0c0d;
  border-radius: 15% / 6.9%;
  box-shadow:
    inset 0 0 0 1.5px #3b3b40,
    inset 0 0 0 4px #0c0c0d,
    inset 0 0 0 5px #26262a,
    var(--shadow-lg);
}
.device .screen {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 12.6% / 5.8%;
  background: #000;
  transform: translateZ(0);
}
.device--land { border-radius: 6.9% / 15%; }
.device--land .screen { aspect-ratio: 19.5 / 9; border-radius: 5.8% / 12.6%; }
.device img, .device video { width: 100%; height: 100%; object-fit: cover; }
.device .tap-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
}
.device .tap-play span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 20, 22, .78); color: #fff;
}

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-title {
  font: 800 clamp(42px, 6.3vw, 90px)/1.06 var(--f-display);
  text-transform: uppercase; letter-spacing: -.035em;
  margin: 22px 0 26px;
}
.ht-line { display: flex; align-items: center; gap: .26em; white-space: nowrap; }
.ht-line + .ht-line { margin-top: .08em; }
.ht-tiles { display: inline-flex; gap: .07em; }
.ht-tiles b {
  display: grid; place-items: center;
  width: .78em; height: .86em; border-radius: .15em;
  font: 900 .6em/1 var(--f-round); letter-spacing: 0; color: #fff;
  background: linear-gradient(#a274ff, #6d3cf0);
  box-shadow: inset 0 -.07em 0 rgba(0, 0, 0, .2), inset 0 .04em 0 rgba(255, 255, 255, .35), 0 .06em 0 #3f1aa6;
  animation: tile-pop .6s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.ht-tiles b:nth-child(n+4) { background: linear-gradient(#4fe0a8, #1fb27c); box-shadow: inset 0 -.07em 0 rgba(0, 0, 0, .18), inset 0 .04em 0 rgba(255, 255, 255, .35), 0 .06em 0 #0d7a50; }
@keyframes tile-pop {
  0% { transform: translateY(.5em) scale(.6) rotate(-8deg); opacity: 0; }
  70% { transform: translateY(-.06em) scale(1.06); opacity: 1; }
  100% { transform: none; }
}

.ht-word { position: relative; display: inline-block; }
.ht-draw .ht-word { padding-bottom: .06em; }
.ht-ground {
  position: absolute; left: -.08em; right: -.5em; bottom: -.1em; height: .16em; width: calc(100% + .58em);
  overflow: visible; color: var(--ink);
}
.ht-ground path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw-line 1s .7s var(--ease) forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.ht-runner svg, .gp-runner svg { width: 100%; height: 100%; }
.ht-runner {
  position: absolute; bottom: -.04em; left: 0; width: .36em; height: .48em; color: var(--ink);
  animation: run-across 6s 1.6s linear infinite both;
}
@keyframes run-across {
  0% { left: -.1em; opacity: 0; }
  6%, 90% { opacity: 1; }
  100% { left: calc(100% + .2em); opacity: 0; }
}
.runner .f1, .runner .f2 { animation: frame .32s steps(1) infinite; }
.runner .f2 { animation-delay: -.16s; }
@keyframes frame { 0% { opacity: 1; } 50% { opacity: 0; } }

.ht-jet { width: 1.55em; height: .9em; color: var(--ink); overflow: visible; margin-left: -.06em; }
.ht-jet .trail { stroke-dasharray: 7 6; animation: trail 1.1s linear infinite; }
.ht-jet .plane { animation: bob 3.2s ease-in-out infinite; transform-origin: 82% 30%; }
@keyframes trail { to { stroke-dashoffset: -26; } }
@keyframes bob { 50% { transform: translate(2px, -4px) rotate(-2deg); } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-games { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--rule); }
.hero-games a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hero-games img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--rule); transition: transform .2s var(--ease); }
.hero-games a:hover img { transform: rotate(-6deg) scale(1.08); }
.hero-games b { display: block; font: 800 13px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.hero-games small { display: block; font-size: 13px; color: var(--muted); }

.hero-art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.05; }
.hero-art > * { position: absolute; }
.ha-ia { width: 35%; left: 4%; top: 7%; z-index: 1; rotate: -9deg; animation: float 7s ease-in-out infinite; }
.ha-wd { width: 41%; right: 7%; top: 0; z-index: 2; rotate: 6deg; animation: float 6s -2s ease-in-out infinite; }
.ha-ir { width: 76%; left: 9%; bottom: 3%; z-index: 3; rotate: -3deg; animation: float 8s -4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.sticker {
  z-index: 4; right: 0; top: 42%;
  width: clamp(92px, 9vw, 118px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--hi); color: #1b1b1d;
  border: 2.5px solid #1b1b1d; box-shadow: 4px 4px 0 #1b1b1d;
  font: 800 clamp(11px, 1vw, 13px)/1.15 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  rotate: 12deg; animation: wobble 5s ease-in-out infinite;
}
.sticker b { display: block; font-size: 1.9em; letter-spacing: -.02em; }
@keyframes wobble { 50% { rotate: 4deg; } }
.doodle { color: var(--ink); z-index: 0; }
.doodle--stars { left: -2%; bottom: 30%; width: 64px; }
.doodle--cloud { right: 2%; top: -4%; width: 110px; opacity: .45; }

/* ---------- Marquee ---------- */
.marquee-band { overflow: hidden; padding-block: 18px; }
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; rotate: -1.4deg; margin-inline: -3%;
  border-block: 2.5px solid var(--ink);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 18px 28px 18px 0;
  font: 800 clamp(17px, 2.1vw, 26px)/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head > :last-child { justify-self: end; }
.sec-head .tag { margin-bottom: 18px; }
.sec-head p { max-width: 30em; color: var(--ink-2); font-size: 18px; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Game panels (home) ---------- */
.games { display: grid; gap: clamp(20px, 3vw, 32px); }
.gp {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-lg);
  min-height: 560px;
}
.gp-copy, .gp-media { position: relative; z-index: 2; }
.gp-media { display: grid; place-items: center; }
.gp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.gp-icon { width: 76px; height: 76px; border-radius: 22.5%; flex: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.gp-kicker { display: block; margin-bottom: 8px; font: 800 12px/1.3 var(--f-display); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.gp h3 { font: 800 clamp(34px, 4.6vw, 58px)/.98 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.gp-pitch { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 27em; }
.gp-points { list-style: none; padding: 0; margin: 22px 0 32px; display: grid; gap: 10px; font-weight: 500; }
.gp-points li { display: flex; gap: 14px; align-items: baseline; }
.gp-points li::before { content: ""; flex: none; width: 9px; height: 9px; background: currentColor; rotate: 45deg; translate: 0 -2px; }
.gp-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.gp .device { width: min(300px, 70%); }
.gp .device--land { width: 100%; max-width: 620px; }

.gp--wd {
  color: #fff;
  background:
    radial-gradient(90% 80% at 90% 0%, rgba(214, 84, 196, .75), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(40, 18, 150, .9), transparent 60%),
    linear-gradient(135deg, #2f1690, #5a2fe0 52%, #8e2f9c);
}
.gp--wd :focus-visible, .wd-hero :focus-visible { outline-color: #fff; }
.gp--wd .gp-points li::before { background: var(--wd-green); }
.float-tile {
  position: absolute; z-index: 1; display: grid; place-items: center;
  width: var(--s, 54px); height: calc(var(--s, 54px) * 1.08); border-radius: 22%;
  font: 900 calc(var(--s, 54px) * .5)/1 var(--f-round); color: var(--c, #6b3ae8);
  background: linear-gradient(#fff, #ece6fb);
  box-shadow: inset 0 -4px 0 rgba(60, 30, 150, .15), 0 10px 24px -8px rgba(10, 0, 50, .5);
  rotate: var(--r, 0deg); animation: float var(--d, 7s) ease-in-out infinite;
}
.float-tile--g { color: #fff; background: linear-gradient(#56e3ad, #1fb27c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 10px 24px -8px rgba(10, 0, 50, .5); }
.float-tile--o { color: #6a3a00; background: linear-gradient(#ffd27a, #f6a930); }
.float-tile--r { color: #fff; background: linear-gradient(#ff8b9c, #e8475f); }
.confetti-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(3px 7px at 12% 18%, #ffd84a 98%, transparent),
    radial-gradient(3px 7px at 32% 82%, #4fe0a8 98%, transparent),
    radial-gradient(3px 7px at 58% 12%, #ff8fb1 98%, transparent),
    radial-gradient(3px 7px at 72% 88%, #a6b6ff 98%, transparent),
    radial-gradient(3px 7px at 88% 46%, #ffd84a 98%, transparent),
    radial-gradient(3px 7px at 6% 62%, #ff8fb1 98%, transparent),
    radial-gradient(3px 7px at 46% 52%, rgba(255, 255, 255, .5) 98%, transparent);
  opacity: .8;
}

.gp--ink { background: var(--card); box-shadow: inset 0 0 0 2.5px var(--ink); }
.gp--ir { grid-template-columns: .92fr 1.08fr; padding-bottom: clamp(70px, 9vw, 110px); }
.gp--ir::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: clamp(40px, 5vw, 56px); height: 22px; z-index: 0;
  border-top: 3px solid var(--ink);
  background-image:
    linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 60px),
    linear-gradient(90deg, transparent 0 30px, var(--ink) 30px 36px, transparent 36px 90px);
  background-size: 60px 3px, 90px 3px;
  background-position: 0 9px, 20px 17px;
  background-repeat: repeat-x;
  opacity: .9;
}
.gp-runner { position: absolute; z-index: 1; bottom: calc(clamp(40px, 5vw, 56px) + 3px); width: 34px; height: 46px; color: var(--ink); animation: run-panel 11s linear infinite; }
@keyframes run-panel { from { left: -40px; } to { left: calc(100% + 40px); } }
.cloud { position: absolute; z-index: 0; color: var(--ink); opacity: .32; }
.gp--ia { grid-template-columns: 1.1fr .9fr; }
.gp--ia .gp-media { order: 2; }
.contrail { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: .22; pointer-events: none; }
.contrail path { stroke-dasharray: 14 10; animation: trail 1.6s linear infinite; }

@media (max-width: 900px) {
  .float-tile, .gp .contrail, .gp .cloud, .g-hero .contrail { display: none; }
  .gp, .gp--ir, .gp--ia { grid-template-columns: 1fr; min-height: 0; }
  .gp--ia .gp-media { order: 0; }
  .gp .device { width: min(260px, 72%); }
}

/* ---------- Arcade (try the demos) ---------- */
.arcade { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.arcade-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 20px 22px;
  background: var(--card); text-decoration: none;
  border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.arcade-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.arcade-card .art { aspect-ratio: 16 / 10; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; display: grid; place-items: center; color: var(--ink); }
.arcade-card .art svg { width: 100%; height: 100%; }
.arcade-card .art--wd { background: linear-gradient(135deg, #3a1aa8, #7a3fe6); border-color: var(--ink); }
.arcade-card h3 { font: 800 20px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.arcade-card p { color: var(--ink-2); font-size: 16px; }
.arcade-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.arcade-card .go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arcade-card:hover .go svg { transform: translateX(4px); }
@media (max-width: 900px) { .arcade { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Principles + stats ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2.5px solid var(--ink); }
.principle { padding: 28px 24px 8px 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--rule); }
.principle svg { width: 46px; height: 46px; margin-bottom: 18px; color: var(--ink); }
.principle h3 { font: 800 18px/1.2 var(--f-display); text-transform: uppercase; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 88px); }
.stat { padding: 8px 20px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 2.5px solid var(--ink); }
.stat b { display: block; font: 800 clamp(44px, 6.4vw, 92px)/.95 var(--f-display); letter-spacing: -.05em; }
.stat span { display: block; margin-top: 10px; font: 700 13px/1.35 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- Studio note ---------- */
.studio { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio blockquote { margin: 0; font: 800 clamp(28px, 3.6vw, 48px)/1.12 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.studio-copy p + p { margin-top: 16px; }
.studio-copy p { color: var(--ink-2); font-size: 18px; }
.studio-copy .btn { margin-top: 28px; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--hi); color: #1b1b1d; border-block: 2.5px solid #1b1b1d; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-block: clamp(48px, 7vw, 84px); }
.cta-band h2 { font: 800 clamp(30px, 4.4vw, 56px)/1.02 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.cta-band p { margin-top: 12px; font-size: 18px; max-width: 34em; }
.cta-band .btn { --bg: #1b1b1d; --fg: #fff; --bd: #1b1b1d; --sh: #1b1b1d; }
.cta-band .btn--ghost { --bg: transparent; --fg: #1b1b1d; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band :focus-visible { outline-color: #1b1b1d; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #ece9e2; padding-top: clamp(56px, 8vw, 96px); overflow: hidden; border-top: 1px solid var(--rule); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot-brand p { margin-top: 18px; max-width: 24em; color: #a9a59c; font-size: 15px; }
.foot-brand .brand { color: #fff; }
.foot-col h4 { font: 800 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: #8d8980; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-word {
  margin-top: clamp(48px, 7vw, 80px);
  font: 800 clamp(64px, 17.5vw, 250px)/.8 var(--f-display); letter-spacing: -.06em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px #3a3a3f; white-space: nowrap; user-select: none;
  translate: -.04em .1em;
}
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid #2c2c31; color: #8d8980; font-size: 13px; position: relative; background: var(--footer-bg); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Game pages
   ========================================================================== */
.g-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(28px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.g-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: clamp(28px, 4vw, 44px); font: 700 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.crumbs a { text-decoration: none; opacity: .7; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.g-sub { font: 800 clamp(15px, 1.6vw, 19px)/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 18px; }
.g-pitch { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; max-width: 31em; }
.g-ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin: 30px 0 26px; }
.g-media { display: grid; place-items: center; position: relative; }
.g-media .device { width: min(320px, 74%); }
.g-media .device--land { width: 100%; max-width: 640px; }

/* Word Duel world */
.wd-hero {
  color: #fff;
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(214, 84, 196, .7), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(30, 12, 120, .95), transparent 60%),
    linear-gradient(140deg, #2b1288, #5a2fe0 55%, #8a2f9a);
}
.wd-hero .chip { border-color: rgba(255, 255, 255, .55); }
.wd-logo { display: grid; gap: 10px; }
.wd-logo .row { display: flex; gap: 10px; }
.wd-logo b {
  display: grid; place-items: center;
  width: clamp(50px, 6.4vw, 86px); height: clamp(54px, 6.9vw, 92px); border-radius: 22%;
  font: 900 clamp(26px, 3.4vw, 46px)/1 var(--f-round); color: #fff;
  background: linear-gradient(#a77cff, #7646f2);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .3), 0 5px 0 #3e1aa3, 0 18px 30px -12px rgba(0, 0, 0, .5);
  animation: tile-pop .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms);
}
.wd-logo .row + .row b { color: #0b3b28; background: linear-gradient(#5fe6b1, #22b47f); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15), inset 0 3px 0 rgba(255, 255, 255, .35), 0 5px 0 #0c7a4f, 0 18px 30px -12px rgba(0, 0, 0, .5); }
.wd-hero .g-sub { color: #d9ccff; }

/* Ink worlds (Inki Run / Inki Ace) */
.ink-hero { background: var(--paper); }
.ink-word {
  font: 800 clamp(56px, 9.6vw, 132px)/.92 var(--f-display); letter-spacing: .02em; text-transform: uppercase;
}
.ink-word .ln { display: block; position: relative; width: max-content; }
.ink-word .ln--runner { padding-right: .78em; }
.ink-word .ln--runner svg { position: absolute; right: 0; bottom: .02em; width: .62em; height: .8em; }
.ink-word .underline { display: block; height: .1em; margin-top: .14em; width: 100%; max-width: 6.2em; overflow: visible; }
.ink-word .underline path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw-line 1.2s .3s var(--ease) forwards; }
.ink-hero .ground {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(48px, 6vw, 70px);
  border-top: 3px solid var(--ink);
  background-image:
    linear-gradient(90deg, var(--ink) 0 16px, transparent 16px 70px),
    linear-gradient(90deg, transparent 0 34px, var(--ink) 34px 40px, transparent 40px 104px);
  background-size: 70px 3px, 104px 3px; background-position: 0 14px, 22px 30px; background-repeat: repeat-x;
}
.ink-hero .gp-runner { bottom: calc(clamp(48px, 6vw, 70px) + 3px); animation-duration: 14s; }
.ia-word .jet { display: inline-block; width: 1.05em; height: .9em; vertical-align: -.08em; margin-left: .12em; overflow: visible; }

/* ---------- Play section ---------- */
.play-head { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; margin-bottom: 36px; }
.play-head p { color: var(--ink-2); max-width: 32em; font-size: 18px; }
@media (max-width: 820px) { .play-head { grid-template-columns: 1fr; } }
.kbd { display: inline-block; min-width: 26px; padding: 3px 7px; border: 2px solid currentColor; border-bottom-width: 4px; font: 800 12px/1.2 var(--f-display); text-align: center; }

.demo-frame { position: relative; background: var(--card); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.demo-stage { position: relative; width: 100%; }
.demo-stage canvas { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.demo-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.demo-overlay.is-pass { pointer-events: none; background: transparent; }
.demo-card { max-width: 440px; display: grid; justify-items: center; gap: 12px; }
.demo-card h3 { font: 800 clamp(24px, 3vw, 36px)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.demo-card p { color: var(--ink-2); font-size: 16px; }
.demo-card .btn { margin-top: 8px; }
.demo-card .score { font: 800 15px/1.3 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--ink); color: var(--paper);
  font: 800 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.05); } }
.demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 14px 18px; border-top: 2px solid var(--ink); font: 700 12px/1.4 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.ir-demo { --demo-paper: var(--card); --demo-ink: var(--ink); --demo-faint: var(--muted); }
.ir-demo .demo-stage { aspect-ratio: 12 / 5; }
@media (max-width: 700px) { .ir-demo .demo-stage { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .ir-demo .demo-stage { aspect-ratio: 1 / 1; } }
@media (max-width: 560px) {
  .demo-card { gap: 8px; }
  .demo-card h3 { font-size: 24px; }
  .demo-card p { font-size: 14px; }
  .demo-card .btn { min-height: 46px; margin-top: 4px; }
  .demo-foot { padding: 10px 14px; font-size: 11px; }
}
.ir-demo canvas { cursor: crosshair; }

.play-layout { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ia-demo { --demo-paper: var(--card); --demo-ink: var(--ink); --demo-faint: var(--muted); width: min(100%, 400px, calc(76vh * .6)); justify-self: center; }
.ia-demo .demo-stage { aspect-ratio: 3 / 5; }
.ia-demo canvas { cursor: grab; }
.ia-demo canvas:active { cursor: grabbing; }
.legend { display: grid; gap: 16px; margin-top: 26px; }
.legend div { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.legend svg { width: 56px; height: 40px; color: var(--ink); }
.legend b { font: 800 13px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; display: block; }
.legend span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .play-layout { grid-template-columns: 1fr; } }

/* ---------- Rules ("how it works") ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 2.5px solid var(--ink); background: var(--card); }
.rule { padding: 26px 24px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rule svg { width: 100%; height: 86px; margin-bottom: 18px; color: var(--ink); }
.rule b { display: inline-block; margin-bottom: 10px; background: var(--ink); color: var(--paper); padding: 6px 9px 5px; font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.rule p { color: var(--ink-2); font-size: 16px; }
.rules-note { margin-top: 18px; color: var(--muted); font: 600 14px/1.5 var(--f-display); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.feature { padding: 28px 26px 30px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--ink); transform: translateY(-3px); }
.feature .big { display: block; font: 800 clamp(34px, 3.6vw, 46px)/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 14px; }
.feature h3 { font: 800 16px/1.25 var(--f-display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Screenshot gallery ---------- */
.shots-wrap { position: relative; }
.shots {
  display: flex; gap: clamp(14px, 2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--ink); }
.shot { flex: none; scroll-snap-align: start; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.shot img { border-radius: 22px; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -22px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.shot:hover img { transform: translateY(-4px); }
.shots--portrait .shot img { width: clamp(200px, 22vw, 260px); aspect-ratio: 1080 / 2347; object-fit: cover; }
.shots--land .shot img { width: clamp(300px, 46vw, 620px); aspect-ratio: 2868 / 1320; object-fit: cover; border-radius: 16px; }
.shots-nav { display: flex; gap: 10px; }

.lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; color: #fff; }
.lightbox::backdrop { background: rgba(8, 8, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86dvh; width: auto; border-radius: 18px; }
.lightbox .lb-btn { position: fixed; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid #fff; background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; }
.lightbox .lb-btn svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 2.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 700 clamp(17px, 1.6vw, 20px)/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  rotate: 45deg; translate: 0 -4px; transition: rotate .2s var(--ease), translate .2s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }
.faq .answer p + p, .faq .answer ul { margin-top: 10px; }
.faq-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

/* ---------- More games ---------- */
.more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.more a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 22px; background: var(--card); border: 2.5px solid var(--ink); text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.more a:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.more img { width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--rule); }
.more b { display: block; font: 800 22px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.more small { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.more svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.more a:hover svg { transform: translateX(4px); }
@media (max-width: 760px) { .more { grid-template-columns: 1fr; } }

/* ---------- Docs (support / privacy) ---------- */
.doc-hero { padding-block: clamp(28px, 5vw, 56px) clamp(28px, 4vw, 44px); border-bottom: 2.5px solid var(--ink); }
.doc-hero .row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.doc-hero img { width: 60px; height: 60px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--rule); }
.doc-hero h1 { font: 800 clamp(36px, 6vw, 72px)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.doc-hero .meta { margin-top: 14px; color: var(--muted); font: 600 14px/1.4 var(--f-display); }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.doc-tabs a { padding: 10px 14px; border: 2px solid var(--ink); font: 800 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.doc-tabs a[aria-current="page"], .doc-tabs a:hover { background: var(--ink); color: var(--paper); }
.doc { max-width: 780px; padding-block: clamp(36px, 5vw, 64px) clamp(72px, 9vw, 120px); }
.doc h2 { font: 800 clamp(20px, 2.4vw, 26px)/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; margin: 48px 0 14px; padding-top: 18px; border-top: 2.5px solid var(--ink); }
.doc h3 { font: 700 19px/1.35 var(--f-body); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 8px; }
.doc b { color: var(--ink); }
.note { background: var(--card); border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 22px 24px; margin: 28px 0; }
.note p + p, .note ul { margin-top: 8px; }
.note .mail { font: 800 clamp(17px, 2.2vw, 22px)/1.3 var(--f-display); word-break: break-word; }

/* Support hub cards */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.hub-card { background: var(--card); border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 24px; display: grid; gap: 14px; align-content: start; }
.hub-card img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--rule); }
.hub-card h2 { font: 800 22px/1.1 var(--f-display); text-transform: uppercase; }
.hub-card ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.hub-card li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.hub-card li a:hover { text-decoration: underline; }
.hub-card li a svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) { .hub { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- 404 ---------- */
.lost { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 48px var(--gutter) 96px; position: relative; overflow: hidden; }
.lost h1 { font: 800 clamp(96px, 22vw, 260px)/.85 var(--f-display); letter-spacing: -.06em; }
.lost p { margin: 18px auto 30px; max-width: 30em; color: var(--ink-2); font-size: 19px; }
.lost svg.fall { width: min(420px, 90%); margin: 0 auto 18px; color: var(--ink); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .ht-runner, .gp-runner { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero-grid, .g-hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; }
  .g-media { order: 2; }
}
@media (max-width: 420px) {
  .btn { padding: 0 16px; }
  .hero-ctas .btn, .g-ctas .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Word Duel demo (looks like the app's solo screen)
   ========================================================================== */
.wd-demo {
  --bg1: #f4f0ff; --bg2: #e7e0ff; --wink: #24184f; --soft: #6d6491; --wcard: #ffffff;
  --key: #ffffff; --key-ink: #24184f; --edge: rgba(48, 28, 120, .16); --slot: #d2cbec;
  --tile-1: #ffffff; --tile-2: #eeeaf8;
  --tile: 48px;
  position: relative; overflow: hidden;
  width: 100%; max-width: 460px; justify-self: center;
  padding: 18px 14px 16px;
  border-radius: 34px;
  background: linear-gradient(var(--bg1), var(--bg2));
  color: var(--wink);
  box-shadow: 0 36px 70px -34px rgba(43, 18, 119, .7), inset 0 0 0 1px rgba(255, 255, 255, .5);
  font-family: var(--f-body);
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wd-demo {
    --bg1: #1f1840; --bg2: #151030; --wink: #efeaff; --soft: #a59cc8; --wcard: #2a2250;
    --key: #2f2759; --key-ink: #efeaff; --edge: rgba(0, 0, 0, .45); --slot: #463c78;
    --tile-1: #3d3470; --tile-2: #302859;
  }
}
:root[data-theme="dark"] .wd-demo {
  --bg1: #1f1840; --bg2: #151030; --wink: #efeaff; --soft: #a59cc8; --wcard: #2a2250;
  --key: #2f2759; --key-ink: #efeaff; --edge: rgba(0, 0, 0, .45); --slot: #463c78;
  --tile-1: #3d3470; --tile-2: #302859;
}
.wd-demo :focus-visible { outline: 3px solid var(--wd); outline-offset: 2px; }
.wd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wd-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: var(--wcard); box-shadow: 0 1px 0 var(--edge); font: 700 14px/1 var(--f-body); color: var(--wd-2); }
.wd-chip svg { color: var(--wd-2); }
.wd-skip { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.wd-skip:hover { background: var(--wcard); }
.wd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-stats div { background: var(--wcard); border-radius: 14px; padding: 8px 10px 6px; text-align: center; box-shadow: 0 1px 0 var(--edge); }
.wd-stats small { display: block; font: 800 10px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.wd-stats b { font: 900 22px/1.25 var(--f-round); }
.wd-hearts { display: flex; gap: 5px; margin: 12px 2px 0; }
.wd-hearts svg { width: 21px; height: 19px; fill: var(--heart); transition: fill .3s; }
.wd-hearts svg.is-gone { fill: var(--slot); animation: heart-break .5s var(--ease); }
.wd-board { min-height: 196px; display: grid; align-content: center; gap: 20px; padding: 20px 0 16px; }
.wd-word { display: flex; justify-content: center; gap: 6px; }
.wd-word.is-bonk { animation: bonk .38s ease; }
.wd-slot { width: var(--tile); display: grid; gap: 7px; }
.wd-slot::after { content: ""; height: 4px; border-radius: 2px; background: var(--slot); transition: background-color .3s; }
.wd-slot.is-filled::after { background: var(--wd-green); }
.wd-slot.is-lost::after { background: var(--heart); }
.wd-tile {
  display: grid; place-items: center;
  width: var(--tile); height: calc(var(--tile) * 1.1); border-radius: calc(var(--tile) * .22);
  background: linear-gradient(var(--tile-1), var(--tile-2));
  box-shadow: inset 0 -3px 0 var(--edge), 0 2px 0 var(--edge);
  font: 900 calc(var(--tile) * .5)/1 var(--f-round); color: var(--wink);
}
.wd-slot .wd-tile { opacity: 0; transform: scale(.5); }
.wd-slot.is-filled .wd-tile, .wd-slot.is-lost .wd-tile { opacity: 1; transform: none; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .1s; }
.wd-slot.is-lost .wd-tile, .wd-fly.is-miss, .wd-miss .wd-tile, .wd-answer.is-red .wd-tile { background: linear-gradient(#ffdbe2, #ffc3ce); color: #c3244a; }
.wd-misses { display: grid; justify-items: center; gap: 8px; }
.wd-misses small { font: 800 10px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.wd-miss-row { display: flex; gap: 6px; }
.wd-miss { --tile: 32px; width: 32px; height: 35px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--slot); }
.wd-miss .wd-tile { opacity: 0; border-radius: 8px; }
.wd-miss.is-filled { box-shadow: none; }
.wd-miss.is-filled .wd-tile { opacity: 1; }
.wd-keys { display: grid; gap: 7px; }
.wd-row { display: flex; justify-content: center; gap: 5px; }
.wd-key {
  flex: 1 1 0; max-width: 40px; height: 50px; padding: 0;
  border: 0; border-radius: 9px; background: var(--key); color: var(--key-ink);
  font: 800 18px/1 var(--f-round); box-shadow: 0 2px 0 var(--edge);
  cursor: pointer; transition: transform .08s, background-color .2s, opacity .2s;
}
.wd-key:hover:not(:disabled) { transform: translateY(-1px); }
.wd-key:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.wd-key:disabled { cursor: default; }
.wd-key.is-hit { background: var(--wd-green); color: #fff; box-shadow: 0 2px 0 var(--wd-green-2); }
.wd-key.is-miss { opacity: .32; text-decoration: line-through 2px; }
.wd-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.wd-fly { position: absolute; margin: 0; }
.wd-result { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 14px; background: rgba(24, 12, 70, .34); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .25s ease; }
.wd-card { width: 100%; max-width: 380px; background: var(--wcard); color: var(--wink); border-radius: 26px; padding: 18px 16px 16px; text-align: center; box-shadow: 0 30px 60px -20px rgba(20, 8, 70, .6); animation: card-in .45s var(--ease); }
.wd-stars { display: flex; justify-content: center; gap: 6px; font-size: 34px; line-height: 1; }
.wd-stars span { color: var(--slot); }
.wd-stars span.on { color: var(--gold); animation: star-pop .5s var(--ease) both; animation-delay: calc(var(--i) * 130ms + 150ms); }
.wd-title { font: 900 30px/1.15 var(--f-round); margin: 6px 0 12px; background: linear-gradient(90deg, #a77cff, #ff86c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wd-title.is-lost { background: none; color: var(--heart); }
.wd-answer { display: flex; justify-content: center; gap: 5px; margin-bottom: 14px; }
.wd-answer.is-gold .wd-tile { background: linear-gradient(#ffd77a, #f5a623); color: #5a3200; }
.wd-answer.is-green .wd-tile { background: linear-gradient(#5fe6b1, #22b47f); color: #fff; }
.wd-rows { margin: 0; background: var(--bg1); border-radius: 16px; padding: 12px 14px; display: grid; gap: 7px; text-align: left; }
.wd-rows div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.wd-rows dt small { color: var(--soft); font-size: 12px; margin-left: 4px; }
.wd-rows dd { margin: 0; font-weight: 800; }
.wd-rows dd.gold { color: #e08a00; }
.wd-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 2px; font-weight: 800; }
.wd-total em { font-style: normal; background: #2a1d5c; color: #ffd84a; border-radius: 6px; padding: 2px 6px; font-size: 12px; margin-left: 8px; }
.wd-total b { font: 900 30px/1 var(--f-round); color: #e07b0c; }
.wd-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.wd-next { height: 52px; border: 0; border-radius: 999px; background: var(--wd-green); color: #fff; font: 800 17px/1 var(--f-body); cursor: pointer; box-shadow: 0 3px 0 var(--wd-green-2); }
.wd-next:active { transform: translateY(2px); box-shadow: none; }
.wd-share { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--bg1); color: var(--wink); cursor: pointer; display: grid; place-items: center; }
.wd-share.is-copied { background: var(--wd-green); color: #fff; }
.wd-cta { margin-top: 12px; font-size: 13px; color: var(--soft); }
.wd-cta a { color: var(--wd-2); font-weight: 800; }
.wd-lost { color: var(--soft); margin: 0 4px 4px; }
.wd-lost b { color: var(--wink); }
.wd-confetti { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: confetti-fall 1.7s cubic-bezier(.25, .6, .45, 1) var(--d) forwards; }
@keyframes confetti-fall { to { transform: translate(var(--dx), 760px) rotate(var(--r)); } }
@keyframes bonk { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes heart-break { 30% { transform: scale(1.35) rotate(-10deg); } }
@keyframes star-pop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.25); opacity: 1; } 100% { transform: none; } }
@keyframes card-in { from { transform: translateY(18px) scale(.96); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 400px) {
  .wd-demo { padding: 14px 8px 12px; border-radius: 26px; }
  .wd-row { gap: 4px; }
  .wd-key { height: 46px; font-size: 16px; border-radius: 7px; }
}

/* Footer: made in Montréal */
.foot-legal .made { color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.foot-legal .made span { color: var(--hi); font-size: 1.35em; line-height: 0; vertical-align: -.1em; }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-card {
  pointer-events: auto; width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--card); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 20px 20px 18px; animation: consent-in .4s var(--ease);
}
.consent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.consent h2 { font: 800 18px/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.consent-lang {
  flex: none; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted);
  font: 700 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
}
.consent p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.consent p a { color: var(--ink); font-weight: 600; }
.consent-choices { margin-top: 14px; border-top: 1px solid var(--rule); }
.consent-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.consent-row b { display: block; font: 800 13px/1.3 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.consent-row small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.consent-row input {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0;
  width: 46px; height: 26px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); cursor: pointer; transition: background-color .2s;
}
.consent-row input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); transition: transform .2s var(--ease), background-color .2s;
}
.consent-row input:checked { background: var(--ink); }
.consent-row input:checked::after { transform: translateX(20px); background: var(--hi); }
.consent-row input:disabled { opacity: .55; cursor: not-allowed; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent-actions .btn { flex: 1 1 auto; box-shadow: 3px 3px 0 var(--sh); }
@keyframes consent-in { from { transform: translateY(20px); opacity: 0; } }
@media (max-width: 520px) {
  .consent { left: 10px; right: 10px; bottom: 10px; }
  .consent-card { padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Tables in documents (cookie list) */
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border: 2px solid var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.doc th { font: 800 12px/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--paper-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc code { font: 600 13px/1.4 var(--f-display); color: var(--ink); }
.doc .lang-switch { display: flex; gap: 8px; margin-bottom: 8px; }
.doc .lang-switch a { padding: 8px 12px; border: 2px solid var(--ink); font: 800 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.doc .lang-switch a:hover { background: var(--ink); color: var(--paper); }
.doc .consent-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.doc .consent-box p { margin: 0; }
.doc article + article { margin-top: 72px; padding-top: 40px; border-top: 6px double var(--ink); }
