        /* ---------------- ЭКРАН «БИРЖА» ---------------- */
        #screen-bourse {
            background: linear-gradient(to bottom, #1e3a5f, #274b73);
            z-index: 50;
        }
        #bourse-wrap {
            position: absolute;
            top: 80px;
            bottom: 83px;
            left: 0;
            right: 0;
            padding: 6px 12px;
            display: flex;
            justify-content: center;
        }
        .bourse-card {
            width: min(100%, 560px);
            height: 100%;
            min-height: 0;
            display: flex;
            flex-direction: column;
            gap: clamp(6px, 1.4vh, 12px);
            background: rgba(255,255,255,0.93);
            border: 3px solid #3b82f6;
            border-radius: 20px;
            box-shadow: 0 5px 0 #1e40af, 0 8px 18px rgba(0,0,0,0.35);
            padding: clamp(8px, 1.6vh, 16px);
            color: #1e3a8a;
            overflow: hidden;
        }
        .b-head {
            flex: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .b-head-left { min-width: 0; }
        .b-title {
            font-weight: 900;
            font-size: clamp(18px, 3.4vh, 26px);
            text-transform: uppercase;
            letter-spacing: 1px;
            line-height: 1;
        }
        .b-sub {
            font-weight: 800;
            font-size: clamp(10px, 1.6vh, 13px);
            opacity: 0.7;
            margin-top: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .b-price {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            background: #dbeafe;
            border-radius: 12px;
            padding: 6px 10px;
        }
        .b-ico { width: clamp(22px, 3.6vh, 30px); height: clamp(22px, 3.6vh, 30px); flex-shrink: 0; }
        .b-ice { background: var(--img-ice) center/contain no-repeat; }
        .b-price-val { font-weight: 900; font-size: clamp(16px, 2.9vh, 22px); line-height: 1.05; white-space: nowrap; }
        .b-change { font-weight: 900; font-size: clamp(10px, 1.6vh, 13px); white-space: nowrap; line-height: 1.1; }
        .b-change.up { color: #16a34a; }
        .b-change.down { color: #dc2626; }

        .b-chart-box {
            flex: 1 1 0;
            min-height: 90px;
            position: relative;
            border-radius: 14px;
            overflow: hidden;
            background: linear-gradient(to bottom, #12304f, #0b1f36);
            box-shadow: inset 0 0 0 2px #3b82f6, inset 0 4px 14px rgba(0,0,0,0.4);
        }
        #b-chart {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            touch-action: none;
            display: block;
        }

        .b-trade {
            flex: none;
            display: flex;
            flex-direction: column;
            gap: clamp(4px, 1vh, 10px);
        }
        .b-mode {
            display: flex;
            gap: 3px;
            background: #dbeafe;
            border-radius: 12px;
            padding: 3px;
        }
        .b-mode button {
            flex: 1;
            font-family: inherit;
            font-weight: 900;
            border: none;
            cursor: pointer;
            border-radius: 9px;
            background: transparent;
            color: #1e3a8a;
            padding: clamp(5px, 1vh, 8px) 0;
            font-size: clamp(13px, 2.2vh, 16px);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .b-mode button.active {
            background: #3b82f6;
            color: #fff;
            box-shadow: 0 2px 0 #1e40af;
        }
        .b-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            font-weight: 800;
            font-size: clamp(13px, 2.2vh, 17px);
        }
        .b-row > div { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .b-row b { font-weight: 900; }
        #b-slider { width: 100%; height: clamp(24px, 4vh, 34px); margin: 0; accent-color: #3b82f6; touch-action: auto; }
        .bourse-quick { display: flex; gap: 8px; }
        .bourse-quick button, #b-sell, #reset-btn {
            font-family: inherit; font-weight: 900; border: none; cursor: pointer; border-radius: 12px;
        }
        .bourse-quick button {
            flex: 1; padding: clamp(6px, 1.2vh, 10px) 0; font-size: clamp(13px, 2.2vh, 16px);
            background: #93c5fd; color: #1e3a8a; box-shadow: 0 3px 0 #3b82f6;
        }
        .bourse-quick button:active { transform: translateY(2px); box-shadow: 0 1px 0 #3b82f6; }
        .b-sellrow { align-items: stretch; }
        .b-get {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            line-height: 1.15;
            font-size: clamp(11px, 1.8vh, 14px);
        }
        .b-get b { font-size: clamp(15px, 2.6vh, 20px); }
        #b-sell {
            flex: 1.3;
            padding: clamp(8px, 1.8vh, 14px) 0;
            font-size: clamp(15px, 2.6vh, 20px);
            text-transform: uppercase; letter-spacing: 1px;
            background: linear-gradient(to bottom, #4ade80, #16a34a); color: #fff;
            box-shadow: 0 4px 0 #166534; text-shadow: 0 2px 0 rgba(0,0,0,0.3);
        }
        #b-sell.buy { background: linear-gradient(to bottom, #60a5fa, #2563eb); box-shadow: 0 4px 0 #1e40af; }
        #b-sell:active { transform: translateY(3px); box-shadow: 0 1px 0 #166534; }
        #b-sell:disabled { background: #9ca3af; box-shadow: 0 4px 0 #6b7280; cursor: default; }

        /* Широкий экран: график слева, торговля справа */
        @media (min-aspect-ratio: 11/10) {
            .bourse-card {
                width: min(100%, 920px);
                display: grid;
                grid-template-columns: 1.5fr 1fr;
                grid-template-rows: auto minmax(0, 1fr);
                column-gap: 16px;
            }
            .b-head { grid-column: 1 / 3; }
            .b-chart-box { min-height: 0; }
            .b-trade { justify-content: center; }
        }
