:root {
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  color: #3f3a33;
  background: #e3c8a6;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.viewport {
  width: 100vw;
  height: 100dvh;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: none;
  position: relative;
}
.viewport::-webkit-scrollbar { display: none; }
.room {
  --room-ratio: 2400 / 1792;
  position: relative;
  width: max(100vw, calc(100dvh * 2400 / 1792));
  aspect-ratio: var(--room-ratio);
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
}
.room-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.layer {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}
.surface {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  overflow: hidden;
  transform-origin: 0 0;
  pointer-events: none;
  visibility: hidden;
}
.surface.projected { visibility: visible; }
.monitor { background: #626d78 center / 100% 100% no-repeat; }
.wallet-monitor { background: #5e6575 center / 100% 100% no-repeat; }
.receipt-window { background: transparent; }
canvas { width: 100%; height: 100%; display: block; }
.hotspot {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x pan-y;
}
.hotspot:focus-visible { outline: 2px dashed #ebe7c0; outline-offset: 3px; }
.robot-hotspot { left: 5%; top: 46%; width: 15%; height: 43%; z-index: 6; }
.wallet-hotspot { left: 51%; top: 15%; width: 18%; height: 36%; }
.monitor-hotspot { left: 15%; top: 27%; width: 35%; height: 30%; }
.printer-hotspot { left: 59%; top: 55%; width: 12%; height: 36%; }
.atm-hotspot { left: 72%; top: 25%; width: 24%; height: 62%; }
.speech {
  position: absolute;
  z-index: 10;
  max-width: 330px;
  padding: 18px 23px;
  color: #302f27;
  background: #eee5ce;
  border: 2px solid #29291f;
  border-radius: 45% 42% 38% 40% / 30% 35% 40% 35%;
  font-size: clamp(13px, 1.05cqw, 18px);
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
}
.speech::after {
  content: '';
  position: absolute;
  left: 26%;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: #eee5ce;
  border-right: 2px solid #29291f;
  border-bottom: 2px solid #29291f;
  transform: skew(-20deg) rotate(36deg);
}
.speech[hidden] { display: none; }
.receipt-ink {
  text-align: center;
  color: #3f3a33;
  font: 12px/1.5 Consolas, 'Courier New', monospace;
  opacity: .89;
  padding: 5px 4px;
}
.receipt-ink > b { display: block; font-size: 12px; white-space: nowrap; }
.receipt-ink > span { display: block; }
.receipt-ink hr { border: 0; border-top: 1px dashed #5a504977; margin: 7px 0; }
.receipt-ink strong { font-size: 16px; display: block; margin: 3px 0 4px; }
.receipt-ink small { font-size: 10px; }
.receipt-row { margin: 3px 0; display: flex; flex-direction: column; line-height: 1.3; }
.receipt-row em { font-style: normal; opacity: .65; font-size: 10px; letter-spacing: .5px; }
.receipt-row span, .receipt-row strong { font-size: 12px; margin: 0; }
.barcode { font-size: 20px; letter-spacing: -3px; overflow: hidden; margin: 4px 0 2px; }
.atm-screen {
  color: #acc2ad;
  text-align: center;
  font: 13px/1.3 Consolas, 'Courier New', monospace;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: #555b6c center / 100% 100% no-repeat;
}
.atm-screen > span { font-size: 13px; }
.atm-screen small { font-size: 10px; opacity: .7; margin: 5px 0; }
.atm-screen b { font-size: 12px; font-weight: normal; margin-top: 12px; opacity: .8; }
.atm-screen strong { font-size: 25px; font-weight: normal; }

/* Fixed outside the pannable room so the home link is always reachable. */
.playground-home{position:fixed;z-index:50;top:calc(14px + env(safe-area-inset-top,0px));left:calc(14px + env(safe-area-inset-left,0px));display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #a28b70;border-radius:12px;background:#f6eddf;color:#3f3a33;font:600 12px/1.4 'Malgun Gothic','Apple SD Gothic Neo',sans-serif;text-decoration:none;box-shadow:0 3px 12px #3f3a331a;touch-action:manipulation}
.playground-home:hover{background:#fff8ec}
.playground-home:focus-visible{outline:3px solid #3f3a33;outline-offset:3px}
.playground-home:active{background:#e9dcc7}
