/* Korma Games: promotional site.
   Palette: rosso, crema, nero and oro, an Italian-inspired take on the
   app's own burgundy, black and gold. */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-900.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-500.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-800.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --rosso: #b3192f;
  --rosso-deep: #7a0f1f;
  --rosso-glow: #e0334c;
  --crema: #f7efe2;
  --crema-soft: #efe3cf;
  --nero: #120d0c;
  --nero-soft: #1d1513;
  --nero-line: rgba(247, 239, 226, 0.12);
  --oro: #d4a94c;
  --oro-light: #f1d48a;
  --oro-deep: #9c7426;
  --ink: #2a1c16;
  --muted: #c9b8a0;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1180px, 100% - 32px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nero);
  color: var(--crema);
  font: 500 17px/1.65 var(--body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--oro-light);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--oro-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--oro);
  color: var(--nero);
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--oro);
  font: 800 0.8rem/1 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--rosso-glow), var(--oro));
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  max-width: 62ch;
}

/* Tricolore-inspired ribbon: rosso, crema, oro */
.ribbon {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--rosso) 0 33.3%,
    var(--crema) 33.3% 66.6%,
    var(--oro) 66.6% 100%
  );
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 13, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nero-line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--crema);
  text-decoration: none;
  font: 900 1.1rem/1 var(--display);
  letter-spacing: 0.08em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(212, 169, 76, 0.5);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--crema);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  background: rgba(212, 169, 76, 0.14);
  color: var(--oro-light);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nero-line);
  border-radius: 12px;
  background: var(--nero-soft);
  color: var(--crema);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --b: var(--oro);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font: 800 1rem/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.btn-primary {
  color: var(--nero);
  background: linear-gradient(180deg, var(--oro-light), var(--oro) 55%, var(--oro-deep));
  box-shadow:
    0 4px 0 #6b4c16,
    0 12px 30px rgba(212, 169, 76, 0.35);
}

.btn-primary:hover {
  color: var(--nero);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #6b4c16,
    0 16px 36px rgba(212, 169, 76, 0.45);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #6b4c16,
    0 6px 16px rgba(212, 169, 76, 0.3);
}

.btn-ghost {
  color: var(--crema);
  background: rgba(247, 239, 226, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(247, 239, 226, 0.3);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(247, 239, 226, 0.12);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}

.hero::before {
  /* Warm stage light: rosso from the left, oro from the right. */
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 15% 30%, rgba(179, 25, 47, 0.45), transparent 70%),
    radial-gradient(50% 50% at 85% 20%, rgba(212, 169, 76, 0.28), transparent 70%),
    linear-gradient(180deg, #1a100e, var(--nero));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem);
  background: linear-gradient(180deg, #fff6dc, var(--oro-light) 45%, var(--oro) 70%, var(--oro-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.hero .tagline {
  margin: 0 0 18px;
  font: 900 clamp(1.25rem, 1rem + 1.2vw, 1.8rem) / 1.2 var(--display);
  color: var(--crema);
}

.hero .lead {
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

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

.pills li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 169, 76, 0.12);
  border: 1px solid rgba(212, 169, 76, 0.35);
  color: var(--oro-light);
  font-weight: 800;
  font-size: 0.85rem;
}

/* The phone mock-up holding a real screenshot. */
.device {
  position: relative;
  perspective: 1200px;
}

.device-frame {
  position: relative;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3b2a22, #0b0807 60%, #2b1f19);
  box-shadow:
    0 0 0 1.5px rgba(212, 169, 76, 0.55),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(179, 25, 47, 0.25);
  transform: rotateY(-10deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: float 7s ease-in-out infinite;
}

.device-frame img {
  border-radius: 26px;
  aspect-ratio: 1600 / 713;
  object-fit: cover;
  width: 100%;
}

.device-frame::after {
  /* Glass reflection */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 35%);
  pointer-events: none;
}

.device-badge {
  position: absolute;
  right: -10px;
  bottom: -26px;
  width: clamp(84px, 12vw, 130px);
  border-radius: 22px;
  box-shadow:
    0 0 0 2px var(--oro),
    0 18px 40px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out -2s infinite;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--nero-line);
  border: 1px solid var(--nero-line);
}

.stat {
  padding: 22px 16px;
  text-align: center;
  background: rgba(29, 21, 19, 0.85);
}

.stat b {
  display: block;
  font: 900 clamp(1.8rem, 1.2rem + 2vw, 2.6rem) / 1 var(--display);
  color: var(--oro-light);
}

.stat span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.section-head .lead {
  margin: 0;
}

.section-cream {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(212, 169, 76, 0.18), transparent 60%),
    var(--crema);
  color: var(--ink);
}

.section-cream .eyebrow {
  color: var(--rosso);
}

.section-cream .lead {
  color: #5d4636;
}

.section-cream h2 {
  color: var(--nero);
}

/* Introduction */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.intro-art {
  position: relative;
}

.intro-art img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(42, 28, 22, 0.35);
}

.intro-art::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 2px solid var(--oro);
  border-radius: var(--radius);
  z-index: -1;
}

.intro-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.intro-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
}

.intro-points li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--rosso);
}

/* Games */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--nero-line);
  border-radius: 999px;
  background: var(--nero-soft);
  color: var(--crema);
  font: 700 0.92rem/1 var(--body);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.chip:hover {
  border-color: rgba(212, 169, 76, 0.6);
}

.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--rosso-glow), var(--rosso) 60%, var(--rosso-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 0 #4d0812;
}

.chip .count {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.78rem;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--nero-soft);
  border: 1px solid var(--nero-line);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s,
    border-color 0.25s,
    opacity 0.3s;
}

.game:hover {
  border-color: rgba(212, 169, 76, 0.65);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 169, 76, 0.35);
}

.game[hidden] {
  display: none;
}

.game-art {
  position: relative;
  aspect-ratio: 336 / 400;
  overflow: hidden;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game:hover .game-art img {
  transform: scale(1.06);
}

.game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 13, 12, 0.78);
  border: 1px solid rgba(212, 169, 76, 0.5);
  color: var(--oro-light);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-tag.duo {
  left: auto;
  right: 10px;
  border-color: rgba(224, 51, 76, 0.7);
  color: #ffd9de;
}

.game-body {
  padding: 14px 16px 18px;
}

.game h3 {
  margin: 0 0 6px;
  font: 800 1.08rem/1.25 var(--body);
  letter-spacing: 0;
}

.game h3 small {
  display: block;
  color: var(--oro);
  font-weight: 700;
  font-size: 0.8rem;
}

.game p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 190px);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li:nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery li:nth-child(2) {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery li:nth-child(3),
.gallery li:nth-child(4) {
  grid-column: span 2;
}

.gallery li:nth-child(5),
.gallery li:nth-child(6) {
  grid-column: span 3;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  box-shadow: 0 14px 34px rgba(42, 28, 22, 0.28);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 13, 12, 0.8);
  color: var(--crema);
  font-weight: 800;
  font-size: 0.82rem;
}

/* Lightbox */
.lightbox {
  width: min(1200px, 100vw - 24px);
  max-height: 100vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--crema);
}

.lightbox::backdrop {
  background: rgba(8, 5, 5, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
}

.lightbox figcaption {
  padding: 12px 4px;
  text-align: center;
  font-weight: 800;
}

.lightbox-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 6px;
}

.lightbox-bar button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(247, 239, 226, 0.3);
  border-radius: 12px;
  background: rgba(29, 21, 19, 0.9);
  color: var(--crema);
  font: 800 0.95rem/1 var(--body);
  cursor: pointer;
}

.lightbox-bar button:hover {
  border-color: var(--oro);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(247, 239, 226, 0.06), rgba(247, 239, 226, 0.02));
  border: 1px solid var(--nero-line);
  overflow: hidden;
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 169, 76, 0.5);
}

.feature::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 25, 47, 0.35), transparent 70%);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--rosso-glow), var(--rosso) 60%, var(--rosso-deep));
  box-shadow: 0 4px 0 #4d0812;
  color: #fff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  margin: 0 0 8px;
  font: 800 1.15rem/1.3 var(--body);
  letter-spacing: 0;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Download */
.download {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(224, 51, 76, 0.55), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(212, 169, 76, 0.35), transparent 60%),
    linear-gradient(135deg, var(--rosso-deep), #2a0a10 60%, var(--nero));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(212, 169, 76, 0.35);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.download h2 {
  color: #fff;
}

.download .lead {
  color: #f2d9dc;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  min-height: 64px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #0b0807;
  border: 1.5px solid rgba(247, 239, 226, 0.35);
  color: var(--crema);
  cursor: not-allowed;
  text-align: left;
}

.store svg {
  flex: none;
  width: 30px;
  height: 30px;
}

.store small {
  display: block;
  color: var(--oro-light);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store strong {
  display: block;
  font: 800 1.15rem/1.2 var(--body);
}

.download-art img {
  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: 36px;
  box-shadow:
    0 0 0 3px var(--oro),
    0 30px 70px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  background: #0b0807;
  border-top: 1px solid var(--nero-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  font: 800 0.85rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 42ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--nero-line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* -------------------------------------------------------- legal page */

.legal {
  padding: clamp(40px, 6vw, 80px) 0;
}

.legal .wrap {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  color: var(--oro-light);
}

.legal h2 {
  margin-top: 2em;
  font-size: 1.4rem;
  color: var(--crema);
}

.legal p,
.legal li {
  color: #e6d9c6;
}

.legal .meta {
  color: var(--muted);
}


.legal .summary {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(212, 169, 76, 0.1);
  border: 1px solid rgba(212, 169, 76, 0.35);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .hero-grid,
  .intro-grid,
  .download {
    grid-template-columns: 1fr;
  }

  .device {
    max-width: 640px;
    margin-inline: auto;
  }

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

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .download-art {
    order: -1;
  }

  .download-art img {
    width: min(180px, 60%);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(18, 13, 12, 0.97);
    border-bottom: 1px solid var(--nero-line);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav .btn-nav {
    display: none;
  }

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

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .gallery li:nth-child(n) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery li:nth-child(2) {
    grid-column: span 1;
    grid-row: span 3;
  }

  .gallery li:nth-child(3),
  .gallery li:nth-child(4),
  .gallery li:nth-child(5) {
    grid-column: span 1;
  }

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

  /* Two game cards per row on phones. */
  .games {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .game-body {
    padding: 10px 12px 14px;
  }

  .game h3 {
    font-size: 0.98rem;
  }

  .game p {
    font-size: 0.84rem;
  }

  .game-tag {
    font-size: 0.64rem;
    padding: 3px 8px;
  }

  .device-frame {
    transform: none;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .store {
    width: 100%;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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