:root {
  --bg: #0a0a1a;
  --panel: #1a1a2e;
  --border: #4a3a6a;
  --text: #f0e0b0;
  --muted: #a0a0c0;
  --dim: #8a7aaa;
  --accent: #ffcc44;
  --primary: #3a6a3a;
  --error: #ff4444;
  --tile-bg: #1a1a2e;
  --tile-selected: #3a6a3a;
  --tile-used: #6a2a2a;
  --tile-wildcard: #8a7a2a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

header {
  padding: 24px 24px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header .brand {
  display: inline-block;
  line-height: 0;
}

header .brand a {
  display: inline-block;
  text-decoration: none;
}

header .brand a:hover {
  text-decoration: none;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.logo .logo-row {
  display: flex;
  gap: 5px;
}

.logo .logo-tile {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--tile-bg);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* Top highlight stripe to match in-game tiles. */
.logo .logo-tile::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.logo .logo-tile.selected {
  background: var(--tile-selected);
}

.logo .logo-tile.used {
  background: var(--tile-used);
}

.logo .logo-tile.wildcard {
  background: var(--tile-wildcard);
  font-size: 28px;
}

.logo .val {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}

header .tagline {
  margin-top: 12px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 2px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

h1 {
  font-size: 28px;
  color: var(--accent);
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

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

ul {
  padding-left: 20px;
}

li {
  margin: 6px 0;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.cta-row .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--text);
  border: 2px solid #000;
  font-weight: 700;
  letter-spacing: 2px;
}

.cta-row .btn.coming-soon {
  background: var(--panel);
  color: var(--dim);
  border-color: var(--border);
  cursor: default;
}

.cta-row .btn:hover {
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero .hook {
  font-size: 22px;
  color: var(--text);
  margin: 24px 0 16px;
}

.hero .lede {
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.feature-grid .feature {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
}

.feature-grid .feature .feature-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.feature-grid .feature .feature-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}

footer .nav {
  margin-bottom: 8px;
}

footer .nav a {
  color: var(--muted);
  margin: 0 8px;
}

footer .copyright {
  color: var(--dim);
}
