/* Badlands palette and timber-framed UHC standings. */
:root {
  --bg: #21160f;
  --panel: #302016;
  --line: #65442e;
  --ink: #fff1d8;
  --mute: #dfc3a3;
  --accent: #f4b94b;
  --blue: #79c5e4;
}
.top { background: #281a12f5; }
.brand b, .kicker, nav a:hover, footer a:hover { color: var(--blue); }
.kicker span { background: var(--blue); }
.button { background: var(--accent); color: #2e190c; }
.button:hover { background: #ffd47f; }
.outline { color: #fff1d8; background: #2d2119d9; border-color: #a97952; }
.outline:hover { background: #5a3420; }
.hero {
  background: linear-gradient(90deg,#26180ff5 0%,#2c1a10b5 36%,#74351818 75%),
    linear-gradient(0deg,var(--bg),transparent 38%),
    linear-gradient(125deg,#c37139,#f0a744) center/cover,
    url(arena.jpg) center 51%/cover no-repeat;
  background-blend-mode: normal, normal, color, normal;
}
h1 { text-shadow: 0 4px 35px #321b10d0; }
h1 em { color: #ffc253; }
.intro { color: #f7e4c8; }
.card {
  background: radial-gradient(ellipse at 100% 0,#734023,transparent 75%), var(--panel);
  border-color: #835638;
}
.duos { background: radial-gradient(ellipse at 100% 0,#294b5a,transparent 75%), var(--panel); }
.token { background: #643919; border-color: #9d6135; color: #ffd17d; }
.duos .token { background: #284453; border-color: #4c798e; color: #a4def1; }
.text-button, dialog .copy-result { color: var(--blue); }
.guide div { border-color: #96603a; }
dialog { border-color: #a37146; }
.close { background: #493020; }
.toast { background: #58381f; }
button:focus-visible,a:focus-visible,input:focus-visible { outline-color: #9cdef2; }

.board {
  padding: 7px;
  border: 1px solid #bb8857;
  border-radius: 8px;
  background: repeating-linear-gradient(3deg,#a1683e 0 2px,#a97449 3px 5px,#925d36 7px 9px);
  box-shadow: inset 0 0 0 2px #70452e, 0 12px 34px #120b0766;
}
.controls,.table { background: #322318; }
.controls { padding: 14px 17px; }
.controls strong {
  color: var(--accent);
  font: 800 1.5rem/1 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.controls input { background: #251a12; border-color: #795638; }
.table {
  max-height: min(60vh, 34rem);
  overflow: auto;
  scrollbar-color: #b57b49 #322318;
  padding: 0 11px 10px;
}
.table:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
table { border-collapse: separate; border-spacing: 0 6px; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #322318;
  padding: 10px 14px;
  border: 0;
  color: #e9c79c;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
th:last-child { color: #ffd475; }
.leader-row {
  --row-start: #e4bd86;
  --row-end: #c9975d;
  --row-edge: #926137;
  --placard: #214759;
  --placard-ink: #f8e8ce;
  background: repeating-linear-gradient(1deg,#fff2d333 0 1px,transparent 1px 4px),
    linear-gradient(104deg,var(--row-start),var(--row-end));
  color: #2b1a0e;
}
.leader-row[data-place="1"] {
  --row-start: #ffe292;
  --row-end: #e5af5f;
  --row-edge: #eabb50;
  --placard: #945415;
  --placard-ink: #fff1b9;
}
.leader-row[data-place="2"] {
  --row-start: #ead7bd;
  --row-end: #d3ae84;
  --row-edge: #c9b49b;
  --placard: #555e63;
}
.leader-row[data-place="3"] {
  --row-start: #efbc83;
  --row-end: #cf9255;
  --row-edge: #ae6d3c;
  --placard: #8b421f;
}
.leader-row td {
  padding: 10px 14px;
  min-height: 58px;
  border-block: 1px solid var(--row-edge);
  font-variant-numeric: tabular-nums;
}
.leader-row td:first-child {
  padding: 0;
  border-left: 1px solid var(--row-edge);
  color: var(--placard-ink);
}
.leader-row td:last-child { border-right: 1px solid var(--row-edge); }
.place-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 58px;
  padding: 7px 22px 7px 12px;
  background: var(--placard);
  clip-path: polygon(0 0,100% 0,calc(100% - 13px) 100%,0 100%);
  font: 800 1.5rem/1 var(--display);
}
.player-tile {
  display: block;
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  box-shadow: 2px 3px 0 #0004;
}
.leader-row .elo {
  color: #173f54;
  font-weight: 700;
  font-size: 1.08rem;
}
.leader-row[data-place="1"] .elo { color: #6b380e; }
.empty-standings { color: var(--mute); }
@media(max-width:600px) {
  .table { padding-inline: 5px; }
  .table td,.table th { padding-inline: 8px; }
  .leader-row td:first-child { padding: 0; }
  .place-flag { padding-inline: 8px 14px; gap: 4px; font-size: 1.15rem; }
  .player-tile { width: 24px; height: 24px; }
  .controls { padding-inline: 8px; }
  .controls input { min-width: 112px; }
}

