.exploration-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99000;
    background: radial-gradient(circle at 50% 40%, rgba(10, 10, 14, 0.96), rgba(3, 3, 5, 0.99));
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.exploration-frame {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.exploration-header {
    width: 100%;
}

.exploration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 6px;
}

.exploration-title {
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.exploration-exit-btn {
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.6);
    color: #ff9a8f;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
}

.exploration-exit-btn:hover {
    background: rgba(231, 76, 60, 0.32);
}

.exploration-viewport {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.exploration-actionbar {
    width: 100%;
    max-width: 640px;
    min-height: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    box-sizing: border-box;
    background: rgba(8, 10, 14, 0.72);
    border: 1px solid var(--exp-border, #c9a227);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.exploration-action-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82em;
    font-style: italic;
    letter-spacing: 0.02em;
}

.exploration-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--exp-border, #c9a227);
    color: var(--exp-hud, #f2d675);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.08s ease;
}

.exploration-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.exploration-action-btn:active {
    transform: translateY(1px);
}

.exploration-action-btn[data-kind="exit"] {
    border-color: rgba(231, 76, 60, 0.7);
    color: #ff9a8f;
}

.exp-action-ico {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.exp-sprite > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-sprite svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.exp-enemy-label {
    z-index: 6;
    pointer-events: none;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
}

.exp-enemy-realm {
    display: inline-block;
    background: rgba(20, 6, 6, 0.85);
    border: 1px solid rgba(255, 90, 74, 0.7);
    color: #ffd0c8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 1px 4px;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.exp-enemy-stage {
    color: #ff8a7a;
}

.exploration-floor-badge {
    background: rgba(6, 8, 12, 0.82);
    border: 1px solid var(--exp-border, #c9a227);
    color: var(--exp-hud, #f2d675);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.exp-pkmodal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(8, 8, 12, 0.9), rgba(2, 2, 4, 0.97));
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.exp-pkmodal-box {
    max-width: 620px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(20, 20, 26, 0.96), rgba(10, 10, 14, 0.98));
    border: 1px solid var(--exp-border, #c9a227);
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px var(--exp-glow, rgba(201, 162, 39, 0.25));
    padding: 18px 20px 20px;
    text-align: center;
}

.exp-pkmodal-title {
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.exp-pkmodal-stage {
    position: relative;
    margin: 0 auto 14px;
    max-width: 100%;
    overflow: hidden;
}

.exp-pk-chest {
    position: absolute;
    left: 50%;
    top: 150px;
    width: 172px;
    height: 172px;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 16px var(--exp-glow, rgba(201, 162, 39, 0.55)));
    z-index: 1;
}

.exp-pk-player {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 132px;
    height: 210px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.exp-pk-player svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-pk-item {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 0 10px var(--exp-glow, rgba(201, 162, 39, 0.8)));
}

.exp-pk-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-pk-item.fly {
    animation: exp-pk-fly 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes exp-pk-fly {
    0%   { transform: translate(var(--fx, 0), var(--fy, 0)) scale(0.3); opacity: 0; }
    22%  { opacity: 1; }
    72%  { transform: translate(0, 0) scale(1.18); }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

.exp-pkmodal-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    margin-bottom: 16px;
}

.exp-pkmodal-box.revealed .exp-pkmodal-cards {
    opacity: 1;
    transform: translateY(0);
}

.exp-pk-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    width: 260px;
    box-sizing: border-box;
}

.exp-pk-card-art {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 6px var(--exp-glow, rgba(201, 162, 39, 0.5)));
}

.exp-pk-card-art svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-pk-card-name {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--accent, #f2d675);
    line-height: 1.15;
}

.exp-pk-card-sub {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.55);
    margin: 2px 0 6px;
}

.exp-pk-card-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-pk-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.7);
}

.exp-pk-stat b {
    color: #fff;
    font-weight: 600;
}

.exp-pkmodal-close {
    background: var(--accent, #f2d675);
    color: #1a1206;
    border: none;
    border-radius: 8px;
    padding: 9px 26px;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: filter 0.12s ease, transform 0.08s ease;
}

.exp-pkmodal-close:hover {
    filter: brightness(1.08);
}

.exp-pkmodal-close:active {
    transform: translateY(1px);
}
