:root {
  --bg: #0d0308;
  --panel: #1c0f14;
  --border: #5a2f3a;
  --gold: #ffcc4d;
  --purple: #b26cff;
  --ember: #ff7b3f;
  --text: #f2e6ea;
  --text-dim: #c9b3ba;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'VT323', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* drifting ember particles for atmosphere */
.embers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 90%, var(--ember), transparent),
    radial-gradient(1.5px 1.5px at 30% 80%, var(--gold), transparent),
    radial-gradient(2px 2px at 60% 95%, var(--ember), transparent),
    radial-gradient(1.5px 1.5px at 80% 85%, var(--purple), transparent),
    radial-gradient(1.5px 1.5px at 95% 92%, var(--ember), transparent);
  background-repeat: repeat;
  background-size: 400px 400px;
  animation: drift 14s linear infinite;
  opacity: 0.6;
}
@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 0 -400px; }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 12px;
}
.hero-text {
  max-width: 100%;
}
.game-title {
  font-family: var(--font-pixel);
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 11px;
}
.t-war { color: var(--ember); }
.t-wiz { color: var(--purple); }
.amp { color: var(--text-dim); }
.hero-art-wrap {
  flex: 0 0 auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  box-shadow: 0 0 0 2px var(--gold), 0 0 20px rgba(178, 108, 255, 0.45);
}
.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info {
  text-align: center;
  padding: 12px 24px 40px;
  max-width: 680px;
  margin: 0 auto;
}
.coming-soon {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 11px;
}
.glow {
  text-shadow: 0 0 10px rgba(255, 204, 77, 0.6), 0 0 22px rgba(178, 108, 255, 0.4);
}
.tagline {
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.tagline:last-child {
  margin-bottom: 0;
}

.discord-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 3px solid var(--border);
  padding: 22px 28px;
}
.discord-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.discord-icon {
  width: 26px;
  height: 26px;
  color: #5865f2;
}
.discord-name {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text);
}
.discord-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text-dim);
}
.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ba55d;
  box-shadow: 0 0 6px #3ba55d;
}
.discord-avatars {
  display: flex;
}
.discord-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  margin-left: -10px;
  background: #23272a;
}
.discord-avatar:first-child { margin-left: 0; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-pixel);
  font-size: 12px;
  text-decoration: none;
  border: 4px solid var(--border);
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: var(--gold);
  color: #2a1508;
  border-color: #b8862f;
}
.btn-primary:hover { background: #ffd86b; }

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 16px;
  color: var(--text-dim);
}
.site-footer a {
  color: var(--purple);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 24px;
    gap: 18px;
  }
  .hero-text { text-align: center; }
  .hero-art-wrap { width: 130px; height: 130px; }
  .game-title { font-size: 21px; }
  .coming-soon { font-size: 15px; }
  .tagline { font-size: 16px; }
}

/* ---- site navigation (Play / Download / Forums) ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  border-bottom: 3px solid var(--border);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 14px;
  border: 3px solid transparent;
}
.nav-link:hover, .nav-link.is-current { color: var(--gold); border-color: var(--border); background: var(--panel); }
.nav-play { color: var(--ember); }

/* ---- landing calls to action ---- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 12px;
}
.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--gold); }
.hint {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0;
}
.hint a { color: var(--purple); text-decoration: none; }
.hint a:hover { color: var(--gold); }

/* ---- inner pages (Download) ---- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  text-align: center;
}
.page-title {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 22px 0;
  text-align: left;
}
.card {
  background: var(--panel);
  border: 3px solid var(--border);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text);
  margin: 0;
}
.card p { margin: 0; }
.card .btn { align-self: flex-start; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.fine { font-size: 17px; color: var(--text-dim); }
code { font-family: var(--font-body); background: var(--bg); border: 1px solid var(--border); padding: 0 6px; }

@media (max-width: 640px) {
  .site-nav { padding: 10px 14px; }
  .nav-link { font-size: 9px; padding: 8px 8px; }
  .nav-brand { font-size: 10px; }
  .card .btn { align-self: stretch; text-align: center; }
}

/* ---- requirements on the landing page ---- */
.specs {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px 12px;
  text-align: center;
}
.section-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold);
  margin: 0 0 4px;
}
.specs .cards { margin: 16px 0 12px; }

/* ---- three requirement cards in one row ---- */
.specs .cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .specs .cards { grid-template-columns: 1fr; } }

/* ---- Discord panel on the side, tall like a banner ad ---- */
.side-ad {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 210px;
  z-index: 5;
}
.side-ad .discord-card {
  display: flex;
  width: 100%;
  padding: 18px 14px;
  gap: 12px;
}
.side-ad .discord-name { font-size: 11px; text-align: center; }
.side-ad .discord-avatars { flex-wrap: wrap; justify-content: center; }
.side-ad .discord-avatar { margin-left: -6px; }
.side-ad .btn { padding: 12px 16px; font-size: 10px; text-align: center; width: 100%; }
@media (max-width: 1240px) {
  .side-ad { position: static; transform: none; width: auto; margin: 0 auto 32px; text-align: center; }
  .side-ad .discord-card { display: inline-flex; width: auto; }
}

/* ---- a card that spans the whole row, centered (the browser card under the two client cards) ---- */
.card-wide { grid-column: 1 / -1; align-items: center; text-align: center; }
.card-wide .btn { align-self: center; }
