/* CASINOIR 0.49.05 — the approved six-panel dark luxury reference, implemented as real UI.
   Presentation only: no changes to currency, game engines, entitlement or save keys. */
:root{--lux-gold:#dfbc76;--lux-gold-light:#fff0bd;--lux-felt:#0a201b;--lux-border:#99784a}
/* Main lobby. Equal-size six game portraits; not a poker hero. */
#floor.screen:not(#home).screen--grand-floor{background:radial-gradient(ellipse at 50% -24%,#365338 0%,#081611 68%,#050d0a 100%)!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-bg{opacity:.19!important;background:linear-gradient(90deg,#05130f88,#05130f70),url('./assets/ui/home-bg-casinoir-v04710.webp') center 45%/cover no-repeat!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-topbar{min-height:51px!important;background:linear-gradient(100deg,#081b16 0%,#152f23 55%,#081811 100%)!important;border-bottom:1px solid var(--lux-border)!important;box-shadow:0 3px 16px #0008!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-heading h2{font-family:Georgia,'Noto Serif JP',serif!important;font-size:clamp(18px,2.35vw,26px)!important;letter-spacing:.05em!important}
#floor.screen:not(#home).screen--grand-floor .gf-room-link{background:linear-gradient(#4d4027,#28251b)!important;border:1px solid #e6c67d!important;box-shadow:inset 0 1px #fff3,0 1px 8px #0008!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-stage.gf-stage{width:100%!important;max-width:1450px!important;padding:8px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left))!important;gap:7px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:auto!important}
#floor.screen:not(#home).screen--grand-floor .grand-floor-stage.gf-stage{padding-inline:max(10px,var(--safe-inline,0px))!important}
#floor.screen:not(#home).screen--grand-floor .gf-intro{isolation:isolate;position:relative!important;flex:0 0 64px!important;min-height:64px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;padding:4px 100px 5px!important;overflow:hidden!important;border:1px solid #977744!important;border-radius:8px!important;background:linear-gradient(90deg,#041810bd,#08201e88,#041810bd),url('./assets/ui/home-bg-casinoir-v04710.webp') center 46%/cover no-repeat!important;box-shadow:inset 0 0 20px #000a!important}
#floor.screen:not(#home).screen--grand-floor .gf-intro::before{content:'';position:absolute;inset:3px;z-index:-1;border:1px solid #f7dba520;border-radius:5px;pointer-events:none}
#floor.screen:not(#home).screen--grand-floor .gf-intro .gf-eyebrow{font:700 9px/1.1 Georgia,serif!important;letter-spacing:.22em!important;color:#f2dba0!important}
#floor.screen:not(#home).screen--grand-floor .gf-intro p{font:700 clamp(19px,3.3vw,32px)/1.05 Georgia,'Noto Serif JP',serif!important;letter-spacing:.11em!important;text-shadow:0 2px 9px #000!important;color:var(--lux-gold-light)!important}
#floor.screen:not(#home).screen--grand-floor .gf-intro .gf-intro-side{display:block!important;margin:0!important;color:#f4e8c8!important;text-align:center!important;font:600 10px/1.2 system-ui,sans-serif!important;white-space:nowrap!important}
#floor.screen:not(#home).screen--grand-floor .gf-carousel-controls{position:absolute;right:9px;bottom:10px;display:none;gap:5px;z-index:3}
#floor.screen:not(#home).screen--grand-floor .gf-carousel-controls button{width:31px;height:30px;min-width:31px;border:1px solid #ebce8e;border-radius:6px;background:#14271fdb;color:#ffe3a4;font:800 18px/1 system-ui;cursor:pointer;touch-action:manipulation}
#floor.screen:not(#home).screen--grand-floor .gf-carousel-controls button:disabled{opacity:.35;cursor:default}
#floor.screen:not(#home).screen--grand-floor .gf-grid{box-sizing:border-box!important;display:grid!important;flex:1 1 auto!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;grid-auto-rows:auto!important;gap:clamp(5px,.8vw,11px)!important;align-items:stretch!important;align-content:stretch!important;min-width:0!important;min-height:185px!important;width:100%!important;height:auto!important;overflow:visible!important;padding:0 1px 2px!important}
#floor.screen:not(#home).screen--grand-floor .gf-card,#floor.screen:not(#home).screen--grand-floor .gf-card:nth-child(even){position:relative!important;isolation:isolate;display:grid!important;box-sizing:border-box!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(78px,1fr) auto 32px!important;gap:5px!important;padding:5px!important;min-height:185px!important;min-width:0!important;height:100%!important;overflow:hidden!important;border:1px solid #bf9549!important;border-radius:9px!important;background:linear-gradient(145deg,#17352c,#071410 72%)!important;box-shadow:inset 0 0 0 1px #ecd39820,0 4px 13px #0009!important}
#floor.screen:not(#home).screen--grand-floor .gf-card::after{content:'';position:absolute;inset:3px;z-index:-1;border:1px solid #f7cf6c1c;border-radius:6px;pointer-events:none}
#floor.screen:not(#home).screen--grand-floor .gf-number{position:absolute!important;top:7px;left:7px;z-index:3;grid-column:auto!important;grid-row:auto!important;display:block!important;padding:3px 5px!important;background:#06140bd9!important;border:1px solid #e2c27e8e!important;border-radius:4px;color:#ffe2a2!important;font:800 9px/1 system-ui,sans-serif!important;letter-spacing:.06em!important;text-shadow:0 1px 5px #000!important}
#floor.screen:not(#home).screen--grand-floor .gf-emblem{grid-column:1!important;grid-row:1!important;display:block!important;width:100%!important;height:100%!important;min-height:78px!important;max-height:none!important;align-self:stretch!important;border:0!important;border-bottom:1px solid #b38c4e!important;border-radius:5px 5px 3px 3px!important;background:radial-gradient(#324c37,#07140d)!important;overflow:hidden!important}
#floor.screen:not(#home).screen--grand-floor .gf-emblem img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center 38%!important;transform:none!important;border-radius:0!important}
#floor.screen:not(#home).screen--grand-floor .gf-copy{grid-column:1!important;grid-row:2!important;align-self:center!important;text-align:center!important;min-width:0!important;width:100%!important;display:grid!important;align-content:center!important;gap:2px!important}
#floor.screen:not(#home).screen--grand-floor .gf-copy small{order:2!important;font:600 clamp(8px,.8vw,10px)/1 Georgia,serif!important;color:#d7b774!important;letter-spacing:.035em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#floor.screen:not(#home).screen--grand-floor .gf-copy h3{order:1!important;margin:0!important;font:800 clamp(11px,1.15vw,15px)/1.25 system-ui,'Noto Sans JP',sans-serif!important;color:#fff6db!important;overflow-wrap:anywhere!important;min-height:1.25em!important;max-height:2.5em!important;overflow:hidden!important;text-shadow:0 1px 3px #000!important}
#floor.screen:not(#home).screen--grand-floor .gf-copy p{display:none!important}
#floor.screen:not(#home).screen--grand-floor .gf-enter{grid-column:1!important;grid-row:3!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:4px!important;min-height:32px!important;height:32px!important;margin:0!important;padding:4px 6px!important;background:linear-gradient(#775d2f,#44341f)!important;border:1px solid #e5bc65!important;border-radius:6px!important;color:#fff5dd!important;font:800 11px/1.1 system-ui,sans-serif!important;white-space:nowrap!important;box-shadow:inset 0 1px #ffffff33,0 2px 4px #0009!important}
#floor.screen:not(#home).screen--grand-floor .gf-enter span{font-size:14px!important}
#floor.screen:not(#home).screen--grand-floor .gf-enter:hover{background:linear-gradient(#947344,#554128)!important}
#floor.screen:not(#home).screen--grand-floor .gf-poker-tools{align-self:flex-end!important;flex:0 0 auto!important;margin:0!important;font-size:10px!important}
#floor.screen:not(#home).screen--grand-floor .gf-poker-tools summary{padding:2px 6px!important;font-size:10px!important;color:#ead5a2!important}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav{flex-basis:46px!important;min-height:46px!important;height:46px!important;background:linear-gradient(180deg,#081b16,#06130f)!important}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button{border-right:1px solid #ab83453b!important}
#floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav > button.is-active{background:linear-gradient(#5e4828,#31251c)!important;border-color:#d6aa62!important}
/* Collection: artwork first, high contrast type and meaningful filters. */
#collection.screen--collection{background:radial-gradient(ellipse at 50% -35%,#244638,#061710 75%)!important}
#collection.screen--collection .collection-topbar{background:linear-gradient(100deg,#071a15,#163025,#071b16)!important;border-bottom:1px solid #a5864b!important}
#collection.screen--collection .collection-tabs button.is-active{color:#fff1c7!important;background:linear-gradient(#6c552f,#34291b)!important;border-color:#e4c579!important;box-shadow:inset 0 1px #fff2!important}
#collection.screen--collection .gf-archive{background:linear-gradient(110deg,#0a201b,#243b2e,#0b231c)!important;border-color:#a98a53!important}
#collection.screen--collection .gf-archive-links button{background:linear-gradient(#2b4637,#173126)!important;border-color:#9e8454!important}
#collection.screen--collection #collectionGrid{scrollbar-color:#d3ae67 #0d241b!important}
#collection.screen--collection .collection-item{background:linear-gradient(140deg,#192c20,#081813 80%)!important;border-color:#aa8650!important;box-shadow:inset 0 0 0 1px #d5af4825!important}
#collection.screen--collection .collection-art{background:radial-gradient(ellipse at 52% 85%,#44523355,#0b1c1555 63%)!important;border-radius:6px!important}
#collection.screen--collection .collection-art img{filter:drop-shadow(0 4px 5px #0007)}
/* Report and night story retain existing data models; visible panels get the same hierarchy. */
.solo-table-report-panel,.gf-night-panel,.my-casino-panel{border:1px solid #b29359!important;box-shadow:0 18px 48px #000c,inset 0 1px #fff2!important;background:radial-gradient(ellipse at 47% -35%,#294635 0%,#0a221a 61%,#071710 100%)!important}
.solo-table-report-panel .str-header,.gf-night-panel .nc-header,.my-casino-panel .mc-header{border-bottom:1px solid #a1814c!important;padding-bottom:5px!important}
.solo-table-report-panel .str-header h2,.gf-night-panel .nc-header h2,.my-casino-panel .mc-header h2{color:#fff0c0!important;font-family:Georgia,'Noto Serif JP',serif!important;letter-spacing:.025em!important}
.solo-table-report-panel .gf-report-scroll{border:1px solid #6a774e!important;border-radius:8px!important;background:#081a15aa!important}
.solo-table-report-panel .str-game{background:linear-gradient(135deg,#274034,#122921)!important;border:1px solid #8e7b50!important;border-radius:7px!important}
.solo-table-report-panel .str-entry{border-bottom:1px solid #5c6f54!important}
.gf-night-panel .gf-night-tabs button.is-active{background:linear-gradient(#886637,#392c1d)!important;box-shadow:inset 0 1px #fff5!important}
.gf-night-panel .nc-chapter{background:linear-gradient(140deg,#243d2d,#0b231b)!important;border-color:#957845!important}
.gf-night-panel .nc-scene{background:linear-gradient(#0a221acc,#0a211aca),url('./assets/ui/home-bg-casinoir-v04710.webp') center/cover!important}
/* My Casino: an actual casino scene is reused from approved app artwork, not a fake unlock. */
.my-casino-panel .mc-overview>div{background:linear-gradient(140deg,#203b2c,#0b231c)!important;border-color:#8d794f!important}
.my-casino-panel .mc-preview,.my-casino-panel .mc-items{background:linear-gradient(150deg,#152e23,#081b16)!important;border-color:#a18650!important}
.my-casino-panel .mc-stage{position:relative!important;isolation:isolate;background:linear-gradient(180deg,#06161018 0%,#05120d44 55%,#0209068c 100%),url('./assets/ui/home-bg-casinoir-v04710.webp') center 60%/cover!important;box-shadow:inset 0 0 30px #0009!important}
.my-casino-panel .mc-stage::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0007,#0001,#0007);pointer-events:none}
.my-casino-panel .mc-ownership-filter button.is-active{background:linear-gradient(#72562d,#32261b)!important;border-color:#edc879!important}
.my-casino-panel .mc-item{border-color:#756b49!important;background:#142b21!important}
.my-casino-panel .mc-footer button:not(:disabled){background:linear-gradient(#805d2e,#46341e)!important;border-color:#edc47f!important}
/* Large landscape: scene and six cards remain one beautifully composed plane. */
@media(min-width:1000px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .grand-floor-stage.gf-stage{padding:13px 18px 12px!important;gap:11px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-intro{flex-basis:108px!important;min-height:108px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-grid{gap:11px!important;min-height:250px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-card{padding:7px!important;gap:8px!important;grid-template-rows:minmax(125px,1fr) auto 38px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-emblem{min-height:125px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-enter{height:38px!important;min-height:38px!important;font-size:13px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy h3{font-size:clamp(13px,1.2vw,16px)!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy small{font-size:10px!important}
}
/* Compact landscape: enough art to recognize the game, never minuscule text. */
@media(max-width:930px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .grand-floor-topbar{min-height:46px!important}
 #floor.screen:not(#home).screen--grand-floor .grand-floor-stage.gf-stage{gap:5px!important;padding-block:5px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-intro{flex-basis:57px!important;min-height:57px!important;padding:3px 84px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-intro p{font-size:23px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-intro .gf-intro-side{font-size:9px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;min-height:184px!important;gap:5px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-card,#floor.screen:not(#home).screen--grand-floor .gf-card:nth-child(even){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(78px,1fr) auto 31px!important;min-height:183px!important;gap:4px!important;padding:4px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-emblem{min-height:78px!important;width:100%!important;height:100%!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy h3{font-size:11px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-copy small{font-size:8px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-enter{min-height:31px!important;height:31px!important;font-size:10px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-poker-tools summary{font-size:10px!important}
 #floor.screen:not(#home).screen--grand-floor > nav.home-bottom-nav.grand-floor-bottom-nav{flex-basis:43px!important;height:43px!important;min-height:43px!important}
}
@media(max-width:980px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .gf-intro{padding-right:92px!important;padding-left:52px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-intro .gf-intro-side{font-size:9px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-carousel-controls{display:flex!important}
 #floor.screen:not(#home).screen--grand-floor .gf-grid{grid-template-columns:repeat(6,calc((100% - 18px)/4))!important;grid-template-rows:minmax(0,1fr)!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:thin!important;scrollbar-color:#d6b36c #15271b!important;padding-bottom:7px!important;overscroll-behavior-x:contain!important;touch-action:pan-x pan-y!important}
 #floor.screen:not(#home).screen--grand-floor .gf-card{scroll-snap-align:start!important}
 #floor.screen:not(#home).screen--grand-floor .gf-enter{font-size:11px!important}
}
@media(max-width:679px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .gf-grid{grid-template-columns:repeat(6,calc((100% - 12px)/3))!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;grid-auto-flow:row!important;grid-template-rows:none!important;min-height:0!important;overflow:visible!important}
 #floor.screen:not(#home).screen--grand-floor .gf-card{height:220px!important;min-height:220px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-intro{padding-inline:12px!important}
 #floor.screen:not(#home).screen--grand-floor .gf-carousel-controls{display:none!important}
}
@media(prefers-reduced-motion:reduce){#floor .gf-grid{scroll-behavior:auto!important}}
/* Render the saved room theme over an existing, rights-cleared in-app casino scene.
   All real equipped crest/table/light symbols stay driven by saved layout. */
.my-casino-panel .mc-wall{background:linear-gradient(180deg,#65452c40,#150d0d61),url('./assets/ui/home-bg-casinoir-v04710.webp') center 51%/cover!important;border-bottom-color:#d5ac65!important}
.my-casino-panel .mc-theme-emerald .mc-wall{background:linear-gradient(180deg,#18523e46,#05281e65),url('./assets/ui/home-bg-casinoir-v04710.webp') center 51%/cover!important}
.my-casino-panel .mc-theme-midnight .mc-wall{background:linear-gradient(180deg,#2128496c,#0c142f8c),url('./assets/ui/home-bg-casinoir-v04710.webp') center 51%/cover!important}
.my-casino-panel .mc-floor{background:repeating-linear-gradient(90deg,#271b1ac9 0 20px,#483522c7 20px 40px)!important}
/* Keep the source illustrations crisp on taller displays; landscape artwork is intentionally
   showcased at its native aspect instead of stretching a 256px icon across 500px. */
@media(min-width:1000px) and (min-height:650px) and (orientation:landscape){
 #floor.screen:not(#home).screen--grand-floor .gf-grid{flex:0 0 auto!important;height:min(47vh,395px)!important;min-height:300px!important;align-content:start!important}
 #floor.screen:not(#home).screen--grand-floor .gf-card{height:100%!important;max-height:395px!important}
}
