.mechanic-term{display:inline;border:0;border-bottom:1px dotted var(--blue);padding:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;cursor:help;border-radius:0}
.mechanic-term:hover,.mechanic-term[aria-expanded=true]{color:var(--blue);border-bottom-style:solid}
.effect-tags .mechanic-chip{font-size:12px;line-height:1.6;padding:2px 7px;background:var(--soft);border-radius:3px;color:var(--text);border-bottom:1px dotted var(--blue)}
.mechanic-popover{position:fixed;inset:auto;margin:0;padding:17px 18px;width:340px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 12px 42px #0005;z-index:300;overscroll-behavior:contain}
.mechanic-popover::backdrop{background:transparent;pointer-events:none}
.mechanic-popover-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.mechanic-popover-head strong{font-size:17px;color:var(--ink)}
.mechanic-popover-head button{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--soft);color:var(--text);font-size:22px;cursor:pointer}
.mechanic-popover p,.detail-dialog .mechanic-popover p{margin:0;font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.mechanic-popover p.mechanic-note{margin-top:10px;color:var(--muted);font-size:12px}
.mechanic-source{display:grid;gap:5px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}
.mechanic-source a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.mechanic-source small{font-size:11px;color:var(--muted)}
.mechanic-related{display:grid;gap:7px;margin-top:14px}
.mechanic-related a{font-size:13px;font-weight:650;color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.mechanic-related small{font-size:11px;line-height:1.6;color:var(--muted)}
