* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0f1226;
  color: #e9ecff;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 12px; }

header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
h1 { margin: 0; font-size: 24px; }
.controls { display: flex; gap: 8px; }
.controls input {
  padding: 8px 10px; border-radius: 10px; border: 1px solid #3a3f7a; background:#0f1433; color:#e9ecff;
}
.controls button {
  padding: 8px 12px; border-radius: 10px; border: 1px solid #7a86ff; background: #4c58ff; color: white; cursor: pointer;
}
.controls button:hover { filter: brightness(1.05); }

.main { display: grid; grid-template-columns: 1fr 320px; gap: 12px; }
.left { position: relative; }
#arena {
  background: radial-gradient(circle at 20% 20%, #101742, #0c0f2c 60%);
  width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  border: 1px solid #20275c;
}

.right .panel {
  background: #101540; border: 1px solid #20275c; padding: 12px; border-radius: 12px; margin-bottom: 12px;
}
#players { list-style: none; padding: 0; margin: 0; }
#players li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px; border-radius: 10px; margin-bottom: 6px; background: #12194f; border:1px solid #27318a;
}
#players .meta { display: flex; flex-direction: column; }
#players .name { font-weight: 600; }
#players .score { opacity: .85; font-size: 13px; }

.player-actions { position: relative; }
.player-actions button {
  background: #2a35a8; color: #fff; border: 1px solid #5560e0; border-radius: 10px; padding: 6px 8px; cursor: pointer;
}
.player-actions button:hover { filter: brightness(1.06); }

.dropdown {
  position: absolute; right: 0; top: 36px; min-width: 140px;
  background: #0e1340; border: 1px solid #2a35a8; border-radius: 10px; padding: 6px; display: none;
  z-index: 5;
}
.dropdown.open { display: block; }
.dropdown button {
  width: 100%; text-align: left; margin: 4px 0; background: #161d59; border-color: #2e3cc9;
}

footer { margin-top: 10px; opacity: .8; }

.toast {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 10px; background: rgba(14,19,64,0.9); border:1px solid #2a35a8; padding: 8px 12px; border-radius: 10px;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.smoke {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(10,10,10,0.75), rgba(10,10,10,0.95) 60%);
  z-index: 20; transition: opacity .2s ease; opacity: 0;
}
.smoke.show { opacity: 1; }
.hidden { display: none; }
