/* =========================================================================
   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; }

/* 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; }

/* =========================================================================
   v37 · DADO DE TU CRUSH — dado grande con fotos, giro que termina de frente, carta con swipe
   El cubo es el del dado 3D (kt-v22.css + kt-v30.css). Sin `filter` en la cadena 3D.
   ========================================================================= */
#kcrush .kcrush-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px; overflow-y: auto; position: relative; }
#kcrush .kcrush-chip { border: 1px solid var(--ktc-line, rgba(15,23,42,.16)); background: var(--ktc-soft, rgba(15,23,42,.05)); color: inherit; font: inherit; font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
#kcrush .kc-diebar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; }

/* dado: MÁS GRANDE que el de la Vista 3D */
#kcrush .kcrush-die { display: flex; flex-direction: column; align-items: center; cursor: pointer; border: 0; background: transparent; color: inherit; padding: 6px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#kcrush .kcrush-arena { display: flex; align-items: center; justify-content: center; padding: 34px 0 56px; }
#kcrush .dc-stage { display: block; --s: clamp(190px, 56vw, 330px); }
#kcrush .dc-face { display: flex; }
#kcrush .dc-hop { transform: rotateX(-16deg) rotateY(-22deg); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
/* al detenerse: el cubo queda plano y de frente (sin inclinación ni de lado) */
#kcrush .kcrush-die.flat .dc-hop { transform: rotateX(0deg) rotateY(0deg); }
#kcrush .kcrush-die.rolling .dc-hop { transform: rotateX(-16deg) rotateY(-22deg); }
#kcrush .kcrush-die.rolling .dc-stage { animation: kcrush-hop .5s ease-in-out infinite; }
#kcrush .kcrush-die.away { opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; }
@keyframes kcrush-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { #kcrush .kcrush-die.rolling .dc-stage { animation: none; } }
#kcrush .dc-face .kc-fph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
#kcrush .dc-face.kc-used .kc-fph { filter: grayscale(1) brightness(.55); }
#kcrush .dc-face.kc-used::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; color: rgba(255,255,255,.9); }
#kcrush .dc-face .dc-t { font-size: .95rem; z-index: 1; }

/* botones y formularios */
#kcrush .kc-btn { border: 0; border-radius: 999px; padding: .85rem 1.6rem; font: inherit; font-weight: 800; font-size: 1rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, #db2777, #9333ea); box-shadow: 0 14px 30px -12px rgba(219,39,119,.9); }
#kcrush .kc-btn.ghost { background: var(--ktc-soft, rgba(15,23,42,.08)); color: inherit; box-shadow: none; }
#kcrush .kc-btn.sm { padding: .5rem 1rem; font-size: .85rem; }
#kcrush .kc-btn:disabled { opacity: .55; cursor: default; }
#kcrush .kc-note { font-size: .82rem; color: var(--ktc-mut, #64748b); margin: 0; }
#kcrush .kc-err { color: #dc2626; font-weight: 700; font-size: .85rem; min-height: 1.1em; margin: 0; }
#kcrush .kc-form, #kcrush .kc-pick, #kcrush .kc-matches { width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; }
#kcrush .kc-pick { align-items: center; text-align: center; }
#kcrush h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
#kcrush .kc-form label { font-weight: 700; font-size: .85rem; }
#kcrush .kc-form textarea { width: 100%; border-radius: 12px; border: 1px solid var(--ktc-line, rgba(15,23,42,.2)); background: var(--ktc-bg, #fff); color: inherit; font: inherit; padding: 10px; resize: vertical; }
#kcrush .kc-check { display: flex; gap: 8px; align-items: center; font-weight: 600 !important; }
#kcrush .kc-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--ktc-soft, rgba(15,23,42,.06)); align-self: flex-start; }
#kcrush .kc-seg button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
#kcrush .kc-seg button.on { background: linear-gradient(135deg, #db2777, #9333ea); color: #fff; }
#kcrush .kc-photo { display: flex; align-items: center; gap: 12px; }
#kcrush .kc-photo img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; border: 1px solid var(--ktc-line, rgba(15,23,42,.2)); }
#kcrush .kc-file { cursor: pointer; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--ktc-line, rgba(15,23,42,.35)); font-weight: 700; }
#kcrush .kc-row { display: flex; gap: 10px; flex-wrap: wrap; }
#kcrush .kc-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
#kcrush .kc-big button { border: 2px solid var(--ktc-line, rgba(15,23,42,.18)); border-radius: 22px; padding: 22px 10px; font: inherit; font-weight: 800; font-size: 1.1rem; background: var(--ktc-panel, #f8fafc); color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; }
#kcrush .kc-big button span { font-size: 2.6rem; }
#kcrush .kc-big button.on { border-color: #db2777; background: rgba(219,39,119,.12); box-shadow: 0 10px 26px -12px rgba(219,39,119,.8); }
#kcrush .kc-filters { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: .85rem; font-weight: 600; }

/* carta (la cara desplegada) con swipe */
#kcrush .kcrush-card { width: min(380px, 94%); touch-action: none; user-select: none; cursor: grab; transition: transform .3s ease, opacity .3s ease; position: relative; }
#kcrush .kcrush-card.drag { transition: none; cursor: grabbing; }
#kcrush .kcrush-card.deal { animation: kc-deal .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes kc-deal { from { transform: scale(.55) rotateY(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
#kcrush .kcrush-p { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 3 / 4; background: #111; box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); padding: 0; display: block; text-align: left; border: 0; }
#kcrush .kcrush-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#kcrush .kcrush-pinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); display: flex; flex-direction: column; gap: 5px; }
#kcrush .kcrush-pname { font-size: 1.4rem; font-weight: 800; }
#kcrush .kcrush-bio { font-size: .92rem; opacity: .95; }
#kcrush .kcrush-pmeta { font-size: .78rem; opacity: .8; color: #fff; }
#kcrush .kcrush-pcats span { background: rgba(255,255,255,.22); color: #fff; }
#kcrush .kcrush-pcats span.on { background: rgba(236,72,153,.85); color: #fff; }
#kcrush .kcrush-shared { color: #f5d0fe; }
#kcrush .kc-sl { font-size: .72rem; background: #f59e0b; color: #1c1917; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
#kcrush .kc-stamp { position: absolute; top: 22px; padding: 4px 12px; border: 4px solid; border-radius: 10px; font-weight: 900; font-size: 1.5rem; opacity: 0; pointer-events: none; z-index: 2; }
#kcrush .kc-s-like { left: 18px; color: #22c55e; transform: rotate(-14deg); }
#kcrush .kc-s-no { right: 18px; color: #ef4444; transform: rotate(14deg); }
#kcrush .kc-s-super { left: 50%; top: 40%; color: #f59e0b; transform: translateX(-50%) rotate(-6deg); }

/* acciones: no me gusta · pasar · súper like · me gusta */
#kcrush .kcrush-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(460px, 100%); padding: 6px 0 0; border: 0; position: static; }
#kcrush .kcrush-acts button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.5rem; padding: 10px 4px; }
#kcrush .kcrush-acts button small { font-size: .68rem; font-weight: 800; }
#kcrush .kcrush-sup { background: linear-gradient(135deg, #f59e0b, #fbbf24) !important; color: #1c1917 !important; border-color: transparent !important; }

/* match */
#kcrush .kcrush-match { position: absolute; inset: auto 12px 12px 12px; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 5; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); background: linear-gradient(135deg, rgba(219,39,119,.97), rgba(147,51,234,.97)); color: #fff; border: 0; }
#kcrush .kcrush-match img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
#kcrush .kcrush-match button { background: #fff; color: #9333ea; margin-left: 0; }
#kcrush .kcrush-match button.ghost { background: rgba(255,255,255,.2); color: #fff; }

/* matches */
#kcrush .kc-mrow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--ktc-panel, #f8fafc); border: 1px solid var(--ktc-line, rgba(15,23,42,.12)); }
#kcrush .kc-mrow img, #kcrush .kc-noimg { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--ktc-soft, rgba(15,23,42,.08)); }
#kcrush .kc-mrow b { flex: 1; }
@media (max-width: 620px) { #kcrush .kcrush-acts { grid-template-columns: repeat(4, 1fr); } }
