/* Tarot instrument: a flat Ink archive mat with labelled bays. No cloth, no scatter, no float. */
.mmt-visual { min-height: 520px; }
.mmt-mat {
  position: relative; width: 100%; align-self: stretch; display: grid; align-content: center;
  background: var(--ink, #0E1312); border: 1px solid var(--line, #2A2F2E); border-radius: 10px;
  padding: 52px 28px 36px; min-height: 100%; box-sizing: border-box;
}
.mmt-mat::before { content: ""; position: absolute; inset: 9px; border: 1px solid #262c2b; border-radius: 6px; pointer-events: none; }
.mmt-cap { position: absolute; top: 22px; left: 26px; right: 26px; margin: 0; display: flex; justify-content: space-between; font: 400 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mmi-line-2); }
.mmt-cap span { color: var(--mmi-line-2); }
.mmt-bays { display: grid; gap: 28px 22px; justify-content: center; grid-template-columns: repeat(3, minmax(0, 188px)); }
.mmt-mat[data-n="1"] .mmt-bays { grid-template-columns: minmax(0, 220px); }
.mmt-mat[data-n="5"] .mmt-bays { grid-template-columns: repeat(6, minmax(0, 70px)); gap: 26px 20px; }
.mmt-mat[data-n="5"] .mmt-bay { grid-column: span 2; }
.mmt-mat[data-n="5"] .mmt-bay:nth-child(4) { grid-column: 2 / span 2; }
.mmt-bay { min-width: 0; display: grid; gap: 10px; align-content: start; }
.mmt-slot { position: relative; aspect-ratio: 832 / 1216; border: 1.25px dashed var(--mmi-line-3); border-radius: 9px; }
.mmt-slot:has(.mmt-card) { border-color: transparent; }
.mmt-empty { position: absolute; inset: 0; display: grid; place-items: center; font: 400 13px/1 var(--f-mono); color: var(--mmi-line-3); }
.mmt-lbl { margin: 0; text-align: center; display: grid; gap: 4px; min-height: 40px; }
.mmt-pos { font: 400 12px/1.2 var(--f-mono); letter-spacing: .04em; color: var(--mmi-line-2); }
.mmt-pos b { font-weight: 400; color: var(--mmi-line-3); margin-right: 6px; }
.mmt-bay.is-shown .mmt-pos b { color: var(--mmi-sel); }
.mmt-nm { font: 500 15px/1.25 var(--f-display); color: var(--text); }
.mmt-nm:empty { display: none; }
.mmt-bay.is-shown .mmt-pos { color: var(--text); }

.mmt-card { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; perspective: 900px; border-radius: 9px; color: inherit; }
.mmt-card:focus-visible { outline: 2px solid var(--focus, #F6F8F7); outline-offset: 6px; border-radius: 10px; }
.mmt-bay.is-shown .mmt-card { box-shadow: 0 0 0 3px var(--mmi-sel); }
.mmt-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.mmt-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 9px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mmt-back { background: var(--night, #1B1721); border: 1px solid var(--mmi-line-3); }
.mmt-back::before { content: ""; position: absolute; inset: 7px; border: 1px solid #3a3644; border-radius: 5px; }
.mmt-back img { position: relative; width: 30%; height: auto; opacity: .55; }
.mmt-front { transform: rotateY(180deg); background: var(--night, #1B1721); border: 1px solid var(--mmi-line-3); }
.mmt-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mmt-front.rev .mmt-art { transform: rotate(180deg); }
.mmt-front .dsc-tart-st { opacity: 0; transition: opacity 320ms cubic-bezier(.2,.7,.2,1); }
.mmt-front .dsc-tart-st.on { opacity: 1; }
.mmt-type { display: none; padding: 10px; text-align: center; font: 500 16px/1.25 var(--f-display); color: var(--text); }
.mmt-front.no-art .mmt-type, .mmt-front:not(:has(.mmt-art)) .mmt-type { display: block; }

.mmt-legend { font: 500 14px/1.3 var(--f-text); color: var(--text-2); margin: 0 0 10px; }
.mmt .mmt-q { margin: 0; }
.mmt .mmt-deal { width: 100%; margin: 0; }
.mmt-states .dsc-states { margin: 0 0 6px; }
.mmt-states .dsc-states-note { margin: 0; font-size: 13px; color: var(--muted); }
.mmt .dsc-states .dsc-chip { min-height: 44px; }

@media (max-width: 759px) {
  .mmt-visual { min-height: 0; }
  .mmt-mat { padding: 46px 12px 22px; }
  .mmt-pos { letter-spacing: 0; }
  .mmt-pos b { margin-right: 4px; }
  .mmt-cap { top: 20px; left: 18px; right: 18px; }
  .mmt-bays { gap: 20px 8px; }
  .mmt-mat[data-n="5"] .mmt-bays { gap: 20px 8px; }
  .mmt-nm { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .mmt-front .dsc-tart-st { transition: none; } }
@media (forced-colors: active) { .mmt-bay.is-shown .mmt-card { outline: 3px solid Highlight; } }
