:root {
  color-scheme: dark;
  --bg: #071216;
  --panel: #0e1b21;
  --panel-2: #10252a;
  --text: #f3f8f7;
  --muted: #a8bbb8;
  --line: rgba(255,255,255,.14);
  --gold: #ffd447;
  --green: #38d982;
  --teal: #48d6d2;
  --red: #ff6b5f;
  --shadow: 0 18px 50px rgba(0,0,0,.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(72,214,210,.18), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(255,212,71,.15), transparent 24rem),
    linear-gradient(180deg, #071216 0%, #0a1a1f 48%, #071216 100%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(7,18,22,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.mark {
  width: 56px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(255,212,71,.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a, .btn, button.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 850;
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}

.btn.primary {
  background: var(--green);
  color: #04140b;
  border-color: rgba(56,217,130,.85);
  box-shadow: 0 10px 30px rgba(56,217,130,.22);
}

.btn.danger { background: rgba(255,107,95,.14); border-color: rgba(255,107,95,.4); }

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 82px) clamp(16px, 5vw, 72px) 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.lead {
  margin: 20px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-art-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #050809;
  box-shadow: var(--shadow);
}

.hero-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center;
}

.section {
  margin: 0 clamp(16px, 5vw, 72px) 34px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14,27,33,.72);
  box-shadow: var(--shadow);
}

.section.slim { max-width: 980px; margin-inline: auto; }
.section h2 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 46px); letter-spacing: 0; }
.section p { color: var(--muted); line-height: 1.5; }

.grid, .games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-card, .panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050809;
  border-bottom: 1px solid var(--line);
}

.game-card-body, .panel { padding: 18px; }
.game-card h3, .panel h3 { margin: 0 0 8px; font-size: 24px; }
.game-card p, .panel p { margin: 0; color: var(--muted); line-height: 1.45; }
.game-card .actions { margin-top: auto; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.tag {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 5px 8px;
  color: #d6e8e5;
  background: rgba(255,255,255,.05);
  font-size: 12px;
  font-weight: 800;
}

.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 850; color: #d9ebe8; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(4,10,12,.72);
  color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.notice {
  border: 1px solid rgba(72,214,210,.3);
  background: rgba(72,214,210,.08);
  color: #d9fffb;
  border-radius: 8px;
  padding: 12px;
}

.list { display: grid; gap: 12px; }
.row-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.04);
}
.row-card h3 { margin: 0 0 6px; }
.row-card p { margin: 0 0 10px; }
.vote-line { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.meter { flex: 1; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.meter span { display:block; height:100%; background: linear-gradient(90deg, var(--green), var(--teal)); }

.footer {
  padding: 32px clamp(16px, 5vw, 72px) 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .games, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .nav a, .btn, button.btn { width: auto; min-height: 38px; padding: 9px 11px; font-size: 14px; }
  h1 { font-size: 40px; }
}
