
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: #1a1a1a;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            color: white;
        }

        #gameContainer {
            position: relative;
            width: 900px;
            height: 600px;
            background: linear-gradient(135deg, #0a0e27, #16213e);
            border: 3px solid #0f3460;
            box-shadow: 0 0 30px rgba(15, 52, 96, 0.8);
        }

        /* 横幅样式 */
        #topBanner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background: #314657;
            display: flex;
            justify-content: space-between; /* 左中右分布 */
            align-items: center;
            padding: 0 20px;
            font-size: 14px;
            color: white;
            z-index: 10000;
        }

        /* 左边组：职业 + 金币 */
        .leftGroup {
            display: flex;
            align-items: center;
            gap: 12px; /* 职业与金币间距 */
        }

        #className {
            font-weight: bold;
            font-size: 16px;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        #MoneyInfo {
            font-weight: bold;
            font-size: 16px;
            color: #fcd927; /* 金色 */
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        /* 居中层数信息 */
        #waveInfo {
            font-weight: bold;
            font-size: 16px;
            color: #ffffff;
            text-align: center;
            flex: 1;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        /* 右侧时间 */
        #gameTime {
            font-weight: bold;
            font-size: 16px;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }



        /* 游戏时间样式 */
        #gameTime {
            font-weight: bold;
            font-size: 16px;
            color: #ffffff; /* 白色 */
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }


        canvas {
            display: block;
            width: 100%;
            height: 100%;
            cursor: none;
        }

        .hudPanel {
            position: absolute;
            background: linear-gradient(180deg, rgba(49, 70, 87, 0.84), rgba(27, 42, 57, 0.82));
            border: 1px solid #0f3460;
            border-radius: 8px;
            box-shadow: 0 6px 16px rgba(6, 10, 20, 0.18);
            color: #eef4ff;
            overflow: hidden;
        }

        .hudPanelTitle {
            height: 24px;
            display: flex;
            align-items: center;
            padding: 0 10px;
            background: #314657;
            border-bottom: 1px solid rgba(15, 52, 96, 0.9);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.55);
        }

        #ui {
            top: 40px;
            left: 10px;
            width: 154px;
            font-size: 11px;
        }

        .statsPanel .statRow {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 6px;
            padding: 4px 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .statsPanel .statRow:last-child {
            border-bottom: 0;
        }

        .statsPanel .statRow span {
            color: #d8e5f3;
            font-size: 11px;
        }

        .statsPanel .statRow strong {
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

        #weapons,
        #relics {
            right: 10px;
            width: 165px;
            font-size: 11px;
            word-wrap: break-word;
        }

        #weapons {
            top: 40px;
            max-height: 148px;
        }

        #relics {
            top: 194px;
            max-height: 148px;
        }

        .panelList {
            padding: 5px 8px 6px;
            max-height: calc(100% - 24px);
            overflow-y: auto;
        }

        .weaponItem,
        .relicItem {
            position: relative;
            margin: 0;
            padding: 4px 0;
            color: #d8e5f3;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            line-height: 1.35;
        }

        .weaponItem:last-child,
        .relicItem:last-child {
            border-bottom: 0;
        }

        .removeWeaponBtn {
        float: right;
        background: rgba(255, 0, 0, 0.2);
        border: 1px solid #ff4444;
        color: #fff;
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
        padding: 0 6px;
        }
        .removeWeaponBtn:hover {
        background: rgba(255, 0, 0, 0.5);
        }


        

        /* 悬停提示 */
        #pauseHint {
            position: absolute;
            bottom: 10px;
            right: 10px;
            font-size: 12px;
            color: #888;
        }

        /* 停止菜单 */
        #pauseMenu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid #0f3460;
            padding: 40px;
            border-radius: 10px;
            text-align: center;
            display: none;
            z-index: 100;
        }

        #pauseMenu h2 {
            margin-bottom: 30px;
            font-size: 32px;
            color: #00d4ff;
        }

        #pauseMenu button {
            margin: 10px;
            padding: 10px 30px;
            font-size: 16px;
            background: #0f3460;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        #pauseMenu button:hover {
            background: #0a8cc9;
        }

        #gameOver {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            border: 3px solid #ff0000;
            padding: 50px;
            border-radius: 10px;
            text-align: center;
            display: none;
            z-index: 100;
        }

        #gameOver h1 {
            color: #ff0000;
            margin-bottom: 30px;
            font-size: 48px;
        }

        #gameOver p {
            font-size: 18px;
            margin: 15px 0;
            color: #00d4ff;
        }

        #gameOver button {
            margin-top: 30px;
            padding: 15px 50px;
            font-size: 18px;
            background: #ff0000;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        #gameOver button:hover {
            background: #cc0000;
        }

        /* 英雄选择菜单 */
        /* 英雄选择菜单：全屏 + 背景图 */
        #heroMenu {
            position: absolute;
            top: 0; 
            left: 0;
            width: 100%;
            height: 100%;
            
            background: url("image/slaythespire.jpeg"); /* ✅ 背景图片铺满 */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;

            border: 0px solid #7c3aed;
            padding: 40px;
            border-radius: 0;          /* 去掉圆角，和全屏贴合 */
            text-align: center;
            z-index: 20000;
            
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;   /* 居中内容 */
            
            backdrop-filter: brightness(0.85);  /* 可选：稍微变暗，突出选项 */
        }

        /* 标题 */
        #heroMenu h2 {
            color: #ffffff;
            margin-bottom: 10px;
            font-size: 32px;
            text-shadow: 0 0 20px #000000;
        }

        /* 副标题 */
        #heroMenu .subtitle {
            color: #ccc;
            margin-bottom: 20px;
            font-size: 14px;
        }

        /* 英雄选项 */
        .heroOptions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 10px;
            width: 600px; /* 居中显示，避免太宽 */
        }

        .heroOption {
            border: 2px solid #334155;
            border-radius: 8px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.25s;
            background: rgba(2, 6, 23, 0.6);
            text-align: left;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .heroOption:hover {
            transform: translateY(-2px);
            border-color: #7c3aed;
            background: rgba(124, 58, 237, 0.15);
        }

        .heroSwatch {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            box-shadow: 0 0 12px currentColor;
        }

        .heroMeta {
            font-size: 12px;
            color: #94a3b8;
            line-height: 1.5;
        }



        /* 让祝福菜单默认隐藏（选英雄后再显示） */
        #blessingMenu{ display:none; }


        /* 祝福菜单容器 - 在gameContainer内部 */
        /* 祝福菜单容器 - 以图片作为全屏背景 */
        #blessingMenu {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('./image/nieao.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: none;
            z-index: 100;
            padding: 0;
            border: none;
            margin: 0;
        }

        /* 内部容器 */
        .blessingContainer {
            display: flex;
            width: 100%;
            height: 100%;
            position: relative;
        }

        

        /* 左侧：角色图像 + 选项 */
        .blessingLeft {
            flex: 0 0 50%;  /* 固定宽度60% */
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;  /* 改为 flex-start 左对齐 */
            padding: 140px 0px 0px 40px;  /* 左边添加 padding */
            gap: 15px;
            overflow-y: auto;
            position: relative;
            z-index: 2;
        }

        /* 角色图像区域 */
        .blessingHeroImage {
            width: 200px;
            height: 300px;
            border: 0px solid #ffd700;
            border-radius: 8px;
            overflow: hidden;
            background: transparent;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        .blessingHeroImage img {
            width: 100%;     /* 或者 60%、50% 等 */
            height: auto;   /* 保持比例 */
            object-fit: contain;  /* 防止被拉伸 */
        }


        /* 选项容器 - 位于左下角 */
        .blessingOptionsContainer {
            width: 100%;
            max-width: 400px;
            position: absolute;
            bottom: 20px;
            left: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 3;
        }

        /* 祝福选项容器 */
        #blessingOptions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* 祝福选项卡片 */
        .blessingUpgradeOption {
            padding: 14px 12px;
            background: linear-gradient(135deg, #0f3460 0%, #1a5490 100%);
            border: 4px solid #000000;  /* 默认黑色边框 */
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            flex-shrink: 0;
            min-height: 50px; /* 选项卡高度 */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        }

        /* 悬浮效果 - 边框白色，背景暗绿色 */
        .blessingUpgradeOption:hover {
            background: linear-gradient(135deg, #1a4d3a 0%, #2a6d50 100%);  /* 暗绿色 */
            border-color: #ffffff;  /* 白色边框 */
            transform: translateX(0px);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.4);
        }

        /* 选中状态 */
        .blessingUpgradeOption.selected {
            background: linear-gradient(135deg, #2a7f62 0%, #3a9f7f 100%);
            border-color: #ffffff;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4);
        }

        .blessingUpgradeOption h3 {
            margin: 0 0 2px 0;
            font-size: 14px;
            color: #ffffff;
            font-weight: 600;
        }

        .blessingUpgradeOption p {
            margin: 0;
            font-size: 11px;
            color: #c0c8d4;
            line-height: 1.4;
        }



        



        #levelUpMenu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            border: 3px solid #00ff00;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            display: none;
            z-index: 100;
            width: 600px;
        }

        #levelUpMenu h2 {
            color: #00ff00;
            margin-bottom: 20px;
            font-size: 28px;
        }

        #shopMenu {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(rgba(18, 31, 25, 0.90), rgba(18, 31, 25, 0.90)),
                repeating-linear-gradient(
                    60deg,
                    rgba(217, 187, 114, 0.00) 0 42px,
                    rgba(217, 187, 114, 0.12) 42px 50px,
                    rgba(217, 187, 114, 0.00) 50px 84px
                ),
                linear-gradient(135deg, #75866b, #6d7b63 40%, #70806a 100%);
            border: 3px solid #2f4735;
            padding: 54px 26px 20px;
            border-radius: 0;
            text-align: left;
            display: none;
            z-index: 100;
            width: 100%;
            height: 100%;
            overflow: hidden;
            flex-direction: column;
            box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, 0.04),
                inset 0 0 140px rgba(0, 0, 0, 0.18);
        }

        .shopHeader {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 18px;
            margin-bottom: 18px;
            padding: 0 4px;
        }

        #shopMenu h2 {
            color: #f5ebcf;
            margin: 0;
            font-size: 34px;
            letter-spacing: 2px;
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
        }

        .shopCoinCounter {
            padding: 8px 16px 10px;
            border-radius: 999px;
            border: 2px solid rgba(62, 47, 26, 0.50);
            background: rgba(40, 34, 23, 0.55);
            color: #f3e6be;
            font-size: 18px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
        }

        .shopCoinCounter strong {
            color: #f2c84e;
            font-size: 28px;
            margin-left: 8px;
        }

        /* 血条位置*/
        #healthBarContainer {
            position: absolute;
            top: 550px;   /*  */
            left: 30%;
            transform: translateX(-50%);
            width: 500px;
            z-index: 25;

            background: transparent;   /* 透明 */
            border: 0;
            border-radius: 0;
            padding: 0;                /* 去掉内边距，避免黑底视觉 */
            box-shadow: none;
        }

        /* 横向排列：血条 + 数字 */
        .health-bar {
        display: inline-flex;
        align-items: center;
        gap: 8px; /* 数字与血条的间距 */
        }

        /* 血条轨道（必须有固定高度！） */
        .health-bar-bg {
            width: 500px;   /* 按需调整 */
            height: 20px;    /* 窄条的关键 */
            border: 1px solid rgba(0,0,0,0.7); /* 细描边 */
            border-radius: 0;                            /* 直角 */
            position: relative;
            overflow: hidden;
            background: black;                   /* 轨道背景透明 */
        }

        /* 红色填充条 */
        .health-bar-fill {
            display: block;
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 100%;                /* 初始满血 */
            background: red;
            border: none;
            border-radius: 0;
            transition: width 0.3s ease;
            box-shadow: none;
        }

        /* 数字在右侧、加粗 */
        .health-text,
            #healthValue {
            font-weight: 700;
            color: #fff;
            line-height: 1;
        }


        /* 经验条 */
        #expBarContainer {
            position: absolute;
            top: 570px;          /* 比血条略下方 */
            left: 30%;
            transform: translateX(-50%);
            width: 500px;
            z-index: 25;
            background: transparent;
            border: 0;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
        }

        /* 横向排列：经验条 + 数字 */
        .exp-bar {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;   
        }
        

        /* 背景轨道 */
        .exp-bar-bg {
            width: 500px;  /* 长度 */
            height: 20px;
            border: 1px solid rgba(0,0,0,0.7);
            border-radius: 0;
            position: relative;
            overflow: hidden;
            background: black;
        }

        

        /* 绿色填充 */
        .exp-bar-fill {
            display: block;
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 0%;                   /* 初始为0 */
            background: #129c50;
            border: none;
            border-radius: 0;
            transition: width 0.3s ease;
        }

        /* 数字样式 */
        .exp-text,
        #expValue {
            font-weight: 700;
            color: #fff;
            line-height: 1;
        }

        @keyframes pulse {
            from {
                opacity: 1;
            }
            to {
                opacity: 0.6;
            }
        }

        .shopItems {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin: 0;
            padding: 4px 8px 4px 0;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            align-content: start;
        }

        .shopItem {
            padding: 16px 12px 14px;
            border-radius: 6px 6px 10px 10px;
            cursor: pointer;
            transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
            text-align: left;
            border: 2px solid rgba(40, 58, 49, 0.95);
            position: relative;
            overflow: hidden;
            min-height: 246px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
        }

        .shopItem::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
            opacity: 0.35;
            pointer-events: none;
        }

        .shopItemTop,
        .shopItemFoot,
        .shopItem h3,
        .shopItem p {
            position: relative;
            z-index: 1;
        }

        .shopItemTop {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
        }

        .shopCorner,
        .shopItem .rarity {
            display: inline-flex;
            align-items: center;
            padding: 3px 7px;
            border-radius: 999px;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .shopCorner {
            color: rgba(243, 237, 220, 0.86);
            background: rgba(12, 20, 30, 0.32);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .shopItem .rarity {
            border: 1px solid currentColor;
            background: rgba(8, 15, 22, 0.20);
        }

        .shopItem .rarity.common {
            color: #d8dde6;
        }

        .shopItem .rarity.rare {
            color: #75b7ff;
        }

        .shopItem .rarity.legendary {
            color: #ffd56a;
        }

        .shopItem .price {
            padding: 0;
            border-radius: 999px;
            font-size: 17px;
            font-weight: 700;
            color: #f2c84e;
            background: transparent;
            border: 0;
        }

        .shopItem.common {
            border-color: rgba(123, 134, 142, 0.95);
            background: linear-gradient(180deg, rgba(62, 72, 83, 0.96), rgba(44, 51, 57, 0.98));
        }

        .shopItem.common:hover {
            background: linear-gradient(180deg, rgba(74, 85, 97, 0.98), rgba(47, 55, 62, 1));
            transform: translateY(-3px);
            border-color: #d6dbe2;
        }

        .shopItem.rare {
            border-color: rgba(67, 160, 201, 0.96);
            background: linear-gradient(180deg, rgba(49, 101, 136, 0.98), rgba(43, 76, 100, 1));
            box-shadow: 0 0 14px rgba(67, 160, 201, 0.10);
        }

        .shopItem.rare:hover {
            background: linear-gradient(180deg, rgba(58, 118, 158, 0.98), rgba(47, 85, 113, 1));
            transform: translateY(-3px);
            box-shadow: 0 10px 24px rgba(67, 160, 201, 0.14);
        }

        .shopItem.legendary {
            border-color: rgba(225, 181, 74, 0.95);
            background: linear-gradient(180deg, rgba(132, 92, 46, 0.98), rgba(88, 55, 29, 1));
            box-shadow: 0 0 16px rgba(225, 181, 74, 0.12);
        }

        .shopItem.legendary:hover {
            background: linear-gradient(180deg, rgba(151, 107, 57, 0.98), rgba(101, 64, 35, 1));
            transform: translateY(-3px);
            box-shadow: 0 12px 26px rgba(225, 181, 74, 0.16);
        }

        .shopItem.locked {
            opacity: 0.62;
            filter: saturate(0.7) brightness(0.9);
            cursor: not-allowed;
        }

        .shopItem.soldOut {
            filter: grayscale(0.12);
        }

        .shopItem h3 {
            margin-bottom: 8px;
            font-size: 18px;
            color: #f6f1de;
            letter-spacing: 0.02em;
            text-align: center;
            line-height: 1.25;
        }

        .shopItem p {
            font-size: 11px;
            color: rgba(244, 242, 232, 0.88);
            margin: 4px 0;
            min-height: 0;
        }

        .shopItem .shopDesc {
            color: rgba(244, 242, 232, 0.90);
            line-height: 1.45;
            margin-bottom: 8px;
            text-align: center;
        }

        .shopItem .lore {
            font-size: 10px;
            color: rgba(230, 220, 183, 0.72);
            margin-top: 4px;
            line-height: 1.4;
            font-style: italic;  /* 斜体可选 */
            opacity: 0.85;
            text-align: center;
        }

        .shopItemFoot {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 28px;
            margin-top: 10px;
        }

        .shopActions {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 12px;
            padding: 12px 6px 0 0;
        }

        .shopCloseBtn {
            padding: 12px 22px;
            font-size: 14px;
            letter-spacing: 0.04em;
            border-radius: 999px;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
            border: 1px solid transparent;
            color: white;
        }

        .shopCloseBtn.secondary {
            background: rgba(91, 49, 41, 0.92);
            border-color: rgba(138, 91, 72, 0.98);
            color: #f5e6cf;
        }

        .shopCloseBtn.primary {
            background: rgba(54, 72, 46, 0.94);
            border-color: rgba(113, 137, 92, 0.98);
            color: #edf1dd;
            font-weight: 700;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
        }

        .shopCloseBtn:hover {
            transform: translateY(-1px);
        }

        .shopCloseBtn.secondary:hover {
            background: rgba(110, 58, 48, 0.98);
        }

        .shopCloseBtn.primary:hover {
            background: rgba(68, 92, 58, 0.98);
        }

        .upgradeOptions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

        .upgradeOption {
            padding: 15px 20px;
            border: 2px solid #00d4ff;
            border-radius: 5px;
            background: rgba(0, 212, 255, 0.1);
            cursor: pointer;
            transition: all 0.3s;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .upgradeOption:hover {
            background: rgba(0, 212, 255, 0.3);
            border-color: #00ff00;
            transform: translateX(5px);
        }

        .upgradeOption.blessing {
            border-color: #000000;
            background: rgba(7, 73, 93, 0.1);
        }

        .upgradeOption.blessing:hover {
            background: rgba(255, 215, 0, 0.3);
            border-color: #ffed4e;
        }

        .upgradeNumber {
            font-size: 24px;
            font-weight: bold;
            color: #00d4ff;
            min-width: 30px;
        }

        .upgradeContent {
            flex: 1;
        }

        .upgradeOption h3 {
            margin-bottom: 5px;
            font-size: 16px;
        }

        .upgradeOption p {
            font-size: 12px;
            color: #888;
            margin: 0;
        }

        /* ===== 自定义 Tooltip ===== */
        .tooltip {
        position: fixed;
        z-index: 99999;            /* 比菜单更高 */
        pointer-events: none;
        display: none;
        max-width: 280px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #0f3460;
        background: rgba(3, 7, 18, 0.95);
        color: #e5e7eb;
        font-size: 12px;
        line-height: 1.5;
        box-shadow: 0 0 18px rgba(15, 52, 96, .6);
        }
        .tooltip h4 { margin: 0 0 6px; font-size: 13px; color: #00d4ff; }
        .tooltip .muted { color:#94a3b8; }
        .tooltip .tag { font-size: 11px; color:#a78bfa; }
        .tooltip .num { color:#ffd700; }


