/* CASINOIR 0.49.04: scoped replacement for the 0.49.03 UI layer.
 * Main game engines, persisted schemas and blackjack presentation are unchanged.
 * All dimensions use the actual available content box; no hidden right-side rail.
 */
#floor.screen:not(#home).screen--grand-floor{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-width:0!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-topbar{grid-template-columns:40px minmax(0,1fr) auto auto!important;gap:clamp(5px,1vw,12px)!important;max-width:100%!important;min-width:0!important;padding-inline:max(9px,env(safe-area-inset-left)) max(9px,env(safe-area-inset-right))!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-topbar>*{min-width:0!important}
#floor.screen:not(#home).screen--grand-floor .gf-room-link{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;padding-inline:clamp(6px,1.2vw,13px)!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-stage.gf-stage{width:100%!important;max-width:1180px!important;min-width:0!important;padding-right:max(12px,env(safe-area-inset-right))!important;padding-left:max(12px,env(safe-area-inset-left))!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable}
#floor.screen:not(#home).screen--grand-floor .gf-grid{width:100%!important;min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
#floor.screen:not(#home).screen--grand-floor .gf-card{min-width:0!important;overflow:hidden!important}
#floor.screen:not(#home).screen--grand-floor .gf-emblem{overflow:hidden!important;padding:0!important;line-height:0!important;isolation:isolate}
#floor.screen:not(#home).screen--grand-floor .gf-emblem img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 33%!important;border-radius:inherit}
#floor.screen:not(#home).screen--grand-floor .gf-copy h3{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important}
#floor.screen:not(#home).screen--grand-floor .gf-enter{min-width:0!important;white-space:normal!important;line-height:1.25!important}
/* Old right floating rail was the source of menu overlap. Replace it on THIS screen only. */
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav,
#floor.screen:not(#home).screen--grand-floor.is-active > nav.home-bottom-nav.grand-floor-bottom-nav{
 position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;inset:auto!important;transform:none!important;
 flex:0 0 51px!important;width:100%!important;max-width:100%!important;height:51px!important;min-height:51px!important;
 display:flex!important;flex-direction:row!important;align-items:stretch!important;justify-content:space-around!important;gap:0!important;
 margin:0!important;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))!important;
 overflow:hidden!important;background:#071c17!important;border:0!important;border-top:1px solid #786943!important;z-index:7!important;
}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button,
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button.is-active{
 position:relative!important;inset:auto!important;flex:1 1 0!important;min-width:0!important;width:auto!important;height:100%!important;min-height:0!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:3px 4px!important;
 border-radius:5px!important;overflow:hidden!important;
}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button > .nav-icon--art{flex:0 0 23px!important;width:23px!important;height:23px!important;max-height:23px!important;min-height:0!important;overflow:hidden!important}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button > .nav-icon--art img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button > strong,
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button.is-active > strong{position:static!important;display:block!important;clip-path:none!important;width:auto!important;height:auto!important;white-space:nowrap!important;overflow:visible!important;font-size:clamp(10px,1.3vw,12px)!important;line-height:1.3!important;color:#f1e2bc!important}
/* Collection: top controls and bottom navigation have their own rows.
 * One independently scrollable artwork row means image height cannot collapse to 0. */
#collection.screen:not(#home).screen--collection{display:flex!important;flex-direction:column!important;min-width:0!important;overflow:hidden!important;background:#071b17!important}
#collection.screen:not(#home).screen--collection .collection-topbar{position:relative!important;top:auto!important;left:auto!important;right:auto!important;height:auto!important;min-height:47px!important;max-height:none!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:8px!important;padding:4px max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left))!important;z-index:3}
#collection.screen:not(#home).screen--collection .collection-topbar__tools{min-width:0!important;gap:5px!important}
#collection.screen:not(#home).screen--collection .collection-count,#collection.screen:not(#home).screen--collection .collection-equip-count{min-width:0!important;padding:3px 8px!important}
#collection.screen:not(#home).screen--collection .collection-reset{white-space:normal!important;min-height:30px!important;font-size:10px!important;padding:3px 7px!important}
#collection.screen:not(#home).screen--collection .collection-stage{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;flex:1 1 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:6px!important;overflow:hidden!important;padding:6px max(10px,env(safe-area-inset-right)) 5px max(10px,env(safe-area-inset-left))!important}
#collection.screen:not(#home).screen--collection .collection-tabs{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:stretch!important;gap:5px!important;min-width:0!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;padding:0 0 2px!important}
#collection.screen:not(#home).screen--collection .collection-tabs button{flex:1 0 83px!important;min-width:83px!important;min-height:32px!important;height:auto!important;padding:5px 8px!important;font-size:11px!important;line-height:1.2!important;text-align:center!important;white-space:nowrap!important;border-radius:7px!important}
#collection.screen:not(#home).screen--collection .gf-collection-content{grid-column:auto!important;grid-row:auto!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:5px!important;min-width:0!important;min-height:0!important;width:100%!important;overflow:hidden!important}
#collection.screen:not(#home).screen--collection .gf-archive{padding:5px 8px!important;gap:6px!important;flex:none!important}
#collection.screen:not(#home).screen--collection .gf-archive-heading{min-width:100px!important}
#collection.screen:not(#home).screen--collection .gf-archive-links{min-width:0!important;gap:6px!important}
#collection.screen:not(#home).screen--collection .gf-archive-links button{min-height:38px!important;min-width:0!important;padding:4px 7px!important;font-size:11px!important;line-height:1.2!important}
#collection.screen:not(#home).screen--collection .gf-archive-links button small{font-size:9px!important}
#collection.screen:not(#home).screen--collection .collection-scroll-hint{flex:0 0 auto!important;font-size:10px!important;color:#f1d7a4!important;text-align:right!important;line-height:1.1!important}
#collection.screen:not(#home).screen--collection #collectionGrid{box-sizing:border-box!important;display:grid!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;grid-template-columns:none!important;grid-template-rows:minmax(170px,1fr)!important;grid-auto-flow:column!important;grid-auto-columns:clamp(145px,21%,195px)!important;gap:8px!important;align-content:stretch!important;overflow-x:auto!important;overflow-y:auto!important;scroll-snap-type:x proximity;scrollbar-width:thin!important;scrollbar-color:#aa8950 #122e27;padding:1px 3px 8px!important;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
#collection.screen:not(#home).screen--collection .collection-item{box-sizing:border-box!important;min-width:0!important;min-height:168px!important;height:100%!important;display:grid!important;grid-template-rows:minmax(85px,1fr) auto auto auto auto!important;align-content:stretch!important;gap:2px!important;padding:7px!important;border-radius:10px!important;scroll-snap-align:start!important;overflow:hidden!important}
#collection.screen:not(#home).screen--collection .collection-art{box-sizing:border-box!important;display:grid!important;min-width:0!important;min-height:85px!important;width:100%!important;height:100%!important;place-items:center!important;overflow:hidden!important}
#collection.screen:not(#home).screen--collection .collection-art img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;filter:drop-shadow(0 3px 5px #0009)!important}
#collection.screen:not(#home).screen--collection .collection-art--cloth i{width:min(95px,70%)!important;max-height:92%!important;aspect-ratio:1!important}
#collection.screen:not(#home).screen--collection .collection-art--cardback b,#collection.screen:not(#home).screen--collection .collection-art--chip b,#collection.screen:not(#home).screen--collection .collection-art--felt b,#collection.screen:not(#home).screen--collection .collection-art--frame b{width:min(90px,76%)!important;max-height:92%!important;aspect-ratio:1!important;font-size:21px!important}
#collection.screen:not(#home).screen--collection .collection-item>small,#collection.screen:not(#home).screen--collection .collection-item>span{font-size:10px!important;line-height:1.22!important;white-space:normal!important;overflow-wrap:anywhere!important}
#collection.screen:not(#home).screen--collection .collection-item>strong{font-size:11px!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important}
#collection.screen:not(#home).screen--collection .collection-item__action{min-height:27px!important;margin:1px 0 0!important}
#collection.screen:not(#home).screen--collection .collection-item__action button{font-size:10px!important;line-height:1.2!important;min-height:27px!important;width:100%!important;padding:3px 4px!important;white-space:normal!important}
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;display:flex!important;flex:0 0 49px!important;flex-direction:row!important;align-items:stretch!important;justify-content:space-around!important;gap:0!important;width:100%!important;max-width:100%!important;height:49px!important;min-height:49px!important;margin:0!important;padding:0 9px!important;overflow:hidden!important;border-top:1px solid #766440!important;background:#081b17!important;z-index:8!important}
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button,
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button.is-active{position:relative!important;inset:auto!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:5px!important;overflow:hidden!important;padding:3px!important}
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button > .nav-icon--art{flex:0 0 21px!important;width:21px!important;height:21px!important;max-height:21px!important;min-height:0!important;overflow:hidden!important}
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button > .nav-icon--art img{width:100%!important;height:100%!important;object-fit:contain!important}
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button > strong,
#collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button.is-active > strong{display:block!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;white-space:nowrap!important;overflow:visible!important;font-size:11px!important;line-height:1.2!important}
/* Reports: the OUTER region, not only a wide child, scrolls horizontally. */
.solo-table-report-modal,.night-chronicle-modal,.my-casino-modal{box-sizing:border-box!important;max-width:100vw!important;overflow:hidden!important;padding:6px max(7px,env(safe-area-inset-right)) 6px max(7px,env(safe-area-inset-left))!important}
.solo-table-report-panel{width:100%!important;max-width:980px!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;min-width:0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:9px 12px!important;gap:7px!important}
.solo-table-report-panel>*{min-width:0!important;max-width:100%!important}
.solo-table-report-panel .str-header{min-width:0!important;gap:7px!important}.solo-table-report-panel .str-header>div{min-width:0!important}
.solo-table-report-panel .str-header button{flex:none!important;white-space:nowrap!important}
.solo-table-report-panel .gf-report-caption{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;font-size:11px!important}
.solo-table-report-panel .gf-report-caption span{margin-left:auto!important;white-space:nowrap!important}
.solo-table-report-panel .gf-scroll-controls{display:flex!important;flex:0 0 auto!important;gap:5px!important;align-items:center!important}
.solo-table-report-panel .gf-scroll-controls button{min-width:32px!important;height:30px!important;padding:3px 7px!important;border:1px solid #bca16a;border-radius:6px;background:#284337;color:#ffebbd;font-size:16px;font-weight:800;cursor:pointer}
.solo-table-report-panel .gf-report-scroll{display:block!important;position:relative!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;scrollbar-color:#cea55d #163126!important;overscroll-behavior-x:contain!important;touch-action:pan-x pan-y!important;-webkit-overflow-scrolling:touch}
.solo-table-report-panel .gf-report-scroll .str-grid{min-width:830px!important;width:max(830px,100%)!important}
.solo-table-report-panel .gf-report-history{flex:1 0 95px!important;min-height:100px!important;overflow-x:auto!important;overflow-y:auto!important}
.solo-table-report-panel .gf-report-history .str-recent{min-width:680px!important;width:max(680px,100%)!important;overflow:visible!important;align-content:start!important}
.solo-table-report-panel .gf-report-history .str-entry{grid-template-columns:minmax(300px,1fr) minmax(140px,auto)!important}
.solo-table-report-panel .str-recent-head strong small{font-size:9px;color:#b2cfc2;font-weight:400}
.solo-table-report-panel .str-note{line-height:1.3!important}
/* Night story: short landscape uses ONE COLUMN instead of two minimum widths that exceed viewport. */
.gf-night-panel{box-sizing:border-box!important;width:100%!important;max-width:1000px!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;min-width:0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:9px 12px!important;gap:7px!important}
.gf-night-panel>*,.gf-night-panel .gf-night-pane,.gf-night-panel .nc-layout,.gf-night-panel .circuit-main{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
.gf-night-panel .gf-night-pane{flex:1 0 auto!important;min-height:0!important;overflow:visible!important}
.gf-night-panel .gf-night-pane[hidden]{display:none!important}
.gf-night-panel .nc-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)!important;overflow:visible!important;min-height:0!important;height:auto!important;flex:0 0 auto!important}
.gf-night-panel .nc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important}
.gf-night-panel .nc-scene{min-width:0!important;max-width:100%!important;overflow-y:visible!important;overflow-wrap:anywhere!important}
.gf-night-panel .nc-chapter{min-width:0!important;overflow-wrap:anywhere!important}
.gf-night-panel .gf-circuit-pane .circuit-main{grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr)!important;overflow:visible!important}
.gf-night-panel .circuit-grid,.gf-night-panel .circuit-side{min-width:0!important;max-width:100%!important}
.gf-night-panel .circuit-stop{min-width:0!important;flex-wrap:wrap!important}
.gf-night-panel .circuit-go{max-width:100%!important;white-space:normal!important}
/* My Casino: room and collection are independently readable, never clipped by min-width. */
.my-casino-panel{box-sizing:border-box!important;width:100%!important;max-width:1040px!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;min-width:0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:9px 12px!important;gap:7px!important}
.my-casino-panel>*,.my-casino-panel .mc-layout,.my-casino-panel .mc-preview,.my-casino-panel .mc-items{min-width:0!important;max-width:100%!important}
.my-casino-panel .mc-overview{grid-template-columns:repeat(4,minmax(0,1fr))!important;min-width:0!important}
.my-casino-panel .mc-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;overflow:visible!important;min-height:0!important;flex:1 0 auto!important}
.my-casino-panel .mc-preview,.my-casino-panel .mc-items{overflow-y:visible!important;min-height:0!important}
.my-casino-panel .mc-stage{max-width:100%!important}
.my-casino-panel .mc-saved-rooms summary{white-space:normal!important;overflow-wrap:anywhere!important}
.my-casino-panel .mc-saved-rooms summary span{float:none!important;margin-left:6px!important}
.my-casino-panel .mc-inventory{max-height:none!important;overflow-y:visible!important}
.my-casino-panel .mc-footer{min-width:0!important}
.my-casino-panel .mc-footer button{white-space:nowrap!important}
/* Small landscape: scroll vertically rather than squeezing text to illegibility or cutting the right edge. */
@media (max-width:930px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .gf-header-tag{display:none!important}
 #floor.screen:not(#home).screen--grand-floor .grand-floor-topbar{grid-template-columns:35px minmax(0,1fr) auto!important}
 #floor.screen:not(#home).screen--grand-floor .gf-room-link{font-size:11px!important;min-height:34px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important}
 #floor.screen:not(#home).screen--grand-floor .gf-card{min-height:122px!important;padding:7px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-emblem{width:36px!important;height:43px!important;align-self:center!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy h3{font-size:12px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy small{font-size:9px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-enter{min-height:33px!important;font-size:11px!important}
 #floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav{flex-basis:44px!important;height:44px!important;min-height:44px!important}
 #collection.screen:not(#home).screen--collection .collection-topbar{min-height:42px!important}
 #collection.screen:not(#home).screen--collection .collection-topbar h1{font-size:17px!important}
 #collection.screen:not(#home).screen--collection .collection-tabs button{min-height:29px!important}
 #collection.screen:not(#home).screen--collection .gf-archive-heading{display:none!important}
 #collection.screen:not(#home).screen--collection .gf-archive-links{width:100%!important}
 #collection.screen:not(#home).screen--collection .gf-archive-links button{min-height:34px!important}
 #collection.screen:not(#home).screen--collection #collectionGrid{grid-template-rows:minmax(168px,1fr)!important;grid-auto-columns:clamp(140px,24%,182px)!important}
 #collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav{flex-basis:43px!important;height:43px!important;min-height:43px!important}
 .solo-table-report-panel,.gf-night-panel,.my-casino-panel{padding:7px 10px!important;gap:5px!important}
 .solo-table-report-panel .str-header p,.gf-night-panel .nc-header p{display:none!important}
 .solo-table-report-panel .str-header button,.gf-night-panel .nc-header button,.my-casino-panel .mc-header button{min-height:31px!important;font-size:11px!important}
 .gf-night-panel .nc-layout{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
 .gf-night-panel .nc-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 .gf-night-panel .nc-scene{min-height:145px!important}
 .gf-night-panel .gf-circuit-pane .circuit-main{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
 .gf-night-panel .circuit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .my-casino-panel .mc-layout{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 .my-casino-panel .mc-preview,.my-casino-panel .mc-items{overflow:visible!important}
 .my-casino-panel .mc-stage{height:160px!important}
 .my-casino-panel .mc-slots{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .my-casino-panel .mc-overview>div{padding:5px!important}
}
@media (max-width:710px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .gf-card{grid-template-columns:34px minmax(0,1fr)!important;column-gap:6px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy h3{font-size:11px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-emblem{width:33px!important;height:40px!important}
 #floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button > .nav-icon--art,
 #collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button > .nav-icon--art{flex-basis:18px!important;width:18px!important;height:18px!important}
 #floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button > strong,
 #collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button > strong{font-size:10px!important}
 #collection.screen:not(#home).screen--collection .collection-count,#collection.screen:not(#home).screen--collection .collection-equip-count{padding:2px 4px!important}
 #collection.screen:not(#home).screen--collection .collection-reset{font-size:9px!important}
 #collection.screen:not(#home).screen--collection #collectionGrid{grid-auto-columns:150px!important}
 .gf-night-panel .nc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .solo-table-report-panel .gf-report-caption span{display:none!important}
 .my-casino-panel .mc-overview strong{font-size:10px!important}
}
@media (max-width:620px) and (orientation:portrait){
 #floor.screen:not(#home).screen--grand-floor .gf-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button > strong,
 #collection.screen:not(#home).screen--collection > nav.home-bottom-nav.collection-bottom-nav > button > strong{font-size:9px!important}
 #collection.screen:not(#home).screen--collection .collection-topbar__tools{gap:3px!important}
 #collection.screen:not(#home).screen--collection .collection-equip-count{display:none!important}
 #collection.screen:not(#home).screen--collection #collectionGrid{grid-auto-columns:155px!important}
 .gf-night-panel .nc-layout,.gf-night-panel .gf-circuit-pane .circuit-main,.my-casino-panel .mc-layout{grid-template-columns:minmax(0,1fr)!important}
 .gf-night-panel .nc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .my-casino-panel .mc-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* The old tab rail had height:100%; overwrite it explicitly, not just flex-basis. */
#collection.screen:not(#home).screen--collection .collection-tabs{height:36px!important;max-height:36px!important;min-height:36px!important;flex:0 0 36px!important;align-items:stretch!important}
#collection.screen:not(#home).screen--collection .collection-tabs button{height:34px!important;max-height:34px!important;flex:1 0 83px!important}
/* Preserve the action row above the bottom navigation even at 375px height. */
#collection.screen:not(#home).screen--collection #collectionGrid{grid-template-rows:minmax(156px,1fr)!important}
#collection.screen:not(#home).screen--collection .collection-item{min-height:155px!important;grid-template-rows:minmax(71px,1fr) auto auto auto auto!important;padding:5px 7px!important;gap:1px!important}
#collection.screen:not(#home).screen--collection .collection-art{min-height:71px!important}
#collection.screen:not(#home).screen--collection .collection-item__action{min-height:25px!important}
#collection.screen:not(#home).screen--collection .collection-item__action button{min-height:25px!important}
@media (max-width:930px) and (orientation:landscape){
 #collection.screen:not(#home).screen--collection #collectionGrid{grid-template-rows:minmax(156px,1fr)!important}
}
/* Image aspect ratio must not impose intrinsic 201px grid min-size on a 74px art slot. */
#collection.screen:not(#home).screen--collection .collection-art:has(img){position:relative!important;display:block!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
#collection.screen:not(#home).screen--collection .collection-art img{position:absolute!important;inset:0!important;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important}
/* Short-landscape readable controls (older circuit CSS reduced these to 8px). */
@media(max-width:930px) and (orientation:landscape){
 .gf-night-panel .circuit-stop-copy strong{font-size:11px!important;line-height:1.25!important}
 .gf-night-panel .circuit-stop-copy span,.gf-night-panel .circuit-stop small{font-size:10px!important;line-height:1.2!important}
 .gf-night-panel .circuit-go{font-size:10px!important;min-width:90px!important;min-height:29px!important}
 .gf-night-panel .circuit-note,.gf-night-panel .nc-note{font-size:10px!important}
 .my-casino-panel .mc-item-copy strong{font-size:11px!important}
 .my-casino-panel .mc-item-copy small{font-size:10px!important}
}
