/* Due Maglie — "Chi è?" v2 (mystery.js): pixelated card, hidden career, 5-box comparison rows. Base rules in games.css. */
.mys-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.mys-figbox { display: grid; gap: 4px; justify-items: center; }
.mys-fig { display: block; width: 96px; height: auto; aspect-ratio: 190 / 270; border-radius: 7px; image-rendering: pixelated; background: #0b1a12; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.mys-fig.is-sharp { image-rendering: auto; }
.mys-sharp { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.mys-info { min-width: 0; }
.mys-id { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.mys-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(224, 180, 58, .14); border: 1px solid rgba(224, 180, 58, .35); font-size: 13px; font-weight: 700; color: var(--oro-1); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mys-flag { font-size: 15px; line-height: 1; }
.mys-flag-code { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 3px; border-radius: 3px; background: rgba(241, 245, 239, .16); color: var(--chalk); }
.mys-h { margin: 0 0 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mys-car { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.mys-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 24px; padding: 2px 6px; border-radius: 6px; background: rgba(241, 245, 239, .05); font-size: 13.5px; }
.mys-row.no-yr { grid-template-columns: minmax(0, 1fr); }
.mys-yr { font-size: 12.5px; font-weight: 700; color: var(--chalk-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mys-cover { display: flex; align-items: center; min-width: 0; min-height: 20px; padding: 0 6px; border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(241, 245, 239, .2) 0 3px, rgba(241, 245, 239, .07) 3px 6px); }
.mys-lg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--chalk-2); }
.mys-how { margin: 2px 0 10px; padding: 8px 10px 9px; border-left: 3px solid var(--oro-2); border-radius: 6px; background: rgba(241, 245, 239, .05); }
.mys-how ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.35; }
.mys-row .mys-club { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
.mys-row .mys-club .pairkit { vertical-align: -1px; }
.mys-row.is-h { background: rgba(224, 180, 58, .14); }
.mys-row.is-g { background: rgba(143, 224, 168, .14); }
.mys-row.is-g .mys-club { color: var(--prim); }
.mys-row.is-new { animation: mys-flip .6s ease-out; }
@keyframes mys-flip { 0% { transform: scaleY(.2); opacity: .2; } 60% { transform: scaleY(1.08); } 100% { transform: none; opacity: 1; } }
.mys-ini { margin: 8px 0 0; font-size: 13.5px; }
.mys-ini .mys-h { display: inline; margin-right: 4px; }
.mys-ini b { font: 800 17px/1 var(--display); letter-spacing: .06em; color: var(--oro-1); }
.mys-ini .muted { font-size: 12.5px; }
/* guesses: 5 boxes */
.mys-boxes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mys-head { margin: 14px 0 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; }
.mys-guesses { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mys-g { padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(3, 8, 5, .45); display: grid; gap: 5px; }
.mys-g.is-win { border-color: var(--oro-2); background: rgba(224, 180, 58, .12); }
.mys-g.shake { animation: shake .4s; }
.mys-gh { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 2px; }
.mys-gn { font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mys-tag { font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.mys-tag.is-ok { background: rgba(143, 224, 168, .16); color: var(--prim); }
.mys-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 42px; padding: 3px 2px; border-radius: 7px; font-size: 12px; font-weight: 800; text-align: center; line-height: 1.1; overflow: hidden; white-space: nowrap; }
.mys-box b { font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mys-box i { font-style: normal; font-size: 13px; line-height: 1; }
.mys-box .mys-flag { font-size: 19px; }
.mys-box.is-ok { background: #2e8b3e; color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.mys-box.is-near { background: #d9b23a; color: #231803; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.mys-box.is-no { background: rgba(241, 245, 239, .1); color: var(--chalk-2); }
.mys-box.is-unk { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.mys-kits { display: flex; gap: 2px; }
.mys-kits .pairkit { width: 10px; height: 8px; margin: 0; }
.mys-common { margin: 0; padding: 0 2px; font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.mys-common .mys-club { margin: 0; }
.mys-legend { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.mys-global { margin: 6px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--oro-1); }
@media (max-width: 380px) {
  .mys-top { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .mys-fig { width: 84px; }
  .mys-row { grid-template-columns: 66px minmax(0, 1fr); padding: 2px 5px; font-size: 13px; }
  .mys-yr { font-size: 12px; }
  .mys-box { font-size: 11px; min-height: 40px; }
  .mys-box b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .mys-row.is-new { animation: none; } }
