/* mini-matt-m3 1.0.0 (APP-LOCAL, appmatt 1.0.0, MATT 2026-11-15): lib-matt3d card overlay (CARD_CSS) + screen-space label (LABEL_CSS)
 * rules as a stylesheet (no injected style). Build 4 = lib-matt3d 0.1.3 rules (ART fix 5: label pill edge #7a5a2e + ink shadow). Build 2 = lib 0.1.1 rules. Build 3 = lib-matt3d 0.1.2 rules (F21: light card frame by
 * day, dark frame under html[data-matt-mode=night]); same rules as GDD/matt/playground/view-quests/quests.css 0.1.1. Class names are
 * m3- prefixed, so they touch only the lib's own nodes. Used by the 3D life path (labels) and Life quests (labels + card). */
.m3-scrim[hidden]{display:none}
.m3-scrim{position:absolute;inset:0;z-index:2;display:flex;align-items:flex-end;justify-content:center;padding:12px;background:rgba(20,30,50,.18)}
[data-matt-mode=night] .m3-scrim{background:rgba(5,9,18,.35)}
.m3-card{width:100%;max-width:420px;background:#f4efe0;border:1px solid #b9b298;border-radius:14px;padding:10px;box-shadow:0 10px 30px rgba(20,23,31,.25)}
[data-matt-mode=night] .m3-card{background:#1a2338;border-color:#3a4a6a;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.m3-cardTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.m3-kind{font-size:.8rem;font-weight:700;letter-spacing:.04em;background:#fdfcf6;color:#14171f;border:1px solid #b9b298;border-radius:6px;padding:2px 8px}
.m3-x{min-width:44px;min-height:44px;border:1px solid #b9b298;border-radius:8px;background:#fdfcf6;color:#14171f;font-size:1.4rem;cursor:pointer}
.m3-x:focus-visible{outline:3px solid #b07d00;outline-offset:2px}
.m3-read{background:#fdfcf6;color:#14171f;border-radius:10px;padding:12px;max-height:46vh;overflow:auto}
.m3-read h3{margin:0 0 6px;font-size:1.05rem}
.m3-read p{margin:0 0 6px}
.m3-cite{font-size:.82rem;color:#3c4250;word-break:break-word}
.m3-labels{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.m3-label{position:absolute;left:0;top:0;display:none;white-space:nowrap;font:600 14px/18px system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;padding:3px 8px;border:1px solid #7a5a2e;border-radius:999px;background:rgba(253,252,246,.96);color:#14171f;box-shadow:0 1px 3px rgba(20,23,31,.35);will-change:transform}
.m3-labels.m3-wide .m3-label{font-size:15px;line-height:19px}
.m3-label.m3-sel{border:2px solid #b07d00;padding:2px 7px}
