/* After Dark Studios - shared online game layout v225.
   The game-specific styles still own board geometry, tiles/cards/pieces and animations.
   Shared shell/row classes own layout; load last on playable pages only. */
.ads-game-section-v225.section,
#play.ads-game-section-v225.section {
  box-sizing:border-box!important;
  width:100%!important;max-width:1240px!important;
  margin:.3rem auto 0!important;padding:.12rem clamp(.35rem,1vw,.8rem) .4rem!important;
}
.ads-game-section-v225.ads-game-compact-v225.section,
#play.ads-game-section-v225.ads-game-compact-v225.section {max-width:860px!important}
.ads-game-layout-v225.card {
  box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:.45rem!important;min-width:0!important;
  border:1px solid rgba(110,233,255,.2)!important;border-radius:1rem!important;
  background:linear-gradient(180deg,rgba(9,25,48,.95),rgba(3,12,27,.985))!important;
  box-shadow:0 12px 38px rgba(0,0,0,.24)!important;
  transform:none!important;
}
.ads-game-layout-v225.card:not(.is-ads-game-display-active-v125) {
  width:100%!important;max-width:1200px!important;
  margin:0 auto!important;padding:clamp(.4rem,1.2vw,.8rem)!important;
}
.ads-game-layout-v225.ads-game-compact-v225.card:not(.is-ads-game-display-active-v125) {max-width:820px!important}
/* DOM order matches visual and keyboard order. Retire per-game visual reordering. */
.ads-game-layout-v225 > .ads-game-row-v225 {order:0!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.ads-game-layout-v225 > .ads-game-controls-v225 {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
  width:100%!important;gap:.35rem!important;margin:0!important;padding:0!important;
}
.ads-game-layout-v225 .ads-game-controls-v225 > .button {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;
  min-height:40px!important;margin:0!important;padding:.45rem .75rem!important;
  border-radius:.65rem!important;font-size:.82rem!important;font-weight:700!important;line-height:1.15!important;
  text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.ads-game-layout-v225 .ads-game-controls-v225 > .button:not(.secondary) {
  color:#fff!important;background:linear-gradient(135deg,#187de0,#394dce)!important;
  border:1px solid rgba(110,233,255,.52)!important;
}
.ads-game-layout-v225 .ads-game-controls-v225 > .button.secondary {
  color:#eef8ff!important;background:rgba(8,20,40,.88)!important;border:1px solid rgba(110,233,255,.28)!important;
}
.ads-game-layout-v225 .ads-game-controls-v225 > .button:disabled {opacity:.45!important;cursor:not-allowed!important;transform:none!important}
.ads-game-layout-v225 .ads-game-controls-v225 > .button:focus-visible {outline:2px solid #6ee9ff!important;outline-offset:2px!important}
.ads-game-layout-v225 > .ads-game-board-v225 {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0 auto!important;padding:clamp(.3rem,.8vw,.55rem)!important;
  border:1px solid rgba(110,233,255,.16)!important;border-radius:.85rem!important;
  background:radial-gradient(circle at 50% 25%,rgba(29,140,255,.12),transparent 70%),#061222!important;
  box-shadow:inset 0 0 24px rgba(0,0,0,.25)!important;
}
.ads-game-layout-v225 > .ads-game-status-v225 {
  width:100%!important;min-height:1.2em!important;margin:0!important;
  text-align:center!important;font-size:.82rem!important;line-height:1.3!important;
}
.ads-game-layout-v225 > .free-chess-topline-v176 {justify-content:center!important;flex-wrap:wrap!important;gap:.4rem!important}
.ads-game-layout-v225 > .ads-game-meta-v225 {
  display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;
  width:100%!important;gap:.4rem!important;margin:0!important;text-align:center!important;
}
.ads-game-layout-v225 > .ads-game-meta-v225 > div:first-child {min-width:0!important;justify-content:center!important;text-align:center!important;flex-wrap:wrap!important}
.ads-game-layout-v225 .ads-game-meta-v225 h2 {white-space:normal!important;font-size:.94rem!important;margin:0!important}
.ads-game-layout-v225 .ads-game-live-v225 {display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:.3rem!important;min-width:0!important;max-width:100%!important}
.ads-game-layout-v225 .ads-game-live-v225 > span {min-width:64px!important;padding:.3rem .5rem!important;border-radius:.5rem!important;white-space:normal!important}
.ads-game-layout-v225 .ads-game-live-v225 small {font-size:.58rem!important;letter-spacing:.02em!important}
.ads-game-layout-v225 .ads-game-live-v225 strong {font-size:.82rem!important}
.ads-game-layout-v225 > .ads-game-mode-v225 {
  display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:.25rem!important;
  width:auto!important;max-width:100%!important;align-self:center!important;margin:0 auto!important;padding:.18rem!important;
}
.ads-game-layout-v225 .ads-game-mode-v225 button {min-height:36px!important;white-space:normal!important;padding:.35rem .65rem!important;font-size:.78rem!important;line-height:1.15!important}
.ads-game-layout-v225 > .ads-game-banner-v225 {max-width:100%!important;align-self:center!important;margin:0 auto!important;flex-wrap:wrap!important;justify-content:center!important}
.ads-game-layout-v225 > .ads-game-note-v225 {margin:0!important;text-align:center!important}
.ads-game-layout-v225 > .ads-game-input-v225 {margin:0 auto!important}
/* Spider's Deal and foundation slots are game objects, not general toolbar actions. */
.ads-game-layout-v225 .daily-spider-topline-v97 {grid-template-columns:minmax(0,auto) minmax(0,1fr)!important}
/* Fullscreen's fixed exit control and game-specific viewport scaling remain intact. */
.ads-game-layout-v225.is-ads-game-display-active-v125 .ads-game-controls-v225 > .ads-game-fullscreen-toggle-v125 {flex:0 0 auto!important;min-width:48px!important}
/* Hidden daily controls must stay hidden even in older !important flex layouts. */
.ads-game-layout-v225 > .ads-game-row-v225[hidden],
.ads-game-layout-v225 .ads-game-controls-v225 > .button[hidden],
.ads-game-layout-v225 .ads-game-mode-v225 button[hidden],
.ads-game-layout-v225 .ads-game-banner-v225 [hidden] {display:none!important}
@media(max-width:620px){
  .ads-game-layout-v225.card {gap:.35rem!important}
  .ads-game-layout-v225 .ads-game-controls-v225 > .button {flex:1 1 calc(33.333% - .35rem)!important;min-height:40px!important;padding:.4rem .45rem!important;font-size:.76rem!important}
  .ads-game-layout-v225 .ads-game-controls-v225 > .ads-game-fullscreen-toggle-v125 {white-space:normal!important}
  .ads-game-layout-v225 .ads-game-live-v225 > span {min-width:55px!important;padding:.25rem .35rem!important}
}
@media(pointer:coarse){.ads-game-layout-v225 .ads-game-controls-v225 > .button {min-height:44px!important}}
