/* ============================================
   PIXEL HARVEST — CSS Design System
   A cozy pixel art farming game
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Color palette — warm earthy tones */
    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;
    
    --sky-top: #87CEEB;
    --sky-mid: #B0E0E6;
    --sky-bottom: #E0F7FA;
    
    --earth-dark: #5D4037;
    --earth-mid: #795548;
    --earth-light: #8D6E63;
    --earth-tilled: #4E342E;
    
    --grass-dark: #2E7D32;
    --grass-mid: #43A047;
    --grass-light: #66BB6A;
    
    --gold: #FFD700;
    --gold-dark: #FFA000;
    --gold-glow: #FFF176;
    
    --accent-green: #00E676;
    --accent-blue: #40C4FF;
    --accent-purple: #E040FB;
    --accent-red: #FF5252;
    --accent-orange: #FF9100;
    
    --panel-bg: rgba(26, 26, 46, 0.95);
    --panel-border: rgba(255, 255, 255, 0.1);
    --panel-header: rgba(15, 52, 96, 0.8);
    
    --text-primary: #ECEFF1;
    --text-secondary: #90A4AE;
    --text-dim: #546E7A;
    
    --pixel-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    --glow-green: 0 0 10px rgba(0, 230, 118, 0.5);
    --glow-gold: 0 0 10px rgba(255, 215, 0, 0.5);
    --glow-blue: 0 0 10px rgba(64, 196, 255, 0.5);
    
    --font-pixel: 'Press Start 2P', monospace;
    --font-size-xs: 7px;
    --font-size-sm: 8px;
    --font-size-md: 10px;
    --font-size-lg: 14px;
    --font-size-xl: 18px;
    --font-size-xxl: 24px;
    
    --border-radius: 4px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-pixel);
    background: var(--bg-dark);
    color: var(--text-primary);
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: none;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
#splash-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 1000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.splash-content {
    text-align: center;
    z-index: 2;
}

.splash-logo {
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    margin-bottom: 16px;
}

.splash-title {
    font-family: var(--font-pixel);
    font-size: 36px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.5));
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.splash-subtitle {
    font-family: var(--font-pixel);
    font-size: var(--font-size-sm);
    color: var(--accent-green);
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-shadow: var(--glow-green);
}

.splash-loading {
    width: 300px;
    margin: 0 auto;
}

.loading-bar {
    width: 100%;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--text-dim);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--gold));
    transition: width 0.3s ease;
    position: relative;
}

.loading-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255,255,255,0.2);
}

.loading-text {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: 8px;
    animation: blink 1.5s infinite;
}

.start-btn {
    font-size: var(--font-size-md) !important;
    padding: 16px 32px !important;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 230, 118, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 230, 118, 0.6), 0 0 50px rgba(0, 230, 118, 0.2); }
}

/* Clouds */
.splash-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
}

.cloud-1 { top: 15%; animation: cloud-drift 20s linear infinite; }
.cloud-2 { top: 25%; animation: cloud-drift 25s linear infinite; animation-delay: -8s; }
.cloud-3 { top: 10%; animation: cloud-drift 30s linear infinite; animation-delay: -15s; }

@keyframes cloud-drift {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   PIXEL BUTTON
   ============================================ */
.pixel-btn {
    font-family: var(--font-pixel);
    font-size: var(--font-size-sm);
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--accent-green), #00C853);
    color: #1a1a2e;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #00891f, var(--pixel-shadow);
    transition: all var(--transition-fast);
    position: relative;
    user-select: none;
}

.pixel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #00891f, 0 6px 15px rgba(0, 230, 118, 0.3);
}

.pixel-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #00891f;
}

.pixel-btn:disabled {
    background: #546E7A;
    box-shadow: 0 4px 0 #37474F;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   GAME HUD (Top Bar)
   ============================================ */
#game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(15, 52, 96, 0.95), rgba(26, 26, 46, 0.95));
    border-bottom: 3px solid var(--gold-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

.hud-left, .hud-right {
    display: flex;
    gap: 16px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid var(--panel-border);
}

.hud-icon {
    font-size: 18px;
}

.hud-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.hud-value {
    font-size: var(--font-size-sm);
    color: var(--gold);
    min-width: 40px;
    text-align: right;
}

.hud-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.game-title {
    font-size: var(--font-size-md);
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ============================================
   GAME LAYOUT
   ============================================ */
#game-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#game-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ============================================
   SIDE PANELS
   ============================================ */
#tools-panel, #info-panel {
    width: 220px;
    background: var(--panel-bg);
    border-right: 2px solid var(--panel-border);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-dim) transparent;
}

#info-panel {
    border-right: none;
    border-left: 2px solid var(--panel-border);
}

.panel-header {
    padding: 10px 12px;
    background: var(--panel-header);
    border-bottom: 1px solid var(--panel-border);
}

.panel-header h2 {
    font-size: var(--font-size-xs);
    color: var(--gold);
    letter-spacing: 1px;
}

.panel-section {
    padding: 10px 12px;
    border-bottom: 1px solid var(--panel-border);
}

.panel-section h3 {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Tools */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--panel-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-family: var(--font-pixel);
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

.tool-btn.active {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: inset 0 0 10px rgba(0, 230, 118, 0.1);
}

.tool-emoji {
    font-size: 22px;
}

.tool-name {
    font-size: var(--font-size-xs);
}

/* Seeds */
.seed-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-pixel);
    color: var(--text-primary);
}

.seed-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

.seed-item.selected {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
}

.seed-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.seed-emoji {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.seed-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.seed-name {
    font-size: var(--font-size-xs);
}

.seed-cost {
    font-size: var(--font-size-xs);
    color: var(--gold);
}

/* Stats */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.stat-item span:last-child {
    color: var(--accent-blue);
}

/* ============================================
   FARM AREA
   ============================================ */
#farm-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.farm-scene {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Sky */
.farm-sky {
    height: 80px;
    background: linear-gradient(180deg, #4a90d9 0%, #87CEEB 40%, #B0E0E6 80%, #c8e6c9 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sun {
    position: absolute;
    top: 10px;
    right: 60px;
    font-size: 36px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 235, 59, 0.6));
}

.sky-cloud {
    position: absolute;
    font-size: 28px;
    opacity: 0.7;
}

.sc-1 { top: 8px; animation: cloud-drift 35s linear infinite; }
.sc-2 { top: 30px; animation: cloud-drift 45s linear infinite; animation-delay: -12s; }
.sc-3 { top: 15px; animation: cloud-drift 55s linear infinite; animation-delay: -25s; }

/* Farm Grid Wrapper */
.farm-grid-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #c8e6c9 0%, #81C784 10%, #66BB6A 100%);
    padding: 20px;
    position: relative;
}

.farm-grid-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(0,0,0,0.03) 48px,
            rgba(0,0,0,0.03) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(0,0,0,0.03) 48px,
            rgba(0,0,0,0.03) 50px
        );
    pointer-events: none;
}

/* Farm Grid */
.farm-grid {
    display: grid;
    gap: 4px;
    background: rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 8px;
    border: 3px solid rgba(93, 64, 55, 0.5);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Farm Plot */
.farm-plot {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--earth-mid), var(--earth-dark));
    border: 2px solid var(--earth-light);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.farm-plot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.farm-plot:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.farm-plot.empty {
    background: linear-gradient(135deg, var(--earth-mid), var(--earth-dark));
}

.farm-plot.empty:hover::after {
    content: '🌱';
    font-size: 24px;
    opacity: 0.4;
}

.farm-plot.planted {
    background: linear-gradient(135deg, var(--earth-tilled), #3E2723);
    border-color: #6D4C41;
}

.farm-plot.watered {
    border-color: var(--accent-blue);
    box-shadow: inset 0 0 10px rgba(64, 196, 255, 0.2);
}

.farm-plot.ready {
    border-color: var(--gold);
    animation: plot-ready 1s ease-in-out infinite;
}

@keyframes plot-ready {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.2); }
}

.plot-crop {
    font-size: 32px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.farm-plot.ready .plot-crop {
    animation: crop-bounce 1s ease-in-out infinite;
}

@keyframes crop-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.plot-progress {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    overflow: hidden;
}

.plot-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--gold));
    transition: width 0.5s ease;
    border-radius: 2px;
}

.plot-progress-fill.complete {
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
}

.plot-water-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    opacity: 0.7;
}

/* Ground Decoration */
.farm-ground {
    height: 40px;
    background: linear-gradient(180deg, #66BB6A, #4CAF50, #388E3C);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.ground-deco {
    font-size: 16px;
    letter-spacing: 8px;
    opacity: 0.6;
}

.fence-left, .fence-right {
    font-size: 24px;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 26, 46, 0.95);
    border-top: 2px solid var(--panel-border);
    justify-content: center;
}

.action-btn {
    font-size: var(--font-size-xs) !important;
    padding: 8px 16px !important;
}

#btn-end-session {
    background: linear-gradient(180deg, var(--accent-blue), #0288D1);
    box-shadow: 0 4px 0 #01579B;
}

#btn-end-session:hover {
    box-shadow: 0 6px 0 #01579B, 0 6px 15px rgba(64, 196, 255, 0.3);
}

#btn-shop {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 0 #E65100;
}

#btn-shop:hover {
    box-shadow: 0 6px 0 #E65100, 0 6px 15px rgba(255, 215, 0, 0.3);
}

#btn-expand {
    background: linear-gradient(180deg, var(--accent-purple), #9C27B0);
    box-shadow: 0 4px 0 #6A1B9A;
}

#btn-expand:hover {
    box-shadow: 0 6px 0 #6A1B9A, 0 6px 15px rgba(224, 64, 251, 0.3);
}

/* ============================================
   RIGHT PANEL — CROP GUIDE & SESSION
   ============================================ */
.crop-guide {
    padding: 8px 12px;
}

.crop-guide-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--panel-border);
    font-size: var(--font-size-xs);
}

.crop-guide-item:last-child {
    border-bottom: none;
}

.crop-guide-emoji {
    font-size: 20px;
    width: 26px;
    text-align: center;
}

.crop-guide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crop-guide-name {
    color: var(--text-primary);
}

.crop-guide-details {
    color: var(--text-dim);
    font-size: 6px;
}

.crop-guide-pts {
    color: var(--accent-green);
    font-size: var(--font-size-xs);
    white-space: nowrap;
}

/* Session Info */
.session-info {
    padding: 8px 12px;
}

.session-stat {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--panel-border);
    font-size: var(--font-size-xs);
}

.session-label {
    color: var(--text-secondary);
}

.session-value {
    color: var(--accent-blue);
}

.ready-glow {
    color: var(--gold) !important;
    text-shadow: var(--glow-gold);
}

/* Tips */
.tips-box {
    padding: 10px 12px;
}

.tip-text {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(180deg, var(--bg-medium), var(--bg-dark));
    border: 3px solid var(--gold-dark);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--panel-header);
    border-bottom: 2px solid var(--panel-border);
}

.modal-header h2 {
    font-size: var(--font-size-sm);
    color: var(--gold);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font-pixel);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 2px solid var(--panel-border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Shop */
.shop-section {
    margin-bottom: 16px;
}

.shop-section h3 {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--panel-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.shop-item:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.03);
}

.shop-item.purchased {
    border-color: var(--accent-green);
    opacity: 0.5;
}

.shop-item-emoji {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    margin-bottom: 3px;
}

.shop-item-desc {
    font-size: 6px;
    color: var(--text-dim);
}

.shop-item-buy {
    font-family: var(--font-pixel);
    font-size: var(--font-size-xs);
    padding: 6px 10px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 2px 0 #BF360C;
    transition: all var(--transition-fast);
}

.shop-item-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #BF360C, 0 3px 10px rgba(255, 215, 0, 0.3);
}

.shop-item-buy:disabled {
    background: #546E7A;
    box-shadow: 0 2px 0 #37474F;
    cursor: not-allowed;
}

.shop-gold {
    font-size: var(--font-size-sm);
    color: var(--gold);
}

/* Session Modal */
.session-modal-content {
    text-align: center;
    max-width: 400px;
}

.summary-icon {
    font-size: 50px;
    margin-bottom: 16px;
    animation: float 2s ease-in-out infinite;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    color: var(--gold);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
#notification-area {
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.notification {
    padding: 10px 16px;
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid var(--accent-green);
    border-radius: var(--border-radius);
    font-family: var(--font-pixel);
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: notif-in 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.gold {
    border-color: var(--gold);
}

.notification.error {
    border-color: var(--accent-red);
}

.notification.fade-out {
    animation: notif-out 0.3s ease forwards;
}

@keyframes notif-in {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes notif-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(40px); opacity: 0; }
}

/* ============================================
   PARTICLES
   ============================================ */
#particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.particle {
    position: absolute;
    font-size: 16px;
    pointer-events: none;
    animation: particle-fly 1s ease-out forwards;
}

@keyframes particle-fly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--px), var(--py)) scale(0.3); opacity: 0; }
}

.points-popup {
    position: absolute;
    font-family: var(--font-pixel);
    font-size: var(--font-size-sm);
    color: var(--gold);
    text-shadow: var(--glow-gold);
    pointer-events: none;
    animation: points-float 1.2s ease-out forwards;
    z-index: 61;
    white-space: nowrap;
}

@keyframes points-float {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-60px) scale(1.2); opacity: 0; }
}

/* ============================================
   HARVEST ANIMATION
   ============================================ */
.farm-plot.harvesting {
    animation: harvest-shake 0.3s ease;
}

@keyframes harvest-shake {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(-3deg); }
    50% { transform: scale(0.95) rotate(2deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    #tools-panel, #info-panel {
        width: 180px;
    }
    
    .farm-plot {
        width: 64px;
        height: 64px;
    }
    
    .plot-crop {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    #tools-panel {
        display: none;
    }
    
    #info-panel {
        display: none;
    }
    
    .farm-plot {
        width: 56px;
        height: 56px;
    }
    
    .game-title {
        font-size: var(--font-size-sm);
    }
    
    .hud-label {
        display: none;
    }
}
