/* THE CUT - brand direction A. Pitch dark, chalk ink, lime = survival,
   red strictly for eliminations. */

/* Oswald (SIL OFL) - self-hosted variable font, licence at /fonts/OFL.txt */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/oswald-var.woff2") format("woff2");
}

:root {
  --pitch: #0c1510;
  --card: #142219;
  --line: #24402f;
  --ink: #eef5ef;
  --muted: #93a898;
  --accent: #c8f542;
  --bad: #e4573f;
  --warn: #ffc766;
  --good: #c8f542;
  --font-disp: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--pitch);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
h1, h2, .brand { font-family: var(--font-disp); }
h1 { text-transform: uppercase; letter-spacing: 0.01em; }
.card h2, .gamehead h1, .hero h1 { text-transform: uppercase; }
.card h2 { letter-spacing: 0.08em; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
main { max-width: 44rem; margin: 0 auto; padding: 0 1rem 4rem; }
a { color: var(--accent); }

header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 44rem; margin: 0 auto; padding: 1rem;
}
.brand { font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); display: flex; align-items: center; }
.brand .brandmark { height: 1.6rem; width: auto; color: var(--ink); }
.brand span { color: var(--muted); font-weight: 600; font-size: 0.85rem; margin-left: 0.5rem; }
@media (max-width: 430px) { .brand span { display: none; } }
header.site nav a { margin-left: 1rem; text-decoration: none; color: var(--ink); }

.devbanner {
  background: var(--warn); color: #201500; text-align: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.25rem 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; margin: 1.2rem 0 0.6rem;
  font-weight: 700; letter-spacing: 0;
}
.stand { color: var(--muted); font-size: 1.05rem; margin-top: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.2rem; margin: 1rem 0;
}
.card.cta { border-color: var(--accent); }
.card h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.card.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .card.two { grid-template-columns: 1fr; } }

.button, button {
  background: var(--accent); color: #0c1510; border: 0; border-radius: 8px;
  font-family: var(--font-disp); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

form label { display: block; margin: 0.6rem 0; font-size: 0.9rem; color: var(--muted); }
form input[type="text"], form input[type="email"], form input:not([type]) {
  display: block; width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.7rem;
  border-radius: 8px; border: 1px solid var(--line); background: var(--pitch); color: var(--ink);
}
label.check { display: flex; gap: 0.5rem; align-items: center; color: var(--ink); }

.gamehead h1 { margin: 1rem 0 0.2rem; font-size: 2rem; font-weight: 700; }
.gamehead p { color: var(--muted); margin-top: 0; }

.teamgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
@media (max-width: 540px) { .teamgrid { grid-template-columns: repeat(4, 1fr); } }
.team {
  position: relative; overflow: hidden;
  background: var(--pitch); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.85rem 0.2rem 0.6rem; font-weight: 700; font-size: 1.02rem;
}
.team::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tc, var(--line));
}
.team:disabled {
  opacity: 0.45; cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px;
}
.team.mine { background: var(--accent); color: #14200a; border-color: var(--accent); }
.team.sel { border-color: var(--ink); background: #1b3023; }

.crest { vertical-align: -3px; margin-right: 4px; object-fit: contain; }
.team .crest { display: block; width: 28px; height: 28px; margin: 0.15rem auto 0.3rem; }

.confirmbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: 44rem; margin: 0 auto;
  background: var(--card); border-top: 2px solid var(--accent);
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
}
.confirmbar[hidden] { display: none; }
.confirmbar .who {
  flex: 1; min-width: 0; font-family: var(--font-disp); font-weight: 700;
  text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.badge { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.15rem 0.45rem; border-radius: 4px; }
.badge.good { background: rgba(127, 230, 162, 0.15); color: var(--good); }
.badge.bad { background: rgba(255, 122, 104, 0.15); color: var(--bad); }
.badge.warn { background: rgba(255, 199, 102, 0.15); color: var(--warn); }
.badge.muted { color: var(--muted); }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 0.25rem 0; border-bottom: 1px dashed var(--line); }
ul.plain li:last-child { border-bottom: 0; }
ul.grave li { color: var(--muted); }
.gname { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
ul.fixtures { font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; }
td { padding: 0.4rem 0.3rem; border-bottom: 1px dashed var(--line); }

.fine { font-size: 0.8rem; color: var(--muted); }

.sharebar { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.button.wa { background: #25d366; color: #073317; }
@media (max-width: 430px) {
  .sharebar .button, .sharebar button { flex: 1 1 45%; text-align: center; }
}

.stickychip {
  position: fixed; right: 1rem; bottom: 1.2rem; z-index: 40;
  background: var(--accent); color: #14200a; font-weight: 800; font-size: 0.9rem;
  padding: 0.65rem 1rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}

ul.plain li.me { color: var(--accent); font-weight: 700; }

.winner { text-align: center; border-color: var(--accent); padding: 2rem 1.2rem 1.4rem; }
.winnermark { height: 3.2rem; width: auto; }
.crown {
  margin: 0.6rem 0 0.1rem; color: var(--accent); font-family: var(--font-disp);
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.35em; text-transform: uppercase;
}
.wname {
  font-family: var(--font-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.05; margin: 0 0 0.3rem;
}
.winner .sharebar { justify-content: center; margin-top: 0.9rem; }

.statebar {
  background: var(--accent); color: #14200a; font-weight: 700; font-size: 0.85rem;
  border-radius: 8px; padding: 0.5rem 0.9rem; margin: 0.8rem 0;
}
.statebar.warn { background: var(--warn); color: #201500; }

.hist { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hchip {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; padding: 2px 6px;
  border-radius: 4px; border: 1px solid var(--line); color: var(--muted);
}
.hchip.survived { background: rgba(127, 230, 162, 0.14); color: var(--good); border-color: transparent; }
.hchip.eliminated { background: rgba(255, 122, 104, 0.14); color: var(--bad); border-color: transparent; }
.hchip.spared { background: rgba(255, 199, 102, 0.14); color: var(--warn); border-color: transparent; }
.hchip.void { border-style: dashed; }

details.roundhist { border-bottom: 1px dashed var(--line); padding: 0.4rem 0; }
details.roundhist:last-child { border-bottom: 0; }
details.roundhist summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
details.roundhist table { margin-top: 0.4rem; }
.prose ol li { margin: 0.5rem 0; }

footer.site { max-width: 44rem; margin: 2rem auto 0; padding: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
