:root {
  --bg: #000000;
  --bg-panel: #0d0d0d;
  --cyan: #00c5ff;
  --yellow: #fff45d;
  --magenta: #ff5ddf;
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --border: #2a2a2a;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Oswald", "Hiragino Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header / nav */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

nav.site-nav a {
  color: var(--text-dim);
}

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

/* Hero */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(0, 197, 255, 0.14), transparent 60%),
    var(--bg);
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0, 197, 255, 0.25);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--cyan);
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 1.4em;
}

.hero .sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 2.2em;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: #001018;
}

.btn-primary:hover {
  background: #33d2ff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Sections */

section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--yellow);
  text-align: center;
  margin-bottom: 0.4em;
}

section .section-lede {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 3em;
}

/* Screenshot gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-panel);
}

.gallery figcaption {
  padding: 14px 18px 18px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 16px;
  padding: 28px 24px;
}

.feature-card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* How to play steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  background: var(--bg-panel);
}

.step .num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--magenta);
  color: #1a0014;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .num::before {
  content: counter(step);
}

.step p {
  margin: 0;
  color: var(--text-dim);
}

.step strong {
  color: var(--text);
}

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer.site-footer .links {
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal / privacy page */

.legal {
  padding: 56px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  color: var(--cyan);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2.5em;
}

.legal h2 {
  color: var(--yellow);
  text-align: left;
  font-size: 1.15rem;
  margin-top: 2em;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 0.96rem;
}

.legal ul {
  padding-left: 1.3em;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 2em;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.legal .back-link:hover {
  color: var(--cyan);
}

@media (max-width: 560px) {
  .site-header .wrap {
    height: 56px;
  }
  nav.site-nav {
    gap: 14px;
    font-size: 0.8rem;
  }
  .hero {
    padding: 48px 0 40px;
  }
  section {
    padding: 48px 0;
  }
}
