        /* ---------- Хаб «Добыча»: список ферм ---------- */
        .mine-view {
            position: absolute;
            top: 78px;
            bottom: 83px;
            left: 0;
            right: 0;
            max-width: 560px;
            margin: 0 auto;
            padding: 4px 12px 0;
            display: flex;
            flex-direction: column;
            gap: clamp(6px, 1.2vh, 12px);
        }
        .mine-view.hidden, #mine-farm.hidden { display: none; }
        #mine-farm { position: absolute; inset: 0; }

        .hub-card {
            flex: none;
            background: rgba(255,255,255,0.93);
            border: 3px solid #3b82f6;
            border-radius: 18px;
            box-shadow: 0 4px 0 #1e40af, 0 6px 14px rgba(0,0,0,0.3);
            padding: clamp(8px, 1.5vh, 14px);
            color: #1e3a8a;
            display: flex;
            flex-direction: column;
            gap: clamp(6px, 1.2vh, 10px);
        }
        .hub-top { display: flex; align-items: center; gap: 10px; }
        .hub-top .b-ico { width: clamp(30px, 5vh, 44px); height: clamp(30px, 5vh, 44px); }
        .hub-rate { font-weight: 900; font-size: clamp(22px, 4.4vh, 34px); line-height: 1; white-space: nowrap; }
        .hub-rate small { font-size: 0.5em; opacity: 0.7; }
        .hub-label { font-weight: 800; font-size: clamp(11px, 1.8vh, 14px); color: #16a34a; margin-top: 2px; }
        #hub-build {
            font-family: inherit; font-weight: 900; border: none; cursor: pointer; border-radius: 12px;
            padding: clamp(8px, 1.6vh, 13px) 0; font-size: clamp(15px, 2.6vh, 19px);
            text-transform: uppercase; letter-spacing: 1px; color: #fff;
            background: linear-gradient(to bottom, #60a5fa, #2563eb); box-shadow: 0 4px 0 #1e40af;
            text-shadow: 0 2px 0 rgba(0,0,0,0.25);
        }
        #hub-build:active { transform: translateY(3px); box-shadow: 0 1px 0 #1e40af; }
        #hub-build.disabled { background: linear-gradient(to bottom, #9ca3af, #6b7280); box-shadow: 0 4px 0 #4b5563; }
        .hub-title {
            flex: none; display: flex; justify-content: space-between; align-items: baseline;
            color: #fff; font-weight: 900; font-size: clamp(15px, 2.6vh, 20px);
            padding: 0 4px; text-shadow: 0 2px 0 rgba(0,0,0,0.3);
        }
        #hub-count { opacity: 0.75; font-size: 0.85em; }
        .hub-pagination { flex: none; height: 36px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #fff; font-size: 13px; font-weight: 900; text-shadow: 0 2px 3px rgba(0,0,0,.35); }
        .hub-pagination button { width: 38px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 10px; color: #fff; background: rgba(16,62,115,.55); font-family: inherit; font-size: 25px; line-height: 1; font-weight: 900; cursor: pointer; }
        .hub-pagination button:disabled { opacity: .35; cursor: default; }
        #hub-list {
            flex: 1 1 0; min-height: 0; display: flex; flex-direction: column;
            gap: clamp(5px, 1vh, 10px); padding-bottom: 6px;
        }

        .slot-card {
            flex: 1 1 0; min-height: 0; max-height: 92px;
            display: flex; align-items: center; gap: clamp(8px, 1.6vh, 12px);
            padding: 0 clamp(8px, 1.6vh, 14px);
            background: rgba(255,255,255,0.93);
            border: 2px solid #3b82f6; border-radius: 16px; box-shadow: 0 3px 0 #1e40af;
            color: #1e3a8a; cursor: pointer; overflow: hidden;
        }
        .slot-card:active { transform: translateY(2px); box-shadow: 0 1px 0 #1e40af; }
        .slot-ico {
            flex: none; width: clamp(30px, 5.2vh, 46px); height: clamp(30px, 5.2vh, 46px);
            border-radius: 50%; border: 2px solid #3b82f6;
            background: #dbeafe var(--img-ice) center/60% no-repeat;
            display: flex; align-items: center; justify-content: center;
        }
        .slot-main { flex: 1; min-width: 0; }
        .slot-name { font-weight: 900; font-size: clamp(13px, 2.3vh, 17px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
        .slot-sub { font-weight: 800; font-size: clamp(10px, 1.7vh, 13px); opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
        .slot-right { flex: none; }
        .slot-rate { font-weight: 900; font-size: clamp(13px, 2.3vh, 17px); white-space: nowrap; color: #16a34a; }
        .slot-rate.dim { color: #6b7280; font-size: clamp(11px, 1.9vh, 14px); }
        .slot-arrow { flex: none; font-weight: 900; font-size: clamp(22px, 4vh, 30px); color: #3b82f6; line-height: 1; }
        .slot-card.empty { background: rgba(255,255,255,0.14); border: 2px dashed #93c5fd; box-shadow: none; color: #dbeafe; }
        .slot-card.empty .slot-ico { background: rgba(255,255,255,0.15); border-color: #93c5fd; color: #dbeafe; font-weight: 900; font-size: clamp(18px, 3.4vh, 26px); }
        .slot-card.locked { background: rgba(10,24,48,0.5); border: 2px solid #3b82f6; box-shadow: none; color: #bfdbfe; }
        .slot-card.locked .slot-ico { background: rgba(255,255,255,0.1); border-color: #3b82f6; }
        .slot-card.locked .slot-ico svg { width: 70%; height: 70%; }

        .cost {
            flex: none; background: rgba(0,0,0,0.78); color: #86efac; border: 2px solid #4caf50;
            border-radius: 12px; font-weight: 900; font-size: clamp(12px, 2.1vh, 16px);
            padding: 3px 10px; white-space: nowrap;
        }
        .cost.poor { color: #fca5a5; border-color: #ef4444; }

        @keyframes cardDeny {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-6px); }
            40% { transform: translateX(6px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
        }
        .slot-card.deny, .type-card.deny, #hub-build.deny { animation: cardDeny 0.4s; }

        /* Верхняя строка «Назад» + заголовок */
        .sub-head { flex: none; display: flex; align-items: center; gap: 10px; height: 38px; }
        .farm-head { position: absolute; top: 78px; left: 12px; right: 12px; z-index: 3; }
        .back-btn {
            font-family: inherit; font-weight: 900; border: none; cursor: pointer; border-radius: 12px;
            padding: 0 14px; height: 100%; background: #93c5fd; color: #1e3a8a; box-shadow: 0 3px 0 #3b82f6;
            font-size: 15px; white-space: nowrap;
        }
        .back-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #3b82f6; }
        .sub-title {
            color: #fff; font-weight: 900; font-size: clamp(16px, 2.8vh, 21px);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0,0,0,0.3);
        }

        /* Выбор вида фермы (карточки делят высоту, без прокрутки; описание — за значком «i») */
        #build-list {
            flex: 1; min-height: 0; display: flex; flex-direction: column;
            gap: clamp(6px, 1.2vh, 10px); padding-bottom: 6px;
        }
        .type-card {
            position: relative; flex: 1 1 0; min-height: 0; max-height: 128px;
            background: rgba(255,255,255,0.93); border: 3px solid #3b82f6; border-radius: 18px;
            box-shadow: 0 4px 0 #1e40af, 0 6px 14px rgba(0,0,0,0.3);
            padding: clamp(6px, 1.2vh, 12px) clamp(10px, 1.8vh, 14px); color: #1e3a8a;
            display: flex; flex-direction: column; justify-content: space-between;
            gap: clamp(4px, 1vh, 8px); overflow: hidden;
        }
        .type-top { display: flex; align-items: center; gap: 10px; min-height: 0; }
        .type-name {
            flex: 1; min-width: 0; font-weight: 900; font-size: clamp(16px, 2.8vh, 21px);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .type-i {
            flex: none; width: clamp(26px, 4vh, 32px); height: clamp(26px, 4vh, 32px); padding: 0;
            border-radius: 50%; border: 2px solid #3b82f6; background: #dbeafe; color: #1e3a8a;
            font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 900;
            font-size: 17px; line-height: 1; cursor: pointer;
        }
        .type-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
        .type-btn {
            font-family: inherit; font-weight: 900; border: none; cursor: pointer; border-radius: 12px;
            padding: clamp(6px, 1.2vh, 10px) 20px; font-size: clamp(13px, 2.2vh, 17px);
            text-transform: uppercase; color: #fff;
            background: linear-gradient(to bottom, #4ade80, #16a34a); box-shadow: 0 4px 0 #166534;
        }
        .type-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #166534; }
        .type-tip {
            position: absolute; inset: 0; display: none; align-items: center; z-index: 2;
            background: rgba(255,255,255,0.98); padding: 8px 14px; cursor: pointer;
            font-weight: 800; font-size: clamp(12px, 2vh, 15px); line-height: 1.3;
        }
        .type-tip.show { display: flex; }
