#host[data-game="slot"]{
  --accent:#ffcb42;--paper:#fbf8ee;--asphalt:#182129;--edge:clamp(14px,2.6vw,44px);
  font-family:"Barlow",Arial,system-ui,sans-serif;background:var(--asphalt)
}
#slotShowroom{position:absolute;inset:0;overflow:hidden;background:#e3e5d7;isolation:isolate}
.slot-floor{position:absolute;inset:0;background:transparent}
.slot-floor:before{content:"";position:absolute;inset:-15% -15% -20% 52%;transform:skewX(-19deg);background:linear-gradient(90deg,transparent 0 3%,#df563c 3% 4%,transparent 4% 6%,#e15b40 6% 40%,transparent 40% 42%,#e15b40 42% 43%,transparent 43%);opacity:.95}
.slot-floor:after{content:"";position:absolute;inset:0;clip-path:polygon(0 0,54% 0,38% 100%,0 100%);background:#1d2932}
.slot-display{position:absolute;inset:10% 1% 5% 42%;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:center}
#slotHero{display:block;width:78%;height:77%;min-height:0;object-fit:contain;pointer-events:none;user-select:none}
#slotFleet{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;padding:8px 10px;background:#1e2931ed;box-shadow:0 8px 20px #10182526;transform:skewX(-8deg)}
#slotFleet button{background:transparent;color:#f7f5e7;border:0;border-bottom:4px solid var(--chip);border-radius:0;min-width:42px;padding:7px;font:italic 800 15px Arial,sans-serif;font-variant-numeric:tabular-nums}
#slotFleet button[aria-pressed="true"]{color:#1b242c;background:var(--chip)}#slotFleet button:hover{box-shadow:inset 0 0 0 1px var(--chip)}
#host[data-game="slot"] .scene-shade{background:none}
#host[data-game="slot"] .top-hud{align-items:center}
#host[data-game="slot"] :is(.game-locale,.icon,.readouts span){background:#1a252dec;border:1px solid #8e9b9f77;color:#fff9e7;border-radius:4px;box-shadow:none}
#host[data-game="slot"] .game-locale{min-height:38px}
#host[data-game="slot"] #phase{border-inline-start:4px solid #ffcb42;padding:7px 12px;font:800 clamp(14px,1.3vw,20px)/1.1 "Barlow",Arial,sans-serif}
#host[data-game="slot"] #panel{left:clamp(23px,5vw,100px);width:36%;max-width:none;padding:5px 0 10px;overflow:auto;text-shadow:none}
#host[data-game="slot"] #panel .eyebrow{font:750 clamp(13px,1.2vw,18px)/1.3 "Barlow Condensed",Arial,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:#ffcc55;margin-bottom:clamp(12px,2.4vh,30px)}
#host[data-game="slot"] #gameTitle{font:italic 1000 clamp(30px,5.3vw,112px)/.9 "Barlow Condensed","Arial Narrow",system-ui,sans-serif;text-transform:uppercase;letter-spacing:-.078em;overflow-wrap:normal;color:#fff7de;padding:.06em .08em .09em 0}
#gameTitle .gp-mark{display:table;font-size:.65em;letter-spacing:-.06em;margin-top:.2em;color:#ffca42}
#host[data-game="slot"] #panelTitle{font:italic 900 clamp(30px,4.5vw,78px)/1.02 "Barlow Condensed",system-ui,sans-serif;color:#fff7e6}
#host[data-game="slot"] #instruction{color:#e7e8e4;font-size:clamp(16px,1.48vw,23px);margin-block:clamp(14px,2.8vh,30px);line-height:1.42}
#host[data-game="slot"] #panel button,#host[data-game="slot"] #buttons a,#host[data-game="slot"] #quick button{border-radius:3px;font-weight:800;box-shadow:none}
#host[data-game="slot"] #panel button:not(.secondary),#host[data-game="slot"] #closeHelp{color:#19232c;background:#ffcb42}
#host[data-game="slot"] #panel .secondary,#host[data-game="slot"] #buttons a{background:#24323a;border:1px solid #7c898a;color:#fff9e6}
#host[data-game="slot"][data-stage="waiting"] .scene-shade{background:linear-gradient(105deg,#17222bf7 0 44%,#1a272ce0 48%,#182329c9)}
#host[data-game="slot"][data-stage="waiting"] #qr{width:clamp(100px,18vmin,205px);border:4px solid white}
#slotGrid{position:absolute;inset:15% 4% 12% 48%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(6px,1.2vw,18px)}
.pit-bay{grid-column:span 2;position:relative;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;overflow:hidden;border:1px dashed #c4d0ce55;background:#1b282f65;color:#c1c9c6;padding:clamp(7px,1vw,16px)}
.pit-bay:nth-child(4){grid-column:2/span 2}
.pit-bay:nth-child(5){grid-column:4/span 2}
.pit-bay[data-occupied="true"]{border:1px solid #9aa5a859;border-top:4px solid var(--chip);background:linear-gradient(160deg,#39454b,#202d34);color:#fff8e8}
.pit-bay .bay-number{position:absolute;left:9px;top:7px;color:#b1bbb685;font:italic 900 clamp(18px,2.4vw,40px)/1 system-ui}
.pit-bay[data-occupied="true"] .bay-number{color:var(--chip)}
.pit-bay img{object-fit:contain;min-height:0;flex:1;width:100%}
.pit-bay strong{font-size:clamp(14px,1.6vw,24px);width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pit-bay small{color:var(--chip);font-weight:750}
.pit-bay .bay-remove{position:absolute;top:5px;right:6px;width:28px;height:28px;padding:0;border:1px solid #FFFFFF40;background:#162229;color:#fff;border-radius:2px;font:600 19px/1 Arial}
#host[data-game="slot"][data-stage="playing"] #phase{font-style:italic;font-size:clamp(17px,2.3vw,30px)}
#host[data-game="slot"] #scores span{border-radius:3px;border:1px solid #c2ccc14a;border-left:5px solid var(--tint);background:#19232def;color:#fff8e4;font-size:clamp(12px,1.35vw,21px);font-weight:750;box-shadow:none}
#host[data-game="slot"] #count>div,#host[data-game="slot"] #helpBox{background:#1d2932f5;border-radius:4px;border-color:#c2c7b77a}#host[data-game="slot"] #countNum{font-style:italic}
#phone[data-game="slot"]{background:#1c2d38;color:#fff8e5}
#phone[data-game="slot"] .phone-inner{opacity:1}#phone[data-game="slot"] #phoneKind{color:#cfdbda}
#slotHandCar{display:block;object-fit:contain;width:min(72%,330px);height:clamp(70px,24svh,210px);margin:0 auto 12px;pointer-events:none;user-select:none}
#phone[data-game="slot"] h1{font-style:italic;color:var(--phone-color);letter-spacing:-.055em}
#phone[data-game="slot"] #phoneButtons button{background:var(--phone-color,#ffcb42);color:#1a242a;border-radius:4px}
.handset.play #phone[data-game="slot"]:active{box-shadow:inset 0 -8px var(--phone-color)}
@media(max-aspect-ratio:1/1){
 .slot-floor:after{clip-path:polygon(0 37%,100% 50%,100% 100%,0 100%)}
 .slot-display{inset:6% 4% 55%;grid-template-rows:minmax(0,1fr) auto}#slotHero{width:90%}#slotFleet{padding:4px 6px}#slotFleet button{min-width:33px;padding:4px;font-size:13px}
 #host[data-game="slot"] #panel{top:auto;bottom:max(3vh,14px);left:6%;width:88%;max-height:49%;transform:none}
 #host[data-game="slot"] #gameTitle{font-size:clamp(38px,9vw,75px)}#gameTitle .gp-mark{display:inline;margin-inline-start:.16em}
 #host[data-game="slot"] #instruction{margin:11px 0 16px}
 #slotGrid{inset:13% 4% 55%;gap:5px}#host[data-game="slot"][data-stage="waiting"] .scene-shade{background:#17232ced}
 #host[data-game="slot"][data-stage="waiting"] #panel{max-height:48%}
 .pit-bay{padding:4px 6px}.pit-bay .bay-number{font-size:18px;top:4px;left:4px}.pit-bay small{font-size:11px}
 #host[data-game="slot"][data-stage="waiting"] #qr{width:clamp(82px,13vh,140px)}
 #host[data-game="slot"] #scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
}
@media(max-height:520px) and (orientation:landscape){
 .slot-display{inset:12% 1% 3% 46%}#host[data-game="slot"] #panel{max-height:calc(100% - 70px);width:41%;top:56%}
 #host[data-game="slot"] #panel .eyebrow{margin-bottom:5px}#host[data-game="slot"] #instruction{font-size:14px;margin:8px 0}
 #host[data-game="slot"] #gameTitle{font-size:clamp(30px,6vw,64px)}#gameTitle .gp-mark{display:inline;margin-inline-start:.14em}
 #slotGrid{inset:17% 2% 6% 49%}.pit-bay{padding:5px}.pit-bay strong{font-size:14px}.pit-bay small{font-size:11px}
 #slotHandCar{height:15svh}#phone[data-game="slot"]{padding-block:12px}#phone[data-game="slot"] h1{font-size:32px}
}
#host[data-game="slot"] #panel #slotMapTrigger{
 display:flex;align-items:center;gap:12px;text-align:start;margin:0 0 16px;padding:0 12px 0 0;
 min-height:48px;border:1px solid #a3afa967;border-radius:4px;background:#25313a;color:#fff8e6;box-shadow:none
}
#slotMapTrigger img{width:84px;height:50px;object-fit:cover;border-radius:3px 0 0 3px}
#slotMapTrigger span{display:grid;gap:2px}#slotMapTrigger small{font:650 13px/1.1 system-ui;color:#c1cac9}
#slotMapTrigger strong{font:800 16px/1.1 system-ui}#slotMapTrigger i{font-style:normal;color:#ffcb42;margin-inline-start:10px}
#slotMapDialog{color:#fff7df;background:transparent;border:0;padding:0;width:min(900px,93vw);overflow:visible;max-height:90dvh}
#slotMapDialog::backdrop{background:#0b131be3}
.slot-map-sheet{background:#1a2630;border:1px solid #718182;border-radius:6px;padding:clamp(12px,2.3vw,30px);max-height:90dvh;overflow:auto;box-shadow:0 14px 45px #080f144d}
.slot-map-sheet header{display:flex;align-items:center;justify-content:space-between;margin-block-end:15px}
#slotMapHeading{color:#fff3d8;font:italic 900 clamp(25px,3vw,42px)/1 "Barlow Condensed",system-ui;margin:0}
#closeSlotMaps{height:36px;width:36px;border-radius:4px;border:1px solid #728389;background:#25343d;color:white;padding:0;font-size:23px}
#slotMapOptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#slotMapOptions button{min-width:0;position:relative;background:#25333c;color:#fff8e2;border:2px solid #576973;border-radius:4px;overflow:hidden;padding:0;text-align:start;transition:border-color .15s}
#slotMapOptions button:hover,#slotMapOptions button[aria-pressed="true"]{border-color:#ffcb42}
#slotMapOptions button[aria-pressed="true"]:after{content:'✓';position:absolute;inset-block-start:6px;inset-inline-end:6px;background:#ffcb42;color:#1d2730;border-radius:3px;padding:0 5px;font-weight:900}
#slotMapOptions img{width:100%;aspect-ratio:5/3;display:block;object-fit:cover}
#slotMapOptions strong{display:block;padding:8px 10px;font:800 clamp(15px,1.6vw,21px)/1.15 system-ui}
@media(max-width:640px){#slotMapOptions{grid-template-columns:1fr 1fr;gap:7px}#slotMapTrigger img{width:66px;height:38px}#host[data-game="slot"] #panel #slotMapTrigger{min-height:38px;margin-bottom:8px}}
@media(max-height:520px) and (orientation:landscape){#slotMapOptions{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}#host[data-game="slot"] #panel #slotMapTrigger{min-height:32px;margin-bottom:5px}#slotMapTrigger img{width:57px;height:32px}#slotMapTrigger small{display:none}}
#slotFleet{max-width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;transform:none;border-radius:5px}
#slotFleet button{display:grid;place-items:center;min-width:0;padding:2px 6px;border-radius:2px;background:#31424c;border-bottom:3px solid var(--chip)}
#slotFleet button[aria-pressed="true"]{background:#586975;box-shadow:inset 0 0 0 2px #ffcf53}
#slotFleet img{display:block;width:clamp(36px,5.8vw,82px);height:clamp(24px,4.7vh,52px);object-fit:contain;pointer-events:none}
@media (min-width:900px) and (min-aspect-ratio:11/8){#slotFleet{grid-template-columns:repeat(8,minmax(0,1fr))}}
