#kor-camp-wrapper {
    background: #1a202c;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.kor-hero-selector-panel {
    background: #2d3748;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.kor-panel-title { font-weight: bold; font-size: 13px; color: #cbd5e0; }
.kor-hero-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.kor-hero-select-btn {
    background: #1a202c;
    border: 2px solid var(--hero-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
}
.kor-hero-select-btn:hover { background: var(--hero-color); opacity: 0.9; }
.kor-hero-select-btn.active {
    background: var(--hero-color);
    box-shadow: 0 0 10px var(--hero-color);
    transform: scale(1.05);
}

.kor-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    background: #2d3748;
    padding: 8px 12px;
    border-radius: 8px;
}
.kor-tool-group {
    display: inline-flex;
    gap: 2px;
    background: #1a202c;
    padding: 2px;
    border-radius: 6px;
}
.kor-btn, .kor-action-btn {
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11.5px;
    transition: transform 0.1s, opacity 0.2s;
}
.kor-btn:hover, .kor-action-btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}
.kor-btn.active { outline: 2.5px solid #63b3ed; }
.kor-actions { margin-left: auto; display: flex; gap: 6px; }

.kor-fear-panel {
    background: #2a1b2d;
    border: 1px solid #702459;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.kor-fear-info { font-size: 14px; }
.kor-highlight { color: #f6ad55; font-weight: bold; }
.kor-fear-btn {
    background: #9b2c2c;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.kor-fear-btn:hover { background: #c53030; transform: scale(1.02); }

/* Estilos mejorados para Dados */
.kor-dice-box {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 50px;
}
.kor-dice-header { display: flex; align-items: center; gap: 14px; }
.kor-dice-title { font-size: 12.5px; font-weight: bold; color: #94a3b8; white-space: nowrap; }
.kor-dice-container { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kor-no-roll { font-size: 12px; color: #64748b; font-style: italic; }

.kor-damage-log { font-size: 11.5px; display: flex; gap: 6px; flex-wrap: wrap; }
.kor-damage-tag {
    background: #450a0a; border: 1px solid #991b1b; color: #fca5a5;
    padding: 2px 6px; border-radius: 4px; font-weight: bold;
}
.kor-noise-tag {
    background: #451a03; border: 1px solid #b45309; color: #fde68a;
    padding: 2px 6px; border-radius: 4px; font-weight: bold;
}

.kor-dice-face {
    background: linear-gradient(145deg, #ffffff, #e2e8f0);
    color: #0f172a; border: 2px solid #cbd5e0; border-radius: 6px;
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5); user-select: none;
    cursor: default;
}
.kor-dice-face.is-success { border-color: #48bb78; color: #2f855a; }
.kor-dice-face.is-fail { border-color: #f56565; color: #c53030; }

#kor-status-msg {
    font-size: 0.85em; color: #cbd5e0; margin-bottom: 8px;
    text-align: center; font-style: italic;
}

.kor-main-board-row {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: stretch;
    width: 100%;
}

.kor-rosette-viewport {
    background: #0b1120; border-radius: 10px; border: 1px solid #334155;
    padding: 15px; display: flex; justify-content: center;
    align-items: center; min-height: 540px;
    flex: 0 0 560px; box-sizing: border-box;
}

#kor-rosette-container {
    position: relative; width: 540px; height: 500px;
}

.kor-hex-wrapper {
    position: absolute; width: 130px; height: 112.58px;
    background: #475569;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: background 0.15s ease, transform 0.15s ease;
}
.kor-hex-wrapper.is-center { background: #d69e2e; }

.kor-hex-tile {
    width: 100%; height: 100%; background: #1e293b; transform: scale(0.95);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    position: relative; user-select: none; box-sizing: border-box;
}

.kor-tile-center-zone {
    position: absolute; top: 22px; left: 24px; width: 82px; height: 68px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; cursor: pointer; border-radius: 6px; z-index: 10;
}
.kor-tile-center-zone:hover { background: rgba(56, 189, 248, 0.15); }

.kor-building-label {
    font-size: 9px; font-weight: bold; color: #f1f5f9; text-align: center; line-height: 1.1; pointer-events: none;
}
.kor-building-sub { font-size: 7px; color: #94a3b8; text-align: center; font-style: italic; pointer-events: none; }
.kor-building-icon { font-size: 11px; pointer-events: none; }
.kor-deck-badge {
    font-size: 7.5px; background: #3b82f6; color: white; padding: 0px 3px;
    border-radius: 4px; font-weight: bold; pointer-events: none; margin-top: 1px;
}

.kor-center-tokens {
    display: flex; gap: 3px; align-items: center; justify-content: center; margin-top: 2px;
}
.kor-civil-tag {
    background: #0284c7; color: #fff; border-radius: 8px; padding: 0 4px; font-size: 9px; font-weight: bold;
}
.kor-center-enemy-tag {
    background: #991b1b; color: #fff; border-radius: 8px; padding: 0 4px; font-size: 9px; font-weight: bold;
}

.kor-edge-slot {
    position: absolute; z-index: 20; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 1px;
    padding: 1px 3px; border-radius: 4px; background: rgba(15, 23, 42, 0.65);
    border: 1px dashed rgba(148, 163, 184, 0.4); min-width: 18px; min-height: 14px;
    transition: all 0.15s ease;
}
.kor-edge-slot:hover {
    background: rgba(56, 189, 248, 0.8); border-color: #38bdf8; transform: scale(1.15); z-index: 25;
}

.kor-edge-0 { top: 2px; left: 38px; }
.kor-edge-1 { top: 22px; right: 4px; }
.kor-edge-2 { bottom: 22px; right: 4px; }
.kor-edge-3 { bottom: 2px; left: 38px; }
.kor-edge-4 { bottom: 22px; left: 4px; }
.kor-edge-5 { top: 22px; left: 4px; }

.kor-hero-mini-token {
    width: 12px; height: 12px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 7.5px;
    color: #fff; font-weight: bold; box-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.kor-edge-enemies-tag {
    font-size: 8px; background: #ef4444; color: #fff; border-radius: 6px;
    padding: 0 3px; font-weight: bold; margin-left: 1px;
}

.kor-barricade-badge {
    position: absolute; background: #0f172a; border: 1.5px solid #d97706;
    padding: 2px 4px; border-radius: 10px; box-shadow: 0 3px 8px rgba(0,0,0,0.8);
    z-index: 35; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.kor-hp-brick { font-size: 10px; }
.kor-hp-brick.lost { opacity: 0.2; filter: grayscale(100%); }
.kor-barricade-badge.destroyed {
    border-color: #ef4444; background: #450a0a; color: #fca5a5; font-size: 9px; font-weight: bold;
}

.kor-noise-badge {
    position: absolute;
    background: radial-gradient(circle at 35% 35%, #fde047, #d97706 70%, #78350f);
    border: 1.5px solid #fef08a; color: #000; padding: 2px 7px; border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.8); z-index: 35; font-size: 11px; font-weight: bold;
    display: flex; align-items: center; gap: 3px; cursor: pointer; transition: transform 0.15s ease; user-select: none;
}
.kor-noise-badge:hover { transform: scale(1.1); }

#kor-fear-token-element {
    position: absolute; width: 36px; height: 36px;
    background: radial-gradient(circle, #e53e3e 0%, #742a2a 100%);
    border: 2px solid #feb2b2; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    box-shadow: 0 0 14px rgba(229, 62, 62, 0.9); z-index: 50;
    transition: left 0.4s ease-in-out, top 0.4s ease-in-out; pointer-events: none;
}

.kor-inventories-container {
    background: #2d3748; padding: 12px; border-radius: 10px;
    flex: 1; min-width: 0; box-sizing: border-box;
    display: flex; flex-direction: column;
}

.kor-inventories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.kor-hero-card-box {
    background: #1a202c; border-top: 4px solid var(--hero-color);
    border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px;
    align-items: center; min-width: 0; box-sizing: border-box;
}
.kor-hero-box-title {
    width: 100%; font-size: 12px; font-weight: bold; color: var(--hero-color);
    display: flex; justify-content: space-between; align-items: center;
}

.kor-circular-panel-wrapper {
    position: relative; width: 100%; max-width: 160px; aspect-ratio: 1 / 1;
    display: flex; justify-content: center; align-items: center; user-select: none;
}
.kor-circular-panel-svg {
    width: 100%; height: 100%; filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.6));
}
.kor-quadrant-path {
    cursor: pointer; transition: opacity 0.15s ease, transform 0.15s ease; stroke: #0f172a; stroke-width: 2px;
}
.kor-quadrant-path:hover { opacity: 0.82; }
.kor-quadrant-text {
    font-size: 10px; font-weight: bold; fill: #ffffff; pointer-events: none; text-anchor: middle;
    font-family: Arial, sans-serif; text-shadow: 0px 1px 3px rgba(0,0,0,0.9);
}
.kor-selection-status {
    font-size: 10.5px; background: #2d3748; padding: 3px 6px; border-radius: 4px;
    color: #cbd5e0; font-weight: bold; width: 100%; text-align: center; box-sizing: border-box;
}

.kor-hero-card-list { width: 100%; display: flex; flex-direction: column; gap: 4px; min-height: 35px; }
.kor-inventory-item {
    background: #2d3748; padding: 4px 6px; border-radius: 4px; font-size: 10.5px;
    display: flex; justify-content: space-between; align-items: center; border: 1px solid #4a5568;
    gap: 4px;
}
.kor-transfer-select {
    background: #1a202c; color: #e2e8f0; border: 1px solid #718096;
    font-size: 9.5px; border-radius: 3px; padding: 2px; cursor: pointer; max-width: 80px;
}

@media (max-width: 1280px) {
    .kor-main-board-row { flex-direction: column; }
    .kor-rosette-viewport { flex: 0 0 auto; width: 100%; }
    .kor-inventories-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}