/* KILL LINE — Arena Styles */

.arena-wrapper {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  flex: 1;
}

/* Canvas Container */

.canvas-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 400px;
  background: #050505;
  border: 1px solid var(--dark-grey);
  overflow: hidden;
}

#arena-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#arena-canvas:active {
  cursor: grabbing;
}

/* Kill Feed */

.kill-feed {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 300px;
  max-height: 250px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kill-entry {
  font-family: 'Barlow', monospace;
  font-size: 13px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-left: 2px solid var(--red);
  opacity: 1;
  transition: opacity 0.5s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kill-entry.fading {
  opacity: 0;
}

/* Game Status */

.game-status {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
}

.status-label {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--grey);
}

/* Winner Overlay */

.winner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 10;
}

.winner-overlay.hidden {
  display: none;
}

.winner-text {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 72px;
  color: #FFD700;
  letter-spacing: 12px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  animation: winner-pulse 1.5s ease-in-out infinite;
}

.winner-id {
  font-family: 'Barlow', monospace;
  font-size: 18px;
  color: #FFD700;
  letter-spacing: 4px;
  margin-top: 8px;
  opacity: 0.8;
}

@keyframes winner-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* Controls */

.controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.controls-center {
  flex: 1;
  min-width: 0;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ctrl-btn {
  background: none;
  border: 1px solid var(--grey);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}

.ctrl-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.ctrl-btn.active {
  border-color: var(--red);
  color: var(--red);
}

.speed-controls {
  display: flex;
  gap: 2px;
}

.speed-btn {
  background: none;
  border: 1px solid var(--muted);
  color: var(--grey);
  padding: 4px 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.speed-btn:hover {
  border-color: var(--grey);
  color: var(--white);
}

.speed-btn.active {
  border-color: var(--red);
  color: var(--red);
}

/* Timeline */

.timeline-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--dark-grey);
  cursor: pointer;
}

.timeline-fill {
  height: 100%;
  background: var(--red);
  width: 0;
  transition: width 0.05s linear;
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: left 0.05s linear;
}

.timeline-handle:active {
  cursor: grabbing;
}

/* Stat Boxes */

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-box .stat-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--grey);
}

.stat-box .stat-val {
  font-family: 'Barlow', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* Responsive */

@media (max-width: 768px) {
  .canvas-container {
    height: calc(100vh - 200px);
    min-height: 300px;
  }

  .controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .controls-center {
    order: 3;
    width: 100%;
  }

  .kill-feed {
    width: 180px;
    font-size: 10px;
  }

  .winner-text {
    font-size: 48px;
  }
}
