@import url('https://fonts.googleapis.com/css2?family=Macondo&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

:root {
  --font-sans: Macondo;
}

#app {
  font-family: Macondo;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.screen {
  display: none;
}
.screen.active {
  display: block;
}
h1 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--border-radius-md);
}
.badge-live {
  background: #fcebeb;
  color: #a32d2d;
}
.badge-wait {
  background: #faeeda;
  color: #854f0b;
}
.badge-done {
  background: #eaf3de;
  color: #3b6d11;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
.stat {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
}
.stat-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.lobby-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.player-chip {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #639922;
}
.player-chip.bot .dot {
  background: #185fa5;
}
.player-chip.eliminated {
  opacity: 0.4;
}
.player-chip.eliminated .dot {
  background: #e24b4a;
}
.player-chip.winner {
  border-color: #639922;
  background: #eaf3de;
}
.player-chip.winner .dot {
  background: #639922;
}
.bot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  margin-bottom: 1rem;
}
.bot-bar label {
  font-size: 13px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}
.bot-bar input[type="range"] {
  flex: 1;
}
.url-box {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.winner-banner {
  background: #eaf3de;
  border: 0.5px solid #639922;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.winner-name {
  font-size: 28px;
  font-weight: 500;
  color: #27500a;
}
#arena-wrap {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 0.5px solid var(--color-border-tertiary);
}
#arena {
  display: block;
  width: 100%;
}
.log {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  max-height: 110px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.log-entry {
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 2px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  line-height: 1.5;
}
.log-entry.elim {
  color: #a32d2d;
}
.log-entry.win {
  color: #3b6d11;
  font-weight: 500;
}
