/* Components and sections. */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.seg button,
.seg a {
  min-width: 36px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-3);
  transition: background-color 0.2s, color 0.2s;
}

.seg button[aria-pressed="true"],
.seg a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .ico {
  display: none;
}

.theme-toggle[data-pref="auto"] .ico-auto,
.theme-toggle[data-pref="light"] .ico-light,
.theme-toggle[data-pref="dark"] .ico-dark {
  display: block;
}

.menu-btn {
  display: none;
}

.nav a.nav-cta {
  margin-left: 4px;
  padding: 9px 16px;
  color: var(--accent-ink);
  background: var(--accent);
}

.nav a.nav-cta:hover {
  background: var(--accent-hover);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
}

.pill-field {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
  font-weight: 600;
}

.pill-live {
  color: var(--live);
  background: var(--live-soft);
  border-color: transparent;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 120px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-a {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -80px;
  background: var(--orb-a);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-b {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: -120px;
  background: var(--orb-b);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  to {
    transform: translate(-40px, 50px) scale(1.12);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.9rem, 7.6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 .grad {
  display: block;
  background: linear-gradient(100deg, var(--accent) 10%, var(--live) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-2);
}

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

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

/* Game-screen style visual (decorative, reveals no specific title) */
.stage {
  --mx: 0;
  --my: 0;
  position: relative;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  box-shadow: var(--shadow);
  overflow: hidden;
  perspective: 900px;
}

.stage-sun {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--live));
  transform: translate(calc(-50% + var(--mx) * 14px), calc(var(--my) * 10px));
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 15px);
  mask-image: repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 15px);
  opacity: 0.92;
}

.stage-ring {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 62%;
  aspect-ratio: 1;
  margin-left: -31%;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spin 40s linear infinite;
}

.stage-ring::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 14px var(--live);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.stage-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -2%;
  height: 52%;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  transform: rotateX(62deg) translateX(calc(var(--mx) * 18px));
  transform-origin: 50% 100%;
  animation: floor 3s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
}

@keyframes floor {
  to {
    background-position: 0 44px;
  }
}

.hud {
  position: absolute;
  z-index: 2;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
}

.hud-top {
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--live);
}

.hud-bar {
  bottom: 16px;
  left: 16px;
  right: 16px;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: grid;
  gap: 8px;
}

.hud-bar-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
}

.hud-track {
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.hud-fill {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--live));
  animation: load 5s var(--ease) infinite alternate;
}

@keyframes load {
  from {
    width: 48%;
  }

  to {
    width: 72%;
  }
}

.chip {
  position: absolute;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}

.chip-1 {
  top: 24%;
  right: 8%;
}

.chip-2 {
  top: 46%;
  left: 7%;
  animation-delay: -1.6s;
}

.chip-3 {
  top: 60%;
  right: 14%;
  animation-delay: -3.2s;
}

@keyframes bob {
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- Capabilities ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 20px 50px -28px var(--accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-top: 22px;
  font-size: 1.3rem;
}

.card p {
  margin-top: 10px;
  color: var(--text-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- Games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.game-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.game-cover {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--orb-a), transparent 60%),
    radial-gradient(circle at 80% 90%, var(--orb-b), transparent 60%), var(--surface-2);
  overflow: hidden;
}

.game-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.game-cover.has-img::before {
  display: none;
}

.game-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.game-card:hover .game-cover img {
  transform: scale(1.04);
}

.game-cover-mark {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
}

.game-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
}

.game-body h3 {
  font-size: 1.5rem;
}

.game-body p {
  color: var(--text-2);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--border-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.step h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.96rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}

.principle {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.principle strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.principle span {
  display: block;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ---------- Journal ---------- */
.journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.post-card h3 {
  font-size: 1.25rem;
}

.post-card p {
  color: var(--text-2);
}

.empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: clamp(36px, 6vw, 64px) 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-2);
}

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

/* ---------- About ---------- */
.about-text {
  max-width: 720px;
}

.about-text h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.about-text p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ---------- Contact ---------- */
.contact-box {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 80px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 0%, var(--orb-a), transparent 55%),
    radial-gradient(circle at 0% 100%, var(--orb-b), transparent 55%), var(--surface);
  text-align: center;
}

.contact-box h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 720px;
  margin-inline: auto;
}

.contact-box > p {
  margin: 16px auto 0;
  max-width: 540px;
  color: var(--text-2);
}

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.9rem;
}

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

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

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

/* ---------- Inner pages (journal, 404) ---------- */
.page-hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 48px);
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.page-hero p {
  margin-top: 16px;
  max-width: 600px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.page-body {
  padding-bottom: var(--section-y);
  min-height: 40vh;
}

.center-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px var(--gutter);
}

.center-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.center-page p {
  margin: 12px 0 28px;
  color: var(--text-2);
}

/* ---------- Document pages (legal, support) ---------- */
html[lang="vi"] [data-lang="en"],
html:not([lang="vi"]) [data-lang="vi"] {
  display: none;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: color 0.2s;
}

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

.crumb svg {
  width: 14px;
  height: 14px;
}

.doc-game-link {
  margin-top: 40px;
}

.doc-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}

.doc {
  max-width: 760px;
}

.doc h2 {
  margin-top: 44px;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc p {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.doc ol {
  list-style: decimal;
}

.doc li + li {
  margin-top: 8px;
}

.doc a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc strong {
  color: var(--text);
}

.doc .btn {
  margin-top: 18px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.callout {
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.callout p:first-child {
  margin-top: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
}

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

/* ---------- Game page ---------- */
.game-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.game-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.game-hero .lede {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 540px;
}

.game-shot {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-shot img {
  width: 100%;
  height: auto;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  min-width: 180px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  line-height: 1.25;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.store-btn small {
  font-size: 0.7rem;
  color: var(--text-3);
}

.store-btn b {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.store-btn:not(.is-disabled):hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.store-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-top: 28px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 500;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.link-card svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .game-hero {
    grid-template-columns: 1fr;
  }

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


  .stage {
    max-width: 560px;
  }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .header-tools {
    margin-left: auto;
  }
}

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

  .game-cover {
    min-height: 180px;
  }

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

  .hero-actions .btn,
  .contact-actions .btn {
    flex: 1 1 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .seg button,
  .seg a {
    min-width: 32px;
    padding: 5px 8px;
  }
}

@media print {
  .site-header,
  .hero-bg,
  .stage,
  .menu-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

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

/* Language switch is a pair of links in the CMS build (one URL per language). */
.seg a {
  display: inline-block;
  text-align: center;
}
