/* Wii Channel System HD & Mobile Responsive Styles */
:root {
  --wii-cyan: #00b7ff;
  --wii-cyan-bright: #54c9ee;
  --wii-cyan-glow: rgba(0, 183, 255, 0.45);
  --wii-ceramic: #eef3f6;
  --wii-ceramic-dim: #dfe7eb;
}

html, body {
  color-scheme: light !important;
  /* Misma raíz simple que la prueba confirmada en el iPhone; franjas en #channel. */
  background-image: none !important;
  background-color: var(--wii-browser-color, #000000) !important;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  position: static !important;
  inset: auto !important;
  overflow: visible;
  overscroll-behavior: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}





/* Background & Scanlines */
#channel {
  background: 
    url('assets/channel-shell-clean.svg') center bottom/100% 125px no-repeat,
    radial-gradient(circle at 50% 10%, rgba(0, 183, 255, 0.08) 0%, transparent 65%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(#e9eff2, #e2e8ea);
  transition: transform 0.2s ease-out;
}

#library {
  inset: 46px 36px 175px;
  perspective: 1200px;
}

#library[data-view=carousel] {
  overflow: visible;
  perspective: 1200px;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

#library[data-view=carousel] #projects {
  perspective: 1200px;
  transform-style: flat !important;
}

#library[data-view=carousel] .cover {
  will-change: transform, opacity;
}

/* Cover Styling - Nintendo Wii Channel Bezel */
#library[data-view=carousel] .cover {
  left: calc(50% - 72px);
  top: max(12px, calc(50% - 110px));
  width: 144px;
  height: 216px;
  transform: translateX(var(--x)) translateY(var(--y)) translateZ(var(--z, 0px)) rotateZ(var(--tilt)) rotateY(var(--angle)) scale(var(--s));
}

.cover {
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(160, 175, 185, 0.4),
    -2px 2px 0 #b4c2c5,
    0 10px 18px rgba(35, 55, 65, 0.22);
  filter: blur(0px) brightness(1) saturate(1);
  transition: filter .22s ease, box-shadow .26s ease, border-color .26s ease;
  overflow: hidden;
  background: #ffffff;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cover.selected {
  z-index: 1000 !important;
  border-color: #00b7ff;
  box-shadow: 
    0 0 0 2px #00b7ff,
    0 0 24px var(--wii-cyan-glow),
    -2px 2px 0 #95adb2,
    0 16px 28px rgba(0, 183, 255, 0.35);
}

.cover:hover, .cover:focus-visible {
  filter: brightness(1.06);
  border-color: #54c9ee;
}

/* Arrow controls enabled for easy desktop and touch clicking */
#previous, #next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #e2eaf5 60%, #cbd6e4 100%);
  box-shadow: 
    inset 0 1px 2px #fff,
    inset 0 -2px 3px rgba(110, 120, 130, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#previous { left: 14px; }
#next { right: 14px; }

#previous:hover, #next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 14px var(--wii-cyan-glow), 0 4px 12px rgba(0,0,0,0.2);
}

#previous:active, #next:active {
  transform: translateY(-50%) scale(0.95);
}

#previous img, #next img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
}

/* Selected Title Display */
.selected-title {
  left: calc(50% - 250px);
  bottom: 126px;
  width: 500px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: #50616b;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.selected-title:hover {
  color: #008ebf;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px var(--wii-cyan-glow);
}

/* Toolbar Menu */
.toolbar {
  left: calc(50% - 170px);
  top: auto;
  bottom: 74px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(228, 235, 242, 0.85) 100%);
  border-radius: 18px;
  box-shadow: 
    inset 0 1px 1px #fff,
    inset 0 -1px 2px rgba(189, 200, 210, 0.6),
    0 3px 8px rgba(18, 28, 44, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0 4px;
  display: flex;
  align-items: center;
  z-index: 5000 !important;
  pointer-events: auto !important;
}

.tool {
  width: 40px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  height: 30px;
  border-right: 1px solid rgba(196, 208, 208, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.tool:last-child {
  border-right: 0;
}

.tool img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.7;
  transition: transform 0.14s ease, opacity 0.14s ease, filter 0.14s ease;
}

.tool:hover img, .tool:focus-visible img {
  opacity: 1;
  filter: drop-shadow(0 0 3px #00b7ff);
  transform: scale(1.1);
}

.tool[aria-pressed=true] {
  background: linear-gradient(180deg, #36bdeb 0%, #009ecc 100%) !important;
  box-shadow: inset 0 1px 2px #fff, 0 0 10px var(--wii-cyan-glow);
  border-radius: 8px;
}

.tool[aria-pressed=true] img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
  opacity: 1 !important;
}

/* Bottom Console Disc Buttons */
.settings, .brand-contact {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  bottom: 14px;
  position: absolute;
  transition: transform 0.2s cubic-bezier(.2,.7,.2,1), filter 0.2s, box-shadow 0.2s;
  background: transparent !important;
  box-shadow: 0 8px 18px rgba(18, 28, 44, 0.16) !important;
  border: 0 !important;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.settings { 
  left: 45px; 
}

.settings img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  display: block;
}

.brand-contact { right: 45px; left: auto; overflow: hidden; padding: 0; }
.brand-contact img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.settings:hover, .brand-contact:hover {
  transform: scale(1.08);
  box-shadow: 
    inset 0 2px 2px #fff,
    0 0 20px var(--wii-cyan-glow),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.settings:active, .brand-contact:active {
  transform: scale(0.95);
}

.cv, .sound {
  transition: transform 0.16s ease, filter 0.16s ease;
}

.cv { left: 148px; bottom: 35px; width: 44px; height: 58px; }
.sound { right: 148px; left: auto; bottom: 35px; width: 42px; height: 42px; }

.cv:hover, .sound:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px #00b7ff);
}

/* Modal and Preview Dialog */
dialog {
  border: 2px solid #b2c5ce;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f7 100%);
  box-shadow: 
    0 16px 45px rgba(20, 35, 50, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.pearl {
  padding: 8px 32px;
  border: 1px solid #7dd0ea;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #e6eff5 50%, #d8e5ee 100%);
  box-shadow: 
    inset 0 1px 1px #fff,
    0 3px 6px rgba(0, 0, 0, 0.1);
  color: #485661;
  font-weight: 500;
  transition: all 0.16s ease;
}

.pearl:hover {
  transform: scale(1.04);
  border-color: #00b7ff;
  color: #006b94;
  box-shadow: 0 0 12px var(--wii-cyan-glow), 0 3px 8px rgba(0,0,0,0.12);
}

.pearl:active {
  transform: scale(0.96);
}

.preview-save {
  background: linear-gradient(180deg, #54c9ee 0%, #00b7ff 100%) !important;
  color: #ffffff !important;
  border-color: #0087bd !important;
  box-shadow: inset 0 1px 1px #fff, 0 3px 8px rgba(0, 183, 255, 0.4) !important;
}

.preview-save:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px var(--wii-cyan-glow) !important;
}

/* ================= MOBILE / TOUCH OPTIMIZATIONS ================= */
#channel.mobile-portrait {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  padding-left: env(safe-area-inset-left, 0px) !important;
  padding-right: env(safe-area-inset-right, 0px) !important;
  box-sizing: border-box !important;
  background: 
    radial-gradient(circle at 50% 12%, rgba(0, 183, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #eef3f6 0%, #edf3f6 30%, #e6edf1 70%, #dfe7eb 100%) !important;
}

#channel.mobile-portrait #library {
  top: calc(10px + env(safe-area-inset-top, 0px)) !important;
  left: 8px !important;
  right: 8px !important;
  bottom: calc(230px + env(safe-area-inset-bottom, 0px)) !important;
  position: absolute !important;
}

#channel.mobile-portrait #library[data-view=carousel] .cover {
  width: 168px;
  height: 252px;
  left: calc(50% - 84px);
  top: calc(50% - 130px);
}

#channel.mobile-portrait #library[data-view=carousel] .cover.selected {
  z-index: 1000 !important;
}

#channel.mobile-portrait .selected-title {
  width: 86%;
  left: 7%;
  bottom: calc(195px + env(safe-area-inset-bottom, 0px));
  height: 40px;
  font-size: 19px;
  font-weight: 600;
  color: #3b4d58;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(18, 28, 44, 0.1);
}

/* En móvil, ocultar botón add de escritorio para evitar colisiones */
#channel.mobile-portrait .add {
  display: none !important;
}

/* En móvil, la barra de herramientas se sitúa limpia y espaciosa */
#channel.mobile-portrait .toolbar {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(134px + env(safe-area-inset-bottom, 0px));
  height: 50px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 25px;
  box-shadow: 
    inset 0 1px 2px #fff,
    inset 0 -1px 2px rgba(189, 200, 210, 0.5),
    0 6px 18px rgba(18, 28, 44, 0.14);
  padding: 0 10px;
  gap: 2px;
  z-index: 5000 !important;
  pointer-events: auto !important;
}

#channel.mobile-portrait .tool {
  width: 48px;
  height: 42px;
  border-radius: 10px;
}

#channel.mobile-portrait .tool img {
  width: 30px;
  height: 30px;
  opacity: 0.85;
}

/* Botones inferiores en móvil subidos para no chocar jamás con la barra de Safari ni el indicador de inicio */
#channel.mobile-portrait .settings, 
#channel.mobile-portrait .brand-contact {
  width: 78px;
  height: 78px;
  bottom: calc(34px + env(safe-area-inset-bottom, 12px));
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(18, 28, 44, 0.16) !important;
  padding: 0;
}

#channel.mobile-portrait .settings img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  display: block;
}

#channel.mobile-portrait .settings { 
  left: 16px; 
}

#channel.mobile-portrait .brand-contact { 
  right: 16px; 
  left: auto; 
}

#channel.mobile-portrait .cv { 
  left: 106px; 
  bottom: calc(40px + env(safe-area-inset-bottom, 12px)); 
  width: 52px; 
  height: 64px; 
}

#channel.mobile-portrait .cv img {
  width: 38px;
  height: 44px;
  margin: auto;
}

#channel.mobile-portrait .sound { 
  right: 106px; 
  left: auto; 
  bottom: calc(46px + env(safe-area-inset-bottom, 12px)); 
  width: 50px; 
  height: 50px; 
}

#channel.mobile-portrait .sound img {
  width: 34px;
  height: 34px;
  margin: auto;
}

/* Ocultar botones de flecha en móvil para navegación táctil pura con gestos directos */
#channel.mobile-portrait #previous, 
#channel.mobile-portrait #next {
  display: none !important;
}

#channel.mobile-portrait #library[data-view=carousel] {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

#channel.mobile-portrait #library[data-view=carousel] .cover {
  transition: filter .2s, box-shadow .2s, border-color .2s;
}

#library.is-dragging .cover {
  transition: none !important;
}

/* ================= WII CHANNELS HORIZONTAL PAGING & TRANSITIONS ================= */

/* Animación de salida del carrusel hacia los canales */
.library-transitioning-out {
  pointer-events: none !important;
  opacity: 0 !important;
  transform: scale(0.92) translateZ(-80px) !important;
  transition: opacity 0.28s cubic-bezier(.2,.8,.25,1), transform 0.28s cubic-bezier(.2,.8,.25,1) !important;
}

/* Animación de entrada suave del carrusel */
.library-transitioning-in {
  animation: wiiCarouselEnter 0.35s cubic-bezier(.2,.8,.25,1) both !important;
}

@keyframes wiiCarouselEnter {
  from {
    opacity: 0;
    transform: scale(1.08) translateZ(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

#library[data-view=channels] {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  perspective: none !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  display: block !important;
  padding: 0 !important;
  mask-image: none !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE y Edge */
}

/* Ocultar completamente el slider / barra de scroll nativa blanca en WebKit (Safari, iOS, Chrome) */
#library[data-view=channels]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

#library[data-view=channels] #projects {
  display: flex !important;
  flex-direction: row !important;
  width: max-content !important;
  height: 100% !important;
  gap: 0 !important;
  padding: 0 !important;
  position: relative !important;
  transform-style: flat !important;
}

/* Cada página de la Wii contiene su cuadrícula de canales */
.wii-channels-page {
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(3, minmax(68px, 1fr)) !important;
  gap: 12px !important;
  padding: 8px 16px 40px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

/* En móvil portrait, 2 columnas x 4 filas por página perfectamente cuadradas */
#channel.mobile-portrait .wii-channels-page {
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(4, minmax(70px, 1fr)) !important;
  gap: 10px !important;
  padding: 6px 10px 42px !important;
}

/* Indicadores de página de canales estilo Wii fijos en pantalla */
.wii-page-indicator {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%);
  bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  z-index: 6000 !important;
  pointer-events: auto !important;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(18, 28, 44, 0.12);
}

.wii-page-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(140, 160, 170, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  cursor: pointer;
}

.wii-page-dot.active {
  background: #00b7ff;
  box-shadow: 0 0 8px var(--wii-cyan-glow);
  transform: scale(1.3);
  border-color: #ffffff;
}

/* Animación de entrada de los canales */
@keyframes wiiChannelPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#library[data-view=channels] .cover,
#library[data-view=channels] .wii-channel-slot {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  border: 3px solid #d5e0e6 !important;
  box-shadow: 
    inset 0 1px 0 #fff,
    inset 0 -1px 2px rgba(112, 137, 151, 0.22),
    0 2px 4px rgba(42, 67, 82, 0.14) !important;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e1e8ee 100%) !important;
  transition: transform 0.16s cubic-bezier(.2,.8,.25,1), box-shadow 0.16s, border-color 0.16s !important;
  cursor: pointer;
  overflow: hidden;
  animation: wiiChannelPopIn 0.3s cubic-bezier(.2,.8,.25,1) backwards;
  animation-delay: calc(var(--ch-index, 0) * 0.018s);
}

#library[data-view=channels] .cover.selected {
  border-color: #26b9e8 !important;
  box-shadow: inset 0 0 0 1px #e9fbff, 0 0 0 1px rgba(38,185,232,.25), 0 2px 6px rgba(42,67,82,.14) !important;
}

#library[data-view=channels] .cover:focus-visible,
#library[data-view=channels] .wii-author-channel:focus-visible {
  outline: 2px solid #009ac8 !important;
  outline-offset: 2px;
  border-color: #26b9e8 !important;
}

@media (hover: hover) and (pointer: fine) {
  #library[data-view=channels] .cover:hover,
  #library[data-view=channels] .wii-author-channel:hover {
    transform: scale(1.015) !important;
    border-color: #26b9e8 !important;
    box-shadow: inset 0 0 0 1px #e9fbff, 0 0 0 1px rgba(38,185,232,.3), 0 4px 8px rgba(42,67,82,.16) !important;
  }
}

#library[data-view=channels] .cover:active,
#library[data-view=channels] .wii-author-channel:active {
  transform: scale(.985) !important;
  filter: none !important;
  border-color: #009ac8 !important;
  box-shadow: inset 0 2px 4px rgba(42,67,82,.2), 0 1px 2px rgba(42,67,82,.1) !important;
  transition-duration: .07s !important;
}

#library[data-view=channels] .cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transform: none !important;
  transition: none;
}

/* Brillo de cristal (gloss) superior auténtico de los canales de Wii */
#library[data-view=channels] .cover::before,
#library[data-view=channels] .wii-channel-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 75%, transparent 100%);
  opacity: .3;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  pointer-events: none;
  z-index: 4;
}

/* Etiqueta del proyecto en el canal de Wii */
/* El menú muestra sólo imágenes; la información vive dentro del canal. */
#library[data-view=channels] .project-label,
#library[data-view=channels] .author-title,
#library[data-view=channels] .static-core {
  display: none !important;
}

/* Las ranuras vacías son fondo, no controles seleccionables. */
#library[data-view=channels] .wii-static-slot {
  cursor: default !important;
  pointer-events: none !important;
  animation: none !important;
  opacity: .66;
}

@media (prefers-reduced-motion: reduce) {
  #library[data-view=channels] .cover,
  #library[data-view=channels] .wii-channel-slot,
  #library[data-view=channels] .author-avatar {
    animation: none !important;
    transition: none !important;
  }
  #library[data-view=channels] .cover:hover,
  #library[data-view=channels] .cover:active,
  #library[data-view=channels] .wii-author-channel:hover,
  #library[data-view=channels] .wii-author-channel:active {
    transform: none !important;
  }
}

#library[data-view=carousel] .project-label {
  display: none !important;
}

/* Canal especial de Autor/Contacto con tu logo personal */
.wii-author-channel {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #dbe6ec 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  text-decoration: none;
}

.wii-author-channel .author-avatar {
  width: clamp(24px, 6vh, 52px);
  height: clamp(24px, 6vh, 52px);
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #54c9ee;
  box-shadow: 0 0 12px var(--wii-cyan-glow), inset 0 1px 2px #fff;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}

.wii-author-channel:hover .author-avatar {
  transform: scale(1.1) rotate(3deg);
}

.wii-author-channel .author-title {
  font-family: WiiInterface, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #3b5060;
  letter-spacing: 0.3px;
  text-align: center;
}

/* Ranuras vacías de canal Wii con estática animada auténtica */
@keyframes wiiStaticShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 100px 80px, 0 100px; }
}

.wii-static-slot {
  background: 
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0, rgba(190, 205, 215, 0.4) 2px, transparent 4px),
    linear-gradient(135deg, #d3dee4 0%, #c4d3db 50%, #b8c8d2 100%) !important;
  background-size: 8px 8px, 100% 100% !important;
  opacity: 0.78;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: wiiStaticShift 1.2s steps(8) infinite;
}

.wii-static-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.wii-static-slot .static-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(110, 130, 140, 0.4);
  background: rgba(255, 255, 255, 0.45);
  display: grid;
  place-content: center;
  font-size: 11px;
  color: #657782;
  font-weight: bold;
}

#library[data-view=channels] ~ #previous,
#library[data-view=channels] ~ #next,
#library[data-view=channels] ~ #selected-title,
#library[data-view=channels] ~ .wii-dock-stage #selected-title {
  display: none !important;
}

#channel.mobile-portrait #library[data-view=channels] {
  top: calc(15px + env(safe-area-inset-top, 0px)) !important;
  inset: 15px 8px calc(192px + env(safe-area-inset-bottom, 0px)) !important;
  position: absolute !important;
}

#channel.mobile-portrait #library[data-view=channels] #projects {
  display: flex !important;
  flex-direction: row !important;
  height: 100% !important;
}

#channel.mobile-portrait .wii-page-indicator {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%);
  bottom: calc(194px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 6000 !important;
}

#channel.mobile-portrait #library[data-view=channels] .cover,
#channel.mobile-portrait #library[data-view=channels] .wii-channel-slot {
  height: 100% !important;
  min-height: 76px !important;
}

@media (max-width: 600px) {
  dialog {
    inset: 30px 15px !important;
    border-radius: 20px;
  }
  
  .channel-preview .project-detail {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}




/* ================= NINTENDO WII SAFETY & HEALTH SCREEN (PANTALLA DE ADVERTENCIA) ================= */

/* Existing WiiInterface is an approximation, not Nintendo's original font.
   Entrance .3s + .5s approximates the observed video; prompt cycle is 1s. */
#wii-warning-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  color: #fff !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(18px, env(safe-area-inset-top)) 24px max(18px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
  overflow: hidden;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  opacity: 1;
  transition: opacity .5s linear;
  font-family: WiiInterface, sans-serif !important;
}
#wii-warning-screen .wii-warning-box {
  width: min(100%, 900px);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  justify-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  font-family: inherit !important;
  animation: wiiWarningReveal .5s linear .3s both;
}
#wii-warning-screen.black-hold .wii-warning-box {
  animation: none;
  opacity: 0;
  transition: none;
}
#wii-warning-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s linear;
}
#wii-warning-screen.fade-out .wii-warning-box {
  animation: none;
  opacity: 0;
  visibility: hidden;
}
.wii-warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(12px, 8vh, 62px);
}
.wii-warning-icon {
  width: 29px;
  height: 27px;
  background: #f5df30;
  color: #000;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7px;
  box-sizing: border-box;
  font: bold 21px/1 Arial, sans-serif;
  box-shadow: none;
}
.wii-warning-title {
  font-family: inherit !important;
  font-size: clamp(20px, 3.6vh, 28px);
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
}
.wii-warning-body {
  width: min(100%, 650px);
  max-width: 650px;
  text-align: center;
  font-family: inherit !important;
  color: #fff;
  margin: clamp(24px, 8vh, 62px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3vh, 26px);
}
.wii-warning-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0;
}
.wii-warning-headline .headline-sub {
  font-family: inherit !important;
  font-size: clamp(15px, 2.5vh, 20px);
  letter-spacing: .5px;
  font-weight: 600;
  color: #fff;
}
.wii-warning-headline .headline-name {
  font-family: inherit !important;
  font-size: clamp(20px, 3.3vh, 26px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: none;
}
.wii-warning-lead, .wii-warning-sublead {
  font-family: inherit !important;
  margin: 0;
  width: 100%;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  font-size: clamp(16px, 2.9vh, 23px);
  line-height: 1.45;
  color: #fff;
  max-width: 560px;
  text-wrap: pretty;
}
.wii-warning-sublead {
  font-size: clamp(15px, 2.7vh, 21px);
  color: #829bc9;
  max-width: 560px;
}
.wii-warning-footer {
  margin: 0 0 clamp(18px, 10vh, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.wii-warning-press-a {
  font-family: inherit !important;
  font-size: clamp(16px, 2.9vh, 23px);
  color: #fff;
  letter-spacing: .3px;
  animation: wiiPressAPulse 1s linear 2.3s infinite both;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
}
.wii-a-btn-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: inherit;
  font-weight: 600;
  border: 2px solid currentColor;
  box-shadow: none;
}
@keyframes wiiWarningReveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes wiiPressAPulse {
  0%, 90%, 100% { opacity: 0; }
  40%, 50% { opacity: 1; }
}
@media (orientation: portrait) {
  #wii-warning-screen { padding-left: 28px !important; padding-right: 28px !important; }
  #wii-warning-screen .wii-warning-box { grid-template-rows: auto 1fr auto; }
  .wii-warning-header { margin-top: clamp(28px, 10vh, 90px); }
  .wii-warning-body { margin-top: clamp(48px, 12vh, 110px); gap: 28px; }
  .wii-warning-lead { font-size: 20px; }
  .wii-warning-sublead { font-size: 18px; }
  .wii-warning-footer { margin-bottom: clamp(28px, 10vh, 90px); }
  .wii-warning-press-a { font-size: 18px; }
}
@media (max-height: 480px) {
  .wii-warning-header { margin-top: 10px; }
  .wii-warning-body { margin-top: 20px; gap: 12px; }
  .wii-warning-headline { gap: 0; }
  .wii-warning-lead { font-size: 17px; }
  .wii-warning-sublead { font-size: 16px; }
  .wii-warning-footer { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #wii-warning-screen, #wii-warning-screen.fade-out { transition: none; }
  #wii-warning-screen .wii-warning-box, .wii-warning-press-a { animation: none; opacity: 1; }
  #wii-warning-screen.black-hold .wii-warning-box { transition: none; }
}

/* La entrada se revela como una sola pantalla, sin vuelos individuales de controles. */
.wii-portfolio-entering .cover,
.wii-portfolio-entering .settings,
.wii-portfolio-entering .brand-contact,
.wii-portfolio-entering .cv,
.wii-portfolio-entering .sound,
.wii-portfolio-entering .toolbar,
.wii-portfolio-entering .selected-title { animation: none !important; }

/* Animación de entrada fluida y continua al salir de la advertencia:
   1º) Carrusel con entrada en abanico giratorio 3D suave (0s a 0.65s)
   2º) Título seleccionado asciende con fade (delay 0.14s)
   3º) Barra de herramientas HUD asciende (delay 0.20s)
   4º) Discos inferiores Ajustes y Contacto ascienden de forma orgánica (delay 0.28s)
   5º) Iconos secundarios CV y Sonido ascienden (delay 0.34s) */

.wii-portfolio-entering .settings,
.wii-portfolio-entering .brand-contact,
.wii-portfolio-entering .cv,
.wii-portfolio-entering .sound,
.wii-portfolio-entering .toolbar,
.wii-portfolio-entering .selected-title {
  transition: none !important;
  will-change: transform, opacity;
}

.wii-portfolio-entering #library[data-view=carousel] .cover {
  animation: wiiEntranceCovers 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(abs(var(--slot-offset, 0)) * 0.025s);
}

.wii-portfolio-entering .selected-title {
  animation: wiiEntranceTitle 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  animation-delay: 0.14s;
}

.wii-portfolio-entering .toolbar {
  animation: wiiEntranceHud 0.48s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  animation-delay: 0.20s;
}

.wii-portfolio-entering .settings,
.wii-portfolio-entering .brand-contact {
  animation: wiiEntranceDiscs 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  animation-delay: 0.28s;
}

.wii-portfolio-entering .cv,
.wii-portfolio-entering .sound,
.wii-portfolio-entering #previous,
.wii-portfolio-entering #next {
  animation: wiiEntranceSubTools 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  animation-delay: 0.34s;
}

@keyframes wiiEntranceCovers {
  0% {
    opacity: 0;
    transform: translateX(calc(var(--x) * 1.3 + 30px)) translateY(calc(var(--y) + 20px)) translateZ(calc(var(--z, 0px) - 80px)) rotateY(calc(var(--angle) + 12deg)) scale(calc(var(--s) * 0.86));
  }
  100% {
    opacity: 1;
    transform: translateX(var(--x)) translateY(var(--y)) translateZ(var(--z, 0px)) rotateZ(var(--tilt)) rotateY(var(--angle)) scale(var(--s));
  }
}

@keyframes wiiEntranceTitle {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes wiiEntranceHud {
  0% { opacity: 0; transform: translateX(-50%) translateY(22px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes wiiEntranceDiscs {
  0% { opacity: 0; transform: translateY(24px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wiiEntranceSubTools {
  0% { opacity: 0; transform: translateY(16px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* Mientras la pantalla de advertencia exista, el portafolio está completamente apagado e inalcanzable */
#channel.wii-hidden-before-start {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#channel.wii-hidden-before-start * {
  pointer-events: none !important;
}

/* ================= 1. TACTILE BUTTON PRESS ANIMATIONS ================= */
.tool,
.native,
.pearl,
.arrow,
.selected-title,
.cover,
.wii-channel-slot,
.wii-category-tile,
.wii-search-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.tool:active {
  transform: scale(0.88) !important;
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 183, 255, 0.75)) !important;
  transition: transform 0.06s ease, filter 0.06s ease !important;
}

#channel.mobile-portrait .tool:active {
  transform: scale(0.86) !important;
}

.settings:active,
.brand-contact:active {
  transform: scale(0.91) !important;
  filter: brightness(1.15) drop-shadow(0 0 18px rgba(0, 183, 255, 0.8)) !important;
  transition: transform 0.06s ease, filter 0.06s ease !important;
}

.cv:active,
.sound:active,
.add:active {
  transform: scale(0.88) !important;
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(0, 183, 255, 0.7)) !important;
  transition: transform 0.06s ease, filter 0.06s ease !important;
}

.arrow:active {
  transform: scale(0.84) !important;
  filter: brightness(1.25) drop-shadow(0 0 14px rgba(0, 183, 255, 0.85)) !important;
  transition: transform 0.06s ease, filter 0.06s ease !important;
}

.selected-title:active {
  transform: scale(0.97) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 12px rgba(0, 183, 255, 0.5) !important;
  transition: transform 0.06s ease, box-shadow 0.06s ease !important;
}

.pearl:active {
  transform: scale(0.94) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25), 0 0 10px rgba(0, 183, 255, 0.6) !important;
  transition: transform 0.06s ease, box-shadow 0.06s ease !important;
}

.cover:active {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(0, 183, 255, 0.8)) !important;
  transition: filter 0.08s ease, box-shadow 0.08s ease !important;
}

/* ================= 2. APERTURA DE CARÁTULA 3D EN EL MENÚ WII ================= */

#channel {
  --part-offset: 88px;
  --wii-open-ease: cubic-bezier(0.32, 0.94, 0.32, 1);
}

#channel.mobile-portrait {
  --part-offset: 15vw;
}

/* --- Desplazamiento coordinado y suave del menú principal (0.94s sincronizado con la barra principal) --- */
#channel.case-open .arrow {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.75) !important;
  transition: opacity 0.54s ease, transform 0.94s var(--wii-open-ease) !important;
}

#channel.case-open #library[data-view=carousel] {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* Las carátulas laterales inmediatas (±1) se apartan suavemente a los costados quedando detrás con desenfoque bokeh moderado (3.2px), mientras las carátulas más lejanas (±2 o más, .slide-far) permanecen ocultas para que jamás se superpongan dos carátulas siguientes */
#channel.case-open #library[data-view=carousel] .cover.slide-left {
  transform: translateX(calc(var(--x) - var(--part-offset, 88px) + var(--part-extra-x, 0px))) translateY(calc(var(--y) + 6px)) translateZ(calc(var(--z, 38px) * 2.2 - 143.6px + var(--part-extra-z, 0px))) rotateZ(calc(var(--tilt, 0deg) - 3deg)) rotateY(-18deg) scale(calc(var(--s, 1) * 0.86)) !important;
  opacity: calc(var(--o, 1) * 0.78 * var(--part-extra-op, 1)) !important;
  filter: blur(3.2px) brightness(1.03) saturate(0.95) !important;
  pointer-events: none !important;
  transition:
    transform 0.94s var(--wii-open-ease) var(--part-delay, 0ms),
    filter 0.94s var(--wii-open-ease) var(--part-delay, 0ms),
    opacity 0.84s var(--wii-open-ease) var(--part-delay, 0ms) !important;
}

#channel.case-open #library[data-view=carousel] .cover.slide-right {
  transform: translateX(calc(var(--x) + var(--part-offset, 88px) + var(--part-extra-x, 0px))) translateY(calc(var(--y) + 6px)) translateZ(calc(var(--z, 38px) * 2.2 - 143.6px + var(--part-extra-z, 0px))) rotateZ(calc(var(--tilt, 0deg) + 3deg)) rotateY(18deg) scale(calc(var(--s, 1) * 0.86)) !important;
  opacity: calc(var(--o, 1) * 0.78 * var(--part-extra-op, 1)) !important;
  filter: blur(3.2px) brightness(1.03) saturate(0.95) !important;
  pointer-events: none !important;
  transition:
    transform 0.94s var(--wii-open-ease) var(--part-delay, 0ms),
    filter 0.94s var(--wii-open-ease) var(--part-delay, 0ms),
    opacity 0.84s var(--wii-open-ease) var(--part-delay, 0ms) !important;
}

#channel.case-open #library[data-view=carousel] .cover.slide-left.slide-far,
#channel.case-open #library[data-view=carousel] .cover.slide-right.slide-far,
#channel.case-open #library[data-view=carousel] .cover.slide-far {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Reensamblado suave y fluido del carrusel eliminando progresivamente el desenfoque bokeh al cerrar */
#channel.case-closing #library[data-view=carousel] .cover:not(.slide-center):not(.selected) {
  filter: blur(0px) brightness(1) saturate(1);
  transition:
    transform var(--close-dur, 0.90s) var(--wii-open-ease) var(--part-delay, 0ms),
    filter var(--close-dur, 0.90s) var(--wii-open-ease) var(--part-delay, 0ms),
    opacity var(--close-dur, 0.78s) var(--wii-open-ease) var(--part-delay, 0ms) !important;
}

/* La carátula central o en tránsito 3D permanece oculta mientras la carátula 3D está activa o cerrando */
#channel.case-open #library[data-view=carousel] .cover.slide-center,
#channel.case-closing #library[data-view=carousel] .cover.slide-center {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}

/* Los ajustes, CV, sonido y contacto bajan suavemente con la misma curva de la barra */
#channel.case-open .settings,
#channel.case-open .cv,
#channel.case-open .brand-contact,
#channel.case-open .sound,
#channel.case-open .add {
  transform: translateY(86px) !important;
  opacity: 0.22 !important;
  pointer-events: none !important;
  transition: transform 0.94s var(--wii-open-ease), opacity 0.54s ease !important;
}

#channel.mobile-portrait.case-open .settings,
#channel.mobile-portrait.case-open .cv,
#channel.mobile-portrait.case-open .brand-contact,
#channel.mobile-portrait.case-open .sound {
  transform: translateY(108px) !important;
  opacity: 0 !important;
}

/* El nombre del proyecto acompaña hacia abajo suavemente */
#channel.case-open .selected-title {
  transform: translateY(78px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.94s var(--wii-open-ease), opacity 0.52s ease !important;
}

/* La barra principal (lupa, A-Z, corazón, categorías y TV) acompaña suavemente hacia abajo quedando justo DEBAJO de la carátula */
#channel .toolbar {
  transition: transform 0.94s var(--wii-open-ease), opacity 0.52s ease !important;
}

#channel:not(.mobile-portrait).case-open .toolbar {
  transform: translate3d(0, 56px, 0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 3200 !important;
}

#channel.mobile-portrait.case-open .toolbar {
  transform: translate3d(-50%, 84px, 0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 3200 !important;
}

#channel:not(.case-open) .settings,
#channel:not(.case-open) .cv,
#channel:not(.case-open) .brand-contact,
#channel:not(.case-open) .sound,
#channel:not(.case-open) .add,
#channel:not(.case-open) .selected-title,
#channel:not(.case-open) .arrow {
  transition: transform 0.90s var(--wii-open-ease), opacity 0.54s ease;
}

/* Evitar que :hover o :focus-visible alteren el brillo o borde de la carátula seleccionada al entregar el relevo */
#channel.case-open .cover.selected,
#channel.case-closing .cover.selected,
.cover.selected:focus,
.cover.selected:focus-visible {
  filter: none !important;
  outline: none !important;
  border-color: #00b7ff !important;
}

/* --- Escenario de la carátula 3D dentro del mismo menú Wii (mantiene capas 3D siempre calientes en el compositor GPU con visibility: visible) --- */
.wii-case-open {
  position: absolute;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  pointer-events: none;
  visibility: visible;
  opacity: 0;
}

.wii-case-open.is-active,
.wii-case-open.is-ready,
.wii-case-open.is-open {
  opacity: 1;
}

/* Entrega limpia sin desactivar sombras ni bordes de la portada */
.wii-case-open.is-handing-off {
  opacity: 0 !important;
  pointer-events: none !important;
}

.wii-case-open.is-ready,
.wii-case-open.is-open {
  pointer-events: auto;
}

.wii-case-click-outside {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  background: transparent;
}

/* --- Libro / Caja física 3D de Wii: exactamente la misma curva y duración (0.94s var(--wii-open-ease)) que la barra de búsqueda/corazón/TV --- */
.wii-book {
  --book-w: 216px;
  --book-h: 324px;
  --center-y: -26px;
  --cover-ratio: 1.5;
  position: relative;
  z-index: 5;
  width: var(--book-w);
  height: var(--book-h);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  pointer-events: none;
  /* Estado 0 (punto de partida y regreso exacto medido con FLIP desde la carátula real del carrusel, escala uniforme 2:3) */
  transform: translate3d(var(--from-x, 0px), var(--from-y, -58px), 0px) rotateY(0deg) rotateX(0deg) scale3d(var(--from-sx, 0.74), var(--from-sy, 0.74), 1);
  transition: transform 0.90s var(--wii-open-ease);
  will-change: transform;
}

/* Movimiento único, continuo y sincronizado 1:1 con la barra de lupa/A-Z/corazón/TV (0.94s sin saltos intermedios) */
.wii-case-open.is-open .wii-book {
  transform: translate3d(50%, var(--center-y, -26px), 0px) rotateY(0deg) rotateX(0deg) scale3d(1, 1, 1);
  transition: transform 0.94s var(--wii-open-ease);
}

/* El pliegue/lomo central ahora está integrado directamente en los bordes de unión de .case-lid-back y .case-interior para evitar intersecciones 3D y bordes flotantes al cerrar */
.case-spine,
.case-spine-wii,
.case-spine-title {
  display: none !important;
}

/* --- TAPA IZQUIERDA ABATIBLE (Avanza primero cerrada 0.12s junto con la barra y se abre hasta -180deg exactos en el mismo plano Z=0) --- */
.case-lid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(0deg);
  /* Al cerrar la tapa se pliega en el mismo 0.94s del estuche, llegando ya 100% cerrada y plana a la ranura del carrusel */
  transition: transform 0.94s var(--wii-open-ease);
  will-change: transform;
  z-index: 20;
  pointer-events: none;
  cursor: pointer;
}

.wii-case-open.is-open .case-lid {
  transform: rotateY(-180deg);
  transition: transform 0.94s var(--wii-open-ease);
  pointer-events: auto;
}

.case-lid-front,
.case-lid-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

/* Cara exterior de la tapa: compensa exactamente la relación de tamaño (--cover-ratio) con .cover.selected para que en Estado 0 sean 100% idénticas (0.0px de diferencia en borde, radio, sombra e imagen) */
.case-lid-front {
  transform: translateZ(0.5px);
  background: #ffffff;
  border-radius: calc(8px * var(--cover-ratio, 1.5));
  border: calc(2px * var(--cover-ratio, 1.5)) solid #00b7ff;
  box-shadow:
    0 0 0 calc(2px * var(--cover-ratio, 1.5)) #00b7ff,
    0 0 calc(24px * var(--cover-ratio, 1.5)) var(--wii-cyan-glow),
    calc(-2px * var(--cover-ratio, 1.5)) calc(2px * var(--cover-ratio, 1.5)) 0 #95adb2,
    0 calc(16px * var(--cover-ratio, 1.5)) calc(28px * var(--cover-ratio, 1.5)) rgba(0, 183, 255, 0.35);
  overflow: hidden;
}

.case-lid-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sin brillo extra en la portada cerrada para coincidir al 100% con el tono de la carátula del carrusel */
.case-lid-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 55%);
  opacity: 0;
  pointer-events: none;
}

/* Cara interior de la tapa izquierda: permanece visible durante todo el giro hasta que backface-visibility muestra la portada frontal */
.case-lid-back {
  transform: rotateY(180deg) translateZ(0.5px);
  background: linear-gradient(180deg, #f5f9fc 0%, #e6eff5 100%);
  border: 2px solid #cbdbe7;
  border-right: 1.5px solid #9eb3c4;
  border-radius: 14px 0 0 14px;
  box-shadow:
    -12px 18px 36px rgba(15, 38, 60, 0.16),
    inset -4px 0 0 #dfeaf2,
    inset -5.5px 0 0 #b8cad8,
    inset -10px 0 12px rgba(160, 182, 200, 0.18);
  padding: 14px 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.01s linear 0.22s;
}

.wii-case-open.is-open .case-lid-back {
  opacity: 1;
  transition: opacity 0.01s linear 0.04s;
}

/* Clips plásticos internos del estuche Wii */
.case-clip {
  position: absolute;
  left: 8px;
  width: 8px;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(205,220,232,0.7));
  border: 1px solid #c2d3e0;
  pointer-events: none;
}
.case-clip-top { top: 36px; }
.case-clip-bottom { bottom: 36px; }

/* Folleto superior dentro del ala izquierda */
.case-booklet {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f0f6fa 100%);
  border: 1.5px solid #d2e0ea;
  border-radius: 10px;
  padding: 8px 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(20, 45, 70, 0.06);
  text-align: center;
}

.case-booklet-cat {
  display: inline-block;
  background: #54c9ee;
  color: #ffffff;
  font-family: WiiInterface, sans-serif;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.case-booklet-title {
  font-family: WiiInterface, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #213442;
  margin: 2px 0;
}

.case-booklet-role {
  font-family: WiiInterface, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #63798a;
  margin: 0;
}

/* Cavidad circular del disco óptico Wii */
.case-disc-well {
  position: relative;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: radial-gradient(circle, #dce7ef 0%, #ebf2f7 68%, #d2e0ea 100%);
  border: 2px solid #c6d6e2;
  box-shadow: inset 0 4px 14px rgba(20, 45, 70, 0.14), 0 2px 4px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.case-disc-hub {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #c8d6e2 0%, #eef4f8 70%);
  border: 2px solid #b5c7d4;
  z-index: 5;
  pointer-events: none;
}

.case-disc {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  animation: wiiDiscSpin 14s linear infinite;
  animation-play-state: paused;
}

.wii-case-open.is-open .case-disc {
  animation-play-state: running;
}

.case-disc.spin-boost {
  animation-duration: 1.4s !important;
}

@keyframes wiiDiscSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.case-disc-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-disc-art {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.48;
  pointer-events: none;
}

.case-disc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.65);
  box-sizing: border-box;
  pointer-events: none;
}

/* --- BANDEJA DERECHA INTERIOR (DORSAL): permanece 100% visible (opacity: 1) acompañando a la carátula mientras la tapa frontal se pliega encima de ella (0.00s..0.50s), y solo se apaga detrás cuando la tapa ya está cerrada --- */
.case-interior {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0px, 0px, 0px);
  background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
  border-radius: calc(8px * var(--cover-ratio, 1.5));
  border: 2px solid #cbdbe7;
  border-left: 1.5px solid #9eb3c4;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.06s linear 0.50s, border-radius 0.14s ease 0.08s, box-shadow 0.18s ease 0.08s;
}

.wii-case-open.is-open .case-interior {
  opacity: 1;
  border-radius: 0 14px 14px 0;
  box-shadow:
    12px 18px 36px rgba(15, 38, 60, 0.16),
    inset 4px 0 0 #dfeaf2,
    inset 5.5px 0 0 #b8cad8,
    inset 10px 0 12px rgba(160, 182, 200, 0.16);
  pointer-events: auto;
  transition: opacity 0.02s linear 0.04s, border-radius 0.14s ease 0.18s, box-shadow 0.20s ease 0.16s;
}

.case-interior-header {
  padding: 10px 10px 0 13px;
  flex-shrink: 0;
}

/* Pestañas limpias estilo Wii (sin emojis) */
.case-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1.5px solid #dde8f0;
  padding-bottom: 7px;
}

.case-tab {
  flex: 1;
  background: linear-gradient(180deg, #f7fafc 0%, #e7f0f6 100%);
  border: 1.5px solid #c9d9e5;
  border-radius: 12px;
  padding: 4px 4px;
  font-family: WiiInterface, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: #455a6b;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.case-tab:hover {
  background: #ffffff;
  border-color: #54c9ee;
  color: #0088b3;
}

.case-tab.active {
  background: linear-gradient(180deg, #54c9ee 0%, #0095c4 100%);
  border-color: #007da3;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 149, 196, 0.28);
}

.case-interior-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 8px 10px 8px 13px;
  box-sizing: border-box;
}

.case-panel {
  display: none;
}

.case-panel.active {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- SECCIÓN VIDEO --- */
.case-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.case-video-title {
  font-family: WiiInterface, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: #243746;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-video-meta {
  font-family: WiiInterface, sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  color: #0095c4;
  background: #e5f3f9;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.case-video-monitor {
  position: relative;
  width: 100%;
  height: 136px;
  border-radius: 10px;
  background: #0d151e;
  overflow: hidden;
  border: 1.5px solid #c5d6e2;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-video-monitor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.14) 2px, rgba(0, 0, 0, 0.14) 4px);
  pointer-events: none;
  opacity: 0.45;
}

.case-vid-play {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid #54c9ee;
  color: #0095c4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease;
}

.case-vid-play:hover {
  transform: scale(1.08);
}

.case-vid-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e9f1f6;
  border: 1px solid #cedee9;
  border-radius: 12px;
  padding: 6px 10px;
}

.case-vid-ctrl {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #c2d4e0;
  color: #2f4454;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.case-vid-ctrl:hover {
  border-color: #54c9ee;
  color: #0095c4;
}

.case-vid-track {
  flex: 1;
  height: 6px;
  background: #d2e0ea;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.case-vid-fill {
  height: 100%;
  background: linear-gradient(90deg, #54c9ee, #0095c4);
  border-radius: 3px;
}

.case-vid-time {
  font-family: WiiInterface, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #516676;
}

.case-vid-caption {
  font-family: WiiInterface, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #566b7b;
  margin: 2px 0 0;
}

/* --- SECCIÓN BEHIND THE SCENES --- */
.case-bts-compare {
  position: relative;
  width: 100%;
  height: 136px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #c5d6e2;
  cursor: ew-resize;
  touch-action: none;
}

.case-bts-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.case-bts-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-bts-before img {
  filter: grayscale(65%) brightness(1.12) contrast(0.72) saturate(0.38);
}

.case-bts-after img {
  filter: contrast(1.25) saturate(1.3) brightness(0.98);
}

.case-bts-label {
  position: absolute;
  top: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-family: WiiInterface, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.bts-l { left: 8px; background: rgba(65, 78, 90, 0.82); }
.bts-r { right: 8px; background: rgba(0, 149, 196, 0.85); }

.case-bts-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

.case-bts-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #54c9ee;
  color: #0095c4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.case-bts-tracks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.case-bts-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eaf1f6;
  border: 1px solid #d4e2ec;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: WiiInterface, sans-serif;
  font-size: 10.5px;
  color: #364b5b;
}

.case-bts-track-badge {
  font-weight: 800;
  font-size: 9.5px;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 5px;
  background: #0095c4;
}

/* --- SECCIÓN DETALLES --- */
.case-detail-title {
  font-family: WiiInterface, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1e3040;
  margin: 0;
}

.case-detail-sub {
  font-family: WiiInterface, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0095c4;
  margin: 0;
}

.case-detail-desc {
  font-family: WiiInterface, sans-serif;
  font-size: 10.5px;
  line-height: 1.45;
  color: #495f70;
  margin: 2px 0;
}

.case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.case-dtag {
  background: #e6f0f7;
  border: 1px solid #cce0ec;
  border-radius: 8px;
  padding: 2px 7px;
  font-family: WiiInterface, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: #354c5d;
}

.case-detail-shots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-shot-item {
  background: #f2f7fa;
  border: 1px solid #d8e5ee;
  border-radius: 8px;
  padding: 4px 7px;
  font-family: WiiInterface, sans-serif;
  font-size: 10px;
  color: #425767;
}

.case-shot-item strong {
  color: #1f3342;
}

.case-detail-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.case-action-btn {
  flex: 1;
  height: 30px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  text-decoration: none !important;
}

.case-btn-icon {
  width: 13px;
  height: 13px;
}

/* --- Pie de la bandeja derecha: Botón Cerrar estilo Wii --- */
.case-interior-footer {
  padding: 6px 10px 8px 13px;
  border-top: 1px solid #dde8f0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.case-close-wii {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e7f0f6 100%);
  border: 1.5px solid #c2d4e0;
  border-radius: 16px;
  padding: 4px 12px 4px 8px;
  font-family: WiiInterface, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #364b5b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.case-close-wii img {
  width: 14px;
  height: 14px;
}

.case-close-wii:hover {
  transform: scale(1.04);
  border-color: #54c9ee;
}

.case-close-wii:active {
  transform: scale(0.95);
}

/* --- Vista Vertical Móvil (#channel.mobile-portrait): Acerca mucho más y de frente la sección de Video, Behind The Scenes y Detalles manteniendo proporción 2:3 exacta --- */
#channel.mobile-portrait .wii-book {
  --book-w: min(292px, 82vw, calc((100dvh - 176px) * 0.6667));
  --book-h: calc(var(--book-w) * 1.5);
  --center-y: -34px;
}

/* En vertical, avanza en un único movimiento continuo de 0.94s sincronizado 1:1 con la barra de búsqueda/corazón/TV */
#channel.mobile-portrait .wii-case-open.is-open .wii-book {
  transform: translate3d(3%, var(--center-y, -34px), 0px) rotateY(0deg) rotateX(0deg) scale3d(1, 1, 1);
  transition: transform 0.94s var(--wii-open-ease);
}

/* Al deslizar entre la parte derecha e izquierda en vertical, encuadra cada mitad con resorte suave y sin retardo */
#channel.mobile-portrait .wii-case-open.is-open .wii-book.wing-pan-active {
  transition: transform 0.56s var(--wii-open-ease);
}

#channel.mobile-portrait .wii-case-open.is-open .wii-book.wing-pan-active .case-lid {
  transition: transform 0.56s var(--wii-open-ease) 0s;
}

#channel.mobile-portrait .wii-case-open.is-open .wii-book.show-left-wing {
  transform: translate3d(97%, var(--center-y, -34px), 0px) rotateY(0deg) rotateX(0deg) scale3d(1, 1, 1);
  transition: transform 0.58s var(--wii-open-ease);
}

/* Escenarios 3D independientes para la carátula principal, la saliente y la entrante: permiten aplicar desenfoque bokeh (filter) y opacidad sin aplanar jamás el preserve-3d de las tapas 3D */
.wii-book-stage,
.wii-outgoing-stage,
.wii-incoming-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  pointer-events: none;
  opacity: 1;
}

.wii-book-stage {
  z-index: 6;
}

.wii-outgoing-stage,
.wii-incoming-stage {
  z-index: 4;
  pointer-events: none !important;
  will-change: filter, opacity;
  filter: blur(0px) brightness(1) saturate(1);
}

.wii-outgoing-stage *,
.wii-incoming-stage * {
  pointer-events: none !important;
}

#channel.mobile-portrait .wii-book:not(.show-left-wing) .case-lid,
#channel.mobile-portrait .wii-book:not(.show-left-wing) .case-lid * {
  pointer-events: none !important;
}

#channel.mobile-portrait .wii-book.show-left-wing .case-interior,
#channel.mobile-portrait .wii-book.show-left-wing .case-interior * {
  pointer-events: none !important;
}

.wii-outgoing-stage .case-disc,
.wii-incoming-stage .case-disc {
  animation: none !important;
}

.wii-book.wii-book-outgoing,
.wii-book.wii-book-incoming {
  pointer-events: none !important;
  transform-style: preserve-3d !important;
}

.wii-book.wii-book-outgoing .case-lid,
.wii-book.wii-book-incoming .case-lid {
  transform-style: preserve-3d !important;
  pointer-events: none !important;
}

.wii-book.wii-book-outgoing .case-lid-front,
.wii-book.wii-book-incoming .case-lid-front {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    calc(-2px * var(--cover-ratio, 1.5)) calc(2px * var(--cover-ratio, 1.5)) 0 #95adb2,
    0 calc(12px * var(--cover-ratio, 1.5)) calc(22px * var(--cover-ratio, 1.5)) rgba(18, 32, 45, 0.22);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

#channel.mobile-portrait .case-interior-header {
  padding: 12px 12px 0 15px;
}

#channel.mobile-portrait .case-tabs {
  gap: 5px;
  padding-bottom: 8px;
}

#channel.mobile-portrait .case-tab {
  padding: 6px 5px;
  font-size: 11px;
  border-radius: 13px;
}

#channel.mobile-portrait .case-interior-body {
  padding: 10px 12px 10px 15px;
}

#channel.mobile-portrait .case-panel.active {
  gap: 8px;
}

#channel.mobile-portrait .case-video-title {
  font-size: 12px;
}

#channel.mobile-portrait .case-video-meta {
  font-size: 9.5px;
  padding: 2.5px 7px;
}

#channel.mobile-portrait .case-video-monitor,
#channel.mobile-portrait .case-bts-compare {
  height: 178px;
}

#channel.mobile-portrait .case-vid-caption,
#channel.mobile-portrait .case-detail-desc {
  font-size: 12px;
  line-height: 1.46;
}

#channel.mobile-portrait .case-detail-title {
  font-size: 17px;
}

#channel.mobile-portrait .case-detail-sub {
  font-size: 12px;
}

#channel.mobile-portrait .case-dtag {
  font-size: 10.5px;
  padding: 3px 8px;
}

#channel.mobile-portrait .case-shot-item {
  font-size: 11px;
  padding: 5px 8px;
}

#channel.mobile-portrait .case-action-btn {
  height: 34px !important;
  font-size: 12px !important;
}

#channel.mobile-portrait .case-interior-footer {
  padding: 8px 12px 10px 15px;
}

#channel.mobile-portrait .case-close-wii {
  font-size: 12px;
  padding: 5px 14px 5px 10px;
}

#channel.mobile-portrait .case-disc-well {
  width: 184px;
  height: 184px;
}

#channel.mobile-portrait .case-disc {
  width: 168px;
  height: 168px;
}

/* ================= 4. BÚSQUEDA Y CATEGORÍAS MEJORADAS ================= */
#panel.wii-search-panel,
#panel.wii-categories-panel {
  inset: auto 20px !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 500px !important;
  width: 92% !important;
  max-height: 84vh !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  border: 2px solid #b5c7d3 !important;
  background: linear-gradient(180deg, #fafdff 0%, #e8f0f5 100%) !important;
}

@media (max-width: 600px) {
  #panel.wii-search-panel,
  #panel.wii-categories-panel {
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 12px)) !important;
    transform: translateX(-50%) !important;
    max-height: 80vh !important;
    width: 95% !important;
    border-radius: 26px !important;
  }
}

.wii-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #54c9ee;
  border-radius: 24px;
  padding: 4px 14px;
  box-shadow: 0 3px 10px rgba(0, 183, 255, 0.15), inset 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 14px;
}

.wii-search-box img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  margin-right: 8px;
}

.wii-search-input {
  border: none !important;
  outline: none !important;
  padding: 8px 0 !important;
  font-family: WiiInterface, sans-serif !important;
  font-size: 16px !important;
  color: #2b3944 !important;
  background: transparent !important;
  flex: 1 !important;
}

.wii-search-clear {
  background: #e4ecf0;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  color: #6a7c88;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.wii-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.wii-search-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 12px;
  border: 1px solid #d4e0e8;
  box-shadow: 0 2px 6px rgba(18, 32, 45, 0.06);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  text-align: left;
  width: 100%;
}

.wii-search-card:hover,
.wii-search-card:focus-visible {
  transform: scale(1.02);
  border-color: #54c9ee;
  box-shadow: 0 4px 14px rgba(0, 183, 255, 0.25);
  background: #f7fcff;
}

.wii-search-card img {
  width: 44px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wii-search-card-info {
  flex: 1;
}

.wii-search-card-title {
  font-family: WiiInterface, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2a3843;
  margin: 0 0 2px 0;
}

.wii-search-card-badge {
  font-family: WiiInterface, sans-serif;
  font-size: 11px;
  color: #009ecc;
  font-weight: 600;
  text-transform: uppercase;
}

.wii-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 4px;
}

.wii-category-tile {
  background: #ffffff;
  border: 2px solid #d0dee8;
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  box-shadow: 0 3px 8px rgba(18, 32, 45, 0.06);
}

.wii-category-tile:hover,
.wii-category-tile:focus-visible {
  transform: scale(1.03);
  border-color: #54c9ee;
  box-shadow: 0 5px 16px rgba(0, 183, 255, 0.28);
  background: #f7fcff;
}

.wii-category-tile.active {
  border-color: #00b7ff;
  background: linear-gradient(180deg, #ffffff 0%, #e3f5fc 100%);
  box-shadow: 0 0 0 2px #54c9ee, 0 6px 18px rgba(0, 183, 255, 0.35);
}

.wii-category-name {
  font-family: WiiInterface, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #2b3944;
}

.wii-category-count {
  font-family: WiiInterface, sans-serif;
  font-size: 12px;
  color: #7b8e9b;
  font-weight: 500;
}

.wii-category-tile.active .wii-category-count {
  color: #009ecc;
  font-weight: 600;
}

/* Candidato sólido para el tinte de Safari; conservar las franjas superpuestas. */
#channel,
#channel.mobile-portrait {
  background-color: #eef3f6 !important;
}

/* Prueba A/B: mismas métricas, sin candidato fixed en el menú vertical. */
html[data-safari-layout="flow"] #channel.mobile-portrait {
  position: absolute !important;
}

/* Conservar el negro visual sin asignarlo al contenedor fijo de la advertencia. */
html[data-safari-warning="child"] #wii-warning-screen {
  background: transparent !important;
}
html[data-safari-warning="child"] #wii-warning-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: -1;
  pointer-events: none;
}

/* Disolver solo la textura en los bordes; no superponer capas a los controles. */
html[data-safari-polish="curve"] {
  --wii-edge-fade: linear-gradient(to bottom,
    #DFEBF1 0px,
    rgba(223, 235, 241, 0) clamp(32px, 8vh, 64px),
    rgba(223, 235, 241, 0) calc(100% - clamp(32px, 8vh, 64px)),
    #DFEBF1 100%);
}
html[data-safari-polish="curve"] #channel {
  background:
    var(--wii-edge-fade) center/100% 100% no-repeat,
    url('assets/channel-shell-clean.svg') center bottom/100% 125px no-repeat,
    radial-gradient(circle at 50% 10%, rgba(0, 183, 255, 0.08) 0%, transparent 65%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(#e9eff2, #e2e8ea) #eef3f6 !important;
}
html[data-safari-polish="curve"] #channel.mobile-portrait {
  background:
    var(--wii-edge-fade),
    radial-gradient(circle at 50% 12%, rgba(0, 183, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #eef3f6 0%, #edf3f6 30%, #e6edf1 70%, #dfe7eb 100%) #eef3f6 !important;
}

/* Solo el grupo inferior desaparece suavemente detrás del borde del viewport. */
.wii-dock-stage { display: contents; }
/* La carátula que regresa sigue aceptando toques; sin resaltado negro nativo. */
#channel.case-closing #case-main-stage,
#channel.case-closing #case-3d-scene,
#channel.case-closing #case-lid { pointer-events: auto; }
#case-close-btn { -webkit-tap-highlight-color: transparent; }
html[data-safari-polish="curve"] .wii-dock-stage {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}
html[data-safari-polish="curve"] .wii-dock-stage > * { pointer-events: auto; }
html[data-safari-polish="curve"] #channel:is(.case-open, .case-closing) .wii-dock-stage {
  -webkit-mask-image: linear-gradient(to top, transparent 0px, #000 24px, #000 100%);
  mask-image: linear-gradient(to top, transparent 0px, #000 24px, #000 100%);
}
html[data-safari-polish="curve"] #channel :is(.settings, .cv, .brand-contact, .sound, .add, .selected-title) {
  filter: blur(0px) brightness(1) saturate(1);
  transition: transform .94s var(--wii-open-ease), opacity .94s var(--wii-open-ease), filter .94s var(--wii-open-ease) !important;
}
html[data-safari-polish="curve"] #channel.case-open :is(.settings, .cv, .brand-contact, .sound, .add, .selected-title) {
  filter: blur(3.2px) brightness(.93) saturate(.92) !important;
  opacity: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  html[data-safari-polish="curve"] #channel :is(.settings, .cv, .brand-contact, .sound, .add, .selected-title) {
    transition: none !important;
  }
}

/* Variante aislada dock=underbar: permite a los iconos transitar detrás de la barra nativa de Safari sin recorte de canal ni máscara */
html[data-dock="underbar"] #channel {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
html[data-dock="underbar"] #channel:is(.case-open, .case-closing) .wii-dock-stage {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Adaptación propuesta por Antigravity: área natural ampliada; aceptación Safari pendiente. */
html[data-dock="natural"] {
  overflow-x: clip !important;
  overflow-y: auto !important;
  min-height: 140vh !important;
}
html[data-dock="natural"] body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  min-height: 140vh !important;
  height: auto !important;
}
html[data-dock="natural"] #channel {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
html[data-dock="natural"] #channel:is(.case-open, .case-closing) .wii-dock-stage {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Iconos persistentes como fantasmas; el título se disuelve con mayor desenfoque. */
html[data-dock="natural"], html[data-dock="natural"] body { scrollbar-width: none; }
html[data-dock="natural"]::-webkit-scrollbar, html[data-dock="natural"] body::-webkit-scrollbar { display: none; }
html[data-dock="natural"][data-safari-polish="curve"] #channel.case-open :is(.settings, .cv, .brand-contact, .sound) {
  opacity: 0.42 !important;
  filter: blur(4px) brightness(0.93) saturate(0.92) !important;
  pointer-events: none !important;
}
html[data-dock="natural"][data-safari-polish="curve"] #channel.case-open .selected-title {
  opacity: 0 !important;
  filter: blur(8px) brightness(0.93) saturate(0.92) !important;
  pointer-events: none !important;
}

/* ==========================================================================
   PANTALLA DE CANAL DE NINTENDO WII (WII CHANNEL FULLSCREEN MODAL)
   ========================================================================== */
/* Contención temporal; recuperar el flujo nativo del menú al volver. */
html[data-channel-presentation] #channel { clip-path: inset(0); }
.wii-channel-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  outline: none;
  isolation: isolate;
}
.wii-channel-screen.is-open { opacity: 1; pointer-events: auto; }
.wii-channel-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: none;
}
.wii-channel-screen.is-open .wii-channel-backdrop { opacity: 1; }
.wii-channel-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  clip-path: url(#wii-broadcast-clip);
  visibility: hidden;
  transform-origin: 0 0;
}
.wii-channel-screen.is-panel-visible .wii-channel-modal { visibility: visible; }
.wii-channel-screen.is-footer-hiding .wii-channel-modal { background: transparent; }
.wii-channel-screen.is-footer-hiding .wii-channel-step { visibility: hidden; }
.wii-channel-screen.is-footer-hidden .wii-channel-nav { visibility: hidden; }
.wii-channel-footer-flight { position: absolute; z-index: 3; overflow: hidden; pointer-events: none; transform-origin: 0 0; }
.wii-channel-tv-frame {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f4f7f8;
  /* The picture and footer share the modal's single outer silhouette. */
  clip-path: none;
}
/* Once the footer leaves, the returning picture needs its own rounded silhouette. */
.wii-channel-screen[data-state="closing"] .wii-channel-tv-frame {
  clip-path: url(#wii-broadcast-clip);
}
.wii-channel-tv-display {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#wii-channel-banner-img {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  opacity: 0;
  transition: opacity .12s linear;
}
.wii-channel-screen[data-state="open"] #wii-channel-banner-img { opacity: 1; }
.wii-channel-screen[data-state="closing"] #wii-channel-banner-img { opacity: var(--channel-exit-art-opacity, 1); }
.wii-channel-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(42,67,82,.025) 2px, rgba(42,67,82,.025) 3px);
  pointer-events: none;
  z-index: 2;
}
.wii-channel-gloss { display: none; }
/* GX: personaje por capas; la miniatura muestra sólo la cara. */
#library[data-view=channels] .wii-author-channel .author-avatar {
  width: 74%; height: 74%; object-fit: contain; border-radius: 0; border: 0; box-shadow: none;
}
.gx-ghost-stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 44%, #fff 0%, #eef1f4 80%);
  opacity: 0; transition: none; overflow: hidden;
}
.gx-ghost-stage[hidden] { display: none; }
.wii-channel-screen[data-kind="gx"] #wii-channel-banner-img { visibility: hidden; }
.wii-channel-screen[data-state="open"] .gx-ghost-stage { opacity: 1; }
.wii-channel-screen[data-state="opening"].is-panel-visible .gx-ghost-stage { opacity: 1; }
.wii-channel-screen[data-state="closing"] .gx-ghost-stage { opacity: var(--channel-exit-art-opacity, 1); }
.gx-ghost-scene { position: relative; width: clamp(150px, min(54vw, 52vh), 320px); }
.gx-ghost-float { animation: gx-ghost-drift 8s ease-in-out infinite; }
.gx-character { display: block; width: 100%; height: auto; aspect-ratio: 289 / 251; user-select: none; -webkit-user-select: none; overflow: visible; }
.wii-author-channel .author-avatar[hidden] { display: none !important; }
.wii-author-channel .gx-preview { width: 94%; height: 94%; aspect-ratio: auto; overflow: hidden; }
.gx-preview .gx-rig-body { display: none; }
.gx-rig-face { transform-origin: 145px 110px; animation: gx-face-look 8s ease-in-out infinite both; }
.gx-rig-eyes { transform-origin: 134px 40px; animation: gx-eye-blink 5.8s linear infinite; }
.gx-rig-mouth { transform-origin: 140px 85px; animation: gx-mouth-idle 3.8s ease-in-out infinite; }
.gx-rig-tongue { transform-origin: 116px 131px; animation: gx-tongue-loop 2.6s ease-in-out infinite; }
.gx-rig-laugh { transform-origin: 145px 80px; }
.gx-ghost-stage.voo-arrived .gx-character[data-art-format="3d"] .gx-rig-acting-clock { animation: gx-boo-acting-clock 40s linear infinite; }
@keyframes gx-boo-acting-clock { from { opacity: 1; } to { opacity: 1; } }
.gx-puppet-root { position: relative; aspect-ratio: 289 / 251; }
.gx-placeholder { visibility: hidden; }
.gx-character[data-art-format="3d"] image { visibility: hidden; }
.boo-3d-host { position: absolute; pointer-events: none; z-index: 1; }
.boo-3d-plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.voo-flight { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.boo-window-projection, .boo-camera-projection { position: absolute; inset: 0; transform-origin: 0 0; }
.voo-flight .gx-character { width: 100%; height: 100%; aspect-ratio: auto; }
.voo-flight .gx-character :is(.gx-rig-face, .gx-rig-eyes, .gx-rig-mouth, .gx-rig-tongue) { animation-play-state: running; }
.gx-ghost-stage:not(.voo-arrived) :is(.gx-ghost-float, .gx-ghost-shadow) { animation-play-state: paused !important; }
.gx-ghost-stage:not(.voo-arrived) .gx-ghost-shadow { visibility: hidden; }
.gx-preview .gx-rig-face { animation-delay: 0s; }
.gx-character :is(.gx-rig-face, .gx-rig-eyes, .gx-rig-mouth, .gx-rig-tongue, .gx-rig-laugh, .gx-rig-body) { animation-play-state: paused; }
#library[data-view=channels] .gx-preview :is(.gx-rig-face, .gx-rig-eyes, .gx-rig-mouth, .gx-rig-tongue) { animation-play-state: running; }
html[data-channel-presentation] #library .gx-preview * { animation-play-state: paused !important; }
.gx-ghost-shadow {
  position: absolute; left: 31%; right: 31%; bottom: -28px; height: 10px;
  border-radius: 50%; background: rgba(45, 43, 60, .17); filter: blur(4px);
  animation: gx-ghost-shadow 8s ease-in-out infinite;
}
.gx-ghost-stage :is(.gx-ghost-float, .gx-ghost-reveal, .gx-ghost-shadow) { animation-play-state: paused; }
.wii-channel-screen[data-kind="gx"].is-panel-visible:is([data-state="opening"], [data-state="open"]) .gx-ghost-stage :is(.gx-ghost-float, .gx-ghost-reveal, .gx-ghost-shadow, .gx-rig-face, .gx-rig-eyes, .gx-rig-mouth, .gx-rig-tongue, .gx-rig-laugh, .gx-rig-body) { animation-play-state: running; }
@keyframes gx-ghost-drift {
  0%, 100% { transform: translate(-20px, 4px); }
  25% { transform: translate(0, -14px); }
  50% { transform: translate(20px, 2px); }
  75% { transform: translate(0, 12px); }
}

@keyframes gx-face-look {
  0%, 12%, 100% { transform: translate(0,0) rotate(0); }
  25%, 35% { transform: translate(5px,-1px) rotate(1.5deg); }
  55%, 65% { transform: translate(-5px,1px) rotate(-1.5deg); }
  80% { transform: translate(2px,0) rotate(.5deg); }
}
@keyframes gx-eye-blink {
  0%, 6%, 10%, 62%, 66%, 100% { transform: scaleY(1); }
  8%, 64% { transform: scaleY(.1); }
}
@keyframes gx-mouth-idle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(1px) rotate(.7deg); }
}
@keyframes gx-tongue-loop {
  0%, 100% { transform: translate(0,0) rotate(0); }
  35% { transform: translate(1px,1px) rotate(1.7deg); }
  70% { transform: translate(0,1px) rotate(-1.2deg); }
}

@keyframes gx-ghost-shadow {
  0%, 100% { transform: scale(.94); opacity: .8; }
  25% { transform: scale(.78); opacity: .55; }
  50% { transform: scale(.96); opacity: .8; }
  75% { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-ghost-stage *, .gx-preview *, .voo-flight * { animation: none !important; }
  .gx-ghost-stage { transition: none; }
}
.wii-channel-tv-frame { touch-action: pan-y; }
.wii-channel-step {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
  touch-action: manipulation;
}
.wii-channel-screen[data-state="open"] .wii-channel-step { visibility: visible; pointer-events: auto; }
.wii-channel-step[hidden] { display: none; }
.wii-channel-step.previous { left: max(12px, env(safe-area-inset-left, 0px)); }
.wii-channel-step.next { right: max(12px, env(safe-area-inset-right, 0px)); }
.wii-channel-step svg { width: 24px; height: 40px; fill: #40bee8; stroke: #fff; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 1px 2px #455962); }
.wii-channel-step:focus-visible { outline: 2px solid #43c6ed; outline-offset: -3px; border-radius: 8px; }
.wii-channel-step:active svg { fill: #1293be; }
.wii-channel-navigation-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wii-channel-banner-info {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-height: 45%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px clamp(20px, 5vw, 56px) 20px;
  background: #f4f7f8;
  color: #344d5b;
  z-index: 4;
}
.wii-channel-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.1px;
  font-weight: 600;
  color: #008caf;
  margin-bottom: 5px;
}
.wii-channel-title {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 6px;
  font-weight: 600;
  font-family: WiiInterface, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wii-channel-desc {
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
  max-width: 760px;
  color: #526775;
}
.wii-channel-nav {
  display: flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 7.6%;
  width: 100%;
  height: clamp(106px, 24vh, 26vw);
  padding: 0 max(2.5vw, env(safe-area-inset-right, 0px)) calc(3.6vh + env(safe-area-inset-bottom, 0px)) max(2.5vw, env(safe-area-inset-left, 0px));
  border-top: 1px solid #b8b8b8;
  border-radius: 0;
  background: repeating-linear-gradient(0deg, #ededed 0px, #ededed 1px, #f4f4f4 1px, #f4f4f4 2px);
}
.wii-channel-pill-btn {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  width: 32%;
  height: clamp(44px, 10vh, 9vw);
  padding: 0;
  border-radius: 999px;
  border: 2px solid #c5c8ca;
  background: linear-gradient(#fafafa 0%, #fff 42%, #f9f9f9 55%, #e4e6e7 100%);
  box-shadow: inset 0 0 0 2px #fff, 0 1px 2px #a6a9ab;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color .1s linear;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .wii-channel-pill-btn:hover { border-color: #43c6ed; }
}
.wii-channel-pill-btn.back { border-color: #69c8eb; box-shadow: inset 0 0 0 2px #fff, 0 0 2px 1px #a0e0f5; }
.wii-channel-pill-btn::after {
  content: '';
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -10px;
  border-bottom: 2px dotted #71d6f4;
  opacity: 0;
  pointer-events: none;
}
.wii-channel-pill-btn.back::after,
.wii-channel-pill-btn:focus-visible::after { opacity: 1; }
.wii-channel-pill-btn:focus-visible { outline: 2px solid #009ac8; outline-offset: 3px; }
.wii-channel-pill-btn:active { background: #e4edf1; }
#vfx-advisor-entry[hidden] { display: none; }
.wii-channel-nav:has(#vfx-advisor-entry:not([hidden])) { gap: 2%; }
.wii-channel-pill-btn .wii-pill-sub { display: none; }
.wii-channel-pill-btn .wii-pill-main { font-family: WiiInterface, sans-serif; font-size: clamp(17px, min(3.8vh, 3vw), 32px); color: #33383b; font-weight: 400; line-height: 1; }
.wii-channel-pill-btn.start .wii-pill-main { color: #707477; }
@media (orientation: portrait) {
  .wii-channel-nav { gap: 6%; height: clamp(118px, 16vh, 144px); }
  .wii-channel-pill-btn { width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .wii-channel-screen,
  .wii-channel-backdrop,
  #wii-channel-banner-img,
  .wii-channel-modal,
  .wii-channel-pill-btn { transition: none !important; }
  .wii-channel-modal { transform: none !important; }
}

/* ================= WII CASE VIEW TRANSITION FADE ================= */
.wii-case-open.case-transitioning-out {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s cubic-bezier(.2,.8,.25,1) !important;
}

.wii-case-open.case-transitioning-out * { pointer-events: none !important; }

/* Ficha vertical: sólo la bandeja interior; la cámara y las tapas no cambian. */
@media (orientation: portrait) {
  #channel.mobile-portrait .case-interior .case-tabs {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1fr;
  }
  #channel.mobile-portrait .case-interior .case-tab {
    min-width: 0;
    min-height: 44px;
    padding: 4px;
    font-size: 13px;
    line-height: 1.1;
    white-space: normal;
  }
  #channel.mobile-portrait .case-interior .case-close-wii,
  #channel.mobile-portrait .case-interior .case-action-btn { min-height: 44px; }
  #channel.mobile-portrait .case-interior .case-detail-title { font-size: 20px; }
  #channel.mobile-portrait .case-interior .case-detail-sub { font-size: 14px; color: #126783; }
  #channel.mobile-portrait .case-interior .case-detail-desc { font-size: 15px; line-height: 1.45; }
  #channel.mobile-portrait .case-interior :is(.case-shot-item, .case-dtag) { font-size: 13px; }
}
