/* MediaCircle marketing system: dual-theme brand tokens, responsive layout, accessible motion. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-alt: #0a0a0b;
  --surface: #0e0e10;
  --surface-raised: #17171a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.45);
  --soft: rgba(255, 255, 255, 0.07);
  --red: #f63b3b;
  --red-light: #ff7a7a;
  --red-tint: rgba(246, 59, 59, 0.14);
  --glow: rgba(246, 59, 59, 0.1);
  --header-bg: rgba(5, 5, 5, 0.85);
  --shadow-card: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 2rem 5rem rgba(0, 0, 0, 0.85);
  --max: 74rem;
  --radius: 1.25rem;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f7;
  --bg-alt: #f2f0ec;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --line: rgba(20, 18, 16, 0.13);
  --text: #17151a;
  --muted: rgba(23, 21, 26, 0.64);
  --faint: rgba(23, 21, 26, 0.45);
  --soft: rgba(20, 18, 16, 0.05);
  --red: #e02f2f;
  --red-light: #c92a2a;
  --red-tint: rgba(224, 47, 47, 0.09);
  --glow: rgba(224, 47, 47, 0.07);
  --header-bg: rgba(250, 249, 247, 0.85);
  --shadow-card: 0 1.2rem 3rem rgba(35, 20, 15, 0.14);
  --shadow-pop: 0 1.6rem 4rem rgba(35, 20, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

/* Width/height attributes reserve layout space; CSS widths must not inherit attribute heights. */
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.9rem, 9vw, 5.4rem);
  line-height: 0.98;
}

h1 span {
  color: var(--red);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: clamp(8.5rem, 20vw, 11rem);
  height: auto;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-games {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.65rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links .nav-link-games {
  display: none;
}

.nav-app-cta {
  min-height: 44px;
  padding-inline: 0.9rem !important;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-links .button {
  display: none;
}

.theme-toggle,
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle {
  gap: 0.4rem;
}

.nav-toggle span:not(.sr-only) {
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

.nav-links {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: none;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

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

.nav-links a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding-inline: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding-inline: 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

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

.button-primary,
.nav-app-cta,
.nav-links .button {
  background: var(--red);
  color: #fff !important;
}

.button-primary:hover {
  filter: brightness(1.1);
}

.button-ghost {
  border-color: var(--line);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--muted);
}

.button-small {
  min-height: 44px;
  padding-inline: 1.2rem !important;
}

/* ---------- Store badges (matched pair, badge artwork is the button) ---------- */

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.store-link {
  display: flex;
  align-items: center;
  width: 10.5rem;
  height: 3.5rem;
  transition: transform 180ms ease, filter 180ms ease;
}

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

.store-link img {
  width: 100%;
  height: 100%;
}

.play-store {
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0.5rem 0 3.1rem;
  border: 1px solid #a6a6a6;
  border-radius: 0.62rem;
  background: #000;
  color: #fff;
  line-height: 1.05;
}

.play-store::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  width: 1.75rem;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #00d8ff 0 33%, #35db65 33% 55%, #ffd23f 55% 77%, #ff5050 77%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.store-kicker {
  font-size: 0.62rem;
}

.play-store strong {
  font-size: 1.18rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 78% 12%, var(--glow), transparent 34rem);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.lede {
  max-width: 36rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas .button {
  flex: 1 1 auto;
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 30rem;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: min(80vw, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}

.hero-screen {
  position: relative;
  width: min(58vw, 15rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-pop);
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}

.hero-float p,
.hero-float strong {
  margin: 0;
  display: block;
  white-space: nowrap;
}

.hero-float-chat {
  top: -2%;
  left: 0;
  display: block;
  animation-delay: 0.6s;
}

@media (min-width: 56rem) {
  .hero-float-chat {
    top: 8%;
  }
}

.float-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-float-friend {
  bottom: 18%;
  right: 0;
  animation-delay: 1.8s;
}

.float-avatar {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.float-stars {
  display: block;
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.hero-float-play {
  bottom: 2%;
  left: 6%;
  font-weight: 700;
  white-space: nowrap;
  animation-delay: 3s;
}

.float-play {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.65rem);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.alt-section {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Media tiles (Section 2) ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.media-tile {
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease;
}

.media-tile:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.media-tile svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-tile h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.15rem;
}

.media-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Split story sections ---------- */

.split {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.split-copy em {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

.split-visual {
  display: grid;
  justify-items: center;
}

/* Portrait store assets always render complete: cap width, never crop height. */
.device-shot {
  width: min(100%, 19rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.device-shot img {
  width: 100%;
}

.video-frame {
  width: min(100%, 16.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #000;
  box-shadow: var(--shadow-card);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 1080 / 1920;
}

.video-autoplay {
  position: relative;
}

.video-sound-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.video-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.75);
}

.video-sound-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.video-sound-toggle .icon-sound-on,
.video-autoplay.unmuted .icon-sound-off {
  display: none;
}

.video-autoplay.unmuted .icon-sound-on {
  display: block;
}

.signal-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.signal-list li:first-child {
  border-top: 1px solid var(--line);
}

.signal-list span {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

.chat-prompts {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.chat-prompts span {
  width: fit-content;
  max-width: 100%;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.2rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.social-definitions {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
}

.social-definitions p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.social-definitions span {
  color: var(--muted);
  text-align: right;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.pill-grid span {
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Circles (Section 9) ---------- */

.circle-grid {
  display: grid;
  gap: 0.9rem;
}

.circle-card {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease;
}

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

.circle-card strong {
  font-size: 1.2rem;
}

.circle-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section-cta {
  margin-top: 2.25rem;
  text-align: center;
}

/* ---------- Why page ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-hero .lede {
  max-width: 40rem;
  margin-inline: auto;
}

.why-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.why-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.why-nav a:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.prose {
  max-width: 46rem;
}

.prose .section-heading {
  margin-bottom: 1.75rem;
}

.prose p:not(.eyebrow) {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.prose .signal-list {
  margin: 0 0 1.75rem;
}

.prose .after-table {
  margin-top: 1.75rem;
}

.prose p.pull-line,
.split-copy p.pull-line {
  margin: 1.75rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--red);
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Daily games ---------- */

.games-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  border-block: 1px solid var(--line);
  background: var(--red);
  color: #fff;
}

.games-section .eyebrow,
.games-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.88);
}

.games-grid {
  display: grid;
  gap: 1rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.game-card a {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.game-shot {
  position: relative;
  width: min(100%, 11.2rem);
  margin: 0.75rem auto 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.1rem;
  background: #000;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.game-shot::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.6) 50%,
    #000
  );
}

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

.game-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.35rem;
}

.game-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

/* ---------- Comparison table (Section 10) ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-table thead th:nth-child(2) {
  color: var(--red);
}

.compare-table td:nth-child(2) {
  background: var(--red-tint);
  font-weight: 700;
}

.compare-table td:nth-child(3) {
  color: var(--muted);
}

.compare-table tbody th {
  font-weight: 600;
}

.row-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.row-label svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
}

.check-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-weight: 700;
}

.check-yes svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Benefit trio ---------- */

.benefit-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 1rem;
}

.benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.benefit-purple {
  background: rgba(168, 120, 255, 0.16);
  color: #b48cff;
}

.benefit-red {
  background: var(--red-tint);
  color: var(--red);
}

.benefit-green {
  background: rgba(61, 220, 151, 0.14);
  color: #2fb583;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.benefit-card .benefit-logos {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------- Final CTA ---------- */

.final-cta {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .final-cta {
    grid-template-columns: 1.1fr 1fr;
  }
}

.final-cta-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.final-cta-copy h2 span {
  color: var(--red);
}

.final-cta-copy > p:not(.cta-note) {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.cta-note svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}

.final-cta-visual img {
  display: block;
  width: min(100%, 24rem);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.yes::before {
  content: "✓";
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-section .section-heading {
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 46rem;
  margin-inline: auto;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding-block: 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details > p {
  margin: 0 0 1.4rem;
  max-width: 42rem;
  color: var(--muted);
}

.faq-list details a {
  color: var(--red);
  font-weight: 600;
}

/* ---------- Search (live discovery) ---------- */

.search-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, var(--glow), transparent 25rem),
    var(--bg-alt);
}

.search-shell {
  position: relative;
  z-index: 5;
  max-width: 52rem;
  margin-inline: auto;
}

.search-form {
  position: relative;
  display: grid;
  gap: 0.65rem;
}

.search-form > svg {
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  width: 1.4rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.search-form input {
  width: 100%;
  min-height: 3.7rem;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 16px;
}

.search-submit {
  min-height: 50px;
  border: 0;
  border-radius: 0.8rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-suggestions {
  display: flex;
  gap: 0.5rem;
  padding-block: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-suggestions button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.autocomplete {
  position: absolute;
  top: 4.1rem;
  right: 0;
  left: 0;
  max-height: min(65vh, 31rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
}

.autocomplete-group + .autocomplete-group {
  border-top: 1px solid var(--line);
}

.autocomplete-heading {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.autocomplete-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-top: 1px solid var(--soft);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item[aria-selected="true"] {
  background: var(--red-tint);
}

.autocomplete-item img,
.result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
  background: var(--soft);
}

.autocomplete-image {
  width: 3rem;
  height: 3.2rem;
}

.autocomplete-item strong,
.autocomplete-item small {
  display: block;
}

.autocomplete-item small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.search-status {
  min-height: 1.5rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  text-align: center;
}

.search-results {
  margin-top: 2rem;
}

.result-section + .result-section {
  margin-top: 2.5rem;
}

.result-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.result-heading h3 {
  font-size: 1.5rem;
}

.result-heading span {
  color: var(--muted);
}

.result-rail {
  display: grid;
  grid-auto-columns: minmax(9.5rem, 42vw);
  grid-auto-flow: column;
  gap: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.6rem 0 1rem;
  scroll-snap-type: x proximity;
}

.result-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-raised);
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.result-card-image {
  aspect-ratio: 2 / 3;
  background: var(--soft);
}

.result-card div:last-child {
  padding: 0.8rem;
}

.result-card strong,
.result-card span {
  display: block;
}

.result-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Download (final CTA) ---------- */

.download-section {
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.download-card {
  position: relative;
  display: grid;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1.75rem, 6vw, 5rem);
  border: 1px solid var(--red-tint);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 15% 50%, var(--red-tint), transparent 28rem),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.download-card > img {
  width: min(55vw, 17rem);
  margin-inline: auto;
  filter: drop-shadow(0 1rem 2.5rem var(--red-tint));
}

.download-card h2 {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
}

.download-card p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand img {
  width: 11rem;
}

.footer-brand p {
  color: var(--muted);
}

.footer-grid h2 {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Detail dialog ---------- */

.detail-dialog {
  width: min(calc(100% - 1rem), 55rem);
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface-raised);
  color: var(--text);
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: sticky;
  top: 0.75rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  float: right;
  margin: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}

.dialog-body {
  padding: 1.25rem;
}

.detail-hero {
  display: grid;
  gap: 1.5rem;
}

.detail-poster {
  width: min(55vw, 13rem);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.8rem;
  background: var(--soft);
}

.detail-meta {
  color: var(--red);
  font-weight: 700;
}

.detail-description {
  color: var(--muted);
  white-space: pre-line;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.detail-tags li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.error-message,
.empty-message {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
}

.error-message {
  color: var(--red);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

/* ---------- Responsive ---------- */

@media (min-width: 42rem) {
  .hero-ctas .button {
    flex: 0 0 auto;
  }

  .search-form {
    grid-template-columns: 1fr auto;
  }

  .search-submit {
    min-width: 8rem;
  }

  .autocomplete {
    right: 8.7rem;
  }

  .result-rail {
    grid-auto-columns: 11rem;
  }

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

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

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

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

@media (min-width: 56rem) {
  .nav-toggle,
  .nav-games {
    display: none;
  }

  .nav-links .nav-link-games {
    display: flex;
  }

  .nav-links,
  .nav-links.open {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-links a {
    padding-inline: 0.8rem;
  }

  .nav-controls .nav-app-cta {
    display: none;
  }

  .nav-links .button {
    display: inline-flex;
  }

  /* Desktop order: brand, links, then theme toggle on the far right. */
  .nav-controls {
    order: 3;
  }

  .nav-links {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-visual {
    min-height: 38rem;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split-reverse .split-copy {
    order: 2;
  }

  .split-reverse .split-visual {
    order: 1;
  }

  .media-grid {
    grid-template-columns: repeat(5, 1fr);
  }

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

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

  .download-card {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

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

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

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