@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
  --bg: #0f1612;
  --fg: #ecf1e5;
  --muted: #9aa89a;
  --accent: #ff8a00;
  --accent2: #34c3b2;
  --border: rgba(236, 241, 229, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 10px 22px rgba(5, 8, 6, 0.35);
  --shadow-md: 0 18px 42px rgba(5, 8, 6, 0.4);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --maxw: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 138, 0, 0.14), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(52, 195, 178, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 138, 0, 0.06), rgba(52, 195, 178, 0.04)),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a:hover {
  color: var(--accent2);
}

code {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-6);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px dashed var(--border);
  padding-bottom: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.brand .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, var(--accent), var(--accent2), var(--accent));
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.8);
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: #101a14;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.12), rgba(52, 195, 178, 0.12));
  border: 1px solid rgba(255, 138, 0, 0.25);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stack.tight {
  gap: var(--space-1);
}

.row {
  display: flex;
  gap: var(--space-3);
}

.row.wrap {
  flex-wrap: wrap;
}

.row.space-between {
  justify-content: space-between;
}

.row.align-center {
  align-items: center;
}

.row.align-start {
  align-items: flex-start;
}

.row.gap {
  gap: var(--space-4);
}

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

.mono {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 0, 0.4);
  background: rgba(255, 138, 0, 0.08);
  font-size: 13px;
  color: var(--fg);
  }

.pill.subtle {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.pill.good {
  border-color: rgba(52, 195, 178, 0.6);
}

.btn {
  border: 1px solid var(--border);
  background: #0c120e;
  color: var(--fg);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 0, 0.6);
  background: #0f1812;
  box-shadow: var(--shadow-sm);
}

.btn.accent {
  background: linear-gradient(120deg, var(--accent), #ffb347);
  color: #0c0f0c;
  border: 1px solid rgba(255, 138, 0, 0.8);
}

.btn.stretch {
  width: 100%;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.battle-card {
  gap: var(--space-4);
}

.battle-grid .track {
  background: #0c120e;
  border: 1px solid rgba(236, 241, 229, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.embed iframe {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  width: 100%;
}

label span {
  font-weight: 600;
}

input[type="text"],
input[type="url"],
input[type="number"],
select {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}

input:focus,
select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.vote-form {
  margin-top: var(--space-2);
}

.privacy-note {
  text-align: right;
}

.alert {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 143, 177, 0.1);
  border: 1px solid rgba(255, 143, 177, 0.4);
}

.success {
  border-color: rgba(124, 247, 196, 0.6);
}

.error {
  border-color: rgba(255, 143, 177, 0.6);
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.table {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.table-row {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.table-head {
  padding: 0 var(--space-3);
}

.rating {
  font-size: 18px;
}

.token {
  display: inline-block;
  word-break: break-all;
  padding: var(--space-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.choices {
  gap: var(--space-2);
}

.choice {
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.choice input[type="radio"] {
  width: auto;
  height: 18px;
  margin-right: var(--space-2);
}

.choice:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.accent-bar {
  height: 4px;
  width: 72px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .page {
    padding: var(--space-5) var(--space-3);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
