:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #14151B;
  --muted: #62636C;
  --border: #E4E5EA;
  --accent: #FF4B2B;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFF0EC;
  --blue: #2F6FED;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

a { color: var(--blue); }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--ink); }

/* hero */

.hero {
  padding-top: 64px;
  padding-bottom: 40px;
  text-align: center;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lede {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

/* game */

.game-section {
  padding-bottom: 72px;
}

.game-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px -24px rgba(20, 21, 27, 0.25);
}

.game-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 600;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0d10;
}

.game-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 14px 0 4px;
}

/* generic section */

.section {
  padding-bottom: 68px;
}

.section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

#about p {
  max-width: 68ch;
  color: var(--muted);
  margin: 0 0 18px;
}

#about p:last-child {
  margin-bottom: 0;
}

/* how to play */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.steps .num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* features */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  background: var(--surface);
  padding: 24px;
  border-left: 3px solid var(--accent);
}

.feature h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* tips */

.tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tips li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  position: relative;
  padding-left: 22px;
}

.tips li:last-child { border-bottom: 1px solid var(--border); }

.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* alternatives */

.alt-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.alt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.alt h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue);
}

.alt p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 48px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .header-row { padding: 14px 20px; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.85rem; }
  .hero { padding-top: 44px; }
  .feature-list { grid-template-columns: 1fr; }
  .alt-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav a { transition: none; }
}
