* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Fredoka One", cursive;
    background-color: darkgreen;
    background-image: url(Stud_transparent.png);
    background-size: 100px;
    background-repeat: repeat;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height */
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    /* Dynamic viewport height */
    position: fixed !important;
    width: 100vw !important;
    width: 100dvw !important;
    /* Dynamic viewport width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

/* Loading Screen */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87ceeb 0%, #98fb98 50%, #90ee90 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    width: 0%;
    animation: loadingProgress 3s ease-in-out;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Game Background */

.game-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87ceeb 0%, #98fb98 50%, #90ee90 100%);
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Mobile Header */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, #27ae60, #229954);
    border-bottom: 3px solid #1e8449;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s, color 0.2s, transform 0.3s;
    border: none;
    outline: none;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-stats-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.mobile-stats-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mobile-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Stats Panel */

.mobile-stats-panel {
    position: fixed;
    top: 60px;
    right: -300px;
    width: 280px;
    background: linear-gradient(to bottom, #8b4513, #654321);
    border-left: 3px solid #543415;
    padding: 20px;
    z-index: 150;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-stats-panel.active {
    right: 0;
}

.mobile-stats-panel .stat-item {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 14px;
}

.stat-value {
    color: #ffd700;
    font-weight: bold;
}

/* Top Navigation */

.top-nav {
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 20px;
}

.nav-btn {
    background: linear-gradient(to bottom, #5dade2, #3498db);
    border: 3px solid #2980b9;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3);
    user-select: none;
}

.nav-btn.seeds {
    background: linear-gradient(to bottom, #5dade2, #3498db);
}

.nav-btn.garden {
    background: linear-gradient(to bottom, #27ae60, #229954);
    border-color: #1e8449;
}

.nav-btn.sell {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-color: #a93226;
}

.nav-btn.active {
    transform: translateY(2px);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Shop Window */

.shop-window {
    height: 90vh;
    width: 90%;
    justify-self: center;
    max-width: 900px;
    background: linear-gradient(to bottom, #8b4513, #654321);
    border: 4px solid #543415;
    border-radius: 12px;
    box-shadow: inset 2px 2px 0px rgba(139, 69, 19, 0.6), 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    align-self: center;
    display: flex;
    flex-direction: column;
}

.shop-window {
    display: grid;
    grid-template-rows: auto 1fr;
}

/* Shop Header */

.shop-header {
    background: linear-gradient(to bottom, #27ae60, #229954);
    border-bottom: 3px solid #1e8449;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 210;
}

.shop-title {
    color: white;
    /*   font-size: 20px; */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-close {
    display: flex;
    background: #e74c3c;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #c0392b;
    transition: all 0.2s;
}

.shop-close:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Search and Filter Bar */

.search-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: white;
    border: 3px solid #654321;
    border-radius: 8px;
    font-family: "Fredoka One", cursive;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
}

.filter-container {
    min-width: 120px;
}

.tier-filter {
    width: 100%;
    padding: 12px;
    background: white;
    border: 3px solid #654321;
    border-radius: 8px;
    font-family: "Fredoka One", cursive;
    font-size: 14px;
    cursor: pointer;
}

/* Shop Content */

.shop-content {
    padding: 5px 15px 20px 15px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Important for flex child */
}

.shop-content.hidden {
    display: none;
}

/* Shop Sections */

.shop-section {
    background: linear-gradient(to bottom, #7d5a3f, #654321);
    border: 3px solid #543415;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: inset 2px 2px 0px rgba(139, 69, 19, 0.6);
    transition: all 0.3s ease;
}

.shop-section.hidden {
    display: none;
}

.section-header {
    background: linear-gradient(to bottom, #8b4513, #654321);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #543415;
}

.section-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid;
}

.section-badge.new {
    background: linear-gradient(to bottom, #ffd700, #f1c40f);
    color: #8b4513;
    border-color: #d68910;
}

.section-badge.prismatic {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    color: white;
    border-color: #fff;
    animation: rainbow 3s ease-in-out infinite;
}

.section-badge.mythical {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
    color: white;
    border-color: #7d3c98;
}

.section-badge.legendary {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    color: white;
    border-color: #d68910;
}

.section-badge.rare {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    border-color: #2471a3;
}

.section-badge.uncommon {
    background: linear-gradient(to bottom, #27ae60, #229954);
    color: white;
    border-color: #1e8449;
}

.section-badge.common {
    background: linear-gradient(to bottom, #95a5a6, #7f8c8d);
    color: white;
    border-color: #5d6d7e;
}

.section-badge.unknown {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    border-color: #1b2631;
}

@keyframes rainbow {
    0%,
    100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
}

.section-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    flex: 1;
}

.section-timer {
    color: #ff6b6b;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Items Row */

.items-row {
    display: flex;
    /* padding: 16px; */
    gap: 16px;
}

.item-preview {
    flex: 1;
}

.preview-pets {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px;
}

.preview-fruits {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px;
}

.pet-item {
    background: linear-gradient(to bottom, #5d4e37, #4a3728);
    border: 2px solid #3d2f1f;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pet-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.pet-item.selected {
    border-color: #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
    transform: scale(1.05) !important;
}

.pet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 60px;
}

.pet-icon img {
    max-width: 100%;
    /* max-height: 60px; */
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.pet-chance {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    word-wrap: break-word;
    font-size: 1rem !important;
}

/* Fruit styles */

.fruit-item {
    background: linear-gradient(to bottom, #5d4e37, #4a3728);
    border: 2px solid #3d2f1f;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fruit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fruit-item.selected {
    border-color: #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
    transform: scale(1.05) !important;
}

.timer-text {
    font-size: 20px;
    font-weight: bold;
    color: crimson;
}

.fruit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 60px;
}

.fruit-icon img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.fruit-chance {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    word-wrap: break-word;
    font-size: 1rem !important;
}

/* Info page styles */

.info-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.info-section {
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #5d4e37, #4a3728);
    border: 2px solid #3d2f1f;
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.1);
}

.info-title {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    text-align: center;
}

.info-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.step-number {
    background: linear-gradient(to bottom, #ffd700, #ffb347);
    color: #333;
    font-weight: bold;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.step-content h3 {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.step-content p {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.safety-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.safety-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.safety-content h3 {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.safety-content p {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.rarity-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.rarity-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid;
}

.rarity-tier.divine {
    border-left-color: #ffd700;
}

.rarity-tier.legendary {
    border-left-color: #ff6b6b;
}

.rarity-tier.mythical {
    border-left-color: #a855f7;
}

.rarity-tier.prismatic {
    border-left-color: #06b6d4;
}

.rarity-tier.rare {
    border-left-color: #3b82f6;
}

.rarity-tier.uncommon {
    border-left-color: #10b981;
}

.rarity-tier.common {
    border-left-color: #6b7280;
}

.rarity-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rarity-info h3 {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.rarity-info p {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Forever Pack */

.forever-pack {
    background: linear-gradient(to bottom, #8e44ad, #7d3c98);
    border: 3px solid #6c3483;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2);
}

.forever-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.forever-timer {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.forever-description {
    color: #e8f8f5;
    font-size: 14px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Modal Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.game-modal {
    background: linear-gradient(to bottom, #8b4513, #654321);
    border: 4px solid #543415;
    border-radius: 12px;
    box-shadow: inset 2px 2px 0px rgba(139, 69, 19, 0.6), 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    max-height: 90dvh;
    /* Dynamic viewport height */
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(to bottom, #5dade2, #3498db);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2980b9;
}

.modal-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: #e74c3c;
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #c0392b;
}

.modal-content {
    padding: 24px;
}

.selected-pack-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(to bottom, #7d5a3f, #654321);
    border: 2px solid #543415;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.pack-icon {
    font-size: 32px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    min-width: 50px;
    display: flex;
    gap: 10px;
}

.arrow-animate {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 2px 2px 8px #54341588, 0 0 6px #fff6;
    margin: 0 24px;
    display: inline-block;
    animation: arrowWiggle 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 2px 6px #54341555);
}

@keyframes arrowWiggle {
    0% {
        transform: translateX(0) scale(1);
    }
    20% {
        transform: translateX(-6px) scale(1.08);
    }
    40% {
        transform: translateX(6px) scale(1.08);
    }
    60% {
        transform: translateX(-4px) scale(1.04);
    }
    80% {
        transform: translateX(4px) scale(1.04);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

.pack-name {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.pack-quantity {
    color: #ffd700;
    font-size: 14px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.input-label {
    color: white;
    font-size: 14px;
    margin-bottom: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.game-input {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 3px solid #654321;
    border-radius: 6px;
    font-family: "Fredoka One", cursive;
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.game-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

.username-tips {
    margin-bottom: 20px;
}

.tip {
    color: #bdc3c7;
    font-size: 12px;
    margin-bottom: 4px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.game-btn {
    padding: 12px 24px;
    border: 3px solid;
    border-radius: 6px;
    font-family: "Fredoka One", cursive;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2);
    user-select: none;
}

.game-btn.cancel {
    background: linear-gradient(to bottom, #95a5a6, #7f8c8d);
    border-color: #5d6d7e;
    color: white;
}

.game-btn.confirm {
    background: linear-gradient(to bottom, #27ae60, #229954);
    border-color: #1e8449;
    color: white;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

/* Generation Page */

.generation-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.generating-pack-info {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 30px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    border: 2.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    gap: 40px;
}

.pack-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    align-self: stretch;
}

.pack-icon {
    font-size: 64px;
    filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.5));
    min-width: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    margin-bottom: 10px;
}

.pack-label {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.arrow-animate {
    font-size: 56px;
    color: #FFD700;
    text-shadow: 2px 2px 12px #54341588, 0 0 10px #fff6;
    margin: 0 32px 12px 32px;
    display: flex;
    align-items: flex-end;
    animation: arrowWiggle 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 4px 12px #54341555);
}

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

.pack-name-large {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.pack-quantity-large {
    color: #ffd700;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.generation-progress {
    background: linear-gradient(to bottom, #7d5a3f, #654321);
    border: 3px solid #543415;
    border-radius: 8px;
    padding: 24px;
    box-shadow: inset 2px 2px 0px rgba(139, 69, 19, 0.6);
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #543415;
    border: 3px solid #3d2a15;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #27ae60, #2ecc71);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.status-text {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.generation-steps {
    text-align: left;
}

.step {
    color: #bdc3c7;
    font-size: 16px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.step.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    font-weight: bold;
}

.step.completed {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

/* Offers Page */

.offers-header {
    text-align: center;
    margin-bottom: 24px;
}

.offers-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 12px;
}

.offers-subtitle {
    color: #e8f8f5;
    font-size: 16px;
    margin-bottom: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.security-badge {
    display: inline-block;
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #27ae60;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-card {
    background: linear-gradient(to bottom, #7d5a3f, #654321);
    border: 3px solid #543415;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 2px 2px 0px rgba(139, 69, 19, 0.6);
    display: flex;
    align-items: center;
    gap: 20px;
}

.offer-card.featured {
    border-color: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.4), inset 2px 2px 0px rgba(139, 69, 19, 0.6);
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 2px 2px 0px rgba(139, 69, 19, 0.6), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.offer-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #ffd700, #f1c40f);
    color: #8b4513;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #d68910;
}

.offer-icon {
    font-size: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    display: flex;
    flex-shrink: 0;
}

.offer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.offer-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: left;
}

.offer-desc {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    text-align: left;
}

.offer-reward {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.offer-complete-btn {
    background: linear-gradient(to bottom, #27ae60, #229954);
    border: 2px solid #1e8449;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: "Fredoka One", cursive;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2);
    user-select: none;
    margin-top: 8px;
}

.offer-complete-btn:hover {
    background: linear-gradient(to bottom, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.offer-complete-btn:active {
    transform: translateY(0);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(to bottom, #27ae60, #229954);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #1e8449;
    font-family: "Fredoka One", cursive;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.toast.error {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-color: #a93226;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */

.hidden {
    display: none !important;
}

/* Scrollbar Styling */

.shop-content::-webkit-scrollbar {
    width: 8px;
}

.shop-content::-webkit-scrollbar-track {
    background: #543415;
    border-radius: 4px;
}

.shop-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}

.shop-content::-webkit-scrollbar-thumb:hover {
    background: #a0522d;
}

/* Mobile Responsive Design */

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
        /* Dynamic viewport height */
        display: block;
        overflow: auto !important;
    }
    .shop-window {
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        /* Dynamic viewport height */
        margin: 8px auto;
        display: flex;
        flex-direction: column;
    }
    .shop-content {
        padding: 12px;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    .shop-header {
        position: relative;
        z-index: 210;
    }
    /* Modal adjustments for mobile keyboard */
    .modal-overlay {
        align-items: flex-start;
        padding: 10px;
    }
    .game-modal {
        max-height: 85dvh;
        margin: 10px 0;
    }
    .modal-content {
        padding: 16px;
    }
    .search-filter-bar {
        flex-direction: column;
        gap: 8px;
    }
    .preview-pets {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .preview-fruits {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pet-item {
        min-height: 100px;
        padding: 8px 4px;
    }
    .pet-icon {
        min-height: 50px;
    }
    .pet-icon img {
        /* max-height: 50px; */
    }
    .pet-chance {
        font-size: 10px;
    }
    .fruit-item {
        min-height: 100px;
        padding: 8px 6px;
    }
    .fruit-chance {
        font-size: 10px;
    }
    .info-container {
        padding: 15px;
    }
    .info-section {
        padding: 15px;
    }
    .info-title {
        font-size: 20px;
    }
    .safety-features {
        grid-template-columns: 1fr;
    }
    .rarity-tiers {
        grid-template-columns: 1fr;
    }
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .offer-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .offer-info {
        align-items: center;
    }
    .offer-name,
    .offer-desc,
    .offer-reward {
        text-align: center;
    }
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .selected-pack-display {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .pack-icon-large {
        font-size: 48px;
    }
    .generating-title {
        font-size: 20px;
    }
    .offers-title {
        font-size: 20px;
    }
    .offers-subtitle {
        font-size: 14px;
    }
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }
    .toast {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .shop-window {
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        /* Dynamic viewport height */
        margin: 8px auto;
        display: flex;
        flex-direction: column;
    }
    .shop-content {
        padding: 12px;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    /* Enhanced modal adjustments for smaller screens */
    .modal-overlay {
        align-items: flex-start;
        padding: 5px;
    }
    .game-modal {
        max-height: 80dvh;
        margin: 5px 0;
    }
    .modal-content {
        padding: 12px;
    }
    .preview-pets {
        gap: 6px;
        flex-wrap: wrap;
    }
    .pet-item {
        flex: 0 0 48%;
        /* 2 per row, with some gap */
        max-width: 48%;
    }
    .preview-fruits {
        gap: 6px;
        flex-wrap: wrap;
    }
    .fruit-item {
        flex: 0 0 48%;
        /* 2 per row, with some gap */
        max-width: 48%;
    }
    .pet-item {
        min-height: 80px;
        padding: 6px 4px;
    }
    .pet-icon {
        min-height: 40px;
    }
    .pet-icon img {
        /* max-height: 40px; */
    }
    .pet-chance {
        font-size: 9px;
    }
    .fruit-item {
        min-height: 80px;
        padding: 6px 4px;
    }
    .fruit-icon {
        min-height: 40px;
    }
    .fruit-icon img {
        /* max-height: 40px; */
    }
    .fruit-chance {
        font-size: 9px;
    }
    .section-title {
        font-size: 14px;
    }
    .section-timer {
        font-size: 10px;
    }
    .modal-content {
        padding: 16px;
    }
    .game-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Touch-friendly improvements */

@media (hover: none) and (pointer: coarse) {
    .pet-item:hover,
    .fruit-item:hover,
    .offer-card:hover,
    .nav-btn:hover,
    .game-btn:hover {
        transform: none;
    }
    .pet-item:active,
    .fruit-item:active {
        transform: scale(0.95);
    }
    .offer-card:active,
    .nav-btn:active,
    .game-btn:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile optimization */

@media (max-width: 768px) and (orientation: landscape) {
    .preview-pets {
        grid-template-columns: repeat(3, 1fr);
    }
    .preview-fruits {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High DPI displays */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .pet-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    .fruit-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* --- Accessibility & Focus Styles --- */

:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
    z-index: 10001;
}

button:focus,
.game-btn:focus,
.nav-btn:focus,
.shop-close:focus,
.modal-close:focus,
.offer-card:focus,
.pet-item:focus,
.fruit-item:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

/* --- Button & Card Enhancements --- */

.nav-btn,
.game-btn,
.shop-close,
.modal-close,
.offer-card,
.pet-item,
.fruit-item {
    transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-btn:hover,
.game-btn:hover,
.shop-close:hover,
.modal-close:hover,
.offer-card:hover,
.pet-item:hover,
.fruit-item:hover {
    background: linear-gradient(to bottom, #ffd700, #f1c40f);
    color: #543415;
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.03);
}

.nav-btn:active,
.game-btn:active,
.shop-close:active,
.modal-close:active,
.offer-card:active,
.pet-item:active,
.fruit-item:active {
    background: linear-gradient(to bottom, #f1c40f, #ffd700);
    color: #543415;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transform: scale(0.97);
}

/* --- Modal & Overlay Polish --- */

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(7px);
    transition: background 0.3s, backdrop-filter 0.3s;
}

/* Mobile keyboard handling */

@media (max-height: 600px) and (orientation: landscape) {
    .modal-overlay {
        align-items: flex-start;
        padding: 5px;
    }
    .game-modal {
        max-height: 75dvh;
        margin: 5px 0;
    }
    .modal-content {
        padding: 10px;
    }
    .modal-header {
        padding: 8px 12px;
    }
    .modal-title {
        font-size: 16px;
    }
    .game-input {
        padding: 8px 12px;
        font-size: 14px;
    }
    .game-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.game-modal {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(255, 215, 0, 0.08);
    border-radius: 16px;
}

.modal-close {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #c0392b;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    background: #c0392b;
    color: #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

/* --- Mobile Menu Overlay --- */

.mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    transition: background 0.3s, backdrop-filter 0.3s;
}

.mobile-menu-overlay.open {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

/* --- Image Loading Animation --- */

.pet-icon img,
.fruit-icon img,
.pack-icon img,
.pack-icon-large img,
.offer-icon img {
    opacity: 0;
    animation: imgFadeIn 0.7s ease forwards;
}

@keyframes imgFadeIn {
    to {
        opacity: 1;
    }
}

/* --- Scrollbar Styling (Modern) --- */

::-webkit-scrollbar {
    width: 10px;
    background: #543415;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8b4513, #ffd700);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffd700, #8b4513);
}

/* --- Section Hide Utility (for JS) --- */

.shop-section.empty {
    display: none !important;
}

/* --- Consistent Border Radius & Spacing --- */

.shop-window,
.game-modal,
.offer-card,
.pet-item,
.fruit-item,
.modal-close,
.shop-close,
.game-btn,
.nav-btn {
    border-radius: 12px;
}

/* --- Color Contrast Fixes --- */

.section-title,
.modal-title,
.offers-title,
.generating-title,
.pack-name,
.pack-name-large {
    color: #fff;
    text-shadow: 1px 1px 2px #543415, 0 0 2px #000;
}

/* --- Toast Notification Focus --- */

.toast:focus {
    outline: 2px solid #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

/* --- Misc Polish --- */

input:focus,
select:focus {
    outline: 2px solid #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

/* --- End of Enhancements --- */

/* User Info Container Styles */

.user-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.username {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.user-id {
    font-size: 14px;
    color: #BDC3C7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.selected-pet-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pet-name {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.pet-rarity {
    font-size: 14px;
    color: #BDC3C7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.confirmation-text {
    font-size: 18px;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    padding: 15px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(46, 204, 113, 0.2));
    border-radius: 12px;
    border: 2px solid rgba(39, 174, 96, 0.3);
}

/* Mobile responsive styles for user info */

@media (max-width: 768px) {
    .user-info-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .selected-pet-info {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .username {
        font-size: 20px;
    }
    .pet-name {
        font-size: 18px;
    }
    .confirmation-text {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .user-info-container {
        padding: 12px;
    }
    .selected-pet-info {
        padding: 12px;
    }
    .username {
        font-size: 18px;
    }
    .pet-name {
        font-size: 16px;
    }
    .confirmation-text {
        font-size: 14px;
        padding: 10px;
    }
}

/* User Info Display Styles */

.user-info-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-info-display .user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info-display .user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info-display .username {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.user-info-display .user-id {
    font-size: 14px;
    color: #BDC3C7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Mobile responsive styles for user info display */

@media (max-width: 768px) {
    .user-info-display {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .user-info-display .username {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .user-info-display {
        padding: 12px;
    }
    .user-info-display .username {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .generating-pack-info {
        flex-direction: column;
        gap: 18px;
        padding: 18px 8px;
    }
    .arrow-animate {
        margin: 0 0 12px 0;
    }
    .pack-info-block {
        min-width: 0;
    }
    .pack-icon {
        font-size: 44px;
        min-width: 56px;
        min-height: 56px;
    }
    .pack-label {
        font-size: 15px;
    }
}