/* Octagon Time — shared styles. Palette and type ported from the prototype:
   dark fight-night brand in both system modes. Oswald for display,
   Archivo for body. No framework, no build step. */

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #16181c;
  --surface-2: #1e2126;
  --text: #f2f0ea;
  --dim: #9a958a;
  --border: #2a2e35;
  --accent: #d9a83c;
  --gold-soft: #f0cd7e;
  --red: #e03a2f;
  --red-dark: #2a0f0d;
  --red-soft: #ff7a6e;
  --green: #43c465;
  --radius: 10px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.dim { color: var(--dim); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.gold { color: var(--gold-soft); }
.green { color: var(--green); }
.red-text { color: var(--red-soft); }
a { color: var(--gold-soft); }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem 2.5rem; }

/* ---- generic cards & controls ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}
.card-accent { border-color: var(--accent); }
.card h2 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0.35rem 0 0; }

.btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #000;
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-block { display: block; width: 100%; }
.btn-red { background: var(--red); color: #fff; font-size: 1.15rem; padding: 0.85rem 1rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}

.input, select.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-top: 0.25rem;
}
label.lbl { display: block; font-size: 0.875rem; font-weight: 600; margin-top: 0.75rem; }

/* ---- hero / landing ---- */

.hero { padding-top: 1.5rem; }
.hero .kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0;
}
.hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 1;
  margin: 0.25rem 0 0;
  font-weight: 600;
}
.hero .sub { color: var(--dim); margin: 0.75rem 0 0; }
.hero .promise { margin-top: 1rem; max-width: 28rem; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; }

.launch-pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* ---- founding progress ---- */

.progress {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 0.75rem;
}
.progress > span { display: block; height: 100%; background: var(--accent); }

/* ---- scope (ALL vs My picks) ---- */

.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.scope-option {
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.scope-option.selected { border-color: var(--accent); background: var(--surface-2); }
.scope-option .t { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; display: block; font-size: 1rem; }
.scope-option .d { font-size: 0.75rem; color: var(--dim); }

/* ---- fights ---- */

.fight-section { margin-top: 1.5rem; }
.fight-section .head { display: flex; align-items: baseline; justify-content: space-between; }
.fight-section h2 { font-size: 1.5rem; margin: 0; }
.fight-list {
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.75rem;
}
.fight-row { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.fight-row:last-child { border-bottom: 0; }
.fight-main { display: flex; align-items: center; gap: 0.75rem; }
.faces { display: flex; flex-shrink: 0; }
.faces .face + .face { margin-left: -0.5rem; }
.face {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gold-soft);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.fight-names { flex: 1; min-width: 0; }
.fighter-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.fighter-line .name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; }
.fighter-line .name.feature { font-size: 1.25rem; }
.fighter-line .odds { font-family: var(--font-display); flex-shrink: 0; color: var(--dim); }
.fighter-line .odds.fav { color: var(--gold-soft); }
.fight-meta { font-size: 0.75rem; color: var(--dim); margin-top: 0.15rem; }
.pick-box { width: 1.5rem; height: 1.5rem; flex-shrink: 0; accent-color: var(--accent); }
.pick-box:disabled { opacity: 0.3; }
.chip-fired {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

/* ---- walkout banner ---- */

@keyframes walkout-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 58, 47, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(224, 58, 47, 0); }
}
.walkout-banner {
  position: sticky;
  top: 0.5rem;
  z-index: 40;
  margin: 0.5rem 0.75rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--red-dark);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  animation: walkout-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .walkout-banner { animation: none; } }
.walkout-banner .t { color: var(--red-soft); font-size: 1.15rem; margin: 0; }
.walkout-banner p { margin: 0; }

/* ---- control ---- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}
.stat .v { font-family: var(--font-display); font-size: 1.9rem; margin: 0; }
.stat .l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin: 0; }

.member, .ctl-fight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-top: 0.5rem;
}
.member .email { font-weight: 600; word-break: break-all; }
.member .fno { font-family: var(--font-display); color: var(--gold-soft); margin-right: 0.5rem; }
.pro-badge {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  background: var(--surface-2);
  color: var(--dim);
}
.pro-badge.on { background: var(--accent); color: #000; }
.row-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.spacer { flex: 1; }

.fired-banner {
  margin-top: 0.75rem;
  background: var(--red-dark);
  color: var(--red-soft);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cancelled-banner {
  margin-top: 0.75rem;
  background: var(--surface-2);
  color: var(--dim);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.log-list { list-style: none; margin: 0.5rem 0 0; padding: 0 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.log-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.log-list li:last-child { border-bottom: 0; }

footer.site { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
footer.site .owner-link { font-size: 0.75rem; color: var(--dim); }

.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
