.exc-card {
    position: fixed; z-index: 5000; left: 0; top: 0; width: max-content; max-width: 300px;
    opacity: 0; pointer-events: none; transform: translateY(4px);
    transition: opacity 120ms ease, transform 120ms ease;
    display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: 12px;
    background: linear-gradient(180deg, rgba(20, 22, 38, 0.985), rgba(11, 12, 24, 0.985));
    border: 1px solid rgba(120, 150, 210, 0.28);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 212, 121, 0.07) inset, 0 0 26px rgba(79, 198, 232, 0.10);
}
.exc-card.exc-show { opacity: 1; transform: none; }
.exc-top { display: flex; align-items: center; gap: 9px; }
.exc-glyph { font-size: 19px; line-height: 1; color: #ffd479; text-shadow: 0 0 12px rgba(255, 212, 121, 0.45); flex-shrink: 0; }
.exc-heads { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.exc-title { font-family: 'Crimson Pro', Georgia, serif; font-size: 15.5px; font-size: max(16px, 15.5px); font-weight: 700; color: #f2ead6; line-height: 1.15; }
.exc-kind { font-size: 9.5px; font-size: max(16px, 9.5px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7f9bd6; }
.exc-body { font-size: 12.5px; font-size: max(16px, 12.5px); line-height: 1.5; color: #c8cee6; }
.exc-use { display: flex; gap: 7px; align-items: baseline; }
.exc-use-k { flex-shrink: 0; font-size: 9px; font-size: max(16px, 9px); font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; color: #6f8f66; }
.exc-use-v { font-size: 11.5px; font-size: max(16px, 11.5px); line-height: 1.45; color: #a9cf9f; }
.exc-pairs { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 6px; margin-top: 2px; }
.exc-pairs-v { font-family: 'Courier New', monospace; font-size: 11px; font-size: max(16px, 11px); color: rgba(160,175,210,0.65); letter-spacing: 0.01em; }
.exc-life { display: flex; gap: 7px; align-items: baseline; }
.exc-life-k { flex-shrink: 0; font-size: 9px; font-size: max(16px, 9px); font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; color: #c98f9f; padding-top: 1px; }
.exc-life-v { font-size: 11.5px; font-size: max(16px, 11.5px); line-height: 1.45; color: #e8ccd3; font-style: italic; }
.exc-card.exc-bodyonly .exc-top { display: none; }
.exc-card.exc-bodyonly .exc-body { color: #d6dbef; }
.exc-card.exc-has-slot { pointer-events: auto; max-width: 372px; }
.exc-slot { margin-top: 2px; padding-top: 11px; border-top: 1px solid rgba(120, 150, 210, 0.20); }
.exc-card { max-width: 380px; }
.exc-card.exc-has-slot { max-width: 440px; }
.exc-card { width: min(400px, calc(100vw - 24px)); max-width: none; gap: 10px; padding: 16px 18px 15px; border-radius: 16px;
    background: radial-gradient(260px 120px at 12% 0%, rgba(255, 212, 121, 0.09), transparent 70%), linear-gradient(180deg, rgba(22, 24, 40, 0.99), rgba(12, 13, 25, 0.99));
    border: 1px solid rgba(255, 212, 121, 0.26); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 212, 121, 0.08); }
.exc-card.exc-has-slot { width: min(460px, calc(100vw - 24px)); }
.exc-top { gap: 13px; align-items: center; }
.exc-glyph { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 22px;
    background: radial-gradient(circle at 50% 38%, rgba(255, 212, 121, 0.22), rgba(255, 212, 121, 0.04) 70%); border: 1px solid rgba(255, 212, 121, 0.45);
    box-shadow: 0 0 18px rgba(255, 212, 121, 0.18); text-shadow: 0 0 10px rgba(255, 212, 121, 0.5); }
.exc-heads { gap: 3px; }
.exc-title { font-size: 21px; line-height: 1.15; letter-spacing: 0.005em; }
.exc-kind { font-size: 16px; font-weight: 500; font-style: italic; letter-spacing: 0; text-transform: none; color: #9db4e6; }
.exc-body { font-size: 16px; line-height: 1.55; color: #d4d9ec; }
.exc-use { gap: 10px; padding: 10px 0 0; margin-top: 2px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0; background: none; box-shadow: none; cursor: default; }
.exc-use-k { font-size: 16px; font-weight: 600; font-style: italic; letter-spacing: 0; text-transform: none; color: #8fcf80; }
.exc-use-v { font-size: 16px; line-height: 1.45; color: #c4e6bb; }
.exc-life { gap: 10px; }
.exc-life-k { font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #d99aab; }
.exc-life-v { font-size: 16px; }
.exc-pairs-v { font-size: 16px; }
.exc-card.exc-bodyonly .exc-body { font-size: 16px; }
.exc-card { width: min(360px, calc(100vw - 24px)); gap: 8px; padding: 13px 16px 12px; border-radius: 8px; cursor: default;
    background: rgb(15, 16, 28); border: 1px solid rgba(157, 180, 230, 0.20); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); }
.exc-card.exc-has-slot { width: min(440px, calc(100vw - 24px)); }
.exc-card::before { content: ''; position: absolute; width: 12px; height: 12px; background: rgb(15, 16, 28);
    border: 0 solid rgba(157, 180, 230, 0.20); transform: rotate(45deg); }
.exc-card[data-side="right"]::before { left: -7px; top: calc(var(--exc-ay, 24px) - 6px); border-left-width: 1px; border-bottom-width: 1px; }
.exc-card[data-side="left"]::before { right: -7px; top: calc(var(--exc-ay, 24px) - 6px); border-right-width: 1px; border-top-width: 1px; }
.exc-card[data-side="below"]::before { top: -7px; left: calc(var(--exc-ax, 24px) - 6px); border-left-width: 1px; border-top-width: 1px; }
.exc-card[data-side="above"]::before { bottom: -7px; left: calc(var(--exc-ax, 24px) - 6px); border-right-width: 1px; border-bottom-width: 1px; }
.exc-top { gap: 10px; }
.exc-glyph { width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 20px; }
.exc-title { font-size: 19px; }
.exc-use { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.exc-use-k { font-style: normal; font-weight: 600; color: #8d97b8; }
.exc-use-v { color: #c8cee6; }
.exc-card[data-side="dock"]::before { display: none; }
.exc-card.exc-door { background: linear-gradient(160deg, rgba(10, 22, 40, 0.97), rgba(8, 14, 28, 0.97)); border: 1px solid rgba(80, 220, 240, 0.55);
    box-shadow: 0 0 0 1px rgba(80, 220, 240, 0.12) inset, 0 0 24px rgba(60, 200, 230, 0.25), 0 16px 40px rgba(0, 0, 0, 0.55); }
.exc-card.exc-door .exc-top { align-items: center; gap: 12px; }
.exc-card.exc-door .exc-glyph { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; }
.exc-card.exc-door .exc-door-icon, .exc-card.exc-door .exc-door-icon svg, .exc-card.exc-door .exc-door-icon img { width: 40px; height: 40px; }
.exc-card.exc-door .exc-title { font-family: 'Orbitron', 'Segoe UI', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase;
    color: #ffd6f4; text-shadow: 0 0 10px rgba(255, 120, 220, 0.45); }
.exc-card.exc-door .exc-body { color: #d8e6f2; font-size: 16px; line-height: 1.5; }
.exc-points { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.exc-points li { position: relative; padding-left: 26px; color: #e6eef6; font-size: 16px; line-height: 1.4; }
.exc-points li::before { content: "\2713"; position: absolute; left: 2px; top: 0; color: #e6eef6; font-weight: 700; }
.exc-open { align-self: center; margin-top: 6px; padding: 9px 22px; border-radius: 10px; border: 1px solid rgba(80, 220, 240, 0.7);
    background: linear-gradient(180deg, rgba(20, 60, 80, 0.7), rgba(10, 30, 45, 0.85)); color: #eaf9ff; font: 600 16px 'Segoe UI', sans-serif; cursor: pointer;
    box-shadow: 0 0 12px rgba(60, 200, 230, 0.25); }
.exc-open:hover { border-color: #8ff0ff; box-shadow: 0 0 18px rgba(90, 230, 255, 0.45); }
.exc-card:not(.exc-door) .exc-open, .exc-card:not(.exc-door) .exc-points { display: none !important; }
.exc-card.exc-door { transition: opacity 200ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1); transform: translateY(8px) scale(.985); border-radius: 14px;
    width: min(360px, calc(100vw - 24px)); padding: 16px 20px 16px; gap: 10px; }
.exc-card.exc-door.exc-show { transform: none; }
.exc-card.exc-door::before { display: none; }
.exc-card.exc-door .exc-kind { display: none; }
.exc-card.exc-door .exc-title { color: #ffe3f6; letter-spacing: 0.16em; }
.exc-arrow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 4999; pointer-events: none; overflow: visible; opacity: 0; transition: opacity 160ms ease; }
.exc-arrow.exc-arrow-show { opacity: 1; }
.exc-arrow-path { fill: none; stroke: #eafcff; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(110, 235, 255, 0.85));
    transition: stroke-dashoffset 360ms cubic-bezier(.3, .7, .2, 1) 90ms; }
.garage-door { transition: box-shadow 220ms ease, border-color 220ms ease; }
.garage-door.exc-door-lit { border-color: rgba(120, 238, 255, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(120, 238, 255, 0.9), 0 0 22px rgba(80, 220, 240, 0.55), inset 0 0 18px rgba(80, 220, 240, 0.18) !important; }
@media (prefers-reduced-motion: reduce) { .exc-card.exc-door, .exc-arrow, .exc-arrow-path { transition: none; } }
