/* ==========================================================================
   MI CASA JAPONESA - REDISEÑO TOP-DOWN RPG & SPRITES 16-BITS
   ========================================================================== */

/* Main Layout Grid */
.house-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 30px;
  max-width: 1400px;
  margin: 20px auto;
  align-items: start;
}

.mobile-hud {
  display: none;
}

.mobile-modal-close {
  display: none;
}

@media (max-width: 900px) {
  .house-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Left Column: Top-Down Canvas --- */
.house-viewer-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.viewer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.viewer-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, var(--accent-sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.viewer-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Garden Top-Down 16-bit RPG canvas */
.garden-canvas {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 6px solid #2f2519;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 10px 25px rgba(0,0,0,0.4);
  /* Crisp rendering for retro look */
  image-rendering: pixelated;
  transition: background-image 0.5s ease;
}

.garden-canvas.scene-patio {
  background-image: url('kitsune/Imagen-fondo-patio.png');
}

.garden-canvas.scene-casa {
  background-image: url('kitsune/Imagen-fondo-casa.png');
}

/* Placed items overlay layer */
.placed-decorations-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Individual Placed Item */
.placed-decor-item {
  position: absolute;
  width: 54px;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  pointer-events: auto;
  z-index: 6;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.placed-decor-item:hover {
  transform: translate(-50%, -55%) scale(1.15);
  filter: drop-shadow(0 8px 10px rgba(0,240,255,0.4));
  z-index: 20;
}

.placed-decor-item:active {
  cursor: grabbing;
}

/* Decoration Item Sprites (Pixel Art) */
.decor-sprite {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  image-rendering: pixelated;
}

/* Pixel Art Sprites deleted (using custom PNG backgrounds below) */

/* --- Characters & Sprite Animations (Top-Down) --- */
.npc-group-topdown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.rpg-character {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.npc-nametag-topdown {
  background: rgba(10, 11, 16, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* Kitsune Sprite (Autonomous wandering character) */
.kitsune-wandering {
  z-index: 12;
  transition: left 0.15s linear, top 0.15s linear, transform 0.2s ease;
}

.kitsune-sprite {
  width: 58px;
  height: 58px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
  image-rendering: pixelated;
}

/* Tanaka-sensei RPG Sprite */
.npc-sprite-tanaka {
  width: 88px;
  height: 96px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
  background-image: url("kitsune/Sprites%20dise%C3%B1os/Skin%20NPC%20Anciano.png");
  image-rendering: pixelated;
}

/* Yuki RPG Sprite */
.npc-sprite-yuki {
  width: 70px;
  height: 77px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
  background-image: url("kitsune/Sprites%20dise%C3%B1os/Skin%20NPC%20Alumna.png");
  image-rendering: pixelated;
}

/* Posición de Yuki */
.npc-standing-yuki {
  margin-top: 30px;
}

/* NPC Hover effect */
.rpg-character:hover {
  transform: translate(-50%, -55%) scale(1.08);
}

.rpg-character:active {
  transform: translate(-50%, -50%) scale(0.98);
}

/* Room footer instructions */
.room-instructions-footer {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Right Column: Sidebar Panels & Dialogues --- */
.house-right-column, .house-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dialogue Box Panel */
.dialogue-box {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
}

.dialogue-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.dialogue-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.dialogue-close-btn:hover {
  color: var(--accent-cyan);
  transform: scale(1.15);
}

.dialogue-npc-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  background: rgba(255,255,255,0.05);
}

.dialogue-npc-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dialogue-npc-status {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.dialogue-bubble {
  flex-grow: 1;
}

.dialogue-jp {
  font-size: 1.15rem;
  font-family: var(--font-jp);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-sakura);
}

.dialogue-es {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
}

.dialogue-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.dialogue-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.dialogue-btn:hover {
  background: rgba(0, 240, 255, 0.07);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateX(4px);
}

/* Tabs & Catalogue Panels */
.panel-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}

.panel-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
}

.panel-tab.active {
  color: var(--accent-cyan);
}

.panel-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
}

.panel-tab-content {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  backdrop-filter: var(--glass-blur);
  min-height: 300px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.points-indicator {
  display: flex;
  justify-content: flex-end;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.points-indicator strong {
  color: var(--accent-cyan);
}

/* Item Grids for Shop and Inventory */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.catalog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all 0.25s ease;
  align-items: center;
}

.catalog-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.catalog-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 4px;
}

.catalog-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.catalog-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-sakura);
}

.btn-catalog {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-catalog:hover {
  background: var(--accent-sakura);
  border-color: transparent;
  color: #000;
}

.btn-catalog.insufficient {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.03);
  cursor: not-allowed;
}

.btn-catalog.insufficient:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

/* Empty states */
.inventory-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon {
  font-size: 2.8rem;
  opacity: 0.4;
}

/* Draggable item card style in inventory */
.inventory-draggable-card {
  cursor: grab;
  user-select: none;
}

.inventory-draggable-card:active {
  cursor: grabbing;
}

/* --- ADAPTACIONES MÓVILES (PANTALLA COMPLETA & TOUCH) --- */
@media (max-width: 900px) {
  .house-layout {
    display: block;
    margin: 0;
    padding: 0;
  }

  /* El jardín ocupa la pantalla completa desde el header */
  .house-viewer-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    padding: 0;
    border: none;
    border-radius: 0;
    z-index: 100;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Cuando el panel está abierto, el jardín se oculta fuera de pantalla */
  .house-viewer-container.panel-open {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }

  /* Ocultar elementos no necesarios en móvil */
  .main-footer, .viewer-header, .room-instructions-footer {
    display: none !important;
  }

  /* Header fijo en la parte superior */
  .main-header {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80px;
    z-index: 500;
  }

  .header-container {
    padding: 10px 20px !important;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .garden-scroll-area {
    width: 100vw;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    touch-action: pan-x pan-y;
  }

  .garden-canvas {
    width: 800px;
    height: 500px;
    border: none;
    border-radius: 0;
    margin: 0;
    background-size: 100% 100%;
  }

  /* Botones HUD (Tienda / Inventario) */
  .mobile-hud {
    display: flex;
    gap: 10px;
    position: fixed;
    top: 95px;
    right: 15px;
    z-index: 200;
  }

  .mobile-hud-btn {
    background: rgba(10, 11, 16, 0.85);
    border: 1px solid var(--accent-cyan);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    cursor: pointer;
  }

  /* ===== PANEL DE TIENDA / INVENTARIO =====
     Ahora es un panel que desliza desde la derecha, completamente independiente
     del jardín. Usa posición fixed pero con scroll nativo en el contenido. */
  .house-sidebar-panel {
    display: none;
    position: fixed;
    top: 80px; /* Empieza debajo del header */
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    z-index: 300;
    background: var(--bg-dark, #0a0b10);
    flex-direction: column;
    border: none;
    border-radius: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .house-sidebar-panel.show-modal {
    display: flex;
    transform: translateX(0);
  }

  /* Botón de cerrar */
  .mobile-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255,255,255,0.04);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    flex-shrink: 0;
    gap: 8px;
  }
  .mobile-modal-close::before {
    content: "←";
    font-size: 1.3rem;
  }

  /* Pestañas */
  .panel-tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    gap: 0;
    padding: 0 10px;
  }

  .panel-tab {
    flex: 1;
    font-size: 0.78rem;
    padding: 10px 4px;
    text-align: center;
  }

  /* Área de contenido: aquí va el scroll real */
  .panel-tab-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
    padding-bottom: env(safe-area-inset-bottom, 30px);
    /* Sin overscroll-behavior aquí para que el scroll funcione libremente */
  }

  /* Tarjetas de catálogo más pequeñas en móvil */
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .catalog-card {
    padding: 8px;
  }

  .catalog-icon {
    width: 44px;
    height: 44px;
  }

  /* Puntos indicador */
  .points-indicator {
    font-size: 0.82rem;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  /* Dialogue Box at bottom */
  .dialogue-box {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    min-height: 30vh;
    z-index: 400;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

  .dialogue-box.show-mobile-dialogue {
    display: flex !important;
  }

  .dialogue-box.show-mobile-dialogue .dialogue-close-btn {
    display: block !important;
  }
}

/* ===== INDICADOR DE MODO COLOCACIÓN (MOBILE) ===== */
#mobile-placement-indicator {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  background: rgba(10, 11, 16, 0.95);
  border: 2px solid var(--accent-cyan, #00f0ff);
  border-radius: 16px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,240,255,0.25);
  backdrop-filter: blur(10px);
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}

#mobile-placement-indicator.active {
  display: flex;
}

#mobile-placement-cancel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 700;
}

/* --- Nuevos Items de Decoración (Sprites PNG Transparentes) --- */
.item-decor-arbol-sakura { background-image: url('kitsune/Sprites%20dise%C3%B1os/Arbol_Sakura.png'); }
.item-decor-bambu { background-image: url('kitsune/Sprites%20dise%C3%B1os/Bamb%C3%BA.png'); }
.item-decor-bonsai { background-image: url('kitsune/Sprites%20dise%C3%B1os/Bonsai.png'); }
.item-decor-flores-loto { background-image: url('kitsune/Sprites%20dise%C3%B1os/Flores_loto.png'); }
.item-decor-fuente-chozubachi { background-image: url('kitsune/Sprites%20dise%C3%B1os/Fuente_Ch%C5%8Dzubachi.png'); }
.item-decor-inciensarios-koro { background-image: url('kitsune/Sprites%20dise%C3%B1os/Inciensarios_Koro.png'); }
.item-decor-ishidouro { background-image: url('kitsune/Sprites%20dise%C3%B1os/Ishidouro.png'); }
.item-decor-mascara-1 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%201.png'); }
.item-decor-mascara-2 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%202.png'); }
.item-decor-mascara-3 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%203.png'); }
.item-decor-mascara-4 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%204.png'); }
.item-decor-mascara-5 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%205.png'); }
.item-decor-mascara-6 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%206.png'); }
.item-decor-mascara-7 { background-image: url('kitsune/Sprites%20dise%C3%B1os/M%C3%A1scara%207.png'); }
.item-decor-puente { background-image: url('kitsune/Sprites%20dise%C3%B1os/Puente.png'); }

/* Sobrescribir tamaños específicos en el canvas para mejor proporción */
.placed-decor-item:has(.item-decor-arbol-sakura) {
  width: 110px;
  height: 110px;
}
.placed-decor-item:has(.item-decor-bambu) {
  width: 60px;
  height: 110px;
}
.placed-decor-item:has(.item-decor-puente) {
  width: 120px;
  height: 90px;
}
.placed-decor-item:has(.item-decor-ishidouro) {
  width: 64px;
  height: 96px;
}
.placed-decor-item:has(.item-decor-fuente-chozubachi) {
  width: 70px;
  height: 70px;
}
.placed-decor-item:has(.item-decor-mascara-1),
.placed-decor-item:has(.item-decor-mascara-2),
.placed-decor-item:has(.item-decor-mascara-3),
.placed-decor-item:has(.item-decor-mascara-4),
.placed-decor-item:has(.item-decor-mascara-5),
.placed-decor-item:has(.item-decor-mascara-6),
.placed-decor-item:has(.item-decor-mascara-7) {
  width: 44px;
  height: 44px;
}
.placed-decor-item:has(.item-decor-bonsai),
.placed-decor-item:has(.item-decor-flores-loto),
.placed-decor-item:has(.item-decor-inciensarios-koro) {
  width: 54px;
  height: 54px;
}

/* Selección e Indicador de Controles de Rotación */
.placed-decor-item.selected {
  outline: 2px dashed var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.05);
}

.decor-controls {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(10, 11, 16, 0.9);
  border: 1px solid var(--accent-cyan);
  border-radius: 20px;
  padding: 3px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 999;
  pointer-events: auto;
}

.decor-control-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
  transition: transform 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decor-control-btn:hover {
  color: var(--accent-cyan);
  transform: scale(1.25);
}

/* Buscador de Inventario */
.inventory-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inventory-search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.inventory-search-box .search-icon {
  font-size: 0.9rem;
  opacity: 0.6;
}
.inventory-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

/* Paginación de Inventario */
.inventory-pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.pagination-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #fff;
}
.pagination-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: transparent;
}
.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Botón de Borrado en Esquina Superior Derecha */
.decor-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.72rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 1000;
  border: 1.5px solid #fff;
  transition: transform 0.15s ease, background-color 0.15s ease;
  pointer-events: auto;
}

.decor-delete-btn:hover {
  background: #ff453a;
  transform: scale(1.18);
}

/* Aspectos de Kyubi (Filtros de Color CSS) */
#kitsune-character.skin-default .kitsune-sprite {
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
}
#kitsune-character.skin-mystical .kitsune-sprite {
  filter: hue-rotate(190deg) saturate(1.3) drop-shadow(0 6px 8px rgba(0, 240, 255, 0.45));
}
#kitsune-character.skin-sakura .kitsune-sprite {
  filter: hue-rotate(320deg) saturate(1.4) drop-shadow(0 6px 8px rgba(255, 117, 151, 0.45));
}
#kitsune-character.skin-golden .kitsune-sprite {
  filter: hue-rotate(40deg) saturate(1.8) brightness(1.2) drop-shadow(0 6px 8px rgba(255, 215, 0, 0.45));
}
#kitsune-character.skin-shadow .kitsune-sprite {
  filter: brightness(0.3) contrast(1.5) saturate(0.5) drop-shadow(0 6px 8px rgba(139, 92, 246, 0.45));
}
#kitsune-character.skin-green .kitsune-sprite {
  filter: hue-rotate(90deg) saturate(1.5) drop-shadow(0 6px 8px rgba(0, 255, 100, 0.45));
}
#kitsune-character.skin-calipso .kitsune-sprite {
  filter: hue-rotate(150deg) saturate(1.8) brightness(1.2) drop-shadow(0 6px 8px rgba(0, 220, 255, 0.45));
}
#kitsune-character.skin-gray .kitsune-sprite {
  filter: saturate(0) brightness(1.2) contrast(1.1) drop-shadow(0 6px 8px rgba(180, 180, 180, 0.45));
}
#kitsune-character.skin-red .kitsune-sprite {
  filter: hue-rotate(345deg) saturate(2.0) brightness(0.95) drop-shadow(0 6px 8px rgba(255, 50, 50, 0.45));
}
#kitsune-character.skin-white .kitsune-sprite {
  filter: saturate(0.1) brightness(1.8) contrast(0.9) drop-shadow(0 6px 8px rgba(255, 255, 255, 0.55));
}

/* Clases de apoyo para la vista previa del sprite en la tarjeta de la tienda de Aspectos */
.kitsune-sprite.skin-default {
  filter: none;
}
.kitsune-sprite.skin-mystical {
  filter: hue-rotate(190deg) saturate(1.3);
}
.kitsune-sprite.skin-sakura {
  filter: hue-rotate(320deg) saturate(1.4);
}
.kitsune-sprite.skin-golden {
  filter: hue-rotate(40deg) saturate(1.8) brightness(1.2);
}
.kitsune-sprite.skin-shadow {
  filter: brightness(0.3) contrast(1.5) saturate(0.5);
}
.kitsune-sprite.skin-green {
  filter: hue-rotate(90deg) saturate(1.5);
}
.kitsune-sprite.skin-calipso {
  filter: hue-rotate(150deg) saturate(1.8) brightness(1.2);
}
.kitsune-sprite.skin-gray {
  filter: saturate(0) brightness(1.2) contrast(1.1);
}
.kitsune-sprite.skin-red {
  filter: hue-rotate(345deg) saturate(2.0) brightness(0.95);
}
.kitsune-sprite.skin-white {
  filter: saturate(0.1) brightness(1.8) contrast(0.9);
}
