.in-room.stars-table {
  --star-sky:url("/art/stars/sky.webp");
  color-scheme:dark;
  background:#0e0920;
}
.in-room.stars-table::before {background:radial-gradient(ellipse at center,#3e1e59,#0e0920 78%);}
.in-room.stars-table main {
  width:min(100%,520px); min-height:100dvh; margin-inline:auto;box-sizing:border-box;
  padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));
  background:linear-gradient(0deg,#110825b8,transparent 22%,transparent 88%,#10072777),var(--star-sky) center/cover no-repeat;
}
.stars-table.in-room #room {justify-content:center;}
.stars-table.in-room #machine {
  flex:1;display:flex;flex-direction:column;justify-content:center;
  margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;
}
.stars-table.in-room #machine .machine-head {
  height:clamp(76px,16dvh,145px);min-height:0;background:none;
}
.stars-table.in-room #machine .machine-head::before {
  inset:10% 15%; background:url("/art/stars/title.webp") center/contain no-repeat;
  filter:drop-shadow(0 4px 12px #160b36);
}
.stars-table #machine .machine-head::after,.stars-table .marquee-copy {display:none;}
.stars-table.in-room #roundFeature {
  right:1.5%;bottom:4px;color:#e9dfff;background:#201333df;border-color:#a87eda;
  font:700 12px/1.4 system-ui;padding:3px 7px;
}
.stars-table.in-room #gameBackSlot {top:max(7px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));}
.stars-table #machine .room-grid {
  width:min(100%,max(300px,62dvh)); margin:0 auto;grid-template-columns:minmax(0,1fr);padding:0;gap:10px;
}
.stars-table #machine .cabinet {
  width:100%;aspect-ratio:1;max-width:none;padding:3px;border:1px solid #c8acff;border-radius:12px;
  background:linear-gradient(150deg,#eb6dde,#8c44d1 52%,#51baf1);
  box-shadow:0 3px 10px #13071cb0,0 0 16px #d873fa44;
}
.stars-table #machine #stage {
  width:100%;height:100%;box-sizing:border-box;gap:0;padding:1px;border:1px solid #310e59;border-radius:8px;
  background:radial-gradient(ellipse at 50% 100%,#382360 0%,#21103d 58%,#100823);
}
.stars-table #stage .reel {border-radius:0;}
.stars-table #stage .tile::before {
  inset:0 1px 1px 0; background:none;box-shadow:none;border:0;border-radius:0;
  border-right:1px solid #a677df55;border-bottom:1px solid #a677df55;
}
.stars-table #stage .reel:last-child .tile::before {border-right:0;}
.stars-table #stage .tile:last-child::before {border-bottom:0;}
.stars-table #stage .tile img {width:88%;height:88%;filter:drop-shadow(0 2px 2px #080316);}
.stars-table #stage .tile.win::before {background:#bd8dff42;box-shadow:inset 0 0 15px #e5c3ff90;}
.stars-table #stage .ball-value {align-items:end;padding-bottom:3%;font-size:clamp(12px,3.6vw,21px);text-shadow:0 1px 4px #0a001c,1px 1px 3px #0a001c;}
.stars-table #machine .console {max-width:none;gap:9px;}
.stars-table #machine .award {
  padding:7px 14px;align-items:center;justify-content:center;gap:10px;border:1px solid #ae89da55;
  border-radius:9px;background:linear-gradient(90deg,#1b102bdb,#382342ef,#1b102bdb);
}
.stars-table .award small {color:#e0caee;}
.stars-table .award strong {font-size:clamp(18px,4.7vw,25px);color:#ffe4a1;}
.stars-table #machine .control {
  display:grid;grid-template-columns:minmax(0,1fr) clamp(60px,17vw,80px) minmax(48px,.42fr);
  gap:clamp(4px,2vw,12px);align-items:center;
}
.stars-table .control .stake {
  display:grid;grid-template-columns:44px minmax(47px,1fr) 44px;
  padding:0;gap:0;border-radius:15px;background:#171029eb;border:1px solid #947aac;
}
.stars-table .control .stake button {
  min-height:48px;color:#b0eff9;border:0;background:none;font-size:20px;
}
.stars-table .control .stake-caption {color:#d3c5e5;font-size:11px;}
.stars-table .control .stake-value {color:#fff5d7;gap:3px;}
.stars-table .control .stake-value #stake {font-size:clamp(13px,3.7vw,18px);}
.stars-table .control .stake-value i {border-color:#c5aacd;}
.stars-table #machine #play {
  padding:0;width:100%;min-height:0;aspect-ratio:1;border:2px solid #a0dbe7;border-radius:50%;
  background:url("/art/stars/spin.webp") center/99% no-repeat,radial-gradient(circle at 34% 24%,#33385c,#19192c 55%,#38304b 78%,#100d1c);
  box-shadow:inset 0 0 0 3px #2b243b,0 0 0 2px #4c3578,0 0 12px #94ecff70;
}
.stars-table #play .play-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.stars-table #machine #play[aria-busy=true]::before {display:none;}
.stars-table .control #starsAuto {
  display:grid;place-content:center;justify-items:center;gap:2px;min-height:48px;min-width:44px;
  border-radius:13px;border:1px solid #b1a0d2;background:#211633eb;color:#b6eff5;font-size:12px;
}
.stars-table .control #starsAuto[aria-pressed=true] {background:#274452;color:#c9ffff;border-color:#9ceffa;}
.stars-table #status:not(:empty) {margin:auto;color:#f5eaff;padding:3px 10px;background:#201336e6;border-radius:8px;text-align:center;}
.stars-table.in-room #gameFooter {margin-top:0;padding:4px 4px 7px;}
.stars-table.in-room #gameBackSlot #roomBack,.stars-table.in-room #gameFooter button {
  color:#c6f5fa;border:1px solid #9ba0be;background:linear-gradient(#30294b,#140e24);
}
@media(max-height:620px){
  .stars-table.in-room #machine .machine-head {height:64px;}
  .stars-table #machine .room-grid {gap:5px;}
  .stars-table #machine .console {gap:5px;}
}
