/* ============================================================
   INVISIBLE FRIENDS — Gradient Blue Theme
   Fuente: Outfit + Plus Jakarta Sans (blanco)
   Colores: Degradado Image 2 (navy → sky blue)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ponytail: letter-spacing global — el valor vive en html y todos heredan */
html { letter-spacing: 2px !important; }
* { letter-spacing: inherit !important; }

@font-face {
  font-family: 'Knicknack';
  src: url('knicknack-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Knicknack', sans-serif;
  letter-spacing: 3px;
  color: #ffffff;
  background: #020816;
  overflow-x: hidden;
  position: relative;
}

/* ── FONDO DEGRADADO FIJO ── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #020816  0%,
    #091a38 22%,
    #123461 45%,
    #255794 70%,
    #5289c7 88%,
    #8cb6e5 100%
  );
}

/* ── NAVBAR FLOTANTE ── */
.navbar-wrap {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 1100px;
  z-index: 200;
  transition: top 0.3s ease;
}

.navbar-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Estado inicial: completamente transparente */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  gap: 16px;
  box-shadow: none;
  transition: background 0.35s ease, border-color 0.35s ease,
              backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

/* Cuando se hace scroll: glassmorphism blanco suave igual que Blupix */
.navbar-pill.scrolled {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.nav-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 0;
}

.nav-brand:hover .nav-logo-circle {
  transform: rotate(14deg) scale(1.1);
  background: rgba(255,255,255,0.28);
}

.nav-brand-name {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 5px;
}

.nav-link {
  font-family: 'Knicknack', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-icon {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}

.nav-icon:hover { color: #fff; transform: translateY(-2px); }

.btn-wallet-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #07152b;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 0 18px rgba(255,255,255,0.25);
}

.btn-wallet-nav:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 28px rgba(255,255,255,0.5);
  background: #e8f0ff;
}

/* ── TICKERS ── */
.ticker {
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 12px 0;
  position: relative;
  z-index: 10;
  contain: layout paint;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: tickLeft 14s linear infinite;
}

.ticker-reverse .ticker-track {
  animation: tickRight 14s linear infinite;
}

.ticker-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-block span {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 2px;
  color: #fff;
  padding-right: 28px;
  display: inline-block;
}

@keyframes tickLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes tickRight {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ── HERO (Base 1:1 matching editor.html 1920×1080) ── */
.hero {
  width: 100%;
  min-height: 100vh;
  display: block;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-container {
  width: 1920px;
  height: 1080px;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.hero-left, .hero-right {
  display: contents;
}

.hero-title {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 78px;
  line-height: 0.92;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 8px 28px rgba(0,0,0,0.55);
  white-space: nowrap;
  margin: 0;
}

.hero-description {
  font-family: 'Knicknack', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 370px;
  margin: 0;
}

.hero-card {
  width: 300px;
  height: auto;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  animation: floatY 4s ease-in-out infinite;
  display: block;
}

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* Buttons */
.btn-primary {
  background: #fff;
  color: #07152b;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 24px rgba(255,255,255,0.28);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 36px rgba(255,255,255,0.48);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 15px 30px;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  transform: translateY(-4px);
}

/* ── 3 CAROUSELES ── */
.carousels-section {
  padding: 70px 0 80px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 20px;
}

.section-title {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}

.section-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  font-weight: 500;
}

/* Fila de carrusel */
.carousel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  margin-bottom: 28px;
}

/* Máscaras laterales */
.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 100px;
  z-index: 5;
  pointer-events: none;
}

.carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, #020816 0%, transparent 100%);
}

.carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, #020816 0%, transparent 100%);
}

/* Track */
.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  /* GPU acceleration para evitar el trancazo */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Los 3 carruseles a la misma velocidad lenta */
.go-left  { animation: goLeft  60s linear infinite; }
.go-right { animation: goRight 60s linear infinite; }
.size-sm .go-left, .size-sm .go-right { animation-duration: 60s; }
.size-lg .go-left, .size-lg .go-right { animation-duration: 60s; }

@keyframes goLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes goRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── TARJETAS ── */

/* Tarjetas PEQUEÑAS (top & bottom) */
.size-sm .nft-card {
  width: 200px;
  height: 200px;
  background: rgba(10,26,52,0.65);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 10px;
  /* Tamaño fijo inamovible - clave para evitar el trancazo */
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 200px;
  max-width: 200px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Tarjetas GRANDES (medio) */
.size-lg .nft-card {
  width: 290px;
  height: 290px;
  background: rgba(14,38,77,0.78);
  border: 2.5px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 14px;
  /* Tamaño fijo inamovible - clave para evitar el trancazo */
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 290px;
  max-width: 290px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* Interior de tarjeta */
.card-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(4,14,30,0.4);
  margin-bottom: 10px;
  /* Dimensiones fijas para evitar layout shift al cargar imágenes */
  min-height: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Evitar que el img sin cargar cambie el tamaño del contenedor */
  aspect-ratio: 1 / 1;
  transition: transform 0.4s ease;
  /* GPU layer propia para el zoom hover */
  will-change: transform;
  backface-visibility: hidden;
}

.nft-card:hover .card-img img {
  transform: scale(1.08);
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.card-name {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.size-lg .card-name { font-size: 1rem; }

.card-badge {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.disclaimer {
  text-align: center;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.5px;
  margin-top: 40px;
  padding: 0 20px;
}

/* ── ARCHIBLOG ── */
.archiblog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px;
  position: relative;
}

.archiblog-intro {
  font-family: 'Knicknack', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 2;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
}

/* Flujo horizontal (desktop) */
.archi-flow {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Línea horizontal animada que conecta los números */
.archi-flow::before {
  content: '';
  position: absolute;
  top: 28px;                          /* centro de los números (56/2) */
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.85) 0 12px,
    transparent 12px 22px
  );
  background-size: 22px 100%;
  animation: archiHflow 1.4s linear infinite;
  opacity: 0.7;
  z-index: 0;
}
@keyframes archiHflow {
  to { background-position: 22px 0; }
}

.archi-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.archi-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #07152b;
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  margin-bottom: 22px;
}

.archi-body {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 20px;
}

.archi-title {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 8px;
}

.archi-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-top: 18px;
  margin-bottom: 0;
}

/* Visual */
.archi-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.archi-img {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.archi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Preview flotante al pasar el cursor (solo la imagen apuntada) */
.archi-img:hover {
  transform: scale(2.6);
  z-index: 20;
  box-shadow: 0 18px 44px rgba(0,0,0,0.65);
}

/* Imagen única (pasos 1 y 2) — mismo tamaño que el resultado de 3/4 */
.archi-visual:not(.archi-formula) .archi-img {
  width: 74px;
  aspect-ratio: 1 / 1;
}

/* Fórmula A + B → RESULTADO (pasos 3 y 4) — siempre en una sola fila */
.archi-formula { flex-wrap: nowrap; gap: 5px; }
.archi-formula .archi-small {
  width: 54px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.archi-formula .archi-result {
  width: 74px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.archi-op {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  opacity: 0.85;
  flex-shrink: 0;
}
.archi-op-arrow { color: #7dd3fc; }

/* MÓVIL: timeline vertical */
@media (max-width: 900px) {
  .archi-flow {
    grid-template-columns: 1fr;
    padding-left: 64px;
    gap: 32px;
  }
  .archi-flow::before {
    top: 28px;
    left: 27px;
    right: auto;
    bottom: 28px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.85) 0 12px,
      transparent 12px 22px
    );
    background-size: 100% 22px;
    animation: archiVflow 1.4s linear infinite;
  }
  @keyframes archiVflow { to { background-position: 0 22px; } }

  .archi-step { align-items: flex-start; text-align: left; }
  .archi-num {
    position: absolute;
    left: -64px;
    top: 0;
    margin-bottom: 0;
  }
  .archi-body { padding: 22px 20px; }
  .archi-visual:not(.archi-formula) .archi-img { width: 200px; }
  .archi-formula { flex-wrap: wrap; gap: 10px; }
  .archi-formula .archi-small { width: 110px; }
  .archi-formula .archi-result { width: 150px; }
  .archi-op { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .archiblog { padding: 60px 16px; }
  .archi-flow { padding-left: 52px; }
  .archi-num { left: -52px; width: 40px; height: 40px; font-size: 0.95rem; }
  .archi-flow::before { left: 19px; top: 20px; }
  .archi-visual:not(.archi-formula) .archi-img { width: 150px; }
  .archi-formula .archi-small { width: 80px; }
  .archi-formula .archi-result { width: 120px; }
  .archi-op { font-size: 1.2rem; }
}

/* ── CREADORES ── */
.creators {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 80px 24px 100px;
  background: rgba(2,8,22,0.3);
}

.creator-card {
  background: rgba(10,26,52,0.65);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 26px;
  padding: 36px 28px;
  max-width: 400px;
  flex: 1 1 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.creator-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.55);
}

.creator-card h3 {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.15;
}

.creator-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.98rem;
  line-height: 1.55;
}

.creator-tw {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.creator-tw:hover {
  background: #fff;
  color: #07152b;
  transform: scale(1.12);
}

/* ── FOOTER ── */
.footer {
  padding: 54px 20px 36px;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(2,8,22,0.85);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.12) rotate(-8deg);
}

.footer-icons {
  display: flex;
  gap: 16px;
}

.footer-icons a {
  color: rgba(255,255,255,0.7);
  font-size: 1.35rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-icons a:hover { color: #fff; transform: translateY(-3px); }

.footer p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── MODALES ── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(2,8,22,0.85);
  backdrop-filter: blur(14px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-bg.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: rgba(8,24,52,0.97);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 26px;
  padding: 34px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.12);
  transform: translateY(22px) scale(0.96);
  transition: transform 0.32s cubic-bezier(.34,1.56,.64,1);
}

.modal-bg.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box h3 {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 6px;
}

.modal-box > p {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  margin-bottom: 22px;
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-x:hover { color: #fff; }

/* Wallet list */
.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-opt {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 13px 18px;
  color: #fff;
  font-family: 'Knicknack', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.wallet-opt:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  transform: translateX(4px);
}

.w-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.mm { background: #e2761b; }
.wc { background: #3b99fc; }
.cb { background: #0052ff; }
.ph { background: #ab9ff2; }

.w-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  background: #fff;
  color: #07152b;
  padding: 3px 8px;
  border-radius: 10px;
}

.secure-note {
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* NFT Modal */
.nft-box { max-width: 780px; }

.nft-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.nft-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(4,14,30,0.5);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  overflow: hidden;
}

.nft-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nft-info { display: flex; flex-direction: column; gap: 10px; }

.nft-rarity {
  display: inline-block;
  background: #fff;
  color: #07152b;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 12px;
  align-self: flex-start;
}

.nft-info h2 {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  line-height: 1.1;
}

.nft-info p {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nft-info h4 {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
}

.traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trait {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  padding: 8px 11px;
}

.trait-type { font-size: 0.72rem; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.trait-val  { font-size: 0.88rem; font-weight: 700; color: #fff; }

.btn-full { width: 100%; justify-content: center; }

/* ── TOASTS ── */
.toasts {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(8,24,52,0.96);
  border: 2px solid #fff;
  color: #fff;
  padding: 13px 20px;
  border-radius: 14px;
  font-family: 'Knicknack', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  animation: toastIn 0.3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-brand-name { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  /* Hero apilado: app.js desactiva el canvas 1920×1080 y limpia los inline styles.
     Aquí se redefine el contenedor como flujo normal en columna centrada. */
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 110px 24px 56px;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }
  .hero-container {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
    line-height: 1;
    letter-spacing: 2px;
    white-space: normal;
  }
  .hero-description {
    font-size: 0.98rem;
    max-width: 430px;
  }
  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }
  .hero-card { width: min(300px, 72vw); }
  .hero-left .btn-primary,
  .hero-right .btn-secondary {
    width: min(340px, 88vw);
    justify-content: center;
  }
  .hero-left .btn-primary { margin-top: 10px; }
}

@media (max-width: 640px) {
  .nft-grid   { grid-template-columns: 1fr; }
  .nav-icon   { display: none; }
}

/* ── MODAL APPLY FOR WL ── */
.wl-box {
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
}

.wl-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  margin-bottom: 18px;
}
.wl-sub strong { color: #fff; }

/* Login con X */
.wl-login { margin-bottom: 16px; }
.wl-login .w-ico.x {
  background: #000;
  border: 1px solid rgba(255,255,255,0.3);
}
.wl-login.done {
  border-color: #4ade80;
  background: rgba(74,222,128,0.08);
}
.wl-login.done .w-badge {
  background: #4ade80;
  color: #052e16;
}

/* Pasos (bloqueados hasta login) */
.wl-steps.locked {
  opacity: 0.45;
  pointer-events: none;
}

.wl-step .w-ico {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.05rem;
}

.wl-go {
  margin-left: auto;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wl-step.done {
  border-color: #4ade80;
  background: rgba(74,222,128,0.08);
}
.wl-step.done .w-ico {
  background: #4ade80;
  border-color: #4ade80;
  color: #052e16;
}
.wl-step.done .wl-go {
  background: #4ade80;
  border-color: #4ade80;
  color: #052e16;
}

/* Drop your wallet */
.wl-drop { margin-bottom: 18px; }
.wl-drop.locked { opacity: 0.45; }
.wl-input:disabled { cursor: not-allowed; }

.wl-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.wl-input {
  width: 100%;
  background: rgba(4,14,30,0.55);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-family: 'Knicknack', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-input::placeholder { color: rgba(255,255,255,0.35); }
.wl-input:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(125,211,252,0.18);
}

.wl-error {
  display: none;
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
}

/* Botón APPLY bloqueado */
.wl-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* Vista de éxito */
.wl-success {
  text-align: center;
  padding: 14px 4px 6px;
}
.wl-success-ico {
  font-size: 3.4rem;
  color: #4ade80;
  margin-bottom: 14px;
}
.wl-success p {
  color: rgba(255,255,255,0.72);
  font-size: 0.93rem;
  line-height: 1.6;
}
.wl-success-wallet {
  margin-top: 12px !important;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  color: #7dd3fc !important;
  font-size: 0.9rem !important;
}

/* ── DASHBOARD / LEADERBOARD ── */
.lb-dashboard {
  text-align: center;
  padding: 10px 4px 4px;
}
.lb-success-ico {
  font-size: 3.4rem;
  color: #4ade80;
  margin-bottom: 12px;
}

.lb-you {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  background: rgba(125,211,252,0.12);
  border: 1px solid rgba(125,211,252,0.35);
  border-radius: 14px;
}
.lb-you-rank {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #7dd3fc;
}
.lb-you-handle {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.lb-you-pts {
  margin-left: auto;
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.lb-ref { margin: 18px 0; text-align: left; }
.lb-ref .wl-label { display: block; margin-bottom: 8px; }
.lb-ref-row {
  display: flex;
  gap: 8px;
}
.lb-ref-row .wl-input { flex: 1; }
.lb-copy {
  flex-shrink: 0;
  padding: 0 16px !important;
  font-size: 0.9rem !important;
}
.lb-ref-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-align: left;
}

.lb-board { margin-top: 20px; text-align: left; }
.lb-board h4 {
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.lb-row-you {
  background: rgba(125,211,252,0.16);
  border-color: rgba(125,211,252,0.45);
}
.lb-rank {
  width: 26px;
  text-align: center;
  font-family: 'Knicknack', sans-serif;
  font-weight: 900;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}
.lb-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.lb-av-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 800;
}
.lb-handle {
  flex: 1;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-pts {
  font-family: 'Knicknack', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #7dd3fc;
}

