/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pixel-size: 4px;
  --bg-green: #5a8a3c;
  --bg-green-dark: #4a7a2c;
  --soil-brown: #8b6914;
  --soil-dark: #6b4f0e;
  --soil-wet: #5a4210;
  --grass-green: #6aaa3c;
  --grass-light: #7abc4c;
  --wood-brown: #c8a050;
  --wood-dark: #a08040;
  --gold-yellow: #ffd700;
  --sky-blue: #87ceeb;
  --text-light: #fff8e0;
  --text-dark: #3a2a1a;
  --panel-bg: #f0e8d0;
  --panel-border: #8b7355;
  --btn-green: #5a9a3c;
  --btn-green-hover: #6aaa4c;
  --btn-red: #cc4444;
  --night-blue: rgba(20, 20, 60, 0.5);
  --rain-blue: rgba(100, 149, 237, 0.3);
}

body {
  font-family: 'Press Start 2P', 'Microsoft YaHei', monospace;
  background: var(--bg-green);
  color: var(--text-dark);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== PIXEL ART HELPERS ===== */
.pixel-border {
  border: 4px solid var(--panel-border);
  box-shadow:
    inset -4px -4px 0 rgba(0,0,0,0.2),
    inset 4px 4px 0 rgba(255,255,255,0.2),
    4px 4px 0 rgba(0,0,0,0.3);
}

.pixel-btn {
  font-family: 'Press Start 2P', 'Microsoft YaHei', monospace;
  font-size: 10px;
  padding: 8px 16px;
  background: var(--btn-green);
  color: var(--text-light);
  border: 3px solid #3a7a1c;
  cursor: pointer;
  box-shadow:
    inset -3px -3px 0 rgba(0,0,0,0.3),
    inset 3px 3px 0 rgba(255,255,255,0.2),
    3px 3px 0 rgba(0,0,0,0.3);
  transition: transform 0.05s;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.pixel-btn:hover {
  background: var(--btn-green-hover);
}

.pixel-btn:active {
  transform: translate(2px, 2px);
  box-shadow:
    inset -3px -3px 0 rgba(0,0,0,0.3),
    inset 3px 3px 0 rgba(255,255,255,0.2),
    1px 1px 0 rgba(0,0,0,0.3);
}

/* ===== TOP BAR ===== */
#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(180deg, #6b5030, #5a4020);
  border-bottom: 4px solid #3a2a1a;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
  height: 60px;
  z-index: 10;
  position: relative;
}

.top-left, .top-center, .top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-box {
  background: var(--panel-bg);
  padding: 6px 12px;
  border: 3px solid var(--panel-border);
  box-shadow:
    inset -2px -2px 0 rgba(0,0,0,0.15),
    inset 2px 2px 0 rgba(255,255,255,0.3),
    2px 2px 0 rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.stat-icon { font-size: 14px; }
.stat-label { font-size: 8px; opacity: 0.7; }

.gold-display #gold-amount {
  color: #b8860b;
  font-weight: bold;
  min-width: 50px;
}

.forecast {
  font-size: 8px;
  opacity: 0.7;
  margin-left: 8px;
}

.speed-controls {
  display: flex;
  gap: 4px;
}

.speed-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 4px 8px;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  cursor: pointer;
  color: var(--text-dark);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.speed-btn.active {
  background: var(--btn-green);
  color: white;
  border-color: #3a7a1c;
}

.speed-btn:hover {
  background: var(--btn-green-hover);
  color: white;
}

.sleep-btn {
  font-size: 10px;
  background: #6a5acd;
  border-color: #4a3a9d;
}

.sleep-btn:hover {
  background: #7a6add;
}

/* ===== GAME AREA ===== */
#game-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.03) 3px,
      rgba(0,0,0,0.03) 4px
    ),
    linear-gradient(180deg, var(--bg-green) 0%, var(--bg-green-dark) 100%);
  height: calc(100vh - 60px - 120px);
}

body {
  display: flex;
  flex-direction: column;
}

/* Day/Night Overlay */
.day-night-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: background 1s ease;
}

.day-night-overlay.evening {
  background: rgba(255, 140, 0, 0.15);
}

.day-night-overlay.night {
  background: var(--night-blue);
}

/* Weather Effects */
.weather-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(100,149,237,0.6));
  animation: rain-fall linear infinite;
}

@keyframes rain-fall {
  0% { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.storm-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  animation: lightning 0.1s ease;
  pointer-events: none;
}

@keyframes lightning {
  0% { opacity: 0; }
  50% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ===== FARM GRID ===== */
#farm-container {
  position: relative;
  padding: 20px;
}

.farm-grid {
  display: grid;
  gap: 2px;
  background: #3a5a1c;
  padding: 4px;
  border: 4px solid #2a4a0c;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.3),
    8px 8px 0 rgba(0,0,0,0.3);
}

/* ===== PLOT STYLES ===== */
.plot {
  width: 64px;
  height: 64px;
  position: relative;
  cursor: pointer;
  transition: transform 0.1s;
  overflow: hidden;
}

.plot:hover {
  transform: scale(1.05);
  z-index: 2;
}

.plot:active {
  transform: scale(0.95);
}

/* Grass Plot */
.plot.grass {
  background:
    repeating-linear-gradient(
      45deg,
      var(--grass-green),
      var(--grass-green) 4px,
      var(--grass-light) 4px,
      var(--grass-light) 8px
    );
  border: 2px solid #4a8a2c;
}

.plot.grass::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: #3a7a1c;
  box-shadow:
    -8px 2px 0 #3a7a1c,
    8px -1px 0 #3a7a1c,
    -4px 4px 0 #4a8a2c,
    4px 3px 0 #4a8a2c;
}

/* Tilled Plot */
.plot.tilled {
  background:
    repeating-linear-gradient(
      90deg,
      var(--soil-brown),
      var(--soil-brown) 8px,
      var(--soil-dark) 8px,
      var(--soil-dark) 16px
    );
  border: 2px solid var(--soil-dark);
}

.plot.tilled::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.1) 6px,
    rgba(0,0,0,0.1) 8px
  );
}

/* Watered Plot */
.plot.watered {
  background:
    repeating-linear-gradient(
      90deg,
      var(--soil-wet),
      var(--soil-wet) 8px,
      #4a3610 8px,
      #4a3610 16px
    );
  border: 2px solid #3a2a08;
}

.plot.watered::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(100,149,237,0.15) 2px, transparent 2px),
    radial-gradient(circle at 60% 30%, rgba(100,149,237,0.15) 3px, transparent 3px),
    radial-gradient(circle at 80% 60%, rgba(100,149,237,0.15) 2px, transparent 2px),
    radial-gradient(circle at 20% 70%, rgba(100,149,237,0.15) 2px, transparent 2px);
}

/* Planted / Growing / Ready states use watered/tilled base + crop sprite */
.plot.planted,
.plot.growing,
.plot.ready {
  background:
    repeating-linear-gradient(
      90deg,
      var(--soil-wet),
      var(--soil-wet) 8px,
      #4a3610 8px,
      #4a3610 16px
    );
  border: 2px solid #3a2a08;
}

.plot.ready {
  animation: ready-pulse 1s ease-in-out infinite;
}

@keyframes ready-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255,215,0,0.3); }
  50% { box-shadow: inset 0 0 0 2px rgba(255,215,0,0.7); }
}

/* Crop Sprite Container */
.crop-sprite {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* Water Splash Animation */
.water-splash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.splash-drop {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #6ab4ff;
  border-radius: 50%;
  animation: splash-up 0.5s ease-out forwards;
}

@keyframes splash-up {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(var(--dx), -20px) scale(1.2); opacity: 0.8; }
  100% { transform: translate(var(--dx), 10px) scale(0.5); opacity: 0; }
}

/* Harvest Sparkle */
.harvest-sparkle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-yellow);
  animation: sparkle-up 0.6s ease-out forwards;
}

@keyframes sparkle-up {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), -30px) scale(0); opacity: 0; }
}

/* Gold Float */
.gold-float {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--gold-yellow);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  animation: float-up 1s ease-out forwards;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
}

@keyframes float-up {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}

/* ===== BOTTOM BAR ===== */
#bottom-bar {
  background: linear-gradient(0deg, #6b5030, #5a4020);
  border-top: 4px solid #3a2a1a;
  box-shadow: 0 -4px 0 rgba(0,0,0,0.3);
  padding: 8px 16px;
  height: 120px;
  z-index: 10;
}

.tool-bar {
  display: flex;
  gap: 20px;
  height: 100%;
}

.tool-section, .seed-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-label {
  font-size: 8px;
  color: var(--text-light);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.tool-list {
  display: flex;
  gap: 8px;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--panel-bg);
  border: 3px solid var(--panel-border);
  cursor: pointer;
  font-family: 'Press Start 2P', 'Microsoft YaHei', monospace;
  font-size: 8px;
  color: var(--text-dark);
  box-shadow:
    inset -2px -2px 0 rgba(0,0,0,0.15),
    inset 2px 2px 0 rgba(255,255,255,0.3),
    2px 2px 0 rgba(0,0,0,0.2);
}

.tool-btn.active {
  background: #ffe8a0;
  border-color: #c8a020;
  box-shadow:
    inset 2px 2px 0 rgba(0,0,0,0.15),
    inset -2px -2px 0 rgba(255,255,255,0.3),
    2px 2px 0 rgba(0,0,0,0.2);
}

.tool-btn:hover {
  background: #fff0c0;
}

.tool-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

/* Tool Icons via box-shadow pixel art */
.hoe-icon {
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    /* Handle */
    12px 0 0 #8B4513, 12px 4px 0 #8B4513, 12px 8px 0 #8B4513,
    12px 12px 0 #8B4513, 12px 16px 0 #8B4513, 12px 20px 0 #8B4513,
    /* Head */
    8px 0 0 #808080, 4px 0 0 #808080, 0 0 0 #808080,
    16px 0 0 #909090, 20px 0 0 #909090;
  transform: scale(1.2);
}

.water-icon {
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    /* Body */
    8px 8px 0 #4682B4, 12px 8px 0 #4682B4, 16px 8px 0 #4682B4,
    8px 12px 0 #4682B4, 12px 12px 0 #5a9ad4, 16px 12px 0 #4682B4,
    8px 16px 0 #4682B4, 12px 16px 0 #4682B4, 16px 16px 0 #4682B4,
    4px 12px 0 #4682B4,
    /* Spout */
    20px 4px 0 #4682B4, 24px 0 0 #4682B4,
    /* Handle */
    8px 4px 0 #8B4513, 12px 4px 0 #8B4513;
  transform: scale(1.2);
}

.harvest-icon {
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    /* Basket */
    4px 12px 0 #D2691E, 8px 12px 0 #D2691E, 12px 12px 0 #D2691E,
    16px 12px 0 #D2691E, 20px 12px 0 #D2691E,
    4px 16px 0 #CD853F, 8px 16px 0 #CD853F, 12px 16px 0 #CD853F,
    16px 16px 0 #CD853F, 20px 16px 0 #CD853F,
    8px 20px 0 #D2691E, 12px 20px 0 #D2691E, 16px 20px 0 #D2691E,
    /* Handle */
    8px 8px 0 #8B4513, 12px 8px 0 #8B4513, 16px 8px 0 #8B4513,
    12px 4px 0 #8B4513,
    /* Apple */
    12px 12px 0 #FF0000;
  transform: scale(1.2);
}

.plant-icon {
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    /* Seed */
    12px 4px 0 #8B4513,
    /* Sprout */
    12px 8px 0 #228B22,
    8px 12px 0 #32CD32, 12px 12px 0 #228B22, 16px 12px 0 #32CD32,
    12px 16px 0 #228B22,
    /* Soil */
    4px 20px 0 #8B6914, 8px 20px 0 #A0522D, 12px 20px 0 #8B6914,
    16px 20px 0 #A0522D, 20px 20px 0 #8B6914;
  transform: scale(1.2);
}

/* Seed Inventory */
.seed-section {
  flex: 1;
}

.seed-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.seed-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  cursor: pointer;
  font-family: 'Press Start 2P', 'Microsoft YaHei', monospace;
  font-size: 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.seed-item.active {
  background: #c8ffc8;
  border-color: #4a8a2c;
}

.seed-item:hover {
  background: #e8ffe8;
}

.seed-item.no-seeds {
  opacity: 0.45;
  border-style: dashed;
}

.seed-item.no-seeds:hover {
  opacity: 0.7;
}

.seed-item .seed-count {
  color: #888;
  font-size: 7px;
}

.seed-item .seed-emoji {
  font-size: 14px;
}

/* ===== SIDE BUTTONS ===== */
.side-buttons {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.side-btn {
  width: 48px;
  height: 48px;
  font-size: 20px;
  background: var(--panel-bg);
  border: 3px solid var(--panel-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset -2px -2px 0 rgba(0,0,0,0.15),
    inset 2px 2px 0 rgba(255,255,255,0.3),
    3px 3px 0 rgba(0,0,0,0.3);
}

.side-btn:hover {
  background: #fff0c0;
  transform: scale(1.1);
}

.side-btn:active {
  transform: scale(0.95) translate(1px, 1px);
}

/* ===== MODALS ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.overlay.hidden {
  display: none;
}

.modal {
  background: var(--panel-bg);
  border: 4px solid var(--panel-border);
  box-shadow:
    inset -4px -4px 0 rgba(0,0,0,0.15),
    inset 4px 4px 0 rgba(255,255,255,0.3),
    8px 8px 0 rgba(0,0,0,0.4);
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, #8b7355, #6b5030);
  border-bottom: 3px solid #3a2a1a;
}

.modal-header h2 {
  font-size: 12px;
  color: var(--text-light);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.modal-close {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  background: var(--btn-red);
  color: white;
  border: 2px solid #a02020;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.modal-close:hover {
  background: #ee5555;
}

.modal-body {
  padding: 16px;
}

/* Tutorial Modal */
.tutorial-modal {
  width: 480px;
  padding: 24px;
  text-align: center;
}

.tutorial-modal h2 {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.tutorial-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tutorial-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px;
  background: rgba(0,0,0,0.05);
  border: 2px solid rgba(0,0,0,0.1);
}

.tutorial-icon {
  font-size: 24px;
  min-width: 40px;
  text-align: center;
}

.tutorial-step p {
  font-size: 9px;
  line-height: 1.6;
}

/* Shop Modal */
.shop-modal {
  width: 560px;
}

.shop-gold {
  font-size: 12px;
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(255,215,0,0.1);
  border: 2px solid rgba(255,215,0,0.3);
  text-align: center;
}

.shop-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shop-item {
  background: white;
  border: 3px solid var(--panel-border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    inset -2px -2px 0 rgba(0,0,0,0.1),
    inset 2px 2px 0 rgba(255,255,255,0.5),
    2px 2px 0 rgba(0,0,0,0.2);
}

.shop-item:hover {
  border-color: var(--btn-green);
  background: #f8fff0;
}

.shop-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-item-emoji {
  font-size: 24px;
}

.shop-item-name {
  font-size: 10px;
  font-weight: bold;
}

.shop-item-info {
  font-size: 7px;
  color: #666;
  line-height: 1.8;
}

.shop-item-buy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.shop-item-buy input {
  width: 50px;
  padding: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  border: 2px solid var(--panel-border);
  text-align: center;
}

.shop-item-buy .pixel-btn {
  font-size: 8px;
  padding: 6px 10px;
}

/* Crop Season Badges */
.season-badge {
  display: inline-block;
  padding: 2px 4px;
  font-size: 7px;
  border-radius: 2px;
  margin-right: 2px;
}

.season-spring { background: #90EE90; color: #2a5a1a; }
.season-summer { background: #FFD700; color: #5a4a00; }
.season-fall { background: #FFA500; color: #5a3a00; }
.season-winter { background: #ADD8E6; color: #2a4a6a; }

/* Achievements Modal */
.achievements-modal {
  width: 500px;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border: 2px solid var(--panel-border);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(0.8);
}

.achievement-item .badge {
  font-size: 24px;
  min-width: 36px;
  text-align: center;
}

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

.achievement-item .info h3 {
  font-size: 9px;
  margin-bottom: 4px;
}

.achievement-item .info p {
  font-size: 7px;
  color: #666;
}

/* Stats Modal */
.stats-modal {
  width: 400px;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border: 2px solid var(--panel-border);
  font-size: 9px;
}

.stat-row .label {
  color: #666;
}

.stat-row .value {
  color: var(--text-dark);
  font-weight: bold;
}

/* Achievement Popup */
.achievement-popup {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(180deg, #ffd700, #daa520);
  border: 4px solid #b8860b;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 2px 0 rgba(255,255,255,0.3);
  animation: achievement-slide 0.5s ease-out forwards;
}

.achievement-popup.hidden {
  display: none;
}

.achievement-popup.show {
  animation: achievement-show 0.5s ease-out forwards;
}

@keyframes achievement-show {
  0% { transform: translateX(-50%) translateY(-60px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.achievement-popup.hide {
  animation: achievement-hide 0.3s ease-in forwards;
}

@keyframes achievement-hide {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-60px); opacity: 0; }
}

.achievement-badge { font-size: 28px; }

.achievement-title {
  font-size: 8px;
  color: #5a4a00;
}

.achievement-name {
  font-size: 10px;
  color: #3a2a00;
}

/* Notification */
.notification {
  position: fixed;
  top: 70px;
  right: 20px;
  background: var(--panel-bg);
  border: 3px solid var(--panel-border);
  padding: 10px 16px;
  font-size: 9px;
  z-index: 150;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  animation: notif-in 0.3s ease-out;
  max-width: 250px;
}

.notification.hidden {
  display: none;
}

@keyframes notif-in {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Damage flash */
.plot.damaged {
  animation: damage-shake 0.3s ease;
}

@keyframes damage-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Crop growth animation */
.crop-grow {
  animation: crop-pop 0.3s ease-out;
}

@keyframes crop-pop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .plot {
    width: 48px;
    height: 48px;
  }
  
  .shop-items {
    grid-template-columns: 1fr;
  }
  
  .top-center {
    flex-direction: column;
    gap: 4px;
  }
  
  #top-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 6px 8px;
  }
  
  #bottom-bar {
    height: auto;
  }
  
  .side-buttons {
    right: 4px;
  }
  
  .side-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Weather background effects */
.weather-sunny #game-area {
  background:
    linear-gradient(180deg, #87CEEB 0%, var(--bg-green) 30%);
}

.weather-rainy #game-area {
  background:
    linear-gradient(180deg, #708090 0%, var(--bg-green-dark) 30%);
}

.weather-stormy #game-area {
  background:
    linear-gradient(180deg, #4a4a5a 0%, #3a5a2c 30%);
}

.weather-cloudy #game-area {
  background:
    linear-gradient(180deg, #B0C4DE 0%, var(--bg-green) 30%);
}
