/* reSplit online: the look of the reSplit settings page (dark rows, orange capitals, cyan highlight).
   The font is Barlow Condensed (SIL OFL, fonts/OFL.txt), self-hosted; no game asset is used. */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); }

:root {
  --bg: #07070a;
  --row-top: #171616;
  --row-bottom: #080808;
  --edge: #4a4242;
  --orange: #f8b400;
  --ember: #ff6a00;
  --cyan: #5fe8f0;
  --white: #f8f8f8;
  --dim: #8d8478;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--orange);
  font: 500 21px/1.15 "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  background:
    radial-gradient(ellipse 70% 45% at 10% 105%, rgba(255, 90, 0, .38), transparent 70%),
    radial-gradient(ellipse 60% 40% at 95% -5%, rgba(70, 200, 230, .16), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
main { max-width: 860px; margin: 0 auto; padding: 18px 16px 48px; }
a { color: var(--cyan); text-decoration: none; }
a:hover, a:focus-visible { color: var(--white); text-decoration: underline; }

nav { display: flex; gap: 10px; margin-bottom: 14px; }
nav a {
  padding: 6px 16px; color: var(--orange); border-bottom: 2px solid transparent; font-weight: 700;
}
nav a.here { color: var(--white); border-bottom-color: var(--cyan); text-shadow: 0 0 10px rgba(95, 232, 240, .7); }

header {
  margin: 0 0 20px; padding: 14px 20px 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(20, 20, 24, .55));
  border-left: 5px solid var(--cyan);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
h1 {
  margin: 0; font-weight: 700; font-size: 46px; line-height: 1; color: var(--white);
  text-shadow: 0 0 14px rgba(95, 232, 240, .75), 0 2px 0 #000;
}
.state { margin: 6px 0 0; font-size: 18px; color: var(--dim); }
.state.live::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.state.off { color: #ff7a5a; }

h2 {
  margin: 26px 0 8px; font-size: 22px; font-weight: 700; color: var(--white);
  text-shadow: 0 0 10px rgba(255, 106, 0, .55);
}

.rows { display: grid; gap: 6px; }
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 30px 9px 16px;
  background: linear-gradient(var(--row-top), var(--row-bottom));
  border-top: 1px solid var(--edge); border-bottom: 1px solid #1c1616;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
}
.row span { text-shadow: 0 0 9px rgba(255, 106, 0, .5); }
.row b { font-weight: 700; font-size: 24px; text-align: right; white-space: nowrap; text-shadow: 0 0 9px rgba(255, 106, 0, .5); }
.row.sel { border-top-color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(95, 232, 240, .35); }
.row.sel span, .row.sel b { color: var(--white); text-shadow: 0 0 10px rgba(95, 232, 240, .8); }
.row.sel b { font-size: 30px; }
.row.dim { color: var(--dim); }
.row.dim span { text-shadow: none; }
.row .tag { margin-left: 10px; font-style: normal; font-size: 17px; color: var(--dim); }
.row .tag.go { color: var(--cyan); }

.split { height: 8px; background: var(--cyan); box-shadow: 0 0 8px rgba(95, 232, 240, .5); display: flex; overflow: hidden; }
.split i { display: block; height: 100%; width: 0; background: var(--orange); box-shadow: 0 0 8px var(--ember); transition: width .4s; }

.chart { padding: 10px 12px 6px; background: linear-gradient(var(--row-top), var(--row-bottom));
  border-top: 1px solid var(--edge); border-bottom: 1px solid #1c1616; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .bar { fill: var(--orange); }
.chart .bar.today { fill: var(--cyan); }
.chart .axis { stroke: #3a3434; stroke-width: 1; }
.chart text { fill: var(--dim); font: 500 12px "Barlow Condensed", Arial, sans-serif; letter-spacing: .04em; }

footer { margin-top: 34px; color: var(--dim); font-size: 16px; line-height: 1.4; text-transform: none; letter-spacing: .02em; }
footer p { margin: 4px 0; }

@media (max-width: 520px) {
  body { font-size: 19px; }
  h1 { font-size: 36px; }
  .row { padding-right: 24px; }
  .row.sel b { font-size: 26px; }
}

a.row { color: var(--orange); }
a.row:hover, a.row:focus-visible { text-decoration: none; filter: brightness(1.25); }

.split.hide { display: none; }
