/* =========================================================================
   SakllyBio — styles
   ========================================================================= */

:root {
  --bg-top: #dcc0c8;
  --bg-bottom: #c49fad;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.5);
  --card: rgba(255, 255, 255, 0.10);
  --card-hover: rgba(255, 255, 255, 0.16);
  --card-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 10px 40px rgba(120, 70, 90, 0.18);
}

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

/* the `hidden` attribute must win over any display: rule we set below */
[hidden] { display: none !important; }

html { height: 100%; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* snap-scroll container (no visible scrollbar — dots are the indicator) */
.snap-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* old Edge */
  touch-action: none;         /* we drive snapping ourselves on touch */
}
.snap-container::-webkit-scrollbar { display: none; }  /* WebKit */

/* full-height, centered scroll sections */
.section {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* dot navigation (right side) */
.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.dot:hover { background: rgba(255, 255, 255, 0.7); }
.dot.active {
  height: 22px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 158, 196, 0.9);
}
.dot__label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(120, 70, 90, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.dot:hover .dot__label { opacity: 1; }

/* ---------- Enter splash ------------------------------------------------ */
.enter {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.enter__text {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text);
  opacity: 0.9;
  animation: pulse 2.2s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
              letter-spacing 0.45s ease, text-shadow 0.45s ease, opacity 0.3s ease;
}
.enter:hover .enter__text {
  animation: none;
  opacity: 1;
  transform: scale(1.14);
  letter-spacing: 0.26em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.65), 0 0 4px rgba(255, 255, 255, 0.5);
}
.enter.hide { opacity: 0; visibility: hidden; }

body.locked { overflow: hidden; }

/* Blur the page until entered */
.app, .music-toggle, .volume, .views, .dots { transition: filter 0.7s ease, opacity 0.7s ease, transform 0.7s ease; }
body.pre-enter .app { filter: blur(14px); opacity: 0; transform: scale(0.985); }
body.pre-enter .music-toggle, body.pre-enter .volume, body.pre-enter .views, body.pre-enter .dots { opacity: 0; pointer-events: none; }

/* ---------- Background hearts ------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.heart {
  position: absolute;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

/* ---------- Main layout ------------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  /* extra bottom padding keeps the last link clear of the "sobre mí" hint,
     which is absolutely positioned at the bottom of the section */
  padding: 56px 24px 104px;
  gap: 26px;
}

/* ---------- Profile ----------------------------------------------------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.avatar-wrap {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(150, 90, 110, 0.28), 0 0 0 1px rgba(255,255,255,0.25) inset;
  animation: bob 5s ease-in-out infinite;
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.4);
}
.name {
  margin-top: 14px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(120, 70, 90, 0.25);
}
.tagline {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 1.2em;
}
.tagline::after { content: "▍"; opacity: 0.6; animation: blink 1s steps(1) infinite; }
.tagline.done::after { content: ""; }

/* ---------- Badges ------------------------------------------------------ */
.badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.badge {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.badge svg, .badge--img img { transition: transform 0.2s ease; }
.badge:hover svg, .badge:hover img { transform: translateY(-2px) scale(1.12); }
.badge svg { width: 100%; height: 100%; display: block; }
.badge--img { width: 24px; height: 24px; }
.badge--img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* tooltip bubble (matches the glass cards) — shared by badges + social icons */
.badge::after,
.social::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px) scale(0.95);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(120, 70, 90, 0.35);
  box-shadow: 0 8px 22px rgba(120, 70, 90, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 40;
}
.badge::before,
.social::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 40;
}
.badge:hover::after,
.social:hover::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.badge:hover::before,
.social:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* first badge -> tooltip on the LEFT side */
.badge:first-child::after {
  bottom: auto; top: 50%; left: auto; right: calc(100% + 11px);
  transform: translateY(-50%) translateX(5px) scale(0.95);
}
.badge:first-child:hover::after { transform: translateY(-50%) translateX(0) scale(1); }
.badge:first-child::before {
  bottom: auto; top: 50%; left: auto; right: calc(100% + 6px);
  transform: translateY(-50%) translateX(5px);
  border-top-color: transparent;
  border-left-color: rgba(255, 255, 255, 0.22);
}
.badge:first-child:hover::before { transform: translateY(-50%) translateX(0); }

/* last badge -> tooltip on the RIGHT side */
.badge:last-child::after {
  bottom: auto; top: 50%; left: calc(100% + 11px); right: auto;
  transform: translateY(-50%) translateX(-5px) scale(0.95);
}
.badge:last-child:hover::after { transform: translateY(-50%) translateX(0) scale(1); }
.badge:last-child::before {
  bottom: auto; top: 50%; left: calc(100% + 6px); right: auto;
  transform: translateY(-50%) translateX(-5px);
  border-top-color: transparent;
  border-right-color: rgba(255, 255, 255, 0.22);
}
.badge:last-child:hover::before { transform: translateY(-50%) translateX(0); }

/* social icons flagged tipPos:"bottom" — tooltip hangs below, arrow points up */
.social[data-tip-pos="bottom"]::after {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-5px) scale(0.95);
}
.social[data-tip-pos="bottom"]:hover::after {
  transform: translateX(-50%) translateY(0) scale(1);
}
.social[data-tip-pos="bottom"]::before {
  bottom: auto;
  top: calc(100% + 5px);
  transform: translateX(-50%) translateY(-5px);
  border-top-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.social[data-tip-pos="bottom"]:hover::before {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Socials ----------------------------------------------------- */
.socials {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.social {
  position: relative;          /* anchor for the tooltip */
  color: var(--text);
  opacity: 0.9;
  transition: opacity 0.2s ease;
  display: grid;
  place-items: center;
  padding: 3px;                /* a little breathing room for the hit area */
}
/* Font Awesome brand marks aren't square (viewBoxes vary in width, all 512
   tall) — size by height so the row stays optically even. */
.social svg {
  height: 24px; width: auto; max-width: 30px;
  display: block; fill: currentColor;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.social:hover { opacity: 1; }
/* transform the icon, not the link — otherwise the tooltip scales with it */
.social:hover svg {
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(120, 70, 90, 0.3));
}

/* ---------- Widget cards ------------------------------------------------ */
.widgets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.wcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.wcard:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: 0 16px 46px rgba(120, 70, 90, 0.26);
}

.wcard__avatar {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.wcard__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.15);
}
.wcard__avatar--square img { border-radius: 12px; }
.wcard__status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg-bottom);
  background: #9aa0a6;         /* default offline */
}
.wcard__status.online { background: #3ba55d; }
.wcard__status.idle   { background: #faa81a; }
.wcard__status.dnd    { background: #ed4245; }
.wcard__status.live   { background: #eb0400; animation: livePulse 1.6s ease-in-out infinite; }

.wcard__body { flex: 1; min-width: 0; }
.wcard__title {
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wcard__sub {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wcard__stats {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--faint);
}
.wcard__stats span { display: inline-flex; align-items: center; gap: 4px; }
.wcard__stats svg { width: 13px; height: 13px; fill: currentColor; opacity: 0.85; }

/* game / album art thumbnail on the presence card */
.wcard__art {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(120, 70, 90, 0.25);
}

.wcard__brand { flex-shrink: 0; opacity: 0.75; }
.wcard__brand svg { height: 20px; width: auto; max-width: 26px; fill: currentColor; }

/* ---------- Link pills -------------------------------------------------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rise 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.link:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: 0 16px 46px rgba(120, 70, 90, 0.26);
}
.link__emoji { font-size: 1.1rem; line-height: 1; }
.link__label { flex: 1; }
.link__arrow { opacity: 0.5; font-size: 0.95rem; transition: transform 0.22s ease; }
.link:hover .link__arrow { transform: translate(2px, -2px); opacity: 0.85; }

/* copy-to-clipboard pill (rendered as a <button>) */
.link--copy {
  width: 100%;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.link--copy:hover .link__arrow { transform: none; }
.link--copy.is-copied {
  background: rgba(255, 133, 184, 0.28);
  border-color: rgba(255, 158, 196, 0.65);
}
.link--copy.is-copied .link__arrow { opacity: 1; color: #fff; }

/* ---------- View counter + location (bottom-left) ----------------------- */
.views {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: default;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.views:hover { transform: translateY(-1px) scale(1.03); background: var(--card-hover); box-shadow: 0 14px 40px rgba(120,70,90,0.26); }
.views__item { position: relative; display: flex; align-items: center; gap: 6px; }
.views__icon { display: grid; place-items: center; opacity: 0.85; }
.views__icon svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.views__num { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; min-width: 1ch; }
.views__sep { opacity: 0.4; }
.loc__time { opacity: 0.72; font-variant-numeric: tabular-nums; }
.loc__time:not(:empty)::before { content: "·"; margin-right: 5px; opacity: 0.6; }

/* per-item tooltip */
.views__item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(5px) scale(0.95);
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(120, 70, 90, 0.35);
  box-shadow: 0 8px 22px rgba(120, 70, 90, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 40;
}
.views__item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ---------- Volume control (top-left) ----------------------------------- */
.volume {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.volume:hover { transform: translateY(-1px) scale(1.04); background: var(--card-hover); box-shadow: 0 14px 40px rgba(120,70,90,0.26); }
.volume__btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
}
.volume__icon { width: 20px; height: 20px; display: grid; place-items: center; }
.volume__icon svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.volume:hover .volume__icon { animation: volBounce 0.6s ease; }

/* slider hidden until hover / open / focus, then slides out */
.volume__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  opacity: 0;
  height: 5px;
  margin: 0;
  border-radius: 5px;
  background: linear-gradient(to right, #fff var(--fill, 35%), rgba(255,255,255,0.28) var(--fill, 35%));
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.2,0.7,0.2,1), opacity 0.3s ease, margin 0.35s ease;
}
.volume:hover .volume__slider,
.volume.open .volume__slider,
.volume:focus-within .volume__slider { width: 96px; opacity: 1; margin: 0 8px 0 10px; }
.volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(120,70,90,0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.volume__slider:hover::-webkit-slider-thumb { transform: scale(1.15); }
.volume__slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(120,70,90,0.4);
  cursor: pointer;
}

/* ---------- oneko cat --------------------------------------------------- */
#oneko {
  transform: scale(var(--oneko-scale, 1));
  transform-origin: center;
  transition: transform 0.14s ease;
}
#oneko.oneko--pet { transform: scale(calc(var(--oneko-scale, 1) * 1.4)); }
@media (max-width: 600px) { #oneko { --oneko-scale: 1.3; } }

/* ---------- oneko pet hearts -------------------------------------------- */
.pet-heart {
  position: fixed;
  z-index: 2147483647;
  font-size: 16px;
  color: #ff6fa5;
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 3px rgba(120, 70, 90, 0.35);
  animation: petHeart 1.1s ease-out forwards;
}
@keyframes petHeart {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1.05); }
}

/* ---------- EN VIVO banner ---------------------------------------------- */
.live-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  background: linear-gradient(120deg, #ff5c8a, #ff85b8);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  box-shadow: 0 8px 26px rgba(214, 45, 106, 0.45);
  animation: liveIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.live-banner:hover { transform: translateX(-50%) translateY(-2px) scale(1.03); }
.live-banner__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: livePulseDot 1.4s ease-in-out infinite;
}
.live-banner__title {
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.92;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 9px;
}
@media (max-width: 700px) { .live-banner__title { display: none; } }
@keyframes liveIn { from { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
@keyframes livePulseDot { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
body.pre-enter .live-banner { opacity: 0; pointer-events: none; }

/* admin-only live switch */
.live-toggle {
  position: fixed;
  left: 18px;
  bottom: 66px;
  z-index: 46;
  padding: 8px 13px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}
.live-toggle:hover { transform: translateY(-1px); background: var(--card-hover); }
.live-toggle.on { background: #ff5c8a; border-color: #ff85b8; }
.live-toggle:disabled { opacity: 0.6; cursor: default; }
body.pre-enter .live-toggle { opacity: 0; pointer-events: none; }

/* ---------- QR ----------------------------------------------------------- */
.qr-btn {
  position: fixed;
  top: 18px;
  right: 70px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.qr-btn:hover { transform: scale(1.08); background: var(--card-hover); }
.qr-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
body.pre-enter .qr-btn { opacity: 0; pointer-events: none; }

.qr {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr__backdrop {
  position: absolute; inset: 0;
  background: rgba(120, 70, 90, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.qr.is-open .qr__backdrop { opacity: 1; }
.qr__panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.qr.is-open .qr__panel { opacity: 1; transform: none; }
.qr__x {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--muted);
  font-size: 0.95rem; cursor: pointer; padding: 4px 6px; border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.qr__x:hover { color: #fff; background: rgba(255,255,255,0.12); }
/* white plate keeps the code high-contrast so phones scan it instantly */
.qr__code {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(120, 70, 90, 0.3);
  line-height: 0;
}
.qr__code img { width: 190px; height: 190px; display: block; }
.qr__handle { font-weight: 700; font-size: 1rem; }
.qr__hint { font-size: 0.78rem; color: var(--muted); margin-top: -6px; }
.qr__copy {
  margin-top: 2px;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid #ff85b8;
  background: #ff85b8;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.qr__copy:hover { background: #ff70ab; transform: translateY(-1px); }
.qr__copy.is-copied { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }

@media (max-width: 520px) {
  .qr-btn { width: 40px; height: 40px; top: 14px; right: 60px; }
  .qr__code img { width: 168px; height: 168px; }
  .live-banner { top: 13px; font-size: 0.72rem; padding: 7px 13px; }
}

/* ---------- Chat / comentarios ------------------------------------------ */
.chat-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-btn:hover { transform: scale(1.08); background: var(--card-hover); }
.chat-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.chat-btn__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 20px;
  background: #ff85b8;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  box-shadow: 0 2px 8px rgba(120, 70, 90, 0.4);
}
body.pre-enter .chat-btn { opacity: 0; pointer-events: none; }

.chat {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chat__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(120, 70, 90, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.chat.is-open .chat__backdrop { opacity: 1; }
.chat__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chat.is-open .chat__panel { opacity: 1; transform: none; }

.chat__head { display: flex; align-items: center; gap: 10px; }
.chat__icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}
.chat__icon svg { width: 16px; height: 16px; fill: #fff; }
.chat__head h2 { font-size: 1.06rem; font-weight: 700; flex: 1; cursor: default; user-select: none; }
.chat__x {
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; padding: 4px 6px; border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.chat__x:hover { color: #fff; background: rgba(255,255,255,0.12); }

.chat__bar { display: flex; gap: 8px; justify-content: flex-end; margin: 12px 0 4px; }
.chat__pill {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat__pill:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.chat__pill--primary { background: #ff85b8; border-color: #ff85b8; color: #fff; font-weight: 600; }
.chat__pill--primary:hover { background: #ff70ab; }
.chat__pill:disabled { opacity: 0.6; cursor: default; transform: none; }

.chat__form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.chat__input {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chat__input::placeholder { color: rgba(255,255,255,0.55); }
.chat__input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.chat__input--area { resize: vertical; min-height: 44px; max-height: 140px; }
.chat__captcha { min-height: 65px; display: flex; justify-content: center; }
.chat__formfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat__counter { font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; }

.chat__msg { font-size: 0.8rem; margin: 6px 2px; color: var(--muted); }
.chat__msg--warn { color: #ffd9e6; }
.chat__msg--ok { color: #fff; }

.chat__list {
  margin-top: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) transparent;
}
.chat__list::-webkit-scrollbar { width: 6px; }
.chat__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 20px; }
.chat__empty { font-size: 0.86rem; color: var(--muted); text-align: center; padding: 22px 10px; }

.chat__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.chat__av {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.chat__body { flex: 1; min-width: 0; }
.chat__top { display: flex; align-items: baseline; gap: 8px; }
.chat__name { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.chat__date { font-size: 0.7rem; color: var(--faint); white-space: nowrap; }
.chat__text {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat__like {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--faint);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.chat__like:hover { color: #ff9ec4; transform: scale(1.1); }
.chat__like.is-liked { color: #ff6fa5; cursor: default; }
.chat__del {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; opacity: 0.6; padding: 2px;
}
.chat__del:hover { opacity: 1; }

@media (max-width: 520px) {
  .chat { padding: 12px; }
  .chat__panel { max-height: 86vh; padding: 15px 14px 13px; }
  .chat-btn { width: 40px; height: 40px; top: 14px; right: 12px; }
}

/* ---------- Music toggle ------------------------------------------------ */
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.music-toggle:hover { transform: scale(1.08); background: var(--card-hover); }
.music-toggle__icon {
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat var(--icon-play);
  mask: center / contain no-repeat var(--icon-play);
}
.music-toggle.playing .music-toggle__icon {
  -webkit-mask-image: var(--icon-pause);
  mask-image: var(--icon-pause);
}
:root {
  --icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  --icon-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zM14 5h4v14h-4z'/%3E%3C/svg%3E");
}

/* ---------- Animations -------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(235,4,0,0.6); } 50% { box-shadow: 0 0 0 5px rgba(235,4,0,0); } }
@keyframes volBounce { 0%,100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.22) rotate(-7deg); } 60% { transform: scale(1.1) rotate(5deg); } }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  body.pre-enter .app { filter: none; opacity: 1; transform: none; }
}

/* Short viewports (laptops, landscape phones): tighten section 1 so the last
   link never collides with the "sobre mí" hint pinned to the bottom. */
@media (max-height: 820px) {
  .app { padding: 34px 24px 84px; gap: 16px; }
  .avatar-wrap { width: 94px; height: 94px; }
  .name { font-size: 1.4rem; margin-top: 10px; }
  .badges { margin-top: 8px; }
  .socials { margin-top: 10px; gap: 9px; }
  .widgets { gap: 9px; }
  .links { gap: 8px; }
  .wcard { padding: 9px 14px; }
  .link { padding: 10px 15px; }
}
@media (max-height: 620px) {
  .scroll-hint { display: none; }   /* no room — the dots still navigate */
}

@media (max-width: 480px) {
  .app { padding: 40px 18px; }
  .name { font-size: 1.45rem; }
  /* keep the stats pill clear of the play/pause button */
  .views { font-size: 0.7rem; gap: 6px; padding: 6px 11px; left: 12px; bottom: 14px; }
  .views__item { gap: 5px; }
  .views__icon svg { width: 12px; height: 12px; }
  .music-toggle { width: 40px; height: 40px; right: 12px; bottom: 14px; }
}
/* very narrow phones: drop the clock so the pill always clears the button */
@media (max-width: 340px) {
  .loc__time { display: none; }
}

/* =========================================================================
   Scroll hint (bottom of section 1)
   ========================================================================= */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  opacity: 0.85;
  animation: hintBob 2s ease-in-out infinite;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint__chev {
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

/* =========================================================================
   Sobre mí (scroll-down section)
   ========================================================================= */
.about-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-title {
  font-family: "Cinzel", "Poppins", serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 6px 24px rgba(120, 70, 90, 0.35);
  margin-bottom: 4px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.about-bio {
  padding: 22px 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  animation: rise 0.8s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.about-bio b { color: #fff; font-weight: 600; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: rise 0.85s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.about-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease;
}
a.about-card:hover { transform: translateY(-3px); background: var(--card-hover); }
.about-card__avatar { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.about-card__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about-card__dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #9aa0a6;                 /* offline by default */
  border: 3px solid var(--bg-bottom);
  transition: background 0.3s ease;
}
.about-card__dot.online { background: #3ba55d; }
.about-card__dot.idle   { background: #faa81a; }
.about-card__dot.dnd    { background: #ed4245; }

/* game / album art on the presence card */
.about-card__art {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(120, 70, 90, 0.28);
}
.about-card__name { font-weight: 700; font-size: 1rem; }
.about-card__handle { font-size: 0.82rem; color: var(--muted); }
.about-card__status { font-size: 0.82rem; color: var(--faint); margin-top: 3px; }

.clock-card { position: relative; gap: 16px; }
.clock-face { width: 62px; height: 62px; flex-shrink: 0; }
.clock-face svg { width: 100%; height: 100%; display: block; }
.clock-info { flex: 1; min-width: 0; }
.clock-time {
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.clock-date { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.clock-yours { font-size: 0.78rem; color: var(--faint); margin-top: 2px; }
.clock-tz {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.72rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Horario de streams ------------------------------------------ */
.section[hidden] { display: none; }

.sched {
  padding: 10px 8px;
  animation: rise 0.85s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.sched__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-radius: 14px;
  transition: background 0.2s ease;
}
.sched__row + .sched__row { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.sched__row:hover { background: rgba(255, 255, 255, 0.07); }
.sched__day { font-weight: 600; font-size: 0.98rem; }
.sched__time {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.sched__row.rest .sched__day,
.sched__row.rest .sched__time { opacity: 0.55; font-style: italic; font-weight: 500; }
.sched__row.today {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 #ff9ec4;
}
.sched__row.today .sched__day::after {
  content: "hoy";
  margin-left: 9px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #ff85b8;
  padding: 3px 8px;
  border-radius: 20px;
  vertical-align: middle;
}
.sched__row.today .sched__time { color: #fff; font-weight: 600; }
.sched-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 2px;
  animation: rise 0.9s 0.14s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (max-width: 640px) {
  .about-wrap { padding: 32px 18px; gap: 15px; }
  .about-title { font-size: 2rem; }
  .about-cards { grid-template-columns: 1fr; }
  .clock-tz { display: none; }
  .sched__row { padding: 11px 14px; }
  .sched__day { font-size: 0.92rem; }
  .sched__time { font-size: 0.88rem; }
}
