:root {
  --bg-top: #2c2468;
  --bg-bottom: #0e0b26;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-stroke: rgba(255, 255, 255, 0.14);
  --pink: #ff4d8d;
  --blue: #3d9bff;
  --yellow: #ffb524;
  --green: #1fcb8e;
  --lilac: #8c5cff;
  --orange: #ff7438;
  --gold: #ffc83d;
  --radius: 24px;
  --max: 1040px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-bottom);
  background-image:
    radial-gradient(600px 420px at 12% -5%, rgba(255, 77, 141, 0.28), transparent 70%),
    radial-gradient(700px 520px at 100% 85%, rgba(61, 155, 255, 0.22), transparent 70%),
    radial-gradient(500px 380px at 55% 40%, rgba(140, 92, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 70%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.moon {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #fff6d8, #ffd56b 55%, #f0a92e);
  box-shadow: 0 0 24px rgba(255, 200, 61, 0.55), inset -7px -6px 0 rgba(0, 0, 0, 0.12);
  flex: none;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--glass); }

/* Hero */
.hero { padding: 56px 0 30px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pink); margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 66px); line-height: 1.05; margin: 0 auto 18px; max-width: 14ch; font-weight: 900; letter-spacing: -0.02em; }
.hero p { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40ch; margin: 0 auto; }

/* Keycap buttons */
.keycap {
  --face: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 20px; border: 0;
  font: 900 18px/1.2 var(--font); color: #fff; text-decoration: none; cursor: pointer;
  max-width: 100%; flex-wrap: wrap; text-align: center; overflow-wrap: anywhere;
  background: linear-gradient(180deg, color-mix(in srgb, var(--face), #fff 22%), var(--face));
  box-shadow: 0 6px 0 color-mix(in srgb, var(--face), #1a0f3a 42%), 0 14px 30px rgba(0, 0, 0, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.08s, box-shadow 0.08s;
}
.keycap:active { transform: translateY(5px); box-shadow: 0 1px 0 color-mix(in srgb, var(--face), #1a0f3a 42%), 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.45); }
.keycap.disabled { --face: #4a4380; cursor: default; }
.keycap.disabled:active { transform: none; }
.keycap.green { --face: var(--green); }
.keycap.blue { --face: var(--blue); }

/* Game card */
.game {
  margin: 40px 0 24px; padding: clamp(22px, 4vw, 40px);
  border-radius: 34px; background: var(--glass); border: 1px solid var(--glass-stroke);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center;
}
.game-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); display: block; }
.game h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; margin: 20px 0 6px; font-weight: 900; letter-spacing: -0.015em; }
.tagline { font-weight: 800; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 16px;
  background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.features li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; margin-top: 7px; flex: none; background: var(--dot, var(--pink)); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.features li:nth-child(2) { --dot: var(--blue); }
.features li:nth-child(3) { --dot: var(--yellow); }
.features li:nth-child(4) { --dot: var(--green); }
.features li:nth-child(5) { --dot: var(--lilac); }
.features li:nth-child(6) { --dot: var(--orange); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; font-weight: 600; }

.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(250px, 46%); border-radius: 30px; overflow: hidden; display: block;
  border: 3px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.phone img { width: 100%; display: block; }
.phone.back { transform: rotate(-6deg) translate(18px, 18px); opacity: 0.92; }
.phone.front { transform: rotate(4deg) translate(-18px, -4px); }

/* Screenshot strip */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.strip img { height: 440px; border-radius: 26px; scroll-snap-align: center; border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); flex: none; }

.section-title { font-size: 26px; font-weight: 900; margin: 46px 0 14px; }

/* Text pages */
.doc {
  margin: 30px auto 50px; max-width: 760px; padding: clamp(24px, 5vw, 46px);
  border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-stroke);
}
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; font-weight: 900; }
.doc .updated { color: var(--muted); font-weight: 600; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; font-weight: 900; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc a { color: #ffd56b; }
.doc a.keycap { color: #fff; }
.email-line { margin: 14px 0 0 !important; font-size: 15px !important; color: var(--muted) !important; }
.contact-card { margin: 26px 0 8px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-stroke); }
.contact-card p { margin: 0 0 14px; }
details { border-top: 1px solid var(--glass-stroke); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--glass-stroke); }
summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

/* Footer */
.site-footer { padding: 34px 0 46px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--glass-stroke); padding-top: 26px; }
.site-footer a { text-decoration: none; font-weight: 700; margin-right: 18px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; }
  .phones { margin-top: 10px; }
  .strip img { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .keycap { transition: none; }
}
