/* My Ludo App · website design system */
:root {
  --ink: #0b1020;
  --ink-2: #121a33;
  --text: #1c2333;
  --muted: #5b6475;
  --faint: #8a91a1;
  --line: #e7e9f0;
  --line-2: #dfe3ec;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --brand: #2563eb;
  --brand-2: #6a4ce2;
  --brand-ink: #1d4ed8;
  --brand-soft: #eef3ff;
  --grad: linear-gradient(135deg, #4f8cf7 0%, #6a4ce2 100%);
  --red: #ef4444; --green: #22c55e; --yellow: #f5b301; --blue: #3b82f6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 64px rgba(11, 16, 32, 0.18);
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font: 600 15px/1 var(--font); padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #c9cfdc; color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* Google Play button */
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.18); transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.store:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.34); }
.store svg { width: 26px; height: 28px; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; line-height: 1.2; }
.store strong { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.15; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16,24,40,0.05); }
.site-header.on-dark:not(.scrolled) { background: transparent; }
.site-header.on-dark:not(.scrolled) .brand, .site-header.on-dark:not(.scrolled) .nav a { color: #fff; }
.site-header.on-dark:not(.scrolled) .nav a:hover, .site-header.on-dark:not(.scrolled) .nav a.active { background: rgba(255,255,255,0.1); }
.site-header.on-dark:not(.scrolled) .menu-btn { color: #fff; border-color: rgba(255,255,255,0.25); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { color: inherit; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(79, 140, 247, 0.35); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 550; font-size: 15px; padding: 8px 14px; border-radius: 10px; transition: background 0.15s, color 0.15s; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.active { color: var(--ink); background: var(--bg-alt); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); cursor: pointer; place-items: center;
}
.mobile-nav { display: none; }

/* ------------------------------------------------------------ hero (dark) */
.dark { background: var(--ink); color: #c9d1e4; position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.hero { margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 72px) 0 96px; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 480px at 12% 8%, rgba(79,140,247,0.32), transparent 60%),
    radial-gradient(700px 520px at 92% 70%, rgba(106,76,226,0.34), transparent 60%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 40% 30%, #000 10%, transparent 70%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: #dbe4ff; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); padding: 6px 14px 6px 8px; border-radius: 999px;
}
.eyebrow .tag { background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; letter-spacing: -0.035em; margin: 22px 0 20px; line-height: 1.04; }
.grad-text { background: linear-gradient(90deg, #8fb3ff, #b9a6ff 50%, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; line-height: 1.6; color: #b8c2da; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 14px; color: #9aa6c3; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ico { width: 18px; height: 18px; color: #6fdc96; }

/* phone mockup */
.device-wrap { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.phone {
  position: relative; width: 320px; max-width: 78vw; margin: 0 auto; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2a3350, #0f1528); box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 0 0 1.5px rgba(255,255,255,0.14);
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #05070d; z-index: 2; }
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 58px 14px 18px;
  background: linear-gradient(180deg, #16204a 0%, #0f1632 100%);
}
.scr-top { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 12.5px; font-weight: 650; }
.scr-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #6fdc96; background: rgba(34,197,94,0.14); padding: 4px 9px; border-radius: 999px; }
.scr-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pl { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #b8c2da; font-weight: 600; }
.pl i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; border: 2px solid rgba(255,255,255,0.85); }
.pl.r i { background: var(--red); } .pl.g i { background: var(--green); } .pl.y i { background: var(--yellow); } .pl.b i { background: var(--blue); }
.pl.turn i { box-shadow: 0 0 0 4px rgba(245,179,1,0.4); }
.board-img { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.scr-log { display: grid; gap: 8px; }
.scr-log div { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: #b8c2da; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 8px 10px; }
.scr-log b { color: #fff; font-weight: 650; }
.pd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pd.g { background: var(--green); } .pd.r { background: var(--red); }
.scr-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: #b8c2da; font-size: 12px; }
.die {
  width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 9px; box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 -3px 0 #e5e7eb;
}
.die b { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); place-self: center; }
.die b:nth-child(1) { grid-area: 1 / 1; } .die b:nth-child(2) { grid-area: 1 / 3; } .die b:nth-child(3) { grid-area: 2 / 1; }
.die b:nth-child(4) { grid-area: 2 / 3; } .die b:nth-child(5) { grid-area: 3 / 1; } .die b:nth-child(6) { grid-area: 3 / 3; }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,0.96); color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,0.35); font-size: 13px; line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float strong { display: block; font-size: 14px; }
.float span { color: var(--muted); }
.float .fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float.f1 { top: 40%; left: -56px; } .float.f1 .fi { background: #e6f9ee; color: #16a34a; }
.float.f2 { bottom: -18px; right: -10px; animation-delay: -3s; } .float.f2 .fi { background: var(--brand-soft); color: var(--brand); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------ live stats strip */
.stats { position: relative; z-index: 2; margin-top: -44px; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 24px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ------------------------------------------------------------ sections */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.dark .kicker { color: #8fb3ff; }
.dark a:not(.btn):not(.store) { color: #8fb3ff; }
.dark a:not(.btn):not(.store):hover { color: #fff; }
.section-head h2 { font-size: clamp(32px, 3.8vw, 46px); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.dark .section-head p { color: #a9b4cf; }

/* feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile.wide { grid-column: span 3; }
.tile h3 { font-size: 20px; margin: 18px 0 10px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px rgba(16,24,40,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
}
.ic .ico { width: 24px; height: 24px; }
.ic.blue { background: linear-gradient(135deg, #4f8cf7, #2563eb); }
.ic.violet { background: linear-gradient(135deg, #8b72f0, #6a4ce2); }
.ic.green { background: linear-gradient(135deg, #34d47a, #16a34a); }
.ic.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.ic.yellow { background: linear-gradient(135deg, #fbbf24, #e09a00); }
.ic.ink { background: linear-gradient(135deg, #334066, #0b1020); }
.tile .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.chip .d { width: 8px; height: 8px; border-radius: 50%; }
.d.r { background: var(--red); } .d.g { background: var(--green); } .d.y { background: var(--yellow); } .d.b { background: var(--blue); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: "0" counter(step); display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--brand); margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); }
.step .bar { height: 4px; border-radius: 4px; margin-top: 24px; background: var(--line); overflow: hidden; }
.step .bar i { display: block; height: 100%; background: var(--grad); }
.step:nth-child(1) .bar i { width: 33%; } .step:nth-child(2) .bar i { width: 66%; } .step:nth-child(3) .bar i { width: 100%; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode { border-radius: var(--radius); padding: 32px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.mode:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.mode .pawns { display: flex; gap: 8px; margin-bottom: 26px; }
.mode .pawns i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.9); box-shadow: 0 6px 14px rgba(0,0,0,0.3); }
.pawns .r { background: var(--red); } .pawns .g { background: var(--green); } .pawns .y { background: var(--yellow); } .pawns .b { background: var(--blue); }
.mode h3 { font-size: 22px; }
.mode p { margin-top: 10px; color: #a9b4cf; }
.mode .tagline { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 650; color: #8fb3ff; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 18px; }
.split > div > p { color: var(--muted); font-size: 17.5px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--text); }
.checks li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { color: var(--ink); }
.panel {
  border-radius: 24px; padding: 28px; background: linear-gradient(180deg, #f4f7ff, #eef1fb); border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative;
}
.signin-list { display: grid; gap: 14px; }
.signin {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.signin .si { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); }
.signin strong { display: block; color: var(--ink); }
.signin span { font-size: 14px; color: var(--muted); }
.signin em { font-style: normal; font-size: 12px; font-weight: 700; color: #16a34a; background: #e6f9ee; padding: 4px 10px; border-radius: 999px; }
.invite-card { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.invite-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.invite-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; position: relative; }
.av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.av.off::after { background: #cbd2df; }
.av.r { background: var(--red); } .av.g { background: var(--green); } .av.y { background: var(--yellow); } .av.b { background: var(--blue); }
.invite-row strong { display: block; color: var(--ink); font-size: 15px; }
.invite-row span { font-size: 13px; color: var(--muted); }
.pill { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pill.ok { color: #16a34a; background: #e6f9ee; }
.pill.wait { color: #b45309; background: #fef3c7; }
.pill.go { color: #fff; background: var(--brand); }

/* trust (dark) */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.trust .ico { width: 26px; height: 26px; color: #8fb3ff; }
.trust h3 { font-size: 17px; margin: 18px 0 8px; }
.trust p { font-size: 15px; color: #a9b4cf; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow 0.2s, border-color 0.2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 650; font-size: 17px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg-alt)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2333' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); }
.faq .ans p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 24px; max-width: 860px; margin: 0 auto 18px; }

/* cta band */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px; color: #dbe4ff;
  background: radial-gradient(600px 300px at 90% 10%, rgba(255,255,255,0.18), transparent 60%), var(--grad);
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; box-shadow: 0 30px 70px rgba(79, 76, 226, 0.35);
}
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.cta p { margin-top: 12px; font-size: 18px; color: #e3e8ff; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------ inner pages */
.page-hero { padding: calc(var(--header-h) + 64px) 0 72px; margin-top: calc(var(--header-h) * -1); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; margin: 16px 0 16px; }
.page-hero p.lead { font-size: 19px; color: #b8c2da; max-width: 700px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #8f9bb8; }
.crumbs a { color: #b8c2da; }
.crumbs a:hover { color: #fff; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 14px; color: #9aa6c3; }

.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 12px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font-size: 26px; margin: 52px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #3a4357; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--ink); font-weight: 650; font-size: 14px; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.note {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 0 0 28px;
  background: var(--brand-soft); border: 1px solid #d6e2ff; color: #23345e; font-size: 15.5px;
}
.note .ico { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.note.warn { background: #fff8e6; border-color: #fde3a7; color: #5c4105; }
.note.warn .ico { color: #b45309; }

/* rules page */
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 8px 0 28px; }
.rule { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.rule .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 12px; }
.rule h3 { margin: 0 0 6px; font-size: 17px; }
.rule p { margin: 0; font-size: 15px; color: var(--muted); }

/* about / support */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
a.card { color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 650; color: var(--brand); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-box h3 { font-size: 20px; }
.contact-box p { color: var(--muted); margin-top: 4px; }
.mail { font-weight: 700; font-size: 18px; }

/* 404 */
.nf { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .code { font-size: clamp(96px, 16vw, 168px); font-weight: 850; letter-spacing: -0.06em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 32px; margin: 12px 0 12px; }
.nf p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #9aa6c3; padding: 80px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.site-footer .brand { color: #fff; }
.footer-about p { margin: 18px 0 24px; max-width: 340px; color: #8f9bb8; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #9aa6c3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: #7c88a6; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* reveal on scroll (only when JS + motion allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.rev > :first-child { order: 0; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 48px; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(16,24,40,0.12); padding: 12px 24px 24px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
  .mobile-nav .btn { width: 100%; margin-top: 18px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .modes, .cards-3 { grid-template-columns: 1fr; }
  .values, .rule-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .float.f1 { top: 34%; }
  .bento, .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
  .cta { padding: 36px 26px; border-radius: 22px; }
  .stat { padding: 20px; }
  .stat .n { font-size: 26px; }
  .hero { padding-bottom: 84px; }
}

/* helpers */
.center-row { display: flex; justify-content: center; margin-top: 40px; }
.hero-actions.center { justify-content: center; }
.panel img { border-radius: 16px; }

/* ------------------------------------------------------------ two games */
.scr-tabs { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,0.07); }
.scr-tabs span { text-align: center; font-size: 11px; font-weight: 700; color: #9aa6c3; padding: 6px 4px; border-radius: 9px; white-space: nowrap; }
.scr-tabs span.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.back-board {
  position: absolute; z-index: 0; width: 250px; top: 9%; right: -24px; transform: rotate(9deg);
  border-radius: 22px; padding: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.back-board img { border-radius: 16px; }
.phone { z-index: 1; }

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-art { padding: 36px 36px 0; display: grid; place-items: center; overflow: hidden; height: 300px; align-items: start; }
.game-art.ludo { background: radial-gradient(500px 260px at 50% 0%, #e9f0ff, #f6f7fb); }
.game-art.snakes { background: radial-gradient(500px 260px at 50% 0%, #e6f9ee, #f6f7fb); }
.game-art img { width: 100%; max-width: 360px; border-radius: 20px 20px 0 0; box-shadow: 0 -2px 30px rgba(16,24,40,0.12); }
.game-body { padding: 30px 34px 34px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.game-tag { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.game h3 { font-size: 28px; margin: 8px 0 10px; }
.game p { color: var(--muted); }
.game .checks { margin-top: 20px; gap: 10px; }
.more-link { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.more-link .ico { width: 18px; height: 18px; transition: transform 0.15s; }
.more-link:hover .ico { transform: translateX(3px); }

/* rules page */
.game-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.gs { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s; }
.gs:hover { border-color: #c7d4f5; box-shadow: var(--shadow); color: var(--ink); }
.gs img { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.gs strong { display: block; font-size: 16px; }
.gs small { color: var(--muted); font-size: 13px; }
.prose h2.game-title {
  font-size: 32px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.prose h2.game-title::before { content: ""; width: 10px; height: 32px; border-radius: 4px; background: var(--grad); }
.prose .game-switch + .note + h2.game-title { margin-top: 8px; border-top: 0; padding-top: 0; }
.toc li.grp > a { color: var(--ink); font-weight: 700; margin-top: 10px; }
.toc li.grp:first-child > a { margin-top: 0; }
.toc li:not(.grp) > a { padding-left: 28px; }
.panel.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 1080px) { .back-board { right: 0; width: 200px; } }
@media (max-width: 900px) { .games { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .game-switch { grid-template-columns: 1fr; }
  .back-board { display: none; }
  .game-art { height: 220px; padding: 24px 24px 0; }
  .game-body { padding: 24px; }
}

/* ------------------------------------------------------------ forms (contact, account deletion) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 28px; font-size: 15px; }
.form-head { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.form-head .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.form-head .ic .ico { width: 20px; height: 20px; }
.form-head h3 { font-size: 18px; margin: 0; color: var(--ink); }
.form-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.form-body { padding: 26px 28px 28px; display: grid; gap: 18px; }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label { font-weight: 600; color: var(--ink); font-size: 14px; }
.field .opt { color: var(--faint); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #d5dae5; border-radius: 10px;
  padding: 11px 13px; transition: border-color 0.15s, box-shadow 0.15s; box-shadow: var(--shadow-sm);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.field input::placeholder, .field textarea::placeholder { color: #9aa1b0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c0cf; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.field .hint { color: var(--faint); font-size: 13px; }
.field .err { color: #c0262d; font-size: 13px; font-weight: 500; display: none; }
.field.invalid .err { display: block; }
.field.invalid .hint { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); }
.field.check { gap: 4px; }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); cursor: pointer; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.field.check.invalid .check-row { border-color: #e5484d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #a3191f; border: 1px solid #f7c9cb; font-size: 14px; font-weight: 500; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 4px; }
.form-foot small { color: var(--faint); font-size: 13px; }
.form-foot .btn { min-width: 180px; justify-content: center; }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.form-card.sending .btn .spinner { display: inline-block; }
.form-card.sending .btn { opacity: 0.85; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { padding: 44px 28px 40px; text-align: center; }
.form-done:focus { outline: none; }
.form-done h3 { font-size: 22px; margin: 16px 0 6px; color: var(--ink); }
.form-done p { color: var(--muted); max-width: 440px; margin: 0 auto 6px; }
.done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e5f6ec; color: #15803d; }
.done-ic .ico { width: 28px; height: 28px; stroke-width: 2.5; }
.done-ic.big { width: 72px; height: 72px; margin-bottom: 12px; }
.done-ic.big .ico { width: 36px; height: 36px; }
.ref { margin-top: 14px !important; color: var(--text) !important; }
.ref strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; letter-spacing: 0.02em; }
.muted.small { font-size: 13px; color: var(--faint) !important; }
.form-card.done .form-body { display: none; }
.prose .form-card .field > label, .prose .form-card p { margin: 0; }
.contact-side { display: grid; gap: 14px; }
.side-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
a.side-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.side-item .ic { width: 40px; height: 40px; border-radius: 11px; }
.side-item .ic .ico { width: 18px; height: 18px; }
.side-item h4 { font-size: 15.5px; color: var(--ink); margin: 0 0 2px; }
.side-item p { margin: 0; color: var(--muted); font-size: 14px; word-break: break-word; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-2f { grid-template-columns: 1fr; } .form-body, .form-head { padding-left: 18px; padding-right: 18px; } }
.prose .form-card .form-done p, .form-done p { margin: 0 auto 6px; }
.form-done p.ref { margin-top: 16px; }

/* outlined fields with a floating label: the label sits inside the box and moves onto the border
   when the field is focused or has a value (selects always have a value) */
.ctl { position: relative; }
.field .ctl input, .field .ctl select, .field .ctl textarea {
  padding: 15px 14px; line-height: 1.4; border: 1px solid #c4c9d4; border-radius: 8px; box-shadow: none; background-color: #fff;
}
.field .ctl select { padding-right: 40px; }
.field .ctl textarea { padding-top: 16px; }
.field .ctl > label {
  position: absolute; left: 10px; top: 26px; transform: translateY(-50%); padding: 0 5px; max-width: calc(100% - 24px);
  background: #fff; color: #6b7280; font-size: 15px; font-weight: 400; line-height: 1.2; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.field .ctl > label .opt { color: #9aa1b0; font-weight: 400; }
.field .ctl input:focus + label, .field .ctl input:not(:placeholder-shown) + label,
.field .ctl textarea:focus + label, .field .ctl textarea:not(:placeholder-shown) + label,
.field .ctl select + label { top: 0; font-size: 12.5px; }
.field .ctl input:-webkit-autofill + label { top: 0; font-size: 12.5px; }
.ctl input::placeholder, .ctl textarea::placeholder { opacity: 0; transition: opacity 0.15s; }
.ctl input:focus::placeholder, .ctl textarea:focus::placeholder { opacity: 1; }
.field .ctl input:hover, .field .ctl select:hover, .field .ctl textarea:hover { border-color: #8f96a3; }
.field .ctl input:focus, .field .ctl select:focus, .field .ctl textarea:focus { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.field .ctl input:focus + label, .field .ctl select:focus + label, .field .ctl textarea:focus + label { color: var(--brand); }
.field.invalid .ctl input, .field.invalid .ctl select, .field.invalid .ctl textarea { border-color: #d93025; box-shadow: inset 0 0 0 1px #d93025; }
.field.invalid .ctl > label, .field.invalid .ctl :focus + label { color: #d93025; }
.field .hint, .field .err { padding-left: 15px; }
.field { gap: 5px; }

/* hero phone: the app's own purple background, so the mockup matches what players see */
.screen { background: radial-gradient(120% 60% at 50% 0%, #8a2d7c 0%, rgba(138,45,124,0) 70%), linear-gradient(180deg, #6a1660 0%, #7e2a72 45%, #9a5a8e 100%); }
.scr-log div { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.14); color: #f1e4ef; }
.scr-bottom { color: #f1e4ef; }
.scr-tabs { background: rgba(255,255,255,0.12); }
.scr-tabs span { color: #f0dcea; }
.gs img { object-fit: cover; }
