.in-room.forest-table {background:#07170e;color-scheme:dark;}
.in-room.forest-table::before {background:radial-gradient(ellipse at center,#224326,#07170e 75%);}
.forest-table.in-room main {
  box-sizing:border-box;width:min(100%,500px);min-height:100dvh;margin-inline:auto;
  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,#07130ef5 2%,#0c281eef 39%,#0a3223ad 71%,#09291855),url("/art/forest/sky.webp") center top/auto 65% no-repeat,#193923;
}
.forest-table.in-room #room {justify-content:center;}
.forest-table.in-room #machine {
  flex:1;display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0;
  overflow:visible;background:none;box-shadow:none;margin:0;
}
.forest-table.in-room #machine .machine-head {height:clamp(56px,10dvh,90px);min-height:0;background:none;}
.forest-table.in-room #machine .machine-head::before {
  inset:1% 20%;background:url("/art/forest/title.webp") center/contain no-repeat;filter:drop-shadow(0 3px 4px #102812);
}
.forest-table #machine .machine-head::after,.forest-table .marquee-copy {display:none;}
.forest-table.in-room #gameBackSlot {left:max(8px,env(safe-area-inset-left));top:max(7px,env(safe-area-inset-top));}
.forest-table #machine .room-grid {padding:0;gap:0;grid-template-columns:minmax(0,1fr);}
.forest-table #machine .cabinet {
  justify-self:center;width:min(100%,max(292px,66dvh));max-width:none;
  padding:0;border:none;border-radius:0;box-shadow:none;background:none;
}
.forest-table #machine #stage {
  display:block;aspect-ratio:640/390;max-width:none;max-height:none;width:100%;height:auto;
  padding:0;gap:0;border:0;border-radius:16px;box-shadow:none;background:radial-gradient(ellipse at center,#ad95533d,transparent 67%);
}
.forest-table #stage>canvas {display:block;width:100%;height:100%;}
.forest-table #machine .console {width:100%;max-width:none;gap:6px;}
.forest-table #machine .award {order:1;justify-content:center;align-items:center;gap:9px;padding:1px 6px;border:0;}
.forest-table .award small {color:#dacdad;}
.forest-table .award strong {color:#ffe29a;font-size:clamp(16px,4.5vw,23px);}
.forest-table #machine #choices {
  order:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;
  border:1px solid #a6a65f70;border-radius:12px;background:linear-gradient(#244d2c,#162c21);padding:5px;
}
.forest-table #choices .forest-total {display:flex;justify-content:space-between;align-items:center;padding:2px 3px;color:#e8dcbd;font-size:12px;}
.forest-table #choices .forest-total strong {color:#ffe3a1;}
.forest-table #choices .forest-door {
  position:relative;isolation:isolate;display:block;min-height:51px;aspect-ratio:1.08;padding:0;
  border:0;border-radius:6px;box-shadow:none;background:transparent var(--door-art) center/100% 100% no-repeat;color:#fff;
}
.forest-table #choices .forest-door[data-shade="0"] {--door-art:url("/art/forest/table-red.webp");}
.forest-table #choices .forest-door[data-shade="1"] {--door-art:url("/art/forest/table-green.webp");}
.forest-table #choices .forest-door[data-shade="2"] {--door-art:url("/art/forest/table-yellow.webp");}
.forest-table #choices .forest-door>small {position:absolute;top:4%;left:0;width:100%;color:#190f10;font-size:clamp(9px,2.5vw,12px);line-height:1.15;font-weight:700;}
.forest-table #choices .forest-chips {position:absolute;top:25%;right:12%;font:750 clamp(10px,2.9vw,14px)/1 system-ui;font-variant-numeric:tabular-nums;color:#fff;}
.forest-table #choices .forest-door img {position:absolute;width:40%;height:41%;left:7%;bottom:4%;object-fit:contain;}
.forest-table #choices .forest-rate {
  position:absolute;right:7%;bottom:7%;min-width:32%;padding:2px 2%;border-radius:3px;
  background:#171a21;color:#ffedac;font:750 clamp(10px,2.9vw,14px)/1 system-ui;
}
.forest-table #choices .forest-door[aria-pressed=true] {outline:2px solid #fff1b4;outline-offset:-3px;filter:brightness(1.07);}
.forest-table #choices .forest-door:disabled {opacity:.82;}
.forest-table #choices>button:not(.forest-door) {
  grid-column:span 2; min-height:44px; padding:0;border-radius:7px;border-color:#84936575;background:#192d22;color:#e4debd;
}
.forest-table #choices>button:not(.forest-door):last-child {grid-column:span 1;}
.forest-table #machine .control {order:2;display:grid;grid-template-columns:minmax(132px,1.3fr) minmax(68px,1fr) minmax(44px,.55fr);gap:6px;}
.forest-table .control .stake {grid-template-columns:44px minmax(44px,1fr) 44px;gap:0;padding:0;border:0;border-radius:10px;background:#233529;}
.forest-table .control .stake button {min-height:46px;padding:0;border:0;background:none;color:#f7de99;}
.forest-table .stake-caption {font-size:10px;color:#ded3b5;}
.forest-table .stake-value {color:#fff4cc;gap:3px;}
.forest-table .stake-value #stake {font-size:clamp(12px,3.3vw,17px);}
.forest-table #machine #play,.forest-table #forestAuto {min-height:46px;border-radius:10px;font-weight:750;}
.forest-table #machine #play {border:1px solid #f9df83;color:#352009;background:linear-gradient(#ffe696,#ddb049);box-shadow:none;}
.forest-table #forestAuto {border:1px solid #8a986c;background:#263c2d;color:#f6e6ad;}
.forest-table #forestAuto[aria-pressed=true] {border-color:#ffd26f;color:#fff2ce;}
.forest-table #status:not(:empty) {order:3;color:#fff0c3;text-align:center;font-size:13px;}
.forest-table.in-room #gameFooter {margin:0;padding:6px 2px;}
.forest-table.in-room #gameBackSlot #roomBack,.forest-table.in-room #gameFooter button {
  background:linear-gradient(#324a30,#15271b);border-color:#a29862;color:#ffedbb;
}
@media(max-height:670px){
  .forest-table.in-room #machine .machine-head {height:50px;}
  .forest-table #machine .cabinet {width:min(100%,max(240px,49dvh));}
  .forest-table #choices .forest-door {aspect-ratio:1.23;}
  .forest-table #machine .console {gap:3px;}
}
