.in-room.journey-table {background:#392c25;color-scheme:dark;}
.in-room.journey-table::before {background:radial-gradient(ellipse at center,#817156,#352a25 75%);}
.journey-table.in-room main {
  width:min(100%,540px);min-height:100dvh;margin-inline:auto;box-sizing:border-box;
  padding:env(safe-area-inset-top) max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));
  background:linear-gradient(0deg,#10283ddb 0%,#17334e3b 17%,transparent 35%),url("/art/journey/sky.webp") center/cover;
}
.journey-table.in-room #machine {
  flex:1;display:flex;flex-direction:column;justify-content:center;overflow:visible;
  margin:0;border:0;border-radius:0;box-shadow:none;background:none;
}
.journey-table.in-room #machine .machine-head {min-height:0;height:clamp(52px,9dvh,92px);background:none;}
.journey-table #machine .machine-head::before {inset:5% 13%;background:url("/art/journey/title.webp") center/contain no-repeat;}
.journey-table #machine .machine-head::after,.journey-table .marquee-copy,.journey-table #roundFeature {display:none;}
.journey-table.in-room #gameBackSlot {top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));}
.journey-table #machine .room-grid {width:100%;grid-template-columns:minmax(0,1fr);justify-items:center;gap:0;padding:0;}
.journey-table #machine .cabinet {
  width:min(100%,max(235px,52dvh));max-width:none;aspect-ratio:1080/1414;
  padding:0;border:0;border-radius:0;box-shadow:none;background:url("/art/journey/temple.webp") center/100% 100% no-repeat;
}
/* Grid bounds in the original 1080 × 1414 dragon pavilion artwork. */
.journey-table #machine #stage {
  position:absolute;left:2.9%;top:33.6%;width:94.2%;height:43.6%;max-height:none;aspect-ratio:auto;
  gap:0;padding:0;border:none;border-radius:0;background:none;box-shadow:none;
}
.journey-table #stage .reel {border-radius:0;}
.journey-table #stage .tile::before {border:0;border-radius:0;box-shadow:none;background:none;}
.journey-table #stage .tile img {width:91%;height:91%;filter:drop-shadow(0 1px 1px #3244557a);}
.journey-table #stage .tile.win::before {inset:0;background:url("/art/journey/winning.webp") center/100% 100% no-repeat;}
.journey-table #machine .console {position:relative;width:min(100%,460px);max-width:none;margin-top:clamp(-33px,-4dvh,-12px);gap:8px;}
.journey-table #machine .award {
  width:91%;margin:auto;min-height:34px;justify-content:center;align-items:center;gap:10px;padding:4px 17px;border:0;
  background:url("/art/journey/reward.webp") center/100% 100% no-repeat;
}
.journey-table .award small {color:#fff1c0;}
.journey-table .award strong {font:750 clamp(16px,5vw,24px)/1 system-ui;color:#ffe292;}
.journey-table #machine .control {
  display:grid;grid-template-columns:minmax(136px,1.4fr) clamp(64px,17vw,86px) minmax(88px,1fr);
  gap:clamp(2px,2vw,10px);align-items:center;
}
.journey-table .control .stake {
  display:grid;grid-template-columns:44px minmax(44px,1fr) 44px;align-items:center;gap:0;
  padding:0;border:0;border-radius:24px;background:#311b12ed;
}
.journey-table .control .stake button,.journey-table .control .harvest-actions button {
  min-height:44px;border:0;box-shadow:none;padding:0;border-radius:0;background:transparent center/contain no-repeat;color:#ffdc78;
}
.journey-table #minus,.journey-table #plus {position:relative;}
.journey-table .control #minus {background-image:url("/art/journey/minus.webp");}
.journey-table .control #plus {background-image:url("/art/journey/plus.webp");}
.journey-table .stake svg,.journey-table #play .play-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.journey-table .stake .stake-value {color:#fff2b3;gap:2px;}
.journey-table .stake #stake {font-size:clamp(13px,3.7vw,19px);}
.journey-table .stake-caption {font-size:10px;color:#f1ce9c;}
.journey-table #machine #play {
  width:100%;aspect-ratio:1;min-height:0;padding:0;border:0;box-shadow:none;
  background:url("/art/journey/arrow.webp") center/57% auto no-repeat,url("/art/journey/spin.webp") center/contain no-repeat;
}
.journey-table #machine #play[aria-busy=true]::before {display:none;}
.journey-table .control .harvest-actions {display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));align-items:center;}
.journey-table .control .harvest-actions button {width:100%;aspect-ratio:1;max-width:58px;justify-self:center;}
.journey-table .control #harvestAuto {background-image:url("/art/journey/auto.webp");}
.journey-table .control #harvestAuto[aria-pressed=true] {filter:brightness(1.35);outline:2px solid #ffd764;outline-offset:-4px;border-radius:50%;}
.journey-table .control #harvestFast {background-image:url("/art/journey/fast.webp");}
.journey-table .control #harvestFast[aria-pressed=true] {background-image:url("/art/journey/fast-on.webp");}
.journey-table #status:not(:empty) {text-align:center;padding:4px 9px;color:#ffebbc;background:#332017de;border-radius:8px;}
.journey-table.in-room #gameFooter {margin:0;padding:4px;}
.journey-table.in-room #gameBackSlot #roomBack,.journey-table.in-room #gameFooter button {color:#ffe09a;border-color:#c59652;background:#352017e8;}
.journey-table #featureDialog {color:#fff2c9;background:linear-gradient(#261910e6,#352015d9),url("/art/journey/map.webp") center/cover;border-color:#ebbd64;}
.journey-table #featureDialog h2 {font-size:clamp(19px,5vw,24px);}
.journey-table #featureOptions {grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:15px;}
.journey-table #featureOptions button {display:grid;justify-items:center;min-width:0;padding:3px 0 6px;color:#ffebaf;background:#4b281bd9;border:1px solid #b68748;font-size:12px;}
.journey-table #featureOptions button::before {content:"";width:100%;height:45px;background:url("/art/journey/path.webp") center/contain no-repeat;}
.journey-table #featureDialog::before {content:"";display:block;height:clamp(70px,18dvh,140px);background:url("/art/journey/wukong.webp") center/contain no-repeat;}
@media(max-height:640px) {
  .journey-table.in-room #machine .machine-head {height:48px;}
  .journey-table #machine .console {gap:3px;}
}
