/* ═══════════════════════════════════════════════════════ */
/* Тёмная Зона — стили                                     */
/* ═══════════════════════════════════════════════════════ */

/* ── LOBBY ── */

.dz-lobby-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
}

.dz-banner {
    text-align: center;
    padding: 32px 16px;
    background: linear-gradient(180deg, #1a0a2e 0%, #0d0d0d 100%);
    border-radius: 12px;
    border: 1px solid #2a1a4e;
    position: relative;
    overflow: hidden;
}

.dz-banner-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
}

.dz-banner-title {
    font-size: 24px;
    font-weight: 800;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.dz-banner-sub {
    color: #9ca3af;
    font-size: 14px;
    margin: 4px 0 0;
}

/* Info cards */
.dz-info-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    padding: 10px 12px;
}

.dz-info-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.dz-info-text {
    flex: 1;
}

.dz-info-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
}

.dz-info-val {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 600;
}

/* ── BUTTONS ── */

.dz-btn {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}

.dz-btn:active {
    opacity: 0.8;
}

.dz-btn-enter {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.dz-btn-explore {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

.dz-btn-extract {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.dz-btn-attack {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 18px;
}

.dz-btn-loot {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
}

.dz-btn-shelter {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
}

.dz-btn-danger {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
}

.dz-btn-secondary {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    color: #d1d5db;
}

.dz-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── HUD ── */

.dz-hud {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.dz-hud-compact {
    padding: 8px 12px;
}

.dz-hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.dz-hud-row:last-child {
    margin-bottom: 0;
}

.dz-hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dz-hud-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
}

.dz-hud-val {
    font-size: 16px;
    font-weight: 700;
    color: #e5e7eb;
}

/* HP Bar */
.dz-hp-bar-wrap {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.dz-hp-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dz-hp-bar-enemy {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ── EXPLORE SCREEN ── */

.dz-explore-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 12px;
}

.dz-floor-art {
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d0d 100%);
    border-radius: 12px;
    border: 1px solid #2a2a4e;
    /* Placeholder — will be replaced with actual floor artwork */
}

.dz-floor-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
}

.dz-floor-label {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 600;
}

/* ── ENCOUNTER CARDS ── */

.dz-encounter-card {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    padding: 16px;
    margin: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dz-encounter-boss {
    border-color: #dc2626;
    background: linear-gradient(180deg, #1a0a0a, #0d0d0d);
}

.dz-encounter-pvp {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #1a1a0a, #0d0d0d);
}

.dz-encounter-loot {
    border-color: #22c55e;
    background: linear-gradient(180deg, #0a1a0a, #0d0d0d);
}

.dz-encounter-shelter {
    border-color: #14b8a6;
    background: linear-gradient(180deg, #0a1a1a, #0d0d0d);
}

.dz-encounter-trap {
    border-color: #f43f5e;
    background: linear-gradient(180deg, #1a0a0f, #0d0d0d);
}

.dz-encounter-header {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dz-encounter-desc {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* ── ENEMY ── */

.dz-enemy {
    text-align: center;
    padding: 8px;
}

.dz-enemy-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: block;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
}

.dz-enemy-name {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.dz-enemy-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 8px;
}

/* ── POWER BAR ── */

.dz-power-bar-wrap {
    text-align: center;
}

.dz-power-bar-label {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 4px;
}

.dz-power-bar {
    width: 100%;
    height: 12px;
    background: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
}

.dz-power-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    border-radius: 6px;
    transition: width 0.05s linear;
}

/* Encounter art images */
.dz-encounter-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ── RESULT ── */

.dz-result-card {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    padding: 16px;
    margin: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.dz-result-death {
    border-color: #dc2626;
    background: linear-gradient(180deg, #2a0a0a, #0d0d0d);
}

.dz-result-win {
    border-color: #22c55e;
}

.dz-result-trap {
    border-color: #f43f5e;
}

.dz-result-icon {
    font-size: 48px;
}

/* Death screen image */
.dz-result-death-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.dz-result-msg {
    font-size: 15px;
    color: #e5e7eb;
    font-weight: 600;
}

.dz-result-rewards {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.dz-reward-item {
    font-size: 18px;
    font-weight: 800;
    color: #f59e0b;
}

.dz-reward-star {
    color: #a855f7;
}

.dz-result-status {
    padding: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.dz-combat-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.dz-detail-hit {
    color: #22c55e;
}

.dz-detail-miss {
    color: #f59e0b;
}

.dz-detail-received {
    color: #ef4444;
}

.dz-detail-heal {
    color: #14b8a6;
}

.dz-death-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #d1d5db;
    padding: 8px 0;
    border-top: 1px solid #333;
}

/* ── EXTRACT ── */

.dz-extract-card {
    background: linear-gradient(180deg, #0a1a0a, #0d0d0d);
    border: 1px solid #22c55e;
    border-radius: 12px;
    padding: 24px 16px;
    margin: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Extract success image */
.dz-extract-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.dz-extract-title {
    font-size: 22px;
    font-weight: 800;
    color: #22c55e;
    text-transform: uppercase;
}

.dz-extract-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-extract-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.dz-extract-label {
    font-size: 14px;
    color: #9ca3af;
}

.dz-extract-val {
    font-size: 18px;
    font-weight: 800;
    color: #e5e7eb;
}

.dz-extract-highlight .dz-extract-val {
    color: #f59e0b;
}

.dz-extract-star .dz-extract-val {
    color: #a855f7;
}

/* ── LEADERBOARD ── */

.dz-lb {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    padding: 12px;
}

.dz-lb-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 8px;
}

.dz-lb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dz-lb-row:last-child {
    border-bottom: none;
}

.dz-lb-rank {
    width: 28px;
    text-align: center;
    font-size: 16px;
}

.dz-lb-name {
    flex: 1;
    font-size: 14px;
    color: #e5e7eb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-lb-floor {
    font-size: 13px;
    color: #c084fc;
    font-weight: 600;
}

.dz-lb-kills {
    font-size: 13px;
    color: #ef4444;
}

.dz-lb-live {
    font-size: 10px;
}

/* ── LOADING ── */
#dz-loading {
    text-align: center;
    padding: 48px 16px;
    color: #9ca3af;
    font-size: 16px;
}

#dz-loading::after {
    content: 'Загрузка...';
}

/* ═══ DARK ZONE v2 ═══ */

/* ── FLOOR SELECTION ── */

.dz-floor-select {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    padding: 12px;
}

.dz-floor-select-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dz-floor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dz-floor-item {
    width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.dz-floor-item:active {
    transform: scale(0.95);
    background: rgba(192,132,252,0.2);
}

.dz-floor-num {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
}

.dz-floor-boss {
    border-color: #dc2626;
    background: rgba(220,38,38,0.1);
}

.dz-floor-boss .dz-floor-num {
    color: #ef4444;
}

.dz-floor-boss-tag {
    font-size: 8px;
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 1px;
}

.dz-floor-new {
    border-style: dashed;
    border-color: #7c3aed;
}

/* ── FLOOR PROGRESS BAR ── */

.dz-floor-progress-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 12px 8px;
}

.dz-floor-progress {
    flex: 1;
    min-width: 0;
}

.dz-floor-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.dz-floor-progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.dz-floor-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ── NEXT FLOOR BUTTON (inline) ── */

.dz-next-floor-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #444;
    background: #1a1a1a;
    color: #555;
    font-size: 18px;
    font-weight: 700;
    cursor: not-allowed;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dz-next-floor-disabled {
    background: #1a1a1a;
    border-color: #333;
    color: #444;
    opacity: 0.5;
    cursor: not-allowed;
}

.dz-next-floor-ready {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #a855f7;
    color: #fff;
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(168,85,247,0.4);
    animation: dz-next-glow 1.5s infinite;
}

.dz-next-floor-ready:active {
    transform: scale(0.95);
}

@keyframes dz-next-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(168,85,247,0.3); }
    50% { box-shadow: 0 0 16px rgba(168,85,247,0.6); }
}

/* ── ENEMY/TARGET LIST ── */

.dz-enemy-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
    margin-bottom: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.dz-target-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--surface-card, #1a1a1a);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dz-target-row:active {
    background: rgba(255,255,255,0.05);
}

.dz-target-selected {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.08);
}

.dz-target-player {
    background: rgba(220,38,38,0.08);
    border-color: rgba(220,38,38,0.3);
}

.dz-target-player.dz-target-selected {
    border-color: #ef4444;
}

.dz-target-boss {
    background: rgba(168,85,247,0.08);
    border-color: rgba(168,85,247,0.3);
}

.dz-target-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.dz-target-info {
    flex: 1;
    min-width: 0;
}

.dz-target-name {
    font-size: 14px;
    font-weight: 700;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-target-player .dz-target-name {
    color: #ef4444;
}

.dz-target-hp-bar {
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
    margin: 4px 0;
}

.dz-target-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dz-target-hp-player {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.dz-target-stats {
    font-size: 11px;
    color: #9ca3af;
}

/* ── CORPSE TARGET ── */

.dz-target-corpse {
    background: rgba(107,114,128,0.1);
    border-color: rgba(107,114,128,0.3);
    opacity: 0.85;
}

.dz-corpse-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.dz-corpse-name {
    color: #9ca3af !important;
    text-decoration: line-through;
}

.dz-corpse-hint {
    font-size: 11px;
    color: #f59e0b;
    margin-top: 2px;
}

/* ── CORPSE LOOT MODAL ── */

.dz-corpse-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.dz-corpse-item-cell {
    position: relative;
}

.dz-corpse-item-selected {
    outline: 2px solid #22c55e;
    outline-offset: -2px;
}

.dz-corpse-currency-info {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    background: rgba(245,158,11,0.06);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.dz-corpse-no-cur {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

/* Wave wait */
.dz-wave-wait {
    text-align: center;
    padding: 24px 16px;
}

.dz-wave-wait-msg {
    font-size: 16px;
    color: #c084fc;
    font-weight: 600;
    animation: dz-pulse 1.5s infinite;
}

@keyframes dz-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── ATTACK SECTION ── */

.dz-attack-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
}

/* ── ACTION BUTTONS ── */

.dz-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
}

.dz-btn-container {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
}

/* ── EVACUATION OVERLAY ── */

.dz-evac-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dz-evac-timer-box {
    background: linear-gradient(180deg, #1a2a0a, #0d0d0d);
    border: 2px solid #22c55e;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 280px;
}

.dz-evac-title {
    font-size: 22px;
    font-weight: 800;
    color: #22c55e;
    text-transform: uppercase;
}

.dz-evac-countdown {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(34,197,94,0.5);
    animation: dz-pulse 1s infinite;
}

.dz-evac-sub {
    font-size: 14px;
    color: #9ca3af;
}

/* ── COMBAT LOG ── */

.dz-combat-log {
    max-height: 120px;
    overflow-y: auto;
    padding: 8px 12px;
    margin: 0 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid #222;
}

.dz-log-entry {
    font-size: 12px;
    color: #9ca3af;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.dz-log-entry:last-child {
    border-bottom: none;
}

.dz-log-evac {
    color: #22c55e;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 0;
    animation: dz-pulse 1s infinite;
}

/* ── KPK EVAC OPTION ── */

.dz-kpk-option-evac {
    color: #22c55e !important;
    border-top: 1px solid #222;
}

.dz-kpk-inactive {
    color: #666 !important;
    text-align: center;
    cursor: default;
}

/* ── CONTAINER MODAL ── */

.dz-container-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.dz-container-content {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
}

.dz-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    border-bottom: 1px solid #333;
}

.dz-container-body {
    padding: 12px 16px;
}

.dz-container-currency {
    font-size: 24px;
    font-weight: 800;
    color: #f59e0b;
    text-align: center;
    padding: 12px;
    background: rgba(245,158,11,0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}

.dz-container-empty {
    text-align: center;
    color: #666;
    padding: 16px;
    font-size: 14px;
}

.dz-container-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-container-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #444;
    border-radius: 8px;
    border-left-width: 3px;
}

.dz-container-item-icon {
    font-size: 28px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.dz-container-item-name {
    font-size: 14px;
    font-weight: 700;
}

.dz-container-item-stats {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dz-item-stat {
    background: rgba(255,255,255,0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

/* ── EVACUATION RESULT ── */

.dz-evac-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.dz-evac-item {
    font-size: 13px;
    color: #d1d5db;
    padding: 4px 0;
}

/* ═══ КПК (PDA) MENU ═══ */

.nav-btn-kpk {
    position: relative;
}

.dz-kpk-menu {
    position: fixed;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
    background: var(--surface-card, #1a1a1a);
    border: 1px solid #7c3aed;
    border-radius: 12px;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(124,58,237,0.3);
}

.dz-kpk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #c084fc;
    border-bottom: 1px solid #333;
}

.dz-kpk-option {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.dz-kpk-option:active {
    background: rgba(124,58,237,0.15);
}

/* ═══ LOOT MODAL ═══ */

.dz-loot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.dz-loot-content {
    background: var(--surface-card, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 12px;
    width: 92%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
}

.dz-loot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: var(--surface-card, #1a1a1a);
    z-index: 1;
}

.dz-loot-body {
    padding: 12px 16px;
}

.dz-loot-currencies {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px;
    background: rgba(245,158,11,0.06);
    border-radius: 8px;
    margin-bottom: 12px;
}

.dz-loot-cur {
    font-size: 20px;
    font-weight: 800;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-loot-cur-star {
    color: #a855f7;
}

.dz-loot-cur-icon {
    font-size: 16px;
}

.dz-loot-empty {
    text-align: center;
    color: #666;
    padding: 24px;
    font-size: 14px;
}

.dz-loot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* ═══ ITEM DETAIL OVERLAY ═══ */

.dz-item-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.dz-item-detail-card {
    background: var(--surface-card, #1a1a1a);
    border: 2px solid #444;
    border-radius: 14px;
    width: 90%;
    max-width: 340px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.dz-item-detail-card.rarity-border-trash { border-color: #888; }
.dz-item-detail-card.rarity-border-poor { border-color: #aaa; }
.dz-item-detail-card.rarity-border-normal { border-color: #4a90e2; }
.dz-item-detail-card.rarity-border-good { border-color: #8e44ad; }
.dz-item-detail-card.rarity-border-great { border-color: #f39c12; }
.dz-item-detail-card.rarity-border-perfect { border-color: #e74c3c; }

.dz-item-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dz-item-detail-rarity {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rarity-text-trash { color: #888; }
.rarity-text-poor { color: #aaa; }
.rarity-text-normal { color: #4a90e2; }
.rarity-text-good { color: #8e44ad; }
.rarity-text-great { color: #f39c12; }
.rarity-text-perfect { color: #e74c3c; }

.dz-item-detail-icon {
    font-size: 48px;
}

.dz-item-detail-name {
    font-size: 18px;
    font-weight: 800;
    color: #e5e7eb;
}

.dz-item-detail-slot {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
}

.dz-item-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.dz-item-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 13px;
    color: #d1d5db;
}

.dz-item-stat-row span:last-child {
    color: #22c55e;
    font-weight: 600;
}

.dz-item-detail-desc {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    padding: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════ */
/* ARENA-STYLE COMBAT LAYOUT FOR DARK ZONE                */
/* ═══════════════════════════════════════════════════════ */

/* ── BATTLE HEADER ── */

.dz-battle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(124,58,237,0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.dz-battle-header-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dz-battle-floor-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c084fc;
}

.dz-battle-wave-badge {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 600;
}

.dz-abandon-btn {
    font-size: 0.75rem;
    padding: 6px 12px;
}

/* ── TEAMS ROW (Arena-style left/right) ── */

.dz-teams-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0 12px;
    margin-top: 8px;
}

.dz-team {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md, 8px);
    padding: 8px;
    min-width: 0;
}

.dz-team-me {
    border-left: 3px solid var(--success-color, #22c55e);
}

.dz-team-enemies {
    border-right: 3px solid var(--error-color, #ef4444);
}

.dz-team-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: var(--text-secondary, #9ca3af);
}

.dz-vs {
    align-self: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #c084fc;
    padding: 0 4px;
    flex-shrink: 0;
}

.dz-players-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.dz-allies-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

/* ── PLAYER CARD (shared for both me + enemies) ── */

.dz-player-card {
    position: relative;
    display: flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    font-size: 0.72rem;
    cursor: pointer;
    overflow: hidden;
}

.dz-player-card:active {
    filter: brightness(1.2);
}

.dz-player-card.is-dead {
    opacity: 0.35;
}

.dz-player-card.is-dead .dz-player-name {
    text-decoration: line-through;
}

.dz-player-card.is-target {
    outline: 2px solid var(--accent-color, #f59e0b);
}

.dz-player-card.is-pvp {
    background: rgba(220,38,38,0.12);
}

.dz-player-card.is-ally {
    background: rgba(34,197,94,0.12);
    cursor: pointer;
}

.dz-player-card.is-ally-target {
    outline: 2px solid #22c55e;
}

.dz-player-card.is-boss {
    background: rgba(168,85,247,0.12);
}

/* HP fill sits behind the name text as background bar */
.dz-player-hp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(34,197,94,0.25);
    transition: width 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.dz-player-hp-fill.ally {
    background: rgba(34,197,94,0.25);
}

.dz-player-hp-fill.enemy {
    background: rgba(239,68,68,0.25);
}

.dz-player-hp-fill.low {
    background: rgba(239,68,68,0.35);
}

.dz-player-name {
    position: relative;
    z-index: 1;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary, #e5e7eb);
    line-height: 18px;
}

.dz-player-card.is-pvp .dz-player-name {
    color: #ef4444;
}

.dz-player-card.is-ally .dz-player-name {
    color: #22c55e;
}

.dz-player-card.is-boss .dz-player-name {
    color: #c084fc;
}

.dz-player-hp-text {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    font-size: 0.65rem;
    min-width: 20px;
    text-align: right;
    color: var(--text-secondary, #9ca3af);
    line-height: 18px;
}

/* ── CORPSES LIST ── */

.dz-corpses-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    margin-top: 4px;
}

.dz-corpse-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(107,114,128,0.1);
    border: 1px solid rgba(107,114,128,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    opacity: 0.75;
}

.dz-corpse-row:active {
    background: rgba(107,114,128,0.2);
}

.dz-corpse-icon-sm {
    font-size: 16px;
    flex-shrink: 0;
}

.dz-corpse-name-sm {
    flex: 1;
    color: #9ca3af;
    text-decoration: line-through;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-corpse-hint-sm {
    color: #f59e0b;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ── MY STATUS ── */

.dz-my-status {
    display: flex;
    gap: 12px;
    padding: 4px 12px;
    margin-top: 4px;
}

.dz-my-status-item {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary, #9ca3af);
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 4px 8px;
}

/* ── POWER BAR (arena-style) ── */

.dz-attack-power-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin-top: 6px;
}

.dz-attack-power-bar {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.dz-attack-power-fill {
    height: 100%;
    width: 0%;
    background: var(--error-color, #ef4444);
    border-radius: 5px;
    transition: width 0.1s linear, background 0.2s ease;
}

.dz-attack-power-label {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 80px;
    color: var(--text-secondary, #9ca3af);
}

/* ── ACTIONS PANEL ── */

.dz-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 12px;
}

.dz-attack-main-btn {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 16px 12px;
    min-height: 60px;
    border-radius: var(--radius-md, 8px);
    text-transform: uppercase;
}

.dz-attack-main-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dz-action-row {
    display: flex;
    gap: 6px;
}

.dz-action-row .btn {
    flex: 1;
}

.dz-action-btn {
    position: relative;
    font-size: 0.85rem;
    padding: 12px 8px;
    min-height: 44px;
}

/* ── SKILLS GRID ── */

.dz-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.dz-skill-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px;
    border: 2px solid rgba(96,165,250,0.5);
    border-radius: var(--radius-md, 8px);
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: filter 0.2s;
}

.dz-skill-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dz-skill-btn:not(:disabled):active {
    filter: brightness(1.3);
}

.dz-skill-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dz-skill-cd {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
