:root {
  --cream: #fff6ea;
  --peach: #fde3c8;
  --wall: #ffe4ef;
  --wood: #c9843a;
  --wood-dark: #8a5524;
  --coral: #ff6b8a;
  --coral-dark: #e24b6c;
  --sage: #5fb38a;
  --gold: #f4c430;
  --ink: #4a3040;
  --muted: #8a6a78;
  --shadow: 0 10px 24px rgba(74, 48, 64, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #ffe8c8 0, transparent 40%),
    radial-gradient(circle at 90% 80%, #ffd6e6 0, transparent 35%),
    var(--peach);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

#app {
  height: 100%;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.start-card {
  margin: auto;
  width: min(460px, 94vw);
  background: #fff;
  border-radius: 32px;
  padding: 28px 22px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  max-height: min(94vh, 920px);
  overflow-y: auto;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  background: var(--cream);
  border-radius: 16px;
}

.auth-tab {
  flex: 1;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
}

.auth-tab.is-active {
  color: #fff;
  background: linear-gradient(#ff8aa3, var(--coral-dark));
  box-shadow: 0 3px 0 #c83b5b;
}

.auth-panel .start-input {
  margin-bottom: 12px;
}

.auth-hint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.legal-links {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-links a {
  color: #c83b5b;
  font-weight: 600;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-links span {
  margin: 0 6px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.consent-check a {
  color: #c83b5b;
  font-weight: 600;
}

.settings-legal {
  margin-top: 16px;
  text-align: center;
}

.auth-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c83b5b;
}

.auth-msg.is-ok {
  color: #2d7a56;
}

.account-status {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #e8f8ef;
  color: #2d7a56;
  font-weight: 600;
  font-size: 0.92rem;
}

.start-extra {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.btn-link {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  background: none;
  color: var(--coral-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 12px;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #f0e6ea;
  text-align: left;
}

.leaderboard-list .rank {
  font-weight: 700;
  color: var(--coral-dark);
}

.leaderboard-list .shop {
  font-weight: 600;
  min-width: 0;
}

.leaderboard-list .shop small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

.leaderboard-list .score {
  font-weight: 600;
  white-space: normal;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: right;
  min-width: 100px;
}

.start-preview {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 42px;
}

.preview-item {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--cream);
  border-radius: 20px;
  animation: bob 2.4s ease-in-out infinite;
}

.item-art.item-emoji {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  border-radius: 14px;
  background: color-mix(in srgb, var(--item-c) 28%, #fff8ef);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--item-a) 45%, transparent);
  vertical-align: middle;
  user-select: none;
}

.item-emoji-glyph {
  display: block;
  line-height: 1;
  transform: translateZ(0);
}

.item-art.item-polish {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #fff4ee;
  box-shadow: inset 0 0 0 2px rgba(232, 168, 148, 0.35);
  vertical-align: middle;
  overflow: hidden;
}

.item-art.item-polish svg {
  display: block;
  width: 88%;
  height: 88%;
  margin: auto;
}

.item-art.item-kit {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  overflow: visible;
}

.item-art.item-kit svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  overflow: visible;
}

.preview-item:nth-child(2) { animation-delay: 0.2s; }
.preview-item:nth-child(3) { animation-delay: 0.4s; }

.start-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin: 8px 0 12px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.lang-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(74, 48, 64, 0.12);
}

.home-social {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  text-align: left;
}

.home-block {
  background: rgba(255, 248, 239, 0.9);
  border-radius: 16px;
  padding: 10px 12px;
}

.home-block-title {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.home-top-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.home-top-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 4px 0;
}

.home-top-list .likes {
  color: var(--coral-dark);
  font-weight: 700;
}

.home-empty {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.home-visit-card {
  display: grid;
  gap: 6px;
}

.premium-cta {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #c77dff, #ee6a8a 55%, #ff8fab);
  box-shadow: 0 6px 0 #9b4dca, 0 10px 18px rgba(155, 77, 202, 0.25);
  display: grid;
  gap: 2px;
}

.premium-cta strong {
  font-size: 1rem;
}

.premium-cta span {
  font-size: 0.88rem;
  opacity: 0.95;
}

.premium-cta:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #9b4dca;
}

.premium-card {
  max-height: min(86vh, 720px);
  overflow: auto;
}

.premium-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 4px 0 8px;
}

.premium-section-title {
  font-size: 1rem;
  margin: 12px 0 6px;
}

.premium-list {
  margin: 0 0 4px 1.1rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.premium-list li {
  margin-bottom: 4px;
}

.home-top-list button.home-shop-link {
  all: unset;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}

.home-top-list button.home-shop-link:hover .name {
  color: var(--coral-dark);
}

.home-visit-card .visit-daily-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #fff, #ffe8f3);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(226, 75, 108, 0.25);
}

.home-visit-card .visit-daily-btn small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.visit-card {
  max-width: min(480px, 94vw);
}

.visit-shop-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 4px 0 6px;
}

.visit-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  min-height: 48px;
}

.visit-items .visit-chip {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  font-size: 1.4rem;
}

.visit-items .visit-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visit-actions .btn {
  flex: 1;
  min-width: 120px;
}

.visit-gift-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(74, 48, 64, 0.12);
}

.visit-gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.visit-gift-grid button {
  border: 0;
  border-radius: 14px;
  padding: 10px 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #fff6ea;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(74, 48, 64, 0.12);
}

.visit-gift-grid button .emoji {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.visit-gift-grid button:disabled {
  opacity: 0.45;
  cursor: default;
}

.start-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.start-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.start-input {
  width: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 14px;
  border: 3px solid var(--wood);
  border-radius: 16px;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--cream);
}

.btn-big, .btn {
  font-family: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(#ff8aa3, var(--coral-dark));
  box-shadow: 0 6px 0 #c83b5b;
}

.btn-big {
  font-size: 1.25rem;
  padding: 14px 28px;
  border-radius: 999px;
}

.btn {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 16px;
  white-space: nowrap;
}

.btn-secondary {
  background: linear-gradient(#7ad0a4, #3e9a6e);
  box-shadow: 0 6px 0 #2d7a56;
}

.btn:active, .btn-big:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #c83b5b;
}

.btn-secondary:active {
  box-shadow: 0 3px 0 #2d7a56;
}

.btn:disabled {
  opacity: 0.45;
  transform: none;
  cursor: default;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  z-index: 2;
  flex-wrap: wrap;
}

.topbar > .settings-btn {
  order: -1;
  flex-shrink: 0;
}

.mission-bar {
  display: none;
}

.missions-btn {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 6px 12px;
  background: #fff;
  color: var(--coral-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(180, 90, 110, 0.25);
}

.missions-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(180, 90, 110, 0.25);
}

.missions-btn.done {
  background: #e8fff0;
  color: #1f7a4d;
}

.missions-btn-title {
  white-space: nowrap;
}

.missions-btn-progress {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
}

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 480px);
  overflow: auto;
  padding-right: 2px;
}

.mission-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
}

.mission-card.mission-active {
  box-shadow: inset 0 0 0 2px #ee6a8a;
}

.mission-card.mission-done {
  opacity: 0.78;
}

.mission-card.mission-locked {
  filter: grayscale(0.35);
  opacity: 0.7;
}

.mission-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mission-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mission-card h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
  line-height: 1.25;
}

.mission-progress,
.mission-reward {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.mission-reward {
  margin-top: 4px;
  color: #1f7a4d;
  font-weight: 600;
}

.shop-sign {
  display: inline-block;
  background: #fff;
  border: 4px solid var(--wood);
  border-radius: 14px;
  padding: 6px 14px;
  font-weight: 700;
  color: var(--coral-dark);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.settings-btn {
  flex-shrink: 0;
}

.settings-card .start-input {
  text-align: left;
  margin-bottom: 12px;
}

.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-item {
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}

.settings-item:hover {
  background: #ffe0e8;
}

.settings-item.settings-danger {
  color: #c83b5b;
}

.settings-panel {
  text-align: left;
}

.settings-back {
  display: inline-block;
  margin-bottom: 12px;
}

.btn-danger {
  background: linear-gradient(#ff7a7a, #d64545) !important;
  box-shadow: 0 6px 0 #a83232 !important;
}

.stats {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.stat {
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.top-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.shop-toggle {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
  opacity: 0.35;
}

.shop-toggle:disabled {
  cursor: default;
}

.shop-toggle.ready {
  opacity: 1;
}

.shop-toggle.shop-open.ready {
  background: #68d391;
  color: #1a202c;
}

.shop-toggle.shop-close.ready {
  background: #fc8181;
  color: #742a2a;
}

.shop-toggle.shop-open:not(.ready) {
  background: #c6f6d5;
  color: #276749;
}

.shop-toggle.shop-close:not(.ready) {
  background: #fed7d7;
  color: #9b2c2c;
}

.shop {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  --stock-left: 168px;
  --stock-right: 290px;
  --floor-h: 216px;
  --door-base: calc(var(--floor-h) - 28px);
  --door-h: min(52%, 236px);
}

.shop-scroller {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.shop-stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.shop-swipe-hint,
.shop-pan-bar {
  display: none !important;
}

.shop-wall {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  --wall-a: #ffdce8;
  --wall-b: #ffe9f1;
  background:
    repeating-linear-gradient(
      90deg,
      var(--wall-a) 0 28px,
      var(--wall-b) 28px 56px
    );
  min-height: 220px;
}

.shop-wall[data-wall-pattern="solid"] {
  background: var(--wall-a);
}

.shop-wall[data-wall-pattern="stripes"] {
  background:
    repeating-linear-gradient(
      90deg,
      var(--wall-a) 0 28px,
      var(--wall-b) 28px 56px
    );
}

.shop-wall[data-wall-pattern="dots"] {
  background-color: var(--wall-b);
  background-image: radial-gradient(circle, var(--wall-a) 3px, transparent 3.5px);
  background-size: 22px 22px;
}

.shop-wall[data-wall-pattern="checks"] {
  background-color: var(--wall-b);
  background-image:
    linear-gradient(45deg, var(--wall-a) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wall-a) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wall-a) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wall-a) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.street-window {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 22%;
  bottom: calc(var(--floor-h, 216px) + 10%);
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  box-shadow:
    0 0 0 8px #c9843a,
    0 0 0 12px #8a5524,
    0 10px 22px rgba(74, 55, 40, 0.2);
}

.street-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.street-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6eb5ff 0%, #a8d8ff 28%, #d6f0ff 52%, #ffe8c8 78%, #f0d9b5 100%);
}

.street-sun {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #ffd166 60%, #f4a261);
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.75);
}

.street-hills {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 72%;
  background:
    radial-gradient(ellipse 58% 90% at 12% 100%, #74c69d 0 64%, transparent 65%),
    radial-gradient(ellipse 70% 100% at 48% 100%, #52b788 0 66%, transparent 67%),
    radial-gradient(ellipse 55% 85% at 88% 100%, #40916c 0 62%, transparent 63%),
    linear-gradient(180deg, transparent 0%, rgba(64, 145, 108, 0.35) 55%, #2d6a4f 100%);
}

.street-trees {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 85%;
  pointer-events: none;
  background:
    linear-gradient(#6b4226, #6b4226) 10% 62% / 8px 42% no-repeat,
    linear-gradient(#5a3618, #5a3618) 28% 58% / 9px 48% no-repeat,
    linear-gradient(#6b4226, #6b4226) 55% 64% / 8px 40% no-repeat,
    linear-gradient(#5a3618, #5a3618) 78% 60% / 9px 46% no-repeat,
    linear-gradient(#6b4226, #6b4226) 94% 66% / 7px 36% no-repeat,
    radial-gradient(circle at 10% 38%, #2d6a4f 0 28px, transparent 29px),
    radial-gradient(circle at 14% 30%, #40916c 0 22px, transparent 23px),
    radial-gradient(circle at 7% 34%, #52b788 0 18px, transparent 19px),
    radial-gradient(circle at 28% 28%, #1b4332 0 32px, transparent 33px),
    radial-gradient(circle at 32% 20%, #2d6a4f 0 24px, transparent 25px),
    radial-gradient(circle at 24% 24%, #40916c 0 20px, transparent 21px),
    radial-gradient(circle at 55% 36%, #2d6a4f 0 26px, transparent 27px),
    radial-gradient(circle at 59% 28%, #40916c 0 20px, transparent 21px),
    radial-gradient(circle at 78% 30%, #1b4332 0 30px, transparent 31px),
    radial-gradient(circle at 82% 22%, #2d6a4f 0 22px, transparent 23px),
    radial-gradient(circle at 94% 40%, #40916c 0 22px, transparent 23px),
    radial-gradient(circle at 97% 34%, #52b788 0 16px, transparent 17px);
}

.street-flowers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  height: 28%;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 55%, #ff7eb3 0 5px, transparent 6px),
    radial-gradient(circle at 6% 55%, #ffe0ee 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 18% 70%, #fee440 0 5px, transparent 6px),
    radial-gradient(circle at 18% 70%, #fff7d6 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 34% 48%, #c77dff 0 5px, transparent 6px),
    radial-gradient(circle at 34% 48%, #f3e8ff 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 48% 75%, #ff8fab 0 4px, transparent 5px),
    radial-gradient(circle at 62% 52%, #4cc9f0 0 5px, transparent 6px),
    radial-gradient(circle at 62% 52%, #e0f7ff 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 76% 68%, #80ed99 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 88% 45%, #ffd166 0 5px, transparent 6px),
    radial-gradient(circle at 96% 72%, #ee6a8a 0 4px, transparent 5px),
    linear-gradient(#2d6a4f, #2d6a4f) 6% 78% / 2px 32% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 18% 88% / 2px 24% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 34% 72% / 2px 36% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 48% 90% / 2px 20% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 62% 76% / 2px 30% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 76% 86% / 2px 22% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 88% 70% / 2px 34% no-repeat,
    linear-gradient(#2d6a4f, #2d6a4f) 96% 88% / 2px 20% no-repeat;
}

.street-path {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.street-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 42%, rgba(180,220,255,0.12));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35);
  pointer-events: none;
}

.street-frame {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  margin-left: -4px;
  background: linear-gradient(#d4a373, #8a5524);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

/* Stessa scala dei clienti: gambe sotto il bordo vetrina (clip da overflow) */
.street-person {
  position: absolute;
  bottom: -102px;
  width: 112px;
  height: 188px;
  margin-left: -56px;
  transform-origin: 50% 100%;
  transition: filter 0.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.street-person-face {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}

.street-person .kid {
  width: 112px;
  height: 188px;
  display: block;
  filter: drop-shadow(2px 4px 0 rgba(60, 40, 20, 0.18));
}

.street-person.is-looking {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

.street-person:not(.is-looking) {
  animation: street-walk 0.9s ease-in-out infinite;
}

@keyframes street-walk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.shop.floor-vetrina .shop-wall {
  opacity: 0.92;
}

.shop.floor-vetrina .wall-stock,
.shop.floor-vetrina .checkout {
  display: none !important;
}

.customer-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  padding: 0 var(--stock-right) 0 var(--stock-left);
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.customer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 1;
  animation: walk-in 1.1s ease-out;
}

.customer.leaving,
.customer.leaving.happy {
  animation: walk-out-door 0.85s ease-in forwards;
}

.customer-area.crowd-2 .kid {
  width: 96px;
  height: 164px;
}

.customer-area.crowd-3,
.customer-area.crowd-4 {
  padding: 0 108px 0 96px;
}

.customer-area.crowd-3 .customer,
.customer-area.crowd-4 .customer {
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
}

.customer-area.crowd-3 .kid {
  width: 84px;
  height: 146px;
}

.customer-area.crowd-4 .kid {
  width: 72px;
  height: 128px;
}

.customer-area.crowd-3 .bubble,
.customer-area.crowd-4 .bubble {
  min-width: 124px;
  padding: 8px 10px 14px;
}

.customer-area.crowd-3 .ask-text,
.customer-area.crowd-4 .ask-text {
  font-size: 0.95rem;
}

.customer-area.crowd-3 .bubble::after,
.customer-area.crowd-4 .bubble::after {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
  border-right-color: transparent;
}

.customer .bubble {
  display: none;
}

.customer.asking .bubble {
  display: flex;
}

.customer .btn-tomorrow {
  display: none;
  pointer-events: auto;
  margin-top: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(#7eb6ff, #3a7bd5);
  box-shadow: 0 4px 0 #2858a0;
}

.customer .btn-goodbye {
  display: none;
  pointer-events: auto;
  margin-top: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(#ff8a8a, #e63946);
  box-shadow: 0 4px 0 #9d0208;
}

.customer.need-order .btn-tomorrow {
  display: block;
}

.customer.is-returning .btn-goodbye {
  display: block;
}

.btn-tomorrow-bar {
  background: linear-gradient(#7eb6ff, #3a7bd5);
  box-shadow: 0 6px 0 #2858a0;
}

.btn-goodbye-bar {
  background: linear-gradient(#ff8a8a, #e63946);
  box-shadow: 0 6px 0 #9d0208;
}

.btn-discard {
  background: linear-gradient(#ffb4a2, #e76f51);
  box-shadow: 0 6px 0 #9d4e3a;
  color: #3d1f14;
}

.btn-archive {
  background: linear-gradient(#b8c0ff, #7b8cff);
  box-shadow: 0 6px 0 #4c5fd7;
  color: #1d2450;
}

.customer.happy .kid {
  transform: translateY(-6px);
}

.bubble {
  background: #fff;
  border-radius: 22px;
  padding: 12px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 200px;
  position: relative;
  animation: pop-ask 0.35s ease-out;
}

.bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 22px;
  border: 10px solid transparent;
  border-right-color: #fff;
  border-left: 0;
}

.ask-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

.bubble .item-art {
  width: 52px;
  height: 52px;
}

.patience {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 6px;
  background: #f1e4ea;
  border-radius: 99px;
  overflow: hidden;
}

.patience > span {
  display: block;
  height: 100%;
  background: var(--sage);
  width: 100%;
}

.kid-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.kid-name {
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.kid {
  width: 112px;
  height: 188px;
  transition: transform 0.2s;
}

.door {
  position: absolute;
  left: 4px;
  bottom: var(--door-base);
  width: 86px;
  height: var(--door-h);
  z-index: 4;
  pointer-events: none;
}

.entrance-door {
  left: 4px;
}

.floor-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 6;
  pointer-events: auto;
}

.floor-ctrl-btn {
  width: 36px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(#fff8ef, #f0d9c0);
  color: #6b3f1d;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #8a5524;
  font-family: inherit;
  line-height: 1;
}

.floor-ctrl-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8a5524;
}

.floor-ctrl-btn.locked {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.floor-ctrl-btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: 0 2px 0 #b89878;
}

.floor-indicator {
  min-width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #5c3d2e;
  color: #fff8ef;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #3d281c;
}

.door-frame {
  position: relative;
  height: 100%;
  padding: 8px 7px 0;
  background: linear-gradient(#8b5a2b, #6b3f1d);
  border-radius: 10px 10px 0 0;
  box-shadow: 4px 0 0 rgba(80, 40, 10, 0.2);
}

.door-panel {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #c9843a, #a86b2e 40%, #d49248);
  border-radius: 6px 6px 0 0;
}

.door-glass {
  position: absolute;
  left: 10px;
  right: 10px;
  background: linear-gradient(135deg, #d6f0ff 0%, #8ecae6 55%, rgba(255,255,255,0.7) 100%);
  border: 3px solid #6b3f1d;
  border-radius: 4px;
}

.door-glass.upper {
  top: 12px;
  height: 38%;
}

.door-glass.lower {
  top: 48%;
  height: 34%;
}

.door-sign {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  background: #80ed99;
  color: #1b4332;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.door-sign.closed {
  background: #fc8181;
  color: #742a2a;
}

.door-handle {
  position: absolute;
  right: 8px;
  top: 52%;
  width: 8px;
  height: 22px;
  background: linear-gradient(#f4c430, #c9a227);
  border-radius: 4px;
  box-shadow: 1px 2px 0 #6b3f1d;
}

.entrance-door::after,
.vetrina-door::after,
.elevator::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -4px;
  height: 10px;
  background: #c44536;
  border-radius: 3px;
  box-shadow: 0 2px 0 #6b2a22;
}

.elevator::after {
  left: 7px;
  right: 7px;
  width: auto;
}

.elevator {
  position: absolute;
  left: 96px;
  bottom: var(--door-base);
  width: 58px;
  height: var(--door-h);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.elevator .elevator-panel,
.elevator .floor-controls {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  pointer-events: auto;
  flex-shrink: 0;
  width: 100%;
  background: #2d3748;
  padding: 5px 4px;
  border-radius: 8px;
  box-sizing: border-box;
}

.elevator .floor-ctrl-btn {
  width: 100%;
  max-width: 44px;
  height: 26px;
  border-radius: 8px;
}

.elevator .floor-indicator {
  min-width: 0;
  width: 100%;
  max-width: 44px;
  height: 26px;
  font-size: 0.8rem;
}

.elevator-shaft {
  flex: none;
  width: 44px;
  height: 100%;
  background: repeating-linear-gradient(#b8c0cc, #8e99a8 12px);
  border: 4px solid #4a5568;
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
}

.elevator-car {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 36px;
  bottom: 8px;
  background: #f6e05e;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: bottom 0.45s ease;
  font-size: 1.1rem;
}

.shop.floor-1 .elevator-car {
  bottom: calc(100% - 44px);
}

.checkout {
  position: absolute;
  right: 0;
  top: 42%;
  bottom: 0;
  width: 96px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vetrina-door {
  position: absolute;
  right: 102px;
  bottom: var(--door-base);
  left: auto;
  width: 172px;
  height: var(--door-h);
  z-index: 6;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  font-family: inherit;
  pointer-events: auto;
}

.vetrina-door .door-frame,
.vetrina-door-pair {
  position: relative;
  height: 100%;
  display: flex;
  gap: 3px;
  box-sizing: border-box;
  padding: 8px 6px 0;
  background: linear-gradient(#8b5a2b, #6b3f1d);
  border-radius: 10px 10px 0 0;
  box-shadow: 4px 0 0 rgba(80, 40, 10, 0.2);
}

.vetrina-door-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a3728;
  background: rgba(255, 248, 240, 0.94);
  border: 2px solid #c9843a;
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 2px 0 rgba(90, 50, 20, 0.12);
  z-index: 2;
}

.vetrina-leaf {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #c9843a, #a86b2e 40%, #d49248);
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 2px #8a5524;
}

.vetrina-leaf-left {
  background: linear-gradient(90deg, #d49248, #c9843a 55%, #a86b2e);
}

.vetrina-leaf-right {
  background: linear-gradient(90deg, #a86b2e, #c9843a 45%, #d49248);
}

.vetrina-leaf .door-handle {
  right: 8px;
}

.vetrina-leaf .door-handle.left-handle {
  right: auto;
  left: 8px;
}

.vetrina-leaf-glass {
  display: none;
}

.vetrina-door-lock {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  font-size: 1.35rem;
  z-index: 3;
  pointer-events: none;
}

.vetrina-door.is-open .vetrina-door-lock {
  display: none;
}

/* Sbloccata: doppie porte a vetro */
.vetrina-door.is-open .vetrina-door-pair {
  background: linear-gradient(#7a9bb0, #4a6678);
  box-shadow:
    inset 0 0 0 2px #3d5566,
    4px 0 0 rgba(40, 60, 80, 0.18);
}

.vetrina-door.is-open .vetrina-leaf {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(200,230,255,0.25) 35%, rgba(140,190,230,0.35) 100%),
    linear-gradient(180deg, #d8eefc 0%, #8ecae6 55%, #5fa8d3 100%);
  box-shadow:
    inset 0 0 0 3px #5c7a8a,
    inset 0 0 18px rgba(255,255,255,0.35);
}

.vetrina-door.is-open .vetrina-leaf-glass {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  border: 2px solid rgba(90, 120, 140, 0.45);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(180,220,255,0.15) 50%, rgba(120,180,220,0.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.vetrina-door.is-open .vetrina-leaf-glass.upper {
  top: 12px;
  height: 36%;
}

.vetrina-door.is-open .vetrina-leaf-glass.lower {
  top: 52%;
  height: 32%;
}

.vetrina-door.is-open .door-handle {
  background: linear-gradient(#e8eef4, #8a9aaa);
  box-shadow: 1px 2px 0 #3d5566;
}

.vetrina-door.is-locked .vetrina-leaf {
  filter: saturate(0.9) brightness(0.94);
}

.vetrina-door.is-locked:active .vetrina-leaf {
  transform: scale(0.985);
  transform-origin: bottom center;
}

.vetrina-door.is-open:active .vetrina-leaf {
  filter: brightness(1.05);
}

.vetrina-exit {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 8;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(#ff8aa3, #e85a7a);
  box-shadow: 0 4px 0 rgba(160, 40, 70, 0.25);
  cursor: pointer;
}

.shop.floor-vetrina .vetrina-door,
.shop.floor-vetrina .entrance-door,
.shop.floor-vetrina .elevator {
  display: none !important;
}

.checkout-body {
  position: relative;
  height: 35%;
  min-height: 123px;
  background: linear-gradient(180deg, #e8c089 0%, #c9843a 45%, #8a5524 100%);
  border-radius: 12px 0 0 0;
  box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.12), -6px 0 0 #5c3317;
  display: flex;
  justify-content: flex-end;
  padding: 8px 8px 0 0;
}

.checkout-body::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -8px;
  right: 0;
  height: 16px;
  background: linear-gradient(#f6e0c2, #e0b07a);
  border-radius: 8px 0 0 0;
  box-shadow: 0 2px 0 #8a5524;
}

.checkout-body::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 16px;
  background: #6b3f1d;
  border-radius: 3px;
  box-shadow: inset 0 2px 0 #3d2412;
}

.register {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 56px;
  margin-top: -32px;
  margin-right: 2px;
  filter: drop-shadow(0 3px 0 rgba(60, 40, 20, 0.2));
}

.shop-floor {
  height: var(--floor-h);
  flex-shrink: 0;
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      #e6b077 0 18px,
      #d89a5a 18px 36px
    );
  box-shadow: inset 0 18px 22px rgba(90, 50, 20, 0.22);
}

.wall-stock {
  position: absolute;
  inset: 0;
  margin: 0 var(--stock-right) 0 var(--stock-left);
  z-index: 2;
  pointer-events: none;
}

.hangers,
.shelves {
  --gap: 8px;
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}

.hangers {
  top: 33.333%;
  padding-top: 16px;
}

.shelves {
  bottom: 0;
  align-items: end;
  padding-bottom: 6px;
}

.hangers::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2%;
  right: 2%;
  height: 7px;
  background: linear-gradient(#d8d8d8, #8a8a8a 55%, #6a6a6a);
  border-radius: 4px;
  box-shadow: 0 2px 0 #4a4a4a;
}

.hanger,
.shelf,
.cabinet-unit {
  pointer-events: auto;
}

.hanger {
  height: 118px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}

.hanger-wire {
  width: 56px;
  height: 32px;
  z-index: 1;
}

.hanger .item-art {
  width: 58px;
  height: 58px;
  margin-top: -10px;
  filter: drop-shadow(0 4px 0 rgba(90, 50, 20, 0.18));
}

.hanger.empty .plus {
  color: #b88858;
  font-size: 1.3rem;
  opacity: 0.45;
  margin-top: -4px;
}

.hanger.pulse {
  animation: pulse 1s ease-in-out infinite;
}

.hanger.picked,
.shelf.picked {
  outline: 3px solid #ee6a8a;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(238, 106, 138, 0.28);
  z-index: 2;
}

.hanger.wrong {
  animation: shake 0.35s;
}

.hanger.locked,
.shelf.locked {
  opacity: 0.5;
  cursor: pointer;
}

.lock-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b3f1d;
  margin-top: 2px;
}

.shelf {
  height: 88px;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 16px;
  margin-bottom: calc(var(--floor-h) - 6px);
}

.shelf::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 12px;
  background: #6b3f1d;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.shelf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 14px;
  background: linear-gradient(#e8b56a, var(--wood), var(--wood-dark));
  border-radius: 3px;
  box-shadow: 0 4px 0 #5c3317;
}

.shelf.empty {
  background: transparent;
}

.shelf.empty .plus {
  color: #b88858;
  font-size: 1.6rem;
  opacity: 0.45;
  transform: translateY(-6px);
}

.shelf .item-art {
  width: 64px;
  height: 64px;
  transform: translateY(-8px);
  filter: drop-shadow(0 4px 0 rgba(90, 50, 20, 0.18));
}

.shelf.locked {
  opacity: 0.35;
  cursor: default;
}

.shelf-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  cursor: ns-resize;
  z-index: 2;
  touch-action: none;
}

.shelf .item-art,
.shelf .plus,
.shelf .lock-label {
  position: relative;
  z-index: 3;
}

.shelf.lifting,
.cabinet-unit.lifting {
  z-index: 6;
}

.cabinet-unit {
  position: relative;
  width: 100%;
  justify-self: stretch;
  height: auto;
  padding: 4px 6px 9px;
  background:
    linear-gradient(90deg, #6b3f1d 0 5px, #c9843a 5px, #e8b56a 50%, #c9843a calc(100% - 5px), #6b3f1d 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 0 0 2px #5c3317, 2px 3px 0 rgba(60, 30, 10, 0.18);
  align-self: end;
  /* Un po' più basso delle mensole: non copre i vestiti */
  margin-bottom: calc(var(--floor-h) - 22px);
  box-sizing: border-box;
}

.cabinet-unit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: #5c3317;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 0 rgba(60, 30, 10, 0.25);
  z-index: 0;
  pointer-events: none;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 28px);
  gap: 3px;
  position: relative;
  z-index: 1;
}

.cabinet-cell {
  border: 0;
  width: 100%;
  height: 28px;
  background: rgba(72, 38, 12, 0.28);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #5c3317;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
  box-sizing: border-box;
}

.cabinet-cell .item-art {
  width: 26px;
  height: 26px;
  transform: none;
  filter: drop-shadow(0 1px 0 rgba(90, 50, 20, 0.18));
}

.cabinet-cell .plus {
  color: #fff3dc;
  opacity: 0.5;
  font-size: 0.95rem;
  line-height: 1;
}

.cabinet-cell.pulse {
  animation: pulse 1s ease-in-out infinite;
}

.cabinet-cell.picked {
  outline: 2px solid #ee6a8a;
  outline-offset: 1px;
}

.cabinet-cell.wrong {
  animation: shake 0.35s;
}

.btn.picking {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.shelf.pulse {
  animation: pulse 1s ease-in-out infinite;
}

.shelf.wrong {
  animation: shake 0.35s;
}

.counter {
  background: #5c3d2e;
  color: #fff;
  padding: 10px 14px 16px;
}

.hint {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 1.5em;
}

.counter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.deliveries, .boxes {
  display: flex;
  gap: 8px;
  min-height: 64px;
  align-items: center;
  flex: 1;
}

.delivery {
  position: relative;
  width: 70px;
  background: #7a5342;
  border: 0;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  font-size: 0.75rem;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.delivery-cancel {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fc8181;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
}

.delivery .bar {
  height: 7px;
  background: #3d291f;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.delivery .bar > span {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0;
}

.box {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #f4a261;
  border: 3px solid #e76f51;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.box.selected {
  outline: 4px solid var(--gold);
  transform: translateY(-4px);
}

.box.pulse {
  animation: pulse 1s ease-in-out infinite;
}

.box .item-art {
  width: 42px;
  height: 42px;
}

.counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(74, 48, 64, 0.45);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 16px;
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
}

.modal-card.catalog-wide {
  width: min(1240px, 96vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #ff9ebd 0%, #ee6a8a 55%, #e24b6c 100%);
  box-shadow:
    0 3px 0 #c44569,
    0 6px 14px rgba(196, 69, 105, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(120, 30, 50, 0.2);
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
  filter: brightness(1.06);
}

.modal-close:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #c44569,
    0 3px 8px rgba(196, 69, 105, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-sub {
  color: var(--muted);
  margin: 6px 0 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.catalog-grid.catalog-by-category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
  align-items: start;
}

.catalog-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.catalog-section-title {
  margin: 0;
  padding: 4px 2px;
  font-size: 1.05rem;
  color: #5c3d2e;
  border-bottom: 2px solid rgba(226, 75, 108, 0.25);
  text-align: center;
}

.catalog-section-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-section-grid .card {
  padding: 8px 6px;
}

.catalog-section-grid .card .item-art {
  width: 52px;
  height: 52px;
}

.catalog-grid.catalog-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.catalog-8 .card {
  padding: 8px 6px;
}

.catalog-8 .card .item-art {
  width: 52px;
  height: 52px;
}

.catalog-8 .card .item-art.order-art {
  cursor: pointer;
  transition: transform 0.12s ease;
}

.catalog-8 .card .item-art.order-art:hover {
  transform: scale(1.08);
}

.card.can-order {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card.can-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(80, 40, 10, 0.14);
}

.card.can-order:active {
  transform: translateY(0);
}

.decor-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  align-items: stretch;
}

.decor-grid .decor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 210px;
  padding: 14px 12px;
}

.decor-grid .decor-emoji {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
}

.decor-grid .decor-card h3 {
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.decor-grid .decor-card .prices {
  min-height: 2.4em;
  flex: 1;
}

.decor-grid .decor-card-action {
  width: 100%;
  margin-top: auto;
}

.decor-grid .decor-fake-btn {
  display: block;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.decor-grid .card.picking {
  box-shadow: inset 0 0 0 3px #ee6a8a;
}

.decor-grid .decor-action-note {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.78rem;
}

.decor-section-title {
  margin: 18px 4px 4px;
  font-size: 1.15rem;
  color: #5c3d2e;
}

.decor-storage-sub {
  margin-top: 0;
}

.wall-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}

.wall-picker-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wall-swatch,
.wall-pattern-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
  background: #fff8f0;
  border-radius: 14px;
  padding: 8px 6px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.wall-swatch.current,
.wall-pattern-btn.current {
  border-color: #e24b6c;
  box-shadow: 0 0 0 2px rgba(226, 75, 108, 0.18);
}

.wall-swatch-preview,
.wall-pattern-preview {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(90, 50, 30, 0.12);
  background: var(--wall-a, #ffdce8);
}

.wall-swatch-preview[data-pattern="stripes"],
.wall-pattern-preview[data-pattern="stripes"] {
  background: repeating-linear-gradient(90deg, var(--wall-a) 0 10px, var(--wall-b) 10px 20px);
}

.wall-swatch-preview[data-pattern="dots"],
.wall-pattern-preview[data-pattern="dots"] {
  background-color: var(--wall-b);
  background-image: radial-gradient(circle, var(--wall-a) 2.5px, transparent 3px);
  background-size: 12px 12px;
}

.wall-swatch-preview[data-pattern="checks"],
.wall-pattern-preview[data-pattern="checks"] {
  background-color: var(--wall-b);
  background-image:
    linear-gradient(45deg, var(--wall-a) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wall-a) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wall-a) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wall-a) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.wall-swatch-label {
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
}

.wall-swatch-label small {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: #8a6a78;
  font-weight: 600;
}

.sales-report-card {
  max-width: 440px;
}

.sales-report-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 42vh;
  overflow: auto;
  margin: 8px 0 14px;
}

.sales-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #fff8f0;
  border-radius: 14px;
}

.sales-report-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sales-report-item span {
  font-weight: 600;
}

.sales-report-earn {
  font-weight: 700;
  color: #2d6a4f;
  white-space: nowrap;
}

.sales-report-total {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.sales-report-ok {
  width: 100%;
}

.storage-grid .storage-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  color: #7a5a48;
  font-size: 0.92rem;
}

.cabinet-unit .shelf-rail {
  display: none;
}

.cabinet-unit.fixed-ground,
.cabinet-unit {
  transform: none !important;
}

.catalog-section-grid .card h3 {
  font-size: 0.78rem;
  line-height: 1.15;
}

.catalog-section-grid .card .prices {
  font-size: 0.7rem;
  line-height: 1.2;
}

.catalog-section-grid .card .btn {
  font-size: 0.78rem;
  padding: 6px 4px;
}

.catalog-8 .card h3 {
  font-size: 0.78rem;
  line-height: 1.15;
}

.catalog-8 .card .prices {
  font-size: 0.7rem;
  line-height: 1.2;
}

.catalog-8 .card .btn {
  font-size: 0.78rem;
  padding: 6px 4px;
}

.card {
  background: var(--cream);
  border-radius: 18px;
  padding: 12px;
  text-align: center;
}

.card.locked {
  filter: grayscale(1);
  opacity: 0.7;
}

.card .item-art {
  width: 72px;
  height: 72px;
  margin: 0 auto 6px;
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.card .prices {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card button {
  width: 100%;
}

.rug-swatches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.card .rug-swatch {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 0;
  border: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(80, 40, 30, 0.18);
  cursor: pointer;
}

.card .rug-swatch.current {
  outline: 3px solid #4a3040;
  outline-offset: 1px;
}

.shop.floor-1 .hangers {
  /* Area appendini = mensole alte al Beauty */
}

.shop.floor-1 .hangers::before {
  display: none;
}

.shop.floor-1 .hangers .hanger {
  height: 88px;
  display: grid;
  place-items: center;
  padding-bottom: 16px;
  margin-bottom: 0;
  flex-direction: unset;
}

.shop.floor-1 .hangers .hanger-wire {
  display: none;
}

.shop.floor-1 .hangers .hanger.empty .plus,
.shop.floor-1 .hangers .hanger .item-art,
.shop.floor-1 .hangers .hanger .lock-label {
  transform: translateY(-6px);
}

.shop.floor-1 .hangers .hanger::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 12px;
  background: #6b3f1d;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.shop.floor-1 .hangers .hanger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 14px;
  background: linear-gradient(#e8b56a, var(--wood), var(--wood-dark));
  border-radius: 3px;
  box-shadow: 0 4px 0 #5c3317;
}

.card.beauty-item:not(.locked) {
  box-shadow: inset 0 0 0 2px rgba(199, 125, 255, 0.45);
}

.decor-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

#decor-floor {
  z-index: 2;
  pointer-events: none;
}

.decor-item {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
}

.decor-item.selected {
  outline: 3px solid #ffd166;
  outline-offset: 4px;
  border-radius: 8px;
}

.decor-item.dragging {
  cursor: grabbing;
  z-index: 8;
}

.decor-rug {
  z-index: 0;
  left: var(--stock-left);
  width: calc(100% - var(--stock-left) - var(--stock-right));
  height: 42px;
  pointer-events: auto;
  background:
    repeating-linear-gradient(
      90deg,
      var(--rug-a, #e24b6c) 0 16px,
      var(--rug-b, #9d1d45) 16px 32px
    );
  border-radius: 8px;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.22),
    0 5px 0 rgba(80, 30, 20, 0.18);
}

.decor-rug::before,
.decor-rug::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 10px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 4px,
    rgba(255,255,255,0.35) 4px 6px
  );
}

.decor-rug::before { left: 6px; }
.decor-rug::after { right: 6px; }

.decor-plant,
.decor-plantBloom,
.decor-plantTall {
  z-index: 7;
}

.decor-plant {
  width: 86px;
  height: 36%;
  max-height: 155px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.plant-top {
  position: relative;
  width: 86px;
  flex: 1;
}

.plant-leaf {
  position: absolute;
  width: 30px;
  height: 48px;
  background: radial-gradient(ellipse at 35% 30%, #b7e4c7, #2d6a4f 72%);
  border-radius: 80% 12% 80% 12%;
  box-shadow: inset -4px -6px 0 rgba(27, 67, 50, 0.18);
}

.plant-leaf.l1 { left: 6px; bottom: 8%; transform: rotate(-38deg); }
.plant-leaf.l2 { right: 4px; bottom: 10%; transform: rotate(42deg) scaleX(-1); }
.plant-leaf.l3 { left: 28px; bottom: 18%; width: 28px; height: 52px; transform: rotate(-6deg); background: radial-gradient(ellipse at 40% 28%, #95d5b2, #1b4332 74%); }
.plant-leaf.l4 { left: 2px; top: 18%; transform: rotate(-62deg); width: 26px; height: 40px; }
.plant-leaf.l5 { right: 0; top: 16%; transform: rotate(58deg) scaleX(-1); width: 26px; height: 40px; }

.plant-bloom {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe0ee, #ee6a8a 62%);
  box-shadow:
    5px 0 0 -3px #ff7eb3,
    -5px 0 0 -3px #ff7eb3,
    0 -5px 0 -3px #ff8fab,
    0 5px 0 -3px #e24b8d,
    0 0 0 3px #ffd166;
  z-index: 1;
}

.plant-bloom.b1 { left: 18px; top: 4%; }
.plant-bloom.b2 { right: 14px; top: 14%; transform: scale(0.85); }

.plant-stem {
  width: 7px;
  height: 14%;
  min-height: 10px;
  background: linear-gradient(#52b788, #2d6a4f);
  border-radius: 4px;
}

.plant-pot {
  position: relative;
  width: 50px;
  height: 26%;
  min-height: 32px;
}

.plant-pot::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 7px;
  bottom: 0;
  background: linear-gradient(180deg, #e0b07a, #c9843a 42%, #8a5524);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.plant-pot i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: linear-gradient(#f6e0c2, #d49248);
  border-radius: 5px 5px 2px 2px;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(90, 50, 20, 0.2);
}

.decor-mirror {
  z-index: 1;
  width: 72px;
  height: 38%;
  max-height: 168px;
  min-height: 112px;
  padding: 8px;
  background: linear-gradient(#f4e4b0, #c9a227);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 3px 6px 0 rgba(80, 50, 10, 0.18);
}

.mirror-glass {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #f7fbff 0%, #8ecae6 48%, #ffffff 88%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.45);
  position: relative;
}

.mirror-glass::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 16%;
  width: 28%;
  height: 38%;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.decor-poster {
  z-index: 1;
  width: 168px;
  height: 138px;
  padding: 5px;
  background: #c9843a;
  border: 8px solid #8a5524;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px #f4e4b0, 3px 5px 0 rgba(90, 50, 20, 0.18);
  overflow: hidden;
}

.poster-art {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
  background: #caf0f8;
}

.poster-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.decor-mannequin {
  z-index: 1;
  width: 82px;
  height: 46%;
  max-height: 198px;
  min-height: 140px;
  padding: 0;
}

.shop.floor-vetrina .decor-mannequin {
  width: 96px;
  height: 58%;
  max-height: 248px;
  min-height: 175px;
}

.decor-mannequin.pulse {
  animation: pulse 1s ease-in-out infinite;
  z-index: 6;
}

.mannequin-svg.showcase {
  filter: drop-shadow(2px 6px 0 rgba(60, 35, 18, 0.22));
}

.decor-plantBloom {
  width: 92px;
  height: 38%;
  max-height: 165px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.plant-bloom.b3 {
  left: 36px;
  top: -2%;
  transform: scale(1.05);
  background: radial-gradient(circle at 40% 40%, #fff7d6, #ffd166 62%);
  box-shadow:
    5px 0 0 -3px #fee440,
    -5px 0 0 -3px #fee440,
    0 -5px 0 -3px #ffd166,
    0 5px 0 -3px #c9a227,
    0 0 0 3px #ff8fab;
}

.pink-pot::after {
  background: linear-gradient(180deg, #ffc2d4, #ee6a8a 42%, #c9184a);
}

.pink-pot i {
  background: linear-gradient(#ffe0ee, #ff8fab);
}

.decor-plantTall {
  width: 78px;
  height: 48%;
  max-height: 210px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.tall-fronds {
  position: relative;
  width: 78px;
  flex: 1;
}

.tall-frond {
  position: absolute;
  width: 18px;
  height: 58px;
  background: linear-gradient(#95d5b2, #1b4332);
  border-radius: 60% 40% 50% 50%;
  transform-origin: 50% 100%;
}

.tall-frond.f1 { left: 8px; bottom: 0; transform: rotate(-28deg); }
.tall-frond.f2 { left: 22px; bottom: 4px; transform: rotate(-8deg); height: 66px; }
.tall-frond.f3 { right: 22px; bottom: 4px; transform: rotate(10deg); height: 66px; }
.tall-frond.f4 { right: 8px; bottom: 0; transform: rotate(30deg); }

.tall-stem {
  height: 18%;
  width: 8px;
}

.tall-pot {
  width: 44px;
  height: 22%;
}

.decor-cushion {
  z-index: 2;
  width: 78px;
  height: 48px;
  padding: 0;
}

.cushion-body {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: radial-gradient(circle at 35% 30%, #ffc2d4, #e85a7a 58%, #c9184a);
  box-shadow: 2px 4px 0 rgba(90, 40, 50, 0.18), inset 0 -6px 0 rgba(0,0,0,0.08);
}

.cushion-shine {
  display: block;
  width: 28%;
  height: 22%;
  margin: 12% 0 0 18%;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

.decor-pouf {
  z-index: 2;
  width: 72px;
  height: 58px;
  padding: 0;
}

.pouf-body {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #c77dff, #7b2cbf);
  box-shadow: 2px 5px 0 rgba(60, 20, 80, 0.2);
}

.pouf-top {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 10%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e0aaff, #9d4edd 70%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
}

.decor-armchair {
  z-index: 2;
  width: 96px;
  height: 92px;
  padding: 0;
}

.chair-back {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 0;
  height: 48%;
  border-radius: 28px 28px 10px 10px;
  background: linear-gradient(180deg, #ff8fab, #c9184a);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.2);
}

.chair-seat {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 42%;
  height: 28%;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffb3c6, #e85a7a);
}

.chair-arm {
  position: absolute;
  top: 38%;
  width: 16%;
  height: 28%;
  border-radius: 12px;
  background: #c9184a;
}

.chair-arm.left { left: 0; }
.chair-arm.right { right: 0; }

.chair-leg {
  position: absolute;
  bottom: 4%;
  width: 8px;
  height: 22%;
  border-radius: 4px;
  background: #8a5524;
}

.chair-leg.l { left: 22%; }
.chair-leg.r { right: 22%; }

.decor-floorLamp {
  z-index: 2;
  width: 54px;
  height: 42%;
  max-height: 180px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.lamp-shade {
  width: 48px;
  height: 28%;
  min-height: 28px;
  background: linear-gradient(180deg, #fff3c4, #ffd166 55%, #c9a227);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.55);
}

.lamp-pole {
  width: 5px;
  flex: 1;
  min-height: 36px;
  background: linear-gradient(#d4d4d4, #8a8a8a);
  border-radius: 3px;
}

.lamp-base {
  width: 34px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(#c0c0c0, #777);
}

.decor-chandelier {
  z-index: 3;
  width: 88px;
  height: 78px;
  padding: 0;
}

.chand-hook {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #c9a227;
}

.chand-chain {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 18px;
  margin-left: -1.5px;
  background: #c9a227;
}

.chand-body {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 24px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #fff7d6, #ffd166 45%, #c9a227);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.5);
}

.chand-body i {
  position: absolute;
  top: 58%;
  width: 10px;
  height: 16px;
  border-radius: 40% 40% 50% 50%;
  background: linear-gradient(#fff, #ffe8a3);
  box-shadow: 0 0 8px rgba(255, 240, 180, 0.8);
}

.chand-body i:nth-child(1) { left: 8%; }
.chand-body i:nth-child(2) { left: 28%; }
.chand-body i:nth-child(3) { left: 46%; }
.chand-body i:nth-child(4) { left: 64%; }
.chand-body i:nth-child(5) { left: 82%; }

.theme-grid {
  margin-bottom: 8px;
}

.theme-card.theme-active {
  outline: 2px solid #e85a7a;
}

.mannequin-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(2px 4px 0 rgba(90, 50, 20, 0.16));
}

.mission-bar.done {
  color: #2f855a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 20;
}

@keyframes bob {
  50% { transform: translateY(-8px); }
}

@keyframes walk-in {
  from { transform: translateX(-240px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes walk-out-door {
  to { transform: translateX(-240px); opacity: 0; }
}

@keyframes pop-ask {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(244, 196, 48, 0.55); }
}

@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 980px) {
  .catalog-grid.catalog-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-grid.catalog-by-category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Mobile / tablet stretto —— */
@media (max-width: 900px) {
  html,
  body,
  #app {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    overflow: hidden;
  }

  .screen {
    min-height: 0;
  }

  #game-screen {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .start-card {
    width: min(420px, 94vw);
    padding: 24px 18px 22px;
    margin: 12px auto;
    border-radius: 24px;
  }

  .start-card h1 {
    font-size: 1.55rem;
  }

  .start-card p {
    font-size: 0.95rem;
  }

  .preview-item {
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .auth-tab {
    font-size: 0.82rem;
    padding: 9px 4px;
  }

  .btn-big {
    font-size: 1.1rem;
    padding: 12px 20px;
    width: 100%;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "settings brand stats"
      "mission mission mission"
      "actions actions actions";
    gap: 6px 8px;
    padding: 8px 10px;
    align-items: center;
  }

  .topbar > .settings-btn {
    grid-area: settings;
    order: 0;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    z-index: 3;
  }

  .brand { grid-area: brand; }
  .stats { grid-area: stats; margin-left: 0; gap: 4px; }

  .missions-btn {
    grid-area: mission;
    flex: none;
    min-width: 0;
    width: 100%;
    max-width: none;
    font-size: 0.82rem;
    padding: 5px 10px;
  }

  .mission-bar {
    display: none;
  }

  .top-actions {
    grid-area: actions;
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .shop-sign {
    max-width: min(150px, 42vw);
    font-size: 0.85rem;
    padding: 4px 10px;
    border-width: 3px;
  }

  .stat {
    min-width: 0;
    padding: 4px 8px;
    font-size: 0.95rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    border-radius: 12px;
  }

  .shop-toggle {
    padding: 7px 10px;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .shop-scroller {
    position: relative !important;
    flex: 1 1 auto !important;
    min-height: 280px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    touch-action: none;
  }

  .shop-stage {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 980px !important;
    min-width: 980px !important;
    max-width: 980px !important;
    height: auto !important;
    display: block !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }

  .shop {
    --stock-left: 168px;
    --stock-right: 290px;
    --floor-h: 216px;
    --door-base: calc(var(--floor-h) - 28px);
    --door-h: min(52%, 236px);
    position: relative !important;
    width: 980px !important;
    min-width: 980px !important;
    max-width: 980px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .shop-pan-bar {
    display: none !important;
  }

  .shop-floor {
    height: var(--floor-h);
  }

  .shop-wall {
    min-height: 240px;
  }

  .customer-area {
    height: 170px;
    padding: 0 120px 0 108px;
  }

  .customer-area.crowd-3,
  .customer-area.crowd-4 {
    padding: 0 108px 0 96px;
  }

  .hint {
    font-size: 0.9rem;
    min-height: 1.1em;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .counter {
    padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
  }

  .counter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .deliveries,
  .boxes {
    min-height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex: none;
    width: 100%;
    padding-bottom: 2px;
  }

  .delivery {
    width: 60px;
    flex-shrink: 0;
  }

  .box {
    flex-shrink: 0;
  }

  .counter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .counter-actions .btn {
    flex: none;
    width: 100%;
    padding: 9px 8px;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.2;
  }

  .modal {
    padding: 10px;
    align-items: end;
  }

  .modal-card {
    width: 100%;
    max-height: min(90dvh, 760px);
    border-radius: 22px 22px 16px 16px;
    padding: 14px 14px 18px;
  }

  .modal-card.catalog-wide { width: 100%; }

  .catalog-grid,
  .catalog-grid.catalog-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast {
    bottom: 26%;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    text-align: center;
    font-size: 0.92rem;
    padding: 10px 14px;
  }

  .door-frame {
    padding-top: 8px;
  }

  .floor-ctrl-btn,
  .floor-indicator {
    width: 32px;
    min-width: 32px;
    height: 24px;
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) and (max-height: 480px) {
  .topbar { padding: 4px 8px; gap: 4px; }
  .missions-btn { font-size: 0.72rem; padding: 3px 8px; }
  .hint { font-size: 0.85rem; margin-bottom: 2px; min-height: 0; }
  .counter { padding: 4px 8px 6px; }
  .deliveries, .boxes { min-height: 40px; }
  .counter-actions .btn { padding: 8px 6px; font-size: 0.8rem; }
}
