.in-room.lotus-table {background:#231112;color-scheme:dark;}
.in-room.lotus-table::before {background:radial-gradient(ellipse at center,#633434,#211216 78%);}
.lotus-table.in-room main {
  width:min(100%,510px);min-height:100dvh;box-sizing:border-box;margin-inline:auto;overflow:hidden;
  padding:env(safe-area-inset-top) max(3px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(3px,env(safe-area-inset-left));
  background:linear-gradient(0deg,#211416ee,#331c19c9),url("/art/golden-lotus-2/room.webp") center/cover;
}
.lotus-table.in-room #room {position:relative;align-items:center;justify-content:center;padding-bottom:54px;}
.lotus-table.in-room #machine {
  --room-image:url("/art/golden-lotus-2/room.webp");
  position:relative;isolation:isolate;flex:none;width:min(100%,max(284px,calc(57.45dvh - 33px)),500px);
  aspect-ratio:1080/1880;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible;
  background:var(--room-image) center 35.294% / 100% auto no-repeat;
}
.lotus-table.lotus-extra.in-room #machine {--room-image:url("/art/golden-lotus-2/extra.webp");}
.lotus-table #machine::before {
  content:"";position:absolute;z-index:-1;inset:-12.766% 0 -23.404%;pointer-events:none;
  background:var(--room-image) center/100% 100% no-repeat;
}
.lotus-table #machine .room-grid,.lotus-table #machine .console {display:contents;}
.lotus-table.in-room #machine .machine-head {position:absolute;inset:0 0 auto;height:23%;min-height:0;background:none;}
.lotus-table #machine .machine-head::before {
  inset:18% 15% 12%;background:url("/art/golden-lotus-2/title.webp") center/contain no-repeat;filter:drop-shadow(0 4px 4px #220808);
}
.lotus-table #machine .machine-head::after,.lotus-table .marquee-copy,.lotus-table #roundFeature {display:none;}
.lotus-table.in-room #gameBackSlot {top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));}
/* The reels occupy x=57..1061 and y=710..1200 in the 1080 × 2560 source background. */
.lotus-table #machine .cabinet {
  position:absolute;left:5.28%;top:25%;width:93%;height:26.05%;max-width:none;padding:0;
  background:#1e1214;border:0;border-radius:1px;box-shadow:0 1px 4px #1a090d;
}
.lotus-table #machine #stage {
  width:100%;height:100%;aspect-ratio:auto;gap:1px;padding:0;border:0;border-radius:0;
  background:#94603c;box-shadow:none;
}
.lotus-table #stage .reel {border-radius:0;}
.lotus-table #machine .cabinet::after {content:"";position:absolute;inset:0;background:url("/art/golden-lotus-2/reels.webp") center/100% 100%;opacity:.45;pointer-events:none;}
.lotus-table #stage .tile {background:#251a1c;}
.lotus-table #stage .tile::before {inset:0;border:0;border-bottom:1px solid #81583f;border-radius:0;background:none;box-shadow:none;z-index:1;pointer-events:none;}
.lotus-table #stage .tile img {width:100%;height:100%;object-fit:contain;filter:none;}
.lotus-table #stage .tile.win::before {background:url("/art/golden-lotus-2/winframe.webp") center/100% 100%;border:0;}
.lotus-table #stage [data-lotus-badge]::after {
  content:"";position:absolute;inset:auto 0 0;height:28%;pointer-events:none;
  background:var(--badge) center bottom/contain no-repeat,linear-gradient(transparent,#24071c99);
}
.lotus-table [data-lotus-badge=scatter] {--badge:url("/art/golden-lotus-2/scatter.webp");}
.lotus-table [data-lotus-badge=bonus] {--badge:url("/art/golden-lotus-2/bonus.webp");}
.lotus-table [data-lotus-badge=free] {--badge:url("/art/golden-lotus-2/free.webp");}
.lotus-table #machine::after {
  content:"";position:absolute;top:52%;left:36%;width:28%;height:20%;pointer-events:none;
  background:url("/art/golden-lotus-2/host.webp") center bottom/contain no-repeat,url("/art/golden-lotus-2/throne.webp") center bottom/contain no-repeat;
}
.lotus-table #machine .award {
  position:absolute;left:3%;top:72.5%;width:94%;height:8%;display:flex;align-items:center;justify-content:center;gap:9px;
  border:0;padding:0;background:url("/art/golden-lotus-2/award.webp") center/100% 100% no-repeat;
}
.lotus-table .award small {color:#ffdeb1;}
.lotus-table .award strong {font:750 clamp(16px,4.8vw,25px)/1 system-ui;color:#ffe097;}
.lotus-table #machine .control {
  position:absolute;inset:82% 1.4% auto;display:grid;
  grid-template-columns:minmax(132px,1.4fr) clamp(48px,16vw,82px) minmax(88px,1fr);align-items:center;gap:4px;
}
.lotus-table .control .stake {
  display:grid;grid-template-columns:44px minmax(44px,1fr) 44px;align-items:center;gap:0;
  padding:0;border:0;border-radius:22px;background:#45190fee;
}
.lotus-table .control .stake button,.lotus-table .harvest-actions button {
  min-height:44px;padding:0;border:0;border-radius:0;background:transparent center/contain no-repeat;box-shadow:none;color:#fff1be;
}
.lotus-table .control #minus {background-image:url("/art/golden-lotus-2/minus.webp");}
.lotus-table .control #plus {background-image:url("/art/golden-lotus-2/plus.webp");}
.lotus-table .stake svg,.lotus-table #play .play-label {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;}
.lotus-table .stake .stake-caption {color:#f6cf91;font-size:10px;}
.lotus-table .stake .stake-value {color:#fff0b5;gap:2px;}
.lotus-table .stake #stake {font-size:clamp(13px,3.7vw,18px);}
.lotus-table #machine #play {
  width:100%;min-height:44px;aspect-ratio:1;padding:0;border:0;box-shadow:none;
  background:url("/art/golden-lotus-2/arrow.webp") center/57% no-repeat,url("/art/golden-lotus-2/spin.webp") center/contain no-repeat;
}
.lotus-table #machine #play[aria-busy=true]::before {display:none;}
.lotus-table .harvest-actions {display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));align-items:center;}
.lotus-table .harvest-actions button {width:100%;max-width:56px;aspect-ratio:1;justify-self:center;}
.lotus-table #harvestAuto {background-image:url("/art/golden-lotus-2/auto.webp");}
.lotus-table #harvestAuto[aria-pressed=true] {outline:2px solid #ffdc86;outline-offset:-3px;border-radius:50%;}
.lotus-table #harvestFast {background-image:url("/art/golden-lotus-2/fast.webp");}
.lotus-table #harvestFast[aria-pressed=true] {background-image:url("/art/golden-lotus-2/fast-on.webp");}
.lotus-table #status:not(:empty) {position:absolute;bottom:1%;inset-inline:2%;text-align:center;color:#ffedca;text-shadow:0 1px 3px #000;}
.lotus-table.in-room #gameFooter {position:absolute;inset:auto 0 0;width:100%;box-sizing:border-box;margin:0;padding:3px 5px;}
.lotus-table.in-room #gameBackSlot #roomBack,.lotus-table.in-room #gameFooter button {background:#401d18ec;border-color:#b17c48;color:#ffe4aa;}
.lotus-table #featureDialog {
  --scene:url("/art/golden-lotus-2/double.webp");
  color:#fff1cb;border:1px solid #d2a267;background:linear-gradient(0deg,#27151be8,#28131e66),var(--scene) center/cover;
}
.lotus-table #featureDialog h2 {padding:5px 2px 24px;font-size:clamp(19px,5vw,25px);text-shadow:0 2px 3px #1f0b0b;}
.lotus-table #featureDialog[data-feature=ribbons] {--scene:url("/art/golden-lotus-2/ribbons.webp");}
.lotus-table #featureDialog[data-feature=rhythm] {--scene:url("/art/golden-lotus-2/rhythm.webp");}
.lotus-table #featureOptions {grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:7px;}
.lotus-table #featureOptions button {min-width:0;padding:8px 2px;background:#542a21ec;border-color:#b88850;color:#ffe3a5;}
.lotus-table #featureDialog[data-feature=double] h2::before {content:"";display:block;height:60px;margin:4px auto 10px;background:url("/art/golden-lotus-2/grape.webp") center/contain no-repeat;}
.lotus-table #featureDialog[data-feature=ribbons] button::before {content:"";display:block;height:40px;background:url("/art/golden-lotus-2/ribbon.webp") center/contain no-repeat;}
.lotus-table #featureDialog[data-feature=double] button:nth-child(n+2)::before {content:"";display:block;height:24px;background:url("/art/golden-lotus-2/double-arrow.webp") center/contain no-repeat;}
.lotus-table #featureDialog[data-feature=double] button:nth-child(3)::before {transform:scaleX(-1);}
