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

:root {
  --bg: #e8f5e0;
  --bg-dark: #c8e6b8;
  --panel: #fffdf7;
  --panel-border: #d4c4a8;
  --soil: #8b5e3c;
  --soil-light: #a67c52;
  --soil-dark: #6b4423;
  --text: #2d3a2e;
  --text-muted: #5a6b5c;
  --accent: #4a9c3e;
  --accent-dark: #357a2b;
  --gold: #e8a317;
  --gold-dark: #c4880f;
  --shadow: rgba(45, 58, 46, 0.15);
  --radius: 14px;
  --nav-height: 58px;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Fredoka', system-ui, sans-serif;
  background: linear-gradient(160deg, #b8e0a8 0%, var(--bg) 40%, #f0e6d2 100%);
  min-height: 100vh;
  color: var(--text);
  padding: 1rem;
  overflow-x: hidden;
}

body.in-game {
  padding: 0;
  overflow: hidden;
  background: #87ceeb;
}

.hidden {
  display: none !important;
}

.auth-screen {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.auth-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 253, 247, 0.35) 0%,
    rgba(255, 253, 247, 0.12) 45%,
    rgba(126, 200, 232, 0.08) 100%
  );
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 253, 247, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(45, 58, 46, 0.2);
  text-align: center;
}

.auth-card h1 {
  font-size: 1.75rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.auth-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form input {
  font-family: inherit;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  font-size: 0.95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: left;
}

.auth-error {
  color: #c0392b;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.btn-auth {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem;
  font-size: 1rem;
  box-shadow: 0 3px 0 var(--accent-dark);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.btn-auth:hover {
  background: #56ad4a;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-family: inherit;
  font-size: 0.85rem;
  margin-top: 1rem;
  cursor: pointer;
  text-decoration: underline;
}

.header-left,
.top-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  max-width: 50%;
}

.player-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  flex-shrink: 0;
}

.farmer-rank {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  flex: 1;
  min-width: 10rem;
}

.farmer-rank-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  line-height: 1.15;
}

.xp-meter {
  height: 10px;
  background: rgba(74, 156, 62, 0.18);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(74, 156, 62, 0.25);
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6bc45a, #4a9c3e);
  border-radius: 4px;
  transition: width 0.35s ease;
}

.farmer-rank-xp {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.1;
}

.shop-card.locked {
  opacity: 0.72;
  background: #f8f6f2;
}

.shop-card.locked .shop-emoji {
  filter: grayscale(0.35);
}

.shop-card.locked:hover {
  border-color: var(--panel-border);
  background: #f8f6f2;
}

.btn-logout {
  background: transparent;
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
}

.btn-logout:hover {
  background: #f5f0e8;
  color: var(--text);
}

.btn-feedback {
  background: transparent;
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--accent-dark);
  font-weight: 600;
}

.btn-feedback:hover {
  background: #e8f5e0;
  color: var(--accent-dark);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 58, 46, 0.45);
  backdrop-filter: blur(4px);
}

.feedback-card {
  position: relative;
  width: min(100%, 420px);
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 32px var(--shadow);
}

.feedback-card h2 {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}

.feedback-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.feedback-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  resize: vertical;
  min-height: 120px;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.feedback-error {
  color: #c0392b;
  font-size: 0.78rem;
  min-height: 1.2em;
  margin-top: 0.5rem;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.feedback-actions .btn-auth {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.levelup-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.levelup-modal.hidden {
  display: none;
}

.levelup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 58, 46, 0.55);
  backdrop-filter: blur(6px);
}

.levelup-card {
  position: relative;
  width: min(100%, 440px);
  background: linear-gradient(165deg, #fffef8 0%, #f3f9ef 55%, #e8f4e4 100%);
  border: 3px solid var(--accent);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 16px 48px rgba(45, 90, 50, 0.28);
  text-align: center;
  animation: levelup-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes levelup-pop {
  0% { opacity: 0; transform: scale(0.82) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.levelup-sparkles {
  font-size: 1.4rem;
  letter-spacing: 0.35rem;
  margin-bottom: 0.35rem;
  animation: levelup-sparkle 1.2s ease-in-out infinite alternate;
}

@keyframes levelup-sparkle {
  from { opacity: 0.65; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

.levelup-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
}

.levelup-title {
  font-size: 1.65rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.levelup-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.levelup-unlocks-wrap {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.levelup-unlocks-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}

.levelup-unlocks {
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.levelup-unlocks li {
  padding: 0.2rem 0;
}

.levelup-unlocks li::before {
  content: '→ ';
  color: var(--accent);
  font-weight: 700;
}

.levelup-dismiss {
  width: 100%;
  font-size: 0.95rem;
}

.online-list {
  list-style: none;
  font-size: 0.8rem;
}

.online-list li {
  padding: 0.3rem 0;
  color: var(--text-muted);
}

.online-list li.you {
  color: var(--accent-dark);
  font-weight: 600;
}

.game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.stat {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  text-align: center;
  box-shadow: 0 3px 0 var(--shadow);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.stat-coins {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-coins .coin-icon {
  width: 1.15em;
  height: 1.15em;
}

.coin-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.coin-price {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  white-space: nowrap;
}

.shop-info .coin-price {
  vertical-align: baseline;
}

.btn-buy .coin-icon,
.btn-sell .coin-icon {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.btn .coin-price {
  pointer-events: none;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 0 var(--shadow);
}

.panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}

#garden-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#garden-canvas:active {
  cursor: grabbing;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nav-height);
  padding: 0.45rem 1rem;
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 196, 168, 0.7);
  box-shadow: 0 2px 12px rgba(45, 58, 46, 0.08);
}

.top-nav h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.top-nav .stat {
  padding: 0.3rem 0.65rem;
  box-shadow: none;
  border-width: 1px;
}

.top-nav .stat-value {
  font-size: 1rem;
}

.canvas-hint {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: min(90vw, 520px);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text);
  text-align: center;
  background: rgba(255, 253, 247, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 196, 168, 0.7);
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--shadow);
  pointer-events: none;
}

.viewport-overlay {
  position: fixed;
  top: calc(var(--nav-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 15;
  background: rgba(255, 253, 247, 0.92);
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 3px 8px var(--shadow);
  white-space: nowrap;
}

.viewport-overlay.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sidebar {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(280px, 34vw);
  padding: 0.5rem 0.5rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: none;
  pointer-events: none;
  scrollbar-width: thin;
}

.onboarding-banner {
  pointer-events: auto;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 2px 12px rgba(45, 90, 50, 0.15);
}

.onboarding-banner.hidden {
  display: none;
}

.onboarding-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 0.2rem;
}

.onboarding-title {
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.onboarding-message {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.collapsible-panel.onboarding-focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

.shop-card.onboarding-pick {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  animation: onboarding-pulse 1.6s ease-in-out infinite;
}

@keyframes onboarding-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 140, 74, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(76, 140, 74, 0); }
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.welcome-modal.hidden {
  display: none;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 58, 46, 0.55);
  backdrop-filter: blur(6px);
}

.welcome-card {
  position: relative;
  width: min(100%, 420px);
  background: linear-gradient(165deg, #fffef8 0%, #f3f9ef 55%, #e8f4e4 100%);
  border: 3px solid var(--accent);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 16px 48px rgba(45, 90, 50, 0.28);
  animation: levelup-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
  text-align: center;
}

.welcome-title {
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-align: center;
}

.welcome-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  text-align: center;
}

.welcome-steps {
  margin: 0 0 1.1rem 1.1rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.welcome-steps li {
  margin-bottom: 0.35rem;
}

.welcome-dismiss {
  width: 100%;
}

.sidebar .panel {
  pointer-events: auto;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(45, 58, 46, 0.12);
  padding: 0.65rem 0.85rem;
}

.sidebar .panel h2 {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.2rem 0;
  margin-bottom: 0.55rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
}

.panel-toggle:hover h2 {
  color: var(--accent);
}

.panel-toggle-inventory {
  margin-bottom: 0;
}

.panel-toggle-inventory .inventory-header {
  flex: 1;
  margin-bottom: 0;
  align-items: flex-start;
}

.inventory-header-text {
  min-width: 0;
}

.inventory-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0.1rem 0 0;
}

.panel-chevron {
  flex-shrink: 0;
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.collapsible-panel.collapsed .panel-chevron {
  transform: rotate(-90deg);
}

.collapsible-panel.collapsed .panel-toggle {
  margin-bottom: 0;
}

.collapsible-panel.collapsed .panel-body {
  display: none;
}

.panel-body {
  padding-top: 0.15rem;
}

.sidebar .online-panel {
  padding: 0.65rem 0.85rem;
}

@media (max-width: 900px) {
  .top-nav {
    flex-wrap: wrap;
    padding: 0.4rem 0.65rem;
    --nav-height: 92px;
  }

  .top-nav-left {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .farmer-rank {
    flex: 1 1 100%;
    min-width: 0;
  }

  .top-nav h1 {
    font-size: 0.95rem;
  }

  .sidebar {
    width: min(260px, 88vw);
    padding: 0.4rem 0.4rem 0.4rem 0;
  }
}

@media (max-width: 600px) {
  .top-nav-stats .stat-label {
    display: none;
  }

  .canvas-hint {
    bottom: 0.65rem;
    font-size: 0.7rem;
  }
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin: 0.85rem 0 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.shop-card.storage-summary,
.shop-card.sell-summary {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--accent);
  border-style: dashed;
}

.storage-equation,
.sell-equation {
  font-weight: 600;
  color: var(--accent-dark);
}

.storage-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.shop-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}

.shop-card:hover:not(.sold-out):not(.disabled) {
  border-color: var(--accent);
  background: #f5faf3;
}

.shop-card.active {
  border-color: var(--accent);
  background: #e8f5e0;
  box-shadow: 0 0 0 2px rgba(74, 156, 62, 0.3);
}

.shop-card.disabled {
  opacity: 0.55;
}

.shop-card.sold-out {
  opacity: 0.45;
}

.shop-emoji {
  font-size: 1.5rem;
}

.shop-info h3 {
  font-size: 0.82rem;
  font-weight: 600;
}

.shop-info p {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.shop-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.shop-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.seed-stock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  line-height: 1.1;
}

.seed-stock-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seed-stock-qty {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.seed-stock.in-stock {
  background: #d8f0d4;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 0 rgba(53, 122, 43, 0.15);
}

.seed-stock.in-stock .seed-stock-label {
  color: var(--accent-dark);
}

.seed-stock.in-stock .seed-stock-qty {
  font-size: 1.15rem;
  color: #1f5c18;
}

.seed-stock.empty {
  background: #eceae4;
  border: 2px solid #c8c4bc;
}

.seed-stock.empty .seed-stock-label {
  color: #8a857c;
}

.seed-stock.empty .seed-stock-qty {
  font-size: 0.9rem;
  color: #8a857c;
}

.seed-stock.flash {
  animation: seed-stock-pulse 0.5s ease;
}

@keyframes seed-stock-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); background: #b8e8ae; border-color: #2d7a24; }
  100% { transform: scale(1); }
}

.seed-card .shop-actions {
  gap: 0.35rem;
}

.btn-use {
  background: #5dade2;
  color: #fff;
  box-shadow: 0 2px 0 #2e86c1;
  padding: 0.25rem 0.5rem;
}

.btn-use:hover {
  background: #6bbfef;
}

.seed-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seed-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.seed-card:hover {
  border-color: var(--accent);
  background: #f5faf3;
}

.seed-card.active {
  border-color: var(--accent);
  background: #e8f5e0;
  box-shadow: 0 0 0 2px rgba(74, 156, 62, 0.3);
}

.seed-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.seed-card:not(.disabled) .btn-buy:disabled {
  background: #e8e2d6;
  color: #8a7f6e;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  opacity: 1;
  cursor: not-allowed;
}

.seed-emoji {
  font-size: 1.75rem;
}

.seed-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
}

.seed-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.seed-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.seed-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-buy {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 0 var(--gold-dark);
}

.btn-buy:hover:not(:disabled) {
  background: #f0b020;
}

.btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-card:not(.seed-card) .btn-buy:disabled {
  opacity: 0.5;
}

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  min-height: 60px;
}

.inventory-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.inventory-header h2 {
  margin-bottom: 0;
  font-size: 0.95rem;
  min-width: 0;
}

.inventory-capacity {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

.inventory-capacity.full {
  color: #c0392b;
}

.inventory-meter {
  height: 6px;
  background: #e8e0d0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.inventory-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6bc45e);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.inventory-fill.full {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.inventory-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}

.inventory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #f5faf3;
  border-radius: 8px;
  font-size: 0.85rem;
}

.inventory-item .emoji {
  margin-right: 0.4rem;
}

.btn-sell {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 var(--accent-dark);
  padding: 0.25rem 0.5rem;
}

.btn-sell:hover {
  background: #56ad4a;
}

.btn-sell-all {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem;
  font-size: 0.85rem;
  box-shadow: 0 3px 0 var(--accent-dark);
}

.btn-sell-all:hover:not(:disabled) {
  background: #56ad4a;
}

.btn-sell-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}

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