/* ==========================================================
   Diwa Fun – custom stylesheet
   Mobile-first, responsive, accessible
   ========================================================== */

:root {
  --bg: #0f0b1f;
  --bg-soft: #17122e;
  --surface: #1f1840;
  --surface-2: #2a2057;
  --text: #f3f0ff;
  --text-muted: #b9b2d9;
  --accent: #ffb703;
  --accent-2: #ff4d6d;
  --accent-3: #7c5cff;
  --ok: #3ddc97;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --maxw: 1160px;
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 77, 109, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd166; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #1b1200;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--alt { background: rgba(255, 255, 255, 0.03); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.lead { font-size: 1.2rem; color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15, 11, 31, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.55);
}

.nav-toggle {
  display: inline-flex;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.main-nav {
  display: none;
  position: absolute;
  inset: 68px 0 auto 0;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem 1.4rem;
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.main-nav a {
  display: block;
  padding: 0.65rem 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--surface); color: var(--accent); }

@media (min-width: 1100px) {
  .nav-more { display: none; }
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .main-nav ul { display: flex; gap: 0.3rem; }
  .main-nav a { padding: 0.5rem 0.8rem; font-size: 0.97rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff8c42);
  color: #1b1200;
  box-shadow: 0 10px 24px rgba(255, 183, 3, 0.3);
}
.btn--primary:hover { color: #1b1200; box-shadow: 0 14px 30px rgba(255, 183, 3, 0.42); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.6rem, 6vw, 5.5rem) 0 clamp(2.4rem, 5vw, 4.5rem); }

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(15, 11, 31, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trust-list li {
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.4rem; }
}

/* ---------- Layout blocks ---------- */
.section-head { max-width: 760px; margin-bottom: 2.4rem; }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.split img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.2rem; }
  .split--reverse .split-media { order: 2; }
}

figure { margin: 0; }
figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.cards {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 183, 3, 0.5); }
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 14px;
  background: rgba(255, 183, 3, 0.14);
  margin-bottom: 1rem;
}

.game-card { padding: 0; overflow: hidden; }
.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.game-card .game-body { padding: 1.5rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1b1200;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.3rem 4.6rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  color: #1b1200;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.steps strong { display: block; font-family: var(--font-head); margin-bottom: 0.2rem; }

/* ---------- Notice / callouts ---------- */
.callout {
  border-left: 5px solid var(--accent);
  background: rgba(255, 183, 3, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}
.callout--safe { border-color: var(--ok); background: rgba(61, 220, 151, 0.08); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 860px; }
.faq details {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0.2rem 1.2rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); padding-bottom: 0.5rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--text-muted); padding-top: 1rem; }
.breadcrumb ol { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 3.6rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band p { max-width: 640px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0716;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 { font-size: 1.05rem; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; }
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  font-weight: 800;
  margin-right: 0.6rem;
}
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1.4rem;
  font-size: 0.86rem;
}

/* ==========================================================
   EFFECTS
   ========================================================== */

html, body { overflow-x: clip; }

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 300;
  pointer-events: none;
}

/* Header shrink on scroll */
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-header.is-scrolled {
  background: rgba(10, 7, 22, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.header-cta { display: none; padding: 0.55rem 1.2rem; font-size: 0.92rem; white-space: nowrap; line-height: 1.4; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
.main-nav a { white-space: nowrap; }
.brand { flex-shrink: 0; white-space: nowrap; }

/* Scroll reveal (only active when JS adds .js to <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible.card:hover { transform: translateY(-4px); }
.js .reveal.is-visible.card { transition-delay: 0ms; }
.js .reveal--left { transform: translateX(-34px); }
.js .reveal--right { transform: translateX(34px); }

/* Animated gradient on hero headline */
.hero h1 span {
  background-size: 220% 100%;
  animation: gradientShift 6s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Hero glow blobs + floating card suits */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blobMove 14s ease-in-out infinite alternate;
}
.hero::before {
  width: 320px; height: 320px;
  background: var(--accent-3);
  top: -80px; right: -60px;
}
.hero::after {
  width: 280px; height: 280px;
  background: var(--accent-2);
  bottom: -90px; left: -70px;
  animation-delay: -6s;
}
@keyframes blobMove {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.18); }
}

.suits { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.suits span {
  position: absolute;
  font-size: clamp(1.6rem, 4vw, 3rem);
  opacity: 0.14;
  color: var(--text);
  animation: floatSuit 9s ease-in-out infinite;
}
.suits span:nth-child(1) { top: 12%; left: 6%; }
.suits span:nth-child(2) { top: 62%; left: 44%; animation-delay: -2s; color: var(--accent-2); }
.suits span:nth-child(3) { top: 18%; left: 52%; animation-delay: -4s; color: var(--accent-2); }
.suits span:nth-child(4) { top: 78%; left: 90%; animation-delay: -6s; }
.suits span:nth-child(5) { top: 40%; left: 92%; animation-delay: -3s; }
@keyframes floatSuit {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-22px) rotate(10deg); }
}

/* Hero image float + glow ring */
.hero-media { animation: floatY 7s ease-in-out infinite; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: calc(var(--radius) + 9px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  filter: blur(22px);
  opacity: 0.25;
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: 0.18; } to { opacity: 0.42; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Button shine + pulse */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 24px rgba(255, 183, 3, 0.3), 0 0 0 0 rgba(255, 183, 3, 0.5); }
  50% { box-shadow: 0 10px 24px rgba(255, 183, 3, 0.3), 0 0 0 12px rgba(255, 183, 3, 0); }
}

.btn--soft {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn--soft:hover { background: rgba(255, 183, 3, 0.16); color: var(--accent); border-color: var(--accent); }

/* Card + image hover effects */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 183, 3, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.12); }
.card-icon { transition: transform 0.3s ease; }

.game-card img, .split img, .gallery img { transition: transform 0.6s ease, filter 0.6s ease; }
.game-card:hover img { transform: scale(1.07); }
.split figure { overflow: hidden; border-radius: var(--radius); }
.split figure:hover img { transform: scale(1.04); }
.game-card { overflow: hidden; }
.game-card img { transform-origin: center; }

/* ---------- Quick links (CTA tiles) ---------- */
.quick-links {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }

.quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.quick-link p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0.4rem; flex: 1; }
.quick-link h3 { margin-bottom: 0.2em; }
.quick-link .btn { width: 100%; }
.quick-link--apk {
  border-color: rgba(255, 183, 3, 0.55);
  background: linear-gradient(160deg, rgba(255, 183, 3, 0.16), var(--bg-soft));
}

/* ---------- Content pages (About, Disclaimer, Privacy, APK) ---------- */
.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 1.2rem; position: relative; }
.page-hero .lead { max-width: 780px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

.prose { max-width: 820px; margin-inline: auto; }
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-top: 2.1em;
  padding-top: 0.2em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin: 1.8rem 0; }
.prose figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}
.prose .btn-row { margin: 1.6rem 0; }
.prose-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2.2rem;
}

.related {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.related h2 { font-size: 1.3rem; margin-bottom: 0.4em; }
.related p { color: var(--text-muted); }
.related .btn-row { margin-top: 1rem; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-bar { display: none; }

/* ==========================================================
   MOBILE REFINEMENTS
   ========================================================== */
@media (max-width: 899px) {
  .mobile-bar {
    display: flex;
    gap: 0.6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 7, 22, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(110%);
    transition: transform 0.35s ease;
  }
  .mobile-bar.is-shown { transform: none; }
  .mobile-bar .btn { flex: 1; padding: 0.8rem 0.6rem; font-size: 0.93rem; min-height: 48px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.7; background-attachment: scroll; }
  .container { width: min(100% - 2rem, var(--maxw)); }
  .section { padding: 2.8rem 0; }
  .hero { padding: 1.6rem 0 2.4rem; }
  .hero-grid { gap: 1.8rem; }
  .hero-media img { aspect-ratio: 16 / 11; }
  .hero-badge { font-size: 0.8rem; left: 10px; bottom: 10px; padding: 0.45rem 0.7rem; }
  .lead { font-size: 1.05rem; }
  .section-head { margin-bottom: 1.6rem; }

  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; min-height: 50px; }

  .trust-list { gap: 0.45rem; }
  .trust-list li { font-size: 0.82rem; padding: 0.3rem 0.7rem; }

  .card { padding: 1.25rem; }
  .game-card .game-body { padding: 1.25rem; }
  .steps li { padding: 1.1rem 1.1rem 1.1rem 3.9rem; }
  .steps li::before { left: 0.9rem; top: 1rem; width: 2.1rem; height: 2.1rem; }

  .faq details { padding: 0.1rem 1rem; }
  .faq summary { padding: 0.85rem 0; font-size: 0.98rem; }

  .callout { padding: 1rem 1.1rem; }
  .cta-band { padding: 1.8rem 1.2rem; }

  .main-nav a { padding: 0.85rem 0.6rem; font-size: 1.02rem; }
  .nav-toggle { min-height: 44px; }

  .site-footer { padding: 2.4rem 0 1.6rem; text-align: left; }
  .footer-grid { gap: 1.6rem; }

  .suits span { opacity: 0.1; }
  .hero::before, .hero::after { width: 200px; height: 200px; filter: blur(55px); }
}

@media (max-width: 1099px) {
  .main-nav { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.85rem; }
  .brand { font-size: 1.12rem; }
  .brand img { width: 38px; height: 38px; }
}

@media (hover: none) {
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

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

@media print {
  .site-header, .cta-band, .nav-toggle, .mobile-bar, .progress-bar, .suits { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}