﻿/* ==========================================================================
   Sartash — site styles
   Mint green + ivory white light theme. Base #E9F7EF, cards #FFFFFF, primary #36B98B, accent #F4CA70.
   Motion is transform/opacity only.
   ========================================================================== */

:root {
  --bg: #E9F7EF;
  --card: #FFFFFF;
  --ink: #14342B;
  --ink-deep: #0E2A22;
  --ink-soft: #2C5245;
  --gold: #36B98B;
  --gold-light: #6FD3AE;
  --gold-deep: #2AA377;
  --coral: #F4CA70;
  --violet: #8ADCC0;
  --cream: #14342B;
  --muted: #6E8B80;
  --line: rgba(54,185,139, 0.20);
  --line-strong: rgba(54,185,139, 0.45);
  --line-violet: rgba(138,220,192, 0.55);
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 34px 80px rgba(20, 82, 60, 0.12);
  --radius: 22px;
  --wrap: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background:
    radial-gradient(1200px 680px at 10% -10%, rgba(54,185,139, 0.10), transparent 62%),
    radial-gradient(900px 560px at 94% 2%, rgba(244,202,112, 0.10), transparent 58%),
    linear-gradient(180deg, #EFF9F3 0%, var(--bg) 46%, #E1F2E8 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft texture + slow aurora */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(45deg, rgba(54,185,139, 0.014) 0 2px, transparent 2px 7px);
}
body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(620px 420px at 18% 32%, rgba(54,185,139, 0.08), transparent 62%),
    radial-gradient(720px 520px at 82% 8%, rgba(244,202,112, 0.08), transparent 60%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 2.5%, 0) scale(1.06); }
}

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

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }

.mono { font-family: ui-monospace, Consolas, monospace; }
.ts { color: #8CA69B; font-size: 12px; }
.empty { text-align: center; padding: 44px; color: #8CA69B; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: rgba(233,247,239, 0.6);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(20, 82, 60, 0.10);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.19em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 14px;
  color: var(--gold);
  background: rgba(54,185,139, 0.08);
  box-shadow: inset 0 0 12px rgba(54,185,139, 0.12);
}
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
}
.site-nav a { color: var(--muted); position: relative; padding: 5px 0; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1);
}
.site-nav a:hover { color: var(--gold-deep); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); }
.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.2,.7,.3,1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 58%, var(--gold-deep));
  color: #fff;
  box-shadow: 0 16px 34px rgba(54,185,139, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { color: #fff; box-shadow: 0 22px 46px rgba(54,185,139, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 62% { left: -140%; }
  82%, 100% { left: 150%; }
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(20, 82, 60, 0.08);
}
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold); background: rgba(54,185,139, 0.06); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn[disabled]::after, .btn.is-disabled::after { display: none; }
.btn-small { padding: 11px 20px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 46px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 3; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: heroIn 0.85s cubic-bezier(.2,.7,.3,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.46s; }
.hero-suit {
  position: absolute;
  right: 0;
  top: -90px;
  font-size: clamp(300px, 34vw, 520px);
  line-height: 1;
  color: rgba(54,185,139, 0.06);
  pointer-events: none;
  z-index: 0;
  animation: floatSuit 16s ease-in-out infinite;
}
@keyframes floatSuit {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(4deg); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink-deep);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ink) 5%, var(--gold-deep) 48%, var(--gold) 72%, var(--gold-light) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 32px;
  max-width: 47ch;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  font-size: 13px;
  color: var(--muted);
}
.trust-row span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 0 3px rgba(54,185,139, 0.18);
  vertical-align: middle;
}

/* ---------- Phone mock ---------- */
.hero-visual { position: relative; display: grid; place-items: center; z-index: 2; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 470px; height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54,185,139, 0.20), transparent 66%);
  filter: blur(8px);
  animation: halo 9s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.phone {
  position: relative;
  z-index: 1;
  width: min(322px, 80vw);
  padding: 13px;
  border-radius: 44px;
  background: linear-gradient(165deg, #FFFFFF, #EAF4EE);
  border: 1px solid rgba(54,185,139, 0.30);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.phone::before {
  content: "";
  position: absolute;
  top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 6px;
  border-radius: 999px;
  background: rgba(20, 82, 60, 0.18);
  z-index: 2;
}
.phone-screen {
  position: relative;
  border-radius: 32px;
  padding: 28px 18px 22px;
  overflow: hidden;
  background:
    radial-gradient(330px 200px at 82% 0%, rgba(54,185,139, 0.14), transparent 62%),
    linear-gradient(180deg, #F7FCF9, #E3F3EA);
  border: 1px solid rgba(54,185,139, 0.18);
}
.phone-screen::after {
  content: "";
  position: absolute;
  top: -40%; left: -30%;
  width: 90%; height: 120%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.5), transparent 55%);
  transform: rotate(8deg);
  pointer-events: none;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.phone-title { font-family: var(--font-display); letter-spacing: 0.17em; color: var(--ink); font-size: 13px; }
.phone-coins {
  font-size: 12px;
  font-weight: 750;
  color: #6B4E12;
  background: linear-gradient(180deg, #FBE3A6, var(--coral));
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(244,202,112, 0.45);
}
.game-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid rgba(54,185,139, 0.16);
  box-shadow: 0 8px 20px rgba(20, 82, 60, 0.06);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.game-chip:nth-child(2) { animation: chipFloat 7s ease-in-out infinite; }
.game-chip:nth-child(3) { animation: chipFloat 7s ease-in-out -2.3s infinite; }
.game-chip:nth-child(4) { animation: chipFloat 7s ease-in-out -4.6s infinite; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.game-chip .pip {
  display: grid;
  place-items: center;
  width: 37px; height: 37px;
  border-radius: 11px;
  background: rgba(54,185,139, 0.12);
  color: var(--gold-deep);
  font-size: 17px;
}
.game-chip strong { display: block; font-size: 13.5px; color: var(--ink); }
.game-chip small { color: var(--muted); font-size: 11px; }
.phone-note { position: relative; margin-top: 16px; font-size: 11px; text-align: center; color: var(--muted); }

/* floating cards */
.float-card {
  position: absolute;
  z-index: 3;
  width: 78px; height: 112px;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFFFFF, #F1F9F4);
  color: var(--ink);
  border: 1px solid rgba(54,185,139, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 11px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(20, 82, 60, 0.16);
  animation: drift 8s ease-in-out infinite;
}
.float-card.red { color: #C0574B; }
.float-card.f1 { top: 2%; left: 0%; transform: rotate(-13deg); }
.float-card.f2 { bottom: 14%; right: -2%; transform: rotate(11deg); animation-delay: -2.6s; }
.float-card.f3 { bottom: 0%; left: 5%; transform: rotate(6deg) scale(0.84); animation-delay: -4.8s; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
section[id] { scroll-margin-top: 92px; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent); }
.section-alt::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54,185,139, 0.45), transparent);
}
.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink-deep);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 58px; height: 2px;
  margin-top: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--coral), transparent);
}
.section-head p { margin: 0; color: var(--muted); line-height: 1.78; font-size: 15.5px; }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 32px 26px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(20, 82, 60, 0.07);
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(.2,.7,.3,1), border-color 0.26s ease, box-shadow 0.26s ease;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(54,185,139, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 200px at 50% -30%, rgba(244,202,112, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px rgba(20, 82, 60, 0.14);
}
.game-card:hover::before, .game-card:hover::after { opacity: 1; }
.game-card .suit {
  position: absolute;
  right: -18px;
  top: -34px;
  font-size: 128px;
  line-height: 1;
  color: rgba(54,185,139, 0.09);
  pointer-events: none;
  transition: color 0.3s ease, transform 0.4s ease;
}
.game-card:hover .suit { color: rgba(54,185,139, 0.16); transform: rotate(6deg) scale(1.04); }
.card-index {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(54,185,139, 0.55);
}
.game-card h3 {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
}
.game-card .tagline { position: relative; margin: 0 0 20px; font-size: 11px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold-deep); }
.game-card ul { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.game-card li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.game-card li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(54,185,139, 0.16);
  box-shadow: 0 10px 26px rgba(20, 82, 60, 0.06);
  overflow: hidden;
  transition: border-color 0.24s ease, transform 0.24s ease, background 0.24s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(244,202,112, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}
.feature:hover { border-color: var(--line-violet); transform: translateY(-4px); }
.feature:hover::before { opacity: 1; }
.feature h3 { position: relative; margin: 16px 0 9px; font-size: 17px; color: var(--ink-deep); }
.feature p { position: relative; margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.feature .ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(54,185,139, 0.10);
  border: 1px solid rgba(54,185,139, 0.28);
  color: var(--gold-deep);
  font-size: 19px;
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease;
}
.feature:hover .ico { transform: translateY(-3px) rotate(-7deg); box-shadow: 0 0 26px rgba(54,185,139, 0.28); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(54,185,139, 0.30);
}
.step h3 { margin: 0 0 9px; font-size: 18px; color: var(--ink-deep); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.72; }

/* ---------- Rules band ---------- */
.rules {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border-radius: 26px;
  background:
    radial-gradient(540px 280px at 0% 0%, rgba(54,185,139, 0.10), transparent 62%),
    linear-gradient(150deg, #FFFFFF, #F4FAF6);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rules h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink-deep); }
.rules p { margin: 0; color: var(--ink-soft); line-height: 1.78; font-size: 15.5px; }
.rules ol { margin: 0; padding-left: 22px; color: var(--ink-soft); line-height: 2; font-size: 15.5px; }
.rules li::marker { color: var(--gold-deep); font-weight: 700; }
.rules li { transition: color 0.2s ease; }
.rules li:hover { color: var(--gold-deep); }

/* ---------- Download ---------- */
.download-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(640px 340px at 100% 0%, rgba(244,202,112, 0.18), transparent 62%),
    linear-gradient(160deg, #FFFFFF, #EDF7F1);
  border: 1px solid rgba(54,185,139, 0.32);
  position: relative;
  overflow: hidden;
  animation: glow 7s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 30px 70px rgba(20, 82, 60, 0.10), 0 0 0 rgba(54,185,139, 0); }
  50% { box-shadow: 0 36px 84px rgba(20, 82, 60, 0.14), 0 0 46px rgba(54,185,139, 0.16); }
}
.download-card::before {
  content: "\2660";
  position: absolute;
  right: -34px;
  bottom: -80px;
  font-size: 260px;
  line-height: 1;
  color: rgba(54,185,139, 0.07);
  pointer-events: none;
}
.download-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.015em; color: var(--ink-deep); }
.download-card p { margin: 0 0 24px; color: var(--ink-soft); line-height: 1.78; font-size: 15.5px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-note { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.dl-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(54,185,139, 0.40);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: rgba(54,185,139, 0.07);
}
.dl-platform::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(54,185,139, 0.8);
}
.download-side { display: grid; gap: 10px; position: relative; z-index: 1; }
.spec {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid rgba(54,185,139, 0.16);
  font-size: 13.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.spec:hover { border-color: var(--line-strong); background: #FBFDFC; }
.spec span:first-child { color: var(--muted); }
.spec span:last-child { text-align: right; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  position: relative;
  padding: 19px 24px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid rgba(54,185,139, 0.16);
  box-shadow: 0 8px 22px rgba(20, 82, 60, 0.05);
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.faq details::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.faq details:hover { border-color: var(--line-strong); transform: translateX(3px); }
.faq details[open] { border-color: var(--line-strong); background: #F5FBF8; }
.faq details[open]::before { opacity: 1; }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 15.5px;
  color: var(--ink-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 19px;
  line-height: 1;
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { content: "⌄"; transform: rotate(180deg); }
.faq p { margin: 14px 0 0; color: var(--muted); line-height: 1.78; font-size: 14.5px; }

/* ---------- Reveal on scroll ---------- */
body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(.2,.7,.3,1), transform 0.75s cubic-bezier(.2,.7,.3,1);
}
body.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* stagger within grids */
body.reveal-ready .game-grid > [data-reveal]:nth-child(2),
body.reveal-ready .feature-grid > [data-reveal]:nth-child(3n+2),
body.reveal-ready .steps > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
body.reveal-ready .game-grid > [data-reveal]:nth-child(3),
body.reveal-ready .feature-grid > [data-reveal]:nth-child(3n),
body.reveal-ready .steps > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  padding: 54px 0 38px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(223,240,229, 0.85));
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-links a { color: var(--muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-deep); }
.legal-note { margin-top: 26px; font-size: 12px; line-height: 1.8; color: #7E9A8E; max-width: 860px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 900px; }
.legal h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -0.015em; color: var(--ink-deep); }
.legal .updated { margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.legal h2 { margin: 42px 0 12px; font-size: 20px; color: var(--gold-deep); }
.legal h3 { margin: 24px 0 8px; font-size: 16.5px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 15px;
  border: 1px solid var(--line-violet);
  background: rgba(54,185,139, 0.07);
  font-size: 14.5px;
  line-height: 1.75;
}
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(54,185,139, 0.18); vertical-align: top; }
.legal th { color: var(--gold-deep); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; margin-top: 8px; }
  .hero-suit { display: none; }
  .float-card { display: none; }
  .game-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .rules, .download-card { grid-template-columns: 1fr; padding: 32px; }
  section { padding: 64px 0; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 22px 18px;
  }
  .mobile-menu.is-open { display: grid; gap: 4px; }
  .mobile-menu a {
    padding: 13px 4px;
    font-size: 15.5px;
    color: var(--muted);
    border-bottom: 1px solid rgba(54,185,139, 0.12);
  }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu a:hover { color: var(--gold-deep); }
  /* pages without a hamburger keep the header CTA so links stay reachable */
  .site-header:has(.nav-toggle) .btn-small { display: none; }
}

@media (max-width: 560px) {
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-lead { font-size: 16.5px; }
  .download-card, .rules { padding: 24px; }
  .btn { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body.reveal-ready [data-reveal] { opacity: 1; transform: none; }
  body::after { animation: none; }
}
