/* Bingo Crypt gameplay interface V2
   Player-first layout: status -> card -> caller -> results.
   Existing game logic and DOM ids remain unchanged. */

.playSurface.gameplayDashboard{
  --game-accent:#52e6d6;
  --game-accent-rgb:82,230,214;
  --game-gold:#f1c958;
  --game-danger:#ff6762;
  --game-panel:rgba(7,22,32,.96);
  --game-panel-2:rgba(10,29,41,.96);
  width:100%;
  max-width:none;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:12px;
  align-items:start;
}

body.mode-duel .playSurface.gameplayDashboard{
  --game-accent:#ff6a67;
  --game-accent-rgb:255,106,103;
  --game-gold:#f4c866;
}

body.mode-knockout .playSurface.gameplayDashboard{
  --game-accent:#8de45d;
  --game-accent-rgb:141,228,93;
  --game-gold:#f2d57a;
}

.playWorkspaceWindow{
  width:min(1520px,100%);
  border-color:rgba(var(--game-accent-rgb),.28);
  background:
    radial-gradient(circle at 50% 0%,rgba(var(--game-accent-rgb),.055),transparent 34%),
    #06121b;
}

.playWorkspace .container,
.playWorkspace .container.crypt{
  width:100%;
  max-width:none;
  padding:12px;
}

.playWorkspace .hud{
  min-height:72px !important;
  margin:0 0 10px !important;
  border:1px solid rgba(var(--game-accent-rgb),.20);
  border-radius:12px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(3,13,20,.88),rgba(5,18,28,.50),rgba(3,13,20,.88)),
    url("/assets/bingo-crypt-main-hall-banner.png") center 42% / cover no-repeat;
  box-shadow:0 14px 34px rgba(0,0,0,.24);
}

.playWorkspace .brand-text.hudTopRow{
  min-height:70px !important;
}

.playWorkspace .hud-watermark{
  opacity:.16;
}

.duelBannerScene{display:none}
body.mode-duel .playWorkspace .hud{
  position:relative;
  height:clamp(120px,11vw,145px);
  min-height:120px !important;
  background:#020f12 !important;
  padding:0 !important;
}
body.mode-duel .playWorkspace .duelBannerScene{
  display:block;position:absolute;inset:0;overflow:hidden;
  background:linear-gradient(90deg,rgba(104,12,22,.20),transparent 35%,transparent 65%,rgba(61,101,11,.20));
}
body.mode-duel .playWorkspace .duelBannerArt{
  position:absolute;left:50%;top:50%;width:min(100%,880px);max-width:none;height:auto;
  transform:translate(-50%,-50%);
}
body.mode-duel .playWorkspace .duelBannerCopy{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-shadow:0 3px 18px #000;
}
.duelBannerCopy span{font-size:10px;font-weight:900;letter-spacing:.32em;color:#c5d5ca}
.duelBannerCopy strong{font-size:clamp(36px,5vw,66px);line-height:1.05;letter-spacing:.12em;color:#e9e4ba}
body.mode-duel .playWorkspace .hud-left,body.mode-duel .playWorkspace .hud-right,
body.mode-duel .playWorkspace .hud-watermark{visibility:hidden}
.duelCroPanel input{max-width:160px;padding:9px;background:#091b24;color:#fff;border:1px solid #4f6659;border-radius:8px}
.duelCroPanel button:disabled{opacity:.45;cursor:not-allowed}
.duelCroHistory{display:grid;gap:10px;padding:12px}
.duelCroHistory article{border:1px solid #48614e;border-radius:9px;padding:12px;background:rgba(3,14,21,.6)}
.duelCroHistory p{margin:7px 0;font-size:12px;color:#c0cfc7}
.duelCroHistory button{margin:4px;padding:8px 12px;border-radius:8px;cursor:pointer}
.duelCroHistory a{color:#d4d899}

.roomInfoStrip{
  order:0;
  grid-column:1 !important;
  grid-template-columns:1.2fr 1fr .8fr .8fr 1.25fr !important;
  gap:7px;
  padding:8px;
  border-color:rgba(var(--game-accent-rgb),.20);
  border-radius:12px;
  background:rgba(5,18,27,.94);
}

.roomInfoStrip div{
  min-height:52px;
  display:grid;
  align-content:center;
  padding:8px 10px;
  border-color:rgba(255,255,255,.075);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}

.roomInfoStrip div:nth-child(2),
.roomInfoStrip div:nth-child(4){
  display:none;
}

.roomInfoStrip span{
  margin-bottom:3px;
  color:rgba(var(--game-accent-rgb),.88);
  font-size:8px;
}

.roomInfoStrip strong{
  color:#effcff;
  font-size:12px;
}

.gameMainStage{
  order:1;
  min-width:0;
  display:grid !important;
  grid-template-columns:minmax(520px,1.45fr) minmax(320px,.70fr);
  gap:12px;
  align-items:start;
}

.gameMainStage > .hero,
.gameMainStage > .duelStakePanel{
  grid-column:1 / -1;
}

.gameMainStage .hero.hero-mini{
  min-height:0 !important;
  margin:0 !important;
  padding:14px 16px !important;
  border:1px solid rgba(var(--game-accent-rgb),.24);
  border-radius:14px;
  background:
    radial-gradient(circle at 88% 10%,rgba(var(--game-accent-rgb),.12),transparent 30%),
    linear-gradient(135deg,rgba(11,34,46,.98),rgba(5,17,26,.98) 58%,rgba(13,21,26,.98));
  box-shadow:0 16px 34px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);
}

.gameMainStage .hero.hero-mini::after{
  background:linear-gradient(90deg,transparent,var(--game-accent),var(--game-gold),transparent);
}

.gameMainStage .hero-top,
.gameMainStage .hero-divider{
  display:none !important;
}

.gameMainStage .hero-focus{
  width:100%;
  min-width:0;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(210px,280px) !important;
  gap:16px;
  align-items:center;
  padding:0 !important;
}

.gameMainStage .hero-status{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px;
}

.heroStatusContext{
  display:grid;
  gap:4px;
  text-align:left !important;
}

.heroStatusContext > span{
  color:var(--game-accent) !important;
  font-size:9px !important;
  letter-spacing:.14em;
}

.heroStatusContext small{
  max-width:none !important;
  margin:0 !important;
  color:#b6cbd0 !important;
  font-size:12px !important;
  line-height:1.45;
}

.heroStatusMetrics{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:7px;
}

.heroStatusMetrics div{
  min-height:44px !important;
  padding:7px 9px;
  border-radius:8px;
  background:rgba(1,8,13,.42);
}

.heroStatusMetrics span{font-size:8px}
.heroStatusMetrics strong{font-size:12px !important}

.gameMainStage .heroStatusStack{
  width:100%;
  display:grid;
  gap:8px;
}

.gameMainStage .heroStatus{
  width:100%;
  min-width:0 !important;
  min-height:48px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border:1px solid rgba(var(--game-accent-rgb),.24);
  border-radius:10px;
  color:#efffff;
  background:rgba(var(--game-accent-rgb),.08);
  font-size:12px;
  font-weight:950;
  letter-spacing:.035em;
  text-align:center;
}

body.gameRunning .gameMainStage .heroStatus{
  border-color:rgba(var(--game-accent-rgb),.48);
  background:rgba(var(--game-accent-rgb),.13);
  box-shadow:0 0 22px rgba(var(--game-accent-rgb),.10);
}

body.gamePaused .gameMainStage .heroStatus{
  border-color:rgba(241,201,88,.45);
  color:#fff1b5;
  background:rgba(241,201,88,.09);
}

body.gameEnded .gameMainStage .heroStatus{
  border-color:rgba(255,103,98,.38);
  color:#ffd3d0;
  background:rgba(255,103,98,.08);
}

.gameMainStage .hero-actions{
  width:100%;
  margin:0 !important;
}

.gameMainStage .hero-actions #joinBtn{
  display:none !important;
}

.gameMainStage .hero-actions .joinControlSlot{
  width:100%;
}

.gameMainStage .hero-actions #joinBtnCard{
  width:100%;
}

.gameMainStage .hero-actions #joinBtnCard .joinImg{
  display:none;
}

.gameMainStage .hero-actions #joinBtnCard::before{
  content:"JOIN THIS GAME";
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(var(--game-accent-rgb),.46);
  border-radius:10px;
  color:#031616;
  background:linear-gradient(135deg,var(--game-accent),#a9fbf5);
  box-shadow:0 10px 24px rgba(0,0,0,.24);
  font-size:11px;
  font-weight:1000;
  letter-spacing:.06em;
}

.gameMainStage .registeredBtn{
  width:100% !important;
  min-width:0 !important;
  min-height:46px !important;
  border-radius:10px !important;
  color:#08130d;
  background:linear-gradient(135deg,#f5d875,#cba53d);
  font-size:11px !important;
  font-weight:1000;
  letter-spacing:.04em;
}

.gameMainStage .registeredBtn.joinCanLeave{
  color:#061919;
  background:linear-gradient(135deg,var(--game-accent),#a9fbf5);
}

.gameMainStage .cardPanel{
  grid-column:1;
  width:100% !important;
  max-width:none !important;
  min-width:0;
  margin:0 !important;
  padding:12px !important;
  border:1px solid rgba(var(--game-accent-rgb),.22);
  border-radius:14px;
  background:
    radial-gradient(circle at 50% 0%,rgba(var(--game-accent-rgb),.06),transparent 38%),
    linear-gradient(180deg,rgba(11,31,43,.98),rgba(5,17,26,.98));
  box-shadow:0 18px 46px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035);
}

.gameCardHeader{
  min-height:62px;
  margin:0 0 10px;
  padding:9px 11px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:10px;
  background:rgba(1,9,15,.45);
}

.gameCardTitle,
.gameCardTarget{
  min-width:0;
  display:grid;
  gap:3px;
}

.gameCardTitle span,
.gameCardTarget span{
  color:#718f9c;
  font-size:8px;
  font-weight:950;
  letter-spacing:.13em;
}

.gameCardTitle strong{
  overflow:hidden;
  color:#dcecee;
  font-size:11px;
  font-weight:750;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gameCardTarget{
  min-width:160px;
  text-align:right;
}

.gameCardTarget strong{
  color:#fff0ad;
  font-size:12px;
  line-height:1.15;
}

.gameCardDabMode{
  min-width:74px;
  padding:6px 7px;
  border:1px solid rgba(var(--game-accent-rgb),.28);
  border-radius:7px;
  color:var(--game-accent);
  background:rgba(var(--game-accent-rgb),.065);
  font-size:8px;
  font-weight:1000;
  letter-spacing:.08em;
  text-align:center;
}

.gameCardDabMode.manual{
  color:#ffd6d3;
  border-color:rgba(255,106,103,.36);
  background:rgba(255,106,103,.08);
}

.cardPanel.hasCard #cardGrid{
  width:100%;
  min-width:0;
  padding:10px;
  gap:7px !important;
  border:1px solid rgba(255,255,255,.065);
  border-radius:12px;
  background:
    linear-gradient(180deg,rgba(1,8,13,.42),rgba(2,10,16,.72));
}

.cardPanel.hasCard .colHeader{
  min-height:38px !important;
  border:0;
  border-radius:8px !important;
  color:#fff;
  font-size:18px !important;
  font-weight:1000;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}

.cardPanel.hasCard .colHeader[data-c="0"]{background:linear-gradient(135deg,#187fd0,#09528e)}
.cardPanel.hasCard .colHeader[data-c="1"]{background:linear-gradient(135deg,#8a45d0,#53247e)}
.cardPanel.hasCard .colHeader[data-c="2"]{background:linear-gradient(135deg,#26a969,#11653b)}
.cardPanel.hasCard .colHeader[data-c="3"]{color:#171006;background:linear-gradient(135deg,#f5d96d,#d2a63a)}
.cardPanel.hasCard .colHeader[data-c="4"]{background:linear-gradient(135deg,#e76155,#97352d)}

.cardPanel.hasCard .cell{
  min-height:72px !important;
  aspect-ratio:auto !important;
  border:1px solid rgba(255,255,255,.10);
  border-radius:9px !important;
  color:#f5fbfd;
  background:
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 18px rgba(0,0,0,.18);
  font-size:30px !important;
  font-variant-numeric:tabular-nums;
  transition:transform .12s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}

.cardPanel.hasCard .cellValue{
  position:relative;
  z-index:2;
}

.cardPanel.hasCard .cell.daubed{
  border-color:rgba(var(--game-accent-rgb),.50);
  background:
    radial-gradient(circle at 50% 50%,rgba(var(--game-accent-rgb),.25),transparent 56%),
    linear-gradient(180deg,rgba(var(--game-accent-rgb),.13),rgba(4,21,27,.80));
  color:#fff;
  box-shadow:
    inset 0 0 0 1px rgba(var(--game-accent-rgb),.15),
    0 0 20px rgba(var(--game-accent-rgb),.14);
}

.cardPanel.hasCard .cell.daubed::before{
  width:44px !important;
  height:44px !important;
  background:rgba(var(--game-accent-rgb),.15);
  border:2px solid rgba(var(--game-accent-rgb),.28);
  box-shadow:none;
}

body.mode-duel.gameRunning .cardPanel.hasCard .cell:not(.daubed){
  cursor:pointer;
}

body.mode-duel.gameRunning .cardPanel.hasCard .cell:not(.daubed):hover{
  transform:translateY(-2px);
  border-color:rgba(255,106,103,.42);
  background:rgba(255,106,103,.07);
}

.cardPanel.hasCard .cell.last{
  outline:2px solid #fff0ad !important;
  outline-offset:1px;
  box-shadow:
    0 0 0 3px rgba(0,0,0,.32),
    0 0 24px rgba(241,201,88,.50) !important;
}

.cardPanel.hasCard .cell.targetNeeded{
  border-color:rgba(241,201,88,.78) !important;
}

.cardPanel.hasCard .cell.targetReady,
.cardPanel.hasCard .cell.win{
  border-color:rgba(133,235,94,.78) !important;
  box-shadow:0 0 24px rgba(133,235,94,.24) !important;
}

.cardPanel .claimRow{
  margin:10px 0 0 !important;
}

.cardPanel .claimBtn{
  width:100%;
  min-height:62px;
  padding:8px 14px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:11px !important;
  border:1px solid rgba(var(--game-accent-rgb),.24) !important;
  border-radius:11px !important;
  color:#d8e7e9;
  background:
    linear-gradient(135deg,rgba(var(--game-accent-rgb),.10),rgba(255,255,255,.025)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 10px 24px rgba(0,0,0,.18) !important;
  cursor:pointer;
  transition:transform .12s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}

.cardPanel .claimBtn:disabled{
  cursor:not-allowed;
  opacity:.48;
}

.cardPanel .claimBtn .claimButtonMark{
  width:36px;
  height:36px;
  display:grid !important;
  place-items:center;
  flex:none;
  border:1px solid rgba(var(--game-accent-rgb),.30);
  border-radius:50%;
  color:var(--game-accent);
  background:rgba(var(--game-accent-rgb),.08);
  font-size:17px;
  font-weight:1000;
}

.claimButtonCopy{
  display:grid !important;
  gap:2px;
  text-align:left;
}

.claimButtonCopy strong{
  color:#efffff;
  font-size:13px;
  letter-spacing:.075em;
}

.claimButtonCopy small{
  color:#78949d;
  font-size:9px;
  font-weight:750;
}

.cardPanel .claimBtn:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:rgba(var(--game-accent-rgb),.44) !important;
  background:rgba(var(--game-accent-rgb),.13) !important;
}

.cardPanel .claimBtn.claimReady{
  border-color:rgba(241,201,88,.62) !important;
  background:
    radial-gradient(circle at 12% 50%,rgba(255,242,177,.16),transparent 28%),
    linear-gradient(135deg,rgba(241,201,88,.22),rgba(var(--game-accent-rgb),.10)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 1px rgba(241,201,88,.12),
    0 0 28px rgba(241,201,88,.14) !important;
}

.cardPanel .claimBtn.claimReady .claimButtonMark{
  color:#11160a;
  border-color:#f7de83;
  background:linear-gradient(135deg,#fff0a6,#dcb949);
}

.cardPanel .claimBtn.claimReady .claimButtonCopy strong{
  color:#fff1b2;
}

.gameMainStage .drawnPanel{
  grid-column:2;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:12px !important;
  position:sticky;
  top:10px;
  border:1px solid rgba(var(--game-accent-rgb),.22);
  border-radius:14px;
  background:
    radial-gradient(circle at 50% 18%,rgba(var(--game-accent-rgb),.065),transparent 34%),
    linear-gradient(180deg,rgba(10,29,41,.98),rgba(5,17,26,.98));
  box-shadow:0 18px 46px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035);
}

.drawnPanelTop{
  margin-bottom:9px;
}

.drawnPanelTop .panelTitle{
  font-size:17px !important;
}

.drawnLatestLabel{
  color:var(--game-accent);
}

.ballLane{
  gap:5px !important;
}

.ballLane span{
  min-height:40px !important;
  border-radius:8px !important;
  opacity:.66;
  transition:opacity .18s ease,transform .18s ease,border-color .18s ease;
}

.ballLane span.active{
  opacity:1;
  transform:translateY(-1px);
  border-color:rgba(var(--game-accent-rgb),.46);
  box-shadow:0 0 18px rgba(var(--game-accent-rgb),.14);
}

.gameMainStage .drawnLatest{
  min-height:150px !important;
  margin-top:8px;
  padding:12px !important;
  display:grid !important;
  grid-template-columns:140px minmax(0,1fr) !important;
  align-items:center;
  gap:14px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:12px;
  background:
    radial-gradient(circle at 22% 50%,rgba(var(--game-accent-rgb),.11),transparent 34%),
    rgba(1,9,15,.48);
}

.gameMainStage .drawnLatest #nextBall.big{
  width:122px !important;
  height:122px !important;
  margin:0 auto !important;
  border-width:4px !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.36),
    0 0 30px rgba(var(--game-accent-rgb),.12),
    inset 0 2px 0 rgba(255,255,255,.17);
}

.gameMainStage .drawnLatest #nextBall.big .ballInner{
  width:68px !important;
  height:68px !important;
  font-size:22px !important;
}

.latestBallCaption{
  min-width:0;
}

.latestBallCaption span{
  color:var(--game-accent) !important;
  font-size:10px !important;
  letter-spacing:.13em;
}

.latestBallCaption strong{
  color:#fff !important;
  font-size:36px !important;
  line-height:1;
}

.latestBallCaption small{
  color:#7897a2 !important;
  font-size:9px !important;
}

.gameMainStage .drawnProgress{
  margin-top:9px;
}

.gameMainStage .heroProgress{
  height:7px;
}

.gameMainStage .heroProgress > div{
  background:linear-gradient(90deg,var(--game-accent),var(--game-gold));
}

.drawnHistoryHead{
  margin:11px 0 7px !important;
}

.gameMainStage #drawn{
  max-height:194px !important;
  padding:9px !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(44px,1fr)) !important;
  gap:7px !important;
  overflow:auto;
  border:1px solid rgba(255,255,255,.055);
  border-radius:10px;
  background:rgba(1,8,13,.34);
}

.gameMainStage .ball.small{
  width:42px !important;
  height:42px !important;
  margin:0 auto !important;
  font-size:11px !important;
}

.gameInfoRail{
  order:2;
  width:100%;
  min-width:0;
  position:static !important;
}

.gameInsightStack{
  display:grid !important;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:12px;
}

.gameInsightStack .heroMiniPanel{
  min-width:0;
  padding:12px !important;
  border-radius:13px !important;
  border-color:rgba(var(--game-accent-rgb),.16);
  background:rgba(7,22,32,.94);
}

.gameInsightStack .panelHeading{
  margin-bottom:10px;
}

.gameInsightStack .panelHeading .panelTitle{
  font-size:16px !important;
}

.gameInsightStack .winner-list{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.gameInsightStack .winner-item{
  min-height:70px !important;
  padding:10px !important;
  display:grid;
  align-content:center;
}

.gameInsightStack .winner-label{font-size:13px !important}
.gameInsightStack .winner-state{font-size:8px !important}
.gameInsightStack .winner-value{font-size:11px !important}

.gameInsightStack .feed-container{
  max-height:170px !important;
  display:grid;
  gap:6px;
}

.gameInsightStack .feed-item{
  min-height:48px !important;
  padding:7px 8px !important;
}

.gameInsightStack .feed-message{
  font-size:10px !important;
}

.gamePromoRail{
  order:3;
  width:100%;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px;
  position:static !important;
}

.gamePromoRail .promoPanel{
  min-height:0;
  margin:0;
  border-radius:12px;
}

body.gameRunning .gamePromoRail,
body.gamePaused .gamePromoRail{
  display:none !important;
}

.duelStakePanel{
  margin:0 !important;
  border-radius:12px !important;
}

@media(max-width:1100px){
  .gameMainStage{
    grid-template-columns:minmax(440px,1.2fr) minmax(285px,.8fr);
  }

  .cardPanel.hasCard .cell{
    min-height:62px !important;
    font-size:26px !important;
  }

  .gameMainStage .drawnLatest{
    grid-template-columns:108px 1fr !important;
    min-height:124px !important;
  }

  .gameMainStage .drawnLatest #nextBall.big{
    width:94px !important;
    height:94px !important;
  }

  .gameMainStage .drawnLatest #nextBall.big .ballInner{
    width:52px !important;
    height:52px !important;
    font-size:18px !important;
  }

  .latestBallCaption strong{font-size:30px !important}
  .gameMainStage #drawn{grid-template-columns:repeat(4,minmax(42px,1fr)) !important}
}

@media(max-width:820px){
  .roomInfoStrip{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  .roomInfoStrip div:nth-child(3){
    display:none;
  }

  .gameMainStage{
    display:flex !important;
    flex-direction:column;
    gap:10px;
  }

  .gameMainStage .hero.hero-mini{order:0}
  .gameMainStage .drawnPanel{order:1}
  .gameMainStage .cardPanel{order:2}
  .gameMainStage .duelStakePanel{order:3}

  .gameMainStage .drawnPanel{
    position:static;
  }

  .gameInsightStack{
    grid-template-columns:1fr;
  }

  .gameInsightStack .winner-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .gamePromoRail{
    grid-template-columns:1fr !important;
  }
}

@media(max-width:620px){
  .playWorkspace .container,
  .playWorkspace .container.crypt{
    padding:7px;
  }

  .playWorkspace .hud{
    min-height:48px !important;
  }
  .playWorkspace .brand-text.hudTopRow{
    min-height:46px !important;
  }

  .roomInfoStrip{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:5px;
    padding:6px;
  }

  .roomInfoStrip div{
    min-height:46px;
    padding:7px 8px;
  }

  .roomInfoStrip div:nth-child(3){
    display:none;
  }

  .gameMainStage .hero.hero-mini{
    padding:11px !important;
  }

  .gameMainStage .hero-focus{
    grid-template-columns:1fr !important;
    gap:9px;
  }

  .heroStatusMetrics{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  .gameCardHeader{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    min-height:56px;
    padding:8px;
  }

  .gameCardTitle strong{
    white-space:normal;
    font-size:9px;
  }

  .gameCardTarget{
    min-width:118px;
  }

  .gameCardTarget strong{
    font-size:10px;
  }

  .gameCardDabMode{
    grid-column:1/-1;
    justify-self:start;
  }

  .gameMainStage .drawnPanel{
    position:sticky;
    top:4px;
    z-index:25;
    padding:8px !important;
    border-color:rgba(var(--game-accent-rgb),.34);
    box-shadow:0 12px 28px rgba(0,0,0,.36);
  }

  .drawnPanelTop,
  .ballLane,
  .drawnProgress,
  .drawnHistoryHead,
  .gameMainStage #drawn{
    display:none !important;
  }

  .gameMainStage .drawnLatest{
    min-height:70px !important;
    margin:0;
    padding:7px 9px !important;
    grid-template-columns:62px 1fr !important;
    gap:10px;
    border:0;
    background:transparent;
  }

  .gameMainStage .drawnLatest #nextBall.big{
    width:58px !important;
    height:58px !important;
    border-width:2px !important;
  }

  .gameMainStage .drawnLatest #nextBall.big .ballInner{
    width:34px !important;
    height:34px !important;
    font-size:12px !important;
  }

  .latestBallCaption strong{
    font-size:25px !important;
  }

  .latestBallCaption small{
    display:none;
  }

  .cardPanel.hasCard #cardGrid{
    padding:6px;
    gap:4px !important;
  }

  .cardPanel.hasCard .colHeader{
    min-height:29px !important;
    font-size:14px !important;
  }

  .cardPanel.hasCard .cell{
    min-height:clamp(48px,13vw,59px) !important;
    font-size:clamp(20px,6vw,26px) !important;
    border-radius:7px !important;
  }

  .cardPanel.hasCard .cell.daubed::before{
    width:34px !important;
    height:34px !important;
  }

  .cardPanel .claimBtn{
    min-height:58px;
  }

  .claimButtonCopy strong{font-size:12px}
  .claimButtonCopy small{font-size:8px}

  .gameInsightStack .winner-list{
    grid-template-columns:1fr;
  }

  .gameInsightStack .winner-item{
    min-height:54px !important;
  }
}

@media(max-width:420px){
  .roomInfoStrip{
    grid-template-columns:1fr 1fr !important;
  }

  .gameCardTarget{
    min-width:104px;
  }

  .cardPanel.hasCard .cell{
    min-height:44px !important;
    font-size:20px !important;
  }

  .heroStatusMetrics{
    grid-template-columns:1fr !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .cardPanel .claimBtn,
  .cardPanel.hasCard .cell,
  .ballLane span{
    transition:none;
  }
  .claimBtn.claimReady{
    animation:none !important;
  }
}


/* =========================================================
   V3 polish: Main Hall caller, tighter card, claim + results
   ========================================================= */

.playSurface.gameplayDashboard{
  --hall-gold:#f1c958;
  --hall-gold-rgb:241,201,88;
  --hall-cyan:#52e6d6;
  --hall-violet:#9e5aff;
}

.gameMainStage{
  grid-template-columns:minmax(500px,1.22fr) minmax(360px,.78fr);
  gap:14px;
}

.gameMainStage .cardPanel{
  padding:11px !important;
}

.cardPanel.hasCard #cardGrid{
  padding:8px;
  gap:6px !important;
}

.cardPanel.hasCard .colHeader{
  min-height:34px !important;
  font-size:16px !important;
}

.cardPanel.hasCard .cell{
  min-height:62px !important;
  font-size:27px !important;
}

.cardPanel.hasCard .cell.daubed::before{
  width:40px !important;
  height:40px !important;
}

/* Branded free space for configured/special rooms. */
.srOnly{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.cardPanel.hasCard .cell.freeLogo{
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 45%,rgba(241,201,88,.16),transparent 55%),
    linear-gradient(145deg,rgba(14,43,48,.92),rgba(7,20,29,.97));
  border-color:rgba(241,201,88,.42);
}

.cardPanel.hasCard .cell.freeLogo::before{
  width:46px !important;
  height:46px !important;
  border-color:rgba(241,201,88,.32);
  background:rgba(241,201,88,.06);
}

.freeLogoMark{
  position:relative;
  z-index:3;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    radial-gradient(circle,rgba(255,244,187,.17),rgba(241,201,88,.035) 62%,transparent 64%);
  filter:drop-shadow(0 0 10px rgba(241,201,88,.20));
}

.freeLogoMark img{
  width:33px;
  height:33px;
  object-fit:contain;
}

/* Main Hall-inspired ball tracker: darker vault, gold/cyan trims, richer call state. */
.gameMainStage .drawnPanel{
  padding:13px !important;
  border-color:rgba(241,201,88,.34);
  background:
    linear-gradient(180deg,rgba(5,18,26,.87),rgba(4,15,22,.96)),
    url("/assets/bbb-card-watermark.png") center / cover;
  box-shadow:
    0 18px 48px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 0 0 1px rgba(82,230,214,.035);
}

.gameMainStage .drawnPanel::before{
  content:"";
  position:absolute;
  inset:0 16px auto;
  height:2px;
  border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,transparent,var(--hall-gold),var(--hall-cyan),var(--hall-violet),transparent);
  opacity:.85;
  pointer-events:none;
}

.drawnPanelTop{
  padding:3px 2px 10px;
  border-bottom:1px solid rgba(241,201,88,.14);
}

.drawnPanelTop .panelEyebrow{
  color:var(--hall-gold) !important;
  letter-spacing:.13em;
}

.drawnPanelTop .panelTitle{
  margin-top:3px;
  color:#fff9e7;
  font-size:19px !important;
}

.drawnLatestLabel{
  padding:5px 8px;
  border:1px solid rgba(82,230,214,.20);
  border-radius:999px;
  color:#92f4ea !important;
  background:rgba(82,230,214,.05);
}

.ballLane{
  margin:10px 0 8px;
}

.ballLane span{
  position:relative;
  min-height:44px !important;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}

.ballLane span::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:4px;
  height:2px;
  border-radius:2px;
  opacity:.45;
}

.ballLane span[data-lane="b"]::after{background:#2096e7}
.ballLane span[data-lane="i"]::after{background:#9950de}
.ballLane span[data-lane="n"]::after{background:#2cbf7b}
.ballLane span[data-lane="g"]::after{background:#f1c958}
.ballLane span[data-lane="o"]::after{background:#ec655a}

.ballLane span.active{
  color:#fff;
  border-color:rgba(241,201,88,.56);
  background:
    radial-gradient(circle at 50% 20%,rgba(241,201,88,.14),transparent 62%),
    rgba(255,255,255,.04);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 0 20px rgba(241,201,88,.13);
}

.gameMainStage .drawnLatest{
  min-height:164px !important;
  grid-template-columns:144px minmax(0,1fr) !important;
  border-color:rgba(241,201,88,.17);
  background:
    radial-gradient(circle at 23% 48%,rgba(82,230,214,.09),transparent 32%),
    linear-gradient(135deg,rgba(6,21,31,.94),rgba(5,15,22,.95));
}

.gameMainStage .drawnLatest::after{
  content:"MAIN HALL CALLER";
  position:absolute;
  right:11px;
  bottom:9px;
  color:rgba(241,201,88,.38);
  font-size:7px;
  font-weight:1000;
  letter-spacing:.16em;
}

.gameMainStage .drawnLatest #nextBall.big{
  width:126px !important;
  height:126px !important;
  border:4px solid rgba(255,255,255,.92) !important;
  outline:1px solid rgba(241,201,88,.42);
  outline-offset:4px;
  box-shadow:
    0 18px 38px rgba(0,0,0,.42),
    0 0 0 9px rgba(82,230,214,.035),
    0 0 0 16px rgba(241,201,88,.025),
    0 0 34px rgba(82,230,214,.12),
    inset 0 2px 0 rgba(255,255,255,.24);
}

.latestBallCaption span{
  color:#92f4ea !important;
}

.latestBallCaption strong{
  color:#fff4bc !important;
  text-shadow:0 0 18px rgba(241,201,88,.13);
}

.gameMainStage .drawnProgress{
  padding:3px 1px 1px;
}

.gameMainStage .heroProgress{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  border-radius:999px;
  background:rgba(0,0,0,.30);
}

.gameMainStage .heroProgress > div{
  background:linear-gradient(90deg,#52e6d6,#9e5aff 44%,#f1c958 72%,#f29a57);
  box-shadow:0 0 16px rgba(241,201,88,.18);
}

.drawnHistoryHead{
  color:#92a9b0;
}

.gameMainStage #drawn{
  max-height:220px !important;
  grid-template-columns:repeat(5,minmax(50px,1fr)) !important;
  gap:8px !important;
  padding:10px !important;
  border-color:rgba(241,201,88,.10);
  background:rgba(1,8,13,.48);
}

.gameMainStage .ball.small{
  width:44px !important;
  height:44px !important;
  border:2px solid rgba(255,255,255,.18);
  font-size:11px !important;
  box-shadow:0 8px 16px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.16);
}

/* Claim button: smaller, stronger and less empty. */
.cardPanel .claimRow{
  margin-top:8px !important;
}

.cardPanel .claimBtn{
  width:auto;
  min-width:250px;
  max-width:330px;
  min-height:48px;
  margin:0 auto;
  padding:6px 16px !important;
  gap:9px !important;
  border-color:rgba(82,230,214,.40) !important;
  border-radius:999px !important;
  color:#f2ffff;
  background:
    linear-gradient(135deg,rgba(15,126,130,.94),rgba(18,84,103,.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 10px 24px rgba(0,0,0,.25),
    0 0 20px rgba(82,230,214,.08) !important;
}

.cardPanel .claimBtn:disabled{
  opacity:.62;
  background:
    linear-gradient(135deg,rgba(26,68,76,.90),rgba(15,42,52,.94)) !important;
}

.cardPanel .claimBtn .claimButtonMark{
  width:30px;
  height:30px;
  border-color:rgba(255,255,255,.22);
  color:#edffff;
  background:rgba(255,255,255,.08);
  font-size:14px;
}

.claimButtonCopy{
  gap:0;
}

.claimButtonCopy strong{
  font-size:12px;
}

.claimButtonCopy small{
  color:#b3d4d7;
  font-size:8px;
}

.cardPanel .claimBtn.claimReady{
  color:#151207;
  border-color:rgba(255,229,139,.88) !important;
  background:
    linear-gradient(135deg,#f7d75e,#ef9e3f) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 0 0 1px rgba(241,201,88,.20),
    0 0 30px rgba(241,201,88,.24),
    0 12px 28px rgba(0,0,0,.30) !important;
}

.cardPanel .claimBtn.claimReady .claimButtonMark{
  color:#161005;
  border-color:rgba(22,16,5,.18);
  background:rgba(255,255,255,.26);
}

.cardPanel .claimBtn.claimReady .claimButtonCopy strong,
.cardPanel .claimBtn.claimReady .claimButtonCopy small{
  color:#1d1608;
}

/* Winning Claims: premium result tiles rather than plain rows. */
.gameInsightStack .winners{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 0%,rgba(241,201,88,.09),transparent 42%),
    linear-gradient(180deg,rgba(8,25,35,.97),rgba(5,17,25,.97));
}

.gameInsightStack .winners::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 0 40px rgba(241,201,88,.025);
}

.gameInsightStack .winners .panelHeading{
  padding-bottom:9px;
  border-bottom:1px solid rgba(241,201,88,.14);
}

.gameInsightStack .winners .panelHeading span{
  color:var(--hall-gold) !important;
}

.gameInsightStack .winner-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.gameInsightStack .winner-item{
  position:relative;
  min-height:82px !important;
  padding:10px !important;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.085);
  border-radius:11px !important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}

.gameInsightStack .winner-item::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--hall-gold),var(--hall-cyan));
  opacity:.35;
}

.winner-badge{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(241,201,88,.24);
  border-radius:50%;
  color:#e8cf79;
  background:rgba(241,201,88,.07);
  font-size:9px;
  font-weight:1000;
}

.gameInsightStack .winner-copy{
  min-width:0;
}

.gameInsightStack .winner-label{
  color:#f8fbfc;
  font-size:12px !important;
}

.gameInsightStack .winner-state{
  margin-top:2px;
  color:#6f8b94;
  font-size:7px !important;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.gameInsightStack .winner-value{
  min-width:48px;
  padding:5px 7px;
  border:1px solid rgba(241,201,88,.14);
  border-radius:999px;
  color:#d6c57f;
  background:rgba(241,201,88,.05);
  font-size:9px !important;
  text-align:center;
}

.gameInsightStack .winner-item.hasWinner{
  border-color:rgba(241,201,88,.42);
  background:
    radial-gradient(circle at 84% 20%,rgba(241,201,88,.13),transparent 44%),
    linear-gradient(145deg,rgba(48,40,14,.54),rgba(11,25,31,.94));
  box-shadow:0 0 24px rgba(241,201,88,.08);
  animation:winnerTileArrive .5s cubic-bezier(.2,.8,.2,1);
}

.gameInsightStack .winner-item.hasWinner::before{
  opacity:1;
  width:4px;
}

.gameInsightStack .winner-item.hasWinner .winner-badge{
  color:#181205;
  border-color:#f1c958;
  background:linear-gradient(145deg,#ffe88a,#d9a72e);
  box-shadow:0 0 18px rgba(241,201,88,.20);
}

.gameInsightStack .winner-item.hasWinner .winner-value{
  color:#201706;
  border-color:#e6bd4f;
  background:linear-gradient(145deg,#ffe991,#dcae38);
  font-weight:1000;
}

@keyframes winnerTileArrive{
  from{opacity:.25;transform:translateY(4px) scale(.985)}
  to{opacity:1;transform:none}
}

/* Live feed: denser event console with stronger event taxonomy. */
.gameInsightStack .live-feed{
  background:
    radial-gradient(circle at 98% 0%,rgba(82,230,214,.055),transparent 42%),
    linear-gradient(180deg,rgba(7,23,33,.97),rgba(5,17,25,.97));
}

.gameInsightStack .live-feed .panelHeading{
  padding-bottom:9px;
  border-bottom:1px solid rgba(82,230,214,.11);
}

.gameInsightStack .feed-container{
  max-height:190px !important;
  gap:5px;
}

.gameInsightStack .feed-item{
  min-height:44px !important;
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:8px;
  padding:7px 8px !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.026);
}

.gameInsightStack .feed-icon{
  width:27px;
  height:27px;
  font-size:9px;
}

.gameInsightStack .feed-message{
  font-size:10px !important;
  line-height:1.4;
}

.gameInsightStack .feed-item time{
  color:#68828c;
  font-size:7px !important;
}

@media(max-width:1100px){
  .gameMainStage{
    grid-template-columns:minmax(460px,1.16fr) minmax(320px,.84fr);
  }
  .cardPanel.hasCard .cell{
    min-height:56px !important;
    font-size:25px !important;
  }
  .gameMainStage #drawn{
    grid-template-columns:repeat(4,minmax(48px,1fr)) !important;
  }
}

@media(max-width:820px){
  .gameMainStage{
    display:flex !important;
  }

  .gameMainStage .drawnPanel{
    order:1;
  }

  .gameMainStage .cardPanel{
    order:2;
  }

  .gameInsightStack .winner-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .gameMainStage .drawnPanel{
    background:
      linear-gradient(180deg,rgba(5,18,26,.95),rgba(4,15,22,.98)),
      url("/assets/bbb-card-watermark.png") center / cover;
  }

  .cardPanel.hasCard .cell{
    min-height:46px !important;
    font-size:21px !important;
  }

  .cardPanel .claimBtn{
    min-width:220px;
    max-width:280px;
    min-height:46px;
  }

  .gameCardHeader{
    margin-bottom:7px;
  }

  .freeLogoMark{
    width:34px;
    height:34px;
  }

  .freeLogoMark img{
    width:27px;
    height:27px;
  }
}


/* =========================================================
   V4 polish: compact status, tighter caller, richer claim CTA
   ========================================================= */

/* Compact the Game Status panel and keep the important actions centred. */
.gameMainStage > .hero.hero-mini{
  width:min(940px,100%);
  justify-self:center;
  padding:10px 12px !important;
}

.gameMainStage .hero-focus{
  grid-template-columns:minmax(360px,1fr) minmax(210px,250px) !important;
  gap:12px;
}

.gameMainStage .hero-status{
  max-width:560px;
  justify-self:center;
  width:100%;
}

.heroStatusContext{
  text-align:center !important;
  justify-items:center;
}

.heroStatusContext small{
  max-width:520px !important;
  text-align:center;
}

.heroStatusMetrics{
  width:min(460px,100%);
  justify-self:center;
}

.gameMainStage .heroStatusStack{
  width:min(250px,100%);
  justify-self:center;
}

.gameMainStage .heroStatus{
  min-height:42px;
  padding:8px 10px;
  border-radius:999px;
  font-size:11px;
}

.gameMainStage .hero-actions #joinBtnCard::before,
.gameMainStage .registeredBtn{
  min-height:42px !important;
  border-radius:999px !important;
}

/* Let the free-space art fill the square more naturally. */
.cardPanel.hasCard .cell.freeLogo{
  display:grid;
  place-items:center;
}

.cardPanel.hasCard .cell.freeLogo::before{
  width:52px !important;
  height:52px !important;
}

.freeLogoMark{
  width:54px;
  height:54px;
  border-radius:10px;
  background:
    radial-gradient(circle at 50% 46%,rgba(255,244,187,.15),transparent 62%),
    rgba(241,201,88,.035);
  filter:drop-shadow(0 0 13px rgba(241,201,88,.22));
}

.freeLogoMark img{
  width:48px;
  height:48px;
  max-width:88%;
  max-height:88%;
  object-fit:contain;
  object-position:center;
}

/* Tighten the live caller so the ball + number read as one centred unit. */
.gameMainStage .drawnLatest{
  min-height:146px !important;
  grid-template-columns:126px 112px !important;
  justify-content:center;
  align-items:center;
  gap:18px;
  padding:10px 12px !important;
}

.gameMainStage .drawnLatest #nextBall.big{
  width:112px !important;
  height:112px !important;
  margin:0 !important;
}

.gameMainStage .drawnLatest #nextBall.big .ballInner{
  width:62px !important;
  height:62px !important;
}

.latestBallCaption{
  width:112px;
  justify-self:start;
  text-align:left;
}

.latestBallCaption span{
  display:block;
  margin-bottom:4px;
}

.latestBallCaption strong{
  display:block;
  font-size:34px !important;
  line-height:.95;
}

.latestBallCaption small{
  display:block;
  margin-top:5px;
  line-height:1.25;
}

.gameMainStage .drawnLatest::after{
  left:50%;
  right:auto;
  bottom:7px;
  transform:translateX(-50%);
  white-space:nowrap;
}

.ballLane{
  max-width:420px;
  margin:9px auto 8px;
}

.gameMainStage .drawnProgress{
  max-width:440px;
  margin:8px auto 0;
}

.drawnHistoryHead,
.gameMainStage #drawn{
  max-width:440px;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Turn Claim Bingo into a real action control again, without making it huge. */
.cardPanel .claimBtn{
  position:relative;
  min-width:292px;
  max-width:350px;
  min-height:52px;
  overflow:hidden;
  padding:5px 17px 5px 7px !important;
  gap:10px !important;
  border:1px solid rgba(82,230,214,.62) !important;
  background:
    radial-gradient(circle at 12% 50%,rgba(255,255,255,.11),transparent 23%),
    linear-gradient(135deg,#0a7f83 0%,#0e6176 52%,#153d58 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.17),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 12px 28px rgba(0,0,0,.30),
    0 0 22px rgba(82,230,214,.11) !important;
}

.cardPanel .claimBtn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,transparent 22%,rgba(255,255,255,.16) 42%,transparent 61%);
  transform:translateX(-120%);
  pointer-events:none;
}

.cardPanel .claimBtn:not(:disabled):hover::before{
  animation:claimSweep .75s ease;
}

.claimButtonArt{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:none;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  background:
    radial-gradient(circle,rgba(255,255,255,.16),rgba(255,255,255,.035) 62%,transparent 64%);
  box-shadow:0 0 15px rgba(82,230,214,.16);
}

.claimButtonArt img{
  width:48px;
  height:48px;
  object-fit:cover;
  object-position:center;
  transform:scale(1.03);
}

.claimButtonCopy{
  min-width:0;
}

.claimButtonCopy strong{
  font-size:12px;
  letter-spacing:.09em;
  text-shadow:0 1px 0 rgba(0,0,0,.25);
}

.claimButtonCopy small{
  margin-top:1px;
  color:#c5e6e8;
}

.claimButtonSpark{
  margin-left:auto;
  color:#9df8ee;
  font-size:13px;
  opacity:.72;
  text-shadow:0 0 12px rgba(82,230,214,.35);
}

.cardPanel .claimBtn:disabled .claimButtonArt{
  filter:saturate(.62);
  opacity:.72;
}

.cardPanel .claimBtn.claimReady{
  min-width:310px;
  border-color:#ffe483 !important;
  background:
    radial-gradient(circle at 12% 50%,rgba(255,255,255,.38),transparent 24%),
    linear-gradient(135deg,#ffdf62 0%,#f1b43e 48%,#e68235 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 0 1px rgba(241,201,88,.22),
    0 0 34px rgba(241,201,88,.28),
    0 14px 30px rgba(0,0,0,.34) !important;
  animation:claimReadyPulse 1.2s ease-in-out infinite;
}

.cardPanel .claimBtn.claimReady .claimButtonArt{
  border-color:rgba(62,40,5,.26);
  background:rgba(255,255,255,.30);
  box-shadow:0 0 20px rgba(255,239,159,.42);
}

.cardPanel .claimBtn.claimReady .claimButtonSpark{
  color:#372203;
  opacity:1;
  animation:claimSpark .8s ease-in-out infinite alternate;
}

@keyframes claimSweep{
  to{transform:translateX(120%)}
}

@keyframes claimReadyPulse{
  0%,100%{transform:scale(1);filter:brightness(1)}
  50%{transform:scale(1.018);filter:brightness(1.08)}
}

@keyframes claimSpark{
  from{transform:rotate(-8deg) scale(.9)}
  to{transform:rotate(8deg) scale(1.18)}
}

@media(max-width:900px){
  .gameMainStage > .hero.hero-mini{
    width:100%;
  }
}

@media(max-width:820px){
  .gameMainStage .hero-focus{
    grid-template-columns:1fr !important;
  }

  .gameMainStage .hero-status,
  .gameMainStage .heroStatusStack{
    width:100%;
    max-width:none;
  }

  .gameMainStage .drawnLatest{
    grid-template-columns:112px 108px !important;
    gap:14px;
  }
}

@media(max-width:620px){
  .gameMainStage > .hero.hero-mini{
    padding:8px !important;
  }

  .heroStatusContext small{
    font-size:10px !important;
  }

  .gameMainStage .heroStatus{
    min-height:38px;
    font-size:10px;
  }

  .freeLogoMark{
    width:42px;
    height:42px;
  }

  .freeLogoMark img{
    width:38px;
    height:38px;
  }

  .gameMainStage .drawnLatest{
    grid-template-columns:58px minmax(0,1fr) !important;
    justify-content:stretch;
    gap:9px;
  }

  .gameMainStage .drawnLatest #nextBall.big{
    width:56px !important;
    height:56px !important;
  }

  .latestBallCaption{
    width:auto;
  }

  .gameMainStage .drawnLatest::after{
    display:none;
  }

  .cardPanel .claimBtn,
  .cardPanel .claimBtn.claimReady{
    min-width:min(285px,100%);
    max-width:100%;
    min-height:50px;
  }

  .claimButtonArt{
    width:38px;
    height:38px;
  }

  .claimButtonArt img{
    width:44px;
    height:44px;
  }
}

@media(prefers-reduced-motion:reduce){
  .cardPanel .claimBtn.claimReady,
  .cardPanel .claimBtn.claimReady .claimButtonSpark,
  .cardPanel .claimBtn:not(:disabled):hover::before{
    animation:none !important;
  }
}


/* =========================================================
   V5 polish: aligned caller, neon free crown, result spotlight
   ========================================================= */

/* Remove the legacy full-panel pulse rings; they were centred on the
   container rather than the physical ball and could drift visually. */
.gameMainStage .drawnLatest .drawPulse{
  display:none !important;
}

.gameMainStage .drawnLatest{
  min-height:150px !important;
  grid-template-columns:118px 96px !important;
  justify-content:center !important;
  justify-items:center;
  align-items:center;
  column-gap:20px;
  padding:18px 16px 12px !important;
}

.gameMainStage .drawnLatest #nextBall.big{
  grid-column:1 !important;
  justify-self:center !important;
  align-self:center !important;
  width:110px !important;
  height:110px !important;
  margin:0 !important;
  isolation:isolate;
}

.gameMainStage .drawnLatest #nextBall.big::before,
.gameMainStage .drawnLatest #nextBall.big::after{
  content:"";
  position:absolute;
  inset:-10px;
  z-index:-1;
  border:1px solid rgba(82,230,214,.28);
  border-radius:50%;
  pointer-events:none;
}

.gameMainStage .drawnLatest #nextBall.big::after{
  inset:-18px;
  border-color:rgba(241,201,88,.16);
}

body.gameRunning .gameMainStage .drawnLatest #nextBall.big::before{
  animation:callerRingOne 2.15s ease-out infinite;
}

body.gameRunning .gameMainStage .drawnLatest #nextBall.big::after{
  animation:callerRingTwo 2.15s 1.05s ease-out infinite;
}

@keyframes callerRingOne{
  0%{transform:scale(.88);opacity:.65}
  75%,100%{transform:scale(1.16);opacity:0}
}

@keyframes callerRingTwo{
  0%{transform:scale(.92);opacity:.42}
  75%,100%{transform:scale(1.13);opacity:0}
}

.gameMainStage .drawnLatest::after{
  display:none !important;
}

.latestBallCaption{
  grid-column:2 !important;
  width:96px !important;
  justify-self:center !important;
  align-self:center;
  text-align:center;
}

.latestBallCaption span,
.latestBallCaption strong,
.latestBallCaption small{
  text-align:center;
}

.latestBallCaption strong{
  font-size:32px !important;
}

.latestBallCaption small{
  max-width:94px;
  margin-left:auto;
  margin-right:auto;
}

.gameMainStage .drawnLatest #nextBall.big .ballInner{
  display:flex !important;
  align-items:center;
  justify-content:center;
  margin:0 !important;
}

/* Neon Bingo Crypt crown for the special-game free square. */
.cardPanel.hasCard .cell.freeLogo.daubed::before,
.cardPanel.hasCard .cell.freeLogo.daubed::after{
  display:none !important;
}

.cardPanel.hasCard .cell.freeLogo{
  border-color:rgba(83,244,255,.40);
  background:
    radial-gradient(circle at 50% 47%,rgba(83,244,255,.12),transparent 49%),
    radial-gradient(circle at 50% 55%,rgba(207,92,255,.09),transparent 68%),
    linear-gradient(145deg,rgba(8,31,42,.97),rgba(5,15,24,.98));
  box-shadow:
    inset 0 0 0 1px rgba(83,244,255,.07),
    0 0 18px rgba(83,244,255,.08);
}

.freeLogoMark{
  width:60px !important;
  height:54px !important;
  display:grid;
  place-items:center;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  filter:none !important;
}

.freeNeonCrown{
  width:54px;
  height:44px;
  overflow:visible;
  filter:
    drop-shadow(0 0 4px rgba(83,244,255,.90))
    drop-shadow(0 0 10px rgba(83,244,255,.40))
    drop-shadow(0 0 14px rgba(207,92,255,.26));
}

body.gameRunning .freeNeonCrown{
  animation:freeCrownGlow 2.2s ease-in-out infinite;
}

@keyframes freeCrownGlow{
  0%,100%{filter:drop-shadow(0 0 4px rgba(83,244,255,.78)) drop-shadow(0 0 10px rgba(207,92,255,.20))}
  50%{filter:drop-shadow(0 0 7px rgba(83,244,255,1)) drop-shadow(0 0 16px rgba(207,92,255,.42))}
}

/* Single-target games get a full result card instead of a cramped one-third tile. */
.gameInsightStack .winner-list.singleClaim{
  grid-template-columns:1fr !important;
}

.gameInsightStack .winner-list.singleClaim .winner-item{
  min-height:92px !important;
  grid-template-columns:48px minmax(150px,1fr) minmax(180px,auto);
  gap:13px;
  padding:13px 14px !important;
}

.gameInsightStack .winner-list.singleClaim .winner-badge{
  width:44px;
  height:44px;
  font-size:12px;
}

.gameInsightStack .winner-value{
  display:grid;
  gap:2px;
  min-width:0;
  max-width:none;
  padding:7px 10px;
  border-radius:9px;
  text-align:left;
}

.gameInsightStack .winner-value span{
  color:#8a9da3;
  font-size:7px;
  font-weight:1000;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.gameInsightStack .winner-value strong{
  max-width:none;
  overflow:visible;
  color:inherit;
  font-size:11px;
  line-height:1.2;
  text-overflow:clip;
  white-space:normal;
}

.gameInsightStack .winner-item.hasWinner .winner-value span{
  color:rgba(34,23,5,.66);
}

.gameInsightStack .winner-item.hasWinner .winner-value strong{
  font-size:12px;
  font-weight:1000;
}

.gameInsightStack .winners.hasVerifiedWinner{
  border-color:rgba(241,201,88,.46);
  box-shadow:
    0 16px 36px rgba(0,0,0,.22),
    0 0 28px rgba(241,201,88,.07),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.gameInsightStack .winners.hasVerifiedWinner .panelHeading small{
  color:#f7d86f;
  border-color:rgba(241,201,88,.24);
  background:rgba(241,201,88,.07);
}

.gameInsightStack .feed-item.win{
  border-color:rgba(241,201,88,.34) !important;
  background:
    linear-gradient(90deg,rgba(241,201,88,.10),rgba(82,230,214,.045)) !important;
  box-shadow:inset 3px 0 0 rgba(241,201,88,.82);
}

.gameInsightStack .feed-item.win .feed-icon{
  color:#171105;
  border-color:#eac14b;
  background:linear-gradient(145deg,#ffe989,#d8a62c);
  box-shadow:0 0 15px rgba(241,201,88,.14);
}

.gameInsightStack .feed-item.win .feed-message{
  color:#fff4c2;
  font-weight:850;
}

@media(max-width:820px){
  .gameMainStage .drawnLatest{
    grid-template-columns:110px 92px !important;
    column-gap:14px;
  }

  .gameInsightStack .winner-list.singleClaim .winner-item{
    grid-template-columns:42px minmax(120px,1fr) minmax(150px,auto);
  }
}

@media(max-width:620px){
  .gameMainStage .drawnLatest{
    grid-template-columns:58px minmax(0,1fr) !important;
    justify-content:stretch !important;
    column-gap:10px;
    padding:7px 9px !important;
  }

  .gameMainStage .drawnLatest #nextBall.big{
    width:56px !important;
    height:56px !important;
  }

  .gameMainStage .drawnLatest #nextBall.big::before,
  .gameMainStage .drawnLatest #nextBall.big::after{
    display:none;
  }

  .latestBallCaption{
    width:auto !important;
    justify-self:start !important;
    text-align:left;
  }

  .latestBallCaption span,
  .latestBallCaption strong,
  .latestBallCaption small{
    text-align:left;
  }

  .freeLogoMark{
    width:46px !important;
    height:40px !important;
  }

  .freeNeonCrown{
    width:42px;
    height:34px;
  }

  .gameInsightStack .winner-list.singleClaim .winner-item{
    grid-template-columns:38px minmax(0,1fr);
    gap:9px;
  }

  .gameInsightStack .winner-list.singleClaim .winner-value{
    grid-column:1 / -1;
    margin-top:3px;
  }
}

@media(prefers-reduced-motion:reduce){
  body.gameRunning .gameMainStage .drawnLatest #nextBall.big::before,
  body.gameRunning .gameMainStage .drawnLatest #nextBall.big::after,
  body.gameRunning .freeNeonCrown{
    animation:none !important;
  }
}

/* Player calls and signed prize settlement. */
.tgControls, .duelSettlementRow { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px; }
.tgControls span { margin-right:auto; color:#a6c2c6; font-size:12px; }
.tgControls button, .duelSettlementRow button { border:1px solid #c0a849; border-radius:999px; background:#203529; color:#ffdf77; padding:8px 14px; cursor:pointer; }
.tgControls button:disabled { opacity:.35; cursor:default; }
.duelSettlementRow { border-top:1px solid #365043; font-size:12px; }
.duelSettlementRow span { flex:1; overflow-wrap:anywhere; }
.gameInsightStack .winner-list:not(.singleClaim) .winner-item {
  grid-template-columns:30px minmax(0,1fr) !important;
  grid-template-rows:auto auto;
  gap:8px !important;
}
.gameInsightStack .winner-list:not(.singleClaim) .winner-copy { min-width:0; }
.gameInsightStack .winner-list:not(.singleClaim) .winner-value { grid-column:1 / -1; width:100%; box-sizing:border-box; }

.joinWalletReminder { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 16px 12px; padding:12px 14px; border:1px solid #8e793c; border-radius:12px; background:#172c2b; color:#bfd4d5; font-size:12px; }
.joinWalletReminder[hidden] { display:none; }
.joinWalletReminder span { flex:1; min-width:160px; }
.joinWalletReminder strong { display:block; margin-bottom:4px; color:#ffe38d; }
.joinWalletReminder button, .joinWalletPromptActions button { border:1px solid #ae9746; border-radius:999px; padding:10px 16px; background:#253e35; color:#ffe38d; cursor:pointer; }
.joinWalletPrompt { max-width:640px; margin:auto; padding:24px; color:#c4d9db; line-height:1.6; }
.joinWalletPrompt h2 { color:#fff1bc; font-size:clamp(20px,4vw,28px); line-height:1.2; }
.joinWalletPromptActions { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0 14px; }
.joinWalletPromptActions button:first-child { background:#ddbe57; color:#152521; font-weight:800; }
.joinWalletPrompt small { display:block; color:#9cb7ba; }
