@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #101217;
  color: #f4f3ef;
  font-size: 14px;
  --accent: #e6fa67;
  --border: #30333b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 1px solid #42464e;
  border-radius: 6px;
  padding: 10px 14px;
  background: #252931;
  color: #f4f3ef;
  cursor: pointer;
  min-height: 42px;
}
button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 4vw;
  background: #14161c;
}
.brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: white;
  letter-spacing: 1px;
}
.brand span {
  color: var(--accent);
}
.brand small {
  font:
    9px Inter,
    sans-serif;
  display: block;
  letter-spacing: 1.7px;
  color: #959aa6;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: #aeb3bd;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 32px 4vw 60px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.3px;
}
h1 {
  font-size: 44px;
  margin-bottom: 0;
}
h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
p {
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a5abb5;
  margin-bottom: 9px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 5px;
}
.event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.connection {
  font-size: 12px;
  color: #e9aa78;
}
.online {
  color: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr);
  gap: 24px;
  align-items: start;
}
.video {
  aspect-ratio: 16/9;
  background: #080a0e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 100%, #303721, #11141b 70%);
  text-align: center;
  padding: 20px;
  color: #b5bba9;
}
.video-placeholder p {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 3px;
  font-size: 24px;
  margin: 15px 0;
}
.video-placeholder small {
  color: #8b939f;
}
.panel {
  background: #191c23;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.factions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.faction {
  flex: 1;
  min-width: 150px;
  text-align: left;
  border-left: 3px solid var(--faction);
}
.faction strong {
  display: block;
  color: var(--faction);
  font-size: 16px;
}
.faction small {
  display: block;
  font-size: 10px;
  color: #a7adb7;
  margin-top: 8px;
  line-height: 1.6;
}
.selected {
  background: #31352b;
  border-color: var(--faction);
}
.contest-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contest-heading h2 {
  margin-bottom: 6px;
}
.clock {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 35px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  max-width: 180px;
  text-align: right;
}
.rule {
  color: #b1b8c4;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.outcome {
  padding: 13px 0 17px;
  border-bottom: 1px solid #2d3037;
}
.outcome-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.outcome-title h3 {
  font-size: 23px;
  margin: 0;
}
.outcome-title strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.outcome-title small {
  font:
    9px Inter,
    sans-serif;
  color: var(--accent);
}
.total-bar {
  height: 3px;
  background: #292d35;
  margin: 12px 0;
}
.total-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}
.faction-bars {
  font-size: 10px;
  color: #a3a9b4;
}
.faction-bars > div {
  display: flex;
  justify-content: space-between;
  margin: 7px 0;
}
.faction-meter {
  flex: 1;
  margin: 0 10px;
  height: 5px;
  background: #30343c;
  align-self: center;
}
.faction-meter i {
  display: block;
  height: 100%;
  transition: width 0.3s;
}
.contribute {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.contribute button {
  flex: 1;
  background: #252a32;
  font-weight: 600;
  min-width: 0;
  padding: 8px;
}
.winner {
  background: #252a1c;
}
.wallet-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.wallet-strip span {
  font-size: 12px;
  color: #a4acb8;
}
.wallet-strip strong {
  color: var(--accent);
}
.fine {
  font-size: 10px;
  color: #969eab;
  line-height: 1.65;
  margin: 16px 0;
}
.muted {
  color: #aab1bd;
}
.muted h3 {
  color: #eee;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: #bbc1cb;
  line-height: 2;
}
.actions,
.choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.danger {
  color: #ffaca6;
}
label {
  display: block;
  line-height: 1.6;
  margin: 12px 0;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  background: #101318;
  color: #e6e9ec;
  border: 1px solid #434956;
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0 16px;
}
textarea {
  height: 320px;
  font: 12px/1.5 monospace;
  resize: vertical;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.admin-grid pre {
  white-space: pre-wrap;
  max-height: 400px;
  overflow: auto;
}
.result {
  border-left: 3px solid var(--accent);
  padding: 16px;
  background: #242920;
}
dialog {
  width: min(94vw, 540px);
  max-height: 90vh;
  border: 1px solid #444b56;
  background: #191c23;
  color: #eee;
  border-radius: 12px;
  padding: 30px;
}
dialog::backdrop {
  background: #000b;
}
.close {
  float: right;
  font-size: 20px;
}
.ledger {
  max-height: 260px;
  overflow: auto;
  font-size: 11px;
}
.ledger p {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.ledger small {
  display: block;
  color: #8992a1;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #dff482;
  color: #141b09;
  max-width: 90vw;
  border-radius: 6px;
  font-size: 13px;
  z-index: 20;
}
#toast:not(:empty) {
  padding: 12px 20px;
}
.overlay {
  background: transparent;
}
.overlay-panel {
  width: 440px;
  padding: 25px;
  background: #111620e8;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
}
.overlay-row {
  display: flex;
  justify-content: space-between;
  font:
    24px "Barlow Condensed",
    sans-serif;
  padding: 8px 0;
}
.overlay-panel .clock {
  text-align: left;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .watch-column {
    display: contents;
  }
  .video {
    order: 0;
  }
  .watch-column > .panel {
    order: 1;
  }
  #contest {
    order: 2;
  }
  #personal {
    order: 3;
  }
  #operator {
    order: 4;
  }
  .watch-column > .muted {
    order: 5;
  }
  header {
    padding: 0 18px;
    height: 74px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  .brand small {
    display: none;
  }
  main {
    padding: 22px 14px;
  }
  h1 {
    font-size: 32px;
  }
  .event-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .connection {
    font-size: 10px;
    max-width: 100px;
    text-align: right;
  }
  .panel {
    padding: 18px;
  }
  .layout {
    gap: 0;
  }
  .video {
    border-radius: 6px;
  }
  .clock {
    font-size: 30px;
  }
  .contribute button {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
