/* =========================================================================
   KlipTok v34 · YOU CRUSH + DADO (assets/kt-v34-crush.css)   —  solo añade.
   · Agranda y destaca el dado 3D existente (Vista 3D), sin tocar su código.
   · Estilos del panel «You Crush» (dado grande + carta + 4 botones).
   ========================================================================= */

/* ---------- 1) el dado de la Vista 3D, un poco más grande y destacado ---------- */
.dc-stage { --s: calc(min(100cqw, 100cqh) * .78) !important; }
.dc-face { border-width: 4px !important; box-shadow: inset 0 0 30px rgba(255,255,255,.32), inset 0 -14px 30px rgba(0,0,0,.16), 0 0 26px rgba(147,51,234,.45) !important; }
.dc-cube { filter: drop-shadow(0 18px 34px rgba(147,51,234,.4)); }
.dc-roll { font-size: 20px !important; }
.dc-roll-i { font-size: 30px !important; }
@media (max-width: 760px) {
  .dc-stage { --s: calc(min(100cqw, 100cqh) * .82) !important; }
}

/* ---------- 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 grande y destacado */
#kcrush .kcrush-die {
  display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer;
  border: 0; background: transparent; color: inherit; font: inherit; padding: 10px;
}
#kcrush .kcrush-die-face {
  font-size: clamp(72px, 14vw, 150px); line-height: 1; filter: drop-shadow(0 18px 30px rgba(147,51,234,.5));
  display: block; transition: transform .15s;
}
#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:hover .kcrush-die-face { transform: translateY(-3px) rotate(-6deg); }
#kcrush .kcrush-die.rolling .kcrush-die-face { animation: kcrush-roll .6s cubic-bezier(.3,.7,.3,1) infinite; }
@keyframes kcrush-roll {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(90deg) scale(1.08); }
  50% { transform: rotate(180deg) scale(.96); }
  75% { transform: rotate(270deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { #kcrush .kcrush-die.rolling .kcrush-die-face { 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; }
}
