/* ============================================
   BLORPS App - Mining Styles
   Mining Layout, Mining Cards
   ============================================ */

/* ============================================
   Bear Tax Banner
   ============================================ */
.bear-tax-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg-card), rgba(180, 83, 9, 0.06));
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 20px 28px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.bear-tax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b45309, #f59e0b, #b45309);
    opacity: 0.6;
}

.bear-tax-image {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bear-tax-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(180, 83, 9, 0.4));
}

.bear-tax-info {
    flex: 1;
    min-width: 0;
}

.bear-tax-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.bear-tax-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0;
}

.bear-tax-rate {
    font-size: 14px;
    color: var(--text-secondary);
}

.bear-tax-rate strong {
    color: #f59e0b;
    font-size: 16px;
    font-weight: 700;
}

.bear-tax-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .bear-tax-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    .bear-tax-image {
        width: 80px;
        height: 80px;
    }
    .bear-tax-header {
        justify-content: center;
    }
}

/* ============================================
   Mining Layout
   ============================================ */
.mining-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mining-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 16px;
}

.active-mines {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.start-mining-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(74, 222, 128, 0.03));
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.start-mining-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-main), var(--green-glow), var(--green-main));
    opacity: 0.6;
}

.mining-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.3), rgba(74, 222, 128, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--green-glow);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.optional-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dim);
    margin-left: 8px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.team-selector {
    display: flex;
    gap: 12px;
}

.team-slot {
    width: 90px;
    height: 90px;
    border: 2px dashed var(--border-subtle);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.team-slot:hover {
    border-color: var(--green-main);
    background: rgba(74, 222, 128, 0.08);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.15);
}

.team-slot.filled {
    border-style: solid;
    border-color: var(--green-main);
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
}

.team-slot svg {
    width: 24px;
    height: 24px;
    color: var(--text-dim);
}

.team-slot span {
    font-size: 10px;
    color: var(--text-dim);
}

.team-slot.filled {
    border-style: solid;
    border-color: var(--border-active);
}

/* Selected blorp in team slot */
.team-slot .selected-blorp {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    overflow: visible;
}
/* ============================================
   Blorps Row / Grid
   ============================================ */
/* Exactly four equal columns that flex to the container - the old
   fixed-width flex row overflowed by a few px at common widths, clipping
   the 4th card behind a scrollbar. Both renderers cap at top 4. */
.blorps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 8px 0 10px 0;
}

.blorps-row .blorp-card-wrapper.mini {
    width: auto;
    min-width: 0;
}

@media (max-width: 900px) {
    .blorps-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blorps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ============================================
   Premium Blorp Collection Cards - Holographic Style
   ============================================ */

/* Keyframe animations for card effects */
@keyframes holoShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes creatureFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(1deg); }
    75% { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Card Wrapper - Contains border animation */
.blorp-card-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardEnter 0.6s cubic-bezier(0.23, 1, 0.32, 1) backwards;
    animation-delay: calc(var(--card-index, 0) * 0.08s);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9) rotateX(10deg);
    }
}

.blorp-card-wrapper:hover {
    transform: translateY(-12px) scale(1.03);
    z-index: 10;
}

/* Animated Border */
.blorp-card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Rarity-specific borders */
.blorp-card-wrapper.legendary .blorp-card-border {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 25%, #fff5cc 50%, #ffb700 75%, #ffd700 100%);
    background-size: 200% 200%;
    animation: holoShimmer 3s linear infinite, borderPulse 2s ease-in-out infinite;
}

.blorp-card-wrapper.epic .blorp-card-border {
    background: linear-gradient(135deg, #ff6bcd 0%, #a855f7 25%, #ffd6f0 50%, #a855f7 75%, #ff6bcd 100%);
    background-size: 200% 200%;
    animation: holoShimmer 4s linear infinite, borderPulse 2.5s ease-in-out infinite;
}

.blorp-card-wrapper.rare .blorp-card-border {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 25%, #93c5fd 50%, #06b6d4 75%, #3b82f6 100%);
    background-size: 200% 200%;
    animation: holoShimmer 5s linear infinite;
}

.blorp-card-wrapper.common .blorp-card-border {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

/* Card Inner Container */
.blorp-card-inner {
    position: relative;
    background: linear-gradient(180deg, rgba(30, 32, 45, 0.95) 0%, rgba(20, 22, 35, 0.98) 100%);
    border-radius: 17px;
    padding: 20px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

/* Holographic Shine Effect */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.03) 35%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.03) 45%,
        transparent 60%
    );
    background-size: 200% 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blorp-card-wrapper:hover .card-shine {
    opacity: 1;
    animation: holoShimmer 1.5s ease-in-out;
}

/* Corner decorations (the L-shaped accents formerly in each card corner)
   removed — they competed visually with the rarity glow + class badge.
   The .card-corner divs are still emitted by the card renderers so we
   don't have to touch every render site; they just have no styling. */
.card-corner { display: none; }

/* Blorp Showcase Area */
.blorp-showcase {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    /* Crop the SVG when it's scaled up — the salmon SVG sits centered with
       transparent padding on each side; scaling on `.blorp-creature svg`
       (below) crops that padding without resizing the card itself. */
    overflow: hidden;
}

.showcase-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.blorp-card-wrapper:hover .showcase-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.blorp-card-wrapper.legendary .showcase-glow {
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
}

.blorp-card-wrapper.epic .showcase-glow {
    background: radial-gradient(circle, #ff6bcd 0%, transparent 70%);
}

.blorp-card-wrapper.rare .showcase-glow {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.blorp-card-wrapper.common .showcase-glow {
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.blorp-creature {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.blorp-creature svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* Zoom past the SVG's transparent padding. Applied here (on the svg)
       rather than `.blorp-creature` so it doesn't conflict with the
       creatureFloat hover animation which transforms the wrapper. */
    transform: scale(1.6);
}

.blorp-card-wrapper:hover .blorp-creature {
    animation: creatureFloat 3s ease-in-out infinite;
}

.blorp-card-wrapper:hover .blorp-creature svg {
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
}

/* Card Info Section */
.blorp-card-info {
    text-align: center;
    margin-bottom: 16px;
}

.blorp-card-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

/* Rarity Badge */
.rarity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rarity-icon {
    font-size: 10px;
}

.blorp-card-wrapper.legendary .rarity-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 183, 0, 0.15));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.blorp-card-wrapper.epic .rarity-badge {
    background: linear-gradient(135deg, rgba(255, 107, 205, 0.25), rgba(168, 85, 247, 0.15));
    color: #ff6bcd;
    border: 1px solid rgba(255, 107, 205, 0.3);
    text-shadow: 0 0 10px rgba(255, 107, 205, 0.5);
}

.blorp-card-wrapper.rare .rarity-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(6, 182, 212, 0.15));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.blorp-card-wrapper.common .rarity-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats Section - Clean Two-Column Layout */
.blorp-card-stats {
    display: flex;
    align-items: center;
    /* Distribute the three stats evenly with breathing room on both sides -
       reads cleanly at any card width (narrow modal cards + wide dashboard
       cards) instead of jamming the icon against the number. */
    justify-content: space-around;
    gap: 2px;
    padding: 10px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    position: relative;
    /* Clamp to the card width so 3-digit stats never spill past the card edge. */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-block {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    justify-content: center;
}

.stat-block svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.stat-block.bp svg {
    color: #ff6b6b;
    filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.5));
}

.stat-block.tp svg {
    stroke: #4ecdc4;
    filter: drop-shadow(0 0 6px rgba(78, 205, 196, 0.5));
}

/* Value is the star - bold and color-coded */
.stat-value {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

/* Inside blorp cards specifically, use the same 14px sizing the .mini
   variant uses on the dashboard — keeps stat proportions consistent
   across full-size and mini cards regardless of card width. Other
   .stat-value usages (mining/raid slot displays, etc.) keep the base. */
.blorp-card-wrapper .stat-value {
    font-size: 14px;
}
.blorp-card-wrapper .stat-block svg {
    width: 14px;
    height: 14px;
}

.stat-block.bp .stat-value {
    color: #ff8a8a;
    text-shadow: 0 0 12px rgba(255, 107, 107, 0.3);
}

.stat-block.tp .stat-value {
    color: #6ee7de;
    text-shadow: 0 0 12px rgba(78, 205, 196, 0.3);
}

/* Speed - amber accent so all three stats are color-coded, not one plain white. */
.stat-block.speed svg {
    stroke: #ffd166;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.5));
}

.stat-block.speed .stat-value {
    color: #ffdd8a;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.3);
}

/* Hide redundant labels on blorp card stats - icons are enough */
.blorp-card .stat-label,
.stat-block .stat-label {
    display: none;
}

/* Subtle center divider */
.stat-divider {
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.14) 30%,
        rgba(255, 255, 255, 0.14) 70%,
        transparent 100%
    );
    flex-shrink: 0;
}

/* Legendary sparkle effect */
.blorp-card-wrapper.legendary::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: 0.5s;
    z-index: 5;
}

.blorp-card-wrapper.legendary::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffd700, 0 0 16px #ffd700;
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 5;
}

/* Epic subtle particles */
.blorp-card-wrapper.epic::before {
    content: '';
    position: absolute;
    top: 25%;
    right: 20%;
    width: 6px;
    height: 6px;
    background: #ff6bcd;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff6bcd;
    animation: sparkle 3s ease-in-out infinite;
    animation-delay: 0.3s;
    z-index: 5;
}

/* Hover glow intensification */
.blorp-card-wrapper.legendary:hover {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.2);
}

.blorp-card-wrapper.epic:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 205, 0.25), 0 0 30px rgba(255, 107, 205, 0.15);
}

.blorp-card-wrapper.rare:hover {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25), 0 0 30px rgba(59, 130, 246, 0.15);
}

.blorp-card-wrapper.common:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Rarity-specific card backgrounds */
.blorp-card-wrapper.legendary .blorp-card-inner {
    background: linear-gradient(180deg,
        rgba(255, 215, 0, 0.08) 0%,
        rgba(30, 32, 45, 0.98) 30%,
        rgba(20, 22, 35, 0.98) 100%
    );
}

.blorp-card-wrapper.epic .blorp-card-inner {
    background: linear-gradient(180deg,
        rgba(255, 107, 205, 0.06) 0%,
        rgba(30, 32, 45, 0.98) 30%,
        rgba(20, 22, 35, 0.98) 100%
    );
}

.blorp-card-wrapper.rare .blorp-card-inner {
    background: linear-gradient(180deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(30, 32, 45, 0.98) 30%,
        rgba(20, 22, 35, 0.98) 100%
    );
}

/* Busy/Mining Card States */
.blorp-card-wrapper.busy {
    opacity: 0.75;
}

.blorp-card-wrapper.busy .blorp-creature {
    filter: grayscale(40%) brightness(0.8);
}

.blorp-card-wrapper.mining-active {
    border-color: var(--yellow-main, #fbbf24) !important;
}

.blorp-card-wrapper.mining-active .blorp-card-border {
    border-color: var(--yellow-main, #fbbf24);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ============================================
   Complete State — Roe / Caviar Warm Glow
   ============================================ */
.mining-overlay.complete {
    background: linear-gradient(
        180deg,
        rgba(255, 161, 87, 0.15) 0%,
        rgba(5, 24, 40, 0.78) 40%,
        rgba(5, 24, 40, 0.88) 100%
    );
}

.mining-overlay.complete::before {
    background:
        radial-gradient(ellipse 80% 30% at 30% 20%, rgba(255, 214, 168, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 25% at 70% 70%, rgba(255, 161, 87, 0.08) 0%, transparent 60%);
}

.mining-overlay.complete::after {
    border-color: rgba(255, 214, 168, 0.55);
}

.mining-overlay.complete .mining-icon-wrap::before {
    border-color: rgba(255, 214, 168, 0.55);
}

.mining-overlay.complete .mining-icon-wrap::after {
    background: radial-gradient(circle at 35% 30%,
        rgba(255, 161, 87, 0.22) 0%,
        rgba(20, 12, 6, 0.92) 70%);
    border-color: rgba(255, 214, 168, 0.45);
}

.mining-overlay.complete .mining-icon {
    color: #ffd6a8;
    filter: drop-shadow(0 0 12px rgba(255, 161, 87, 0.7));
    animation: drift-bob 1.6s ease-in-out infinite;
}

.mining-overlay.complete .mining-label {
    color: #ffe6c8;
    background: rgba(255, 161, 87, 0.15);
    border-color: rgba(255, 214, 168, 0.55);
    text-shadow: 0 0 8px rgba(255, 161, 87, 0.45);
}

.mining-overlay.complete .mining-time {
    color: #ffd6a8;
    font-size: 14px;
    text-shadow:
        0 0 10px rgba(255, 161, 87, 0.55),
        0 0 20px rgba(255, 161, 87, 0.3);
}

.mining-overlay.complete .mining-progress .dot.active {
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 214, 168, 0.55) 50%,
        rgba(255, 161, 87, 0.2) 100%);
    border-color: rgba(255, 214, 168, 0.7);
    box-shadow: 0 0 8px rgba(255, 161, 87, 0.6);
}


/* Auto-settle hint under the Claim button on finished expeditions */
.expedition-autosettle-note {
    margin: 6px 2px 0;
    font-size: 11.5px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.4;
}

/* Settle All: appears when 2+ expeditions/battles are ready to settle. */
.mining-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settle-all-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.15);
    color: var(--green-light);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.settle-all-btn:hover { background: rgba(74, 222, 128, 0.3); }
.settle-all-btn:disabled { opacity: 0.5; cursor: wait; }

/* ============ Auto-mining (idle mode) ============ */
.auto-mining-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 20px;
    background: rgba(20, 30, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: border-color 0.2s;
}

.auto-mining-card.enabled {
    border-color: rgba(110, 231, 183, 0.45);
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.06), rgba(20, 30, 48, 0.85));
}

.auto-mining-info { flex: 1; min-width: 0; }

.auto-mining-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.auto-mining-header h3 { margin: 0; }

.auto-mining-status {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim, #94a3b8);
}

.auto-mining-status.on {
    background: rgba(110, 231, 183, 0.15);
    color: #6ee7b7;
}

.auto-mining-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim, #94a3b8);
    line-height: 1.5;
}

.auto-mining-desc strong { color: #ffb37a; }

.auto-mining-toggle {
    flex: 0 0 auto;
    min-width: 190px;
}

.auto-mining-toggle.active {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fca5a5;
}

@media (max-width: 640px) {
    .auto-mining-card { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Mythic 1/1 tier (above Legendary) - ember
   ============================================ */
.blorp-card-wrapper.mythic .blorp-card-border {
    background: linear-gradient(135deg, #ff4d2e 0%, #ff9d2e 25%, #ffe0cc 50%, #ff9d2e 75%, #ff4d2e 100%);
    background-size: 200% 200%;
    animation: holoShimmer 2.4s linear infinite, borderPulse 1.8s ease-in-out infinite;
}

.blorp-card-wrapper.mythic .showcase-glow {
    background: radial-gradient(circle, #ff4d2e 0%, transparent 70%);
}

.blorp-card-wrapper.mythic .rarity-badge {
    background: linear-gradient(135deg, rgba(255, 77, 46, 0.28), rgba(255, 157, 46, 0.16));
    color: #ff6b3d;
    border: 1px solid rgba(255, 77, 46, 0.4);
    text-shadow: 0 0 10px rgba(255, 77, 46, 0.6);
}

/* Twin ember sparkles */
.blorp-card-wrapper.mythic::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 8px;
    height: 8px;
    background: #ff9d2e;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4d2e, 0 0 22px #ff4d2e;
    animation: sparkle 1.6s ease-in-out infinite;
    z-index: 3;
}

.blorp-card-wrapper.mythic .blorp-card-inner {
    background: linear-gradient(180deg,
        rgba(255, 77, 46, 0.10) 0%,
        rgba(32, 24, 26, 0.98) 30%,
        rgba(24, 18, 22, 0.98) 100%
    );
}

/* Static 1/1 art (backend PNG) sits where the composited SVG would.
   Unlike composited salmon (transparent padding baked into the layers),
   the 1/1 PNGs are tightly cropped - size them a notch under the
   showcase's overflow:hidden box so nothing clips (120px standard,
   150px mini). */
.blorp-creature .mythic-art {
    display: block;
    height: 104px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 0 14px rgba(255, 77, 46, 0.35));
}

.blorp-card-wrapper.mini .blorp-creature .mythic-art {
    height: 132px;
}
