/* =========================================================
   MUNDO MINI · style.css
   Juego de simulacion 2D con formas geometricas planas
   ========================================================= */

:root {
  /* Paleta: 1 marca + neutros + 2 acentos */
  --brand: #e8613c;
  --brand-deep: #c2461f;
  --accent: #2f8f83;
  --accent-warm: #f7c948;

  --bg: #f6efe4;
  --surface: #fffaf2;
  --surface-2: #efe4d4;
  --ink: #2c2622;
  --ink-soft: #6f6055;
  --line: #e0d2bf;

  /* Escenario */
  --wall: #f0d9c2;
  --wall-2: #e8cbae;
  --floor: #c98f5f;
  --floor-2: #b57b4d;

  /* Personaje */
  --skin: #f4c9a4;
  --skin-shade: #e0ac86;
  --hair: #3b2b26;
  --shirt: #e8613c;
  --collar: #c94b2b;
  --detail: #ffd9a0;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(59, 43, 38, 0.14);
  --shadow-item: 0 4px 12px rgba(59, 43, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html.app-html {
  background-color: var(--bg);
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Nunito", "Baloo 2", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* ============ LAYOUT PRINCIPAL ============ */
.game {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1120px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 12px;
}

/* ============ CABECERA ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--brand);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.brand-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.btn {
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.btn:active {
  transform: scale(0.95);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background-color: var(--surface-2);
  color: var(--ink);
}

.btn-solid {
  background-color: var(--brand);
  border-color: var(--brand-deep);
  color: var(--surface);
  box-shadow: 0 3px 0 var(--brand-deep);
}

.btn-solid:hover {
  background-color: var(--brand-deep);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ============ ESCENARIO ============ */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border-radius: var(--radius);
  border: 3px solid var(--line);
  background-color: var(--wall);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.stage.is-targeting .char-hitring {
  opacity: 1;
  transform: scale(1);
}

/* --- Pared --- */
.wall {
  position: absolute;
  inset: 0 0 32% 0;
  background: linear-gradient(180deg, var(--wall-2) 0%, var(--wall) 68%);
}

.wall-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.22) 0 10px,
    rgba(255, 255, 255, 0) 10px 46px
  );
}

/* Ventana */
.window {
  position: absolute;
  top: 14%;
  left: 8%;
  width: 22%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 6px solid var(--surface);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

.window-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #8fc9de 0%, #cfe6ea 100%);
}

.window-sun {
  position: absolute;
  top: 14%;
  right: 14%;
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--accent-warm);
}

.window-cross-v,
.window-cross-h {
  position: absolute;
  background-color: var(--surface);
}

.window-cross-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
}

.window-cross-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
}

.window-sill {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -12%;
  height: 12%;
  border-radius: 6px;
  background-color: var(--surface-2);
}

/* Cuadros decorativos */
.frame {
  position: absolute;
  border-radius: 10px;
  border: 5px solid var(--surface);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.07);
}

/* Cuadro vertical: paisaje con luna y colina */
.frame-a {
  top: 18%;
  right: 22%;
  width: 12%;
  aspect-ratio: 3 / 4;
  background-color: var(--accent);
  background-image:
    radial-gradient(circle at 64% 28%, rgba(255, 250, 242, 0.92) 0 15%, transparent 15%),
    radial-gradient(ellipse 78% 44% at 34% 104%, rgba(0, 0, 0, 0.26) 0 100%, transparent 100%),
    linear-gradient(180deg, transparent 0 64%, rgba(0, 0, 0, 0.13) 64% 100%);
}

/* Cuadro cuadrado: arco abstracto */
.frame-b {
  top: 44%;
  right: 10%;
  width: 10%;
  aspect-ratio: 1 / 1;
  background-color: var(--accent-warm);
  background-image:
    radial-gradient(circle at 50% 74%, rgba(255, 250, 242, 0.9) 0 28%, transparent 28%),
    linear-gradient(180deg, transparent 0 74%, rgba(0, 0, 0, 0.15) 74% 100%);
}

/* Lampara */
.lamp {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lamp-cord {
  width: 4px;
  height: 26px;
  background-color: var(--ink-soft);
}

.lamp-shade {
  width: 100%;
  height: 26px;
  background-color: var(--brand);
  border-radius: 0 0 60% 60% / 0 0 90% 90%;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.lamp-glow {
  width: 70%;
  height: 46px;
  background: radial-gradient(ellipse at top, rgba(247, 201, 72, 0.5), rgba(247, 201, 72, 0));
}

/* --- Suelo --- */
.floor {
  position: absolute;
  inset: 68% 0 0 0;
  background: linear-gradient(180deg, var(--floor) 0%, var(--floor-2) 100%);
  border-top: 5px solid rgba(0, 0, 0, 0.12);
}

.floor-plank {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    92deg,
    rgba(0, 0, 0, 0.09) 0 3px,
    rgba(0, 0, 0, 0) 3px 58px
  );
}

.rug {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 56%;
  height: 46%;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.2), inset 0 0 0 22px rgba(0, 0, 0, 0.06);
  opacity: 0.85;
}

/* Capa de muebles colocados */
.drop-layer {
  position: absolute;
  inset: 0;
}

/* ============ PERSONAJE ============ */
.character {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 150px;
  height: 260px;
  z-index: 5;
}

.char-shadow {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 80%;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.22);
  filter: blur(1px);
}

.char-body {
  position: absolute;
  inset: 0;
}

/* Piernas */
.char-legs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
}

.leg {
  position: absolute;
  bottom: 14px;
  width: 22px;
  height: 74px;
  border-radius: 12px;
  background-color: #3f5b8c;
}

.leg-l {
  left: 44px;
}

.leg-r {
  right: 44px;
}

.shoe {
  position: absolute;
  bottom: 0;
  width: 32px;
  height: 18px;
  border-radius: 10px 10px 6px 6px;
  background-color: var(--ink);
}

.shoe-l {
  left: 38px;
}

.shoe-r {
  right: 38px;
}

/* Torso (aqui se aplica la ropa) */
.char-torso {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 92px;
  border-radius: 26px 26px 18px 18px;
  background-color: var(--shirt);
  transition: background-color 0.24s ease;
  overflow: hidden;
  z-index: 2;
}

.torso-collar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 14px;
  border-radius: 0 0 20px 20px;
  background-color: var(--collar);
  transition: background-color 0.24s ease;
}

.torso-detail {
  position: absolute;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  background-color: var(--detail);
  transition: background-color 0.24s ease;
}

/* Variantes del detalle de la prenda */
.torso-detail[data-shape="stripe"] {
  width: 84px;
  height: 14px;
  border-radius: 0;
}

.torso-detail[data-shape="dot"] {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.torso-detail[data-shape="zigzag"] {
  width: 60px;
  height: 22px;
  border-radius: 4px;
  clip-path: polygon(0 0, 20% 100%, 40% 0, 60% 100%, 80% 0, 100% 100%, 100% 100%, 0 100%);
}

.torso-detail[data-shape="none"] {
  display: none;
}

/* Brazos */
.char-arms {
  position: absolute;
  inset: 0;
}

.arm {
  position: absolute;
  top: 36%;
  width: 20px;
  height: 62px;
  border-radius: 12px;
  background-color: var(--shirt);
  transition: background-color 0.24s ease;
  z-index: 1;
}

.arm-l {
  left: 24px;
  transform: rotate(6deg);
}

.arm-r {
  right: 24px;
  transform: rotate(-6deg);
}

.hand {
  position: absolute;
  top: 58%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--skin);
  z-index: 3;
}

.hand-l {
  left: 22px;
}

.hand-r {
  right: 22px;
}

/* Cabeza */
.char-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  z-index: 4;
}

.hair-back {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 92px;
  border-radius: 46px 46px 34px 34px;
  background-color: var(--hair);
}

.face {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 82px;
  border-radius: 38px 38px 30px 30px;
  background-color: var(--skin);
}

.hair-front {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 30px;
  border-radius: 40px 40px 8px 8px;
  background-color: var(--hair);
}

.eye {
  position: absolute;
  top: 46px;
  width: 12px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--ink);
}

.eye-l {
  left: 24px;
}

.eye-r {
  right: 24px;
}

.cheek {
  position: absolute;
  top: 62px;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background-color: #f0a08c;
  opacity: 0.75;
}

.cheek-l {
  left: 16px;
}

.cheek-r {
  right: 16px;
}

.mouth {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 11px;
  border-radius: 0 0 14px 14px;
  background-color: var(--brand-deep);
}

/* Aro de zona valida */
.char-hitring {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  border-radius: 50%;
  border: 4px dashed var(--accent);
  background-color: rgba(47, 143, 131, 0.12);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.character.is-hit .char-hitring {
  border-color: var(--brand);
  background-color: rgba(232, 97, 60, 0.2);
}

.character.is-dressed {
  animation: pop 0.42s ease;
}

@keyframes pop {
  0% {
    transform: translateX(-50%) scale(1);
  }
  35% {
    transform: translateX(-50%) scale(1.06);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* Pista */
.hint {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  padding: 6px 14px;
  max-width: 42%;
  border-radius: 999px;
  background-color: rgba(255, 250, 242, 0.9);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.hint.is-hidden {
  opacity: 0;
}

/* ============ MUEBLES COLOCADOS ============ */
.placed {
  position: absolute;
  cursor: grab;
  touch-action: none;
  z-index: 4;
}

.placed.is-dragging {
  cursor: grabbing;
  z-index: 30;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.placed .furn-art {
  width: 100%;
  height: 100%;
}

/* ============ ARMARIO ============ */
.closet {
  border-radius: var(--radius);
  border: 3px solid var(--line);
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.closet-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background-color: var(--surface-2);
}

.tab {
  appearance: none;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 9px 20px;
  background-color: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  background-color: var(--surface);
  color: var(--brand-deep);
}

.tab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.tray {
  display: none;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tray.is-active {
  display: flex;
}

.item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background-color: var(--bg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.2s ease;
}

.item:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

.item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.item.is-worn {
  opacity: 0.34;
  border-color: var(--accent);
  cursor: default;
}

.item.is-worn::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.9rem;
}

.item.is-source-dragging {
  opacity: 0.32;
}

.item-name {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-soft);
}

/* --- Arte de prendas --- */
.cloth-art {
  position: relative;
  width: 66px;
  height: 58px;
}

.cloth-body {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 40px;
  height: 50px;
  border-radius: 12px 12px 8px 8px;
  background-color: var(--c);
}

.cloth-sleeve {
  position: absolute;
  top: 8px;
  width: 15px;
  height: 26px;
  border-radius: 8px;
  background-color: var(--c);
}

.cloth-sleeve-l {
  left: 2px;
  transform: rotate(14deg);
}

.cloth-sleeve-r {
  right: 2px;
  transform: rotate(-14deg);
}

.cloth-neck {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 9px;
  border-radius: 0 0 12px 12px;
  background-color: var(--c);
  z-index: 2;
}

.cloth-mark {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  background-color: var(--c);
  z-index: 2;
}

.cloth-mark-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 26px;
}

.cloth-mark-zig {
  width: 32px;
  height: 12px;
  clip-path: polygon(0 0, 20% 100%, 40% 0, 60% 100%, 80% 0, 100% 100%, 100% 100%, 0 100%);
}

/* --- Arte de muebles --- */
.furn-art {
  position: relative;
  width: 70px;
  height: 58px;
}

/* Cama */
.bed-frame {
  position: absolute;
  left: 2%;
  bottom: 12%;
  width: 96%;
  height: 46%;
  border-radius: 8px;
  background-color: #8a5a3b;
}

.bed-mattress {
  position: absolute;
  left: 6%;
  bottom: 34%;
  width: 88%;
  height: 26%;
  border-radius: 8px;
  background-color: #fdf6ec;
}

.bed-blanket {
  position: absolute;
  left: 6%;
  bottom: 34%;
  width: 58%;
  height: 26%;
  border-radius: 8px 4px 4px 8px;
  background-color: var(--accent);
}

.bed-pillow {
  position: absolute;
  right: 8%;
  bottom: 46%;
  width: 26%;
  height: 20%;
  border-radius: 8px;
  background-color: var(--accent-warm);
}

.bed-leg {
  position: absolute;
  bottom: 0;
  width: 8%;
  height: 14%;
  border-radius: 0 0 4px 4px;
  background-color: #6d4429;
}

.bed-leg-l {
  left: 6%;
}

.bed-leg-r {
  right: 6%;
}

/* Mesa */
.table-top {
  position: absolute;
  left: 2%;
  top: 38%;
  width: 96%;
  height: 14%;
  border-radius: 6px;
  background-color: #a9714a;
}

.table-leg {
  position: absolute;
  top: 50%;
  width: 9%;
  height: 44%;
  border-radius: 0 0 4px 4px;
  background-color: #8a5a3b;
}

.table-leg-l {
  left: 14%;
}

.table-leg-r {
  right: 14%;
}

.table-cup {
  position: absolute;
  left: 22%;
  top: 22%;
  width: 16%;
  height: 18%;
  border-radius: 3px 3px 8px 8px;
  background-color: var(--brand);
}

.table-book {
  position: absolute;
  right: 20%;
  top: 30%;
  width: 26%;
  height: 10%;
  border-radius: 3px;
  background-color: var(--accent);
}

/* Planta */
.plant-pot {
  position: absolute;
  left: 26%;
  bottom: 0;
  width: 48%;
  height: 34%;
  border-radius: 4px 4px 14px 14px;
  background-color: #c96f4a;
}

.plant-pot-rim {
  position: absolute;
  left: 20%;
  bottom: 30%;
  width: 60%;
  height: 9%;
  border-radius: 4px;
  background-color: #a9552f;
}

.plant-stem {
  position: absolute;
  left: 48%;
  bottom: 32%;
  width: 5%;
  height: 34%;
  border-radius: 4px;
  background-color: #3d7a4a;
}

.plant-leaf {
  position: absolute;
  border-radius: 50% 50% 50% 6%;
  background-color: var(--accent);
}

.plant-leaf-1 {
  left: 8%;
  bottom: 52%;
  width: 44%;
  height: 26%;
  transform: rotate(-18deg);
}

.plant-leaf-2 {
  right: 8%;
  bottom: 58%;
  width: 44%;
  height: 26%;
  transform: rotate(160deg);
}

.plant-leaf-3 {
  left: 28%;
  bottom: 72%;
  width: 40%;
  height: 26%;
  background-color: #3d7a4a;
  transform: rotate(-70deg);
}

/* ============ FANTASMA DE ARRASTRE ============ */
.drag-ghost {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.3));
}

.drag-ghost.is-over {
  transform: translate(-50%, -50%) scale(1.28) rotate(-6deg);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 999px;
  background-color: var(--ink);
  color: var(--surface);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 500;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .game {
    padding: 8px;
    gap: 8px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .stage {
    aspect-ratio: 4 / 5;
    max-height: 56dvh;
  }

  .character {
    width: 118px;
    height: 205px;
  }

  .char-head {
    width: 76px;
    height: 76px;
  }

  .hair-back {
    width: 76px;
    height: 73px;
    border-radius: 38px 38px 28px 28px;
  }

  .face {
    top: 10px;
    width: 62px;
    height: 65px;
  }

  .hair-front {
    width: 68px;
    height: 24px;
  }

  .eye {
    top: 36px;
    width: 10px;
    height: 12px;
  }

  .eye-l {
    left: 19px;
  }

  .eye-r {
    right: 19px;
  }

  .cheek {
    top: 49px;
    width: 11px;
    height: 7px;
  }

  .cheek-l {
    left: 12px;
  }

  .cheek-r {
    right: 12px;
  }

  .mouth {
    top: 54px;
    width: 18px;
    height: 9px;
  }

  .char-torso {
    width: 66px;
    height: 72px;
    border-radius: 20px 20px 14px 14px;
  }

  .torso-detail {
    top: 33px;
  }

  .torso-detail[data-shape="stripe"] {
    width: 66px;
    height: 11px;
  }

  .torso-detail[data-shape="dot"] {
    width: 20px;
    height: 20px;
  }

  .torso-detail[data-shape="zigzag"] {
    width: 48px;
    height: 17px;
  }

  .torso-collar {
    width: 32px;
    height: 11px;
  }

  .arm {
    left: auto;
    width: 16px;
    height: 49px;
  }

  .arm-l {
    left: 19px;
  }

  .arm-r {
    right: 19px;
  }

  .hand {
    width: 18px;
    height: 18px;
  }

  .hand-l {
    left: 17px;
  }

  .hand-r {
    right: 17px;
  }

  .leg {
    width: 18px;
    height: 58px;
    bottom: 11px;
  }

  .leg-l {
    left: 34px;
  }

  .leg-r {
    right: 34px;
  }

  .shoe {
    width: 26px;
    height: 14px;
  }

  .shoe-l {
    left: 30px;
  }

  .shoe-r {
    right: 30px;
  }

  .char-hitring {
    width: 112px;
    height: 112px;
    margin-left: -56px;
  }

  .item {
    width: 82px;
    padding: 8px 4px 6px;
  }

  .cloth-art,
  .furn-art {
    width: 58px;
    height: 50px;
  }

  .hint {
    font-size: 0.66rem;
    padding: 5px 10px;
  }
}

/* =========================================================
   VISTA DE CIUDAD (MAPA)
   ========================================================= */
:root {
  --grass: #7fb069;
  --grass-2: #6a9c57;
  --road: #b8ac9c;
  --water: #6ec6d9;
}

/* Alternancia de pantallas: mapa <-> habitacion */
.city {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border-radius: var(--radius);
  border: 3px solid var(--line);
  background: linear-gradient(180deg, var(--grass) 0%, var(--grass-2) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  user-select: none;
  -webkit-user-select: none;
}

.city.is-active {
  display: block;
  animation: viewIn 0.34s ease;
}

.stage.is-hidden {
  display: none;
}

.closet.is-hidden {
  display: none;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.city-ground {
  position: absolute;
  inset: 0;
}

/* Parques */
.city-park {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  background-color: rgba(255, 255, 255, 0.14);
}

.city-park-a {
  top: 6%;
  left: 4%;
  width: 26%;
  height: 26%;
}

.city-park-b {
  bottom: 5%;
  right: 5%;
  width: 22%;
  height: 24%;
}

/* Carreteras en cruz */
.road {
  position: absolute;
  background-color: var(--road);
}

.road-h {
  left: 0;
  right: 0;
  top: 46%;
  height: 15%;
  box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.08), 0 3px 0 rgba(0, 0, 0, 0.08);
}

.road-v {
  top: 0;
  bottom: 0;
  left: 43%;
  width: 13%;
  box-shadow: -3px 0 0 rgba(0, 0, 0, 0.08), 3px 0 0 rgba(0, 0, 0, 0.08);
}

.road-dash {
  position: absolute;
}

.road-dash-h {
  left: 0;
  right: 0;
  top: 52.4%;
  height: 3.2%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--surface) 0 5%,
    transparent 5% 11%
  );
}

.road-dash-v {
  top: 0;
  bottom: 0;
  left: 48.4%;
  width: 2.4%;
  background-image: repeating-linear-gradient(
    180deg,
    var(--surface) 0 5%,
    transparent 5% 11%
  );
}

/* Arboles y estanque */
.city-tree {
  position: absolute;
  width: 6%;
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 46% 46%;
  background-color: #4f8a4a;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.14);
}

.city-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34%;
  width: 22%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 3px;
  background-color: #7a5233;
}

.city-tree-1 { top: 10%; left: 33%; }
.city-tree-2 { top: 30%; left: 8%; }
.city-tree-3 { bottom: 30%; right: 30%; }
.city-tree-4 { bottom: 12%; left: 12%; }

.city-pond {
  position: absolute;
  bottom: 8%;
  right: 8%;
  width: 15%;
  height: 16%;
  border-radius: 55% 45% 50% 50%;
  background-color: var(--water);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.3);
}

.city-title {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 16px;
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-item);
  z-index: 4;
}

.city-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: rgba(255, 250, 242, 0.9);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 4;
}

/* ============ EDIFICIOS ============ */
.building {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.16s ease;
}

.building:hover,
.building:focus-visible {
  transform: translateY(-5px) scale(1.04);
}

.building:focus-visible {
  outline: 3px solid var(--surface);
  outline-offset: 4px;
  border-radius: 14px;
}

.building:active {
  transform: translateY(-1px) scale(0.99);
}

.bld-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 8px 10px rgba(44, 38, 34, 0.28));
}

.bld-label {
  padding: 3px 11px;
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

/* Posicion de cada edificio en el mapa */
.building-home {
  top: 12%;
  left: 58%;
  width: 21%;
}

.building-shop {
  top: 58%;
  left: 12%;
  width: 22%;
}

.building-cafe {
  top: 60%;
  left: 58%;
  width: 21%;
}

/* --- Piezas comunes de edificio --- */
.bld-body {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  top: 38%;
  border-radius: 6px;
  background-color: var(--surface);
  box-shadow: inset -8px 0 0 rgba(0, 0, 0, 0.07);
}

.bld-door {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 20%;
  height: 30%;
  transform: translateX(-50%);
  border-radius: 5px 5px 0 0;
  background-color: var(--brand-deep);
}

.bld-win {
  position: absolute;
  top: 48%;
  width: 17%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background-color: #a9d8e6;
  box-shadow: inset 0 0 0 3px var(--surface-2);
}

.bld-win-l { left: 18%; }
.bld-win-r { right: 18%; }

/* --- CASA --- */
.bld-roof-tri {
  position: absolute;
  left: 0;
  right: 0;
  top: 6%;
  height: 34%;
  background-color: var(--brand);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.bld-chimney {
  position: absolute;
  top: 4%;
  right: 20%;
  width: 10%;
  height: 20%;
  border-radius: 3px 3px 0 0;
  background-color: var(--brand-deep);
}

.bld-path {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 22%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 3px;
  background-color: var(--surface-2);
}

/* --- TIENDA DE ROPA --- */
.bld-awning {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 30%;
  height: 13%;
  border-radius: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0 14%,
    var(--surface) 14% 28%
  );
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.bld-sign {
  position: absolute;
  left: 26%;
  right: 26%;
  top: 12%;
  height: 15%;
  border-radius: 4px;
  background-color: var(--accent);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.bld-window-big {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 26%;
  border-radius: 4px;
  background-color: #a9d8e6;
  box-shadow: inset 0 0 0 3px var(--surface-2);
}

.bld-hanger {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 13%;
  height: 13%;
  transform: translateX(-50%);
  background-color: var(--brand);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.bld-door-shop {
  width: 17%;
  height: 22%;
  background-color: var(--accent);
}

/* --- CAFETERIA --- */
.bld-awning-cafe {
  background-image: repeating-linear-gradient(
    90deg,
    var(--brand) 0 14%,
    var(--surface) 14% 28%
  );
}

.bld-window-cafe {
  left: 14%;
  right: 40%;
  height: 24%;
}

.bld-cup {
  position: absolute;
  right: 17%;
  top: 53%;
  width: 15%;
  height: 13%;
  border-radius: 3px 3px 8px 8px;
  background-color: var(--surface-2);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.bld-cup::after {
  content: "";
  position: absolute;
  right: -26%;
  top: 22%;
  width: 26%;
  height: 46%;
  border: 3px solid var(--surface-2);
  border-left: 0;
  border-radius: 0 50% 50% 0;
}

.bld-cup-steam {
  position: absolute;
  right: 22%;
  top: 44%;
  width: 5%;
  height: 8%;
  border-radius: 999px;
  background-color: rgba(255, 250, 242, 0.85);
  z-index: 2;
}

.bld-door-cafe {
  left: 26%;
  width: 16%;
  height: 24%;
  background-color: #7a5233;
}

.bld-table {
  position: absolute;
  right: 8%;
  bottom: 2%;
  width: 16%;
  height: 6%;
  border-radius: 3px;
  background-color: var(--accent-warm);
}

/* =========================================================
   NAVEGACION ENTRE HABITACIONES
   ========================================================= */
.room-arrow {
  position: absolute;
  top: 44%;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 3px solid var(--line);
  border-radius: 50%
;
  background-color: rgba(255, 250, 242, 0.92);
  cursor: pointer;
  z-index: 8;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.room-arrow:hover {
  background-color: var(--surface);
  transform: scale(1.08);
}

.room-arrow:active {
  transform: scale(0.94);
}

.room-arrow:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.room-arrow-prev { left: 10px; }
.room-arrow-next { right: 10px; }

.arrow-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: 2px;
}

.room-arrow-prev .arrow-glyph {
  transform: translate(-40%, -50%) rotate(45deg);
}

.room-arrow-next .arrow-glyph {
  transform: translate(-60%, -50%) rotate(-135deg);
}

/* Placa con el nombre de la habitacion */
.room-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 5px 13px 7px;
  border-radius: 14px;
  background-color: rgba(255, 250, 242, 0.92);
  box-shadow: var(--shadow-item);
  z-index: 7;
}

.room-badge-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.room-dots {
  display: flex;
  gap: 5px;
}

.room-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line);
}

.room-dots span.is-on {
  background-color: var(--brand);
}

/* Transicion al cambiar de habitacion */
.stage.is-switching .wall,
.stage.is-switching .floor,
.stage.is-switching .drop-layer,
.stage.is-switching .character {
  animation: roomIn 0.32s ease;
}

@keyframes roomIn {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

/* ============ BOTON DE MAPA ============ */
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--accent);
  border-color: #1f6b62;
  color: var(--surface);
  box-shadow: 0 3px 0 #1f6b62;
}

.btn-map:hover {
  background-color: #26766c;
}

.btn-map-icon {
  position: relative;
  width: 15px;
  height: 14px;
  flex: 0 0 auto;
}

.mi-roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56%;
  background-color: var(--surface);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mi-base {
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 50%;
  border-radius: 1px;
  background-color: var(--surface);
}

/* =========================================================
   TEMAS POR HABITACION
   ========================================================= */
/* Las capas de decoracion se muestran segun la habitacion */
.decor {
  position: absolute;
  inset: 0;
  display: none;
}

.stage[data-room="salon"] .decor-salon,
.stage[data-room="cocina"] .decor-cocina,
.stage[data-room="bano"] .decor-bano {
  display: block;
}

/* --- COCINA: paredes verdosas, suelo de baldosa --- */
.stage[data-room="cocina"] {
  --wall: #dfe9d8;
  --wall-2: #cfdfc6;
  --floor: #c2a883;
  --floor-2: #ab9070;
  --accent: #e0a94b;
}

.stage[data-room="cocina"] .wall-stripes {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3) 0 22px,
    rgba(255, 255, 255, 0) 22px 44px
  );
}

.kitchen-tiles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.55) 0 2px,
      transparent 2px 34px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0 2px,
      transparent 2px 34px
    );
}

.kitchen-shelf {
  position: absolute;
  top: 16%;
  right: 8%;
  width: 30%;
  height: 16%;
}

.shelf-board {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  border-radius: 3px;
  background-color: #a97c50;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14);
}

.shelf-jar {
  position: absolute;
  bottom: 16%;
  width: 20%;
  height: 74%;
  border-radius: 4px 4px 3px 3px;
}

.shelf-jar-1 {
  left: 6%;
  background-color: var(--brand);
}

.shelf-jar-2 {
  left: 38%;
  background-color: var(--accent-warm);
  height: 60%;
}

.shelf-jar-3 {
  right: 8%;
  background-color: #2f8f83;
  height: 82%;
}

.kitchen-clock {
  position: absolute;
  top: 8%;
  left: 33%;
  width: 9%;
  aspect-ratio: 1 / 1;
}

.clock-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--surface);
  box-shadow: inset 0 0 0 4px var(--brand);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  background-color: var(--ink);
  border-radius: 2px;
  transform-origin: bottom center;
}

.clock-hand-h {
  width: 3px;
  height: 24%;
  transform: translateX(-50%) rotate(42deg);
}

.clock-hand-m {
  width: 3px;
  height: 34%;
  transform: translateX(-50%) rotate(-72deg);
}

.kitchen-pan {
  position: absolute;
  top: 55%;
  left: 31%;
  width: 12%;
  height: 8%;
}

.pan-body {
  position: absolute;
  inset: 0 26% 0 0;
  border-radius: 4px 4px 40% 40%;
  background-color: #4a4340;
}

.pan-handle {
  position: absolute;
  right: 0;
  top: 32%;
  width: 30%;
  height: 26%;
  border-radius: 3px;
  background-color: #6f6055;
}

/* --- BANO: azulejos frios --- */
.stage[data-room="bano"] {
  --wall: #d9ecef;
  --wall-2: #c4e0e6;
  --floor: #9fc3cc;
  --floor-2: #85a9b3;
  --accent: #4fa3c7;
}

.stage[data-room="bano"] .wall-stripes {
  background-image: none;
}

.bath-tiles {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.45) 0 2px,
      transparent 2px 40px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.45) 0 2px,
      transparent 2px 40px
    );
}

.bath-mirror {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 17%;
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 8px 8px;
  background-color: var(--surface);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
  padding: 6px;
}

.mirror-glass {
  position: absolute;
  inset: 6px;
  border-radius: 50% 50% 5px 5px;
  background: linear-gradient(150deg, #cfeaf2 0%, #9ecad6 100%);
}

.bath-shelf {
  position: absolute;
  top: 56%;
  left: 61%;
  width: 17%;
  height: 11%;
}

.bath-bottle {
  position: absolute;
  bottom: 16%;
  width: 22%;
  border-radius: 3px 3px 2px 2px;
}

.bath-bottle-1 {
  left: 10%;
  height: 76%;
  background-color: var(--brand);
}

.bath-bottle-2 {
  left: 46%;
  height: 58%;
  background-color: var(--accent-warm);
}

.bath-towel {
  position: absolute;
  border-radius: 4px;
  box-shadow: inset -5px 0 0 rgba(0, 0, 0, 0.08);
}

.bath-towel-a {
  top: 8%;
  left: 32%;
  width: 6.5%;
  height: 17%;
  background-color: var(--brand);
}

.bath-towel-b {
  top: 30%;
  left: 32%;
  width: 6.5%;
  height: 13%;
  background-color: var(--accent-warm);
}

.bath-bubbles {
  position: absolute;
  inset: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset -3px -3px 0 rgba(255, 255, 255, 0.7);
}

.bubble-1 {
  top: 30%;
  left: 66%;
  width: 3.4%;
  aspect-ratio: 1 / 1;
}

.bubble-2 {
  top: 24%;
  left: 72%;
  width: 2.2%;
  aspect-ratio: 1 / 1;
}

.bubble-3 {
  top: 36%;
  left: 74%;
  width: 2.8%;
  aspect-ratio: 1 / 1;
}

/* =========================================================
   MUEBLES TEMATICOS
   ========================================================= */
/* Nevera */
.fridge-body {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 2%;
  bottom: 2%;
  border-radius: 7px;
  background-color: #eef2f4;
  box-shadow: inset -7px 0 0 rgba(0, 0, 0, 0.08);
}

.fridge-split {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 38%;
  height: 3px;
  background-color: #c2ccd2;
}

.fridge-handle {
  position: absolute;
  right: 24%;
  width: 5%;
  border-radius: 2px;
  background-color: #8f9ba3;
}

.fridge-handle-t {
  top: 14%;
  height: 18%;
}

.fridge-handle-b {
  top: 46%;
  height: 26%;
}

.fridge-magnet {
  position: absolute;
  left: 26%;
  top: 14%;
  width: 14%;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background-color: var(--accent-warm);
}

/* Fogones */
.stove-body {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 22%;
  bottom: 2%;
  border-radius: 5px;
  background-color: #cdd4d8;
  box-shadow: inset -7px 0 0 rgba(0, 0, 0, 0.09);
}

.stove-top {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 16%;
  height: 14%;
  border-radius: 5px;
  background-color: #4a4340;
}

.stove-burner {
  position: absolute;
  top: 18%;
  width: 15%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #2c2622;
  box-shadow: inset 0 0 0 3px #6f6055;
}

.stove-burner-l { left: 18%; }
.stove-burner-r { right: 18%; }

.stove-oven {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 46%;
  bottom: 14%;
  border-radius: 4px;
  background-color: #8f9ba3;
  box-shadow: inset 0 0 0 3px #cdd4d8;
}

.stove-knob {
  position: absolute;
  left: 12%;
  top: 34%;
  width: 7%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--brand);
}

/* Banera */
.tub-body {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 22%;
  bottom: 14%;
  border-radius: 12px 12px 40% 40%;
  background-color: var(--surface);
  box-shadow: inset -8px 0 0 rgba(0, 0, 0, 0.07);
}

.tub-water {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 34%;
  bottom: 26%;
  border-radius: 6px 6px 34% 34%;
  background-color: #6ec6d9;
}

.tub-foam {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 28%;
  height: 12%;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.85);
}

.tub-tap {
  position: absolute;
  right: 6%;
  top: 10%;
  width: 7%;
  height: 18%;
  border-radius: 3px 3px 0 0;
  background-color: #8f9ba3;
}

.tub-foot {
  position: absolute;
  bottom: 2%;
  width: 8%;
  height: 12%;
  border-radius: 0 0 4px 4px;
  background-color: #b6bfc4;
}

.tub-foot-l { left: 14%; }
.tub-foot-r { right: 14%; }

/* Lavabo */
.sink-basin {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26%;
  height: 26%;
  border-radius: 8px 8px 44% 44%;
  background-color: var(--surface);
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.07);
}

.sink-hole {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 12%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: #8f9ba3;
}

.sink-column {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: 4%;
  width: 22%;
  transform: translateX(-50%);
  border-radius: 3px 3px 5px 5px;
  background-color: #e7ecee;
  box-shadow: inset -5px 0 0 rgba(0, 0, 0, 0.06);
}

.sink-tap {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 8%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
  background-color: #8f9ba3;
}

/* Oculta los muebles que no pertenecen a la habitacion actual */
.item.is-room-hidden {
  display: none;
}

@media (max-width: 560px) {
  .room-arrow {
    width: 36px;
    height: 36px;
  }

  .room-badge {
    padding: 4px 10px 6px;
  }

  .room-badge-name {
    font-size: 0.68rem;
  }

  .bld-label {
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  .city-title {
    font-size: 0.82rem;
  }

  /* En movil la pista se coloca arriba para no tapar los carteles */
  .city-hint {
    font-size: 0.64rem;
    bottom: auto;
    top: 6px;
  }

  .city-title {
    display: none;
  }

  .btn-map-text {
    display: none;
  }
}

@media (min-width: 1024px) {
  .city {
    aspect-ratio: 16 / 9;
  }

  .stage {
    aspect-ratio: 16 / 9;
  }

  .character {
    width: 170px;
    height: 300px;
  }

  .item {
    width: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
