/* ============================================================
   ZYNIX — Estética futurista / arcade
   ============================================================ */
:root {
  --bg: #05060f;
  --bg-panel: rgba(13, 16, 38, 0.6);
  --turquoise: #00e5c8;
  --red: #ff2d55;
  --orange: #ff8a00;
  --green: #39ff88;
  --text: #e6f1ff;
  --muted: #8a93b0;
  --danger: #ff4d6d;
  --border-glow: rgba(0, 229, 200, 0.35);
}

/* ============ MODO CLARO ============ */
[data-theme="light"] {
  --bg: #eef1f8;
  --bg-panel: rgba(255, 255, 255, 0.82);
  --text: #1b2333;
  --muted: #5b657a;
  --border-glow: rgba(0, 180, 160, 0.3);
}
[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 200, 180, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 0% 110%, rgba(255, 45, 85, 0.08), transparent 55%),
    linear-gradient(180deg, #eef1f8 0%, #e5eaf5 100%);
}
[data-theme="light"] .cell { background: transparent; }
[data-theme="light"] .cell.empty:hover { box-shadow: inset 0 0 28px rgba(0, 180, 160, 0.18); }
[data-theme="light"] .tile, [data-theme="light"] .tile video { background: #e6ebf5; }
[data-theme="light"] input[type="text"], [data-theme="light"] input[type="number"], [data-theme="light"] select.beauty-select { background: #ffffff; color: #1b2333; }
[data-theme="light"] .gift-btn, [data-theme="light"] .gift-target-btn, [data-theme="light"] .piece-preview { background: #ffffff; }
[data-theme="light"] .gift-btn-price { color: #1b2333; }
[data-theme="light"] .badge { background: rgba(0, 180, 160, 0.07); }
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0, 180, 160, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 160, 0.06) 1px, transparent 1px);
}
[data-theme="light"] .converter-box input, [data-theme="light"] .package-card, [data-theme="light"] .skin-card { background: #ffffff; }
[data-theme="light"] .video-placeholder { color: #5b657a; }

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

html, body {
  height: 100%;
}

body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 138, 0, 0.25), transparent 60%),
    radial-gradient(1000px 700px at 0% 110%, rgba(255, 45, 85, 0.18), transparent 55%),
    linear-gradient(180deg, #05060f 0%, #070a18 100%);
}

/* Mejoras táctiles para móvil */
button, .btn, .cell, .side-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.board, .cell, .btn, .side-tab, .score-player {
  user-select: none;
  -webkit-user-select: none;
}
.board { -webkit-touch-callout: none; }

/* Fondo decorativo */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 200, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { width: 420px; height: 420px; background: var(--turquoise); top: -120px; right: -80px; }
.bg-glow-2 { width: 380px; height: 380px; background: var(--red); bottom: -120px; left: -80px; }

/* ============ PANTALLAS ============ */
.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: calc(1.25rem + env(safe-area-inset-top)) calc(1.25rem + env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) calc(1.25rem + env(safe-area-inset-left));
}
.screen.active { display: flex; }

.hidden { display: none !important; }

/* ============ TIPOGRAFÍA / TÍTULOS ============ */
.title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 0 6px var(--turquoise),
    0 0 20px var(--turquoise),
    0 0 45px var(--turquoise),
    0 0 90px rgba(0, 229, 200, 0.6);
}
.title .accent {
  color: var(--red);
  text-shadow:
    0 0 6px var(--red),
    0 0 20px var(--red),
    0 0 45px var(--red),
    0 0 90px rgba(255, 45, 85, 0.6);
}
.subtitle {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.4rem;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-align: center;
  color: var(--turquoise);
  text-shadow: 0 0 12px rgba(0, 229, 200, 0.7);
}

/* ============ TARJETAS ============ */
.home-card, .lobby-card {
  width: min(480px, 100%);
  background: var(--bg-panel);
  border: 1px solid rgba(0, 229, 200, 0.2);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 229, 200, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ============ BOTONES ============ */
.btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  background: transparent;
  padding: 0.72rem 1.3rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 229, 200, 0.22), inset 0 0 10px rgba(0, 229, 200, 0.08);
  white-space: nowrap;
}
.btn:hover {
  background: rgba(0, 229, 200, 0.12);
  box-shadow: 0 0 22px rgba(0, 229, 200, 0.5), inset 0 0 16px rgba(0, 229, 200, 0.18);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 200, 0.16), rgba(255, 138, 0, 0.22));
  border-color: var(--turquoise);
  color: #eafcff;
}
.btn-block { width: 100%; }

.btn-secondary {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.22), inset 0 0 10px rgba(255, 45, 85, 0.08);
}
.btn-secondary:hover {
  background: rgba(255, 45, 85, 0.12);
  box-shadow: 0 0 22px rgba(255, 45, 85, 0.5), inset 0 0 16px rgba(255, 45, 85, 0.18);
}

.btn-ghost {
  border-color: rgba(230, 241, 255, 0.35);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(230, 241, 255, 0.08); box-shadow: 0 0 18px rgba(230, 241, 255, 0.25); }

.btn-danger-ghost {
  border-color: rgba(255, 77, 109, 0.5);
  color: var(--danger);
  box-shadow: none;
}
.btn-danger-ghost:hover { background: rgba(255, 77, 109, 0.12); box-shadow: 0 0 18px rgba(255, 77, 109, 0.4); }

.btn.small { padding: 0.45rem 0.85rem; font-size: 0.85rem; border-radius: 8px; }
.icon-btn { padding: 0.45rem 0.6rem; font-size: 1rem; }

/* Botón de Facebook */
.btn-fb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  border-color: #1877f2;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #0a5ad4);
  box-shadow: 0 0 14px rgba(24, 119, 242, 0.45);
}
.btn-fb:hover { background: linear-gradient(135deg, #1d84ff, #0a5ad4); box-shadow: 0 0 24px rgba(24, 119, 242, 0.7); }
.fb-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  width: 1.5rem; height: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff; color: #1877f2;
}

.link-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-family: inherit; font-size: 0.8rem;
  text-decoration: underline;
}
.link-btn:hover { color: var(--text); }

/* ============ PERFIL ============ */
.profile-box { display: flex; flex-direction: column; gap: 0.8rem; }
.profile-guest { display: flex; flex-direction: column; gap: 0.8rem; }
.profile-logged { display: flex; align-items: center; gap: 0.9rem; }
.fb-avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--turquoise); box-shadow: 0 0 14px rgba(0,229,200,.5); object-fit: cover; }
.fb-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.profile-info { display: flex; flex-direction: column; gap: 0.15rem; }

/* ============ INPUTS ============ */
input[type="text"] {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(5, 6, 15, 0.6);
  border: 1px solid rgba(0, 229, 200, 0.3);
  border-radius: 10px;
  padding: 0.72rem 1rem;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
input[type="text"]::placeholder { color: var(--muted); font-weight: 500; }
input[type="text"]:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 16px rgba(0, 229, 200, 0.45);
}

.menu-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.join-row { display: flex; flex-direction: column; gap: 0.5rem; }
.join-row .code-input { width: 100%; text-align: center; text-transform: uppercase; letter-spacing: 0.4em; font-family: 'Orbitron', sans-serif; }
.join-row .btn { width: 100%; }

.error-msg { color: var(--danger); text-align: center; min-height: 1.2rem; font-weight: 600; }
.footnote { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: -0.2rem; }

/* ============ LOBBY ============ */
.lobby-card { align-items: center; text-align: center; }
.lobby-hint { color: var(--muted); }
.room-code {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 12vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--turquoise);
  text-shadow: 0 0 8px var(--turquoise), 0 0 28px var(--turquoise), 0 0 60px rgba(0, 229, 200, 0.7);
  padding: 0.6rem 0.2rem 0.6rem 0.55rem;
}
.waiting { display: flex; align-items: center; gap: 0.3rem; color: var(--muted); font-weight: 600; }
.waiting-text { letter-spacing: 0.1em; text-transform: uppercase; }

.dots span { animation: blink 1.4s infinite; font-size: 1.4rem; line-height: 0.6; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

/* ============ LAYOUT DE JUEGO ============ */
#screen-game.active { align-items: flex-start; padding: 1.2rem; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.game-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.2rem;
  align-items: start;
}
.game-main { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.game-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 229, 200, 0.35);
  border-radius: 999px;
  color: var(--turquoise);
  background: rgba(0, 229, 200, 0.06);
  text-shadow: 0 0 8px rgba(0, 229, 200, 0.6);
}
.badge span { color: #fff; font-weight: 700; }
.badge-btn {
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.badge-btn:hover { border-color: rgba(0, 229, 200, 0.75); box-shadow: 0 0 12px rgba(0, 229, 200, 0.4); }
.badge-btn:active { transform: scale(0.94); }
.badge.live-badge {
  color: var(--red);
  border-color: rgba(255, 45, 85, 0.5);
  background: rgba(255, 45, 85, 0.1);
  text-shadow: 0 0 8px rgba(255, 45, 85, 0.7);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 45, 85, 0.4); }
  50% { box-shadow: 0 0 16px rgba(255, 45, 85, 0.85); }
}

/* ============ MARCADOR ============ */
.scoreboard {
  width: min(480px, 100%);
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}
.score-player {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-panel);
  border: 1px solid rgba(230, 241, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.score-player.active-x { border-color: var(--turquoise); box-shadow: 0 0 20px rgba(0, 229, 200, 0.4); }
.score-player.active-o { border-color: var(--red); box-shadow: 0 0 20px rgba(255, 45, 85, 0.4); }

.score-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(230, 241, 255, 0.08);
  overflow: hidden;
}
.score-avatar img { width: 100%; height: 100%; object-fit: cover; }
.score-avatar.x { color: var(--turquoise); border: 1px solid var(--turquoise); text-shadow: 0 0 10px var(--turquoise); }
.score-avatar.o { color: var(--red); border: 1px solid var(--red); text-shadow: 0 0 10px var(--red); }

.score-meta { display: flex; flex-direction: column; }
.score-name { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.score-symbol { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 0.9rem; }
.symbol-x { color: var(--turquoise); text-shadow: 0 0 8px var(--turquoise); }
.symbol-o { color: var(--red); text-shadow: 0 0 8px var(--red); }
.score-value {
  margin-left: auto;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(230, 241, 255, 0.5);
}
.score-vs {
  align-self: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ============ INDICADOR DE TURNO ============ */
.turn-indicator {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 241, 255, 0.18);
  color: var(--text);
  text-align: center;
  transition: all 0.25s ease;
}
.turn-indicator.turn-x { border-color: var(--turquoise); color: var(--turquoise); box-shadow: 0 0 16px rgba(0, 229, 200, 0.4); text-shadow: 0 0 8px var(--turquoise); }
.turn-indicator.turn-o { border-color: var(--red); color: var(--red); box-shadow: 0 0 16px rgba(255, 45, 85, 0.4); text-shadow: 0 0 8px var(--red); }
.turn-indicator.my-turn { animation: pulseTurn 1.4s ease-in-out infinite; }
@keyframes pulseTurn {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 229, 200, 0.3); }
  50% { box-shadow: 0 0 28px rgba(0, 229, 200, 0.7); }
}

/* ============ TABLERO ============ */
.board {
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 229, 200, 0.2), 0 18px 50px rgba(0, 0, 0, 0.4);
  position: relative;
}
.board.locked { pointer-events: none; }

.cell {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 13vw, 5.8rem);
  cursor: pointer;
  position: relative;
  user-select: none;
  border-right: 2px solid rgba(0, 229, 200, 0.28);
  border-bottom: 2px solid rgba(0, 229, 200, 0.28);
}
.cell:nth-child(3n) { border-right: none; }
.cell:nth-child(n+7) { border-bottom: none; }

.cell.empty:hover { box-shadow: inset 0 0 28px rgba(0, 229, 200, 0.18); }

.cell.x { color: var(--turquoise); text-shadow: 0 0 8px var(--turquoise), 0 0 24px var(--turquoise), 0 0 55px rgba(0, 229, 200, 0.7); }
.cell.o { color: var(--red); text-shadow: 0 0 8px var(--red), 0 0 24px var(--red), 0 0 55px rgba(255, 45, 85, 0.7); }
.cell.x, .cell.o { animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1); }

/* ============ SKINS DE FICHAS (X y O) ============ */
.cell.skin-crystal,
.cell.skin-gold,
.cell.skin-ruby,
.cell.skin-fire,
.cell.skin-cyber,
.cell.skin-emerald,
.cell.skin-plasma {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}
.cell.skin-crystal {
  background: linear-gradient(180deg, #ffffff 0%, #bff0ff 45%, #4db8ff 100%);
  filter: drop-shadow(0 0 10px rgba(130, 200, 255, 0.7));
}
.cell.skin-gold {
  background: linear-gradient(180deg, #fffbe6 0%, #ffe066 30%, #ffb300 60%, #b8860b 100%);
  filter: drop-shadow(0 0 10px rgba(255, 190, 0, 0.7));
}
.cell.skin-ruby {
  background: linear-gradient(180deg, #ffe3ea 0%, #ff4d7d 45%, #8a0030 100%);
  filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.75));
}
.cell.skin-fire {
  background: linear-gradient(180deg, #fff6d0 0%, #ffd000 30%, #ff7a00 60%, #e60000 100%);
  animation: fireFlicker 0.5s ease-in-out infinite alternate;
}
.cell.skin-cyber {
  background: linear-gradient(180deg, #00e5c8 0%, #7c3aed 60%, #ff2d55 100%);
  filter: drop-shadow(0 0 10px rgba(0, 229, 200, 0.6)) drop-shadow(0 0 16px rgba(255, 45, 85, 0.4));
}
.cell.skin-emerald {
  background: linear-gradient(180deg, #eafff2 0%, #3dffa2 45%, #007a52 100%);
  filter: drop-shadow(0 0 10px rgba(60, 255, 150, 0.7));
}
.cell.skin-plasma {
  background: linear-gradient(120deg, #00e5c8, #ff2d55, #ff8a00, #7c3aed, #00e5c8);
  background-size: 300% 300%;
  filter: drop-shadow(0 0 12px rgba(0, 229, 200, 0.6));
  animation: plasmaShift 3s linear infinite;
}
@keyframes fireFlicker {
  from { filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.6)); }
  to { filter: drop-shadow(0 0 18px rgba(255, 40, 0, 0.9)); }
}
@keyframes plasmaShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.cell.win { animation: winPulseX 0.6s ease-in-out infinite alternate; }
.cell.win.o { animation: winPulseO 0.6s ease-in-out infinite alternate; }

@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes winPulseX {
  from { box-shadow: inset 0 0 12px rgba(0, 229, 200, 0.25); }
  to { box-shadow: inset 0 0 30px rgba(0, 229, 200, 0.6); }
}
@keyframes winPulseO {
  from { box-shadow: inset 0 0 12px rgba(255, 45, 85, 0.25); }
  to { box-shadow: inset 0 0 30px rgba(255, 45, 85, 0.6); }
}

.game-controls { display: flex; gap: 0.8rem; min-height: 3rem; align-items: center; }

/* ============ PANEL LATERAL ============ */
.side-panel { display: flex; flex-direction: column; gap: 1rem; }
.side-tabs {
  display: none;
  gap: 0.4rem;
  background: var(--bg-panel);
  border: 1px solid rgba(230, 241, 255, 0.1);
  border-radius: 12px;
  padding: 0.35rem;
}
.side-tab {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.65rem;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.side-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 229, 200, 0.2), rgba(255, 138, 0, 0.28));
  box-shadow: 0 0 12px rgba(0, 229, 200, 0.3);
}
.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(230, 241, 255, 0.1);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.panel-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* Video — carrusel horizontal compacto (hasta 10 personas, estilo TikTok) */
.video-grid {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 200, 0.4) transparent;
}
.tile {
  flex: 0 0 auto;
  width: 84px;
  height: 63px;
  position: relative;
  background: radial-gradient(circle at 50% 35%, #0c1024 0%, #05070f 70%);
  border: 1px solid rgba(0, 229, 200, 0.25);
  border-radius: 10px;
  overflow: hidden;
}
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #05070f;
}
.tile.self video { transform: scaleX(-1); }
.tile-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.tile-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-symbol {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.72rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.5);
}
.tile-symbol.x { color: var(--turquoise); border: 1px solid var(--turquoise); }
.tile-symbol.o { color: var(--red); border: 1px solid var(--red); }
.tile-symbol.spec { color: var(--orange); border: 1px solid var(--orange); font-size: 0.6rem; }

.member-count { color: var(--orange); font-weight: 700; }

.video-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
.video-status { font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

.spectator-banner {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--orange);
  border: 1px dashed rgba(255, 138, 0, 0.5);
  background: rgba(255, 138, 0, 0.08);
  border-radius: 10px;
  padding: 0.55rem 1rem;
}

/* Chat */
.chat-panel { display: flex; flex-direction: column; }
.chat-messages {
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.3rem 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 200, 0.4) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 229, 200, 0.4); border-radius: 6px; }

.msg { display: flex; gap: 0.5rem; align-items: flex-start; }
.msg .msg-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 0.9rem;
  background: rgba(230, 241, 255, 0.08); overflow: hidden;
}
.msg .msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg .msg-avatar.x { color: var(--turquoise); }
.msg .msg-avatar.o { color: var(--red); }
.msg .msg-avatar.spec { color: var(--orange); }
.msg .msg-body { flex: 1; }
.msg .msg-name { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; }
.msg .msg-name.x { color: var(--turquoise); }
.msg .msg-name.o { color: var(--red); }
.msg .msg-name.spec { color: var(--orange); }
.msg .msg-text { color: var(--text); font-size: 0.95rem; word-break: break-word; }
.msg .msg-time { font-size: 0.68rem; color: var(--muted); margin-left: 0.4rem; }
.msg.system { justify-content: center; }
.msg.system .msg-text { color: var(--muted); font-style: italic; font-size: 0.82rem; text-align: center; }

.chat-input-row { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.chat-input-row input { flex: 1; min-width: 0; }

/* ============ OVERLAYS ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 4, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.overlay-card {
  width: min(430px, 100%);
  background: linear-gradient(160deg, rgba(20, 26, 56, 0.98), rgba(10, 12, 28, 0.98));
  border: 1px solid rgba(0, 229, 200, 0.35);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 229, 200, 0.25), 0 30px 70px rgba(0, 0, 0, 0.6);
  animation: overlayIn 0.3s ease;
}
.overlay-card.small { width: min(360px, 100%); }
@keyframes overlayIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.overlay-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.overlay-title.win-x { color: var(--turquoise); text-shadow: 0 0 10px var(--turquoise), 0 0 30px var(--turquoise); }
.overlay-title.win-o { color: var(--red); text-shadow: 0 0 10px var(--red), 0 0 30px var(--red); }
.overlay-title.draw { color: #fff; text-shadow: 0 0 14px rgba(230, 241, 255, 0.6); }
.overlay-sub { color: var(--muted); margin-bottom: 1.3rem; font-weight: 600; }
.overlay-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.rematch-status { color: var(--green); font-weight: 700; min-height: 1.2rem; margin-top: 0.9rem; letter-spacing: 0.04em; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(13, 16, 38, 0.95);
  border: 1px solid rgba(0, 229, 200, 0.4);
  color: var(--text);
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 0 24px rgba(0, 229, 200, 0.35);
  animation: toastIn 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.error { border-color: var(--danger); box-shadow: 0 0 24px rgba(255, 77, 109, 0.4); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ ANUNCIO SINCRONIZADO ============ */
.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 3, 8, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: adIn 0.3s ease;
}
.ad-card {
  width: min(520px, 100%);
  background: linear-gradient(160deg, rgba(20, 24, 48, 0.98), rgba(8, 10, 22, 0.98));
  border: 1px solid rgba(255, 138, 0, 0.4);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 138, 0, 0.25), 0 30px 70px rgba(0, 0, 0, 0.6);
}
.ad-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--orange);
  border: 1px solid rgba(255, 138, 0, 0.6);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1.2rem;
}
.ad-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.ad-logo { font-size: 3.4rem; animation: adFloat 2s ease-in-out infinite; }
.ad-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 138, 0, 0.6);
}
.ad-sub { color: var(--muted); font-weight: 600; }
.ad-timer { margin-top: 1.3rem; color: var(--text); font-weight: 700; letter-spacing: 0.03em; }
.ad-timer span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: var(--turquoise);
  font-size: 1.3rem;
  text-shadow: 0 0 10px var(--turquoise);
}
@keyframes adIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes adFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ TIENDA DE SKINS ============ */
.shop-bar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.diamond-balance {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 138, 0, 0.4);
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.08);
}

.piece-preview {
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  cursor: default;
  background: #0a0e20;
  border: 1px solid rgba(230, 241, 255, 0.12);
  border-radius: 8px;
  flex-shrink: 0;
}
.piece-preview:hover { background: #0a0e20; box-shadow: none; }

.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(3, 4, 10, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.shop-modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(20, 26, 56, 0.98), rgba(10, 12, 28, 0.98));
  border: 1px solid rgba(0, 229, 200, 0.3);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 0 50px rgba(0, 229, 200, 0.15), 0 30px 70px rgba(0, 0, 0, 0.6);
}
.shop-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.shop-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--turquoise);
  text-shadow: 0 0 12px rgba(0, 229, 200, 0.6);
}
.shop-balance { margin-left: auto; font-weight: 900; font-size: 1.1rem; color: #fff; }
.shop-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.shop-close:hover { color: #fff; }
.shop-sub { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; color: var(--muted); }
.shop-sub > span { flex: 1; min-width: 200px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.skin-card {
  background: var(--bg-panel);
  border: 1px solid rgba(230, 241, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}
.skin-card.selected { border-color: var(--turquoise); box-shadow: 0 0 18px rgba(0, 229, 200, 0.4); }
.skin-preview { display: flex; gap: 0.4rem; }
.skin-name { font-weight: 700; letter-spacing: 0.02em; }
.skin-rarity { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; border-radius: 999px; padding: 0.1rem 0.6rem; }
.rarity-comun { color: #cfd6e4; border: 1px solid #cfd6e4; }
.rarity-rara { color: #4db8ff; border: 1px solid #4db8ff; }
.rarity-epica { color: #b56bff; border: 1px solid #b56bff; }
.rarity-legendaria { color: var(--orange); border: 1px solid var(--orange); }
.btn-locked { opacity: 0.85; }

.unlock-preview { display: flex; gap: 0.5rem; justify-content: center; margin: 0.4rem 0 1rem; }
.unlock-actions { flex-direction: column; align-items: stretch; }
.unlock-actions .btn { width: 100%; }
#unlockOverlay { z-index: 65; }

/* ============ REGALOS / REACCIONES EN VIVO ============ */
.gifts-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid rgba(230, 241, 255, 0.1);
}
.gifts-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.gift-target {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-right: 0.4rem;
  border-right: 1px solid rgba(230, 241, 255, 0.12);
}
.gift-target-label { font-size: 0.85rem; }
.gift-target-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  border: 1px solid rgba(230, 241, 255, 0.2);
  background: rgba(5, 6, 15, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gift-target-btn.x.active { color: var(--turquoise); border-color: var(--turquoise); box-shadow: 0 0 10px rgba(0, 229, 200, 0.4); }
.gift-target-btn.o.active { color: var(--red); border-color: var(--red); box-shadow: 0 0 10px rgba(255, 45, 85, 0.4); }
.gifts-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 200, 0.4) transparent;
}
.gifts-list .gift-btn { flex-shrink: 0; }
.gifts-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.gifts-tab {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 241, 255, 0.2);
  background: rgba(5, 6, 15, 0.5);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gifts-tab.active {
  color: #fff;
  border-color: var(--orange);
  background: rgba(255, 138, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.35);
}
.gift-btn {
  width: 50px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(230, 241, 255, 0.2);
  background: rgba(5, 6, 15, 0.6);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gift-btn:active { transform: scale(0.85); }
.gift-btn-icon { font-size: 1.2rem; line-height: 1; }
.gift-btn-price { font-size: 0.62rem; font-weight: 700; color: #fff; opacity: 0.9; line-height: 1; }
.gift-turquoise { color: var(--turquoise); }
.gift-red { color: var(--red); }
.gift-orange { color: var(--orange); }
.gift-btn.gift-turquoise { box-shadow: 0 0 12px rgba(0, 229, 200, 0.35); }
.gift-btn.gift-red { box-shadow: 0 0 12px rgba(255, 45, 85, 0.35); }
.gift-btn.gift-orange { box-shadow: 0 0 12px rgba(255, 138, 0, 0.35); }

/* Capa de efectos (3D, pantalla completa) */
.gift-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
  perspective: 800px;
}
.gift-flash {
  position: absolute;
  inset: 0;
  animation: giftFlash 0.9s ease-out forwards;
}
.gift-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 60vmin; height: 60vmin;
  border: 5px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: giftRing 1s ease-out forwards;
  box-shadow: 0 0 40px currentColor;
}
.gift-hero {
  position: absolute;
  left: 50%; top: 50%;
  font-size: clamp(6rem, 22vmin, 11rem);
  transform: translate(-50%, -50%);
  animation: giftHero 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  filter: drop-shadow(0 0 30px currentColor) drop-shadow(0 0 70px currentColor);
  will-change: transform, opacity;
}
.gift-hero.gift-rainbow {
  animation: giftHero 1.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards, rainbowGlow 1.6s linear forwards;
}
@keyframes rainbowGlow {
  0% { filter: drop-shadow(0 0 30px var(--turquoise)); }
  33% { filter: drop-shadow(0 0 30px var(--red)); }
  66% { filter: drop-shadow(0 0 30px var(--orange)); }
  100% { filter: drop-shadow(0 0 30px var(--turquoise)); }
}
.gift-particle {
  position: absolute;
  bottom: -70px;
  animation: giftRise 2.8s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
  filter: drop-shadow(0 0 10px currentColor);
  will-change: transform, opacity;
}

@keyframes giftFlash {
  0% { background: radial-gradient(circle at 50% 50%, currentColor 0%, transparent 62%); opacity: 0.55; }
  100% { opacity: 0; }
}
@keyframes giftRing {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@keyframes giftHero {
  0% { transform: translate(-50%, -50%) scale(0) rotateY(0deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.4) rotateY(180deg); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1.15) rotateY(360deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.7) rotateY(360deg); opacity: 0; }
}
@keyframes giftRise {
  0% { transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(0.4); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-115vh) translateZ(240px) rotateX(360deg) rotateY(360deg) scale(1.8); opacity: 0; }
}

/* Popup con skin y color del remitente */
.gift-popup-layer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 81;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: calc(0.5rem + env(safe-area-inset-top)) 1rem 0;
}
.gift-popup {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 16, 38, 0.94);
  border: 1px solid currentColor;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45), 0 0 16px currentColor;
  animation: giftPopupIn 0.25s ease, giftPopupOut 0.4s ease 2.4s forwards;
}
.gift-popup-text { line-height: 1.2; }
.piece-popup {
  width: 26px; height: 26px;
  font-size: 0.9rem;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: default;
  background: #0a0e20;
}
.piece-spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 138, 0, 0.45);
}

/* Mensaje destacado de regalo en el chat */
.gift-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid currentColor;
  background: rgba(13, 16, 38, 0.6);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
.gift-msg-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
@keyframes giftPopupIn { from { opacity: 0; transform: translateY(-10px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes giftPopupOut { to { opacity: 0; transform: translateY(-10px) scale(0.9); } }

/* Contador de regalos en el marcador */
.score-stats { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-left: auto; }
.score-gifts { font-size: 0.72rem; font-weight: 700; color: var(--orange); line-height: 1; }

/* ============ CÁMARA Y FILTROS DE BELLEZA ============ */
.beauty-modal { width: min(480px, 100%); }
.beauty-cam {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.beauty-cam label { font-weight: 700; color: var(--muted); white-space: nowrap; }
.beauty-select {
  flex: 1;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: rgba(5, 6, 15, 0.6);
  border: 1px solid rgba(0, 229, 200, 0.3);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
}
.beauty-presets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.preset-btn { flex: 1; min-width: 0; }
.preset-btn.active {
  border-color: var(--turquoise);
  background: rgba(0, 229, 200, 0.15);
  box-shadow: 0 0 14px rgba(0, 229, 200, 0.45);
  color: #fff;
}

.beauty-sliders { display: flex; flex-direction: column; gap: 0.9rem; }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.6rem; align-items: center; }
.slider-row label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.slider-row .slider-val {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--turquoise);
  min-width: 2.4rem;
  text-align: right;
}
.slider-row input[type="range"] {
  grid-column: 1 / -1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(230, 241, 255, 0.15);
  outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--turquoise);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(0, 229, 200, 0.6);
  cursor: pointer;
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--turquoise);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(0, 229, 200, 0.6);
  cursor: pointer;
}
.beauty-footer { margin-top: 1rem; text-align: right; }

/* ============ EFECTO DE REGALO DRAGÓN (PANTALLA COMPLETA) ============ */
.gift-overlay-hidden {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.gift-overlay-visible {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
}
#dragon-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#dragon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sender-banner-hidden { display: none; }
.sender-banner-visible {
  display: block;
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.55), 0 0 30px rgba(255, 140, 0, 0.4);
  animation: dragonBounceIn 0.5s ease-out;
  z-index: 10000;
}
@keyframes dragonBounceIn {
  0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ============ MODO SIMULACIÓN / COMPRA SIMULADA ============ */
.simulation-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: rgba(255, 138, 0, 0.08);
  border: 1px dashed rgba(255, 138, 0, 0.45);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
}
.simulation-box strong { color: var(--orange); }
.purchase-note {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.permission-steps { text-align: left; margin: 0.5rem 0 1rem; padding-left: 1.2rem; color: var(--text); font-size: 0.9rem; }
.permission-steps li { margin-bottom: 0.5rem; }
.permission-steps strong { color: var(--turquoise); }

/* ============ SALDO RETIRABLE (USD) ============ */
.cash-balance {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(57, 255, 136, 0.4);
  border-radius: 999px;
  background: rgba(57, 255, 136, 0.08);
}
.withdraw-box {
  background: rgba(57, 255, 136, 0.06);
  border: 1px solid rgba(57, 255, 136, 0.3);
  border-radius: 10px;
  padding: 0.9rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.withdraw-box strong { color: var(--green); }

/* ============ TIENDA DE DIAMANTES (USD) ============ */
.diamond-shop-modal { width: min(560px, 100%); }
.diamond-shop-sub { color: var(--muted); text-align: center; margin-bottom: 0.8rem; }
.diamond-shop-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--turquoise);
  margin: 1rem 0 0.7rem;
}
.converter-box {
  background: rgba(5, 6, 15, 0.6);
  border: 1px solid rgba(0, 229, 200, 0.25);
  padding: 0.9rem;
  border-radius: 10px;
  text-align: center;
}
.converter-box label { display: block; color: var(--muted); font-weight: 600; margin-bottom: 0.4rem; }
.converter-box input {
  padding: 0.6rem;
  font-size: 1rem;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 200, 0.3);
  background: #0a0e20;
  color: #fff;
  text-align: center;
  outline: none;
}
.converter-box input:focus { border-color: var(--turquoise); box-shadow: 0 0 12px rgba(0, 229, 200, 0.4); }
.conversion-result { margin: 0.6rem 0; font-size: 1.05rem; color: var(--orange); font-weight: 700; }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.package-card {
  background: var(--bg-panel);
  border: 1px solid rgba(230, 241, 255, 0.12);
  padding: 0.9rem;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.package-card h4 { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; color: #fff; }
.package-diamonds { color: var(--turquoise); font-weight: 700; }
.package-card .price { display: block; color: var(--green); font-weight: 700; }
.package-card .package-btn { width: 100%; }
.featured-dragon {
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.12), var(--bg-panel));
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.35);
}
.badge-epic {
  background: #ffd700;
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ============ BARRA DE NAVEGACIÓN INFERIOR (TikTok) ============ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  background: var(--bg-panel);
  border-top: 1px solid rgba(0, 229, 200, 0.2);
  backdrop-filter: blur(14px);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
}
.bottom-nav.hidden { display: none; }
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem 0;
  font-family: inherit;
  transition: color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn .nav-icon { font-size: 1.35rem; line-height: 1; }
.nav-btn .nav-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-btn.active { color: var(--turquoise); text-shadow: 0 0 10px rgba(0, 229, 200, 0.6); }

/* ============ SECCIÓN SOCIAL ============ */
.social-card {
  width: min(560px, 100%);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 42%),
    var(--bg-panel);
  border: 1px solid rgba(0, 229, 200, 0.22);
  border-radius: 20px;
  padding: 1.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 229, 200, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100dvh - 5.5rem);
  margin: auto 0;
  position: relative;
  overflow: hidden;
}
.social-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--turquoise), var(--red), var(--orange), transparent);
  opacity: 0.9;
}

.post-composer { display: flex; flex-direction: column; gap: 0.5rem; }
.post-composer input { width: 100%; border-radius: 12px; }
.post-feed {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.post-empty { color: var(--muted); text-align: center; padding: 1.5rem; font-style: italic; }

.post-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(0, 229, 200, 0.16);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  border-color: rgba(0, 229, 200, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 18px rgba(0, 229, 200, 0.12);
}

.post-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.post-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  color: #fff;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 229, 200, 0.35);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-name { font-weight: 800; letter-spacing: 0.02em; }
.post-time { font-size: 0.7rem; color: var(--muted); margin-left: auto; }
.post-text { color: var(--text); margin-bottom: 0.6rem; word-break: break-word; line-height: 1.4; }

.post-actions { display: flex; gap: 0.5rem; }
.post-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 200, 0.15);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.35rem;
  font-family: inherit;
  transition: all 0.15s ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.post-action:hover { border-color: var(--turquoise); color: #fff; }
.post-action.liked { color: var(--red); border-color: var(--red); background: rgba(255, 45, 85, 0.12); }
.post-action:active { transform: scale(0.94); }

/* Perfil */
.profile-card { align-items: center; text-align: center; }
.profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, var(--turquoise), var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 0 26px rgba(0, 229, 200, 0.45);
}
.profile-name {
  font-size: 1.4rem; font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, var(--turquoise), var(--red));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.profile-stats { display: flex; gap: 0.8rem; }
.profile-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 200, 0.14);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  min-width: 84px;
}
.profile-stat strong { font-size: 1.3rem; font-family: 'Orbitron', sans-serif; color: var(--turquoise); }
.profile-stat span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============ DIFICULTAD (MODO SOLITARIO) ============ */
.difficulty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.diff-label { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.diff-btn {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 229, 200, 0.25);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.diff-btn.active {
  color: #fff;
  background: rgba(0, 229, 200, 0.18);
  border-color: var(--turquoise);
  box-shadow: 0 0 10px rgba(0, 229, 200, 0.35);
}

/* ============ PORTADA (HERO + AUTENTICACIÓN) ============ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.35) 0%, rgba(5, 6, 15, 0.85) 100%);
  padding: 0.5rem;
}
.hero-title { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }

.auth-buttons { display: flex; gap: 0.5rem; }
.auth-buttons .btn { flex: 1; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(230, 241, 255, 0.15);
}
.btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-color: #000;
  color: #fff;
  background: #000;
  box-shadow: none;
}
.btn-apple:hover { background: #222; border-color: #222; }
.apple-logo { font-size: 1rem; }
.auth-email { color: var(--muted); font-size: 0.8rem; }
.main-menu { display: flex; flex-direction: column; gap: 0.9rem; }
.main-menu.hidden { display: none; }

/* Botones sociales (Facebook / Apple) — full width y con icono SVG */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  font-weight: 700;
}
.btn-social svg { flex-shrink: 0; }

/* Logo ZYNIX en la pantalla de bienvenida */
.zy-logo {
  width: clamp(76px, 20vw, 116px);
  height: auto;
  display: block;
  margin: 0 auto 0.2rem;
  filter: drop-shadow(0 0 26px rgba(0, 229, 200, 0.35));
}

/* ============ SOCIAL: MULTIMEDIA, COMENTARIOS Y LIVES ============ */
.composer-actions { display: flex; gap: 0.5rem; }
.composer-actions .btn { flex: 1; }
.hidden-file { display: none; }
.post-preview { position: relative; display: flex; flex-direction: column; gap: 0.4rem; }
.post-preview img, .post-preview video { max-width: 100%; max-height: 200px; border-radius: 10px; object-fit: contain; background: #000; }
.preview-remove {
  align-self: flex-end;
  background: rgba(255, 45, 85, 0.15);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}
.post-media {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.6rem;
  background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.post-comments { margin-top: 0.5rem; }
.comment-item { display: flex; gap: 0.4rem; font-size: 0.85rem; margin-bottom: 0.3rem; }
.comment-item .c-name { font-weight: 700; color: var(--turquoise); flex-shrink: 0; }
.comment-item .c-text { color: var(--text); word-break: break-word; }
.comment-input-row { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.comment-input-row input { flex: 1; min-width: 0; }

.lives-section { display: flex; flex-direction: column; gap: 0.5rem; }
.lives-header { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.lives-list { display: flex; flex-direction: column; gap: 0.4rem; }
.live-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 45, 85, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.14), rgba(255, 138, 0, 0.06));
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.15);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.live-item:hover { border-color: var(--red); transform: translateY(-1px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.2s infinite; flex-shrink: 0; }
.live-info { flex: 1; min-width: 0; }
.live-code {
  font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--turquoise), var(--orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.live-names { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lives-empty { color: var(--muted); font-size: 0.85rem; }

/* ============ FONDO DE DRAGONES + TÍTULO ZYNIX ============ */
.bg-dragon {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('assets/images/dragon-hero.jpg');
  background-size: cover;
  background-position: center;
}
.bg-dragon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.8) 0%, rgba(5, 6, 15, 0.92) 100%);
}
.zy-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  letter-spacing: 0.22em;
  text-align: center;
  padding-left: 0.22em;
  background: linear-gradient(90deg, var(--turquoise), var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 229, 200, 0.45));
}
.composer-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.composer-actions .btn { flex: 1 1 auto; white-space: nowrap; }

/* ============ INSTAGRAM STYLE (ZYNIX) ============ */
#screen-social.active, #screen-profile.active {
  padding: 0;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}
.ig-scroll {
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
.ig-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(5, 6, 15, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ig-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--turquoise), var(--red), var(--orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.ig-stories {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ig-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ig-story-ring {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--red), var(--orange));
  padding: 2px;
  box-shadow: 0 0 14px rgba(0, 229, 200, 0.3);
}
.ig-story-ring > span {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0c1024;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-family: 'Orbitron', sans-serif; color: #fff; font-size: 0.85rem;
}
.ig-story-label { font-size: 0.66rem; color: var(--muted); }

.ig-composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(5, 6, 15, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ig-composer input { width: 100%; border-radius: 999px; }
.ig-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 229, 200, 0.2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ig-mini-btn.ig-primary {
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  color: #fff;
  border: none;
}
.ig-mini-btn:active { transform: scale(0.94); }
.composer-actions .ig-mini-btn { flex: 1 1 auto; }

.ig-posts {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 0.6rem 0 1.2rem;
}
.post-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.post-card:hover { box-shadow: none; border-color: transparent; }
.post-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1rem 0.6rem; margin: 0; }
.post-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  color: #fff; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 229, 200, 0.35);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-name { font-weight: 800; font-size: 0.92rem; }
.post-time { font-size: 0.7rem; color: var(--muted); margin-left: auto; }
.post-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  background: #000;
}
.post-actions { display: flex; gap: 1.1rem; padding: 0.6rem 1rem 0.1rem; }
.post-action {
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 1.25rem; padding: 0;
  display: flex; align-items: center; gap: 0.3rem;
  font-family: inherit; line-height: 1;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.post-action span { font-size: 0.85rem; }
.post-action.liked { color: var(--red); }
.post-action:active { transform: scale(0.9); }
.post-text { padding: 0 1rem; margin: 0.25rem 0 0.6rem; }
.post-comments { padding: 0 1rem; }

/* Perfil Instagram */
.ig-profile-head {
  display: flex;
  gap: 1.1rem;
  padding: 1rem 1rem 0.6rem;
  align-items: center;
}
.ig-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, var(--turquoise), var(--red), var(--orange));
  color: #fff; flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0, 229, 200, 0.4);
}
.ig-profile-meta { flex: 1; min-width: 0; }
.ig-username { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.1rem; margin-bottom: 0.7rem; }
.ig-stats { display: flex; gap: 1.2rem; }
.ig-stat { display: flex; flex-direction: column; align-items: center; }
.ig-stat strong { font-size: 1.15rem; font-family: 'Orbitron', sans-serif; color: var(--text); }
.ig-stat span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.ig-bio { padding: 0.2rem 1rem 1rem; color: var(--text); font-size: 0.88rem; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding-bottom: 2.5rem;
}
.ig-grid-cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.ig-grid-cell img, .ig-grid-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-grid-text { padding: 0.5rem; font-size: 0.68rem; color: var(--text); word-break: break-word; overflow: hidden; }
.ig-empty { color: var(--muted); text-align: center; padding: 2rem; font-style: italic; grid-column: 1 / -1; }

/* Botón seguir (Instagram) */
.ig-follow-btn {
  flex-shrink: 0;
  margin-left: auto;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ig-follow-btn.following {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(0, 229, 200, 0.3);
}
.ig-follow-btn:active { transform: scale(0.94); }

/* Sugerencias de usuarios */
.ig-suggestions {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ig-suggest-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.ig-suggest-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
}
.ig-suggest-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  color: #fff; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 229, 200, 0.3);
}
.ig-suggest-info { flex: 1; min-width: 0; }
.ig-suggest-name { font-weight: 800; font-size: 0.9rem; }
.ig-suggest-sub { font-size: 0.74rem; color: var(--muted); }
.ig-suggest-row .ig-follow-btn { margin-left: 0; }

/* ============ RESPONSIVE ============ */
/* Móvil vertical (portrait): una columna con pestañas Vídeo/Chat */
@media (max-width: 900px) and (orientation: portrait) {
  .game-layout { grid-template-columns: 1fr; gap: 0.9rem; }
  #screen-game.active {
    padding: calc(0.9rem + env(safe-area-inset-top)) 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
  }
  .side-tabs { display: flex; }
  .side-panel > .panel { display: none; }
  .side-panel > .panel.active-panel { display: flex; }
  .chat-messages { height: min(40vh, 260px); }
  .game-header { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .game-header .badge, .game-header .btn { flex: 0 0 auto; }
}

/* Móvil horizontal (landscape): tablero + panel lado a lado, compacto */
@media (max-height: 520px) and (orientation: landscape) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 0.7rem; align-items: start; }
  #screen-game.active { padding: 0.6rem; }
  .side-tabs { display: none; }
  .side-panel > .panel { display: flex; }
  .side-panel { gap: 0.6rem; }
  .game-main { gap: 0.5rem; }
  .board, .scoreboard { width: min(100%, calc(100dvh - 190px)); }
  .score-avatar { width: 30px; height: 30px; font-size: 0.9rem; }
  .score-name { max-width: 70px; font-size: 0.78rem; }
  .score-value { font-size: 1.1rem; }
  .turn-indicator { font-size: 0.72rem; padding: 0.3rem 0.8rem; }
  .game-header { gap: 0.4rem; }
  .game-header .badge { font-size: 0.6rem; padding: 0.25rem 0.5rem; }
  .chat-messages { height: 130px; }
  .home-card { padding: 1rem 1.1rem; }
}

/* ============ MEJORAS TÁCTILES Y SCROLL ============ */
.screen { overflow: hidden; }
.home-card, .lobby-card { margin: auto 0; }
.btn:active { transform: scale(0.96); }
.cell:active { transform: scale(0.94); }

@media (max-width: 480px) {
  .home-card, .lobby-card { padding: 0.9rem 0.8rem; gap: 0.6rem; }
  .subtitle { display: none; }
  .title { font-size: clamp(1.5rem, 7.5vw, 2.3rem); letter-spacing: 0.04em; }
  .profile-guest { gap: 0.45rem; }
  .shop-bar { gap: 0.3rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .shop-bar > * { flex: 0 0 auto; }
  .shop-bar .diamond-balance, .shop-bar .cash-balance { font-size: 0.78rem; padding: 0.28rem 0.5rem; }
  .shop-bar .btn { padding: 0.35rem 0.55rem; font-size: 0.78rem; min-height: 34px; }
  .menu-actions { gap: 0.5rem; }
  .footnote { display: none; }
  .score-name { max-width: 70px; font-size: 0.85rem; }
  .score-value { font-size: 1.3rem; }
  .score-avatar { width: 34px; height: 34px; font-size: 1.1rem; }
  .game-header .badge { font-size: 0.68rem; padding: 0.35rem 0.65rem; }
  .turn-indicator { font-size: 0.82rem; padding: 0.45rem 1rem; }
  .btn { min-height: 46px; }
  .btn.small { min-height: 40px; }
  .icon-btn { min-width: 46px; min-height: 46px; }
  input[type="text"] { min-height: 46px; font-size: 16px; }
  .chat-input-row .btn { flex-shrink: 0; }
  .overlay-card { padding: 1.5rem 1.2rem; }
  .overlay-actions .btn { min-height: 46px; }
}

/* Pantallas muy pequeñas (≤320px): tablero y encabezado aún más compactos */
@media (max-width: 320px) {
  .board { width: min(100%, 300px); }
  .scoreboard { width: min(100%, 300px); }
  .game-header { gap: 0.3rem; }
  .game-header .badge { font-size: 0.56rem; padding: 0.2rem 0.4rem; letter-spacing: 0.08em; }
  .game-header .btn.small { padding: 0.32rem 0.55rem; font-size: 0.72rem; }
  .score-avatar { width: 30px; height: 30px; font-size: 0.9rem; }
  .score-name { max-width: 56px; font-size: 0.78rem; }
  .score-value { font-size: 1.15rem; }
  .score-gifts { font-size: 0.62rem; }
  .turn-indicator { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
  .gift-btn { width: 42px; height: 46px; }
  .gift-btn-icon { font-size: 1rem; }
  .gift-btn-price { font-size: 0.55rem; }
  .tile { width: 68px; height: 51px; }
  .home-card, .lobby-card { padding: 1.1rem 0.85rem; }
}

/* ============ MENÚ HAMBURGUESA ============ */
.hamburger-btn {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: calc(0.9rem + env(safe-area-inset-right));
  z-index: 80;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(5, 6, 15, 0.55);
  border: 1px solid rgba(0, 229, 200, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hamburger-btn.hidden { display: none; }
.hamburger-btn span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--turquoise), var(--red));
}
.hamburger-btn:active { transform: scale(0.92); }

.hamburger-menu { position: fixed; inset: 0; z-index: 90; }
.hamburger-menu.hidden { display: none; }
.hm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); }
.hm-panel {
  position: absolute;
  top: calc(3.6rem + env(safe-area-inset-top));
  right: calc(0.9rem + env(safe-area-inset-right));
  width: min(300px, calc(100vw - 2rem));
  background: linear-gradient(160deg, rgba(20, 26, 55, 0.97), rgba(8, 10, 24, 0.98));
  border: 1px solid rgba(0, 229, 200, 0.22);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: hmIn 0.18s ease;
}
@keyframes hmIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hm-account { display: flex; align-items: center; gap: 0.7rem; }
.hm-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  color: #fff; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 229, 200, 0.4);
}
.hm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hm-info { min-width: 0; }
.hm-name { font-weight: 800; }
.hm-email { font-size: 0.72rem; color: var(--muted); word-break: break-all; }
.hm-balance { font-size: 0.82rem; color: var(--text); padding: 0.4rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hm-item {
  background: none; border: none; color: var(--text);
  text-align: left; padding: 0.65rem 0.5rem; border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hm-item:hover { background: rgba(0, 229, 200, 0.08); }
.hm-item.hm-danger { color: var(--red); }
.hm-item.hm-danger:hover { background: rgba(255, 45, 85, 0.1); }

/* ============ VISOR DE HISTORIAS ============ */
.story-viewer {
  position: fixed; inset: 0; z-index: 95;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.story-viewer.hidden { display: none; }
.story-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.story-media img, .story-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-close {
  position: absolute; top: calc(1rem + env(safe-area-inset-top)); right: 1rem; z-index: 2;
  background: rgba(255, 255, 255, 0.14); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.story-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255, 255, 255, 0.14); border: none; color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.story-prev { left: 0.75rem; }
.story-next { right: 0.75rem; }
.story-caption {
  position: absolute; bottom: calc(2rem + env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; color: #fff; font-weight: 700; font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); padding: 0 1rem;
}

/* ============ AVATAR / HISTORIAS (anillos) ============ */
.ig-avatar { position: relative; cursor: pointer; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ig-avatar::after {
  content: '📷';
  position: absolute; right: -3px; bottom: -3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  border: 2px solid #0a0e20;
}
.ig-story-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ig-story-add > span { color: var(--turquoise); font-size: 1.7rem; font-weight: 400; }
.ig-story-add { background: linear-gradient(135deg, var(--turquoise), var(--orange)); }
.ig-story-live { background: linear-gradient(135deg, #ff2d55, #ff8a00); }

/* ============ MÚSICA ============ */
.music-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 229, 200, 0.1);
  border: 1px solid rgba(0, 229, 200, 0.3);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text);
}
.music-chip.hidden { display: none; }
.chip-remove { background: none; border: none; color: var(--red); cursor: pointer; font-weight: 700; }

.music-picker { position: fixed; inset: 0; z-index: 96; }
.music-picker.hidden { display: none; }
.mp-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }
.mp-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(520px, 100%);
  max-height: 80dvh;
  background: linear-gradient(160deg, rgba(20, 26, 55, 0.98), rgba(8, 10, 24, 0.99));
  border: 1px solid rgba(0, 229, 200, 0.22);
  border-bottom: none; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  padding: 0.8rem 1rem 1rem;
}
.mp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.mp-title { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 0.05em; }
.mp-close { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.mp-panel input { width: 100%; border-radius: 12px; }
.mp-results { overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; min-height: 0; }
.mp-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem; border-radius: 12px; cursor: pointer; transition: background 0.12s; }
.mp-row:hover { background: rgba(0, 229, 200, 0.08); }
.mp-art { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-info { flex: 1; min-width: 0; }
.mp-track { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-add { background: linear-gradient(135deg, var(--turquoise), var(--red)); color: #fff; border: none; border-radius: 999px; padding: 0.35rem 0.8rem; font-family: inherit; font-weight: 700; font-size: 0.78rem; cursor: pointer; }
.mp-empty { color: var(--muted); text-align: center; padding: 1.2rem; font-size: 0.88rem; }

/* Compositor de historia */
.story-composer { position: fixed; inset: 0; z-index: 94; background: #000; display: flex; flex-direction: column; }
.story-composer.hidden { display: none; }
.sc-top { display: flex; align-items: center; gap: 0.8rem; padding: calc(0.8rem + env(safe-area-inset-top)) 1rem 0.5rem; }
.sc-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.sc-title { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 0.05em; color: #fff; }
.sc-preview { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc-preview img, .sc-preview video { max-width: 100%; max-height: 100%; object-fit: contain; }
.sc-placeholder { color: rgba(255, 255, 255, 0.6); font-size: 1rem; }
.sc-placeholder.hidden { display: none; }
.sc-controls { display: flex; gap: 0.5rem; padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom)); }
.sc-btn {
  flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(0, 229, 200, 0.3);
  color: #fff; border-radius: 999px; padding: 0.7rem; font-size: 1.15rem; cursor: pointer; font-family: inherit;
}
.sc-btn.sc-publish { flex: 1.6; background: linear-gradient(135deg, var(--turquoise), var(--red)); border: none; font-weight: 800; font-size: 0.95rem; }

/* Sticker de música (5 estilos) */
.music-sticker {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 0.55rem;
  color: #fff; z-index: 3;
}
.ms-art { overflow: hidden; background: #222; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.ms-art img { width: 100%; height: 100%; object-fit: cover; }
.ms-meta { min-width: 0; }
.ms-title { font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ms-artist { font-size: 0.68rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }

/* Cuadrado grande */
.music-sticker.ms-large {
  flex-direction: column; align-items: flex-start; gap: 0.4rem;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 0.5rem;
}
.music-sticker.ms-large .ms-art { width: 96px; height: 96px; border-radius: 10px; }
.music-sticker.ms-large .ms-title { font-size: 0.85rem; font-weight: 800; }

/* Cuadrado pequeño */
.music-sticker.ms-small {
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px);
  border-radius: 10px; padding: 0.3rem;
}
.music-sticker.ms-small .ms-art { width: 40px; height: 40px; border-radius: 8px; }

/* Fondo en blanco */
.music-sticker.ms-white {
  background: #fff; color: #111;
  border-radius: 12px; padding: 0.5rem 0.65rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.music-sticker.ms-white .ms-art { width: 44px; height: 44px; border-radius: 8px; }
.music-sticker.ms-white .ms-title { color: #111; }
.music-sticker.ms-white .ms-artist { color: #555; opacity: 1; }

/* Fondo en negro */
.music-sticker.ms-black {
  background: #000; color: #fff;
  border-radius: 12px; padding: 0.5rem 0.65rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.music-sticker.ms-black .ms-art { width: 44px; height: 44px; border-radius: 8px; }
.music-sticker.ms-black .ms-title { color: #fff; }
.music-sticker.ms-black .ms-artist { color: rgba(255, 255, 255, 0.7); opacity: 1; }

/* Disco de vinilo girando */
.music-sticker.ms-vinyl { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.ms-vinyl-disc {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 0%, #000 18%, #181818 20%, #000 22%, #161616 24%, #000 26%, #171717 28%, #000 30%, #151515 32%, #000 34%, #161616 36%, #000 38%, #151515 40%, #000 42%, #161616 44%, #000 46%, #151515 48%, #000 50%, #161616 52%, #000 54%, #151515 56%, #000 58%, #161616 60%, #000 62%, #151515 64%, #000 66%, #161616 68%, #000 70%, #151515 72%, #000 74%, #161616 76%, #000 78%, #151515 80%, #000 82%, #161616 84%, #000 86%, #151515 88%, #000 90%, #161616 92%, #000 94%, #151515 96%, #000 98%, #161616 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  animation: spin 4s linear infinite;
}
.ms-vinyl-center {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; background: #222;
  display: flex; align-items: center; justify-content: center;
}
.ms-vinyl-center img { width: 100%; height: 100%; object-fit: cover; }
.music-sticker.ms-vinyl .ms-title { font-size: 0.8rem; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.music-sticker.ms-vinyl .ms-artist { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }

/* La carátula gira también en el visor de historia */
.music-sticker.ms-story .ms-art { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Panel de personalización de música en el compositor */
.sc-music-panel {
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sc-music-panel.hidden { display: none; }
.sc-music-styles { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.sc-style-btn {
  flex: 1; min-width: 56px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; border-radius: 8px; padding: 0.45rem 0.2rem;
  font-size: 0.7rem; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.sc-style-btn.active { background: rgba(0, 229, 200, 0.28); border-color: var(--turquoise); }
.sc-music-timeline { display: flex; flex-direction: column; gap: 0.3rem; }
.sc-timeline-label { font-size: 0.75rem; color: #fff; }
.sc-music-timeline input[type="range"] { width: 100%; accent-color: var(--turquoise); }
.sc-timeline-ticks { display: flex; justify-content: space-between; font-size: 0.6rem; color: rgba(255, 255, 255, 0.6); }

/* Barra de música en el post */
.post-music {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 1rem 0.7rem; padding: 0.5rem 0.7rem;
  background: rgba(0, 229, 200, 0.08);
  border: 1px solid rgba(0, 229, 200, 0.22);
  border-radius: 12px;
}
.pm-play {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--turquoise), var(--red));
  border: none; color: #fff; font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pm-art { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: #111; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pm-art img { width: 100%; height: 100%; object-fit: cover; }
.pm-meta { flex: 1; min-width: 0; }
.pm-title { font-weight: 700; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-artist { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ RED SOCIAL: OCULTAR RASTROS DE JUEGO ============ */
/* ZYNIX ya no es un juego: se ocultan el tablero, marcador y badges de juego.
   La pantalla "En Vivo" queda como transmisión (vídeo + chat) únicamente. */
.scoreboard,
.turn-indicator,
.spectator-banner,
.board,
.gifts-bar,
.game-controls,
#badgeRoom,
#badgeRound,
#badgeGames,
#badgeSpectators,
#badgeDiamonds,
#badgeCash,
#btnShopGame {
  display: none !important;
}


