/* Adventure Panel - Battles + Impacts Hub */
/* Morrhollow Combat Terminal Style - V2 Redesign */

:root {
    --adv-gap-xs: 3px;
    --adv-gap-sm: 4px;
    --adv-gap-md: 6px;
    --adv-gap-lg: 8px;
    --adv-pad-xs: 4px;
    --adv-pad-sm: 6px;
    --adv-pad-md: 8px;
    --adv-pad-lg: 12px;

    /* Adventure Terminal Colors - Combat theme (red/purple accents) */
    --adv-bg-dark: rgba(15, 15, 25, 0.95);
    --adv-bg-darker: rgba(8, 8, 15, 0.98);
    --adv-red-glow: #ef4444;
    --adv-red-accent: #ff3333;
    --adv-purple-glow: #a855f7;
    --adv-blue-glow: #93C5FD;
    --adv-gold-accent: rgba(212, 175, 55, 0.9);
    --adv-gold-border: rgba(212, 175, 55, 0.4);
}

.panel-adventure {
    /* Fixed panel positioning - matches Economy Hub V2 */
    position: fixed;
    top: 50px;
    left: 10px;
    width: min(1000px, calc(100vw - 20px));
    max-width: 1000px;
    height: calc(100vh - 100px);
    max-height: 700px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    /* Combat-style multi-layer glow (red/purple theme) */
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(239, 68, 68, 0.2),
        0 0 20px rgba(168, 85, 247, 0.15);
    border: 1px solid var(--adv-gold-border);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    color: #E5E7EB;
    user-select: none;
    background: transparent;
    animation: adv-panel-slide-in 0.3s ease-out;
    margin: 0;
    padding: 0;
}

/* CRITICAL: Remove padding from .panel-content wrapper and make it flex */
.panel-adventure .panel-content {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Hide the auto-generated .panel-close button */
.panel-adventure .panel-close {
    display: none !important;
}

@keyframes adv-panel-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.panel-adventure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        var(--adv-bg-dark) 0%,
        var(--adv-bg-darker) 50%,
        var(--adv-bg-dark) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Header */
.adventure-header {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.98) 100%);
    min-height: 30px;
    max-height: 30px;
    border-bottom: 1px solid var(--adv-gold-border);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.adventure-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adventure-header h2 {
    font-size: 11px;
    color: var(--adv-gold-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
    text-shadow:
        0 0 10px rgba(239, 68, 68, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.adventure-header .hollowcore-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.adventure-header .close-btn,
.adventure-header .refresh-btn {
    padding: 2px 6px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 3px;
    color: rgba(186, 166, 116, 0.7);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.adventure-header .close-btn:hover,
.adventure-header .refresh-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--adv-red-glow);
    color: var(--adv-red-glow);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.adventure-header .refresh-btn.spinning {
    animation: adv-spin 1s linear;
}

@keyframes adv-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Panel Body */
.adventure-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Sub-Tab Navigation - Morrhollow Terminal Button Style */
.adventure-tabs {
    display: flex;
    gap: var(--adv-gap-sm);
    padding: var(--adv-pad-sm) var(--adv-pad-sm);
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 1px solid var(--adv-gold-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    min-height: 2.25rem;
}

.adventure-tab {
    flex: 1;
    padding: var(--adv-pad-sm) var(--adv-pad-md);
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.4) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.8);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--adv-gap-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Morrhollow sweep effect */
.adventure-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(239, 68, 68, 0.15),
        transparent);
    transition: left 0.5s ease;
}

.adventure-tab:hover {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    border-color: var(--adv-red-glow);
    color: #ffffff;
    box-shadow:
        0 0 10px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.adventure-tab:hover::before {
    left: 100%;
}

.adventure-tab.active {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.15) 0%,
        rgba(168, 85, 247, 0.25) 100%);
    border-color: var(--adv-red-glow);
    color: var(--adv-gold-accent);
    box-shadow:
        0 0 15px rgba(239, 68, 68, 0.4),
        inset 0 0 10px rgba(239, 68, 68, 0.1);
}

/* Glowing active underline */
.adventure-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--adv-red-glow),
        transparent);
    animation: adv-tab-glow 1.5s ease-in-out infinite;
}

@keyframes adv-tab-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.adventure-tab .tab-icon {
    font-size: 14px;
}

.adventure-tab .tab-label {
    font-size: 9px;
}

.adventure-tab .tab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--adv-red-accent);
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    }
}

/* Content Area */
.adventure-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.adventure-content > div {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.adventure-content > div.active {
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
.adventure-content > div::-webkit-scrollbar {
    width: 6px;
}

.adventure-content > div::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.adventure-content > div::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 3px;
}

.adventure-content > div::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 197, 253, 0.5);
}

/* Loading state */
.adventure-content .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* ===== IMPACTS CONTENT STYLES ===== */

.impacts-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--adv-pad-md);
    overflow-y: auto;
    gap: var(--adv-gap-md);
}

.no-storylet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--adv-pad-lg) * 2;
    text-align: center;
    gap: var(--adv-gap-lg);
}

.no-storylet-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
        filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.8));
    }
}

.no-storylet-container h3 {
    color: var(--adv-gold-accent);
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.no-storylet-container p {
    color: rgba(186, 166, 116, 0.7);
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    max-width: 400px;
}

.start-storylet-btn {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.2) 0%,
        rgba(168, 85, 247, 0.3) 100%);
    border: 1px solid var(--adv-red-glow);
    color: var(--adv-gold-accent);
    padding: var(--adv-pad-md) var(--adv-pad-lg) * 2;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'RemiliaMincho', serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 8px rgba(239, 68, 68, 0.2);
}

.start-storylet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(239, 68, 68, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.start-storylet-btn:hover:not(:disabled) {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.3) 0%,
        rgba(168, 85, 247, 0.4) 100%);
    border-color: var(--adv-gold-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.start-storylet-btn:hover:not(:disabled)::before {
    left: 100%;
}

.start-storylet-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
    box-shadow: none;
    transform: none;
}

.impact-status {
    width: 100%;
    padding: var(--adv-pad-md);
    border-radius: 4px;
    margin-bottom: var(--adv-gap-md);
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg,
        var(--adv-bg-dark) 0%,
        var(--adv-bg-darker) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 8px rgba(0, 0, 0, 0.3);
}

.impact-status strong {
    display: block;
    color: var(--adv-gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--adv-gap-xs);
    font-size: 10px;
    font-weight: 700;
}

.impact-status.ready {
    border-color: rgba(96, 165, 250, 0.4);
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(139, 92, 246, 0.1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(59, 130, 246, 0.2);
}

.impact-status.warning {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.08) 0%,
        rgba(248, 113, 113, 0.05) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(239, 68, 68, 0.2);
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.4);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 20px rgba(239, 68, 68, 0.2);
    }
    50% {
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 25px rgba(239, 68, 68, 0.3);
    }
}

.impact-status.neutral {
    border-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(15, 23, 42, 0.3) 100%);
}

.impact-status p {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

/* Active Storylet Container */
.impacts-active-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.impacts-story-title {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid var(--adv-gold-border);
    border-radius: 4px;
    padding: var(--adv-pad-sm);
    margin: var(--adv-pad-md);
    color: var(--adv-gold-accent);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.impacts-story-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--adv-pad-md) var(--adv-pad-md);
}

/* Storylet Cards - Polished Design */
.storylet-card {
    background: linear-gradient(135deg,
        var(--adv-bg-dark) 0%,
        var(--adv-bg-darker) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    padding: var(--adv-pad-md);
    margin-bottom: var(--adv-gap-md);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 12px rgba(168, 85, 247, 0.15);
    transition: all 0.2s ease;
}

.storylet-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: var(--adv-gap-md);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.storylet-card:hover .card-image img {
    transform: scale(1.05);
}

.card-caption {
    color: rgba(226, 232, 240, 0.9);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: var(--adv-pad-md);
    text-align: center;
    padding: 0 var(--adv-pad-sm);
}

/* Choice Options */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: var(--adv-gap-sm);
    margin-top: var(--adv-gap-md);
}

.choice-option-btn {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(51, 65, 85, 0.4) 100%);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 4px;
    padding: var(--adv-pad-sm) var(--adv-pad-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.choice-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(147, 197, 253, 0.1),
        transparent);
    transition: left 0.5s ease;
}

.choice-option-btn:hover:not(:disabled) {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.7) 0%,
        rgba(71, 85, 105, 0.6) 100%);
    border-color: var(--adv-gold-accent);
    transform: translateX(4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 12px rgba(212, 175, 55, 0.3);
}

.choice-option-btn:hover:not(:disabled)::before {
    left: 100%;
}

.choice-option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.choice-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    font-weight: 600;
}

.choice-tag {
    color: rgba(186, 166, 116, 0.6);
    font-size: 9px;
    font-style: italic;
}

/* Rewards Display */
.rewards-display {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: var(--adv-pad-md);
    margin-top: var(--adv-gap-md);
}

.rewards-display h4 {
    color: var(--adv-gold-accent);
    margin: 0 0 var(--adv-gap-sm) 0;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: var(--adv-gap-sm);
    padding: var(--adv-pad-xs);
    background: rgba(15, 23, 42, 0.4);
    border-radius: 3px;
    margin: 3px 0;
}

.reward-icon {
    font-size: 16px;
}

.reward-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
}

/* Action Buttons - Polished Design */
.story-continue-btn,
.story-finish-btn {
    width: 100%;
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.2) 0%,
        rgba(168, 85, 247, 0.3) 100%);
    border: 1px solid var(--adv-red-glow);
    color: var(--adv-gold-accent);
    padding: var(--adv-pad-sm) var(--adv-pad-md);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'RemiliaMincho', serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--adv-gap-md);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 8px rgba(239, 68, 68, 0.2);
}

.story-continue-btn::before,
.story-finish-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(239, 68, 68, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.story-continue-btn:hover,
.story-finish-btn:hover {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.3) 0%,
        rgba(168, 85, 247, 0.4) 100%);
    border-color: var(--adv-gold-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.story-continue-btn:hover::before,
.story-finish-btn:hover::before {
    left: 100%;
}

/* Progress Indicator */
.storylet-progress {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    margin-top: var(--adv-gap-md);
    padding-top: var(--adv-gap-md);
    border-top: 1px solid rgba(147, 197, 253, 0.2);
}

/* Outcome Card Special Styling */
.outcome-card {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(34, 197, 94, 0.1));
}

/* Scrollbar for impacts story body */
.impacts-story-body::-webkit-scrollbar {
    width: 6px;
}

.impacts-story-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.impacts-story-body::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 3px;
}

.impacts-story-body::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 197, 253, 0.5);
}

/* ===== BATTLES CONTENT STYLES ===== */

.adv-battles-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: var(--adv-pad-sm);
}

.adv-battles-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--adv-gap-md);
    height: 100%;
}

.adv-battles-left,
.adv-battles-right {
    display: flex;
    flex-direction: column;
    gap: var(--adv-gap-sm);
    overflow-y: auto;
}

/* Hollowcore Card - Polished Design */
.adv-battle-hollowcore-card {
    background: linear-gradient(135deg,
        var(--adv-bg-dark) 0%,
        var(--adv-bg-darker) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: var(--adv-pad-sm);
    display: flex;
    gap: var(--adv-gap-sm);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 12px rgba(239, 68, 68, 0.15);
    transition: all 0.2s ease;
}

.adv-battle-hollowcore-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.adv-battle-hollowcore-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--adv-gold-border);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.adv-battle-hollowcore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.adv-battle-hollowcore-card:hover .adv-battle-hollowcore-image img {
    transform: scale(1.1);
}

.adv-battle-hollowcore-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--adv-gap-xs);
    min-width: 0;
}

.adv-battle-hollowcore-info h3 {
    color: var(--adv-gold-accent);
    font-size: 11px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.adv-battle-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--adv-gap-xs);
}

.adv-battle-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adv-battle-stat-label {
    color: rgba(186, 166, 116, 0.6);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.adv-battle-stat-value {
    color: var(--adv-blue-glow);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Combat Readiness */
.adv-combat-readiness {
    background: linear-gradient(135deg,
        var(--adv-bg-dark) 0%,
        var(--adv-bg-darker) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: var(--adv-pad-sm);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 12px rgba(239, 68, 68, 0.15);
}

.adv-combat-readiness h4 {
    color: var(--adv-gold-accent);
    font-size: 10px;
    margin: 0 0 var(--adv-gap-sm) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.adv-readiness-stats {
    display: flex;
    flex-direction: column;
    gap: var(--adv-gap-xs);
}

.adv-readiness-row {
    display: grid;
    grid-template-columns: 70px 1fr 35px;
    gap: var(--adv-gap-xs);
    align-items: center;
}

.adv-readiness-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
}

.adv-readiness-bar {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 3px;
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.adv-readiness-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
    text-align: right;
}

.adv-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.adv-progress-bar.energy {
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0.9));
}

.adv-progress-bar.health {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.6), rgba(34, 197, 94, 0.9));
}

.adv-progress-bar.battery {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), rgba(168, 85, 247, 0.9));
}

/* Scrollbars for battles columns */
.adv-battles-left::-webkit-scrollbar,
.adv-battles-right::-webkit-scrollbar {
    width: 6px;
}

.adv-battles-left::-webkit-scrollbar-track,
.adv-battles-right::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.adv-battles-left::-webkit-scrollbar-thumb,
.adv-battles-right::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 3px;
}

.adv-battles-left::-webkit-scrollbar-thumb:hover,
.adv-battles-right::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 197, 253, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .adventure-header {
        min-height: 28px;
        max-height: 28px;
        padding: 3px 6px;
    }

    .adventure-header h2 {
        font-size: 10px;
    }

    .adventure-header .hollowcore-label {
        font-size: 8px;
        padding: 2px 4px;
    }

    .adventure-tabs {
        padding: 4px;
        gap: 3px;
    }

    .adventure-tab {
        padding: 5px 8px;
        font-size: 9px;
    }

    .adventure-tab .tab-icon {
        font-size: 11px;
    }

    .card-image {
        max-height: 150px;
    }

    .card-image img {
        height: 150px;
    }
}

/* Active Impact Status - Resume Button UI */
.active-impact-status {
    text-align: center;
    padding: 40px 20px;
}

.active-impact-status .impact-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.active-impact-status h3 {
    font-size: 22px;
    color: #E5E7EB;
    margin: 0 0 10px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.active-impact-status p {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0 0 25px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #C4B5FD;
}

.status-badge.generating {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(168, 85, 247, 0.3);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    }
    50% {
        border-color: rgba(168, 85, 247, 0.6);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #A855F7;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.resume-impact-btn {
    background: linear-gradient(135deg, #A855F7 0%, #EF4444 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    color: #FFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.resume-impact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.6);
}

.resume-impact-btn:active {
    transform: translateY(0);
}
