/* ==========================================================================
   One of Us – Random Games · support & privacy site
   Static, no build step. Dark party palette taken from the app icon.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #12071a;
  --bg-deep: #0c0412;
  --plum: #2b0f36;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #fff6ef;
  --muted: rgba(255, 238, 232, 0.74);
  --faint: rgba(255, 238, 232, 0.56);

  --pink: #ff5c8a;
  --coral: #ff7a59;
  --orange: #ff9f43;
  --gold: #ffc94a;
  --cream: #f9e4c8;
  --cyan: #2fc9ef;
  --green: #3ddc84;
  --red: #ff4d5e;
  --purple: #b47cff;
  --blue: #5b8cff;
  --teal: #2dd4bf;

  --grad-hot: linear-gradient(100deg, #ff5c8a 0%, #ff7a59 45%, #ffc94a 100%);

  --radius-lg: 28px;
  --radius: 22px;
  --radius-sm: 14px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

/* ---------- Language switching ----------
   Every translatable piece exists twice: lang="en" and lang="fr".
   Without JS, data-lang stays "en" so the page renders fully in English. */
html:not([data-lang="fr"]) body [lang="fr"],
html[data-lang="fr"] body [lang="en"] {
  display: none !important;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth in-page jumps, enabled by script.js after load so that
   arriving on index.html#privacy from the App Store lands instantly. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: #ffe08f;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(860px, 100% - 32px);
}

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

.nowrap {
  white-space: nowrap;
}

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

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

/* ---------- Animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% -20%, var(--plum) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
}

.b1 {
  top: -32vmax;
  left: -26vmax;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.30) 0%, transparent 62%);
}

.b2 {
  top: -18vmax;
  right: -34vmax;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.20) 0%, transparent 62%);
}

.b3 {
  bottom: -40vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.16) 0%, transparent 62%);
}

.b4 {
  bottom: -30vmax;
  right: -30vmax;
  background: radial-gradient(circle, rgba(180, 124, 255, 0.18) 0%, transparent 62%);
}

@media (prefers-reduced-motion: no-preference) {
  .b1 { animation: drift-a 26s ease-in-out infinite alternate; }
  .b2 { animation: drift-b 32s ease-in-out infinite alternate; }
  .b3 { animation: drift-a 38s ease-in-out infinite alternate-reverse; }
  .b4 { animation: drift-b 30s ease-in-out infinite alternate-reverse; }
}

@keyframes drift-a {
  to { transform: translate(14vmax, 10vmax) scale(1.12); }
}

@keyframes drift-b {
  to { transform: translate(-12vmax, 12vmax) scale(0.92); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 7, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}

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

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

.nav-links + .nav-end {
  margin-left: 8px;
}

.lang-switch {
  display: none; /* shown only when JS is available */
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.js .lang-switch {
  display: inline-flex;
}

.lang-switch button {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--grad-hot);
  color: #2a0a1c;
  font-weight: 900;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px -6px rgba(255, 92, 138, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  color: #2a0a1c;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -6px rgba(255, 92, 138, 0.85);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 1.05rem;
  }
  .nav-cta {
    padding: 8px 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  scroll-margin-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.app-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 34px -8px rgba(255, 92, 138, 0.55),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

.app-name {
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.app-sub {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
}

.grad {
  display: block;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em; /* keeps descenders inside the clipped gradient */
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--muted);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

/* App Store button, drawn in HTML so it stays accessible and translatable */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 24px 10px 20px;
  border-radius: 16px;
  background: #fff;
  color: #000;
  text-decoration: none;
  box-shadow: 0 14px 36px -12px rgba(255, 92, 138, 0.7), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}

.appstore:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(255, 92, 138, 0.85);
}

.appstore .apple {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: -3px;
}

.appstore-text > span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.appstore-text small {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.appstore-text strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

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

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%2312071a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--green);
}

/* ---------- Hero phone (CSS-only Chooser demo) ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(78%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.38) 0%, rgba(180, 124, 255, 0.14) 45%, transparent 70%);
}

.phone {
  --w: 276px;
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19.3;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(150deg, #4a3654 0%, #1a0f22 30%, #0d0712 70%, #3a2943 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  isolation: isolate;
  background:
    radial-gradient(110% 70% at 50% 0%, #351444 0%, transparent 70%),
    #0f0616;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 6;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 20px;
  background: #000;
}

.finger {
  --c: var(--pink);
  position: absolute;
  z-index: 1;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 38%),
    var(--c);
  box-shadow:
    inset 0 -6px 12px rgba(0, 0, 0, 0.18),
    0 0 0 7px rgba(255, 255, 255, 0.06),
    0 0 36px 4px var(--c);
}

.finger::after {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 3px solid var(--c);
  opacity: 0.45;
}

.f1 { --c: var(--cyan);   left: 26%; top: 27%; }
.f2 { --c: var(--gold);   left: 75%; top: 23%; }
.f3 { --c: var(--pink);   left: 51%; top: 47%; }
.f4 { --c: var(--green);  left: 25%; top: 67%; }
.f5 { --c: var(--purple); left: 74%; top: 70%; }

.finger.win {
  z-index: 3;
}

/* the white ring marks the picked finger */
.finger.win::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.6);
}

.flood {
  position: absolute;
  left: 51%;
  top: 47%;
  z-index: 2;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ff86a8 0%, var(--pink) 35%, #e23c6f 100%);
  transform: translate(-50%, -50%) scale(0);
}

.screen-hint,
.screen-reveal {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 4;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
}

.screen-hint {
  bottom: 30px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.screen-reveal {
  top: 66%;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 18px rgba(120, 0, 40, 0.45);
  opacity: 0;
}

/* floating game chips around the phone */
.chip {
  --c: var(--gold);
  --c2: var(--orange);
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--c), var(--c2));
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    0 18px 34px -12px var(--c);
  color: #fff;
}

.chip svg,
.game-icon svg,
.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip .dot,
.game-icon .dot,
.feature-icon .dot {
  fill: currentColor;
  stroke: none;
}

.chip-coin  { --c: #ffc94a; --c2: #ff9f43; top: 9%;  left: 4%;   rotate: -12deg; }
.chip-wheel { --c: #ff9f43; --c2: #ff5c8a; top: 15%; right: 3%;  rotate: 10deg; }
.chip-dice  { --c: #b47cff; --c2: #5b8cff; bottom: 22%; right: 1%; rotate: -8deg; }
.chip-bomb  { --c: #ff4d5e; --c2: #ff9f43; bottom: 10%; left: 7%; rotate: 9deg; }

/* --- animation (only when motion is welcome). Static fallback = all fingers + ringed winner. --- */
@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: float 7s ease-in-out infinite;
  }

  .chip {
    animation: bob 6s ease-in-out infinite alternate;
  }
  .chip-wheel { animation-delay: -1.5s; animation-duration: 7s; }
  .chip-dice  { animation-delay: -3s; animation-duration: 5.5s; }
  .chip-bomb  { animation-delay: -4.5s; animation-duration: 6.5s; }

  .finger {
    animation: finger-lose 9s cubic-bezier(0.3, 0.7, 0.4, 1) infinite both;
  }
  .f1 { animation-delay: 0s; }
  .f2 { animation-delay: 0.3s; }
  .f4 { animation-delay: 0.6s; }
  .f5 { animation-delay: 0.9s; }

  .finger::after {
    animation: pulse-ring 1.3s ease-out infinite;
  }

  .finger.win {
    animation: finger-win 9s cubic-bezier(0.3, 0.7, 0.4, 1) 1.2s infinite both;
  }
  .finger.win::before {
    animation: win-ring 9s ease 1.2s infinite both;
  }

  .flood {
    animation: flood 9s cubic-bezier(0.55, 0, 0.3, 1) 1.2s infinite both;
  }

  .screen-reveal {
    animation: reveal 9s ease 1.2s infinite both;
  }

  .screen-hint {
    animation: hint 9s ease infinite both;
  }
}

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

@keyframes bob {
  from { translate: 0 0; }
  to { translate: 0 -14px; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes finger-lose {
  0%, 4% { transform: scale(0); opacity: 0; }
  9% { transform: scale(1.1); opacity: 1; }
  11.5% { transform: scale(1); }
  44% { transform: scale(1); opacity: 1; }
  49% { transform: scale(0.2); opacity: 0; }
  100% { transform: scale(0.2); opacity: 0; }
}

@keyframes finger-win {
  0%, 4% { transform: scale(0); opacity: 0; }
  9% { transform: scale(1.1); opacity: 1; }
  11.5% { transform: scale(1); }
  48% { transform: scale(1); }
  54% { transform: scale(1.32); }
  57% { transform: scale(1.22); }
  82% { transform: scale(1.22); opacity: 1; }
  90%, 100% { transform: scale(1.22); opacity: 0; }
}

@keyframes win-ring {
  0%, 48% { opacity: 0; transform: scale(0.7); }
  54% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@keyframes flood {
  0%, 54% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  67% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  82% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  90%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes reveal {
  0%, 62% { opacity: 0; transform: translateY(10px) scale(0.92); }
  68% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

@keyframes hint {
  0%, 3% { opacity: 0; }
  8% { opacity: 1; }
  42% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-list {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
  list-style: none;
}

.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.ticker-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--pink));
  box-shadow: 0 0 12px var(--dot, var(--pink));
}

.ticker-list li:nth-child(8n + 2) { --dot: var(--orange); }
.ticker-list li:nth-child(8n + 3) { --dot: var(--cyan); }
.ticker-list li:nth-child(8n + 4) { --dot: var(--green); }
.ticker-list li:nth-child(8n + 5) { --dot: var(--gold); }
.ticker-list li:nth-child(8n + 6) { --dot: var(--purple); }
.ticker-list li:nth-child(8n + 7) { --dot: var(--red); }
.ticker-list li:nth-child(8n + 8) { --dot: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: marquee 48s linear infinite;
  }
  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  --pad-top: clamp(72px, 10vw, 128px);
  padding: var(--pad-top) 0 0;
  /* anchor jumps land with the eyebrow just under the sticky header */
  scroll-margin-top: calc(var(--header-h) + 28px - var(--pad-top));
}

.section-tight {
  --pad-top: clamp(56px, 8vw, 96px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.12);
  border: 1px solid rgba(255, 92, 138, 0.3);
  color: #ff8fb0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

.section-lede {
  margin-top: 16px;
  max-width: 40em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.17rem);
  font-weight: 600;
}

/* ---------- Games grid ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.game {
  --c: var(--pink);
  --c2: var(--orange);
  position: relative;
  padding: 26px 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 17%, transparent) 0%, rgba(255, 255, 255, 0.035) 55%);
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--c) 30%, rgba(255, 255, 255, 0.07));
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1), border-color 0.25s, box-shadow 0.25s;
}

.game::after {
  /* soft color glow in the corner */
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 70%);
  opacity: 0.14;
  pointer-events: none;
}

.game:hover {
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 70%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .game:hover {
    transform: translateY(-4px);
  }
}

.game-num {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.game-icon,
.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--c), var(--c2, var(--c)));
  color: #fff;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    0 12px 26px -10px var(--c);
}

.game h3 {
  margin-top: 20px;
  font-size: 1.42rem;
}

.game p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--c);
  color: #2a0a1c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 0.3em;
  white-space: nowrap;
}

/* ---------- Features ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  list-style: none;
}

.stats li {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stats strong {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats li:nth-child(2) strong { background: linear-gradient(100deg, #2fc9ef, #5b8cff); -webkit-background-clip: text; background-clip: text; }
.stats li:nth-child(3) strong { background: linear-gradient(100deg, #b47cff, #ff5c8a); -webkit-background-clip: text; background-clip: text; }
.stats li:nth-child(4) strong { background: linear-gradient(100deg, #3ddc84, #2dd4bf); -webkit-background-clip: text; background-clip: text; }

.stat-label {
  display: block;
  margin-top: 10px;
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.25;
}

.stat-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.feature {
  --c: var(--pink);
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background-color 0.25s;
}

.feature:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #12071a));
}

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

.feature h3 {
  margin-top: 18px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- CTA card ---------- */
.cta-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 92, 138, 0.38), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(255, 159, 67, 0.3), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(91, 140, 255, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cta-icon {
  width: 96px;
  height: 96px;
  border-radius: 22.5%;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cta-card h2 {
  max-width: 18em;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.cta-card p {
  max-width: 34em;
  color: var(--muted);
  font-weight: 600;
  font-size: 1.1rem;
}

.cta-card .appstore {
  margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 0.2s, border-color 0.2s;
}

.faq details[open] {
  background: var(--surface-strong);
  border-color: rgba(255, 92, 138, 0.35);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 64px 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.35;
  border-radius: var(--radius);
}

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

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23fff6ef' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background-color 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(255, 92, 138, 0.35);
}

.faq summary:hover::after {
  background-color: rgba(255, 255, 255, 0.16);
}

.answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.4rem;
}

.contact-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 92, 138, 0.18), transparent 60%),
    var(--surface);
}

.contact-card h3 {
  margin-top: 6px;
}

.email {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 900;
  color: var(--text);
  word-break: break-all;
  text-decoration-color: rgba(255, 92, 138, 0.7);
}

.email:hover {
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--grad-hot);
  color: #2a0a1c;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(255, 92, 138, 0.8);
  transition: transform 0.2s;
}

.btn-primary:hover {
  color: #2a0a1c;
  transform: translateY(-1px);
}

.card > .muted {
  margin-top: 10px;
  font-weight: 600;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
  counter-reset: step;
}

.checklist li {
  position: relative;
  padding: 2px 0 0 46px;
  min-height: 32px;
  color: var(--muted);
  font-weight: 600;
  counter-increment: step;
}

.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 201, 74, 0.14);
  border: 1px solid rgba(255, 201, 74, 0.35);
  color: var(--gold);
  font-weight: 900;
  font-size: 0.95rem;
}

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

/* ---------- Privacy ---------- */
.date-chip {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.policy h3 {
  margin-top: 30px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.policy p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

.tldr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.tldr .feature-icon {
  flex: none;
}

.policy .tldr p {
  margin-top: 0;
  color: var(--text);
  font-size: 1.08rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(72px, 10vw, 128px);
  padding: 44px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: start;
}

.footer-brand .muted {
  margin-top: 10px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  max-width: 560px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--faint);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-legal .tiny {
  margin-top: 6px;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-visual {
    min-height: 0;
    padding: 12px 0 8px;
  }
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .app-id {
    margin-bottom: 22px;
  }
  .app-icon {
    width: 60px;
    height: 60px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .appstore,
  .btn-ghost {
    justify-content: center;
  }

  .phone {
    --w: 238px;
    border-radius: 42px;
  }
  .screen {
    border-radius: 33px;
  }
  .finger {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }
  .finger::after {
    inset: -12px;
  }
  .screen-reveal {
    font-size: 1.7rem;
  }
  .chip {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }
  .chip svg {
    width: 26px;
    height: 26px;
  }
  .chip-coin  { left: 0; }
  .chip-wheel { right: 0; }
  .chip-dice  { right: 0; }
  .chip-bomb  { left: 0; }

  .games,
  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* compact cards: icon + title on one row, text full width below */
  .game,
  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 20px 18px;
  }
  .game-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
  .game-icon svg {
    width: 27px;
    height: 27px;
  }
  .game h3,
  .feature h3 {
    grid-column: 2;
    margin-top: 0;
    padding-right: 28px;
  }
  .game h3 {
    font-size: 1.3rem;
  }
  .game p,
  .feature p {
    grid-column: 1 / -1;
    margin-top: 14px;
  }
  .game-num {
    top: 18px;
    right: 16px;
  }

  .stats li {
    padding: 18px 16px;
  }

  .faq summary {
    padding: 18px 58px 18px 18px;
    font-size: 1.04rem;
  }
  .faq summary::after {
    right: 16px;
  }
  .answer {
    padding: 0 18px 20px;
  }

  .tldr {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }
}
