.harvest-table.in-room {
  --farm: url("/art/harvest/field.webp");
  background: #24391e;
}
.harvest-table.harvest-bonus { --farm: url("/art/harvest/field-bonus.webp"); }
.harvest-table.in-room::before {
  background: linear-gradient(#274033a6,#263619cb),var(--farm) center/cover;
}
.harvest-table.in-room main {
  box-sizing: border-box;
  width: min(100%, 540px);
  margin-inline: auto;
  min-height: 100dvh;
  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: var(--farm) center/cover no-repeat;
}
.harvest-table.in-room #room { justify-content: center; }
.harvest-table.in-room #machine {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  overflow: visible; margin: 0;
}
.harvest-table.in-room #machine .machine-head {
  height: clamp(86px,16dvh,150px); min-height: 0;
  background: none;
}
.harvest-table.in-room #machine .machine-head::before {
  inset: 3% 19%; background: url("/art/harvest/logo.webp") center/contain no-repeat;
}
.harvest-table #machine .machine-head::after,.harvest-table .marquee-copy {display: none;}
.harvest-table.in-room #roundFeature {
  bottom: 5px;right: 2%;padding: 3px 8px;
  color: #ffdf72; border: 1px solid #d6a755; background: #40270eeb;
}
.harvest-table.in-room #gameBackSlot {left: max(8px,env(safe-area-inset-left));top: max(8px,env(safe-area-inset-top));}
.harvest-table #machine .room-grid {padding: 0;grid-template-columns: 1fr; gap: 0;}
.harvest-table #machine .cabinet {
  width: min(100%, max(255px,61dvh));max-width: none; aspect-ratio: 1080 / 965;
  padding: 0; border: 0; border-radius: 0;
  background: url("/art/harvest/bed.webp") center/100% 100% no-repeat;
  box-shadow: none;
}
.harvest-table #machine #stage {
  position: absolute;inset: 5.8% 3.4% 5%;width: auto;height: auto;
  aspect-ratio: auto;padding: 0;gap: 0; border: 0;border-radius: 2%;background: none;box-shadow: none;
}
.harvest-table #stage .tile::before {background: none;border: 0;box-shadow: none;}
.harvest-table #stage .tile img {width: 85%;height: 87%;filter: drop-shadow(0 2px 2px #39210899);}
.harvest-table #stage .tile.win::before {background: #ffd43c5c;box-shadow: inset 0 0 9px #fff87c;border-radius: 16%;}
.harvest-table #stage .ball-value {align-items: end;bottom: 4%;color: #fff19b;font-weight: 900;text-shadow: 0 2px 3px #321304,1px 0 #461c09;}
.harvest-table #machine .console {width: 100%;max-width: none;gap: 4px;position: relative;}
.harvest-table #machine .award {
  box-sizing: border-box;justify-content: center;align-items:center;
  width: 92%; aspect-ratio: 1080 / 250;max-height: 79px;margin: -2px auto 0;padding: 0 6% 1.5%;
  background: url("/art/harvest/plank.webp") center/100% 100% no-repeat;border: 0;
}
.harvest-table .award small,.harvest-table .award strong {color: #ffdf8e;text-shadow: 0 2px 1px #43200a;}
.harvest-table .award small {font-weight: 700;}
.harvest-table #machine .control {
  display: grid; grid-template-columns: minmax(0,1.4fr) clamp(64px,18%,94px) minmax(0,1fr);
  align-items: center;gap: clamp(3px,1vw,8px);padding-inline: 2px;
}
.harvest-table .control .stake {
  display: grid;grid-template-columns: minmax(44px,.85fr) minmax(48px,1.2fr) minmax(44px,.85fr);
  gap: 0;align-items:center;padding: 0;background: none;border: 0;
}
.harvest-table .control .stake button,.harvest-table .control .harvest-actions button,.harvest-table #machine #play {
  min-height: 44px;border: 0;border-radius: 0;padding: 0;box-shadow: none;
  background: transparent var(--button-art) center/contain no-repeat;
}
.harvest-table .control #minus {--button-art: url("/art/harvest/minus.webp");}
.harvest-table .control #plus {--button-art: url("/art/harvest/plus.webp");}
.harvest-table .control .stake svg,.harvest-table .control .stake-value i {display: none;}
.harvest-table .control #stakeLevel {
  position:relative;min-height:44px;aspect-ratio:1;
  background:transparent url("/art/harvest/stake.webp") center/contain no-repeat;
}
.harvest-table .control .stake-picker .stake-caption {
  position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;
}
.harvest-table .control .stake-value {
  position:absolute;top:80%;left:50%;transform:translateX(-50%);white-space:nowrap;
  border:1px solid #d9a348;border-radius:8px;background:#4b2e12;padding:0 6px;
}
.harvest-table .stake-value #stake {font-size: clamp(12px,3.6vw,17px);color: #fff6cf;}
.harvest-table #machine #play {--button-art: url("/art/harvest/spin.webp"); width:100%;aspect-ratio:278/296;}
.harvest-table #play .play-label {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
.harvest-table #play[aria-busy=true]::before {display:none;}
.harvest-table .control .harvest-actions {display:flex;align-items:center;justify-content:space-evenly;gap:1px;}
.harvest-table .harvest-actions button {width:clamp(44px,10vw,54px);aspect-ratio:1;}
.harvest-table #harvestAuto {--button-art:url("/art/harvest/auto.webp");}
.harvest-table #harvestAuto[aria-pressed=true] {filter:drop-shadow(0 0 4px #ffe144);}
.harvest-table #harvestFast {--button-art:url("/art/harvest/fast.webp");}
.harvest-table #harvestFast[aria-pressed=true] {--button-art:url("/art/harvest/fast-on.webp");}
.harvest-table .control button:active:not(:disabled) {transform:scale(.96);}
.harvest-table #status:not(:empty) {margin:0 auto;padding:4px 12px;background:#3e300ee8;border-radius:10px;color:#fff0bf;text-align:center;}
.harvest-table.in-room #gameFooter {
  margin-top:0; padding:4px 5px 6px;
}
.harvest-table.in-room #gameFooter button,.harvest-table.in-room #gameBackSlot #roomBack {
  background:linear-gradient(#684728,#3e260e);border-color:#d0a255;color:#fff2c6;
}
@media (max-width:350px) {
  .harvest-table #machine .control {grid-template-columns: minmax(136px,1fr) 59px 89px;gap:2px;}
}
