.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;
}

.exploration-pickup {
    position: absolute;
    width: 44px;
    height: 44px;
    transform: translateY(0);
    animation: exploration-pickup-rise 1.5s ease-out forwards;
}

@keyframes exploration-pickup-rise {
    0%   { transform: translateY(6px); opacity: 0; }
    18%  { opacity: 1; }
    75%  { transform: translateY(-44px); opacity: 1; }
    100% { transform: translateY(-58px); opacity: 0; }
}

.exploration-pickup-item {
    position: absolute;
    left: 12%;
    top: 8%;
    width: 76%;
    height: 76%;
    filter: drop-shadow(0 0 8px var(--exp-glow, rgba(201, 162, 39, 0.6)));
}

.exploration-pickup-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--exp-name, #f2d675);
    transform: translate(-50%, -50%);
    animation: exploration-ring 1.2s ease-out forwards;
}

@keyframes exploration-ring {
    0%   { width: 8px; height: 8px; opacity: 0.9; }
    100% { width: 70px; height: 70px; opacity: 0; }
}

.exploration-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--exp-name, #f2d675);
    animation: exploration-spark-fly 1.1s ease-out forwards;
    transform: rotate(calc(var(--i) * 60deg)) translateX(0);
}

@keyframes exploration-spark-fly {
    0%   { opacity: 1; transform: rotate(calc(var(--i) * 60deg)) translateX(4px); }
    100% { opacity: 0; transform: rotate(calc(var(--i) * 60deg)) translateX(36px); }
}

.exploration-pickup-name {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--exp-name, #f2d675);
    font-size: 0.78em;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
