/* =========================================================================
   KlipTok v34 · YOU CRUSH + DADO (assets/kt-v34-crush.css)   —  solo añade.
   · (v36) No toca el dado 3D de la Vista 3D.
   · Estilos del panel «You Crush» (dado grande + carta + 4 botones).
   ========================================================================= */

/* v36: el dado 3D de la Vista 3D queda EXACTAMENTE como en v32 (aquí ya no se le aplica ninguna regla). */

/* ---------- 2) lanzador flotante (dado), encima del botón de chat ---------- */
#kcrush-fab {
  position: fixed; z-index: 9001; inset-inline-end: 18px; bottom: 84px;
  width: 58px; height: 58px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: #fff;
  background: linear-gradient(135deg, #db2777, #9333ea);
  box-shadow: 0 16px 38px -12px rgba(219, 39, 119, .85);
}
#kcrush-fab:hover { transform: translateY(-1px) rotate(-8deg); filter: brightness(1.06); }
@media (max-width: 767px) { #kcrush-fab { width: 52px; height: 52px; font-size: 1.5rem; inset-inline-end: 14px; bottom: 78px; } }
@media (min-width: 768px) { body.kt-book-on #kcrush-fab { inset-inline-end: 92px; } }

/* ---------- 3) panel «You Crush» ---------- */
#kcrush { position: fixed; inset: 0; z-index: 10020; display: none; }
#kcrush.on { display: block; }
#kcrush * { box-sizing: border-box; }
#kcrush .kcrush-bg { position: absolute; inset: 0; background: rgba(2, 6, 23, .66); backdrop-filter: blur(6px); }
#kcrush .kcrush-shell {
  position: absolute; inset: 3vh 3vw; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ktc-bg, #fff); color: var(--ktc-fg, #0f172a);
  border: 1px solid var(--ktc-line, rgba(15,23,42,.12)); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
#kcrush .kcrush-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ktc-line, rgba(15,23,42,.1)); }
#kcrush .kcrush-top b { font-size: 15px; font-weight: 800; }
#kcrush .kcrush-sp { flex: 1; }
#kcrush .kcrush-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--ktc-soft, rgba(15,23,42,.06)); }
#kcrush .kcrush-seg button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; padding: 7px 12px; border-radius: 999px; }
#kcrush .kcrush-seg button.on { background: linear-gradient(135deg, #db2777, #9333ea); color: #fff; }
#kcrush .kcrush-x { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--ktc-line, rgba(15,23,42,.16)); background: var(--ktc-soft, rgba(15,23,42,.05)); color: inherit; cursor: pointer; font: inherit; font-weight: 700; }
#kcrush .kcrush-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }

/* Dado: usa el cubo del dado 3D (kt-v22.css + kt-v30.css, cargados en crush/index.html). Aquí solo el tamaño y el giro. Sin filter en la cadena 3D. */
#kcrush .kcrush-die { display: flex; flex-direction: column; align-items: center; gap: 16px; cursor: pointer; border: 0; background: transparent; color: inherit; font: inherit; padding: 10px; -webkit-tap-highlight-color: transparent; }
#kcrush .kcrush-arena { display: flex; align-items: center; justify-content: center; padding: 30px 0 52px; }
#kcrush .dc-stage { display: block; --s: clamp(130px, 46vw, 220px); }
#kcrush .dc-face { display: flex; }
#kcrush .dc-hop { transform: rotateX(-16deg) rotateY(-22deg); }
#kcrush .dc-cube { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
#kcrush .kcrush-die-t { font-weight: 800; font-size: 1.05rem; padding: .7rem 1.3rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #db2777, #9333ea); box-shadow: 0 14px 30px -12px rgba(219,39,119,.9); }
#kcrush .kcrush-die.rolling .dc-cube { transition: none; animation: kcrush-tumble .85s linear infinite; }
#kcrush .kcrush-die.rolling .dc-stage { animation: kcrush-hop .45s ease-in-out infinite; }
@keyframes kcrush-tumble { 0% { transform: rotateX(0) rotateY(0) rotateZ(0); } 100% { transform: rotateX(720deg) rotateY(540deg) rotateZ(360deg); } }
@keyframes kcrush-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { #kcrush .kcrush-die.rolling .dc-cube, #kcrush .kcrush-die.rolling .dc-stage { animation: none; } }

/* carta */
#kcrush .kcrush-card { width: min(560px, 94%); }
#kcrush .kcrush-p { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; border-radius: 20px; border: 1px solid var(--ktc-line, rgba(15,23,42,.12)); background: var(--ktc-panel, #f8fafc); }
#kcrush .kcrush-av { width: 92px; height: 92px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, #2563eb, #9333ea, #ec4899); }
#kcrush .kcrush-pname { font-size: 1.35rem; font-weight: 800; }
#kcrush .kcrush-pmeta { font-size: .82rem; color: var(--ktc-mut, #64748b); }
#kcrush .kcrush-pcats { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
#kcrush .kcrush-pcats span { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ktc-soft, rgba(15,23,42,.07)); color: var(--ktc-mut, #64748b); }
#kcrush .kcrush-pcats span.on { background: rgba(147,51,234,.16); color: #9333ea; }
#kcrush .kcrush-shared { font-size: .78rem; font-weight: 700; color: #9333ea; }
#kcrush .kcrush-v { width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--ktc-line, rgba(15,23,42,.12)); background: var(--ktc-panel, #f8fafc); }
#kcrush .kcrush-media { width: 100%; max-height: 52vh; display: block; background: #000; object-fit: contain; }
#kcrush .kcrush-audio { font-size: 4rem; text-align: center; padding: 40px; }
#kcrush .kcrush-vb { padding: 12px 14px; }
#kcrush .kcrush-vb b { font-size: 1rem; }

/* 4 botones de interacción */
#kcrush .kcrush-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ktc-line, rgba(15,23,42,.1)); }
#kcrush .kcrush-acts button { border-radius: 14px; padding: 13px 8px; border: 1px solid var(--ktc-line, rgba(15,23,42,.16)); background: var(--ktc-bg, #fff); color: inherit; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; transition: transform .12s; }
#kcrush .kcrush-acts button:hover { transform: translateY(-2px); }
#kcrush .kcrush-like { background: linear-gradient(135deg, #16a34a, #22c55e) !important; color: #fff !important; border-color: transparent !important; }
#kcrush .kcrush-no { background: linear-gradient(135deg, #dc2626, #ef4444) !important; color: #fff !important; border-color: transparent !important; }
#kcrush .kcrush-int { background: linear-gradient(135deg, #9333ea, #db2777) !important; color: #fff !important; border-color: transparent !important; }
#kcrush .kcrush-pass { background: var(--ktc-soft, rgba(15,23,42,.08)) !important; }
#kcrush .kcrush-hint { text-align: center; font-size: .82rem; color: var(--ktc-mut, #64748b); padding: 0 16px 12px; margin: 0; }
#kcrush .kcrush-match { margin: 0 16px 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(219,39,119,.16), rgba(147,51,234,.16)); border: 1px solid rgba(219,39,119,.4); font-weight: 700; }
#kcrush .kcrush-match button { margin-left: 8px; border: 0; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 800; cursor: pointer; color: #fff; background: linear-gradient(135deg, #db2777, #9333ea); }

/* tema oscuro */
html.dark #kcrush .kcrush-shell, html.dark #kcrush {
  --ktc-bg: #0b1120; --ktc-panel: #0f172a; --ktc-fg: #e2e8f0; --ktc-mut: #94a3b8;
  --ktc-line: rgba(255,255,255,.12); --ktc-soft: rgba(255,255,255,.06);
}
@media (max-width: 620px) {
  #kcrush .kcrush-shell { inset: 0; border-radius: 0; }
  #kcrush .kcrush-acts { grid-template-columns: repeat(2, 1fr); }
  #kcrush .kcrush-seg button { padding: 7px 9px; font-size: .74rem; }
}

/* ---------- modo PÁGINA (crush/): mismo panel, pero dentro de la página y con enlace propio ---------- */
#kcrush.kcrush-page { position: static; display: block; z-index: auto; }
#kcrush.kcrush-page .kcrush-shell { position: relative; inset: auto; min-height: calc(100vh - 140px); box-shadow: none; border-radius: 18px; margin: 0 auto; max-width: 880px; }
#kcrush.kcrush-page .kcrush-top { flex-wrap: wrap; }
#kcrush.kcrush-page .kcrush-acts { position: sticky; bottom: 0; background: var(--ktc-bg, #fff); }
[data-kt-theme="dark"] #kcrush { --ktc-bg: #0b1120; --ktc-panel: #0f172a; --ktc-fg: #e2e8f0; --ktc-mut: #94a3b8; --ktc-line: rgba(255,255,255,.12); --ktc-soft: rgba(255,255,255,.06); }
@media (max-width: 620px) { #kcrush.kcrush-page .kcrush-shell { border-radius: 0; min-height: calc(100vh - 110px); } }

/* v36: [hidden] debe ganar a los display:flex/grid del panel (antes el dado se quedaba al lado de la carta). */
#kcrush [hidden] { display: none !important; }
