
:root{
  --bg1:#06070b;
  --bg2:#0c1022;
  --card:#0f1628;
  --card2:#101a30;
  --line:#26304a;
  --text:#e9eef6;
  --muted:#a9b4c7;
  --blue:#2b72ff;
  --green:#38d46a;
  --gold:#ffcc4d;
}

*{box-sizing:border-box}
body{
  font-family: Arial, sans-serif;
  margin:0;
  background: radial-gradient(1200px 700px at 50% 0%, #1a2a5a 0%, var(--bg2) 45%, var(--bg1) 100%);
  color:var(--text);
}
a{color:#9bd1ff}
.container{max-width:1080px;margin:0 auto;padding:18px}

.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.card{background:#151923;border:1px solid #2a3142;border-radius:12px;padding:14px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:900px){.grid{grid-template-columns:1fr}}

.btn{
  background:var(--blue);
  border:0;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:bold;
  box-shadow:0 8px 18px rgba(43,114,255,.22);
}
.btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}

.btn2{
  background:#263043;
  border:1px solid #38445d;
  color:#e9eef6;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  display:inline-block;
  cursor:pointer;
}

.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#1b2437;border:1px solid #38445d;font-size:12px}
.small{color:var(--muted);font-size:13px}
hr{border:0;border-top:1px solid #2a3142;margin:12px 0}

.table{border-collapse:collapse;width:100%;margin-top:10px}
.table th,.table td{border:1px solid #2a3142;padding:10px;text-align:center}

/* Modal + toast */
.modalBack{position:fixed;inset:0;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;padding:16px;z-index:50}
.modal{max-width:520px;width:100%;background:#101421;border:1px solid #2a3142;border-radius:14px;padding:14px;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.modal h3{margin:0 0 10px 0}
.modal .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#101421;border:1px solid #2a3142;color:#fff;padding:10px 12px;border-radius:999px;display:none;z-index:60;box-shadow:0 18px 40px rgba(0,0,0,.35)}

/* ----------------------------
   UI estilo "jogo mobile"
---------------------------- */
.hud{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}
.hudLeft{display:flex;align-items:center;gap:10px;min-width:0}
.hudRight{display:flex;align-items:center;gap:10px}
.hudBtn{
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  border-radius:14px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color:#fff;
  font-size:20px;
}
.hudTitle{min-width:0}
.hudName{font-weight:bold;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.hudSub{font-size:12px;color:rgba(255,255,255,.70)}
.hudToggle{display:flex;align-items:center;gap:6px;font-size:13px;color:rgba(255,255,255,.85)}
.hudToggle input{transform:scale(1.1)}

.gameWrap{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
}
@media (max-width:900px){ .gameWrap{grid-template-columns:1fr} }

.cardGame{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  box-shadow:0 20px 46px rgba(0,0,0,.35);
}

.panelTitle{
  font-weight:bold;
  letter-spacing:.3px;
}

.boardTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}
.ballBox{display:flex;flex-direction:column;gap:6px}
.ballLabel{font-size:12px;color:rgba(255,255,255,.75)}
.ballMeta{font-size:12px;color:rgba(255,255,255,.75)}
.ballNow{
  width:92px;height:92px;
  border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  font-size:34px;font-weight:bold;
  background:radial-gradient(circle at 30% 30%, #8dd7ff 0%, #3d7cff 40%, #13307b 100%);
  border:2px solid rgba(255,255,255,.20);
  box-shadow: inset 0 10px 18px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.45);
}
.ballNow.big{width:96px;height:96px;font-size:36px}

.bingoAction{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.progress{
  font-size:13px;
  color:rgba(255,255,255,.80);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
}

.btnBingo{
  padding:14px 22px;
  border-radius:16px;
  border:0;
  font-weight:900;
  letter-spacing:1px;
  font-size:20px;
  cursor:pointer;
  color:#111;
  background:linear-gradient(180deg, #ffd56b 0%, #ffb400 55%, #ff8f00 100%);
  box-shadow:0 18px 44px rgba(255,180,0,.25), inset 0 10px 18px rgba(255,255,255,.18);
}
.btnBingo:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}

.bingoHeader{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}
.bingoHeader > div{
  text-align:center;
  padding:10px 0;
  border-radius:14px;
  font-weight:900;
  font-size:18px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
}
.colB{color:#ff4d4d}
.colI{color:#ffd56b}
.colN{color:#b06cff}
.colG{color:#39d98a}
.colO{color:#5aa8ff}

.bingoGridGame{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}
.cellGame{
  position:relative;
  aspect-ratio:1/1;
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  font-size:clamp(18px, 4.6vw, 28px);
  color:#103016;
  background:linear-gradient(180deg, #b7ff96 0%, #69df5a 55%, #36b94c 100%);
  border:2px solid rgba(0,0,0,.25);
  box-shadow: inset 0 10px 16px rgba(255,255,255,.18), 0 14px 32px rgba(0,0,0,.28);
  cursor:pointer;
  user-select:none;
  transition:transform .06s ease;
}
.cellGame:active{transform:scale(.98)}
.cellGame.free{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color:rgba(255,255,255,.8);
  border:2px dashed rgba(255,255,255,.25);
  cursor:default;
}
.cellGame .cellText{position:relative;z-index:2}
.cellGame.marked::after{
  content:'';
  position:absolute;
  inset:18%;
  border-radius:999px;
  background:radial-gradient(circle at 30% 30%, #a7eaff 0%, #4aa1ff 45%, #1451c6 100%);
  box-shadow: inset 0 10px 16px rgba(255,255,255,.20), 0 18px 30px rgba(0,0,0,.35);
  opacity:.95;
}
.cellGame.marked{color:#ffffff;text-shadow:0 2px 0 rgba(0,0,0,.35)}

.hintGame{
  margin-top:12px;
  font-size:13px;
  color:rgba(255,255,255,.80);
}

.sidePanel{}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.chip{
  display:flex;align-items:center;gap:10px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
}
.chipL{
  width:28px;height:28px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  color:#111;
  background:#fff;
}
.chipN{font-weight:900}
.chipB .chipL{background:#ff4d4d}
.chipI .chipL{background:#ffd56b}
.chipN .chipL{background:#b06cff}
.chipG .chipL{background:#39d98a}
.chipO .chipL{background:#5aa8ff}

.pauseOverlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.62);
  z-index:45;
  backdrop-filter: blur(3px);
}
.pauseCard{
  width:100%;
  max-width:420px;
  text-align:center;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.15);
  border-radius:18px;
  padding:16px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.pauseTitle{font-size:22px;font-weight:900;margin-bottom:6px}
.pauseText{color:rgba(255,255,255,.85);margin-bottom:10px}
.pauseCountdown{color:rgba(255,255,255,.75)}

/* ----------------------------
   Admin extras
---------------------------- */
.adminGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
}
.adminWide{grid-column: 1 / -1}
@media (max-width:900px){ .adminGrid{grid-template-columns:1fr} .adminWide{grid-column:auto} }

.adminBallRow{display:flex;gap:12px;align-items:center;margin-top:10px}
.adminActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

.statsRow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}
@media (max-width:700px){ .statsRow{grid-template-columns:repeat(2,1fr)} }
.statBox{
  padding:12px;
  border-radius:16px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  text-align:center;
}
.statN{font-size:22px;font-weight:900}
.statL{font-size:12px;color:rgba(255,255,255,.75);margin-top:4px}

.progBar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  margin-top:6px;
}
.progFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, #39d98a, #5aa8ff);
}

.miniGrid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-top:10px;
}
.miniCell{
  aspect-ratio:1/1;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.miniCell.marked{background:rgba(57,217,138,.18);border-color:rgba(57,217,138,.35)}
.miniCell.free{background:rgba(90,168,255,.14);border-style:dashed}
