@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a12;
  --surface: #12121c;
  --surface-2: #181826;
  --surface-3: #20202f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f4fb;
  --text-muted: #a3a1b8;
  --accent: #ff4fa3;
  --accent-soft: rgba(255, 79, 163, 0.14);
  --accent-glow: rgba(255, 79, 163, 0.45);
  --cyan: #19cfe3;
  --cyan-glow: rgba(25, 207, 227, 0.35);
  --on-accent: #0a0a12;
  --radius: 28px;
  --radius-sm: 16px;
  --icon-radius: 23%;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

html.nav-open,
html:has(.game-modal[open]) {
  overflow: hidden;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
}

p {
  margin: 0;
}

.accent {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.backdrop::before {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -120px;
  background: var(--accent-glow);
  opacity: 0.55;
}

.backdrop::after {
  width: 520px;
  height: 520px;
  top: 260px;
  left: -220px;
  background: var(--cyan-glow);
  opacity: 0.45;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero .eyebrow::before {
  display: none;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--accent-glow);
}

.button:hover svg {
  transform: translateY(2px);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
html.nav-open .site-header {
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 22px -4px var(--cyan-glow);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.wordmark:hover .logo-badge {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 28px -2px var(--accent-glow);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 24px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 20.5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 20.5px;
  transform: rotate(-45deg);
}

.hero {
  padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 10vw, 128px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero-title {
  font-size: clamp(4.25rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  margin-bottom: 32px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: inline-block;
}

.hero-title .accent {
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-lead {
  max-width: 520px;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.7;
}

.puzzle {
  --pad: 14px;
  --gap: 10px;
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  padding: var(--pad);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotate(-4deg);
  animation: float 7s ease-in-out infinite;
  transition: transform 0.7s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.puzzle.is-playing,
.puzzle.is-solved {
  animation: none;
  transform: none;
}

.puzzle.is-playing {
  border-color: rgba(255, 79, 163, 0.35);
}

.puzzle.is-solved {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 80px -10px var(--accent-glow), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.puzzle.is-solved .tile {
  animation: tile-pop 0.6s var(--ease) calc(var(--n) * 50ms);
}

.puzzle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 36px;
}

.tile {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc((100% - var(--pad) * 2 - var(--gap) * 2) / 3);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22%;
  transform: translate(calc(var(--c) * (100% + var(--gap))), calc(var(--r) * (100% + var(--gap))));
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.25, 1), filter 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

.tile.is-movable {
  cursor: pointer;
}

.tile.is-movable:hover {
  filter: brightness(1.12);
}

.tile svg {
  width: 52%;
  height: 52%;
  fill: currentColor;
}

.tile .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile--accent {
  background: linear-gradient(150deg, #ff74b8, var(--accent));
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 12px 30px -8px var(--accent-glow);
}

.tile--cyan {
  background: linear-gradient(150deg, #5ce4f2, var(--cyan));
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 12px 30px -8px var(--cyan-glow);
}

.tile--light {
  background: linear-gradient(150deg, #ffffff, #e6e4ee);
  color: var(--bg);
}

.tile--dark {
  background: linear-gradient(150deg, #262638, #1a1a28);
  color: var(--accent);
}

.tile::after {
  content: attr(data-n);
  position: absolute;
  top: 9%;
  left: 11%;
  font-family: var(--font-display);
  font-size: clamp(0.6875rem, 1.6vw, 0.875rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.puzzle.is-playing .tile::after {
  opacity: 0.75;
  transform: none;
}

.spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 3px;
  background: var(--accent);
  pointer-events: none;
  z-index: 5;
  animation: spark 1.1s var(--ease) forwards;
}

.spark:nth-child(3n) {
  background: var(--cyan);
}

.spark:nth-child(3n + 1) {
  background: #fff;
  border-radius: 50%;
}

.puzzle-hud {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html:not(.js) .puzzle-hud {
  display: none;
}

.puzzle-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(18, 18, 28, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.puzzle-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.puzzle-play:hover {
  transform: translateY(-1px);
}

.puzzle-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.puzzle-hud.is-playing .puzzle-play {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: none;
}

.puzzle-hud.is-playing .puzzle-play svg {
  display: none;
}

.puzzle-hud.is-playing .puzzle-play {
  padding-left: 18px;
}

.puzzle-stats {
  display: flex;
  flex: 1;
  justify-content: space-around;
  gap: 8px;
  margin: 0;
}

.puzzle-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.puzzle-stats dt {
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.puzzle-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.puzzle-status {
  min-height: 1.5em;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.puzzle-status strong {
  color: var(--accent);
}

.tile-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-track i {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}

.marquee-track i:nth-of-type(even) {
  background: var(--cyan);
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  margin-bottom: 20px;
}

.section-lead {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.stats strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.game-grid--featured {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.game-grid--featured > .game-card {
  grid-column: span 2;
}

.game-grid--featured > .game-card:nth-child(-n + 4) {
  grid-column: span 3;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 79, 163, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 79, 163, 0.35);
  box-shadow: 0 30px 60px -30px rgba(255, 79, 163, 0.35);
}

.game-card:hover::before {
  opacity: 1;
}

.game-showcase {
  position: relative;
  height: 250px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(255, 79, 163, 0.28), transparent 70%),
    radial-gradient(50% 60% at 85% 0%, rgba(25, 207, 227, 0.12), transparent 70%),
    var(--surface-3);
  border-bottom: 1px solid var(--border);
}

.game-grid--featured > .game-card:nth-child(-n + 4) .game-showcase {
  height: 320px;
}

.showcase-shot {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 30%;
  max-width: 150px;
  aspect-ratio: 460 / 996;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid #2c2c3e;
  background: var(--surface);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
}

.showcase-shot--center {
  z-index: 2;
  transform: translateX(-50%);
}

.showcase-shot--left {
  transform: translateX(-118%) translateY(8%) rotate(-9deg);
}

.showcase-shot--right {
  transform: translateX(18%) translateY(8%) rotate(9deg);
}

.game-card:hover .showcase-shot--center {
  transform: translateX(-50%) translateY(-6%);
}

.game-card:hover .showcase-shot--left {
  transform: translateX(-132%) translateY(6%) rotate(-13deg);
}

.game-card:hover .showcase-shot--right {
  transform: translateX(32%) translateY(6%) rotate(13deg);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 24px;
}

.game-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--icon-radius);
  object-fit: cover;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.game-icon--fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #ff74b8, var(--accent));
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
}

.game-title {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.game-open {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.game-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

.game-open:focus-visible {
  outline: none;
}

.game-open:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.game-genre {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.game-tagline {
  color: var(--text);
  opacity: 0.88;
}

.game-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
}

.game-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.game-credit::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 163, 0.3);
  background: var(--accent-soft);
  color: #ffb3d6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: block;
  border-radius: 8px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  height: 40px;
  width: auto;
}

.store-badge--google img {
  height: 59px;
  margin: -9.5px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.about-intro {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.about-intro h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-muted);
  font-size: 1.125rem;
  padding-top: 12px;
}

.about-body p:first-child {
  color: var(--text);
  font-size: 1.3125rem;
  line-height: 1.5;
}

.facts {
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
}

.facts div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.facts dt {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}

.facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 14vw, 180px) 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(255, 79, 163, 0.45), transparent 70%),
    var(--cyan);
  color: var(--on-accent);
}

.contact .eyebrow {
  color: rgba(10, 10, 18, 0.7);
}

.contact .eyebrow::before {
  background: var(--on-accent);
}

.contact h2 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.contact-lead {
  max-width: 480px;
  font-size: 1.1875rem;
  color: rgba(10, 10, 18, 0.75);
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--on-accent);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 3.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 20px 40px -16px rgba(10, 10, 18, 0.6);
  transition: transform 0.3s var(--ease);
}

.contact-email svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.contact-email:hover {
  transform: translateY(-2px);
}

.contact-email:hover svg {
  transform: translate(3px, -3px);
}

.contact-email:focus-visible {
  outline-color: var(--on-accent);
}

.copy-button {
  padding: 16px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(10, 10, 18, 0.35);
  background: transparent;
  color: var(--on-accent);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.copy-button:hover {
  background: rgba(10, 10, 18, 0.08);
  border-color: var(--on-accent);
}

.copy-button:focus-visible {
  outline-color: var(--on-accent);
}

.site-footer {
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  display: inline-block;
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.game-modal {
  width: min(880px, calc(100% - 32px));
  max-height: min(90vh, 920px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  overflow: auto;
  overscroll-behavior: contain;
}

.game-modal[open] {
  animation: modal-in 0.5s var(--ease);
}

.game-modal::backdrop {
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-modal[open]::backdrop {
  animation: fade-in 0.35s ease;
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 16px 16px 0 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(24, 24, 38, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.3s var(--ease);
}

.modal-close:hover {
  background: var(--surface-3);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-body {
  padding: clamp(24px, 5vw, 48px);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.modal-head .game-icon {
  width: 96px;
  height: 96px;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.modal-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.modal-meta .game-genre {
  margin: 0;
}

.modal-description {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

.modal-shots {
  display: flex;
  gap: 14px;
  margin: 0 calc(clamp(24px, 5vw, 48px) * -1) 32px;
  padding: 0 clamp(24px, 5vw, 48px) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 clamp(24px, 5vw, 48px);
  scrollbar-width: thin;
}

.modal-shots img {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: 460 / 996;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  scroll-snap-align: start;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.js .hero-title .line > span {
  transform: translateY(105%);
  animation: rise 1s var(--ease) var(--d, 0s) forwards;
}

.js .hero-fade {
  opacity: 0;
  animation: fade-up 1s var(--ease) var(--d, 0s) forwards;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.button--small {
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.legal h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.legal-updated {
  margin: 16px 0 48px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal h2 {
  margin: 48px 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-summary {
  padding: 28px 32px;
  border: 1px solid rgba(255, 79, 163, 0.3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.legal-summary h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.legal-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-summary li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.legal-summary li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}

.error-page {
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.error-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.error-copy h1 {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.mini-board {
  --pad: 12px;
  --gap: 8px;
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tile--lost {
  z-index: 2;
  animation: lost 3.2s ease-in-out infinite;
}

.tile--lost b {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

@keyframes lost {
  0%,
  100% {
    translate: 70% -95%;
    rotate: 14deg;
  }
  50% {
    translate: 76% -108%;
    rotate: 8deg;
  }
}

@media (max-width: 760px) {
  .error-inner {
    grid-template-columns: 1fr;
  }

  .mini-board {
    width: min(64vw, 240px);
    margin: 24px 0 0 8px;
  }
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-12px);
  }
}

@keyframes tile-pop {
  40% {
    scale: 1.1;
  }
}

@keyframes spark {
  from {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translate(var(--x), var(--y)) scale(0.3) rotate(var(--rot));
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .game-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-grid--featured > .game-card,
  .game-grid--featured > .game-card:nth-child(-n + 4) {
    grid-column: span 1;
  }

  .game-grid--featured > .game-card:nth-child(-n + 4) .game-showcase {
    height: 250px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .puzzle {
    width: min(70vw, 300px);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    height: calc(100dvh - var(--header-h));
    padding: 24px var(--gutter);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a,
  .site-nav .nav-cta {
    display: block;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .site-nav a:hover,
  .site-nav .nav-cta:hover {
    background: none;
    color: var(--accent);
  }
}

@media (max-width: 640px) {
  .game-grid--featured {
    grid-template-columns: 1fr;
  }

  .game-showcase,
  .game-grid--featured > .game-card:nth-child(-n + 4) .game-showcase {
    height: 230px;
  }

  .game-card-body {
    padding: 20px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .modal-head {
    gap: 16px;
  }

  .modal-head .game-icon {
    width: 72px;
    height: 72px;
  }

  .modal-shots img {
    width: 160px;
  }

  .stats li {
    padding: 8px 14px;
  }
}

@media (hover: none) {
  .game-card:hover {
    transform: none;
  }
}

@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;
  }

  .js [data-reveal] {
    transform: none;
  }

  .puzzle {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .tile--lost {
    animation: none;
    translate: 70% -95%;
    rotate: 14deg;
  }
}
