/* Tap Tap Tap website — same palette as the game. */
:root {
  --bg: #0f0f1a;
  --card: #1a1a2e;
  --line: #2c2c48;
  --text: #f4f4fb;
  --muted: #9a9ab8;
  --p1: #ff5a6e;
  --p2: #2ec4f1;
  --accent: #ffd23f;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
a { color: var(--p2); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: #0f0f1ae6; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.5px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { color: var(--p1); }
.brand em { color: var(--p2); font-style: normal; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav .btn { margin-left: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 14px; padding: 12px 20px; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .08s;
}
.btn:active { transform: scale(.97); }
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1400; }
.btn.primary:hover { color: #1a1400; filter: brightness(1.05); }
.btn.big { font-size: 20px; padding: 16px 28px; }
.btn small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.store { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; padding: 10px 18px; cursor: default; }
.store:active { transform: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -2px; margin: 0 0 16px; font-weight: 900; }
.hero h1 span { color: var(--p1); }
.hero h1 em { color: var(--p2); font-style: normal; }
.hero h1 b { color: var(--accent); }
.hero .lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Playable game in a phone frame (desktop); phones get the Play button instead. */
.phone {
  justify-self: center; width: clamp(340px, calc((100vh - 140px) / 2), 380px); aspect-ratio: 1 / 2; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2c2c48, #14141f); box-shadow: 0 30px 80px #000a, inset 0 0 0 2px #3a3a5c;
  position: relative;
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: var(--bg); display: block; }
.phone-start {
  width: 100%; height: 100%; border: 0; border-radius: 34px; cursor: pointer; color: var(--text);
  background: linear-gradient(170deg, #ff5a6e33 0 50%, #2ec4f133 50% 100%), var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; font: inherit;
}
.phone-start img { width: 46%; border-radius: 22%; box-shadow: 0 16px 40px #0008; }
.phone-start:hover .btn { filter: brightness(1.05); }
.phone-note { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ---------- sections ---------- */
section { padding: 48px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -1px; line-height: 1.15; }
.section-lead { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 12px; display: block; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #1a1400; font-weight: 900; margin-bottom: 10px; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.band { background: linear-gradient(170deg, #ff5a6e22 0 50%, #2ec4f122 50% 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.band .cta { justify-content: center; }

/* ---------- legal pages ---------- */
.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -1px; margin: 0 0 4px; line-height: 1.1; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; scroll-margin-top: 80px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: #d6d6e6; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 700; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.callout p { margin: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- privacy notice (every page) ---------- */
.notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; margin: 0 auto; max-width: 720px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 14px; align-items: center; box-shadow: 0 16px 40px #000a;
}
.notice p { margin: 0; font-size: 14px; color: #d6d6e6; }
.notice .btn { padding: 8px 16px; font-size: 14px; flex: none; }
.notice[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-col { display: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .notice { flex-direction: column; align-items: stretch; text-align: left; }
}
