:root { --gold:#e8c58c; --ink:#0a0807; --bg:#0b0908; }
* { box-sizing:border-box; margin:0; padding:0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: #f4efe8;
  font-family: Outfit, system-ui, sans-serif;
}
.hidden { display: none !important; }
.scan {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 80;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  opacity: .18;
}
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
}
.title {
  position: relative;
  justify-content: flex-start;
  padding-top: 18vh;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.84)),
    url("https://images.unsplash.com/photo-1519567241046-7f570e3fdbe5?auto=format&fit=crop&w=1400&q=70") center/cover;
}
.pulse-tag { letter-spacing: .28em; font-size: 11px; color: var(--gold); animation: pulse 1.6s infinite; }
.title h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 10vw, 58px);
  line-height: 1.05;
  margin: 8px 0 8px;
}
.title h1::first-line {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .12em;
}
.sub { color: #cbbfb4; margin-bottom: 22px; font-size: 15px; }
.start-btn {
  width: min(280px, 86vw); height: 56px; border: 0; border-radius: 8px;
  background: var(--gold); color: var(--ink);
  font: 800 15px Outfit, sans-serif; letter-spacing: .16em;
  flex: 0 0 auto;
}
.disclaimer {
  margin-top: auto;
  position: static;
  width: min(340px, 92vw);
  color: #cbbfb4;
  font-size: 11px;
  line-height: 1.45;
  padding-top: 24px;
}
.game-hud small { display: block; color: #cbbfb4; font-size: 12px; margin-top: 2px; letter-spacing: 0; }
@keyframes pulse { 50% { opacity: .55; } }
.intro, .lift { background: #050403; }
.intro-tunnel {
  width: 70vw; height: 34vh; margin-bottom: 22px;
  background: repeating-linear-gradient(90deg, #1a1410 0 18px, #0c0a08 18px 36px);
  transform: perspective(400px) rotateX(18deg);
  animation: rush 1s linear infinite;
}
@keyframes rush { to { background-position: 72px 0; } }
.intro p, .lift p, .lift span { letter-spacing: .2em; color: var(--gold); font-size: 12px; }
.lift b { font-family: "Cormorant Garamond", serif; font-size: 96px; line-height: 1; }

.mall {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: auto;
  height: 100%;
  padding-top: env(safe-area-inset-top);
}
.topbar {
  flex: 0 0 auto;
  background: #0b0908;
  border-bottom: 1px solid rgba(232,197,140,.18);
  z-index: 8;
}
.game-hud {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 6px;
}
.game-hud small { display: block; color: var(--gold); letter-spacing: .16em; font-size: 10px; }
.hud-actions { display: flex; gap: 8px; }
.hud-actions button {
  height: 40px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(232,197,140,.3);
  background: #171311; color: var(--gold);
  font: 700 12px Outfit, sans-serif;
}
.floor-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 12px;
  -webkit-overflow-scrolling: touch;
}
.floor-strip button {
  flex: 0 0 auto;
  height: 40px; padding: 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(232,197,140,.22);
  background: #171311; color: #d7cdc4;
  font: 600 13px Outfit, sans-serif;
  white-space: nowrap;
}
.floor-strip button.on {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}

.stage {
  flex: 1 1 auto;
  min-height: 70vh;
  overflow: visible;
  padding: 12px 14px 36px;
}
.stage-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 8vw, 44px);
}
.stage-head p { color: #b7aaa0; margin: 6px 0 8px; font-size: 14px; }
.stage-head span { color: var(--gold); font-size: 12px; letter-spacing: .08em; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.shop-card {
  text-align: left;
  background: #171311;
  border: 1px solid rgba(232,197,140,.18);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  font: inherit;
}
.shop-thumb {
  height: 88px;
  background: linear-gradient(135deg, #3a2c22, #1a1410);
  display: grid; place-items: center;
  color: var(--gold); letter-spacing: .12em; font-size: 12px;
  background-size: cover; background-position: center;
}
.shop-body { padding: 10px 11px 12px; }
.shop-cat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #c9a36a; }
.shop-body h3 { font-size: 15px; margin: 4px 0 3px; }
.shop-unit { color: #9a8e84; font-size: 12px; }

.map-title { color: var(--gold); letter-spacing: .2em; font-size: 11px; }
.map-list { width: min(420px, 92vw); display: grid; gap: 8px; margin: 18px 0; }
.map-list button {
  height: 54px; border-radius: 12px;
  border: 1px solid rgba(232,197,140,.25);
  background: #171311; color: #f4efe8;
  font: 600 16px Outfit, sans-serif;
}
.map-list button.on { outline: 2px solid var(--gold); }
.ghost {
  background: transparent;
  border: 1px solid rgba(232,197,140,.3);
  color: var(--gold);
  padding: 12px 18px; border-radius: 10px;
}
.shop {
  justify-content: flex-end;
  align-items: stretch;
  text-align: left;
  background: #100c0a;
  padding: 0;
}
.shop-art {
  position: absolute;
  inset: 0 0 48%;
  background: linear-gradient(#4a3728, #1a1410);
  background-size: cover;
  background-position: center;
}
.shop-panel {
  position: relative;
  z-index: 2;
  background: #100c0a;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.shop h2 { font-family: "Cormorant Garamond", serif; font-size: 34px; margin: 6px 0 8px; }
.shop #shopCat { color: var(--gold); letter-spacing: .16em; font-size: 11px; }
.shop #shopUnit { color: #b7aaa0; margin: 10px 0 16px; }
.back-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font: 800 15px Outfit, sans-serif;
  letter-spacing: .08em;
}

@media (min-width: 720px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
  .stage { padding-left: 28px; padding-right: 28px; }
}
