body.mahjong-table {
  display:flex;
  flex-direction:column;
  height:100vh;
  height:100dvh;
  background:#361f16;
}
.mahjong-table::before {display:none}
body.mahjong-table main {
  width:min(100%,560px);
  margin:0 auto;
  padding:0;
  position:relative;
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.mahjong-table #room {position:relative;flex:1;min-height:460px}
.in-room.mahjong-table #gameBackSlot {
  top:max(7px,env(safe-area-inset-top));
  left:max(8px,env(safe-area-inset-left));
}
.in-room.mahjong-table #gameBackSlot #roomBack {
  border:1px solid #c48c49;
  border-radius:15px;
  background:linear-gradient(150deg,#754a2e,#331e15 75%);
  color:#ffe0a0;
  box-shadow:inset 0 1px 1px #f5c77b60,0 2px 4px #24110780;
}
.mahjong-table #machine {
  position: relative;
  isolation: isolate;
  width:100%;
  height:100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  color: #ffedbe;
  background: #54301b url("/art/mahjong-table/table.webp") center / 100% 100% no-repeat;
  container-type: inline-size;
}
.mahjong-table #machine .machine-head,
.mahjong-table #machine .room-grid,
.mahjong-table #machine .console,
.mahjong-table #machine .control,
.mahjong-table #machine .stake,
.mahjong-table #machine .mahjong-tools {display: contents}
.mahjong-table #machine .machine-head::before,.mahjong-table #machine .machine-head::after,
.mahjong-table .marquee-copy,.mahjong-table #roundFeature,.mahjong-table .award,.mahjong-table #status {display:none}
.mahjong-table #enableAudio {z-index:4;right:max(8px,env(safe-area-inset-right));top:max(7px,env(safe-area-inset-top));bottom:auto}
.mahjong-table .cabinet {
  position:absolute;left:2.45%;top:15.7%;width:95.1%;height:50.1%;
  max-width:none;padding:0;background:none;border:0;border-radius:0;box-shadow:none;
}
.mahjong-table #stage {
  width:100%;height:100%;padding:0;gap:0;aspect-ratio:auto;
  background:transparent;border:0;border-radius:0;box-shadow:none;
}
.mahjong-table [data-mode=ways] .reel {background:none;border-radius:0}
.mahjong-table [data-mode=ways] .tile img {width:100%;height:100%;object-fit:contain;filter:none}
.mahjong-table .tile::before {display:none}
.mahjong-table .tile.win img {filter:drop-shadow(0 0 5px #ffe57b)}
.mahjong-table #mjMultiplier {position:absolute;top:7.91%;left:0;width:100%;height:7.82%;pointer-events:none}
.mahjong-table #mjMessage {
  position:absolute;left:12%;top:69.1%;width:76%;height:4.6%;display:grid;place-items:center;
  color:#ffdd7b;font:700 clamp(13px,3.7cqw,22px)/1.1 system-ui,sans-serif;text-align:center;text-shadow:0 2px 2px #5c1e00;
}
.mahjong-table #machine :is(#minus,#plus,#stakeLevel,#play,#mjFast,#mjAuto,#mjAmount) {
  position:absolute;display:grid;place-items:center;min-height:44px;min-width:0;margin:0;padding:0;border:0;border-radius:0;
  background-color:transparent;background-position:center;background-size:contain;background-repeat:no-repeat;
  box-shadow:none;touch-action:manipulation;transform:none;
}
.mahjong-table #machine :is(#minus,#plus,#stakeLevel,#play,#mjFast,#mjAuto):active:not(:disabled) {filter:brightness(1.2)}
.mahjong-table #machine button:focus-visible {outline:2px solid #ffdc74;outline-offset:1px}
.mahjong-table #machine .stake button > *,.mahjong-table #play::before {display:none}
.mahjong-table #machine #minus {left:3.8%;top:82.4%;width:12.4%;height:6.2%;background-image:url("/art/mahjong-table/minus.webp")}
.mahjong-table #machine #stakeLevel {left:14.1%;top:82%;width:12%;height:7.2%;z-index:1;background-image:url("/art/mahjong-table/bet.webp")}
.mahjong-table #machine #plus {left:24.8%;top:82.4%;width:12.4%;height:6.2%;background-image:url("/art/mahjong-table/plus.webp")}
.mahjong-table #machine #play {left:37.5%;top:79%;width:25%;height:14.4%;background-image:url("/art/mahjong-table/spin.webp");font-size:0}
.mahjong-table #play[aria-busy=true] {filter:brightness(.85)}
.mahjong-table #machine #mjAuto {left:65.6%;top:82%;width:13%;height:7.2%;background-image:url("/art/mahjong-table/auto.webp");color:#ffe3a9;font-weight:750}
.mahjong-table #machine #mjAuto[data-running] {background:#603a23;border:2px solid #deb379;border-radius:50%}
.mahjong-table #machine #mjFast {left:82%;top:82%;width:13%;height:7.2%;background-image:url("/art/mahjong-table/fast.webp")}
.mahjong-table #machine #mjFast[aria-pressed=true] {background-image:url("/art/mahjong-table/fast-on.webp")}
.mahjong-table #machine #mjAmount {
  bottom:max(.7%,env(safe-area-inset-bottom));height:6.6%;color:#fff0d4;font:650 clamp(13px,3.8cqw,21px)/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;
}
.mahjong-table #machine #mjAmount {display:flex;align-items:center;gap:.35em;white-space:nowrap}
.mahjong-table #mjAmount::before {content:"";width:1.3em;height:1.3em;background:center / contain no-repeat}
.mahjong-table #mjAmount::before {background-image:url("/art/mahjong-table/bet-info.webp")}
.mahjong-table #machine #mjAmount {left:15%;width:27%;justify-content:flex-start}
.in-room.mahjong-table #gameFooter {
  position:absolute;
  inset:auto 0 max(.7%,env(safe-area-inset-bottom));
  padding:0 max(3.5%,env(safe-area-inset-right)) 0 max(1%,env(safe-area-inset-left));
  height:6.6%;
  min-height:44px;
  margin:0;
  pointer-events:none;
}
.in-room.mahjong-table #gameFooter :is(#audioButton,#walletButton) {
  border:0;background:transparent;box-shadow:none;color:#fff0d4;pointer-events:auto;
}
.in-room.mahjong-table #gameFooter #walletButton {
  max-width:54%;
  padding-inline:0;
  font:650 clamp(13px,3.4vw,21px)/1 system-ui,sans-serif;
}
@container (max-width:350px) {
  .mahjong-table #machine :is(#minus,#plus,#stakeLevel,#mjAuto,#mjFast) {width:44px}
  .mahjong-table #machine #minus {left:.4%}
  .mahjong-table #machine #stakeLevel {left:15.7%}
  .mahjong-table #machine #plus {left:31%}
  .mahjong-table #machine #play {left:46.5%;width:19%}
}
@media (orientation:landscape) and (max-height:540px) {
  body.mahjong-table main {width:min(100%,420px)}
}

.control .gold .play-label {margin:0}
.mahjong-table #play .play-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.mahjong-table #mjWays {position:absolute;left:28.7037%;top:2.9167%;width:14.0741%;height:4.1667%;pointer-events:none}
.mahjong-sequel #mjWays {background:url("/art/mahjong-table/ways-2000.webp") center / 100% 100% no-repeat}
@media (max-height:610px) {
  .mahjong-table #machine #mjAmount,.in-room.mahjong-table #gameFooter {bottom:env(safe-area-inset-bottom)}
}
