/* ===== Pack Opening Styles - Premium Experience ===== */

/* Pack Size Selector Modal */
.pack-selector-content {
    padding: 1rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.02) 0%, transparent 50%);
    max-height: calc(100vh - 180px);
}

.pack-selector-points {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: rgba(201, 162, 39, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 6px;
}

.pack-selector-points-value {
    color: #c9a227;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(201, 162, 39, 0.5);
}

.pack-selector-instructions {
    text-align: center;
    color: #c9a227;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pack-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

/* Pack Option Cards */
.pack-option {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.pack-option:not(.pack-option-disabled):hover {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 16px 32px rgba(201, 162, 39, 0.4));
}

.pack-option-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pack-option-frame {
    padding: 2rem 1.5rem;
    border: 3px solid transparent;
    border-radius: 12px;
    background: 
        linear-gradient(145deg, #1a1a2e, #16213e) padding-box,
        linear-gradient(145deg, #c9a227, #f4e4ba, #c9a227, #8b6914) border-box;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pack-option-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(201, 162, 39, 0.04) 30%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.pack-option:not(.pack-option-disabled):hover .pack-option-frame::before {
    opacity: 1;
}

.pack-option-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pack-float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(201, 162, 39, 0.4));
    position: relative;
    z-index: 1;
}

@keyframes pack-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pack-option-title {
    font-size: 1.3rem;
    color: #f4e4ba;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.pack-option-cards {
    font-size: 1rem;
    color: #c9a227;
    margin: 0 0 1rem 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.pack-option-cost {
    font-size: 1.1rem;
    color: #2ecc71;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(46, 204, 113, 0.5);
    position: relative;
    z-index: 1;
}

.pack-option-insufficient {
    font-size: 0.85rem;
    color: #e74c3c;
    margin: 0.75rem 0 0 0;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

/* Floating Pack Overlay */
.pack-opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pack-opening-overlay.active {
    opacity: 1;
}

.floating-pack-container {
    text-align: center;
    animation: pack-appear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pack-appear {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.floating-pack {
    position: relative;
    width: 280px;
    height: 380px;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    animation: pack-pulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
    perspective: 1000px;
    z-index: 10;
}

.floating-pack:hover {
    transform: scale(1.08) rotate(2deg);
    animation-play-state: paused;
}

@keyframes pack-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Trading Card Pack Design */
.trading-card-pack {
    width: 100%;
    height: 100%;
    position: relative;
    filter: drop-shadow(0 12px 48px rgba(201, 162, 39, 0.6));
    pointer-events: none;
}

.pack-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.pack-front {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            #1a1a2e 0%,
            #16213e 25%,
            #1a1a2e 50%,
            #16213e 75%,
            #1a1a2e 100%
        );
    border: 4px solid transparent;
    border-radius: 16px;
    background-image: 
        linear-gradient(135deg, #1a1a2e, #16213e),
        linear-gradient(135deg, 
            #d4af37 0%, 
            #f4e4ba 25%, 
            #c9a227 50%, 
            #8b6914 75%, 
            #c9a227 100%
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 20px rgba(255, 255, 255, 0.1),
        inset 0 -2px 20px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.pack-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(201, 162, 39, 0.03) 10px,
            rgba(201, 162, 39, 0.03) 20px
        );
    pointer-events: none;
}

.pack-logo {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-logo-icon {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #c9a227 0%, #d4af37 50%, #c9a227 100%);
    border-radius: 50%;
    padding: 10px;
    filter: 
        drop-shadow(0 0 20px rgba(201, 162, 39, 0.8))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 10px rgba(201, 162, 39, 0.6));
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        filter: 
            drop-shadow(0 0 20px rgba(201, 162, 39, 0.8))
            drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 10px rgba(201, 162, 39, 0.6));
    }
    50% {
        filter: 
            drop-shadow(0 0 30px rgba(201, 162, 39, 1))
            drop-shadow(0 0 50px rgba(201, 162, 39, 0.8))
            drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    }
}

.pack-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f4e4ba;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.pack-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c9a227;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(201, 162, 39, 0.5);
    border-radius: 20px;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pack-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: pack-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes pack-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Card edges visible at top of pack */
.pack-cards-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.card-edge {
    width: 50px;
    height: 30px;
    background: 
        linear-gradient(180deg, 
            #f4e4ba 0%,
            #e8d7a8 50%,
            #c9a227 100%
        );
    border: 2px solid #8b6914;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    position: relative;
    transform: rotate(-2deg);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.card-edge:nth-child(2) {
    transform: rotate(0deg);
    margin-top: -5px;
}

.card-edge:nth-child(3) {
    transform: rotate(2deg);
}

.card-edge::before {
    content: '';
    position: absolute;
    inset: 4px 4px 0 4px;
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    border-radius: 4px 4px 0 0;
}

.floating-pack-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(201, 162, 39, 0.4) 0%,
        rgba(201, 162, 39, 0.2) 30%,
        transparent 70%
    );
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.floating-pack-text {
    font-size: 1.5rem;
    color: #f4e4ba;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(201, 162, 39, 0.8);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(201, 162, 39, 0.8);
    }
    50% {
        text-shadow: 0 2px 16px rgba(201, 162, 39, 1), 0 0 30px rgba(201, 162, 39, 0.6);
    }
}

.floating-pack-size {
    font-size: 1.1rem;
    color: #c9a227;
    margin: 0;
    font-weight: 600;
}

/* Pack Opening Animation */
.floating-pack.opening {
    animation: pack-opening 0.8s ease-in-out;
}

@keyframes pack-opening {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    50% {
        transform: scale(0.9) rotate(10deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* Pack Burst Animation */
.floating-pack.burst {
    animation: pack-burst 0.8s ease-out forwards;
}

@keyframes pack-burst {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Card Reveal Overlay */
.card-reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.card-reveal-overlay.active {
    opacity: 1;
}

.card-reveal-container {
    max-width: 1200px;
    width: 100%;
}

.card-reveal-title {
    text-align: center;
    font-size: 2.5rem;
    color: #f4e4ba;
    margin: 0 0 2rem 0;
    text-shadow: 0 2px 12px rgba(201, 162, 39, 0.8);
    animation: title-appear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes title-appear {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-reveal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Reveal Card */
.reveal-card {
    perspective: 1000px;
    opacity: 0;
    animation: card-appear 0.6s ease-out forwards;
}

@keyframes card-appear {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.reveal-card-inner {
    position: relative;
    width: 100%;
    height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal-card.flipped .reveal-card-inner {
    transform: rotateY(180deg);
}

.reveal-card-back,
.reveal-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.reveal-card-back {
    background: 
        linear-gradient(145deg, #1a1a2e, #16213e),
        linear-gradient(145deg, #c9a227, #f4e4ba, #c9a227, #8b6914);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-back-design {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card-back-icon {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #c9a227 0%, #d4af37 50%, #c9a227 100%);
    border-radius: 50%;
    padding: 8px;
    filter: 
        drop-shadow(0 2px 12px rgba(201, 162, 39, 0.8))
        drop-shadow(0 0 20px rgba(201, 162, 39, 0.5));
}

.reveal-card-front {
    transform: rotateY(180deg);
    background: transparent;
}

.reveal-card-frame {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: 3px solid transparent;
    border-radius: 12px;
    background: 
        linear-gradient(145deg, #1a1a2e, #16213e) padding-box,
        linear-gradient(145deg, #d4af37, #f4e4ba, #c9a227, #8b6914) border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 
        0 8px 24px rgba(201, 162, 39, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.reveal-card-edition-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 60%),
        linear-gradient(145deg, #d4af37, #c9a227);
    color: #1a1a2e;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    border-radius: 50%;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 5;
    min-width: 36px;
    text-align: center;
}

.reveal-card-art-frame {
    width: 100%;
    aspect-ratio: 1;
    max-width: 100px;
    margin: 2rem auto 1rem;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.06), transparent 60%),
        linear-gradient(145deg, #0f0f1a, #1a1a2e);
    border: 3px solid #c9a227;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(201, 162, 39, 0.3);
}

.reveal-card-art {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(201, 162, 39, 0.5));
}

.reveal-card-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reveal-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f4e4ba;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Pack Results Modal */
#mini-modal-body:has(.pack-results-container),
#modal1-body:has(.pack-results-container) {
    overflow-y: auto;
    padding: 1.25rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.08), transparent 60%);
    max-height: calc(100vh - 200px);
}

.pack-results-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pack-results-centered {
    max-width: 1000px;
    margin: 0 auto;
}

.pack-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Pack Result Card - Compact View */
.pack-result-card {
    animation: result-card-appear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes result-card-appear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pack-result-card-frame {
    position: relative;
    padding: 0.85rem;
    border: 3px solid transparent;
    border-radius: 10px;
    background: 
        linear-gradient(145deg, #1a1a2e, #16213e) padding-box,
        linear-gradient(145deg, #c9a227, #f4e4ba, #c9a227, #8b6914) border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 240px;
    box-shadow: 
        0 4px 16px rgba(201, 162, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pack-result-card-frame:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(201, 162, 39, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pack-result-edition-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
        linear-gradient(145deg, #c9a227, #f4e4ba);
    color: #1a1a2e;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 5;
    min-width: 30px;
    text-align: center;
}

.pack-result-art-frame {
    width: 100%;
    aspect-ratio: 1;
    max-width: 80px;
    margin: 1.5rem auto 1rem;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(145deg, #0f0f1a, #1a1a2e);
    border: 2px solid #c9a227;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        0 3px 10px rgba(201, 162, 39, 0.25);
}

.pack-result-art {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(201, 162, 39, 0.4));
}

.pack-result-card-info {
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pack-result-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f4e4ba;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pack-result-card-tagline {
    font-size: 0.7rem;
    color: #8892b0;
    margin: 0;
    line-height: 1.3;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Pack Results Summary */
.pack-results-summary {
    padding: 1rem;
    background: 
        linear-gradient(145deg, rgba(201, 162, 39, 0.05), transparent),
        var(--bg-tertiary);
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    text-align: center;
}

.pack-results-cost {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.pack-results-remaining {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
}

.pack-results-points {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(46, 204, 113, 0.5);
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .pack-options-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .pack-option-frame {
        min-height: 240px;
        padding: 1.5rem 1rem;
    }
    
    .pack-option-icon {
        font-size: 4rem;
    }
    
    .floating-pack {
        width: 220px;
        height: 300px;
    }
    
    .pack-logo-icon {
        width: 100px;
        height: 100px;
        padding: 8px;
    }
    
    .card-back-icon {
        width: 80px;
        height: 80px;
        padding: 6px;
    }
    
    .pack-title {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }
    
    .pack-cards-top {
        gap: 6px;
    }
    
    .card-edge {
        width: 40px;
        height: 25px;
    }
    
    .card-reveal-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .reveal-card-inner {
        height: 280px;
    }
    
    .reveal-card-title {
        font-size: 0.9rem;
    }
    
    .pack-results-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.25rem;
    }
    
    .pack-result-card-frame {
        min-height: 220px;
        padding: 0.75rem;
    }
    
    .pack-results-centered {
        padding: 0 0.5rem;
    }
    
    .pack-result-art-frame {
        max-width: 70px;
    }
    
    .pack-result-art {
        width: 40px;
        height: 40px;
    }
    
    .card-reveal-title {
        font-size: 2rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pack-option-icon,
    .floating-pack,
    .floating-pack-glow,
    .floating-pack-text,
    .pack-option:not(.pack-option-disabled):hover,
    .pack-result-card-frame:hover,
    .pack-logo,
    .pack-shine {
        animation: none !important;
    }
    
    .reveal-card {
        animation: none !important;
        opacity: 1;
    }
    
    .reveal-card-inner {
        transition: opacity 0.3s ease;
    }
    
    .reveal-card.flipped .reveal-card-inner {
        transform: none;
    }
    
    .reveal-card.flipped .reveal-card-back {
        opacity: 0;
    }
    
    .reveal-card.flipped .reveal-card-front {
        transform: none;
        opacity: 1;
    }
    
    .pack-opening-overlay,
    .card-reveal-overlay {
        transition: opacity 0.2s ease;
    }
}

