/* ============================================================
   MAIL THIEF 3D — styles.css
   HappyStoner5420 Games
   ============================================================ */

:root {
  --bg:          #06060f;
  --bg-panel:    rgba(8, 8, 18, 0.97);
  --accent:      #ff3333;
  --accent-dim:  rgba(255, 51, 51, 0.25);
  --gold:        #ffd700;
  --gold-dim:    rgba(255, 215, 0, 0.2);
  --green:       #33ff88;
  --orange:      #ff9900;
  --text:        #e2e2e2;
  --text-dim:    #777;
  --border:      rgba(255, 51, 51, 0.4);
  --hud-bg:      rgba(0, 0, 0, 0.65);
  --font-main:   'Courier New', Courier, monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow: hidden;
}

/* ── UTILITY ── */
.hidden { display: none !important; }
.mt-1  { margin-top: 1rem; }

/* ── SCREENS ── */
.screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}

/* ── GAME CANVAS ── */
#game-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: none;
  z-index: 1;
}

/* ── GAME UI LAYER ── */
#game-ui {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 10;
}
#game-ui .screen { pointer-events: all; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  flex-direction: column;
  background: var(--bg);
  z-index: 200;
}
.loading-content { text-align: center; }

.load-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold);
  letter-spacing: 0.6rem;
  text-shadow: 0 0 20px var(--gold), 0 0 60px rgba(255,215,0,0.4);
  animation: titlePulse 2s ease-in-out infinite;
}
.load-subtitle {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.25rem;
  margin-top: 0.4rem;
}
.load-tagline {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.loading-bar-wrap {
  width: 340px; max-width: 80vw;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--accent);
  margin: 1.5rem auto 0.6rem;
}
.loading-bar {
  height: 100%; width: 0%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transition: width 0.15s ease;
}
.loading-text { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.1rem; }

/* ============================================================
   MAIN MENU
   ============================================================ */
#main-menu {
  background: radial-gradient(ellipse at center, #12020a 0%, #030308 70%);
}
.menu-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(255,50,50,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(255,200,0,0.04) 0%, transparent 55%);
  animation: bgBreath 5s ease-in-out infinite;
}
.menu-content {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.title-block { position: relative; display: inline-block; }
.game-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.9;
  color: var(--gold);
  text-shadow:
    0 0 15px var(--gold),
    0 0 50px rgba(255,215,0,0.5),
    5px 5px 0 var(--accent),
    6px 6px 0 #800000;
  letter-spacing: 0.1rem;
}
.title-accent { color: var(--accent); text-shadow: 0 0 15px var(--accent), 4px 4px 0 #800000; }
.title-3d-badge {
  position: absolute;
  top: -0.2rem; right: -2.5rem;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.1rem;
  box-shadow: 0 0 12px var(--accent);
  animation: badgePop 0.5s ease 0.3s both;
}
.tagline {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
  margin-bottom: 0.5rem;
}
.version-text {
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

/* ── MENU BUTTONS ── */
.menu-buttons { display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }

.menu-btn {
  font-family: var(--font-main);
  font-size: 1rem;
  min-width: 260px;
  padding: 0.75rem 2rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--accent);
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.menu-btn::before {
  content: '';
  position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,50,50,0.15), transparent);
  transition: left 0.3s ease;
}
.menu-btn:hover::before { left: 100%; }
.menu-btn:hover {
  background: rgba(255,50,50,0.15);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255,50,50,0.3);
  transform: translateX(4px);
}
.menu-btn.primary {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.menu-btn.primary:hover {
  background: rgba(255,215,0,0.3);
  box-shadow: 0 0 25px rgba(255,215,0,0.4);
  transform: translateX(4px);
}

/* ============================================================
   OVERLAY PANEL (shared by menus / info screens)
   ============================================================ */
.overlay-panel {
  background: var(--bg-panel);
  border: 1px solid var(--accent);
  padding: 2rem;
  max-width: 680px; width: 92%;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 0 40px rgba(255,50,50,0.2), inset 0 0 60px rgba(0,0,0,0.4);
}
.overlay-panel.small { max-width: 380px; text-align: center; }
.overlay-panel h2 {
  color: var(--gold);
  font-size: 1.6rem;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.overlay-panel h3 { color: var(--accent); margin: 1rem 0 0.4rem; font-size: 1rem; text-transform: uppercase; }
.overlay-panel p { color: var(--text); line-height: 1.65; font-size: 0.9rem; margin-bottom: 0.4rem; }
.overlay-panel ul { list-style: none; padding-left: 0.5rem; }
.overlay-panel li { color: var(--text); font-size: 0.88rem; margin-bottom: 0.35rem; padding-left: 1.2rem; position: relative; }
.overlay-panel li::before { content: '▸ '; color: var(--accent); position: absolute; left: 0; }

.hl-gold { color: var(--gold); font-weight: bold; }
.hl-red  { color: var(--accent); font-weight: bold; }

/* Instructions */
.instructions { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.instr-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.3rem 0.2rem;
  border-bottom: 1px solid rgba(255,50,50,0.1);
  font-size: 0.88rem;
}
.key-chip {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  min-width: 80px;
  text-align: center;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Credits */
.credits-body { display: flex; flex-direction: column; gap: 0; }
.credit-block {
  text-align: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,50,50,0.15);
}
.credit-block h3 { margin: 0 0 0.3rem; }
.credit-flavor { color: var(--text-dim); }
.legal-text { font-size: 0.75rem; color: var(--text-dim); font-style: italic; }

/* ============================================================
   HUD
   ============================================================ */
#hud {
  position: absolute; inset: 0;
  pointer-events: none;
}
#hud-top-left {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
#hud-top-right {
  position: absolute; top: 1rem; right: 1rem;
}
.hud-pill {
  background: var(--hud-bg);
  border: 1px solid rgba(255,50,50,0.35);
  padding: 0.35rem 0.7rem;
  display: flex; align-items: center; gap: 0.5rem;
  backdrop-filter: blur(4px);
  font-size: 0.85rem;
}
.hud-icon { font-size: 1rem; }
.hud-sep { color: var(--text-dim); }
.hud-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}
.bar-wrap {
  width: 120px; height: 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.bar { height: 100%; transition: width 0.1s ease; }
.suspicion-bar { width: 0%; background: linear-gradient(90deg, #ff3333, #ff0000); box-shadow: 0 0 6px #ff3333; }
.stamina-bar   { width: 100%; background: linear-gradient(90deg, #33ff88, #00cc55); box-shadow: 0 0 6px #33ff88; }

/* Crosshair */
#crosshair {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  pointer-events: none;
  text-shadow: 0 0 4px black;
  user-select: none;
}

/* Interaction prompt */
#interaction-prompt {
  position: absolute;
  bottom: 22%; left: 50%;
  transform: translateX(-50%);
  background: var(--hud-bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.5rem;
  pointer-events: none;
  animation: promptBob 1s ease-in-out infinite;
}
.key-chip-sm {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  padding: 0.05rem 0.35rem;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Escape prompt */
#escape-prompt {
  position: absolute;
  bottom: 30%; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.escape-flash {
  background: rgba(0,0,0,0.8);
  border: 2px solid var(--green);
  color: var(--green);
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  box-shadow: 0 0 20px rgba(51,255,136,0.4);
  animation: escapeFlash 0.6s ease-in-out infinite alternate;
}

/* Pause menu */
#pause-menu { background: rgba(0,0,0,0.85); z-index: 80; pointer-events: all; }
.pause-flavor { color: var(--text-dim); font-style: italic; margin-bottom: 1rem; font-size: 0.85rem; }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
#notification-area {
  position: absolute;
  top: 5rem; right: 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  pointer-events: none;
  z-index: 60;
}
.notification {
  background: rgba(0,0,0,0.85);
  border-left: 3px solid var(--accent);
  padding: 0.45rem 0.9rem;
  max-width: 320px;
  font-size: 0.82rem;
  animation: slideIn 0.25s ease, fadeOut 0.4s ease 2.8s forwards;
  word-break: break-word;
}
.notification.success { border-left-color: var(--green); }
.notification.warning { border-left-color: var(--orange); }
.notification.danger  { border-left-color: var(--accent); color: #ffaaaa; }
.notification.info    { border-left-color: #4488ff; }

/* ============================================================
   MAIL INVENTORY
   ============================================================ */
.mail-inv-panel { max-width: 600px; }
.inv-subtitle { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.8rem; }

#mail-list {
  display: flex; flex-direction: column; gap: 0.4rem;
  max-height: 380px; overflow-y: auto;
  margin-bottom: 0.5rem;
}
.mail-item-row {
  background: rgba(255,50,50,0.08);
  border: 1px solid rgba(255,50,50,0.3);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.15s ease;
  font-size: 0.88rem;
}
.mail-item-row:hover { background: rgba(255,50,50,0.18); border-color: var(--gold); }
.mail-item-pts { color: var(--gold); font-size: 0.8rem; white-space: nowrap; margin-left: 0.5rem; }

/* ============================================================
   MAIL READER / ENVELOPE
   ============================================================ */
#mail-reader { z-index: 150; pointer-events: all; }
.mail-envelope {
  background: #f0e8d5;
  color: #1a1a1a;
  border: 3px solid #9a7228;
  padding: 1.8rem;
  max-width: 560px; width: 92%;
  box-shadow: 0 0 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.08);
  position: relative;
  font-family: 'Times New Roman', serif;
  animation: envelopePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.env-stamp {
  position: absolute;
  top: -1.4rem; left: 50%;
  transform: translateX(-50%);
  background: #cc1100;
  color: white;
  font-family: var(--font-main);
  font-size: 0.65rem;
  padding: 0.2rem 0.9rem;
  letter-spacing: 0.08rem;
  white-space: nowrap;
}
.env-header {
  border-bottom: 1px dashed #9a7228;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-main);
  font-size: 0.78rem;
}
.env-from { color: #555; }
.env-to   { color: #333; font-style: italic; }
.env-body h3 { font-size: 1.2rem; margin-bottom: 0.7rem; color: #111; }
#mail-body-display {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #222;
  background: rgba(0,0,0,0.04);
  padding: 0.8rem 1rem;
  border-left: 3px solid #9a7228;
  margin-bottom: 0.7rem;
}
.mail-reaction {
  font-size: 0.82rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.mail-value-line {
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: #888;
  text-align: right;
  margin-bottom: 0.5rem;
}
.env-btn {
  width: 100%;
  color: #222;
  background: rgba(154,114,40,0.15);
  border-color: #9a7228;
  font-size: 0.85rem;
  padding: 0.6rem;
}
.env-btn:hover { background: rgba(154,114,40,0.3); color: #111; border-color: #9a7228; box-shadow: none; transform: none; }

/* ============================================================
   GAME OVER & VICTORY
   ============================================================ */
#game-over-screen { background: rgba(0,0,0,0.92); z-index: 200; }
#victory-screen   { background: rgba(0,0,0,0.92); z-index: 200; }

.go-panel {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(255,50,50,0.3);
  text-align: center;
  max-width: 640px;
}
.victory-panel {
  border-color: var(--gold);
  box-shadow: 0 0 50px rgba(255,215,0,0.3);
  text-align: center;
  max-width: 640px;
}
.go-message, .victory-message {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem;
  background: rgba(0,0,0,0.3);
}
.go-stats {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
}
.stat-row {
  display: flex; justify-content: space-between;
  padding: 0.15rem 0;
}
.stat-row span:last-child { color: var(--gold); font-weight: bold; }

/* ============================================================
   SCROLLBARS
   ============================================================ */
::-webkit-scrollbar         { width: 5px; }
::-webkit-scrollbar-track   { background: var(--bg); }
::-webkit-scrollbar-thumb   { background: var(--accent); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes titlePulse {
  0%,100% { text-shadow: 0 0 20px var(--gold), 0 0 60px rgba(255,215,0,0.4); }
  50%     { text-shadow: 0 0 35px var(--gold), 0 0 100px rgba(255,215,0,0.7); }
}
@keyframes bgBreath {
  0%,100% { opacity: 0.6; }
  50%     { opacity: 1; }
}
@keyframes badgePop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(-5deg); opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes promptBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-3px); }
}
@keyframes escapeFlash {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}
/* ============================================================
   STORE OVERLAY
   ============================================================ */
#store-overlay { z-index: 160; pointer-events: all; }

.store-room {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0c04 0%, #2a1408 50%, #1a0c04 100%);
}

/* Ceiling */
.store-ceiling {
  width: 100%; height: 22px;
  background: linear-gradient(180deg, #111 0%, #2a2a2a 100%);
  display: flex; justify-content: space-around; align-items: flex-end;
  flex-shrink: 0;
}
.ceiling-light {
  width: 120px; height: 10px;
  background: linear-gradient(180deg, #fff 0%, #ffffcc 50%, rgba(255,255,180,0) 100%);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255,255,180,0.7), 0 0 40px rgba(255,255,150,0.3);
}

/* Neon sign */
.store-sign-row {
  text-align: center;
  padding: 0.5rem 1rem 0.3rem;
  flex-shrink: 0;
}
.neon-sign {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: 'Courier New', monospace;
  font-weight: bold;
  letter-spacing: 0.2rem;
  color: #ff6600;
  text-shadow: 0 0 8px #ff6600, 0 0 20px #ff6600, 0 0 40px #ff6600;
  animation: neonFlicker 3s ease-in-out infinite;
}
.store-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3rem;
  font-family: var(--font-main);
  text-transform: uppercase;
}

/* Main layout */
.store-main {
  flex: 1;
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
  padding: 0 1rem;
  overflow: hidden;
}

/* Clerk */
.store-clerk-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  max-width: 200px;
  flex-shrink: 0;
}
.clerk-figure-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clerk-svg-container { filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.clerk-speech-bubble {
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  max-width: 160px;
  text-align: center;
  margin-top: 0.3rem;
  position: relative;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.clerk-speech-bubble::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: rgba(255,255,255,0.95);
  border-top: none;
}
.store-counter-surface {
  width: 100%;
  background: linear-gradient(180deg, #6a4020 0%, #4a2c10 100%);
  border: 2px solid #8a5828;
  border-radius: 5px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.register-icon { font-size: 1.5rem; }
.wallet-panel {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0,0,0,0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  border: 1px solid var(--gold);
}
.wallet-label { font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.1rem; }
.wallet-amount { font-size: 1.1rem; color: var(--gold); font-weight: bold; }

/* Effects area */
.effects-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.effect-badge {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-family: var(--font-main);
}

/* Shelves */
.store-shelves-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.shelf-backing {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1a0e06 0%, #2a1808 100%);
  border: 1px solid rgba(100,60,20,0.4);
  border-radius: 4px;
  z-index: 0;
}
.shelf-board {
  position: relative; z-index: 2;
  height: 12px;
  background: linear-gradient(180deg, #8a5828 0%, #6a3818 100%);
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.shelf-top { margin-bottom: 0; }
.shelf-bottom { margin-top: 0; }

/* Item grid */
.store-items-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.7rem;
  overflow-y: auto;
  position: relative; z-index: 1;
  align-content: flex-start;
}

/* Item cards */
.store-item-card {
  background: linear-gradient(145deg, rgba(40,20,8,0.9) 0%, rgba(20,10,4,0.95) 100%);
  border: 1px solid rgba(150,90,30,0.5);
  border-radius: 6px;
  padding: 0.6rem;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.store-item-card:hover {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(60,30,10,0.95) 0%, rgba(35,15,5,0.98) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.item-svg-wrap {
  width: 70px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.item-svg-wrap svg { max-width: 70px; max-height: 90px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
.item-info { width: 100%; text-align: center; }
.item-name {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--text);
  font-weight: bold;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.item-desc {
  font-family: var(--font-main);
  font-size: 0.58rem;
  color: var(--text-dim);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.item-effect-badge {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: var(--font-main);
}
.item-effect-badge.drunk  { background: rgba(180,80,0,0.4);  border: 1px solid #ff8800; color: #ffbb44; }
.item-effect-badge.high   { background: rgba(30,120,0,0.4);   border: 1px solid #44cc00; color: #88ff44; }
.item-effect-badge.chill  { background: rgba(100,100,100,0.4);border: 1px solid #aaa;    color: #ddd; }
.item-effect-badge.none   { background: rgba(80,40,0,0.3);   border: 1px solid #a08040; color: #d0a860; }

.item-buy-btn {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.75rem;
  padding: 0.35rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.15s ease;
  border-radius: 2px;
}
.item-buy-btn:hover { background: rgba(255,215,0,0.3); box-shadow: 0 0 10px rgba(255,215,0,0.3); }
.buy-price { font-weight: bold; }
.buy-label { font-size: 0.65rem; letter-spacing: 0.1rem; }

/* Floor */
.store-floor {
  width: 100%;
  height: 45px;
  flex-shrink: 0;
}

/* Exit button */
.store-exit-btn {
  position: absolute;
  top: 0.7rem; right: 1rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.1rem;
  transition: all 0.15s;
  z-index: 20;
}
.store-exit-btn:hover { background: var(--accent-dim); }

/* Store prompt (near door) */
#store-prompt {
  position: absolute;
  bottom: 26%; left: 50%;
  transform: translateX(-50%);
  background: var(--hud-bg);
  border: 1px solid #44ffff;
  color: #44ffff;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.5rem;
  pointer-events: none;
  animation: promptBob 1s ease-in-out infinite;
}

/* HUD effect badges */
.hud-effect {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  font-size: 0.62rem;
  padding: 0.2rem 0.45rem;
  font-family: var(--font-main);
}

/* HUD wallet */
#wallet-hud { border-color: rgba(255,215,0,0.5); }

/* Neon flicker */
@keyframes neonFlicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
  98% { opacity: 0.6; }
  99% { opacity: 1; }
}

@keyframes envelopePop {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}
