/* 🏘️ Hamster Town: shop signs over the buildings, the 🏧 ATM and 👴 Grandpa Whiskerbolt's shop (see src/ui/townMenus.js) */

/* signs floating over the shops */
.town-sign {
  background: #fff8e6; color: var(--ink); border: 3px solid #c98b4e; border-radius: 14px; padding: 2px 12px;
  font-weight: 900; font-size: 15px; white-space: nowrap; text-align: center; box-shadow: 0 3px 0 rgba(59, 42, 26, 0.25);
}
.town-sign small { display: block; font-size: 11px; font-weight: 800; opacity: 0.75; }
.town-sign.closed { background: #f1ece2; border-color: #b8a585; color: #7a6a55; }
.town-sign.keeper { background: #fff3bf; border-color: #fcc419; animation: bob2 1.2s ease-in-out infinite; }

/* 🏧 ATM */
.atm-screen { background: linear-gradient(#0b7285, #1098ad); color: white; border-radius: 22px; padding: 14px 22px; box-shadow: inset 0 0 0 4px #66d9e8; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.atm-screen b { font-size: 30px; display: block; }
.atm-screen .lbl { color: #c5f6fa; opacity: 1; }
.atm-rate { font-size: 20px; font-weight: 900; }
.atm-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.atm-btns button { min-width: 130px; }

/* 👴 Grandpa Whiskerbolt */
.keeper-head { display: flex; align-items: center; gap: 12px; text-align: left; max-width: 640px; }
.keeper-face { font-size: 54px; line-height: 1; flex: none; }
.keeper-says { position: relative; background: white; border-radius: 18px; padding: 10px 16px; font-size: 17px; font-weight: 800; box-shadow: 0 3px 0 rgba(59, 42, 26, 0.15); }
.keeper-says::before { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); border: 10px solid transparent; border-right-color: white; border-left: 0; }
.moved-note { background: #fff3bf; border: 3px dashed #fcc419; border-radius: 18px; padding: 14px 18px; font-size: 18px; font-weight: 800; max-width: 520px; }

/* 🏘️ town button on the world map */
.town-card { --sky: #fde3c8; --grass: #cdbba0; }
.town-card .world-emoji { font-size: 44px; }

/* ✨ townsfolk + shopkeeper speech bubbles */
.emote-bubble.cozy { font-size: 15px; padding: 3px 10px; border: 2px solid #ffd8a8; }

/* 🚨 raids: the Robo-Rat Captain's health bar */
.hpbar.captain { width: 110px; height: 14px; border: 3px solid #fcc419; }
.hpbar.captain i { background: #e03131; }

/* 🏷️👗🍪🎨 Part 3 shops (src/ui/dressMenus.js) */
.dress-top { align-items: center; }
.dress-pic { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(#fff, #ffe8cc); display: grid; place-items: center; flex: none; }
.dress-pic img { width: 100px; height: 100px; }
.name-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.name-btn { font-size: 15px; padding: 6px 10px; display: inline-flex; flex-direction: column; align-items: center; }
.name-btn.fancy { background: #fff3bf; }
.name-btn.on, .paint-pat.on { background: #b2f2bb; outline: 3px solid #40c057; }
.paint-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.paint-dot { background: none; border: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px; cursor: pointer; font-family: inherit; }
.paint-dot i { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 0 rgba(59, 42, 26, 0.2); display: block; }
.paint-dot.on i { border-color: #40c057; }
.paint-dot:disabled { opacity: 0.4; }
.paint-dot .lbl { font-size: 11px; }
.ham-snack { position: absolute; top: 2px; left: 4px; font-size: 20px; }
.type-btn .snack { position: absolute; left: -4px; bottom: -4px; font-size: 18px; }

/* 🏠 house: colour swatches for wallpaper / floors, and the 🛋️ decorate panel at the bottom (src/ui/decorate.js) */
.house-swatch { width: 44px; height: 34px; border-radius: 10px; border: 3px solid #d8c8a8; flex: none; }
#decor {
  position: fixed; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  width: min(900px, calc(100vw - 16px)); max-height: 46vh; overflow-y: auto; background: #fff8e6; border: 4px solid #c98b4e; border-radius: 22px;
  padding: 8px 10px; box-shadow: 0 6px 0 rgba(59, 42, 26, 0.25); font-family: var(--font); color: var(--ink); text-align: center;
}
#decor.hidden { display: none; }
#decor button { font-family: inherit; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
#decor .lbl { font-size: 12px; }
.decor-bar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.decor-bar button.on, .decor-item.on { background: #ffe8a3; outline: 3px solid #fcc419; }
.decor-bar .done { background: #b2f2bb; }
.decor-items { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 4px 0; }
.decor-item { min-width: 86px; }
.decor-item .shop-emoji { font-size: 28px; }
.decor-doing { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 18px; flex-wrap: wrap; }

@media (max-height: 460px) {
  #decor { max-height: 52vh; padding: 4px 6px; }
  .decor-item { min-width: 70px; }
  .town-sign { font-size: 12px; padding: 1px 8px; }
  .keeper-face { font-size: 40px; }
  .keeper-says { font-size: 14px; }
}
