/* galería pública — Mochii's Visor Book */

body { padding: clamp(10px, 2vw, 26px); }

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  max-width: 1120px;
  margin: 0 auto 26px;
  position: sticky;
  top: 10px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.brand-txt { min-width: 0; }
.mini-visor { width: 74px; height: 44px; flex: 0 0 auto; }
.lang-toggle { flex: 0 0 auto; }
@media (max-width: 560px) {
  .mini-visor { width: 56px; height: 34px; }
  .brand-txt h1 { font-size: 1.05rem; }
}
.brand-txt h1 { font-size: clamp(1.2rem, 4vw, 1.9rem); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { color: var(--ink-soft); font-size: 0.86rem; font-weight: 600; }

/* ---------- hero ---------- */
main { max-width: 1120px; margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(12px, 3vw, 40px) 6px;
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* tarjeta holográfica 3D con el render de Mochii */
.holo-wrap { perspective: 1000px; position: relative; }
.holo-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(43, 43, 85, 0.25), 0 6px 18px rgba(242, 95, 192, 0.25);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.16s ease-out;
  border: 4px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-holo) border-box;
  animation: holo-spin 7s linear infinite;
  touch-action: none;
}
.holo-card img { display: block; width: 100%; height: auto; }
.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at var(--mx, 30%) var(--my, 20%),
      rgba(255, 255, 255, 0.5), rgba(255, 214, 245, 0.15) 40%, transparent 70%);
  mix-blend-mode: screen;
}
.card-label {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(35, 35, 74, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.card-at { color: var(--cyan); font-size: 0.85em; }

/* copy */
.hero-hi { font-size: clamp(1.9rem, 5vw, 3rem); }
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--ink-soft); font-weight: 600; max-width: 46ch; margin-top: 6px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; justify-content: inherit; }
.chip-btn { cursor: pointer; transition: transform 0.15s; }
.chip-btn:hover { transform: scale(1.06); }
.follow-title { font-size: 1.3rem; margin-top: 18px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; justify-content: inherit; }
.qrs { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; justify-content: inherit; }
.qr-fig { padding: 10px 14px; text-align: center; border-radius: var(--r-md); }
.qr-fig img { width: 108px; height: 108px; image-rendering: pixelated; border-radius: 8px; display: block; }
.qr-fig figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.scan-note { color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; margin-top: 8px; }

/* ---------- muro ---------- */
.wall-sec { margin-top: clamp(30px, 6vw, 60px); }
.wall-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); text-align: center; margin-bottom: 26px; }
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 22px;
  padding-bottom: 10px;
}

/* ticker de firmantes */
.ticker { max-width: 1120px; margin: 6px auto 0; padding: 8px 0; }
.ticker-track { font-size: 1rem; padding-right: 0; }
.ticker-track .tk-name { font-family: var(--font-hand); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.ticker-track .tk-sep { color: var(--hot); margin: 0 14px; }
/* speech bubbles de guestbook: tints rotando + colita + rotación sutil */
.card {
  border-radius: var(--r-md) var(--r-md) var(--r-md) 6px;
  background: var(--tint-pink);
  border: 4px solid #fff;
  box-shadow: var(--shadow-soft);
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}
.card:nth-child(3n)   { background: var(--tint-lilac); transform: rotate(0.9deg); }
.card:nth-child(3n+1) { background: var(--tint-blue); transform: rotate(-1.1deg); }
.card:nth-child(3n+2) { transform: rotate(0.5deg); }
.card::after {
  /* colita de speech bubble */
  content: '';
  position: absolute;
  left: 16px;
  bottom: -13px;
  width: 20px;
  height: 14px;
  background: inherit;
  border: 4px solid #fff;
  border-top: 0;
  border-radius: 0 0 18px 4px;
  clip-path: polygon(0 0, 100% 0, 42% 100%, 0 100%);
}
.card:hover { transform: translateY(-6px) rotate(-1.5deg) scale(1.04); box-shadow: var(--shadow-pop); z-index: 2; }
.card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; background: #fff; border-radius: calc(var(--r-md) - 6px) calc(var(--r-md) - 6px) 0 0; }

/* firma destacada (más likes): la moneda rara holo */
.card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--tint-pink), var(--tint-pink)) padding-box,
    var(--grad-holo) border-box;
  animation: holo-spin 5s linear infinite;
}
.card.featured::before {
  content: '👑 ✦';
  position: absolute;
  top: -14px;
  left: 12px;
  font-size: 1rem;
  background: var(--grad-holo);
  animation: holo-spin 5s linear infinite;
  border-radius: 999px;
  padding: 3px 10px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-pop);
  z-index: 3;
}
.card-body { padding: 10px 14px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-msg { color: var(--ink-soft); font-size: 0.86rem; padding: 0 14px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -6px; }
.card-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.card-time { font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; }
.like-btn {
  border: 0;
  background: rgba(255, 169, 210, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--magenta);
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.like-btn:active { transform: scale(1.25); }
.like-btn.liked { background: var(--grad-rainbow); background-size: 200% 100%; color: #fff; animation: rainbow-slide 3s linear infinite; }

.card.fresh::after {
  content: '✦ new';
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(160deg, var(--hot), var(--grape));
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(242, 95, 192, 0.5);
}

.empty {
  text-align: center;
  padding: 44px 24px;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.empty-visor { width: 150px; height: 88px; margin: 0 auto 14px; display: block; }

/* ---------- footer ---------- */
footer {
  text-align: center;
  margin: 60px auto 26px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 1120px;
}
.footer-strip { margin-bottom: 18px; }
.pawsitive { font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.credit { font-size: 0.78rem; opacity: 0.8; margin-top: 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(43, 43, 85, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-card {
  max-width: min(860px, 94vw);
  max-height: 92vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.lightbox-card img { max-width: 100%; max-height: 64vh; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.lb-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
#lbName { font-size: 1.2rem; }
#lbMsg { color: var(--ink-soft); font-weight: 600; }
.lb-close { align-self: center; }
