@font-face { font-family: 'Fredoka'; src: url('fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #2a1650; --ink-soft: #5b4a7a; --paper: #fffaf3; --soft: #f6ead8;
  --pink: #ff3d8b; --orange: #ff8a2f; --purple: #7a3bf0; --blue: #2f84f0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 400 17px/1.55 'Fredoka', -apple-system, system-ui, 'Segoe UI', sans-serif;
  background: #6a2fd0;
}
/* The game's backdrop, pinned to the screen (works on phones too, unlike background-attachment: fixed). */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url('bg.jpg') center 40% / cover no-repeat; }
a { color: var(--purple); font-weight: 600; }
a:hover { color: var(--pink); }

/* ---------- Home ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 7vh 20px 5vh; }
/* The crew in the backdrop stands in the middle of the screen, between the name and the store buttons (like the game's home screen). */
.hero-top, .hero-bottom { display: flex; flex-direction: column; align-items: center; }
.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(42, 22, 80, 0.45); }
.logo { margin: 0 0 6px; font-size: clamp(54px, 13vw, 104px); font-weight: 700; line-height: 1; letter-spacing: 0.02em;
  -webkit-text-stroke: 0.09em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink), 0 0.18em 0.25em rgba(42, 22, 80, 0.45); }
.logo span:nth-child(1) { color: #ff4057; } .logo span:nth-child(2) { color: #ff8a2f; } .logo span:nth-child(3) { color: #ffd21f; }
.logo span:nth-child(4) { color: #2fd07a; } .logo span:nth-child(5) { color: #2f84f0; } .logo span:nth-child(6) { color: #9b5bff; } .logo span:nth-child(7) { color: #fff; }
.tagline { margin: 10px 0 0; max-width: 560px; color: #fff; font-size: clamp(19px, 4.4vw, 24px); font-weight: 600; text-shadow: 0 2px 10px rgba(42, 22, 80, 0.6); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 16px; background: rgba(20, 8, 45, 0.82); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid rgba(255, 255, 255, 0.25); }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.soon { margin-top: 12px; color: #fff; font-size: 15px; opacity: 0.9; text-shadow: 0 1px 6px rgba(42, 22, 80, 0.6); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); max-width: 720px; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { background: rgba(255, 250, 243, 0.94); border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(42, 22, 80, 0.3); }
.card .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 4px 10px rgba(42, 22, 80, 0.2); }
.card .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .ic .dot { fill: currentColor; stroke: none; }
.card .ic.pink { background: var(--pink); }
.card .ic.green { background: #22b35e; }
.card .ic.orange { background: var(--orange); }
.card .ic.purple { background: var(--purple); }
.card h3 { margin: 10px 0 4px; font-size: 21px; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Pages (privacy, terms, delete) ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 28px 16px 40px; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; text-decoration: none; font-weight: 700; font-size: 22px; text-shadow: 0 2px 8px rgba(42, 22, 80, 0.6); }
.top img { width: 44px; height: 44px; border-radius: 11px; }
.sheet { background: rgba(255, 250, 243, 0.97); border-radius: 24px; padding: clamp(22px, 5vw, 44px); box-shadow: 0 14px 40px rgba(42, 22, 80, 0.35); }
.sheet h1 { margin: 0 0 4px; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; }
.sheet h2 { margin: 30px 0 8px; font-size: 23px; }
.sheet h3 { margin: 22px 0 6px; font-size: 19px; }
.sheet p, .sheet li { color: #33245a; }
.sheet ul { padding-left: 22px; }
.small { font-size: 14px; color: var(--ink-soft); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 18px 16px 34px; color: #fff; font-size: 15px; text-shadow: 0 1px 6px rgba(42, 22, 80, 0.7); }
footer a { color: #fff; margin: 0 9px; font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.5); }
footer a:hover { color: #fff; border-color: #fff; }
footer p { margin: 10px 0 0; opacity: 0.9; }
footer .made { margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; opacity: 1; }
footer .made svg { flex: none; filter: drop-shadow(0 1px 3px rgba(42, 22, 80, 0.5)); }
footer .heart { width: 22px; height: 22px; fill: var(--pink); stroke: #fff; stroke-width: 2; }
footer .flag { width: 26px; height: 13px; border-radius: 2px; outline: 1px solid rgba(255, 255, 255, 0.6); }
@media (max-width: 520px) { .icon { width: 92px; height: 92px; } }
