/* Fluid sizing and zoom-safe breakpoints for the dice and Verify ID pages. */
*,*::before,*::after{box-sizing:border-box}
html{min-width:0;overflow-x:hidden}
body{min-width:0;max-width:100%;zoom:1!important;overflow-x:hidden}
.page-shell{width:100%;max-width:1440px;margin-inline:auto;padding-inline:clamp(12px,2vw,26px)}
.topbar{width:100%;min-width:0;flex-wrap:wrap;gap:8px}
.site-banner{min-width:0}
.site-banner img{max-width:100%;height:auto}
.game-layout{width:min(100%,970px);max-width:970px;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr);gap:clamp(8px,1vw,12px)}
.vip-panel,.roller-card,.history-section,.vip-login-section{min-width:0;max-width:100%}
.roller-card{width:100%;overflow-wrap:anywhere}
.vip-list,.vip-card,.vip-copy{min-width:0;max-width:100%}
.vip-copy strong,.vip-copy small{overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}
.dice-stage{min-width:0;max-width:100%;flex-wrap:wrap}
.verify-id-strip{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.verify-id-strip>span,.verify-id-strip code{min-width:0;overflow-wrap:anywhere}
.history-section{width:min(100%,430px)!important;max-width:430px!important}
.history-heading{min-width:0}
.history-heading h2{font-size:clamp(18px,2.2vw,27px);overflow-wrap:anywhere}
.roll-history,.history-item,.history-main,.history-colors{min-width:0;max-width:100%}
.history-colors{flex-wrap:wrap}
.history-time{min-width:0;overflow-wrap:anywhere}
.verify-card{width:100%;max-width:660px;min-width:0}
.input-row{min-width:0}
.input-row input{min-width:0;width:100%}
.verified-roll-list,.verified-roll-list li{min-width:0;max-width:100%}
.verified-roll-list li{flex-wrap:wrap;overflow-wrap:anywhere}
.verified-roll-list time{max-width:100%;overflow-wrap:anywhere}

@media(max-width:980px){
  .game-layout{width:min(100%,760px);max-width:760px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .roller-card{grid-column:1/-1;grid-row:1;width:min(100%,520px);max-width:520px;justify-self:center}
  .history-section{width:min(100%,520px)!important;max-width:520px!important}
}

@media(max-width:640px){
  .page-shell{padding-inline:12px}
  .topbar{height:auto;min-height:42px}
  .game-layout{width:min(100%,470px);max-width:470px;grid-template-columns:minmax(0,1fr);gap:10px}
  .roller-card{grid-column:1;grid-row:1;width:100%;max-width:none;min-height:0;padding:17px 13px}
  .vip-panel{width:100%;min-height:0}
  .vip-list{grid-template-columns:1fr}
  .history-section{width:100%!important;max-width:470px!important;padding:13px 11px 16px}
  .dice-stage{gap:clamp(5px,2vw,9px);padding-inline:0}
  .dice-stage>.die{width:clamp(48px,15vw,80px);height:clamp(48px,15vw,80px);border-width:5px}
  .dice-stage>.die::after{width:clamp(9px,3vw,14px);height:clamp(9px,3vw,14px)}
  .controls{flex-wrap:wrap}
  .roll-button#roll-button{max-width:100%}
  .dice-counter-controls{grid-template-columns:minmax(48px,60px) minmax(0,1fr) minmax(48px,60px)}
  .history-item{gap:5px}
  .history-colors{gap:4px}
  .history-color{width:clamp(22px,7vw,28px);height:clamp(22px,7vw,28px)}
  .input-row{flex-direction:column}
  .input-row .roll-button{width:100%;min-width:0}
  .verify-card{padding:clamp(14px,4vw,20px)}
}

@media(max-width:360px){
  .brand{font-size:16px}
  .ad-free{font-size:9px}
  .history-count{font-size:9px;padding:4px 6px}
  .history-heading{gap:5px}
  .history-roll-title{width:18px}
  .site-banner{margin-top:4px}
}
