/* Minimal, high-contrast projector-friendly UI */
:root{
  --bg:#0b0b0c;
  --card:#141417;
  --card2:#101014;
  --text:#f3f4f6;
  --muted:#a6a6b0;
  --border:#2a2a33;
  --accent:#3b82f6;
  --danger:#ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #151520 0%, var(--bg) 55%);
  color:var(--text);
}
a{color:inherit}
.topbar{
  position:sticky; top:0;
  z-index:10;
  background: rgba(11,11,12,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:12px}
.logo{font-size:26px}
.title{font-weight:750; letter-spacing:.2px}
.subtitle{font-size:12px; color:var(--muted); margin-top:2px}
.topbar-actions{display:flex; gap:8px}
.container{max-width:1100px; margin:18px auto; padding:0 14px 30px}
.card{
  background: linear-gradient(180deg, rgba(20,20,23,.95), rgba(16,16,20,.92));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  margin:14px 0;
}
h2{margin:0 0 10px; font-size:20px}
h3{margin:0; font-size:16px}
.muted{color:var(--muted)}
.label{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
.label.small{font-size:12px}
input,textarea,select{
  width:100%;
  background:#0f0f14;
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
textarea{min-height:120px; resize:vertical}
select[multiple]{padding:8px}
.hint{font-size:12px; color:var(--muted); margin-top:6px}
.row{display:flex; align-items:center}
.row.center{justify-content:center}
.row.wrap{flex-wrap:wrap}
.gap{gap:10px}
.mt8{margin-top:8px}
.mt16{margin-top:16px}
.grid2{display:grid; grid-template-columns: 1fr 1fr}
.grid3{display:grid; grid-template-columns: 1fr 1fr 1fr}
@media (max-width: 900px){
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
}
button{
  border:1px solid var(--border);
  background:#0f0f14;
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
button:hover{border-color:#3a3a46}
button:active{transform: translateY(1px)}
button.primary{
  background: linear-gradient(180deg, rgba(59,130,246,.9), rgba(37,99,235,.85));
  border-color: rgba(59,130,246,.55);
}
button.danger{
  background: linear-gradient(180deg, rgba(239,68,68,.92), rgba(220,38,38,.86));
  border-color: rgba(239,68,68,.55);
}
button.ghost{background:#0f0f14}
button.big{padding:14px 18px; font-size:16px}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(15,15,20,.85);
  color:var(--text);
  font-size:13px;
}
.summary{
  margin-top:12px;
  padding:12px;
  border:1px dashed var(--border);
  border-radius:12px;
  background: rgba(12,12,16,.6);
  font-size:13px;
}
.segmented{display:flex; gap:6px}
.seg{flex:1}
.seg.active{border-color: rgba(59,130,246,.6)}
.search{max-width:360px}
.panel{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background: rgba(12,12,16,.6);
}
.tableWrap{margin-top:12px; max-height:420px; overflow:auto; border-radius:12px; border:1px solid var(--border)}
.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:10px 12px; border-bottom:1px solid var(--border); font-size:14px}
.table th{position:sticky; top:0; background: rgba(16,16,20,.95); text-align:left}
.table .right{text-align:right}
.table button{padding:6px 10px; border-radius:10px}
.draw .currentName{
  margin:18px 0 10px;
  padding:16px 14px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: radial-gradient(900px 300px at 50% 0%, rgba(59,130,246,.22), rgba(15,15,20,.85));
  text-align:center;
  font-weight:900;
  letter-spacing:.5px;
  font-size: clamp(42px, 6vw, 88px);
  line-height:1.06;
  word-break: break-word;
}
.drawTop{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.stats{display:flex; gap:8px; flex-wrap:wrap}
.history{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
  max-height:380px;
  overflow:auto;
  padding-right:4px;
}
.histItem{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(12,12,16,.55);
}
.histName{font-size:14px}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(15,15,20,.85);
  cursor:pointer;
  user-select:none;
}
.badge.claimed{border-color: rgba(59,130,246,.5)}
.badge.notpresent{border-color: rgba(239,68,68,.5)}
.footer{padding:14px 2px; font-size:12px}
