/*
 * solitaire.computer
 *
 * The app's palette, unchanged: src/ui/theme/palettes.ts is the source of every
 * colour below, and the names are the app's names so the two can be compared by
 * eye. The table is the artwork's navy rather than a green baize — the icon, the
 * splash and both backgrounds are built on it — and the one accent is the gold
 * of the court cards.
 *
 * The site is dark only. The app offers a light theme because a phone is held in
 * daylight; a card table is not a phone, and a white marketing page under this
 * artwork looked like a different product.
 */

:root {
  color-scheme: dark;

  /* Board — the app's `felt` family. */
  --felt: #232e3f;
  --felt-edge: #171f2b;
  --scrim-deep: #0c1220;
  --on-felt: #f2f4f7;
  --on-felt-muted: #b7c0cc;
  --on-felt-faint: #8994a3;

  /* Cards and chrome. */
  --card-face: #f2efe8;
  --accent: #d9a441;
  --accent-bright: #e8bc63;
  --on-accent: #1a1200;
  --suit-red: #c62828;

  /* Surfaces laid over the artwork — the app's `scrim` and `barScrim`. */
  --scrim: rgba(255, 255, 255, 0.05);
  --scrim-raised: rgba(255, 255, 255, 0.075);
  --bar-scrim: rgba(18, 25, 37, 0.78);
  --stroke: rgba(217, 164, 65, 0.22);
  --stroke-soft: rgba(255, 255, 255, 0.08);

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 40px 90px rgba(0, 0, 0, 0.6);

  /* Three radii for the whole site, as in the app. */
  --r-surface: 14px;
  --r-button: 10px;
  --r-pill: 999px;

  --content: 1240px;

  /* The app's `settle` curve: something arriving and coming to rest. */
  --settle: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--scrim-deep);
  color: var(--on-felt);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/*
 * The ground: the same navy the app paints behind its artwork, lifted by two
 * very soft pools of gold so the page is not a flat rectangle. `felt-edge` at
 * the bottom is the app's vignette.
 */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(217, 164, 65, 0.13), transparent 58%),
    radial-gradient(900px 620px at -8% 22%, rgba(76, 123, 196, 0.12), transparent 52%),
    linear-gradient(180deg, #101827, var(--scrim-deep) 60%, #080d16);
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(217, 164, 65, 0.32);
}

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

/* ═══ HEADER ═══════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-scrim);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke-soft);
}

.site-header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-felt);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: var(--on-felt-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--on-felt-faint);
}

.lang-switch select {
  border: 1px solid var(--stroke);
  border-radius: var(--r-button);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: var(--scrim);
  color: var(--on-felt);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  max-width: 168px;
}

.lang-switch select:hover {
  border-color: var(--accent);
  background: var(--scrim-raised);
}

/* ═══ HERO ═════════════════════════════════════════════ */

.hero-outer {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 60px 32px 40px;
}

/*
 * The menu artwork, laid behind the hero and dimmed almost out of sight. It is
 * the same picture the app shows behind its own menu, which is the point: the
 * page and the first screen of the app should look like one place.
 *
 * Full-bleed rather than bounded by the content column: at 1240 px the picture
 * ended in two hard vertical seams down the page, which read as a stray
 * rectangle rather than as a table under the type. It is faded out on both axes
 * at once, so there is no edge anywhere.
 */
.hero-art {
  position: absolute;
  top: -90px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 640px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 94%),
    linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 94%),
    linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--stroke);
  background: rgba(217, 164, 65, 0.09);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin-bottom: 22px;
}

.hero-badge-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
  flex-shrink: 0;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}

.hero-copy h1 .gilt {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-felt-muted);
  max-width: 30em;
  margin: 0 0 32px;
}

/* ═══ STORE BADGES ═════════════════════════════════════ */

/*
 * Tops aligned, not centres: the App Store badge carries a caption under it
 * while the listing is pending, and centring the pair floated it half a line
 * above its neighbour.
 */
.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.store-badge {
  height: 54px;
  width: auto;
  display: block;
}

@media (min-width: 600px) {
  .store-badge {
    height: 60px;
  }
}

.store-link {
  display: inline-flex;
  border-radius: 9px;
  transition: transform 0.25s var(--settle), opacity 0.25s;
}

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

/*
 * While a listing is pending its badge is a <button>, not a link. It has to
 * look exactly like the badge next to it — same size, same weight, no chrome of
 * its own — because the reader is not being shown a control, only a badge that
 * happens to answer with a dialog.
 */
button.store-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* ═══ THE PHONE ════════════════════════════════════════ */

.phone-rail {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Positioned so the glow does not fall on the dots underneath it. */
.phone-wrap > .carousel-dots {
  position: relative;
  z-index: 1;
}

.phone-wrap {
  position: relative;
  width: min(100%, 320px);
}

.phone-glow {
  position: absolute;
  inset: -14% -22%;
  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.3), transparent 72%);
  filter: blur(24px);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-shell {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2b3648, #0a0f18);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(217, 164, 65, 0.16),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
  animation: float 8s ease-in-out infinite;
}

.carousel {
  position: relative;
  aspect-ratio: 1320 / 2868;
  border-radius: 31px;
  overflow: hidden;
  background: var(--felt-edge);
}

.carousel picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--settle);
}

.carousel picture.is-active {
  opacity: 1;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--settle);
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ═══ SECTIONS ═════════════════════════════════════════ */

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 32px 20px;
}

.section-head {
  margin-bottom: 32px;
  max-width: 40em;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.section-head p {
  font-size: 16.5px;
  color: var(--on-felt-muted);
  margin: 0;
}

/* ═══ THE FIVE GAMES ═══════════════════════════════════ */

/*
 * Six columns rather than five: the first three cards take two each and the last
 * two take three each, so a set of five lands as 3 + 2 with nothing orphaned and
 * no card left stretched across a whole row on its own.
 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.game-card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-surface);
  border: 1px solid var(--stroke-soft);
  background: var(--scrim);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--settle), border-color 0.35s, box-shadow 0.35s;
}

.game-card:nth-child(4),
.game-card:nth-child(5) {
  grid-column: span 3;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--settle);
}

.game-card:hover .game-thumb {
  transform: scale(1.05);
}

.game-body {
  padding: 18px 20px 22px;
}

.game-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--card-face);
}

.game-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-felt-muted);
  margin: 0;
}

/* The store description's one line per game, set small under the blurb. */
.game-rule {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-felt-faint);
}

/* ═══ FEATURES ═════════════════════════════════════════ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--r-surface);
  background: var(--scrim);
  border: 1px solid var(--stroke-soft);
  transition: border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  border-color: var(--stroke);
  background: var(--scrim-raised);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(150deg, rgba(217, 164, 65, 0.9), rgba(176, 126, 40, 0.85));
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.2);
  color: var(--on-accent);
}

.feature-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  line-height: 1.25;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-felt-muted);
  margin: 0;
}

/* ═══ CTA ══════════════════════════════════════════════ */

.cta-wrap {
  max-width: var(--content);
  margin: 32px auto 0;
  padding: 0 32px;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 56px 44px;
  text-align: center;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(217, 164, 65, 0.22), transparent 70%),
    linear-gradient(160deg, #1b2534, #0e1521);
}

.cta-banner h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--on-felt-muted);
  margin: 0 auto 28px;
  max-width: 34em;
}

.cta-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ═══ CARDS (support & privacy pages) ══════════════════ */

.page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 32px 56px;
}

.page-head {
  padding: 0 0 36px;
  max-width: 42em;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.page-head p {
  color: var(--on-felt-muted);
  font-size: 17px;
}

.card {
  background: var(--scrim);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--r-surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 14px;
}

.card > p {
  color: var(--on-felt-muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
}

/*
 * The support page's questions run the full width of the row above them; the
 * answers do not. A card that stopped at 900 px under a three-column grid read
 * as a layout that had gone wrong, and an answer set across 1240 px reads as
 * one nobody expects to be read.
 */
.card-stack.full {
  max-width: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* A list of plain statements, each marked with a small gold pip. */
.pip-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--on-felt-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.pip-list li {
  padding-inline-start: 20px;
  position: relative;
}

.pip-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
}

.card-action {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.button {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 11px 22px;
  border-radius: var(--r-button);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s var(--settle);
}

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

.button-quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--stroke);
}

.button-quiet:hover {
  background: rgba(217, 164, 65, 0.1);
  color: var(--accent-bright);
}

.mail-link a {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  word-break: break-word;
}

.mail-link a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

/* ═══ THE "COMING SOON" DIALOG ═════════════════════════ */

/*
 * A native <dialog>, so the browser owns the backdrop, the focus and the
 * Escape key. What is left to style is the panel — the same surface as a card,
 * on the same navy, with the gold hairline the whole site uses.
 */
.soon-dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--on-felt);
  max-width: min(92vw, 460px);
  overflow: visible;
  /*
   * Restored, not decoration: a modal <dialog> is centred by `margin: auto` in
   * the browser's own stylesheet, and the `* { margin: 0 }` at the top of this
   * file zeroes it along with everything else. Without this line the dialog
   * opens in the top-left corner.
   */
  margin: auto;
}

.soon-dialog::backdrop {
  /* The app's `modalScrim`, dark theme. */
  background: rgba(4, 8, 14, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.soon-inner {
  border-radius: var(--r-surface);
  border: 1px solid var(--stroke);
  padding: 32px 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  background:
    radial-gradient(420px 200px at 50% -30%, rgba(217, 164, 65, 0.2), transparent 70%),
    linear-gradient(165deg, #1b2534, #0d1420);
}

.soon-mark {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--stroke);
  background: rgba(217, 164, 65, 0.1);
}

.soon-dialog h2 {
  font-family: var(--serif);
  font-size: clamp(21px, 4.2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.soon-dialog p {
  color: var(--on-felt-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.soon-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/*
 * The footer's store entries while their listings are pending. A button that
 * has to sit in a column of links and read as one of them.
 */
.footer-soon {
  font: inherit;
  font-size: 14.5px;
  padding: 0;
  border: none;
  background: none;
  color: var(--on-felt-faint);
  cursor: pointer;
  text-align: start;
  transition: color 0.2s;
}

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

/* ═══ FAQ ══════════════════════════════════════════════ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-top: 1px solid var(--stroke-soft);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--stroke-soft);
}

.faq-item h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.faq-item p {
  color: var(--on-felt-muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 72ch;
}

/* ═══ OTHER APPS ═══════════════════════════════════════ */

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.app-links a {
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.app-links a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

/* ═══ FOOTER ═══════════════════════════════════════════ */

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--stroke-soft);
  background: rgba(8, 13, 22, 0.5);
}

.site-footer-grid {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 32px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14.5px;
  color: var(--on-felt-faint);
  line-height: 1.6;
  max-width: 28em;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 3px;
}

.site-footer a {
  font-size: 14.5px;
  color: var(--on-felt-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer-bottom {
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px 32px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-note {
  font-size: 12.5px;
  color: var(--on-felt-faint);
}

.footer-copy {
  font-family: var(--mono);
}

/* ═══ 404 ══════════════════════════════════════════════ */

.not-found {
  max-width: 34em;
  margin: 0 auto;
  padding: 120px 32px;
  text-align: center;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

.not-found p {
  color: var(--on-felt-muted);
  font-size: 17px;
  margin: 0 0 28px;
}

/* ═══ RIGHT TO LEFT ════════════════════════════════════ */

[dir="rtl"] .hero-copy h1 .gilt {
  font-style: normal;
}

[dir="rtl"] .footer-copy {
  font-family: var(--sans);
}

/* ═══ RESPONSIVE ═══════════════════════════════════════ */

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

  .hero-art {
    height: 480px;
  }

  .phone-shell {
    animation: none;
  }

  .phone-glow {
    display: none;
  }

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

  .game-card,
  .game-card:nth-child(4),
  .game-card:nth-child(5) {
    grid-column: span 2;
  }

  .game-card:nth-child(5) {
    grid-column: span 4;
  }

  .game-card:nth-child(5) .game-thumb {
    aspect-ratio: 21 / 8;
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 15, 24, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke-soft);
    padding: 4px 24px 14px;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--stroke-soft);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .lang-switch label {
    display: none;
  }

  .hero-outer {
    padding: 36px 22px 28px;
  }

  .section {
    padding: 40px 22px 12px;
  }

  .page {
    padding: 32px 22px 40px;
  }

  .cta-wrap {
    padding: 0 22px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

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

  .game-card,
  .game-card:nth-child(4),
  .game-card:nth-child(5) {
    grid-column: span 1;
  }

  .game-card:nth-child(5) .game-thumb {
    aspect-ratio: 16 / 9;
  }

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

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 22px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-bottom {
    padding: 18px 22px 36px;
  }

  .site-header-inner {
    padding: 12px 20px;
  }

  .brand-name {
    font-size: 19px;
  }
}

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

  .lang-switch select {
    max-width: 132px;
  }
}

/*
 * The app honours Reduce Motion in every animation it draws; the site does the
 * same. The carousel still advances — it is content, not decoration — but it
 * cuts rather than fades, and nothing drifts or breathes.
 */
@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;
  }
}
