/* Hover cards for agents, teams and players (public/infocard.mjs). Same panel family as the missions panel. */
[data-info] { cursor: help; }
[data-info]:focus-visible { outline: 2px solid #e9edb4; outline-offset: 1px; }
.ic { position: absolute; z-index: 40; width: min(320px, calc(100vw - 16px)); background: #16212d; color: #e6ebf0; box-shadow: 0 0 0 2px rgba(236, 232, 225, .55), 6px 6px 0 rgba(15, 25, 35, .6); text-align: left; animation: ic-in .14s steps(3); }
.ic::before { content: ''; position: absolute; left: var(--notch, 50%); width: 10px; height: 10px; margin-left: -5px; background: #2a3442; box-shadow: 0 0 0 2px rgba(236, 232, 225, .55); transform: rotate(45deg); }
.ic[data-side='below']::before { top: -5px; } .ic[data-side='above']::before { bottom: -5px; background: #16212d; }
.ic.pinned { box-shadow: 0 0 0 2px #e9edb4, 6px 6px 0 rgba(15, 25, 35, .6); }
.ic-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 12px 8px; background: #2a3442; }
.ic-name { font: 700 12px/16px var(--pix); letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-kind { font: 11px/14px var(--mono); color: #e9edb4; letter-spacing: 2px; text-transform: uppercase; }
.ic-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.ic-row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; font: 11px/15px var(--mono); }
.ic-label { color: #c3ccd6; text-transform: uppercase; letter-spacing: 1px; }
.ic-value { color: #e6ebf0; overflow-wrap: anywhere; }
.ic-loading { margin: 0; font: 11px/15px var(--mono); color: #c3ccd6; }
.ic-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #1b2734; box-shadow: inset 0 1px 0 #2a3442; }
.ic-link { padding: 4px 8px; background: #2a3442; color: #7fe3d4; font: 11px/14px var(--mono); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(127, 227, 212, .35); }
.ic-link::after { content: ' ↗'; }
.ic-link:hover, .ic-link:focus-visible { background: #7fe3d4; color: #0d3a36; outline: none; }
.ic-source { margin: 0; padding: 6px 12px 8px; font: 11px/14px var(--mono); color: #8a96a3; }
@keyframes ic-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ic { animation: none; } }
@media (max-width: 420px) { .ic-row { grid-template-columns: 1fr; gap: 0; } }
