/* LIZZYLANDIA · en vivo: luz verde de Lizzy, chat, videollamada, asientos, consola de Lizzy,
   videos (jacuzzi, cama, cine) y el Museo. Mismos tokens que lizzy.css. */

/* ---------- luz verde «Lizzy en línea» ---------- */
.pill.live { color: #c9ffe3; border-color: rgba(127, 227, 180, 0.75); background: linear-gradient(180deg, rgba(22, 64, 46, 0.88), rgba(14, 40, 30, 0.9)); }
.pill.live .dot { width: 11px; height: 11px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.7), 0 0 10px #3dff9a; animation: live-pulse 1.6s ease-out infinite; flex: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.65), 0 0 10px #3dff9a; } 70% { box-shadow: 0 0 0 10px rgba(61, 255, 154, 0), 0 0 10px #3dff9a; } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0), 0 0 10px #3dff9a; } }
.name-tag.online { background: linear-gradient(180deg, #2fd683, #12985a); color: #fff; box-shadow: 0 0 16px rgba(61, 255, 154, 0.75); }
.name-tag.lizzy.online { background: linear-gradient(180deg, #ff9cc9, #ff5c9d); box-shadow: 0 0 0 2px #3dff9a, 0 0 18px rgba(61, 255, 154, 0.8); }

/* ---------- botones nuevos ---------- */
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 0 10px rgba(255, 92, 157, 0.7); }
.badge[hidden] { display: none; }
.btn.call { border: 0; color: #fff; background: linear-gradient(180deg, #47e09a, #14a865); box-shadow: 0 8px 22px rgba(20, 168, 101, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); animation: call-glow 2s ease-in-out infinite; }
@keyframes call-glow { 50% { box-shadow: 0 8px 30px rgba(61, 255, 154, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); } }
.btn.mp { border: 0; color: #fff; background: linear-gradient(180deg, #33b5ff, #009ee3); box-shadow: 0 8px 22px rgba(0, 158, 227, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.mp:hover { background: linear-gradient(180deg, #4cc0ff, #08a8ef); }
.btn.danger { border: 0; color: #fff; background: linear-gradient(180deg, #ff7a8f, #e0334f); }
.btn.icon.off { background: rgba(224, 51, 79, 0.75); }
.gift.soon { opacity: 0.6; }
.gift.soon::after { content: 'Pronto'; position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: var(--muted); }
.link { color: var(--pink-2); }
.note.warn { border-left-color: var(--warn); background: rgba(255, 211, 110, 0.08); }
.bullets { margin: 8px 0; padding-left: 20px; color: var(--muted); line-height: 1.5; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }

/* ---------- sentado o acostado ---------- */
.seat-bar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b)); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: calc(100% - 24px);
}
.seat-bar[hidden] { display: none; }

/* ---------- chat ---------- */
.chat-list { display: flex; flex-direction: column; gap: 8px; min-height: 180px; max-height: min(46vh, 420px); overflow: auto; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-soft); margin: 10px 0; }
.chat-msg { max-width: 82%; padding: 8px 12px; border-radius: 16px; line-height: 1.35; word-wrap: break-word; }
.chat-msg p { margin: 0; }
.chat-msg small { display: block; margin-top: 3px; font-size: 10px; opacity: 0.65; text-align: right; }
.chat-msg.mine { align-self: flex-end; background: linear-gradient(180deg, #ffd0e4, #ff9cc9); color: #3a0f24; border-bottom-right-radius: 4px; }
.chat-msg.theirs { align-self: flex-start; background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.32); }
.chat-form input:focus { border-color: var(--gold); outline: none; }
.list .chat-row { width: 100%; text-align: left; color: inherit; cursor: pointer; }
.list .chat-row .what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }

/* ---------- videollamada ---------- */
.call-overlay {
  position: absolute; z-index: 20; right: calc(12px + var(--safe-r)); top: calc(60px + var(--safe-t)); width: min(380px, calc(100% - 24px)); aspect-ratio: 3 / 4;
  border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #5a2448, #12090f); border: 2px solid var(--gold); box-shadow: var(--shadow), 0 0 30px rgba(255, 92, 157, 0.35);
  animation: fade 0.25s ease-out;
}
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.call-poster { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; pointer-events: none; animation: beat 1.4s ease-in-out infinite; }
.call-overlay.has-remote .call-poster { display: none; }
.call-local { position: absolute; right: 10px; bottom: 74px; width: 30%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.7); background: #000; transform: scaleX(-1); }
.call-local[hidden] { display: none; }
.call-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent); font-weight: 700; }
.call-timer { font-variant-numeric: tabular-nums; color: var(--gold-2); }
.call-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; padding: 12px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent); }
.call-unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.call-unmute[hidden] { display: none; }
.call-ring {
  position: absolute; z-index: 25; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); width: min(460px, calc(100% - 24px));
  display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(22, 64, 46, 0.97), rgba(14, 40, 30, 0.97)); border: 1px solid rgba(127, 227, 180, 0.8); box-shadow: var(--shadow), 0 0 26px rgba(61, 255, 154, 0.35);
  animation: ring 0.9s ease-in-out infinite alternate;
}
.call-ring b { display: block; font-size: 16px; }
.call-ring small { color: #bfe9d4; }
@keyframes ring { from { transform: translateX(-50%) rotate(-0.6deg); } to { transform: translateX(-50%) rotate(0.6deg); } }
@media (max-width: 640px) {
  .call-overlay { left: 12px; right: 12px; width: auto; top: calc(56px + var(--safe-t)); aspect-ratio: auto; height: min(70vh, 560px); }
}

/* ---------- consola de Lizzy ---------- */
.wardrobe .look.pick { cursor: pointer; color: inherit; font: inherit; }
.wardrobe .look.pick:hover { border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.06); font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.1); }

/* ---------- videos (jacuzzi, cama y cine) ---------- */
.media-stage { position: relative; display: grid; place-items: center; min-height: 220px; border-radius: 16px; overflow: hidden; border: 2px solid var(--gold); background: #000; }
.media-stage video, .trailer-player video { display: block; width: 100%; max-height: 68vh; background: #000; }
.media-title { font-family: var(--serif); font-style: italic; color: var(--pink-2); text-align: center; margin: 10px 0 0; }
.cinema-screen.playing { display: block; aspect-ratio: auto; }
.trailer-player { display: grid; gap: 8px; justify-items: center; padding-bottom: 10px; }
.trailer-player b { font-family: var(--serif); font-style: italic; color: var(--pink-2); }
.poster.trailer { position: relative; display: grid; place-items: center; min-height: 110px; padding: 0; cursor: pointer; color: inherit; font: inherit; background: radial-gradient(circle at 50% 40%, #5a2448, #1b0d17); }
.poster.trailer .play { font-size: 34px; color: var(--gold-2); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.poster.trailer div { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.45); color: var(--cream); }

/* ---------- Museo ---------- */
.museum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 6px 0 14px; }
.frame { position: relative; margin: 0; padding: 10px 10px 8px; border-radius: 6px; background: linear-gradient(180deg, #f6d896, #b8873a); box-shadow: inset 0 0 0 3px #7a5420, 0 10px 22px rgba(0, 0, 0, 0.45); display: grid; gap: 6px; justify-items: center; cursor: default; }
.frame[tabindex] { cursor: zoom-in; }
.frame img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #1b0d17; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35); -webkit-user-drag: none; user-select: none; }
.frame figcaption { font-family: var(--serif); font-style: italic; font-size: 13px; color: #3a2408; text-align: center; }
.frame.locked img { filter: saturate(0.8) brightness(0.8); }
.frame .lock { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 30px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.frame .tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--hot); color: #fff; }
.museum-viewer { position: relative; margin-bottom: 12px; border-radius: 10px; overflow: hidden; border: 3px solid var(--gold); background: #000; }
.museum-viewer[hidden] { display: none; }
.museum-viewer img { display: block; width: 100%; max-height: 70vh; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.museum-viewer .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(0, 0, 0, 0.6); }

/* ---------- consola de videos y fotos ---------- */
.media-admin { display: grid; gap: 10px; }
.media-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft); }
.media-row .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); font-size: 28px; }
.media-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-row .info { display: grid; gap: 4px; min-width: 0; }
.media-row .info small { color: var(--muted); }
.media-row .info .progress-track { margin: 4px 0; height: 6px; }
.media-row .info .progress-track[hidden] { display: none; }
.media-row .fields { display: grid; gap: 6px; }
.media-row .fields input[type='text'], .media-row .fields input[type='url'] { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.32); }
.media-row .fields .check { margin: 2px 0; font-size: 14px; }
.media-row .actions { display: grid; gap: 6px; }
@media (max-width: 640px) {
  .media-row { grid-template-columns: 52px 1fr; }
  .media-row .thumb { width: 52px; height: 52px; }
  .media-row .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .museum-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- en el auto de Lizzy ---------- */
.car-bar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center;
  padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: calc(100% - 24px);
}
.car-bar[hidden], .hud-bottom[hidden] { display: none; }
.car-bar .car-text { font-weight: 700; color: var(--pink-2); }

/* ---------- logo y amigas ---------- */
.brand-logo { display: block; width: min(560px, 92vw); height: auto; filter: drop-shadow(0 10px 30px rgba(255, 92, 157, 0.45)); animation: logo-in 0.8s ease-out; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
.brand-text[hidden] { display: none; }
.name-tag.friend { background: linear-gradient(180deg, #c9a6ff, #9b6bff); color: #fff; box-shadow: 0 0 12px rgba(155, 107, 255, 0.6); }

/* ---------- columna de abajo del HUD (aviso, asiento/auto y botones apilados) ---------- */
.hud-dock {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px); pointer-events: none;
}
.hud-dock > * { pointer-events: auto; }
.hud-dock .prompt, .hud-dock .seat-bar, .hud-dock .car-bar, .hud-dock .hud-bottom { position: static; transform: none; left: auto; bottom: auto; max-width: 100%; }

/* ---------- marco de la publicidad (otro origen) ---------- */
.ad-host { position: absolute; inset: 0; z-index: 40; background: #000; }
.ad-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ad-close { position: absolute; z-index: 1; right: calc(12px + var(--safe-r)); top: calc(12px + var(--safe-t)); }

/* ---------- cofre de oro ---------- */
.chest-art { position: relative; width: min(300px, 82vw); height: 200px; margin: 4px auto 14px; }
.chest-box { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 190px; height: 150px; }
.chest-box .lid {
  position: absolute; left: -4px; right: -4px; top: 0; height: 58px; border-radius: 70px 70px 10px 10px / 46px 46px 10px 10px;
  background: linear-gradient(180deg, #fff1b8, #e3b763 45%, #a8742a); box-shadow: inset 0 -5px 0 #7a5420, inset 0 3px 0 rgba(255, 255, 255, 0.6);
  transform-origin: 20% 100%; transition: transform 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.chest-box .body {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-radius: 8px 8px 14px 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #f6d896, #c99a45 60%, #8f6224); box-shadow: inset 0 0 0 4px #7a5420, 0 16px 30px rgba(0, 0, 0, 0.45);
}
.chest-box .heart { font-size: 30px; filter: drop-shadow(0 2px 6px rgba(255, 92, 157, 0.7)); }
.chest-art.free .lid { transform: translateY(-18px) rotate(-16deg); }
.chest-art.free .chest-box::after { content: '🪙✨🪙'; position: absolute; left: 50%; top: -8px; transform: translateX(-50%); font-size: 26px; animation: coins-up 1.4s ease-out infinite alternate; }
@keyframes coins-up { from { transform: translate(-50%, 6px); } to { transform: translate(-50%, -6px); } }
.chest-chains { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.chest-chains .chain {
  position: absolute; width: 270px; height: 11px; border-radius: 6px; max-width: 92%;
  background: repeating-linear-gradient(90deg, #4b4e57 0 9px, #d7dae1 9px 12px, #33353b 12px 15px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}
.chest-chains .chain.broken { display: none; }
.chest-chains .chain.current { animation: chain-glow 1.4s ease-in-out infinite; }
@keyframes chain-glow { 50% { box-shadow: 0 0 14px 4px rgba(246, 216, 150, 0.95); } }
.chest-locks { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.chest-locks .lock { font-size: 15px; opacity: 0.55; transition: transform 0.2s ease; }
.chest-locks .lock.open { opacity: 0.28; }
.chest-locks .lock.current { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 6px rgba(246, 216, 150, 0.9)); }
.chest-where { text-align: center; font-weight: 700; color: var(--pink-2); margin: 6px 0; }
.chest-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.chest-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.chest-dots i.on { background: var(--gold-2); box-shadow: 0 0 6px var(--gold); }
.chest-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; text-align: center; }
.chest-stats b { display: block; font-size: 18px; color: var(--gold-2); }
.chest-stats small { color: var(--muted); font-size: 12px; line-height: 1.25; display: block; }
.chest-status { min-height: 1.4em; text-align: center; font-weight: 700; margin: 6px 0 10px; }
.chest-how { margin-top: 14px; color: var(--muted); }
.chest-how summary { cursor: pointer; color: var(--pink-2); font-weight: 700; }

/* ---------- barra de abajo tipo pestañas (entra en un celular) ---------- */
.tab-btn { position: relative; }
.tab-btn .ico { font-size: 18px; line-height: 1; }
.tab-btn .badge { position: absolute; top: -6px; right: -6px; }
.gesture-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pill.live .place:empty { display: none; }
@media (max-width: 640px) {
  .hud-dock { gap: 8px; bottom: calc(8px + var(--safe-b)); max-width: calc(100% - 12px); }
  .hud-bottom { gap: 4px; flex-wrap: nowrap; padding: 4px; border-radius: 20px; background: rgba(32, 20, 30, 0.72); border: 1px solid var(--line-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hud-bottom .tab-btn { flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; min-height: 52px; padding: 5px 4px; border-radius: 14px; font-size: 11px; font-weight: 700; letter-spacing: -0.01em; }
  .hud-bottom .tab-btn .ico { font-size: 21px; }
  .hud-bottom .tab-btn .lbl { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hud-bottom .tab-btn.call { animation: none; }
  .prompt { padding: 8px 8px 8px 14px; gap: 8px; }
  .prompt b { font-size: 15px; }
  .prompt .keys { display: none; }
  .seat-bar, .car-bar { border-radius: 18px; padding: 6px; }
  .pill.live .place { display: none; }
  .toasts { top: calc(56px + var(--safe-t)); }
  .dialog-body { padding: 12px 12px 16px; }
  .dialog-head { padding: 12px 14px; }
}
@media (hover: none) { .prompt .keys { display: none; } }

/* ---------- joystick táctil: arriba de la barra de abajo ---------- */
.joystick { bottom: calc(96px + var(--safe-b)); z-index: 1; opacity: 0.92; }
@media (max-width: 640px) { .joystick { bottom: calc(150px + var(--safe-b)); width: 108px; height: 108px; } }
@media (max-height: 480px) and (orientation: landscape) { .joystick { bottom: calc(24px + var(--safe-b)); } }
button { touch-action: manipulation; }

/* ---------- celular con el teclado abierto: el panel queda en la parte visible ---------- */
.dialog-back { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100%); }

/* ---------- celular: barra de arriba en una sola línea y pestañas sin cortar ---------- */
@media (max-width: 640px) {
  .hud-top { flex-wrap: nowrap; gap: 6px; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); }
  .hud-top .pill { min-height: 34px; padding: 3px 9px; gap: 5px; font-size: 13px; }
  .hud-top .pill .ico { font-size: 15px; }
  .hud-top .pill .bar { display: none; }
  .hud-top .btn.icon { width: 38px; min-height: 38px; flex: none; }
  .hud-top .pill.live { min-width: 0; overflow: hidden; }
  .hud-top .pill.live span:not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hud-dock { max-width: calc(100% - 8px); }
  .hud-bottom { gap: 3px; padding: 3px; }
  .hud-bottom .tab-btn { padding: 5px 1px; font-size: 10.5px; letter-spacing: -0.02em; }
}
@media (max-width: 360px) {
  .hud-top .pill:not(.live):not(.coins) { display: none; }
}

/* ---------- capas: los paneles por encima del joystick y del HUD; el anuncio por encima de todo ---------- */
.dialog-back { z-index: 30; }
.call-ring { z-index: 35; }

/* etiquetas cortas de la barra en pantallas chicas */
.tab-btn .lbl-short { display: none; }
@media (max-width: 640px) {
  .tab-btn .lbl.has-short { display: none; }
  .tab-btn .lbl-short { display: inline; white-space: nowrap; }
}

/* ---------- volando en el unicornio ---------- */
.fly-bar { background: linear-gradient(90deg, rgba(255, 179, 209, 0.95), rgba(201, 166, 255, 0.95), rgba(140, 220, 255, 0.95)); border-color: #fff; }
.fly-bar .car-text { color: #3a0f24; }
.fly-btn { user-select: none; -webkit-user-select: none; touch-action: none; }

/* barra de abajo con vidrio también en la PC (se lee sobre el pasto claro y el mármol) */
.hud-bottom { padding: 6px; border-radius: 999px; background: rgba(32, 20, 30, 0.72); border: 1px solid var(--line-soft); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud-bottom .btn:not(.primary):not(.call) { background: rgba(255, 255, 255, 0.07); }
@media (max-width: 640px) { .hud-bottom { border-radius: 20px; } }
