:root {
  color-scheme: dark;
  font-family: "Courier New", Courier, monospace;
  background: #050706;
  color: #f1f6f3;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #050706;
}
button, input { font: inherit; }

.app-shell {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 210px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #090c0b;
  border-bottom: 1px solid #27332d;
}

.kicker { margin: 0; color: #ec3fa4; font-size: 12px; letter-spacing: .22em; }
h1 { margin: 3px 0 0; font-size: 25px; letter-spacing: .13em; }
.build-marker { color: #58f2a0; border: 1px solid #315c45; padding: 7px 10px; }

.world-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(236,63,164,.12), transparent 38%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    #0a0e0c;
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.club-sign {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  padding: 9px 14px;
  color: #ff52b3;
  border: 2px solid #ff52b3;
  letter-spacing: .16em;
  box-shadow: 0 0 24px rgba(255,82,179,.27);
}

.scene-copy { position: absolute; left: 18px; top: 20px; max-width: 310px; color: #b8c9c0; font-size: 12px; }
.scene-copy p { margin: 0 0 8px; }
.location { color: #58f2a0; letter-spacing: .08em; }

.isometric-floor {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(720px, 62vw);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%) rotate(30deg) skewX(-30deg);
  background: linear-gradient(135deg, #141c18, #0b100d);
  border: 1px solid #365444;
  box-shadow: 0 34px 70px rgba(0,0,0,.52);
  cursor: crosshair;
}

.floor-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(88,242,160,.09) 1px, transparent 1px),
    linear-gradient(rgba(88,242,160,.09) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bar-block, .stage-block {
  position: absolute;
  background: #222b26;
  border: 1px solid #4a6958;
  box-shadow: 8px 8px 0 #080b09;
}
.bar-block { width: 30%; height: 17%; left: 9%; top: 15%; }
.stage-block { width: 26%; height: 26%; right: 8%; bottom: 10%; border-color: #7d3564; }

.monica {
  position: absolute;
  left: 49%;
  top: 52%;
  width: 42px;
  height: 74px;
  z-index: 4;
  transform: translate(-50%, -50%) skewX(30deg) rotate(-30deg);
  transition: left 650ms linear, top 650ms linear;
  pointer-events: none;
}
.hair { position: absolute; left: 8px; top: 0; width: 27px; height: 24px; background: #111; border-radius: 48% 52% 40% 48%; box-shadow: -5px 3px 0 #111; }
.face { position: absolute; left: 12px; top: 8px; width: 20px; height: 19px; background: #cda98e; border: 2px solid #111; }
.jacket { position: absolute; left: 7px; top: 26px; width: 30px; height: 36px; background: #181d1b; border: 2px solid #58f2a0; clip-path: polygon(18% 0,82% 0,100% 100%,0 100%); }
.nameplate { position: absolute; top: 65px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 10px; text-shadow: 0 1px 2px #000; }

.control-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px;
  background: rgba(5,9,7,.9);
  border: 1px solid #315c45;
  color: #b7c8bf;
  font-size: 12px;
}
.control-note strong { color: #58f2a0; margin-top: 4px; }

.terminal {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #020403;
  border-top: 2px solid #58f2a0;
  box-shadow: 0 -8px 30px rgba(88,242,160,.08);
}
.terminal-history { min-width: 0; min-height: 0; overflow-y: auto; padding: 12px 16px; color: #c7d7cf; font-size: 14px; line-height: 1.4; }
.terminal-history p { margin: 0 0 7px; }
.terminal-history span { color: #58f2a0; }
.terminal-input { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 11px 14px; border-top: 1px solid #1b3528; }
.terminal-input label { color: #58f2a0; font-weight: bold; }
.terminal-input input { min-width: 0; padding: 11px; color: #fff; background: #07100b; border: 1px solid #315c45; outline: none; }
.terminal-input input:focus { border-color: #58f2a0; box-shadow: 0 0 0 2px rgba(88,242,160,.11); }
.terminal-input button { padding: 11px 16px; border: 0; background: #58f2a0; color: #041007; font-weight: 700; cursor: pointer; }

@media (max-width: 760px) {
  .app-shell { grid-template-rows: 70px minmax(0, 1fr) 235px; }
  .scene-copy { display: none; }
  .isometric-floor { width: 88vw; }
  .control-note { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
}


.context-menu {
  position: fixed;
  z-index: 30;
  display: none;
  min-width: 170px;
  padding: 6px;
  background: #080d0a;
  border: 1px solid #58f2a0;
  box-shadow: 0 12px 34px rgba(0,0,0,.62);
}

.context-menu.is-open {
  display: grid;
}

.context-menu button {
  width: 100%;
  padding: 9px 10px;
  color: #d9e8e0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.context-menu button:hover,
.context-menu button:focus {
  color: #061008;
  background: #58f2a0;
  outline: none;
}


