/* 
   MiniFarm - Modern Liquid Glass Theme
   Design Philosophy: Glassmorphism, Neon, Premium, Fluid.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    /* --- Colors --- */
    --color-primary: #9C62F5;
    /* Light Purple (User requested) */
    --color-primary-glow: rgba(156, 98, 245, 0.5);
    --color-secondary: #7B42F6;
    /* Deep Purple */
    --color-accent: #00E5FF;
    /* Cyan Neon */
    --color-success: #00E676;
    --color-danger: #FF1744;
    --color-warning: #FFC400;

    --color-bg-dark: #120c18;
    /* Deepest Violet */
    --color-text-main: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.6);

    /* --- Glass Effects --- */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --backdrop-blur: blur(16px);

    /* --- Dimensions --- */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(156, 98, 245, 0.3);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- Liquid Background --- */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(123, 66, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 98, 245, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
    animation: liquid-move 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes liquid-move {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-10%, -10%) rotate(5deg);
    }
}

/* --- App Container --- */
#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: transparent;
}

/* --- Glass Utilities --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

/* --- Header --- */
.header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    /* Squircle */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px var(--color-primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.energy-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.energy-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #00B0FF);
    width: 0%;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    transition: width 0.3s ease;
}

.energy-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.currency-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.currency-tag {
    background: rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.currency-value {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.wallet-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-button {
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(156, 98, 245, 0.3);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.wallet-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(156, 98, 245, 0.3);
}

.wallet-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Game Area --- */
.game-container {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-bottom: 100px;
    /* Space for fixed bottom nav */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Garden Grid */
.garden-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    padding: 20px;
}

.plot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    background-image: url('/img/dirt.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.plot:active {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.plot.ready {
    background: rgba(0, 230, 118, 0.1);
    background-image: url('/img/dirt.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border-color: var(--color-success);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.2);
    animation: readyPulse 2s ease-in-out infinite;
}

@keyframes readyPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 230, 118, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 230, 118, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.2);
    }
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* On larger screens, add rounded corners and center with max-width */
@media (min-width: 600px) {
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 30px 30px 0 0;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-item.active {
    opacity: 1;
    transform: translateY(-5px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    filter: blur(15px);
    border-radius: 50%;
    z-index: -1;
}

.nav-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    /* Make icons white */
}

.nav-item.active .nav-icon img {
    filter: drop-shadow(0 0 8px var(--color-primary));
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn-glass {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.btn-glass:hover::before {
    left: 100%;
}

.btn-glass:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px var(--color-primary-glow);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-glass {
    background: rgba(30, 30, 40, 0.85);
    width: 90%;
    max-width: 360px;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-glass {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-text {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Inventory & Shop --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    padding-bottom: 100px;
}

.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.2s;
}

.glass-card:active {
    background: var(--glass-bg-hover);
}

.item-icon-lg {
    font-size: 3rem;
    margin: 12px 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.item-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.item-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

/* --- AI Chat Button --- */
.ai-orb {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 8px 24px var(--color-primary-glow), 0 0 20px rgba(156, 98, 245, 0.4);
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Hide AI orb when Deathfun tab is active */
.nav-item[data-tab="deathfun"].active~body .ai-orb,
body:has(.nav-item[data-tab="deathfun"].active) .ai-orb {
    display: none !important;
}

.ai-orb::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    z-index: -1;
    animation: spin 4s linear infinite;
    opacity: 0.7;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Deathfun --- */
.deathfun-wrapper {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.df-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.df-row.active {
    background: rgba(156, 98, 245, 0.1);
    border: 1px solid rgba(156, 98, 245, 0.3);
    box-shadow: 0 0 15px rgba(156, 98, 245, 0.1);
}

.df-tile {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.df-tile:active:not(:disabled) {
    transform: scale(0.9);
}

.df-tile.safe {
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid var(--color-success);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.df-tile.bust {
    background: rgba(255, 23, 68, 0.2);
    border: 1px solid var(--color-danger);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

/* --- Notifications --- */
.glass-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Compatibility Classes for app.js */
.action-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 16px;
}

.action-button:active {
    transform: scale(0.98);
}

.notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    color: white;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

/* --- Modern Info Dialog (Missing Styles) --- */
.modern-info-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modern-info-dialog.show {
    opacity: 1;
    pointer-events: auto;
}

.modern-info-dialog-content {
    background: rgba(30, 30, 40, 0.95);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modern-info-dialog.show .modern-info-dialog-content {
    transform: scale(1);
}

.modern-info-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modern-info-dialog-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.modern-info-dialog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.modern-info-dialog-message {
    color: var(--color-text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.modern-info-dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.modern-info-dialog-buttons.seed-selection {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.modern-info-dialog-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.modern-info-dialog-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.modern-info-dialog-button:active {
    transform: scale(0.98);
}

.modern-info-dialog-button.secondary {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-muted);
}

.modern-info-dialog-button.cancel-option {
    margin-top: 8px;
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.3);
    color: #ff8a80;
}

/* --- AI Chat Interface (Missing Styles) --- */
.ai-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.ai-chat-container {
    background: rgba(30, 30, 40, 0.95);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 80vh;
    /* Occupy 80% of screen height */
    overflow: hidden;
}

.ai-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.ai-chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.ai-message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(156, 98, 245, 0.3);
}

.ai-message-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chat-limit-info {
    padding: 8px 20px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.ai-chat-input {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chat-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chat-input-field:focus {
    border-color: var(--color-primary);
}

.ai-message-thinking {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.ai-message-thinking span {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.ai-message-thinking span:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-message-thinking span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* --- Inventory & Shop Grid Styles --- */
.inventory-grid,
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    padding-bottom: 100px;
}

.inventory-item,
.shop-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.inventory-item:active,
.shop-item:active {
    background: var(--glass-bg-hover);
}

.item-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.item-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1rem;
}

.item-quantity,
.item-price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.buy-button {
    margin-top: 12px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-primary-glow);
    transition: transform 0.2s;
}

.buy-button:active {
    transform: scale(0.95);
}

/* --- Deathfun Styles --- */
.deathfun-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 100px;
}

.deathfun-game-area {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.deathfun-board-container {
    width: 100%;
    max-width: 400px;
}

.deathfun-controls {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
    position: fixed;
    bottom: 80px;
    /* Above bottom nav */
    left: 0;
    width: 100%;
    z-index: 95;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.deathfun-stats-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: var(--radius-md);
}

.deathfun-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deathfun-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.deathfun-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.deathfun-bet-controls {
    margin-bottom: 16px;
}

.deathfun-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    margin-bottom: 12px;
}

.deathfun-bet-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    outline: none;
}

.deathfun-quick-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
}

.deathfun-quick-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.deathfun-action-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.deathfun-action-btn.start {
    background: linear-gradient(135deg, var(--color-success), #00C853);
    color: white;
    box-shadow: 0 44px 15px rgba(0, 230, 118, 0.4);
}

.deathfun-action-btn.cashout {
    background: linear-gradient(135deg, var(--color-warning), #FFAB00);
    color: black;
    box-shadow: 0 4px 15px rgba(255, 196, 0, 0.4);
}

.deathfun-action-btn:active {
    transform: scale(0.98);
}

/* --- Deathfun Tile & Layout Fixes --- */
.deathfun-game-area {
    min-height: 500px;
    align-items: flex-start;
    overflow-y: auto;
    padding-bottom: 180px;
    /* Increased space for fixed controls */
}

.deathfun-board-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deathfun-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}

.deathfun-row-mult {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    width: 60px;
    text-align: right;
    margin-right: 12px;
}

.deathfun-tiles {
    display: flex;
    gap: 8px;
}

.deathfun-tile {
    width: 54px;
    /* Increased size */
    height: 54px;
    /* Increased size */
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.deathfun-tile:active {
    transform: scale(0.9);
}

.deathfun-tile-safe {
    background: rgba(0, 230, 118, 0.2);
    border-color: var(--color-success);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.deathfun-tile-death {
    background: rgba(255, 23, 68, 0.2);
    border-color: var(--color-danger);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.deathfun-tile-faded {
    opacity: 0.3;
    pointer-events: none;
}

.deathfun-row-active .deathfun-tile {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.deathfun-row-inactive {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Deathfun Modal Styles --- */
.df-modal-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.df-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.df-modal-row.total {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

.df-modal-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.df-modal-value {
    font-weight: 700;
    color: white;
}

.df-modal-value.highlight {
    color: var(--color-accent);
}

.df-modal-value.win {
    color: var(--color-success);
    font-size: 1.1rem;
}

.df-modal-value.lost {
    color: var(--color-danger);
}

.df-modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.df-modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 8px;
    animation: bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.df-modal-text {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

/* --- Plant Info Tooltip Styles --- */
.plant-info-tooltip {
    position: fixed;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.plant-info-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.plant-info-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.plant-info-tooltip-icon {
    font-size: 1.5rem;
}

.plant-info-tooltip-name {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.plant-info-tooltip-status {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.plant-info-tooltip-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.plant-info-tooltip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.plant-info-tooltip-time {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-align: right;
    font-weight: 600;
}

/* --- Deathfun Leaderboard Styles --- */
.df-lb-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.df-lb-header {
    display: flex;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.df-lb-col.rank {
    width: 40px;
    text-align: center;
}

.df-lb-col.player {
    flex: 1;
    padding-left: 12px;
}

.df-lb-col.score {
    width: 80px;
    text-align: right;
}

.df-lb-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for Leaderboard */
.df-lb-list::-webkit-scrollbar {
    width: 4px;
}

.df-lb-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.df-lb-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.df-lb-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.2s;
}

.df-lb-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.df-lb-rank {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.df-lb-item.rank-1 .df-lb-rank {
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.df-lb-item.rank-2 .df-lb-rank {
    font-size: 1.2rem;
}

.df-lb-item.rank-3 .df-lb-rank {
    font-size: 1.2rem;
}

.df-lb-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    overflow: hidden;
}

.df-lb-name {
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.df-lb-date {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.df-lb-score {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.df-lb-mult {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.95rem;
}

.df-lb-gold {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--color-success);
}

/* --- Mobile Responsiveness for Deathfun --- */
@media (max-width: 480px) {
    .deathfun-board-head {
        margin-bottom: 0.5rem !important;
    }

    .deathfun-board-head h3 {
        font-size: 1rem !important;
        margin: 0 !important;
    }

    .deathfun-board-head p {
        font-size: 0.7rem !important;
        margin: 4px 0 0 0 !important;
    }

    .deathfun-tile {
        width: 32px !important;
        /* Smaller tiles */
        height: 32px !important;
        border-radius: 8px;
        font-size: 0.7rem;
    }

    .deathfun-row {
        gap: 3px;
        margin-bottom: 6px;
    }

    .deathfun-row-mult {
        width: 35px;
        font-size: 0.65rem;
        margin-right: 6px;
    }

    .deathfun-game-area {
        padding: 8px;
        padding-bottom: 280px;
        /* Space for controls + bottom nav */
        min-height: 100vh;
    }

    .deathfun-controls {
        padding: 10px 12px;
        bottom: 70px;
        /* Above bottom nav which is ~70px tall */
        border-radius: 16px 16px 0 0;
        max-height: 50vh;
        /* Don't take more than half screen */
        overflow-y: auto;
    }

    .deathfun-stats-bar {
        padding: 6px 8px;
        /* Much more compact */
        margin-bottom: 8px;
        gap: 6px;
    }

    .deathfun-stat-item {
        flex: 1;
        min-width: 0;
    }

    .deathfun-stat-label {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }

    .deathfun-stat-value {
        font-size: 0.8rem;
    }

    .deathfun-bet-controls {
        margin-bottom: 8px;
    }

    .deathfun-input-wrapper {
        padding: 4px 10px;
        margin-bottom: 6px;
        height: 32px;
        /* Compact height */
    }

    .deathfun-bet-input {
        font-size: 0.9rem;
    }

    .deathfun-quick-btn {
        padding: 4px 2px;
        font-size: 0.65rem;
        min-width: 36px;
        height: 28px;
        /* Smaller buttons */
    }

    .deathfun-action-btn {
        padding: 10px;
        font-size: 0.9rem;
        margin-top: 0;
        /* Remove extra margin */
    }

    /* Compact footer links */
    .deathfun-controls>div:last-child {
        margin-top: 6px !important;
    }

    #deathfun-fair-toggle,
    #deathfun-leaderboard-btn,
    #deathfun-help-info {
        font-size: 0.6rem !important;
        padding: 2px 4px;
    }
}

/* --- Welcome Guide / Onboarding Overlay Styles --- */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    /* Above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.guide-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.guide-content {
    width: 100%;
    margin-bottom: 20px;
}

.guide-content img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.guide-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    text-align: center;
}

.guide-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
    text-align: center;
}

.guide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.guide-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

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

.guide-button {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.guide-next-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.guide-next-button:active {
    transform: scale(0.95);
}

.guide-skip-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-skip-button:active {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Deathfun Provably Fair Modal Styles --- */
.deathfun-fair-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.deathfun-fair-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.deathfun-fair-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.deathfun-fair-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.deathfun-fair-item code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-accent);
    background: rgba(0, 229, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    word-break: break-all;
    border: 1px solid rgba(0, 229, 255, 0.1);
    display: block;
}

/* --- Deathfun How to Play Modal Styles --- */
.modern-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 16px 0;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.instruction-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(156, 98, 245, 0.15);
    transform: translateX(4px);
}

.instruction-icon {
    font-size: 2rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.instruction-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.instruction-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.instruction-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Hide icon on mobile for compact view */
.hide-icon-mobile .modern-info-dialog-icon {
    display: none;
}

@media (max-width: 480px) {
    .instruction-icon {
        min-width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .instruction-text strong {
        font-size: 0.9rem;
    }

    .instruction-text {
        font-size: 0.8rem;
    }

    .deathfun-fair-item code {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}

/* --- Harvest Rewards Display Styles --- */
.harvest-rewards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 8px 0;
}

.harvest-plant-name {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(156, 98, 245, 0.3);
}

.harvest-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.harvest-reward-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(156, 98, 245, 0.05), rgba(0, 229, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.harvest-reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 98, 245, 0.2);
    border-color: var(--color-primary);
}

.harvest-reward-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.harvest-reward-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.harvest-reward-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.harvest-reward-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-success);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.harvest-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 229, 255, 0.1));
    border: 2px solid var(--color-success);
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.harvest-total-label {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.harvest-total-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-success);
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
    }

    50% {
        text-shadow: 0 0 25px rgba(0, 230, 118, 0.8);
    }
}

@media (max-width: 480px) {
    .harvest-plant-name {
        font-size: 1rem;
    }

    .harvest-reward-icon {
        font-size: 2rem;
        min-width: 50px;
        height: 50px;
    }

    .harvest-reward-value {
        font-size: 1.2rem;
    }

    .harvest-reward-item {
        padding: 12px;
        gap: 12px;
    }
}
