/* ==========================================================================
   Playteamwork landing page — mobile-first, no dependencies
   ========================================================================== */

@font-face {
  font-family: "Atma";
  src: url("../assets/fonts/Atma-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Atma";
  src: url("../assets/fonts/Atma-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* brand */
  --blue: #1977cd;
  --blue-dark: #114f88;
  --orange: #f4851c;
  --orange-dark: #c36309;
  --green: #6acf62;

  /* neutrals */
  --navy: #101c28;
  --navy-2: #1c2a39;
  --navy-3: #2f3f4f;
  --ink: #101c28;
  --muted: #475767;
  --bg: #fcfcfd;
  --tint: #eef2f6;
  --line: #dbe3ea;

  --font-display: "Atma", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(16, 28, 40, 0.35);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 2rem); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--orange); color: var(--navy); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-orange { background: var(--orange); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(244, 133, 28, 0.9); }
.btn-orange:hover { background: #ff9531; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(25, 119, 205, 0.9); }
.btn-blue:hover { background: #2286e2; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { color: var(--blue-dark); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 28, 40, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.brand img { width: auto; height: 32px; }
.brand-name { font: 700 1.3rem/1 var(--font-display); letter-spacing: 0.02em; }
@media (max-width: 420px) { .brand-name { font-size: 1.15rem; } .brand { gap: 0.45rem; } .header-inner { gap: 0.5rem; } }
@media (min-width: 560px) { .brand-name { font-size: 1.5rem; } }
.nav { display: none; margin-left: auto; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); padding: 0.4rem 0; }
.nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-actions .btn-ghost { display: none; }

.menu-toggle {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav drawer */
.js .nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem;
  background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.js .nav.open { display: flex; }
.js .nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, var(--navy-3) 0%, var(--navy-2) 40%, var(--navy) 100%);
  color: #fff;
  padding-block: 2.5rem 7rem;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; filter: blur(2px); opacity: 0.9; }
.blob-blue { width: 46vmax; height: 46vmax; max-width: 620px; max-height: 620px; right: -12%; top: -18%; background: linear-gradient(135deg, var(--blue), #114f88); opacity: 0.55; }
.blob-orange { width: 26vmax; height: 26vmax; max-width: 340px; max-height: 340px; left: -10%; bottom: 8%; background: linear-gradient(135deg, var(--orange), #c36309); border-radius: 40% 60% 35% 65% / 55% 40% 60% 45%; opacity: 0.35; }
.blob-green { width: 16vmax; height: 16vmax; max-width: 220px; max-height: 220px; right: 22%; bottom: 10%; background: linear-gradient(135deg, var(--green), #389c30); border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; opacity: 0.35; }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent);
}
.tri { position: absolute; }
.tri-1 { display: none; width: 90px; left: 46%; top: 12%; color: var(--green); opacity: 0.6; transform: rotate(-18deg); }
.tri-2 { width: 46px; left: 5%; bottom: 7%; color: var(--orange); opacity: 0.55; transform: rotate(24deg); }

.hero-grid { display: grid; gap: 3rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; margin-bottom: 1.2rem;
  font-size: 0.85rem; font-weight: 600; color: #d9ecff;
  background: rgba(25, 119, 205, 0.25); border: 1px solid rgba(164, 206, 244, 0.35); border-radius: 999px;
}
h1 { font-size: clamp(2.2rem, 7.5vw, 3.9rem); }
.hl {
  background: linear-gradient(transparent 74%, rgba(244, 133, 28, 0.9) 74% 94%, transparent 94%);
  padding-inline: 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { margin-top: 1.2rem; max-width: 34rem; font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: rgba(255, 255, 255, 0.82); }

.join-form {
  margin-top: 1.8rem; max-width: 30rem; padding: 1.1rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.join-form label { display: block; margin-bottom: 0.6rem; font-weight: 700; }
.join-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.join-row input {
  flex: 1 1 9rem; min-width: 0; min-height: 50px; padding: 0.6rem 1rem;
  font: 700 1.4rem/1 var(--font-display); letter-spacing: 0.32em; text-align: center;
  color: var(--navy); background: #fff; border: 2px solid transparent; border-radius: 999px;
}
.join-row input::placeholder { color: #9dadbe; }
.join-row input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.join-row .btn { flex: 1 1 10rem; min-height: 50px; }
.join-hint { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.hero-secondary { margin-top: 1.2rem; color: rgba(255, 255, 255, 0.8); }
.hero-secondary a { font-weight: 700; color: #fff; text-underline-offset: 3px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.hero-secondary a:hover { color: var(--orange); }

/* hero visual */
.hero-visual { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.phone {
  position: relative; width: min(280px, 72vw); aspect-ratio: 9 / 18.5;
  padding: 10px; border-radius: 42px; background: #0b131c;
  box-shadow: 0 0 0 2px #2b3b4b, 0 40px 70px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #000;
}
.phone-notch { position: absolute; z-index: 3; top: 16px; left: 50%; width: 32%; height: 20px; transform: translateX(-50%); background: #000; border-radius: 12px; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 32px; background: #fff; }
.phone-hero { transform: rotate(3deg); }
.phone-hero .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.screen-hint {
  position: absolute; left: 12px; right: 12px; bottom: 14px; padding: 0.7rem 0.9rem;
  font-size: 0.8rem; line-height: 1.35; font-weight: 600; text-align: center; color: #fff;
  background: rgba(16, 28, 40, 0.82); border-radius: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.float { position: absolute; z-index: 2; box-shadow: var(--shadow); }
.float-code {
  left: -2%; top: 14%; padding: 0.7rem 1rem; border-radius: 16px; color: var(--navy); background: #fff;
  display: grid; gap: 0.15rem; text-align: center; transform: rotate(-6deg);
}
.float-code span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.float-code strong { font: 700 1.5rem/1 var(--font-display); letter-spacing: 0.06em; }
.float-card { width: 108px; border-radius: 14px; border: 4px solid #fff; }
.fc-1 { right: 0; top: 6%; transform: rotate(9deg); }
.fc-2 { right: 2%; bottom: -6%; transform: rotate(-8deg); }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  .float-code { animation: bob 5s ease-in-out infinite; }
  .fc-1 { animation: bob 6s ease-in-out infinite -1s; }
  .fc-2 { animation: bob 7s ease-in-out infinite -3s; }
  .tri-1 { animation: spin 40s linear infinite; }
  @keyframes bob { 50% { translate: 0 -10px; } }
  @keyframes spin { to { rotate: 360deg; } }
}

/* ---------- fact strip ---------- */
.facts { margin-top: -2.2rem; position: relative; z-index: 2; }
.facts-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts-list li { display: grid; gap: 0.15rem; padding: 1rem; background: #fff; text-align: center; }
.facts-list strong { font: 700 1rem/1.2 var(--font-display); color: var(--blue-dark); }
.facts-list span { font-size: 0.85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section-tint { background: var(--tint); overflow: hidden; }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.section-head p:last-child { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.eyebrow { margin-bottom: 0.7rem; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-dark); }

/* steps */
.steps { display: grid; gap: 1.4rem; counter-reset: s; }
.step {
  position: relative; padding: 1.6rem 1.5rem 1.6rem; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px -22px rgba(16, 28, 40, 0.5);
}
.step::before {
  content: ""; position: absolute; width: 150px; height: 150px; right: -50px; top: -50px;
  background: var(--c); opacity: 0.14; border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
}
.step-num { position: absolute; right: 1.2rem; top: 0.6rem; font: 700 3.6rem/1 var(--font-display); color: var(--c); opacity: 0.35; }
.step-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1.1rem; color: #fff; background: var(--c); border-radius: 18px 18px 18px 6px; }
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

/* split (phone) section */
.shape-ring { position: absolute; width: 520px; height: 520px; left: -220px; top: -180px; border: 60px solid rgba(25, 119, 205, 0.08); border-radius: 50%; }
.split { display: grid; gap: 3rem; align-items: center; }
.split-visual { position: relative; display: grid; place-items: center; }
.shape-blob {
  position: absolute; z-index: 0; width: min(420px, 90%); aspect-ratio: 1; border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--blue), var(--green)); opacity: 0.85; transform: rotate(-8deg);
}
.phone-mock { z-index: 1; transform: rotate(-3deg); }
.mock-ui { display: flex; flex-direction: column; padding: 2.6rem 0.9rem 1rem; background: linear-gradient(180deg, #f4f8fc, #dbe6f0); }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mock-title { font: 700 1.05rem/1.1 var(--font-display); color: var(--navy); }
.mock-timer { padding: 0.25rem 0.6rem; font: 700 0.85rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: #fff; background: var(--blue); border-radius: 999px; }
.mock-stack { position: relative; flex: 1; margin: 1.1rem 0 0.6rem; }
.mock-card { position: absolute; left: 6%; right: 6%; border-radius: 16px; background: #fff; border: 3px solid #fff; box-shadow: 0 14px 24px -12px rgba(16, 28, 40, 0.55); overflow: hidden; }
.mock-card img { width: 100%; height: 100%; object-fit: cover; }
.mc-3 { top: 0; bottom: 34%; transform: rotate(-6deg) translateX(-6%); }
.mc-2 { top: 6%; bottom: 28%; transform: rotate(5deg) translateX(6%); }
.mc-1 { top: 14%; bottom: 4%; padding: 1rem; background: #fdf3e6; border-color: var(--orange); display: flex; flex-direction: column; gap: 0.6rem; transform: rotate(-1deg); }
.mc-num { display: grid; place-items: center; width: 32px; height: 32px; font: 700 1rem/1 var(--font-display); color: #fff; background: var(--orange); border-radius: 50%; }
.mc-1 p { font-size: 0.82rem; line-height: 1.4; color: var(--navy-3); }
.mc-tag { margin-top: auto; align-self: flex-start; padding: 0.15rem 0.6rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-dark); background: rgba(244, 133, 28, 0.14); border-radius: 999px; }
.mock-hint { font-size: 0.7rem; text-align: center; color: var(--muted); }

.lead-dark { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); }
.split-copy h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.checks { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.checks li { position: relative; padding-left: 2.2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101c28' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* ---------- games ---------- */
.games-scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1.5rem; scrollbar-width: thin; }
.games { display: flex; gap: 1rem; padding-inline: 1rem; width: max-content; min-width: 100%; }
.games-more { margin-top: 0.5rem; text-align: center; color: var(--muted); font-size: 1.08rem; }
.game {
  flex: 0 0 min(80vw, 300px); scroll-snap-align: center; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px -22px rgba(16, 28, 40, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game:hover { transform: translateY(-5px); box-shadow: 0 22px 36px -22px rgba(16, 28, 40, 0.6); }
.game img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-bottom: 5px solid var(--c); }
.game-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.1rem 1.2rem 1.3rem; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.tag { padding: 0.15rem 0.65rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--c); border-radius: 999px; }
.game h3 { font-size: 1.25rem; }
.goal { flex: 1; color: var(--muted); font-size: 0.95rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); font-size: 0.82rem; font-weight: 600; color: var(--navy-3); }
.meta li { display: inline-flex; align-items: center; gap: 0.35rem; }
.m-people::before, .m-time::before { content: ""; width: 1em; height: 1em; background: currentColor; opacity: 0.75; }
.m-people::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c0-4 3-6.5 7-6.5s7 2.5 7 6.5Z'/%3E%3Ccircle cx='17.5' cy='9' r='2.6'/%3E%3Cpath d='M17.5 13.5c3 0 5 2 5 5.5h-4.2c0-2.3-.7-4.200-2.300-5.200.5-.2 1-.3 1.500-.3Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c0-4 3-6.5 7-6.5s7 2.5 7 6.5Z'/%3E%3Ccircle cx='17.5' cy='9' r='2.6'/%3E%3Cpath d='M17.5 13.5c3 0 5 2 5 5.5h-4.2c0-2.3-.7-4.200-2.300-5.200.5-.2 1-.3 1.500-.3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.m-time::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 8.500V13l3 2M9 2.500h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 8.500V13l3 2M9 2.500h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.level i { display: inline-block; width: 9px; height: 9px; margin-right: 3px; border-radius: 50%; background: var(--line); }
.level i.on { background: var(--c); }
.level { display: inline-flex; flex: none; }

/* ---------- audiences ---------- */
.audiences { padding-top: 0; }
.aud-grid { display: grid; gap: 1.4rem; }
.aud { position: relative; isolation: isolate; overflow: hidden; padding: 2rem 1.7rem; border-radius: 28px; }
.aud h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.aud p { max-width: 28rem; }
.aud-trainer { color: #fff; background: linear-gradient(140deg, var(--blue), var(--blue-dark)); }
.aud-player { color: var(--navy); background: linear-gradient(140deg, #ffd7ad, var(--orange)); }
.aud-shape { position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; bottom: -80px; background: rgba(255, 255, 255, 0.16); border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%; }
.aud-player .aud-shape { background: rgba(255, 255, 255, 0.35); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: 0 12px 26px -20px rgba(16, 28, 40, 0.6); border-color: var(--blue); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; min-height: 56px;
  font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: 1.3rem; line-height: 1; color: #fff; background: var(--blue); border-radius: 50%; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* ---------- final CTA ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 10vw, 7rem); text-align: center; color: #fff; background: var(--navy); }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final .blob-blue { left: -10%; right: auto; top: -30%; opacity: 0.45; }
.final .blob-orange { left: auto; right: -6%; bottom: -25%; opacity: 0.4; }
.final .blob-green { right: auto; left: 40%; bottom: -30%; opacity: 0.25; }
.final h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.final-inner p { max-width: 34rem; margin: 1rem auto 0; font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); }
.final .cta-row { margin-top: 2rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); color: rgba(255, 255, 255, 0.75); background: #0b131c; }
.footer-inner { display: grid; gap: 1.2rem; justify-items: start; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer nav a { padding: 0.35rem 0; text-decoration: none; font-size: 0.92rem; }
.site-footer nav a:hover { color: var(--orange); }
.copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- scroll reveal (only with JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (max-width: 479px) {
  .join-row { flex-direction: column; }
  .join-row input, .join-row .btn { flex: none; width: 100%; }
}

@media (min-width: 560px) {
  .header-actions .btn-ghost { display: inline-flex; }
  .facts-list { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .aud { padding: 2.6rem 2.2rem; }
}

@media (min-width: 900px) {
  .nav, .js .nav { position: static; display: flex; flex-direction: row; gap: 1.6rem; padding: 0; background: none; border: 0; }
  .js .nav a { padding: 0.4rem 0; border: 0; font-size: 0.95rem; }
  .menu-toggle { display: none; }
  .header-actions { margin-left: 0; }

  .hero { padding-block: 4.5rem 8rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
  .phone { width: 300px; }
  .float-card { width: 156px; }
  .tri-1 { display: block; }
  .float-code { left: 2%; }

  .split { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; }
  .split-visual { order: 0; }

  /* games: turn the carousel into a grid */
  .games-scroller { overflow: visible; }
  .games { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1160px, 100% - 2rem); min-width: 0; padding-inline: 0; gap: 1.3rem; }
  .game { flex: none; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .games { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Auth pages (sign-in / sign-up)
   ========================================================================== */
.auth-page {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(120% 90% at 80% 0%, var(--navy-3) 0%, var(--navy-2) 40%, var(--navy) 100%);
}
.auth-header { padding-block: 1rem; }
.auth-header .brand { color: #fff; }
.auth-main {
  flex: 1; display: grid; place-items: center;
  padding-block: 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
}
.auth-card {
  width: min(28rem, 100%); padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.auth-card h1 { font-size: clamp(1.7rem, 6vw, 2.1rem); }
.auth-card .sub { margin-top: 0.4rem; color: rgba(255, 255, 255, 0.78); }
.auth-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.auth-form label { display: block; margin-bottom: 0.35rem; font-weight: 700; font-size: 0.95rem; }
.auth-form input {
  width: 100%; min-height: 50px; padding: 0.6rem 1rem;
  font: 1rem/1.2 var(--font-body); color: var(--navy);
  background: #fff; border: 2px solid transparent; border-radius: var(--radius-sm);
}
.auth-form input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.auth-form .btn { width: 100%; min-height: 52px; }
.auth-form .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form-error {
  margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: rgba(255, 90, 90, 0.16); border: 1px solid rgba(255, 130, 130, 0.5); color: #ffd6d6; font-size: 0.95rem;
}
.auth-alt { margin-top: 1.2rem; text-align: center; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.auth-alt a { color: #fff; font-weight: 700; }
.auth-alt a:hover { color: var(--orange); }

/* join form additions (name input + error) */
.join-row input#join-name {
  font: 600 1.05rem/1.2 var(--font-body); letter-spacing: normal; text-align: left;
}
.join-error {
  margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  background: rgba(255, 90, 90, 0.16); border: 1px solid rgba(255, 130, 130, 0.5); color: #ffd6d6; font-size: 0.92rem;
}

/* ==========================================================================
   Cookie consent banner (js/analytics.js)
   ========================================================================== */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.85); background: var(--navy);
  border-top: 1px solid var(--navy-3); box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.6);
  font-size: 0.92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: grid; gap: 0.8rem; }
.cookie-banner a { color: #fff; font-weight: 700; }
.cookie-banner a:hover { color: var(--orange); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (min-width: 760px) {
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
  .cookie-actions { display: flex; }
}

/* ==========================================================================
   Legal pages (privacy policy)
   ========================================================================== */
.legal { width: min(46rem, 100%); padding: 1.6rem 1.4rem; margin: 1rem auto 2rem; color: rgba(255, 255, 255, 0.85); }
.legal h1 { color: #fff; font-size: clamp(1.7rem, 6vw, 2.2rem); }
.legal h2 { margin-top: 1.8rem; color: #fff; font-size: 1.3rem; }
.legal p, .legal ul { margin-top: 0.7rem; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal li + li { margin-top: 0.3rem; }
.legal a { color: #fff; font-weight: 700; }
.legal a:hover { color: var(--orange); }
.legal .btn { margin-top: 1rem; }
