/* --- Té & Crimen: noir cozy en el scrapbook. Carpetas manila, polaroids con cinta, corcho con hilo rojo, luz de lámpara --- */
.misterio {
  --manila: #f2d79b; --manila-2: #e6c27a; --cork: #c79a62; --yarn: #d0342c; --noir: #2b2420;
  position: relative;
}
.misterio .mi-lamp {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, #ffd98a55, transparent 70%),
    radial-gradient(ellipse at 50% 40%, transparent 55%, #3a24164d 100%);
}
.misterio > :not(.mi-lamp) { position: relative; z-index: 1; }
.misterio .over { z-index: 40; position: fixed; }
.misterio h3 { margin: 18px 0 8px; }
.misterio h4 { margin: 14px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.mi-title {
  margin: 0; font-size: 2.8rem; color: var(--sun); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); display: inline-block;
}
.mi-title.sm { font-size: 1.7rem; text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke-width: 2.5px; }
.mi-cup { width: 100%; height: auto; overflow: visible; }
.mi-steam { animation: mi-steam 2.6s ease-in-out infinite; }
@keyframes mi-steam { 50% { translate: 0 -3px; opacity: .25; } }

/* sellos de goma */
.mi-stamp {
  display: inline-block; font-family: var(--pixel); font-weight: 700; letter-spacing: .14em; color: #c4302b;
  border: 3px solid currentColor; border-radius: 6px; padding: 2px 10px; transform: rotate(-8deg); opacity: .85;
  mix-blend-mode: multiply; text-transform: uppercase; font-size: .95rem; background: transparent; pointer-events: none;
}
.mi-stamp.small { font-size: .72rem; padding: 1px 7px; position: absolute; right: 14px; top: 14px; transform: rotate(6deg); }
.mi-stamp.slam { animation: mi-slam .55s var(--ease-pop) both; }
@keyframes mi-slam { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 60% { transform: rotate(-8deg) scale(.92); opacity: .95; } }
.mi-clip {
  position: absolute; top: -14px; left: 26px; width: 22px; height: 46px; border: 3px solid #7d8790; border-radius: 12px;
  box-shadow: inset 0 0 0 4px transparent; z-index: 2;
}
.mi-clip::after { content: ''; position: absolute; inset: 6px 4px 10px; border: 3px solid #7d8790; border-radius: 8px; }
.mi-clip.big { left: 52%; transform: rotate(-8deg); }
.mi-folder-btn .mi-clip { left: 116px; }

/* ---------- selección ---------- */
.mi-select { padding-top: 6px; }
.mi-selhead { display: flex; align-items: center; gap: 18px; }
.mi-cupbig { width: 92px; display: inline-block; filter: drop-shadow(3px 3px 0 var(--ink)); }
.mi-sub { font-weight: 700; color: var(--ink-soft); margin: 10px 0 0; }
.mi-desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; padding: 14px 4px 10px; }
.mi-folder-btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 30px 20px 18px;
  background: var(--manila); border-radius: 6px 14px var(--r) var(--r); box-shadow: var(--shadow-lg); transform: rotate(var(--tilt));
  min-height: 300px; font-weight: 600; animation: mi-in .5s var(--ease-pop) both;
}
.mi-folder-btn:nth-child(2) { animation-delay: .08s; } .mi-folder-btn:nth-child(3) { animation-delay: .16s; }
@keyframes mi-in { from { opacity: 0; translate: 0 26px; } }
.mi-folder-btn:hover:not(:disabled) { transform: rotate(0) translateY(-6px); box-shadow: 10px 12px 0 var(--ink); }
.mi-folder-btn .mi-tab {
  position: absolute; top: -26px; left: -3px; background: var(--manila); border: var(--stroke); border-bottom: none; border-radius: 10px 10px 0 0;
  padding: 2px 16px; font-family: var(--pixel); font-size: .95rem;
}
.mi-folder-btn .mi-stamp { position: absolute; right: 16px; top: 18px; }
.mi-diff { font-family: var(--pixel); font-size: .9rem; color: #8a5a34; }
.mi-ftitle { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; margin-top: 8px; }
.mi-folder-btn small { color: var(--ink-soft); font-weight: 700; }
.mi-fpolas { display: flex; gap: 4px; margin-top: auto; padding-top: 10px; }
.mi-fpolas .mi-mini { width: 42px; height: 46px; }
.mi-best { position: absolute; bottom: 52px; right: 16px; background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; padding: 0 8px; font-family: var(--pixel); }
.mi-open { font-weight: 800; color: var(--tomato); }
.mi-mini { display: inline-block; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; flex: none; }
.mi-mini svg { width: 100%; height: 100%; display: block; }

/* ---------- cabecera ---------- */
.mi-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mi-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.mi-cupsm { width: 52px; display: inline-block; filter: drop-shadow(2px 2px 0 var(--ink)); }
.mi-case { display: block; font-family: var(--pixel); font-size: 1.05rem; letter-spacing: .04em; }
.mi-acts { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.mi-acts li {
  display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--sheet); opacity: .55; line-height: 1.1; min-width: 74px;
}
.mi-acts li b { font-family: var(--pixel); font-weight: 700; }
.mi-acts li small { font-size: .68rem; font-weight: 700; color: var(--ink-soft); }
.mi-acts li.done { opacity: .8; background: var(--paper-2); }
.mi-acts li.now { opacity: 1; background: var(--sun); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.mi-meters { display: flex; gap: 10px; align-items: center; }
.mi-meter {
  display: flex; flex-direction: column; background: var(--sheet); border: var(--stroke); border-radius: var(--r-sm); box-shadow: var(--shadow);
  padding: 3px 12px; min-height: 52px; justify-content: center;
}
.mi-meter small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.mi-meter b { font-family: var(--pixel); font-size: 1.15rem; }
.mi-glass { display: flex; gap: 2px; font-family: var(--pixel); }
.mi-glass svg { width: 22px; height: 22px; }
.mi-teabtn { flex-direction: column; gap: 0; padding: 4px 12px; font-size: .78rem; }
.mi-cups { display: flex; gap: 2px; }
.mi-cups .mi-cup { width: 30px; }

/* ---------- layout ---------- */
.mi-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mi-tabs { display: flex; gap: 6px; margin-bottom: -3px; padding-left: 12px; position: relative; z-index: 2; }
.mi-tabbtn {
  min-height: 44px; border-radius: 12px 12px 0 0; box-shadow: none; background: var(--manila-2); padding: 8px 16px; border-bottom-width: 0;
  font-family: var(--pixel); font-weight: 700; letter-spacing: .04em;
}
.mi-tabbtn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: none; }
.mi-tabbtn:active:not(:disabled) { transform: none; }
.mi-tabbtn.on { background: var(--manila); padding-bottom: 11px; }
.mi-view {
  background: var(--manila); border: var(--stroke); border-radius: 4px var(--r) var(--r) var(--r); box-shadow: var(--shadow-lg);
  padding: 16px; min-height: 480px;
}
.mi-hint { font-weight: 700; color: #6b4a2f; font-size: .92rem; margin: 10px 2px 0; }

/* ---------- escena ---------- */
.mi-scene {
  position: relative; aspect-ratio: 16 / 9; border: var(--stroke); border-radius: var(--r-sm); overflow: hidden; background: #000;
  box-shadow: 4px 4px 0 var(--ink);
}
.mi-scene > svg { width: 100%; height: 100%; display: block; }
.mi-spot {
  position: absolute; width: 44px; height: 44px; padding: 0; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--sun); box-shadow: 3px 3px 0 var(--ink); z-index: 2;
}
.mi-spot:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.12); box-shadow: 3px 3px 0 var(--ink); z-index: 5; }
.mi-spot:active:not(:disabled) { transform: translate(-50%, -50%) scale(.95); box-shadow: 0 0 0 var(--ink); }
.mi-spot-ic { width: 26px; height: 26px; display: grid; place-items: center; font-weight: 900; }
.mi-spot-ic svg { width: 26px; height: 26px; }
.mi-spot.open { animation: mi-pulse 1.8s ease-in-out infinite; }
.mi-spot.open::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px dashed var(--sun); animation: spin 8s linear infinite; }
@keyframes mi-pulse { 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 10px #ffc93c55; } }
.mi-spot.idle { background: var(--sheet); opacity: .8; cursor: default; }
.mi-spot.mine, .mi-spot.theirs { background: var(--c); color: #fff; }
.mi-spot.theirs { cursor: default; opacity: .85; }
.mi-spot.locked { background: #6b5d52; cursor: default; opacity: .8; }
.mi-spot-lab {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap;
  background: var(--sheet); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px; font-size: .82rem; font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s var(--ease-pop); translate: 0 6px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.mi-spot-lab small { font-weight: 700; color: var(--ink-soft); font-size: .72rem; }
.mi-spot:hover .mi-spot-lab, .mi-spot:focus-visible .mi-spot-lab { opacity: 1; translate: 0 0; }
.mi-spot.armed { outline: 4px solid var(--sheet); outline-offset: 2px; z-index: 6; }
.mi-spot.armed .mi-spot-lab { display: none; }
@media (hover: none) { .mi-spot-lab { display: none; } }
.mi-spot-pop {
  position: absolute; z-index: 8; transform: translate(-50%, calc(-100% - 30px)); background: var(--sheet); border: var(--stroke); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 170px; text-align: center;
  animation: mi-in .25s var(--ease-pop);
}
.mi-spot-pop[data-flip="1"] { transform: translate(-50%, 30px); }
.mi-spot-pop[data-side="r"] { translate: -35% 0; } .mi-spot-pop[data-side="l"] { translate: 35% 0; }
.mi-spot-pop small { color: var(--ink-soft); font-weight: 700; }
.mi-spot-pop button { padding: 8px 16px; min-height: 44px; }

/* ---------- polaroids + caras ---------- */
.mi-pola {
  display: inline-flex; flex-direction: column; align-items: center; background: #fffdf7; border: 2px solid var(--ink); padding: 6px 6px 4px;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--tilt, 0deg)); position: relative; width: 104px;
}
.mi-pola .mi-face { width: 100%; height: auto; display: block; border: 2px solid var(--ink); }
.mi-pola b { font-family: var(--body); font-weight: 800; font-size: .78rem; margin-top: 4px; line-height: 1.1; text-align: center; }
.mi-pola small { font-size: .68rem; color: var(--ink-soft); font-weight: 700; text-align: center; line-height: 1.1; }
.mi-pola.big { width: 220px; padding: 10px 10px 8px; }
.mi-pola.big b { font-size: 1rem; font-family: var(--display); font-weight: 400; }
.mi-tape { position: absolute; top: -10px; left: 50%; width: 54px; height: 18px; transform: translateX(-50%) rotate(-4deg); background: #ffe28acc; border-left: 2px dashed #0002; border-right: 2px dashed #0002; }
.mi-pola.big .mi-tape { width: 84px; height: 24px; top: -14px; }
.mi-polas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0; }
.mi-polas.dim { opacity: .55; filter: grayscale(.4); }

.mi-face .mi-bust { animation: mi-breathe 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes mi-breathe { 50% { transform: translateY(-1.2px) scaleY(1.008); } }
.mi-face .mi-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: mi-blink 5.2s infinite; }
.mi-face .mi-lid:nth-of-type(2) { animation-delay: 0s; }
@keyframes mi-blink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
.mi-face .mi-pupils, .mi-face .mi-pupil, .mi-face .mi-hand, .mi-face .mi-sweat, .mi-face .mi-m-norm, .mi-face .mi-m-bite, .mi-face .mi-brow, .mi-face .mi-headg {
  transition: transform .28s var(--ease-pop), opacity .2s; transform-box: fill-box; transform-origin: center;
}
.mi-face .mi-m-bite, .mi-face .mi-sweat { opacity: 0; }
/* tells */
.mi-face.tell-glance .mi-pupils { transform: translate(4.5px, 2px); }
.mi-face.tell-glance .mi-headg { transform: rotate(4deg); }
.mi-face.tell-pupil .mi-pupil { transform: scale(1.75); }
.mi-face.tell-pupil .mi-brow { transform: translateY(-3px); }
.mi-face.tell-nose .mi-hand { transform: translateY(-82px) rotate(-6deg); }
.mi-face.tell-nose .mi-pupils { transform: translateY(2px); }
.mi-face.tell-sweat .mi-sweat { opacity: 1; animation: mi-drip 1.6s ease-in forwards; }
.mi-face.tell-sweat .mi-brow { transform: rotate(-4deg) translateY(1px); }
@keyframes mi-drip { from { transform: translateY(0); } to { transform: translateY(16px); } }
.mi-face.tell-lip .mi-m-norm { opacity: 0; }
.mi-face.tell-lip .mi-m-bite { opacity: 1; }
.mi-face.tell-fidget .mi-headg { animation: mi-fidget .22s ease-in-out 6; }
.mi-face.tell-fidget .mi-bust { animation: mi-shrug .7s ease-in-out 2; }
@keyframes mi-fidget { 50% { transform: rotate(-3deg) translateX(-1.5px); } }
@keyframes mi-shrug { 50% { transform: translateY(-3px); } }

/* ---------- interrogatorio ---------- */
.mi-talk { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.mi-suslist { display: flex; flex-direction: column; gap: 8px; }
.mi-susbtn { min-height: 56px; justify-content: flex-start; padding: 6px 8px; gap: 8px; background: var(--sheet); text-align: left; box-shadow: 3px 3px 0 var(--ink); }
.mi-susbtn .mi-mini { width: 40px; height: 44px; }
.mi-susbtn span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.mi-susbtn small { color: var(--tomato); letter-spacing: .05em; }
.mi-susbtn.on { background: var(--sun); transform: translateX(6px) rotate(-1deg); }
.mi-who { display: flex; gap: 18px; align-items: flex-start; }
.mi-bigpola { position: relative; flex: none; }
.mi-bigpola.huff .mi-pola { animation: mi-huff .5s ease-in-out; }
@keyframes mi-huff { 20% { translate: -8px 0; rotate: -3deg; } 40% { translate: 7px 0; rotate: 2deg; } 60% { translate: -4px 0; } }
#mi-liestamp { position: absolute; left: 50%; top: 42%; translate: -50% -50%; z-index: 3; }
#mi-liestamp .mi-stamp { font-size: 1.9rem; background: #fffdf7cc; }
.mi-name { font-family: var(--display); font-weight: 400; font-size: 1.8rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 4px 0 0; }
.mi-role { font-family: var(--pixel); color: #8a5a34; }
.mi-bio { font-weight: 600; margin: 8px 0; }
.mi-trust b { color: var(--tomato); letter-spacing: .1em; }
.mi-bubble {
  position: relative; margin: 16px 0 10px; background: var(--sheet); border: var(--stroke); border-radius: var(--r); padding: 14px 18px; min-height: 76px;
  box-shadow: var(--shadow); font-size: 1.05rem; font-weight: 600;
}
.mi-bubble::before { content: ''; position: absolute; top: -14px; left: 60px; width: 22px; height: 22px; background: var(--sheet); border-left: var(--stroke); border-top: var(--stroke); transform: rotate(45deg); }
.mi-bubble.truth { background: #ffe1d9; }
.mi-bubble.truth::before { background: #ffe1d9; }
.mi-caret { display: inline-block; width: 8px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 2px; animation: mi-caret .7s steps(1) infinite; }
@keyframes mi-caret { 50% { opacity: 0; } }
.mi-liebar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.mi-liebar button { font-size: 1.15rem; flex: none; }
.mi-liebar button:not(:disabled) { animation: nudge 2.4s ease-in-out infinite; }
.mi-qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.mi-q { min-height: 48px; width: 100%; justify-content: space-between; text-align: left; background: var(--sheet); font-weight: 700; padding: 9px 12px; box-shadow: 3px 3px 0 var(--ink); }
.mi-q em { font-style: normal; font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }
.mi-q.done { background: var(--paper-2); }
.mi-q.caught { background: #ffd0c4; }
.mi-q.on { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.mi-read { margin-top: 16px; background: #fff7e0; border: 2px dashed var(--ink); border-radius: var(--r-sm); padding: 10px 14px; }
.mi-read h4 { margin-top: 0; color: var(--ink); }
.mi-read p { margin: 4px 0; }
.mi-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mi-opts button { min-height: 44px; font-size: .9rem; padding: 7px 12px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.mi-readres.ok { color: #13945c; font-weight: 800; }
.mi-readres.bad { color: var(--tomato); font-weight: 800; }
.mi-empty { text-align: center; font-weight: 700; padding-top: 40px; }

/* ---------- pizarra de corcho ---------- */
.mi-boardbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mi-noteform { flex: 1; min-width: 260px; align-items: center; }
.mi-noteform input { padding: 8px 12px; }
.mi-swatches { display: flex; gap: 10px; padding: 0 4px; }
.mi-sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); }
.mi-sw.on { transform: scale(1.18) rotate(-10deg); }
.mi-cork {
  position: relative; height: clamp(420px, 66vh, 600px); margin-top: 10px; border: 6px solid #8a5a34; border-radius: var(--r-sm); overflow: hidden; touch-action: pan-y;
  background:
    radial-gradient(circle at 20% 30%, #00000014 1.5px, transparent 2px) 0 0 / 13px 13px,
    radial-gradient(circle at 70% 60%, #ffffff22 1.5px, transparent 2px) 0 0 / 17px 17px,
    var(--cork);
  box-shadow: inset 0 0 40px #3a241655, 4px 4px 0 var(--ink);
}
.mi-cork.stringing .mi-item { cursor: crosshair; }
.mi-yarn { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.mi-item { position: absolute; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; z-index: 2; animation: mi-in .35s var(--ease-pop) both; }
.mi-item.dragging { cursor: grabbing; z-index: 10; filter: drop-shadow(6px 8px 0 #0003); }
.mi-item.from { outline: 4px dashed var(--yarn); outline-offset: 4px; }
.mi-pin { position: absolute; top: -4px; left: 50%; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%; background: var(--yarn); border: 2px solid var(--ink); z-index: 4; box-shadow: 1px 2px 0 #0005; }
.mi-bsus .mi-pola { width: 92px; }
.mi-bsus .mi-tape { display: none; }
.mi-bclue {
  width: 178px; background: #fffdf7; border: 2px solid var(--ink); border-top: 8px solid var(--c); border-radius: 4px; padding: 10px 10px 8px;
  box-shadow: 3px 3px 0 var(--ink); font-size: .8rem; rotate: -1.5deg;
  background-image: repeating-linear-gradient(transparent 0 17px, #cfe0ff 17px 18px);
}
.mi-bclue:nth-child(odd) { rotate: 1.2deg; }
.mi-bclue b { display: block; font-size: .82rem; line-height: 1.15; }
.mi-bclue p { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mi-bclue.open p { -webkit-line-clamp: unset; }
.mi-bclue.closed { background: var(--manila); background-image: none; }
.mi-closed { font-weight: 700; color: #6b4a2f; }
.mi-note {
  width: 140px; min-height: 110px; background: var(--nc); border: 2px solid var(--ink); padding: 14px 10px 8px; box-shadow: 3px 3px 0 var(--ink);
  rotate: 2deg; font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; overflow-wrap: anywhere;
}
.mi-note p { margin: 0 0 auto; }
.mi-note small { color: var(--c); font-weight: 800; }
.mi-x { position: absolute !important; top: 2px; right: 2px; width: 28px; height: 28px; padding: 0; font-size: .9rem; border-width: 2px; box-shadow: 1px 1px 0 var(--ink); background: var(--sheet); }

/* ---------- acusación ---------- */
.mi-accuse h3 { color: var(--ink); font-size: .9rem; }
.mi-pickwho { display: flex; gap: 12px; flex-wrap: wrap; }
.mi-pick { padding: 0; background: none; border: none; box-shadow: none; }
.mi-pick:hover:not(:disabled) { box-shadow: none; transform: translateY(-4px); }
.mi-pick.on .mi-pola { outline: 4px solid var(--tomato); outline-offset: 3px; transform: rotate(0) scale(1.05); }
.mi-pickrow { display: flex; flex-wrap: wrap; gap: 8px; }
.mi-pick.chip { background: var(--sheet); border: var(--stroke); box-shadow: 3px 3px 0 var(--ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; text-align: left; }
.mi-pick.chip.on { background: var(--tomato); color: #fff; }
.mi-accuse.locked .mi-pick:not(.on) { opacity: .5; }
.mi-lockrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.mi-ok { color: #13945c; font-weight: 800; }
.mi-mismatch { background: #ffe1d9; border: var(--stroke); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 8px; box-shadow: var(--shadow); animation: mi-in .4s var(--ease-pop); }
.mi-mismatch h4 { margin: 0 0 8px; color: var(--ink); }
.mi-mismatch table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mi-mismatch th { text-align: left; padding: 4px 6px; width: 90px; }
.mi-mismatch td { padding: 4px 8px; border-left: 4px solid var(--c); font-weight: 600; }
.mi-mismatch td small { display: block; font-weight: 800; color: var(--c); }
.mi-mismatch tr.diff td { background: #fff5c2; font-weight: 800; }

/* ---------- costado ---------- */
.mi-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 14px; max-height: calc(100vh - 28px); }
.mi-actbox { background: var(--sheet); border: var(--stroke); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.mi-actbox p { margin: 0; font-weight: 700; }
.mi-actno { font-family: var(--pixel); font-size: 1.3rem; background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; padding: 0 10px; align-self: flex-start; transform: rotate(-3deg); }
.mi-file {
  position: relative; background: var(--manila); border: var(--stroke); border-radius: 6px var(--r) var(--r) var(--r); box-shadow: var(--shadow-lg);
  padding: 8px 14px 14px; overflow-y: auto; min-height: 160px; flex: 1;
}
.mi-file h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 6px 0; }
.mi-clues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mi-clue {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; background: #fffdf7; border: 2px solid var(--ink); border-radius: 8px;
  padding: 8px; font-size: .86rem; box-shadow: 2px 2px 0 var(--ink);
}
.mi-clue p { margin: 2px 0 0; line-height: 1.35; }
.mi-clue b { line-height: 1.15; display: block; }
.mi-clues.mine .mi-clue { border-left: 6px solid var(--cobalt); }
.mi-clue.k-truth { background: #ffe1d9; } .mi-clue.k-read { background: #e8f0ff; } .mi-clue.k-tea { background: #fff0d6; }
.mi-clue.fresh { animation: mi-fresh 1.4s var(--ease-pop); }
@keyframes mi-fresh { 0% { transform: scale(.8) rotate(-3deg); background: var(--sun); } 40% { transform: scale(1.03); } }
.mi-kind { font-size: 1.2rem; line-height: 1; }
.mi-pinbtn, .mi-x, .mi-sw { position: relative; }
.mi-pinbtn::after, .mi-x::after, .mi-sw::after { content: ''; position: absolute; inset: -10px; }
.mi-pinbtn { min-width: 36px; min-height: 36px; padding: 2px 6px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.mi-logbox summary { font-weight: 800; cursor: pointer; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.mi-log { list-style: none; margin: 6px 0 0; padding: 0; font-size: .82rem; max-height: 180px; overflow-y: auto; }
.mi-log li { padding: 2px 0 2px 10px; border-left: 3px solid var(--c); margin-bottom: 3px; }
.mi-log li.e-caught { font-weight: 800; }
.mi-log li.e-act, .mi-log li.e-accuse { font-family: var(--pixel); }

/* ---------- pop-ups ---------- */
.mi-pop { max-width: 620px; max-height: 88vh; overflow-y: auto; position: relative; }
.mi-brief { background: var(--manila); }
.mi-brief .mi-stamp { position: absolute; right: 24px; top: 26px; font-size: 1.1rem; }
.mi-brief h2 { margin-right: 120px; }
.mi-place { font-family: var(--pixel); margin: 0 0 8px; color: #6b4a2f; }
.mi-intro { font-size: 1.08rem; font-weight: 600; }
.mi-how { font-weight: 600; padding-left: 20px; }
.mi-actbig { display: inline-block; font-family: var(--pixel); font-size: 1.4rem; background: var(--sun); border: var(--stroke); border-radius: 8px; padding: 0 12px; transform: rotate(-3deg); margin-bottom: 10px; }
.mi-twist .mi-stamp { position: absolute; right: 22px; top: 22px; font-size: 1.6rem; }
.mi-found { max-width: 460px; }
.mi-foundcard { background: #fffdf7; border: 2px solid var(--ink); padding: 14px; border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); rotate: -1deg; animation: mi-in .4s var(--ease-pop); }
.mi-foundcard b { display: block; font-size: 1.1rem; }
.mi-foundcard .mi-kind { font-size: 1.6rem; float: right; }
.mi-teapop .mi-cupbig { width: 110px; margin: 0 auto; display: block; }

/* ---------- final ---------- */
.mi-endcard { max-width: 820px; max-height: 92vh; overflow-y: auto; }
.mi-endtop { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.mi-endpola { position: relative; }
.mi-stamp.end { position: absolute; z-index: 5; left: 50%; top: 46%; translate: -50% -50%; font-size: 1.25rem; background: #fffdf7cc; white-space: nowrap; animation-delay: .5s; }
.lose .mi-stamp.end { color: #6b5d52; }
.mi-stars { display: flex; gap: 4px; font-size: 2.2rem; margin: 6px 0; }
.mi-stars span { color: #d8c6a6; -webkit-text-stroke: 2px var(--ink); }
.mi-stars span.on { color: var(--sun); animation: mi-starpop .5s var(--ease-pop) both; animation-delay: calc(.9s + var(--i) * .15s); }
@keyframes mi-starpop { from { transform: scale(0) rotate(-40deg); } }
.mi-verdict { border-collapse: collapse; font-size: .95rem; }
.mi-verdict th { text-align: left; padding: 3px 10px 3px 0; vertical-align: top; }
.mi-verdict td { padding: 3px 0; font-weight: 700; }
.mi-verdict td small { display: block; color: var(--ink-soft); font-weight: 600; }
.mi-verdict tr.ok td { color: #13945c; } .mi-verdict tr.bad td { color: var(--tomato); }
.mi-stats { font-weight: 700; font-size: .9rem; }
.mi-bonus { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.mi-bonus .on { color: #a87a00; }
.mi-epi { padding-left: 22px; }
.mi-epi li { margin-bottom: 12px; font-weight: 600; }
.mi-epi p { margin: 0 0 4px; }
.mi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mi-chip { font-size: .74rem; font-weight: 800; background: var(--manila); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 7px; }
.mi-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.mi-confetti i { position: absolute; top: -20px; width: 10px; height: 7px; background: var(--bg); border: 1.5px solid var(--ink); animation: mi-rain var(--t) var(--d) linear both; }
@keyframes mi-rain { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }

@media (max-width: 1180px) {
  .mi-main { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
  .mi-talk { grid-template-columns: 124px minmax(0, 1fr); }
  .mi-pola.big { width: 180px; }
}
@media (max-width: 900px) {
  .mi-main { grid-template-columns: 1fr; }
  .mi-side { position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .mi-file { max-height: 56vh; grid-row: span 2; }
  .mi-head { gap: 10px; }
}
@media (max-width: 860px) {
  .mi-talk { grid-template-columns: 1fr; }
  .mi-suslist .mi-susbtn.on { transform: translateY(-3px) rotate(-1deg); }
  .mi-suslist { flex-direction: row; flex-wrap: wrap; }
  .mi-who { flex-direction: row; }
  .mi-pola.big { width: 150px; }
  .mi-acts li { min-width: 0; padding: 3px 6px; }
  .mi-acts li small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mi-face.tell-sweat .mi-sweat { transform: translateY(8px); }
  .mi-face.tell-fidget .mi-headg { transform: rotate(-4deg) translateX(-2px); }
  .mi-face .mi-lid { transform: scaleY(0); }
}
