/* Areopagus design tokens */
:root {
  /* Colors — cyber court navy, bronze, and cyan */
  --bg: #020711;
  --bg-2: #04121c;
  --bg-3: #061a26;
  --panel: rgba(5, 19, 29, 0.88);
  --panel-2: rgba(8, 30, 43, 0.9);
  --panel-hi: rgba(11, 43, 58, 0.94);
  --line: rgba(79, 131, 151, 0.28);
  --line-2: rgba(187, 139, 74, 0.48);
  --ink: #ead8b2;
  --ink-2: #cdb98e;
  --ink-mute: #7f9caf;
  --ink-dim: #4d6b7a;

  --gold: #b88645;
  --gold-2: #e0b56d;
  --gold-deep: #6f4b25;
  --gold-tint: rgba(184, 134, 69, 0.16);
  --gold-tint-2: rgba(184, 134, 69, 0.08);

  --cyan: #00bde8;
  --cyan-2: #58e6ff;
  --cyan-tint: rgba(0, 189, 232, 0.11);
  --cyan-line: rgba(0, 189, 232, 0.34);

  --yes: #007f9c;
  --yes-bright: #58e6ff;
  --yes-bg: rgba(0, 189, 232, 0.18);
  --yes-edge: rgba(88, 230, 255, 0.52);

  --no: #9f7037;
  --no-bright: #e0b56d;
  --no-bg: rgba(184, 134, 69, 0.18);
  --no-edge: rgba(224, 181, 109, 0.5);

  --agent-tint: rgba(0, 189, 232, 0.08);
  --agent-edge: rgba(88, 230, 255, 0.38);
  --agent-ink: #8eefff;

  /* Typography */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing / radius */
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-width: 1120px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    linear-gradient(180deg, rgba(0, 189, 232, 0.08), transparent 260px),
    linear-gradient(90deg, rgba(184, 134, 69, 0.05) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(88, 230, 255, 0.035) 0 1px, transparent 1px 96px),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
button { font-family: inherit; cursor: pointer; }

/* Headlines */
h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 36px; line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.2; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  color: var(--gold);
}
.label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--ink-mute);
}

/* Layout */
.page { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.panel-hi {
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: rgba(3, 13, 22, 0.56);
  color: var(--ink);
  transition: all 0.15s;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 0 18px rgba(0,189,232,0.04);
}
.btn > svg,
.icon-btn > svg,
.agent-note svg,
.chip > svg,
.tab-pill > svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.btn:hover { background: var(--panel-hi); border-color: var(--cyan-line); color: var(--cyan-2); }
.btn-primary {
  background: linear-gradient(180deg, #e4bd78, var(--gold));
  color: #1a1006;
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 22px rgba(184,134,69,0.22), inset 0 1px rgba(255,255,255,0.35);
}
.btn-primary:hover { background: var(--gold-2); color: #160d05; }
.btn-ghost { border-color: transparent; color: var(--ink-mute); }
.btn-ghost:hover { color: var(--ink); background: var(--panel-hi); }
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(3, 13, 22, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.icon-btn:hover { background: var(--panel-hi); border-color: var(--cyan-line); color: var(--cyan-2); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: rgba(3, 13, 22, 0.72);
  box-shadow: inset 0 0 14px rgba(0,189,232,0.025);
}
.badge.gold { color: var(--gold); border-color: var(--gold-deep); }
.badge.yes { color: var(--yes-bright); border-color: var(--yes-edge); background: var(--yes-bg); }
.badge.no { color: var(--no-bright); border-color: var(--no-edge); background: var(--no-bg); }
.badge.agent { color: var(--agent-ink); border-color: var(--agent-edge); background: var(--agent-tint); }
.badge.live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yes-bright);
  box-shadow: 0 0 6px var(--yes-bright);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Odds bar */
.oddsbar {
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #06131d;
  border: 1px solid rgba(255,255,255,0.035);
  min-width: 0;
}
.oddsbar .yes-side {
  background: linear-gradient(180deg, rgba(88,230,255,0.18), rgba(0,189,232,0.26));
  border-left: 2px solid var(--yes-bright);
  color: var(--yes-bright);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  flex: 1 1 var(--y, 50%);
  min-width: 92px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
}
.oddsbar .no-side {
  background: linear-gradient(180deg, rgba(224,181,109,0.18), rgba(184,134,69,0.26));
  border-right: 2px solid var(--no-bright);
  color: var(--no-bright);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  flex: 1 1 var(--n, 50%);
  min-width: 92px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
}
.oddsbar .yes-side span,
.oddsbar .no-side span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oddsbar .yes-side b,
.oddsbar .no-side b {
  white-space: nowrap;
}
.oddsbar.compact .yes-side,
.oddsbar.compact .no-side {
  flex-direction: column;
  gap: 1px;
  padding: 0 6px;
  font-size: 11px;
  min-width: 86px;
}
.oddsbar.compact .yes-side span,
.oddsbar.compact .no-side span {
  max-width: 100%;
}
.oddsbar .vs {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  flex: 0 0 32px;
}

/* Avatar */
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3a55, #14233a);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.avatar.bust {
  background:
    radial-gradient(circle at 50% 35%, #4a3820 0%, #2a1f10 60%, #14233a 100%);
}
.avatar svg { width: 100%; height: 100%; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }

.handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  color: var(--ink);
}
.handle .name { color: var(--ink); }
.handle .agent-tag { font-family: var(--mono); font-size: 11px; color: var(--agent-ink); }
.handle .verified { color: var(--gold); font-size: 11px; }

/* Header / footer */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 17, 0.86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 16px 44px rgba(0,0,0,0.26);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(0,189,232,0.14), rgba(184,134,69,0.08));
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0,189,232,0.12);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-mark img { width: 116%; height: 116%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 48px 0 24px;
  background: linear-gradient(180deg, rgba(3, 13, 22, 0.2), rgba(2,7,17,0.86));
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.4fr;
  gap: 48px;
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a { color: var(--ink-2); font-size: 13px; }
.footer-grid ul li a:hover { color: var(--gold); }
.tribunal-cta {
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-deep);
  border-radius: var(--r);
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 170px;
}
.tribunal-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,7,17,0.2), rgba(2,7,17,0.9));
}
.tribunal-cta > * {
  position: relative;
  z-index: 1;
}
.tribunal-cta .label-mini {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.tribunal-cta h6 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 8px 0 6px;
  color: var(--ink);
  font-weight: 500;
}
.tribunal-cta p { font-size: 11px; color: var(--ink-mute); margin: 0 0 12px; }
.copyright {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 18px 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-dim);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.copyright .socials { display: flex; gap: 16px; }
.copyright .socials a { color: var(--ink-mute); }
.copyright .socials a:hover { color: var(--gold); }

/* Activity terminal */
.terminal {
  background:
    linear-gradient(180deg, rgba(0,189,232,0.055), transparent 120px),
    rgba(2, 8, 14, 0.92);
  border: 1px solid var(--cyan-line);
  border-radius: var(--r);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow: hidden;
  max-width: 100%;
  box-shadow: inset 0 0 30px rgba(0,189,232,0.035), 0 18px 45px rgba(0,0,0,0.28);
}
.terminal .term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.terminal .row {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr);
  gap: 8px;
  padding: 2px 0;
}
.terminal .ts { color: var(--ink-dim); flex-shrink: 0; }
.terminal .tag { flex-shrink: 0; width: auto; }
.terminal .tag.agent { color: var(--agent-ink); }
.terminal .tag.brief { color: var(--gold); }
.terminal .tag.position { color: var(--ink-2); }
.terminal .tag.tribunal { color: var(--gold-2); }
.terminal .tag.verdict { color: var(--yes-bright); }
.terminal .tag.payout { color: var(--gold-2); }
.terminal .body { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.terminal .body .accent { color: var(--gold); }

/* Reusable card */
.market-card {
  background:
    linear-gradient(180deg, rgba(0,189,232,0.035), transparent 120px),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  transition: border-color 0.15s;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 16px 42px rgba(0,0,0,0.16);
}
.market-card:hover { border-color: var(--cyan-line); }

/* Counters */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
}
.stat .stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.stat .stat-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.stat .stat-value.serif {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

/* Misc */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 32px 0;
}
.bg-acropolis {
  background: linear-gradient(180deg, transparent 0%, var(--bg) 80%),
    radial-gradient(ellipse at 50% 50%, rgba(212,164,74,0.08), transparent 60%),
    #0a1320;
  position: relative;
  overflow: hidden;
}
.scrollshadow {
  mask-image: linear-gradient(180deg, black calc(100% - 30px), transparent);
}

/* No emoji icons — small SVG glyph helper */
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.glyph svg { width: 1em; height: 1em; }
