/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg: #080c18;
  --bg-soft: #0e1528;
  --panel: rgba(255,255,255,0.055);
  --panel-strong: rgba(255,255,255,0.095);
  --text: #f1f5fb;
  --muted: #c4cfe2;
  --soft: #8496b0;
  --line: rgba(255,255,255,0.10);
  --gold: #f5c15d;
  --gold-soft: rgba(245,193,93,0.14);
  --red: #f97373;
  --green: #6ee7b7;
  --blue: #93c5fd;
  --shadow: 0 24px 70px rgba(0,0,0,0.40);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(245,193,93,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 90% 10%, rgba(147,197,253,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(30,10,60,0.5) 0%, transparent 70%),
    linear-gradient(180deg, #070b18 0%, #090e1e 40%, #06080f 100%);
  line-height: 1.65;
  min-height: 100vh;
}

/* Grain overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Notice banner ─────────────────────────────────────── */
.notice {
  background: linear-gradient(90deg, rgba(245,193,93,0.08), rgba(245,193,93,0.14), rgba(245,193,93,0.08));
  border-bottom: 1px solid rgba(245,193,93,0.22);
  color: #e8d4a0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Brand text ────────────────────────────────────────── */
.brand span:last-child {
  display: inline-block;
  max-width: 210px;
  white-space: nowrap;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 80px 0 44px;
  animation: heroFadeUp 0.8s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245,193,93,0.10);
  border: 1px solid rgba(245,193,93,0.28);
  color: #ffe7b0;
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  font-weight: 900;
  background: linear-gradient(150deg, #fff 20%, #f5c15d 60%, #e8a020 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
  margin: 20px 0 0;
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.22,.68,0,1.2), box-shadow 0.2s, background 0.18s, border-color 0.18s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #f5c15d, #d97a06);
  color: #0a0d18;
  box-shadow: 0 12px 32px rgba(245,158,11,0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(245,158,11,0.40);
}

/* ── Hero card ─────────────────────────────────────────── */
.hero-card {
  border: 1px solid rgba(245,193,93,0.20);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: heroFadeUp 0.8s 0.15s ease both;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(245,193,93,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.status-row span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

/* ── Sections ──────────────────────────────────────────── */
section {
  padding: 52px 0;
}

/* ── Codes snapshot ────────────────────────────────────── */
.codes-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 14px;
}

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

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tr:last-child td { border-bottom: 0; }

code {
  color: #ffe7b0;
  background: rgba(245,193,93,0.10);
  border: 1px solid rgba(245,193,93,0.22);
  padding: 4px 9px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.copy-btn {
  border: 1px solid rgba(245,193,93,0.32);
  background: rgba(245,193,93,0.10);
  color: #ffe7b0;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s;
}

.copy-btn:hover {
  background: rgba(245,193,93,0.20);
  border-color: rgba(245,193,93,0.55);
}

/* ── Grid 4 ────────────────────────────────────────────── */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Steps ─────────────────────────────────────────────── */
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.step:hover {
  border-color: rgba(245,193,93,0.25);
  background: var(--panel-strong);
}

.step::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0a0d18;
  background: linear-gradient(135deg, #f5c15d, #d97a06);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245,193,93,0.25);
}

.step strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.step span {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Split layout ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

/* ── DB search ─────────────────────────────────────────── */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: rgba(245,193,93,0.35);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
}

.search-box input::placeholder { color: var(--soft); }

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

.db-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.db-item:hover {
  border-color: rgba(245,193,93,0.22);
  background: rgba(255,255,255,0.07);
}

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

/* ── About game section ────────────────────────────────── */
.game-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overview-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-radius: var(--radius-sm);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.overview-card .icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.overview-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.overview-card p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Decorative divider ────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
  border: none;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-4, .game-overview { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu { display: inline-flex; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding-top: 48px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .grid-4, .game-overview, .db-list { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .link-more { display: inline-block; margin-top: 12px; }
  .brand span:last-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
}
