*{box-sizing:border-box}
html,body{margin:0;height:100%;background:radial-gradient(ellipse at 50% 30%,#3a1d14 0%,#140806 55%,#050202 100%);color:#f3e6c4;font-family:Georgia,"Times New Roman",serif;overflow:hidden}
#app{height:100%;display:flex;align-items:center;justify-content:center;gap:3vw}
#stage{position:relative;z-index:5;height:min(97vh,calc((100vw - 300px)*1.5));aspect-ratio:1000/1500;container-type:size;flex:none}
#cab,#mech{position:absolute;left:0;top:0;width:100%;height:100%}
#mech{left:26%;top:21.333%;width:48%;height:26.667%}
.ov{position:absolute}
#strips{left:25.6%;top:50.8%;width:48.8%;height:15.8%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,1fr);grid-auto-flow:column;gap:.45cqh .8cqw}
.strip{position:relative;background:linear-gradient(#fffbe9,#f1e4bf);border:.25cqh solid #b8241c;border-radius:.4cqh;display:flex;align-items:center;cursor:pointer;color:#2a1408;padding:0 .8cqw 0 0;overflow:hidden;transition:transform .08s,box-shadow .2s}
.strip:active,.strip.press{transform:scale(.97)}
.strip .key{flex:none;width:4.6cqw;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(#d23a2a,#7d120c);color:#fff3cf;font:bold 1.25cqh Georgia;border-right:.2cqh solid #5a0d08}
.strip .t{flex:1;min-width:0;text-align:center;line-height:1.05}
.strip .t b{display:block;font-size:.98cqh;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.01em}
.strip .t i{display:block;font-size:.9cqh;color:#7a3b1c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.strip.empty .t b{color:#9b8a66;font-weight:normal;text-transform:none;font-style:italic}
.strip.playing{box-shadow:0 0 1.2cqh .3cqh #ffd36a,inset 0 0 1cqh #ffd36a;background:linear-gradient(#fff6c8,#ffe08a)}
.strip.queued .key{background:linear-gradient(#ffb12a,#b8560c)}
.strip.dragover{outline:.3cqh dashed #2a7}
#credits{left:27%;top:68.6%;width:14%;height:3.6%;background:#120a04;border:.2cqh solid #777;border-radius:.6cqh;display:flex;align-items:center;justify-content:space-around;font:bold 1.15cqh Georgia;color:#ffcf6b;text-shadow:0 0 .6cqh #f90}
#credNum{font-size:1.9cqh}
#reject{left:44.5%;top:68.9%;width:12.5%;height:3%;border-radius:2cqh;border:.2cqh solid #444;background:linear-gradient(#f4f4f4,#8c9096);font:bold 1cqh Georgia;letter-spacing:.15em;color:#3a1206;cursor:pointer}
#reject:active{transform:translateY(.15cqh)}
#slotHit{left:61.2%;top:68.6%;width:12.8%;height:3.8%;cursor:pointer}
#insertCoin{left:25.6%;top:59%;width:48.8%;text-align:center;font:bold 3.2cqh Georgia;color:#ffcf6b;text-shadow:0 0 1.5cqh #f60,0 0 .4cqh #000;opacity:0;pointer-events:none;letter-spacing:.1em}
#insertCoin.show{animation:blink 1.4s}
@keyframes blink{0%,30%,60%{opacity:1}15%,45%,100%{opacity:0}}
#side{width:270px;flex:none;display:flex;flex-direction:column;gap:14px}
#side h1{margin:0;font-style:italic;font-size:34px;color:#ffcf6b;text-shadow:0 0 12px #c50}
#side h1 span{font-style:normal;font-size:22px;color:#f3e6c4}
.tag{margin:0;color:#d9c28e;font-size:14px;line-height:1.4}
#tray{background:linear-gradient(#5a2c16,#2a1208);border:2px solid #8a5a2a;border-radius:12px;padding:10px 10px 14px}
.trayLbl{font-size:13px;color:#e9d9a6;margin-bottom:8px}
#coins{display:flex;gap:8px;flex-wrap:wrap}
.coin{width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,#e3e6ea 18%,#9ba1a8 55%,#5f646b 100%);border:2px solid #6d727a;box-shadow:inset 0 0 0 4px rgba(255,255,255,.25),0 3px 6px rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;font:bold 14px Georgia;color:#4a4f55;cursor:grab;touch-action:none;user-select:none}
.coin.fly{position:fixed;z-index:50;pointer-events:none;transition:none}
#drop{display:block;border:2px dashed #b8894a;border-radius:12px;padding:12px;font-size:13px;line-height:1.4;cursor:pointer;color:#e9d9a6}
#drop.over{background:rgba(255,200,100,.12)}
#drop small{color:#b9a274}
.row{display:flex;gap:10px;flex-wrap:wrap;font-size:13px}
.row button{flex:1;padding:8px;border-radius:8px;border:1px solid #8a5a2a;background:#3a1a0c;color:#ffe3a6;font:14px Georgia;cursor:pointer}
.row button.on{background:#8a3a10}
.fine{font-size:11px;color:#9b8a66;margin:0;line-height:1.35}
#hand{position:fixed;z-index:60;width:44px;height:44px;left:-100px;top:-100px;pointer-events:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V4.5a1.5 1.5 0 0 1 3 0V10h.5V3.5a1.5 1.5 0 0 1 3 0V10h.5V5a1.5 1.5 0 0 1 3 0v8.5c0 4-2.5 7.5-6.5 7.5-3 0-4.6-1.5-6-3.6L4 13.5a1.4 1.4 0 0 1 2.3-1.6L9 14z' fill='%23fff' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");filter:drop-shadow(0 2px 3px #000);transition:left .7s cubic-bezier(.4,0,.2,1),top .7s cubic-bezier(.4,0,.2,1)}
body.demo #side .fine,body.demo #drop{opacity:.9}
@media (max-aspect-ratio:1/1){
  #app{flex-direction:column;gap:1.2vh;justify-content:flex-start;padding-top:1vh}
  #stage{height:min(78vh,calc(96vw*1.5))}
  #side{width:min(96vw,760px);flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start}
  #side h1,.tag,.fine{display:none}
  #tray{flex:1 1 220px}#drop{flex:1 1 220px}.row{flex:1 1 100%}
}

#fileChip{position:fixed;z-index:59;padding:10px 16px;border-radius:10px;background:#fffbe9;color:#2a1408;font:bold 18px Georgia;box-shadow:0 6px 18px rgba(0,0,0,.6);border:2px solid #b8241c;white-space:nowrap}
body.clean #side h1,body.clean #side .tag,body.clean #drop,body.clean #side .row,body.clean #side .fine{display:none}
body.clean #side{width:auto}
body.clean.ambient #side{display:none}
body.clean.ambient #stage{height:min(96vh,calc(96vw*1.5))}
