/* ================================
   HAPPY GARDEN ISLAND — Stylesheet
   Tropska paleta, risankast pristop
   ================================ */

:root {
  --sky-1: #87ceeb;
  --sky-2: #b8e4f0;
  --sea-1: #4fc3dc;
  --sea-2: #3aa5c1;
  --sand: #f5e0a3;
  --grass-1: #7cc26b;
  --grass-2: #5ea755;
  --soil-1: #8b5e3c;
  --soil-2: #6b4423;
  --sun: #ffd23f;
  --coral: #ff7e5f;
  --coin: #ffc93c;
  --hay: #c9a24b;
  --white: #fffef8;
  --shadow: rgba(0, 0, 0, 0.15);
  --panel: #fffdf5;
  --panel-border: #e6d9a8;
  --text: #3d3628;
  --text-light: #746a50;
  --success: #5ea755;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sea-1) 100%);
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 600;
}

.hidden { display: none !important; }

/* ================================
   SPLASH ZASLON
   ================================ */
.splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #87ceeb 0%, #4fc3dc 50%, #f5e0a3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow: hidden;
}

.splash::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 30%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 40%);
  animation: drift 30s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-50%, -20%); }
}

.splash-inner {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 500px;
}

.splash-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.splash-bunny {
  font-size: 6rem;
  animation: bounce 1.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.15));
}

.splash-carrot {
  position: absolute;
  bottom: 10%;
  right: -10px;
  font-size: 2.5rem;
  transform: rotate(-25deg);
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-25deg); }
  50% { transform: rotate(-10deg); }
}

.splash-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--white);
  text-shadow: 0 4px 0 var(--coral), 0 8px 16px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.splash-subtitle {
  font-size: 1.1rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
  font-weight: 600;
}

.splash-credit {
  margin-top: 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ================================
   GUMBI
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-lg { padding: 1rem 2rem; font-size: 1.2rem; }

.btn-ghost {
  background: rgba(255,255,255,0.25);
  color: var(--white);
  box-shadow: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  margin-top: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-ghost:hover { background: rgba(255,255,255,0.4); }

.btn-secondary {
  background: var(--info);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-disabled, .btn:disabled {
  background: #bbb !important;
  color: #eee !important;
  cursor: not-allowed;
  box-shadow: 0 4px 0 #999 !important;
  filter: none !important;
}

/* ================================
   IGRA – LAYOUT
   ================================ */
.game {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sea-1) 80%);
}

/* ZGORNJA VRSTICA */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,253,245,0.9));
  border-bottom: 3px solid var(--panel-border);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 10;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.level-badge {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 30% 30%, #ffe066, var(--coin));
  border: 3px solid var(--soil-1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fredoka';
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--soil-2);
  box-shadow: 0 3px 0 var(--soil-2), inset 0 -4px 0 rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.xp-wrap {
  flex: 1;
  min-width: 0;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.xp-text {
  color: var(--text-light);
  font-size: 0.78rem;
}

.xp-bar {
  height: 10px;
  background: #e8dfc0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5ea755, #8dd87a);
  transition: width 0.4s;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1);
}

.currencies {
  display: flex;
  gap: 0.5rem;
}

.currency {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 0 var(--panel-border);
}

.currency.coins i { color: var(--coin); }
.currency.hay i { color: var(--hay); }

.topbar-actions {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 2px solid var(--panel-border);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  box-shadow: 0 2px 0 var(--panel-border);
  transition: transform 0.1s;
}
.icon-btn:active { transform: translateY(1px); }
.icon-btn:hover { background: #fff9e6; }

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  animation: pulse 1.2s ease-in-out infinite;
}
.badge.hidden { display: none; }

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

/* ================================
   IGRALNO POLJE
   ================================ */
.play-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow: hidden;
  min-height: 0;
}

.island {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 75%, var(--sand) 0%, var(--sand) 30%, transparent 55%),
    radial-gradient(ellipse at 50% 60%, var(--grass-1) 5%, var(--grass-2) 30%, transparent 55%);
}

.island-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.15) 0%, transparent 20%);
  pointer-events: none;
}

.island-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decor {
  position: absolute;
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.decor.palm { font-size: 3.5rem; animation: sway 4s ease-in-out infinite; }
.decor.cloud { font-size: 2rem; opacity: 0.9; animation: float 8s ease-in-out infinite; }
.decor.bunny { font-size: 2.2rem; animation: bounce 2s ease-in-out infinite; }
.decor.gnome { font-size: 2.2rem; animation: bounce 2.5s ease-in-out infinite 0.3s; }

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes float {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

/* Parcele */
.plots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(3, 80px);
  gap: 8px;
  padding: 10px;
}

.plot {
  width: 80px;
  height: 80px;
  background: linear-gradient(180deg, var(--soil-1), var(--soil-2));
  border: 3px solid #5c3a1f;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), 0 4px 8px var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.plot:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), 0 6px 12px var(--shadow);
}

.plot.locked {
  background: linear-gradient(180deg, #a89680, #7a6a58);
  border-color: #5a4d3e;
  cursor: not-allowed;
}

.plot.locked::before {
  content: '🔒';
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.plot.locked .unlock-price {
  position: absolute;
  bottom: 2px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 1px 6px;
  border-radius: 6px;
}

.plot .crop {
  font-size: 2.2rem;
  transition: transform 0.2s;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.25));
}

.plot.ready .crop {
  animation: ripeBounce 0.9s ease-in-out infinite;
}
@keyframes ripeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.08); }
}

.plot.ready::after {
  content: '✨';
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 1rem;
  animation: sparkle 1s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.plot .timer {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plot .growth-bar {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  overflow: hidden;
}
.plot .growth-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #8dd87a, #5ea755);
  transition: width 0.5s linear;
}

.plot.boosted {
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), 0 0 0 3px rgba(100,200,255,0.8), 0 4px 8px var(--shadow);
}

/* Stavbe */
.buildings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.building {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}
.building:hover { transform: translateY(-3px); }

.building .b-icon {
  font-size: 2.5rem;
}

.building .b-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  padding: 1px 5px;
  margin-top: 2px;
  box-shadow: 0 2px 0 var(--panel-border);
}

.building.has-output::after {
  content: '!';
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--warning);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  animation: pulse 1s ease-in-out infinite;
}

/* Stranke */
.customers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.customer {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
  text-align: center;
  transition: left 0.4s ease-out, bottom 0.4s ease-out, transform 0.15s;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25));
}
.customer:hover { transform: scale(1.08); }

.customer .c-avatar {
  font-size: 2.5rem;
  animation: bounce 1.5s ease-in-out infinite;
}

.customer .c-bubble {
  display: block;
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: -8px;
  box-shadow: 0 2px 0 var(--panel-border);
  min-width: 60px;
  position: relative;
}
.customer .c-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--panel-border);
}

.customer .c-patience {
  margin-top: 2px;
  height: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
  overflow: hidden;
}
.customer .c-patience > div {
  height: 100%;
  background: var(--success);
  transition: width 0.3s linear, background 0.3s;
}
.customer .c-patience.warn > div { background: var(--warning); }
.customer .c-patience.danger > div { background: var(--danger); }

/* ================================
   STRANSKI PANEL
   ================================ */
.side-panel {
  background: var(--panel);
  border-left: 3px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  border-bottom: 2px solid var(--panel-border);
}

.tab-btn {
  flex: 1;
  padding: 0.7rem 0.3rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tab-btn i { font-size: 1.1rem; }
.tab-btn:hover { background: #fff9e6; }
.tab-btn.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
  background: #fffaee;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h3 {
  margin-bottom: 0.75rem;
  color: var(--coral);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Naloge */
.quest-list { display: flex; flex-direction: column; gap: 0.5rem; }

.quest {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 0 var(--panel-border);
}

.quest.done {
  background: #eafbe0;
  border-color: var(--success);
  box-shadow: 0 2px 0 var(--success);
}

.quest-title {
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.quest-desc { color: var(--text-light); font-size: 0.8rem; margin-bottom: 4px; }

.quest-progress {
  height: 6px;
  background: #efe8cc;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.quest-progress > div {
  height: 100%;
  background: var(--success);
  transition: width 0.3s;
}

.quest-reward {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  gap: 0.4rem;
}
.quest-reward .coin { color: var(--coin); }
.quest-reward .xp { color: var(--success); }

.quest .claim-btn {
  margin-top: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 8px;
  background: var(--success);
  color: white;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 0 #4a8a43;
}
.quest .claim-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #4a8a43; }

/* Skladišče */
.storage-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.storage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.4rem;
}

.storage-item {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.4rem 0.2rem;
  text-align: center;
  font-size: 0.7rem;
  position: relative;
  box-shadow: 0 2px 0 var(--panel-border);
}
.storage-item .s-icon { font-size: 1.5rem; display: block; }
.storage-item .s-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coral);
}
.storage-item .s-name {
  display: block;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.68rem;
  line-height: 1.1;
}

.empty-state {
  text-align: center;
  color: var(--text-light);
  padding: 1.5rem 0.5rem;
  font-size: 0.85rem;
}
.empty-state i { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.4; }

/* Statistika */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.stat {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 0 var(--panel-border);
}
.stat i {
  font-size: 1.3rem;
  color: var(--coral);
  width: 24px;
  text-align: center;
}
.stat div { display: flex; flex-direction: column; }
.stat b { font-size: 1.1rem; }
.stat span { font-size: 0.7rem; color: var(--text-light); }

/* ================================
   SPODNJA ORODNA VRSTICA
   ================================ */
.bottombar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(180deg, rgba(255,253,245,0.9), rgba(255,255,255,0.95));
  border-top: 3px solid var(--panel-border);
  box-shadow: 0 -2px 10px var(--shadow);
  z-index: 10;
}

.bottom-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.5rem;
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: 0 3px 0 var(--panel-border);
  transition: transform 0.1s;
}
.bottom-btn i { font-size: 1.3rem; color: var(--coral); }
.bottom-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--panel-border); }
.bottom-btn:hover { background: #fff9e6; }

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

.cooldown {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--info);
  color: white;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 700;
}
.cooldown.hidden { display: none; }

/* ================================
   MODALI
   ================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--panel);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 4px solid var(--panel-border);
}
.modal-content.small { max-width: 400px; }

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(180deg, var(--sun), var(--coin));
  border-bottom: 3px solid var(--panel-border);
}
.modal-header h2 {
  color: var(--soil-2);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-header.celebration {
  background: linear-gradient(135deg, var(--coral), var(--sun));
}

.modal-close {
  background: rgba(255,255,255,0.8);
  border: 2px solid var(--soil-1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--soil-2);
}
.modal-close:hover { background: white; }

.modal-body {
  padding: 1.2rem;
  overflow-y: auto;
  flex: 1;
}
.modal-body.center { text-align: center; }

.hint {
  background: #fff9e6;
  border-left: 4px solid var(--sun);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Shop grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.shop-item {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  box-shadow: 0 3px 0 var(--panel-border);
  position: relative;
  transition: transform 0.1s;
}
.shop-item:hover { transform: translateY(-2px); }

.shop-item.locked { opacity: 0.55; }

.shop-item .si-icon { font-size: 2.5rem; }
.shop-item .si-name {
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0.2rem 0;
}
.shop-item .si-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  min-height: 2em;
  line-height: 1.2;
}
.shop-item .si-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--coin);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}
.shop-item .si-price i { color: var(--coin); }
.shop-item .si-btn {
  width: 100%;
  padding: 0.4rem;
  border: none;
  border-radius: 8px;
  background: var(--coral);
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  box-shadow: 0 2px 0 #c55d42;
}
.shop-item .si-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c55d42; }
.shop-item .si-btn:disabled {
  background: #ccc !important;
  box-shadow: 0 2px 0 #999 !important;
  cursor: not-allowed;
}

.shop-item .lock-note {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.shop-item.selected {
  border-color: var(--coral);
  box-shadow: 0 3px 0 var(--coral), 0 0 0 3px rgba(255,126,95,0.3);
}

/* Predelava */
.recipe-list, .active-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recipe {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 0 var(--panel-border);
}

.recipe .r-flow {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.recipe .r-flow .r-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff9e6;
  padding: 3px 6px;
  border-radius: 6px;
  font-weight: 700;
}

.recipe .r-btn {
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: 8px;
  background: var(--success);
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  box-shadow: 0 2px 0 #4a8a43;
}
.recipe .r-btn:disabled {
  background: #ccc;
  box-shadow: 0 2px 0 #999;
  cursor: not-allowed;
}

.active-item {
  background: #fff9e6;
  border: 2px solid var(--sun);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.active-item.ready {
  background: #eafbe0;
  border-color: var(--success);
  cursor: pointer;
}

.active-item .a-info { flex: 1; font-size: 0.85rem; }
.active-item .a-timer {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
}
.active-item.ready .a-timer {
  color: var(--success);
}

/* Help */
.help-body h3 { margin: 1rem 0 0.4rem; color: var(--coral); font-size: 1rem; }
.help-body h3:first-child { margin-top: 0; }
.help-body ol, .help-body ul { margin-left: 1.2rem; margin-bottom: 0.4rem; }
.help-body li { margin-bottom: 0.2rem; font-size: 0.9rem; line-height: 1.4; }

/* Level up */
.big-level {
  font-family: 'Fredoka';
  font-size: 4.5rem;
  color: var(--coral);
  text-shadow: 0 4px 0 rgba(0,0,0,0.15);
  line-height: 1;
  margin-bottom: 0.4rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.rewards {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.rewards .reward-item {
  background: #fff9e6;
  border-left: 4px solid var(--sun);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Dnevna nagrada */
.daily-streak {
  background: #fff9e6;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.daily-rewards {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.day-reward {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.4rem 0.2rem;
  text-align: center;
  font-size: 0.7rem;
}
.day-reward.claimed {
  background: #eafbe0;
  border-color: var(--success);
  opacity: 0.7;
}
.day-reward.current {
  background: #fff2cc;
  border-color: var(--coin);
  box-shadow: 0 0 0 3px rgba(255,201,60,0.4);
}
.day-reward .dr-day { font-weight: 800; font-size: 0.8rem; }
.day-reward .dr-icon { font-size: 1.2rem; display:block; margin: 2px 0; }
.day-reward .dr-amt { font-weight: 700; color: var(--coral); }

/* ================================
   TOAST
   ================================ */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.toast {
  background: var(--white);
  border: 2px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px var(--shadow);
  animation: toastIn 0.3s, toastOut 0.3s 2.2s forwards;
  white-space: nowrap;
}
.toast.success { border-color: var(--success); color: var(--success); }
.toast.danger  { border-color: var(--danger);  color: var(--danger); }
.toast.warning { border-color: var(--warning); color: var(--warning); }
.toast.info    { border-color: var(--info);    color: var(--info); }

@keyframes toastIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateY(-20px); opacity: 0; }
}

/* Float animacije (XP, +coin nad parcelo) */
.float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
}
.float-text {
  position: absolute;
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: floatUp 1.2s ease-out forwards;
  white-space: nowrap;
}
.float-text.coin { color: var(--coin); }
.float-text.xp   { color: var(--success); }
.float-text.loss { color: var(--danger); }

@keyframes floatUp {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  20% { transform: translate(-50%, -10px) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -60px) scale(1); opacity: 0; }
}

/* ================================
   ODZIVNOST
   ================================ */
@media (max-width: 820px) {
  .play-area { grid-template-columns: 1fr; }
  .side-panel {
    border-left: none;
    border-top: 3px solid var(--panel-border);
    max-height: 220px;
  }
  .plots {
    grid-template-columns: repeat(4, 64px);
    grid-template-rows: repeat(3, 64px);
    gap: 6px;
  }
  .plot { width: 64px; height: 64px; }
  .plot .crop { font-size: 1.8rem; }
}

@media (max-width: 520px) {
  .topbar { padding: 0.4rem 0.6rem; gap: 0.5rem; }
  .level-badge { width: 40px; height: 40px; font-size: 1.1rem; }
  .currency { padding: 0.3rem 0.55rem; font-size: 0.85rem; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.95rem; }
  .bottom-btn { font-size: 0.7rem; padding: 0.4rem 0.2rem; }
  .bottom-btn i { font-size: 1.1rem; }
  .plots {
    grid-template-columns: repeat(4, 56px);
    grid-template-rows: repeat(3, 56px);
    gap: 4px;
  }
  .plot { width: 56px; height: 56px; }
  .plot .crop { font-size: 1.5rem; }
  .decor.palm { font-size: 2.5rem; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
  .building .b-icon { font-size: 2rem; }
  .building .b-label { font-size: 0.65rem; }
  .customer .c-avatar { font-size: 2rem; }
  .customer .c-bubble { font-size: 0.75rem; padding: 3px 6px; }
}

@media (max-width: 380px) {
  .plots {
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(4, 60px);
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c8ba85; }
