/**
 * Dark Realms - Hero Select Styles
 * Style specyficzne dla ekranu wyboru bohaterów
 */

/* =============================================
   STICKY PARTY BAR
============================================= */
.party-bar {
    position: sticky;
    top: 56px; /* Below navbar (navbar height) */
    z-index: 40;
    background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.95) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212,164,23,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-top: 56px; /* Space for fixed navbar */
}

.party-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px; /* Same as max-w-7xl - consistent with navbar and content */
    margin: 0 auto;
    padding: 12px 1rem; /* Add horizontal padding to match navbar's px-4 */
}

/* Party Section (Left) */
.party-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.party-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
}

.party-label .font-cormorant {
    font-size: 0.75rem;
}

.party-label .font-cinzel {
    font-size: 1.1rem;
}

/* Party Slots */
.party-slots {
    display: flex;
    gap: 8px;
}

.party-slot {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px dashed rgba(212,164,23,0.3);
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.party-slot.empty {
    border-style: dashed;
}

.party-slot.filled {
    border-style: solid;
    border-color: rgba(74,222,128,0.6);
    box-shadow: 0 0 10px rgba(74,222,128,0.2);
}

.party-slot .slot-placeholder {
    font-size: 1.2rem;
    color: rgba(212,164,23,0.4);
}

.party-slot .slot-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    max-width: 100%;
    max-height: 100%;
}

.party-slot .slot-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #0a0a0f;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.party-slot.filled:hover .slot-remove {
    opacity: 1;
    transform: scale(1);
}

/* Slot fill animation */
@keyframes slotFill {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.party-slot.filled .slot-portrait {
    animation: slotFill 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Difficulty Section (Center) */
.difficulty-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.difficulty-section .difficulty-selector {
    display: flex;
    flex-direction: row; /* Explicit row direction */
    flex-wrap: nowrap;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.difficulty-info {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Battle Section (Right) */
.battle-section {
    display: flex;
    align-items: center;
}

.battle-btn {
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid rgba(212,164,23,0.5);
    background: linear-gradient(135deg, #78590d 0%, #a67c12 100%);
    color: #f9edb8;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.battle-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.battle-btn:not(.disabled):hover {
    border-color: rgba(212,164,23,0.8);
    background: linear-gradient(135deg, #a67c12 0%, #d4a417 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,164,23,0.4);
}

.battle-btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, transparent, rgba(212,164,23,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Ready state - 3/3 heroes selected */
.battle-btn.ready {
    border-color: #4ade80;
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    animation: battleReady 1.5s ease-in-out infinite;
}

.battle-btn.ready .battle-btn-glow {
    opacity: 1;
    animation: glowSweep 2s linear infinite;
}

@keyframes battleReady {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(74,222,128,0.4), 0 0 40px rgba(74,222,128,0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(74,222,128,0.6), 0 0 60px rgba(74,222,128,0.3);
        transform: scale(1.02);
    }
}

@keyframes glowSweep {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

/* Responsive Party Bar */
@media (max-width: 900px) {
    .party-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .party-section {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .difficulty-section {
        order: 2;
    }
    
    .battle-section {
        order: 3;
    }
}

@media (max-width: 640px) {
    .party-bar {
        top: 56px;
    }
    
    .party-bar-inner {
        flex-direction: column;
        gap: 10px;
        padding: 10px 1rem;
    }
    
    .party-section {
        width: 100%;
        justify-content: center;
    }
    
    .difficulty-section {
        width: 100%;
    }
    
    /* Force horizontal layout for difficulty buttons on mobile */
    .difficulty-section .difficulty-selector {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
    }
    
    .battle-section {
        width: 100%;
    }
    
    .battle-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.75rem;
    }
    
    .party-slot {
        width: 40px;
        height: 40px;
    }
    
    .diff-btn {
        min-width: 50px;
        padding: 6px 8px;
        flex: 1;
    }
    
    .diff-btn .diff-icon {
        font-size: 1rem;
    }
    
    .diff-btn .diff-label {
        font-size: 0.5rem;
    }
    
    /* Hide difficulty info text on very small screens */
    .difficulty-info {
        display: none;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .party-slot {
        width: 36px;
        height: 36px;
    }
    
    .diff-btn {
        min-width: 40px;
        padding: 4px 6px;
    }
    
    .diff-btn .diff-label {
        display: none;
    }
    
    .battle-btn {
        font-size: 0.65rem;
        padding: 10px 12px;
    }
}

/* =============================================
   HERO CARD
============================================= */
.hero-card {
    width: var(--card-width, 260px);
    height: var(--card-height, 380px);
    perspective: 1000px;
    cursor: pointer;
}

/* Responsive hero cards */
@media (max-width: 768px) {
    .hero-card {
        --card-width: 160px;
        --card-height: 240px;
    }
    
    .hero-card .hero-card-glass {
        padding: 10px;
    }
    
    .hero-card .font-cinzel {
        font-size: 0.9rem !important;
    }
    
    .hero-card .font-cormorant {
        font-size: 0.65rem !important;
    }
    
    .hero-card .hero-card-btn {
        padding: 6px 10px;
        font-size: 0.55rem;
    }
    
    .hero-card .class-icon {
        font-size: 1rem;
    }
    
    .hero-card .rarity-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
    }
}

@media (max-width: 400px) {
    .hero-card {
        --card-width: 140px;
        --card-height: 210px;
    }
}

.hero-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform 300ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
    will-change: transform;
    overflow: hidden;
    border: 2px solid rgba(212,164,23,0.3);
}

.hero-card:hover .hero-card-inner {
    border-color: rgba(212,164,23,0.6);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 30px rgba(212,164,23,0.2);
}

/* Card Background */
.hero-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a25 0%, #0a0a0f 100%);
}

.hero-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(10,10,15,0.8) 70%, rgba(10,10,15,0.98) 100%);
}

/* Card Content */
.hero-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    z-index: 2;
}

/* Class Icon */
.class-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Glass Panel */
.hero-card-glass {
    background: linear-gradient(135deg, rgba(212,164,23,0.08) 0%, rgba(10,10,15,0.7) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212,164,23,0.2);
    border-radius: 8px;
    padding: 14px;
    transition: border-color 300ms, transform 300ms;
}

.hero-card:hover .hero-card-glass {
    border-color: rgba(212,164,23,0.5);
    transform: translateY(-4px);
}

/* Select Button */
.hero-card-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 150ms;
    background: linear-gradient(135deg, #78590d, #a67c12);
    border: 1px solid #d4a417;
    color: #f9edb8;
}

.hero-card-btn:hover {
    background: linear-gradient(135deg, #a67c12, #d4a417);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212,164,23,0.4);
}

/* Selected Card */
.hero-card.selected .hero-card-inner {
    border-color: #4ade80;
    box-shadow: 0 0 30px rgba(74,222,128,0.4);
}

.hero-card.selected .hero-card-btn {
    background: linear-gradient(135deg, #166534, #22c55e);
    border-color: #4ade80;
}

.hero-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #166534, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    z-index: 10;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3D Tilt Effect Glow */
.hero-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: radial-gradient(ellipse at var(--glow-x, 50%) var(--glow-y, 50%), rgba(212,164,23,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
    z-index: 0;
}

.hero-card:hover .hero-card-glow { 
    opacity: 1; 
}

/* =============================================
   HERO PREVIEW MODAL
============================================= */
.hero-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.hero-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.hero-modal {
    width: 95vw;
    max-width: 1100px;
    max-height: 90vh;
    background: linear-gradient(145deg, #14141c 0%, #0a0a0f 100%);
    border: 2px solid rgba(212,164,23,0.3);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 380px 1fr;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 80px rgba(212,164,23,0.1);
}

.hero-modal-backdrop.open .hero-modal {
    transform: scale(1) translateY(0);
}

@media (max-width: 900px) {
    .hero-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-portrait-section {
        max-height: 300px;
    }
    
    .modal-portrait-content {
        min-height: auto;
        padding: 20px;
    }
    
    .modal-hero-name {
        font-size: 1.8rem;
    }
    
    .modal-stats-section {
        max-height: none;
        padding: 20px;
    }
}

/* Left Panel - Portrait */
.modal-portrait-section {
    position: relative;
    background: #0a0a0f;
    overflow: hidden;
}

.modal-portrait-bg {
    position: absolute;
    inset: 0;
}

.modal-portrait-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.modal-portrait-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10,10,15,0.95) 100%),
                linear-gradient(to right, transparent 70%, rgba(10,10,15,0.9) 100%);
}

.modal-portrait-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.modal-rarity-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    animation: badgePulse 2s ease-in-out infinite;
}

.modal-hero-name {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #f9edb8;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    letter-spacing: 0.1em;
}

.modal-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(212,164,23,0.7);
    margin: 5px 0 0;
}

.modal-hero-class {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(212,164,23,0.2);
    border-radius: 8px;
    width: fit-content;
}

.modal-hero-class-icon { 
    font-size: 1.5rem; 
}

.modal-hero-class-name {
    font-family: 'Cinzel', serif;
    color: #d4a417;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.modal-hero-class-level {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Right Panel - Stats */
.modal-stats-section {
    padding: 30px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    border-color: rgba(212,164,23,0.5);
    color: #d4a417;
    transform: rotate(90deg);
}

/* Stats Grid */
.stats-section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: rgba(212,164,23,0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212,164,23,0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(212,164,23,0.05) 0%, rgba(0,0,0,0.3) 100%);
    border: 1px solid rgba(212,164,23,0.15);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--stat-color, #d4a417);
}

.stat-icon { 
    font-size: 1.5rem; 
    margin-bottom: 5px; 
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-top: 2px;
}

.stat-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--stat-color, #d4a417);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Resource Bars (Modal) */
.modal-resource-bars {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.resource-bar-container {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 15px;
}

.resource-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.resource-bar-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.resource-bar-value {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
}

.resource-bar-track {
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-bar-fill.hp { 
    background: linear-gradient(90deg, #4a1c1c, #dc2626, #ef4444); 
}

.resource-bar-fill.mp { 
    background: linear-gradient(90deg, #1e3a5f, #2563eb, #3b82f6); 
}

/* Skills Section (Modal) */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.modal-skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(212,164,23,0.03) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(212,164,23,0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-skill-item:hover {
    border-color: rgba(212,164,23,0.3);
    background: linear-gradient(135deg, rgba(212,164,23,0.08) 0%, rgba(0,0,0,0.3) 100%);
}

.modal-skill-icon {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(212,164,23,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.modal-skill-info { 
    flex: 1; 
}

.modal-skill-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #f9edb8;
}

.modal-skill-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.modal-skill-meta {
    text-align: right;
}

.modal-skill-cost {
    font-size: 0.75rem;
    color: #3b82f6;
}

.modal-skill-type {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}

/* Description */
.hero-description {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(212,164,23,0.1);
    border-radius: 10px;
    margin-bottom: 25px;
}

.hero-description p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    margin: 0;
}

/* Modal Select Button */
.modal-select-btn {
    width: 100%;
    padding: 16px 24px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #78590d 0%, #a67c12 50%, #d4a417 100%);
    color: #f9edb8;
    box-shadow: 0 4px 20px rgba(212,164,23,0.3);
}

.modal-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,164,23,0.5);
}

.modal-select-btn.selected {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    box-shadow: 0 4px 20px rgba(74,222,128,0.3);
}

.modal-select-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* No skills state */
.no-skills {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

/* =============================================
   DIFFICULTY SELECTOR (in party bar)
============================================= */
.diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 55px;
}

.diff-btn:hover {
    background: rgba(255,255,255,0.05);
}

.diff-btn .diff-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.diff-btn .diff-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

/* Easy - Green */
.diff-btn[data-difficulty="easy"].active {
    border-color: rgba(74,222,128,0.5);
    background: rgba(74,222,128,0.1);
}
.diff-btn[data-difficulty="easy"].active .diff-label {
    color: #4ade80;
}

/* Normal - Gold */
.diff-btn[data-difficulty="normal"].active {
    border-color: rgba(212,164,23,0.5);
    background: rgba(212,164,23,0.1);
}
.diff-btn[data-difficulty="normal"].active .diff-label {
    color: #d4a417;
}

/* Hard - Orange */
.diff-btn[data-difficulty="hard"].active {
    border-color: rgba(249,115,22,0.5);
    background: rgba(249,115,22,0.1);
}
.diff-btn[data-difficulty="hard"].active .diff-label {
    color: #f97316;
}

/* Nightmare - Red with animation */
.diff-btn[data-difficulty="nightmare"].active {
    border-color: rgba(239,68,68,0.5);
    background: linear-gradient(135deg, rgba(139,0,0,0.15) 0%, rgba(75,0,130,0.15) 100%);
    animation: nightmarePulse 2s ease-in-out infinite;
}
.diff-btn[data-difficulty="nightmare"].active .diff-label {
    color: #ef4444;
}
.diff-btn[data-difficulty="nightmare"].active .diff-icon {
    animation: skullShake 0.5s ease-in-out infinite;
}

@keyframes nightmarePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(239,68,68,0.2); }
    50% { box-shadow: 0 0 20px rgba(239,68,68,0.4); }
}

@keyframes skullShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

