@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap');

:root {
    /* Exact VS Code Dark+ Palette */
    --vscode-bg-editor: #181a1f;
    --vscode-bg-sidebar: #21252b;
    --vscode-bg-activitybar: #1e2227;
    --vscode-bg-statusbar: #007acc;
    --vscode-bg-titlebar: #282c34;
    --vscode-bg-tab-active: #181a1f;
    --vscode-bg-tab-inactive: #21252b;
    --vscode-bg-input: #282c34;
    
    --vscode-border: #383e4a;
    --vscode-active-border: #007acc;
    --vscode-text-main: #abb2bf;
    --vscode-text-muted: #828997;
    --vscode-text-bright: #ffffff;

    /* VS Code C# Syntax Colors */
    --syn-keyword: #61afef;
    --syn-control: #c678dd;
    --syn-type: #56b6c2;
    --syn-string: #98c379;
    --syn-method: #e5c07b;
    --syn-var: #e06c75;
    --syn-comment: #7f848e;
    --syn-num: #d19a66;

    /* Badges & Status */
    --vsc-error: #e06c75;
    --vsc-warning: #e5c07b;
    --vsc-info: #61afef;
    --vsc-success: #98c379;

    --card-w: 245px;
    --card-h: 335px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--vscode-bg-editor);
    color: var(--vscode-text-bright);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;
    font-weight: 700;
    user-select: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-weight: 700;
}

/* Floating Damage & Shield Numbers - Slower, Weighty, Readable */
.floating-vfx-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.floating-dmg-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ff4757;
    text-shadow: 0 0 15px rgba(0, 0, 0, 1), 0 0 30px rgba(255, 71, 87, 0.95);
    animation: float-damage-up 2.2s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
    white-space: nowrap;
    letter-spacing: -1.5px;
}

.floating-dmg-number.crit {
    font-size: 3.4rem;
    color: #ffa502;
    text-shadow: 0 0 18px rgba(0, 0, 0, 1), 0 0 40px rgba(255, 165, 2, 1);
    animation: float-crit-up 2.2s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
}

.floating-dmg-number.pierce {
    color: #00f0ff;
    text-shadow: 0 0 18px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 240, 255, 0.95);
    animation: float-damage-up 2.2s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
}

.floating-dmg-number.shield {
    color: #61afef;
    text-shadow: 0 0 15px rgba(0, 0, 0, 1), 0 0 30px rgba(97, 175, 239, 0.95);
    animation: float-damage-up 2.2s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
}

@keyframes float-damage-up {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.6);
    }
    15% {
        opacity: 1;
        transform: translateY(-10px) scale(1.35);
    }
    35% {
        transform: translateY(-25px) scale(1.1);
    }
    75% {
        opacity: 1;
        transform: translateY(-55px) scale(1.0);
    }
    100% {
        opacity: 0;
        transform: translateY(-90px) scale(0.85);
    }
}

@keyframes float-crit-up {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5) rotate(-10deg);
    }
    15% {
        opacity: 1;
        transform: translateY(-15px) scale(1.55) rotate(6deg);
    }
    35% {
        transform: translateY(-30px) scale(1.2) rotate(0deg);
    }
    75% {
        opacity: 1;
        transform: translateY(-65px) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translateY(-105px) scale(0.9);
    }
}

/* Slower Dramatic Enemy Attack Lunge Animation (1.4s) */
.enemy-attacking-lunge {
    animation: enemy-attack-strike 1.4s cubic-bezier(0.25, 1, 0.4, 1) forwards !important;
    z-index: 120 !important;
    border-color: #ff4757 !important;
    box-shadow: 0 0 55px rgba(255, 71, 87, 1), 0 20px 45px rgba(0, 0, 0, 0.9) !important;
}

@keyframes enemy-attack-strike {
    0% {
        transform: translateY(0) scale(1);
    }
    25% {
        /* Wind-up backward */
        transform: translateY(-25px) scale(1.14);
        box-shadow: 0 0 45px rgba(255, 71, 87, 0.9), 0 0 20px rgba(255, 255, 255, 0.8);
    }
    50% {
        /* Heavy Strike forward into player */
        transform: translateY(85px) scale(1.28);
        box-shadow: 0 0 80px rgba(255, 71, 87, 1);
    }
    70% {
        /* Impact hold */
        transform: translateY(65px) scale(1.18);
    }
    100% {
        /* Return to line */
        transform: translateY(0) scale(1);
    }
}

.acting-enemy-banner {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #e06c75, #b31d28);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(224, 108, 117, 0.95);
    white-space: nowrap;
    animation: pulse-banner 0.9s infinite alternate;
}

@keyframes pulse-banner {
    0% { transform: translateX(-50%) scale(0.96); opacity: 0.9; }
    100% { transform: translateX(-50%) scale(1.06); opacity: 1; }
}

/* Hit Impact Screen & Card Shake (0.6s) */
.hit-shake {
    animation: shake-element 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake-element {
    10%, 90% { transform: translate3d(-5px, 0, 0) scale(0.97); }
    20%, 80% { transform: translate3d(7px, 0, 0) scale(1.03); }
    30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
    40%, 60% { transform: translate3d(8px, 0, 0); }
}

/* Flash Impact Overlay */
.impact-flash {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.8) 0%, transparent 80%);
    pointer-events: none;
    z-index: 150;
    animation: flash-fade 0.55s ease-out forwards;
}

@keyframes flash-fade {
    0% { opacity: 1; transform: scale(1.18); }
    100% { opacity: 0; transform: scale(1); }
}

/* Card Launch Fly Animation */
.card-launched {
    animation: card-launch-swoosh 0.65s ease-out forwards;
    pointer-events: none;
}

@keyframes card-launch-swoosh {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    45% {
        transform: scale(1.22) translateY(-150px);
        opacity: 0.95;
        box-shadow: 0 0 40px rgba(0, 122, 204, 0.95);
    }
    100% {
        transform: scale(0.15) translateY(-320px);
        opacity: 0;
    }
}

/* VS Code Title Bar */
.vsc-titlebar {
    height: 38px;
    background-color: var(--vscode-bg-titlebar);
    border-bottom: 1px solid var(--vscode-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--vscode-text-bright);
}

.vsc-search-palette {
    background: var(--vscode-bg-input);
    border: 1px solid #484f58;
    border-radius: 6px;
    padding: 4px 28px;
    color: var(--vscode-text-main);
    font-size: 0.82rem;
    font-weight: 800;
    min-width: 360px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* VS Code Shell Layout */
.vsc-shell {
    display: flex;
    height: calc(100vh - 38px - 26px);
    overflow: hidden;
}

/* Activity Bar */
.vsc-activitybar {
    width: 52px;
    background-color: var(--vscode-bg-activitybar);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-right: 1px solid var(--vscode-border);
    flex-shrink: 0;
}

.activity-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vscode-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
}

.activity-icon:hover {
    color: #ffffff;
}

.activity-icon.active {
    color: #ffffff;
}

.activity-icon.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background-color: #007acc;
}

/* VS Code Tabs Bar */
.vsc-tabs-bar {
    height: 38px;
    background-color: var(--vscode-bg-sidebar);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--vscode-border);
    overflow-x: auto;
    font-size: 0.85rem;
    font-weight: 800;
}

.vsc-tab {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background-color: var(--vscode-bg-tab-inactive);
    color: var(--vscode-text-muted);
    border-right: 1px solid var(--vscode-border);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.vsc-tab:hover {
    color: var(--vscode-text-bright);
}

.vsc-tab.active {
    background-color: var(--vscode-bg-tab-active);
    color: var(--vscode-text-bright);
}

.vsc-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: var(--vscode-active-border);
}

/* Breadcrumbs Bar */
.vsc-breadcrumbs {
    height: 28px;
    background-color: var(--vscode-bg-editor);
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vscode-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Debug Floating Action Toolbar */
.vsc-debug-toolbar {
    background-color: #21252b;
    border: 1.5px solid #484f58;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.vsc-debug-btn {
    background: transparent;
    border: none;
    color: var(--vscode-text-bright);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.vsc-debug-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.vsc-debug-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* VS Code Status Bar (Bottom) */
.vsc-statusbar {
    height: 26px;
    background-color: var(--vscode-bg-statusbar);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.statusbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    height: 100%;
    cursor: pointer;
}

.statusbar-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================
   VIBRANT & COLORFUL SLAYSHARP CARDS (VS CODE CYBER THEME)
   ========================================================== */
.game-card {
    width: var(--card-w);
    height: var(--card-h);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    flex-shrink: 0;
    user-select: none;
}

/* Diagonal Holographic Sheen Overlay */
.card-gloss-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.game-card:hover .card-gloss-sheen {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%, rgba(255, 255, 255, 0.1) 100%);
}

.game-card:hover {
    transform: translateY(-26px) scale(1.06);
    z-index: 50;
}

/* ================= ATTACK CARDS (CRIMSON / EMBER NEON) ================= */
.game-card.type-attack {
    background: linear-gradient(175deg, #441a25 0%, #2e1119 45%, #1f0b11 100%);
    border: 3px solid #ff4757;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.45);
}

.game-card.type-attack:hover {
    border-color: #ff6b81;
    box-shadow: 0 20px 48px rgba(255, 71, 87, 0.75), 0 0 30px rgba(255, 107, 129, 0.6);
}

.game-card.type-attack .card-vsc-header {
    background: linear-gradient(90deg, #681a29 0%, #48121d 100%);
    border-bottom: 2px solid #ff4757;
}

.game-card.type-attack .card-art-box {
    background: radial-gradient(circle at center, rgba(255, 71, 87, 0.45) 0%, #2e1119 80%);
    border-bottom: 1.5px solid rgba(255, 71, 87, 0.5);
}

.game-card.type-attack .card-art-aura {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.7) 0%, transparent 70%);
    filter: blur(4px);
}

.game-card.type-attack .card-editor-viewport {
    background-color: #210d14;
    border-bottom: 1.5px solid rgba(255, 71, 87, 0.35);
}

.game-card.type-attack .card-vsc-footer {
    background: linear-gradient(180deg, #301019 0%, #421523 100%);
}

.game-card.type-attack .card-cost-badge {
    background: linear-gradient(135deg, #ff4757 0%, #b33939 100%);
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.9);
}

.game-card.type-attack .card-watermark-icon {
    color: #ff4757;
}

/* ================= SKILL / DEFENSE CARDS (ELECTRIC SAPPHIRE / CYAN) ================= */
.game-card.type-skill {
    background: linear-gradient(175deg, #133a5b 0%, #0d273d 45%, #081a29 100%);
    border: 3px solid #00d2ff;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.45);
}

.game-card.type-skill:hover {
    border-color: #70a1ff;
    box-shadow: 0 20px 48px rgba(0, 210, 255, 0.75), 0 0 30px rgba(112, 161, 255, 0.6);
}

.game-card.type-skill .card-vsc-header {
    background: linear-gradient(90deg, #164f80 0%, #0e3252 100%);
    border-bottom: 2px solid #00d2ff;
}

.game-card.type-skill .card-art-box {
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.45) 0%, #0d273d 80%);
    border-bottom: 1.5px solid rgba(0, 210, 255, 0.5);
}

.game-card.type-skill .card-art-aura {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.7) 0%, transparent 70%);
    filter: blur(4px);
}

.game-card.type-skill .card-editor-viewport {
    background-color: #091b2c;
    border-bottom: 1.5px solid rgba(0, 210, 255, 0.35);
}

.game-card.type-skill .card-vsc-footer {
    background: linear-gradient(180deg, #0e2940 0%, #153c5e 100%);
}

.game-card.type-skill .card-cost-badge {
    background: linear-gradient(135deg, #00d2ff 0%, #0984e3 100%);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.9);
}

.game-card.type-skill .card-watermark-icon {
    color: #00d2ff;
}

/* ================= POWER CARDS (AMETHYST / CYBER MAGENTA) ================= */
.game-card.type-power {
    background: linear-gradient(175deg, #441860 0%, #2d0e40 45%, #1b0726 100%);
    border: 3px solid #e056fd;
    box-shadow: 0 8px 25px rgba(224, 86, 253, 0.45);
}

.game-card.type-power:hover {
    border-color: #be2edd;
    box-shadow: 0 20px 48px rgba(224, 86, 253, 0.75), 0 0 30px rgba(190, 46, 221, 0.6);
}

.game-card.type-power .card-vsc-header {
    background: linear-gradient(90deg, #5c1e82 0%, #3d1257 100%);
    border-bottom: 2px solid #e056fd;
}

.game-card.type-power .card-art-box {
    background: radial-gradient(circle at center, rgba(224, 86, 253, 0.45) 0%, #2d0e40 80%);
    border-bottom: 1.5px solid rgba(224, 86, 253, 0.5);
}

.game-card.type-power .card-art-aura {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 86, 253, 0.7) 0%, transparent 70%);
    filter: blur(4px);
}

.game-card.type-power .card-editor-viewport {
    background-color: #1b0829;
    border-bottom: 1.5px solid rgba(224, 86, 253, 0.35);
}

.game-card.type-power .card-vsc-footer {
    background: linear-gradient(180deg, #2e0d42 0%, #431460 100%);
}

.game-card.type-power .card-cost-badge {
    background: linear-gradient(135deg, #e056fd 0%, #686de0 100%);
    box-shadow: 0 0 12px rgba(224, 86, 253, 0.9);
}

.game-card.type-power .card-watermark-icon {
    color: #e056fd;
}

/* ================= CURSE / DEBT CARDS (HAZARD ORANGE) ================= */
.game-card.type-curse {
    background: linear-gradient(175deg, #442a12 0%, #2e1a09 45%, #1c0e04 100%);
    border: 3px solid #ffa502;
    box-shadow: 0 8px 25px rgba(255, 165, 2, 0.45);
}

.game-card.type-curse .card-watermark-icon {
    color: #ffa502;
}

/* ================= FULL-WIDTH CARD TYPE RIBBON BANNER ================= */
.card-type-banner {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.card-type-banner.type-tag-attack {
    background: linear-gradient(90deg, #eb3b5a 0%, #ff4757 50%, #fa8231 100%);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.card-type-banner.type-tag-skill {
    background: linear-gradient(90deg, #0984e3 0%, #00d2ff 50%, #00cec9 100%);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.card-type-banner.type-tag-power {
    background: linear-gradient(90deg, #6c5ce7 0%, #a55eea 50%, #e056fd 100%);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.card-banner-icon {
    font-size: 0.95rem;
}

.card-banner-text {
    font-size: 0.76rem;
    font-weight: 900;
}

.card-banner-upgraded {
    margin-left: auto;
    background: #ffd700;
    color: #000000;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}

/* Translucent Background Emblem Watermark */
.card-watermark-icon {
    position: absolute;
    font-size: 5rem;
    opacity: 0.18;
    pointer-events: none;
    transform: scale(1.35);
    z-index: 1;
    filter: drop-shadow(0 0 12px currentColor);
    user-select: none;
}

/* ================= TIER-1 UPGRADED GOLDEN HALO ================= */
.game-card.tier-upgraded {
    border: 3.5px solid #ffd700 !important;
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.6), inset 0 0 18px rgba(255, 215, 0, 0.3) !important;
}

.game-card.tier-upgraded .card-upgraded-title {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    font-weight: 900;
}

.card-type-mini-icon {
    font-size: 0.95rem;
    margin-right: 2px;
}

.card-tier-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff9f43 100%) !important;
    color: #000000 !important;
    font-size: 0.65rem;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    letter-spacing: 0.5px;
    animation: gold-badge-shimmer 2s infinite alternate ease-in-out;
}

@@keyframes gold-badge-shimmer {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.08); filter: brightness(1.25); }
}

/* ================= CARD SELECTION & PLAYABLE STATES ================= */
.game-card.playable {
    cursor: pointer;
}

.game-card.selected {
    transform: translateY(-46px) scale(1.12) !important;
    border-color: #2ed573 !important;
    box-shadow: 0 0 38px rgba(46, 213, 115, 0.95), 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 60;
}

.game-card.unaffordable {
    opacity: 0.45;
    filter: grayscale(70%) brightness(0.7);
    cursor: not-allowed;
}

/* ================= CARD HEADER & LABELS ================= */
.card-vsc-header {
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    z-index: 5;
}

.card-tab-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
}

.card-hash-icon {
    color: #61afef;
    font-size: 0.95rem;
    font-weight: 900;
}

.card-cost-badge {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 2px 9px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

/* ================= CARD ART BOX ================= */
.card-art-box {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.card-art-icon {
    font-size: 3.1rem;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.game-card:hover .card-art-icon {
    transform: scale(1.18);
}

.card-type-tag {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    z-index: 3;
}

.type-tag-attack { background: rgba(255, 71, 87, 0.35); color: #ff6b81; border: 1px solid #ff4757; }
.type-tag-skill { background: rgba(0, 210, 255, 0.35); color: #70a1ff; border: 1px solid #00d2ff; }
.type-tag-power { background: rgba(224, 86, 253, 0.35); color: #e056fd; border: 1px solid #be2edd; }

/* ================= CODE EDITOR VIEWPORT ================= */
.card-editor-viewport {
    flex-grow: 1;
    display: flex;
    padding: 6px 0;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.45;
    position: relative;
    z-index: 5;
}

.card-gutter {
    width: 24px;
    color: #747d8c;
    font-weight: 800;
    text-align: right;
    padding-right: 6px;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
}

.card-code-content {
    flex-grow: 1;
    padding: 0 8px;
    word-break: break-word;
    font-weight: 700;
}

.card-code-comment {
    color: #7bed9f;
    font-size: 0.68rem;
    font-style: italic;
    opacity: 0.85;
}

.card-code-line {
    font-size: 0.77rem;
    font-weight: 800;
    color: #f1f2f6;
}

/* ================= CARD FOOTER DESCRIPTION ================= */
.card-vsc-footer {
    padding: 8px 10px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.12);
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

.card-footer-text {
    font-size: 0.89rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
}

/* Dynamic Glowing Stat Pills in Card Descriptions */
.desc-dmg { color: #ff6b81; font-weight: 900; text-shadow: 0 0 8px rgba(255, 107, 129, 0.6); }
.desc-shield { color: #70a1ff; font-weight: 900; text-shadow: 0 0 8px rgba(112, 161, 255, 0.6); }
.desc-pierce { color: #00f0ff; font-weight: 900; text-shadow: 0 0 8px rgba(0, 240, 255, 0.6); }
.desc-cpu { color: #ffd32a; font-weight: 900; }
.desc-str { color: #2ed573; font-weight: 900; text-shadow: 0 0 8px rgba(46, 213, 115, 0.6); }
.desc-weak { color: #56b6c2; font-weight: 900; }
.desc-leak { color: #ffa502; font-weight: 900; }

/* Enemy Bug VS Code Problem Card */
.enemy-card {
    background-color: rgba(33, 37, 43, 0.94);
    border: 2px solid #383e4a;
    border-radius: 12px;
    padding: 16px;
    width: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

.enemy-card:hover {
    border-color: #e06c75;
    box-shadow: 0 14px 32px rgba(224, 108, 117, 0.3);
}

.enemy-card.targeted {
    border-color: #e06c75 !important;
    box-shadow: 0 0 30px rgba(224, 108, 117, 0.9) !important;
    transform: scale(1.06);
}

/* Shield Barrier Visual Aura */
.shield-active-barrier {
    border-color: #61afef !important;
    box-shadow: 0 0 25px rgba(97, 175, 239, 0.7), inset 0 0 15px rgba(97, 175, 239, 0.2) !important;
    animation: shield-aura-pulse 2s infinite alternate ease-in-out;
}

@keyframes shield-aura-pulse {
    0% { box-shadow: 0 0 15px rgba(97, 175, 239, 0.5), inset 0 0 10px rgba(97, 175, 239, 0.15); }
    100% { box-shadow: 0 0 30px rgba(97, 175, 239, 0.9), inset 0 0 20px rgba(97, 175, 239, 0.3); }
}

.enemy-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 108, 117, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.2rem;
    margin: 6px 0;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

.error-squiggle {
    text-decoration: underline wavy #e06c75;
    font-weight: 900;
}

/* Intent Forecast Ribbon */
.intent-badge {
    background: #181a1f;
    border: 1.5px solid #383e4a;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.intent-attack { color: #e06c75; border-color: rgba(224, 108, 117, 0.7); box-shadow: 0 0 15px rgba(224, 108, 117, 0.4); }
.intent-defend { color: #61afef; border-color: rgba(97, 175, 239, 0.7); box-shadow: 0 0 15px rgba(97, 175, 239, 0.4); }
.intent-debuff { color: #e5c07b; border-color: rgba(229, 192, 123, 0.7); box-shadow: 0 0 15px rgba(229, 192, 123, 0.4); }
.intent-buff { color: #98c379; border-color: rgba(152, 195, 121, 0.7); box-shadow: 0 0 15px rgba(152, 195, 121, 0.4); }

/* Health / SLA Progress Bar */
.hp-bar-container {
    width: 100%;
    height: 22px;
    background: #181a1f;
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    border: 1.5px solid #383e4a;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e06c75 0%, #e5c07b 50%, #98c379 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-bar-shield-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(97, 175, 239, 0.55);
    border-right: 2px solid #61afef;
    pointer-events: none;
    transition: width 0.3s ease;
}

.hp-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,1);
    z-index: 10;
}

.shield-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.95rem;
    background: linear-gradient(90deg, #007acc, #61afef);
    padding: 3px 12px;
    border-radius: 10px;
    border: 1.5px solid #61afef;
    box-shadow: 0 0 15px rgba(97, 175, 239, 0.8);
    animation: shield-pill-pulse 1.8s infinite alternate ease-in-out;
}

@keyframes shield-pill-pulse {
    0% { transform: scale(0.97); }
    100% { transform: scale(1.05); }
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1.5px solid #383e4a;
    background: #181a1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}

.status-pill:hover {
    transform: scale(1.1);
}

.status-strength { border-color: #e5c07b; color: #e5c07b; background: rgba(229, 192, 123, 0.15); box-shadow: 0 0 10px rgba(229, 192, 123, 0.4); }
.status-vulnerable { border-color: #e06c75; color: #e06c75; background: rgba(224, 108, 117, 0.15); box-shadow: 0 0 10px rgba(224, 108, 117, 0.4); }
.status-weak { border-color: #56b6c2; color: #56b6c2; background: rgba(86, 182, 194, 0.15); box-shadow: 0 0 10px rgba(86, 182, 194, 0.4); }
.status-memoryleak { border-color: #d19a66; color: #d19a66; background: rgba(209, 154, 102, 0.15); box-shadow: 0 0 10px rgba(209, 154, 102, 0.4); }

/* CPU Core Orb */
.cpu-reactor {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #007acc, #181a1f);
    border: 3px solid #61afef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 122, 204, 0.7);
}

/* Custom Scrollbar for VS Code look */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #181a1f;
}
::-webkit-scrollbar-thumb {
    background: #383e4a;
}
::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Shield Preview & Ghost Shield Indicators */
.shield-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00f0ff;
    font-weight: 900;
    font-size: 0.95rem;
    background: rgba(0, 122, 204, 0.4);
    padding: 3px 12px;
    border-radius: 10px;
    border: 2px dashed #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
    animation: shield-preview-bounce 1s infinite alternate ease-in-out;
}

@@keyframes shield-preview-bounce {
    0% { transform: scale(0.98); box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
    100% { transform: scale(1.06); box-shadow: 0 0 25px rgba(0, 240, 255, 0.9); }
}

.shield-preview-pulse {
    color: #00f0ff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    animation: text-pulse-shield 1s infinite alternate;
}

@@keyframes text-pulse-shield {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.shield-preview-active {
    border-color: #00f0ff !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45) !important;
}

.hp-bar-shield-ghost {
    position: absolute;
    top: 0;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0, 240, 255, 0.6),
        rgba(0, 240, 255, 0.6) 6px,
        rgba(0, 122, 204, 0.4) 6px,
        rgba(0, 122, 204, 0.4) 12px
    );
    border: 1.5px dashed #00f0ff;
    pointer-events: none;
    animation: ghost-shield-shimmer 1.2s infinite alternate ease-in-out;
    z-index: 5;
}

@@keyframes ghost-shield-shimmer {
    0% { opacity: 0.65; filter: brightness(1); }
    100% { opacity: 1; filter: brightness(1.3); }
}

