:root {
  color-scheme: light;
  --background: #f4f0e7;
  --surface: #e8e0d1;
  --card: #fbf8f1;
  --text: #2d2a27;
  --muted: #625f58;
  --blue: #617f89;
  --sage: #718064;
  --terra: #8e5048;
  --mustard: #b28d4e;
  --line: rgba(45, 42, 39, 0.14);
  --line-strong: rgba(45, 42, 39, 0.24);
  --shadow: 0 16px 36px rgba(45, 42, 39, 0.09);
  --radius: 22px;
  --shell: 1180px;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--card);
  background: var(--text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #4f6f82;
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 231, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 5px 18px rgba(47, 52, 55, 0.045);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(244, 240, 231, 0.78);
    backdrop-filter: blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--shell));
  height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-lockup {
  display: block;
  width: 164px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  min-height: 44px;
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(47, 52, 55, 0.055);
}

.desktop-nav a.is-active {
  color: var(--text);
  background: rgba(97, 127, 137, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("brand-pattern.svg");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: min(66vw, 960px) auto;
  opacity: 0.44;
  content: "";
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
}

.brand-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.035em;
}

.brand-note span {
  width: 22px;
  height: 1px;
  background: var(--mustard);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  min-height: min(720px, calc(100svh - 76px));
  padding-block: 92px 108px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 7.2vw, 6.7rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.95;
}

.hero-intro {
  max-width: 540px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.65;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 52px;
  padding: 0 18px 0 21px;
  border: 1px solid var(--text);
  border-radius: 13px;
  color: var(--card);
  background: var(--text);
  box-shadow: 0 7px 18px rgba(47, 52, 55, 0.12);
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.primary-action:hover {
  background: #252a2d;
  box-shadow: 0 10px 24px rgba(47, 52, 55, 0.16);
  transform: translateY(-2px);
}

.primary-action:active,
.game-card:active {
  transform: translateY(1px) scale(0.99);
}

.hero-art {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 0.92;
  justify-self: end;
}

.game-console {
  position: absolute;
  z-index: 2;
  inset: 8% 7% 7% 5%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(45, 42, 39, 0.5);
  border-radius: 28px;
  background: var(--text);
  box-shadow: 0 24px 46px rgba(47, 52, 55, 0.14);
  transform: rotate(-4deg);
  transition: transform 300ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 300ms ease;
}

.hero-art:hover .game-console {
  box-shadow: 0 30px 55px rgba(47, 52, 55, 0.18);
  transform: rotate(-1deg) translateY(-4px);
}

.console-topline,
.console-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d6cebf;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-topline i,
.console-controls div i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
}

.console-screen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #3a3632;
}

.console-game {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(47, 52, 55, 0.13);
  border-radius: 11px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.console-game:hover,
.console-game:focus-visible {
  z-index: 2;
  border-color: rgba(47, 52, 55, 0.34);
  box-shadow: 0 10px 20px rgba(47, 52, 55, 0.12);
  transform: translateY(-4px) scale(1.025);
}

.console-game:focus-visible {
  outline-width: 2px;
  outline-offset: 3px;
}

.console-crown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-color: rgba(47, 52, 55, 0.25);
  background: var(--text);
  gap: 1px;
}

.console-crown span,
.console-crown b {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #d3dfdb;
}

.console-crown span:nth-child(3n + 2) { background: #e5d4c6; }
.console-crown span:nth-child(3n) { background: #d7d5e3; }
.console-crown b { color: var(--terra); background: #eee1b9; font: 500 1.45rem Georgia, serif; }

.console-stack {
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
}

.console-stack i { display: block; height: 13px; border-radius: 4px; background: var(--blue); }
.console-stack i:nth-child(1) { width: 87%; }
.console-stack i:nth-child(2) { width: 68%; background: var(--sage); }
.console-stack i:nth-child(3) { width: 49%; background: var(--mustard); }
.console-stack i:nth-child(4) { width: 31%; background: var(--terra); }

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 7px;
  gap: 4px;
  background: #e7e2d8;
}

.console-grid span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(45, 42, 39, 0.09);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(45, 42, 39, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.console-grid:hover span:nth-child(5) {
  background: #fffaf3;
  transform: translateY(-1px);
}

.console-x::before,
.console-x::after {
  position: absolute;
  width: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--terra);
  content: "";
  transform: rotate(45deg);
}

.console-x::after { transform: rotate(-45deg); }

.console-o::before {
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.console-controls div { display: flex; gap: 5px; }
.console-controls div i { width: 6px; height: 6px; background: var(--blue); }
.console-controls div i:nth-child(2) { background: var(--sage); }
.console-controls div i:nth-child(3) { background: var(--mustard); }

.console-shadow {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 7%;
  left: 9%;
  height: 22px;
  border-radius: 50%;
  background: rgba(47, 52, 55, 0.17);
  filter: blur(14px);
  transform: rotate(-3deg);
}

.games-section {
  position: relative;
  padding-block: 116px 128px;
}

.games-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  content: "";
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-layout h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1;
}

.section-heading > p {
  max-width: 365px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.collection-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: -10px 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 74%, transparent);
}

.collection-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.collection-copy > span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-copy strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.collection-copy b {
  color: var(--blue);
  font-size: 1rem;
}

.collection-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(40px, 72px));
  gap: 6px;
}

.collection-track i {
  height: 6px;
  border-radius: 999px;
  background: var(--surface);
  transition: background 220ms ease, transform 220ms ease;
}

.collection-track i.is-complete {
  background: var(--blue);
  transform: scaleY(1.25);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  --pointer-x: 50%;
  --pointer-y: 30%;
  --card-accent: var(--blue);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(47, 52, 55, 0.045);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.game-card--coroa { --card-accent: var(--terra); }
.game-card--tower { --card-accent: var(--blue); }
.game-card--tictactoe { --card-accent: var(--sage); }

.game-card::before {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--card-accent);
  content: "";
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.game-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 72%);
  opacity: 0;
  content: "";
  transition: opacity 220ms ease;
}

.game-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.game-card:hover::before,
.game-card:focus-visible::before {
  transform: scaleX(1);
}

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

.game-card:focus-visible {
  outline-offset: 5px;
}

.card-visual {
  position: relative;
  height: 262px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-visual::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(47, 52, 55, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(47, 52, 55, 0.025), 0 0 0 32px rgba(47, 52, 55, 0.018);
  content: "";
  transition: transform 280ms ease;
}

.game-card:hover .card-visual::after {
  transform: scale(1.08) translate(-3px, -3px);
}

.visual-coroa { background: #e8e0d6; }
.visual-tower { background: #dfe4e5; }
.visual-tictactoe {
  background:
    radial-gradient(circle at 80% 18%, rgba(113, 128, 100, 0.18), transparent 29%),
    #e5e1d8;
}

.visual-chip {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  padding: 7px 9px;
  border: 1px solid rgba(47, 52, 55, 0.12);
  border-radius: 8px;
  background: rgba(250, 249, 246, 0.88);
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.played-badge {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--card-accent);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.game-card.is-played .played-badge {
  opacity: 1;
  transform: translateY(0);
}

.game-card.is-played::before {
  transform: scaleX(1);
}

.coroa-board {
  position: absolute;
  top: 25%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(58%, 190px);
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 11px;
  background: var(--text);
  gap: 1px;
  grid-auto-rows: 1fr;
  box-shadow: 0 18px 32px rgba(47, 52, 55, 0.14);
  transform: translateX(-50%) rotate(-3deg);
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.game-card:hover .coroa-board {
  transform: translateX(-50%) rotate(0deg) scale(1.035);
}

.coroa-board span {
  display: grid;
  place-items: center;
}

.region-a { background: #dcc7ba; }
.region-b { background: #cad8d9; }
.region-c { background: #cad4c5; }
.region-d { background: #ddd1b4; }
.region-e { background: #d4cad8; }
.coroa-board .crown-cell {
  color: #6f493b;
  font: 500 1.7rem Georgia, serif;
}

.tower-build {
  position: absolute;
  top: 24%;
  left: 50%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 5px;
  width: 72%;
  transform: translateX(-50%);
}

.tower-block {
  display: block;
  height: 27px;
  border-radius: 5px;
  background: var(--blue);
  box-shadow: 0 7px 12px rgba(47, 52, 55, 0.1);
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.block-1 { width: 82%; }
.block-2 { width: 70%; background: #8197a7; transform: translateX(4%); }
.block-3 { width: 57%; background: var(--sage); transform: translateX(-4%); }
.block-4 { width: 45%; background: #9b9b75; transform: translateX(5%); }
.block-5 { width: 32%; background: var(--mustard); transform: translateX(-4%); }

.game-card:hover .block-2,
.game-card:hover .block-3,
.game-card:hover .block-4,
.game-card:hover .block-5 {
  transform: translateX(0);
}

.tower-guide {
  position: absolute;
  right: 15%;
  bottom: 19%;
  left: 15%;
  height: 1px;
  background: rgba(47, 52, 55, 0.18);
}

.ttt-scene {
  position: absolute;
  top: 46px;
  left: 50%;
  width: min(68%, 190px);
  padding: 9px;
  border: 1px solid rgba(45, 42, 39, 0.16);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.78);
  box-shadow: 0 18px 34px rgba(45, 42, 39, 0.12);
  transform: translateX(-50%) rotate(2deg);
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 280ms ease;
}

.game-card:hover .ttt-scene {
  box-shadow: 0 22px 38px rgba(45, 42, 39, 0.15);
  transform: translateX(-50%) rotate(0deg) scale(1.035);
}

.ttt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  margin-bottom: 6px;
  padding-inline: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 730;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ttt-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ttt-meta b {
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--text);
  background: rgba(45, 42, 39, 0.07);
  font-size: 0.62rem;
}

.mini-x {
  position: relative;
  width: 10px;
  height: 10px;
}

.mini-x::before,
.mini-x::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--terra);
  content: "";
  transform: rotate(45deg);
}

.mini-x::after { transform: rotate(-45deg); }

.ttt-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
  gap: 5px;
}

.ttt-board span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(45, 42, 39, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 2px 0 rgba(45, 42, 39, 0.08);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.game-card:hover .ttt-board span:nth-child(5) {
  background: #fffaf3;
  box-shadow: 0 5px 10px rgba(45, 42, 39, 0.11);
  transform: translateY(-2px);
}

.mark-x::before,
.mark-x::after {
  position: absolute;
  width: 47%;
  height: 4px;
  border-radius: 999px;
  background: var(--terra);
  content: "";
  transform: rotate(45deg);
}

.mark-x::after { transform: rotate(-45deg); }

.mark-o::before {
  width: 42%;
  aspect-ratio: 1;
  border: 4px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.win-stroke {
  position: absolute;
  top: 50%;
  left: 5%;
  z-index: 2;
  width: 90%;
  height: 4px;
  border-radius: 3px;
  background: var(--mustard);
  box-shadow: 0 1px 3px rgba(45, 42, 39, 0.16);
  opacity: 0;
  transform: rotate(45deg) scaleX(0);
  transform-origin: left;
  transition: opacity 220ms ease, transform 320ms ease 40ms;
}

.game-card:hover .win-stroke {
  opacity: 0.9;
  transform: rotate(45deg) scaleX(1);
}

.card-copy {
  position: relative;
  z-index: 2;
  padding: 24px 24px 26px;
}

.card-index {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.card-copy h3 {
  margin: 0;
  font-size: 1.48rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.card-copy > p:not(.card-index) {
  min-height: 68px;
  margin: 11px 0 26px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.play-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 0.8rem;
  font-weight: 730;
}

.play-action span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--background);
  font-size: 1rem;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.game-card:hover .play-action span {
  border-color: var(--card-accent);
  color: #fff;
  background: var(--card-accent);
  transform: rotate(8deg) translate(2px, -2px);
}

.about-section {
  padding-block: 110px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 70px;
}

.about-layout .eyebrow {
  margin-top: 8px;
}

.about-layout h2 {
  max-width: 720px;
}

.about-layout > div p {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  min-height: 44px;
  padding: 13px 0 12px 14px;
  color: var(--text);
  font-weight: 690;
  text-decoration: none;
}

.footer-inner a span {
  margin-left: 7px;
}

.mobile-dock {
  display: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.games-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.games-grid .reveal:nth-child(3) { transition-delay: 160ms; }

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 35px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .shell,
  .header-inner {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    height: 66px;
  }

  .brand-lockup {
    width: 142px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    z-index: 40;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    min-height: 66px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 19px;
    background: rgba(45, 42, 39, 0.94);
    box-shadow: 0 16px 40px rgba(45, 42, 39, 0.28);
  }

  @supports (backdrop-filter: blur(12px)) {
    .mobile-dock {
      background: rgba(45, 42, 39, 0.88);
      backdrop-filter: blur(16px);
    }
  }

  .mobile-dock a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    padding: 5px 8px;
    border-radius: 13px;
    color: #bfb8aa;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 120ms ease;
  }

  .mobile-dock a::before {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 3px;
    background: var(--blue);
    content: "";
    opacity: 0;
    transform: translateX(-50%) scaleX(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-dock a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-dock a.is-active::before {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  .mobile-dock a:active {
    transform: scale(0.94);
  }

  .mobile-dock svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 62px 68px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-intro {
    margin-block: 23px 27px;
  }

  .hero-art {
    display: none;
  }

  .games-section {
    padding-block: 76px 86px;
  }

  .section-heading {
    display: block;
    margin-bottom: 29px;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .collection-status {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin: -5px 0 22px;
    padding: 15px;
  }

  .collection-copy {
    justify-content: space-between;
  }

  .collection-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .game-card {
    touch-action: manipulation;
  }

  .game-card:active {
    box-shadow: 0 8px 20px rgba(45, 42, 39, 0.1);
    transform: scale(0.985);
  }

  .card-visual {
    height: 238px;
  }

  .ttt-scene {
    top: 38px;
    width: min(62%, 172px);
  }

  .card-copy > p:not(.card-index) {
    min-height: auto;
  }

  .about-section {
    padding-block: 76px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-layout .eyebrow {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .hero-layout {
    padding-block: 46px 56px;
  }

  h1 {
    font-size: clamp(2.85rem, 14.4vw, 4rem);
  }

  .primary-action {
    width: 100%;
  }

  .card-visual {
    height: 218px;
  }

  .ttt-scene {
    top: 42px;
    width: min(58%, 164px);
    padding: 7px;
  }

  .ttt-meta {
    display: none;
  }

  .card-copy {
    padding: 21px 20px 23px;
  }

  .footer-inner {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
