/* Reset ligero */
*{box-sizing:border-box;margin:0;padding:0}
html,body,#app{height:100%}
body{
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg,#fffbe6,#f0e8d0);
  color:#222;
  -webkit-font-smoothing:antialiased;
}

/* Top */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 18px;
  background:#2e7d32;
  color:white;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}
.brand{font-weight:800}
.topstats span{margin-left:12px;font-weight:700}

/* Layout */
.main-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:14px;
  padding:14px;
  max-width:1200px;
  margin:18px auto;
}

/* Sidebar */
.sidebar{display:flex;flex-direction:column;gap:12px}
.panel{
  background:#fff9e6;
  border:1px solid #d6caa6;
  padding:12px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
}
.panel h3{margin-bottom:8px;color:#5a5a3f}
.panel.small{display:flex;gap:8px;justify-content:space-between;align-items:center}

/* Shop items */
.seed-card, .inv-item, .build-card{
  display:flex;gap:10px;align-items:center;padding:8px;border-radius:8px;background:#fff;border:1px solid #e6dcc0;margin-bottom:8px;
}
.seed-card img, .build-card img{width:48px;height:48px;border-radius:6px;object-fit:cover}
.seed-info h4{margin:0 0 6px 0;font-size:15px}

/* Map */
.game-area{display:flex;flex-direction:column;gap:12px}
.island-controls{display:flex;gap:8px;align-items:center;justify-content:space-between}
.map{
  display:grid;
  grid-template-columns: repeat(10, 1fr); /* default 10 columns, changed per island by JS */
  gap:8px;
  padding:12px;
  min-height:420px;
}

/* Parcel styles */
.parcel{
  position:relative;
  width:100%;
  height:80px;
  background:#d7b07b;
  border:2px solid #8b5a2b;
  border-radius:8px;
  overflow:hidden;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:transform .08s;
}
.parcel:hover{transform:scale(1.03)}
.parcel img{width:100%;height:100%;object-fit:cover;position:absolute;left:0;top:0}
.parcel .label{z-index:3;position:relative;font-weight:800;color:#1a351a}
.parcel .overlay{position:absolute;left:0;right:0;bottom:0;padding:4px;background:rgba(0,0,0,0.55);color:white;font-size:12px;text-align:center}

/* Status/actions */
.status-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}

/* Footer */
.footer{text-align:center;padding:8px;margin:18px;color:#5b5b5b}

/* Responsive */
@media (max-width:900px){
  .main-grid{grid-template-columns:1fr; padding:10px}
  .map{grid-template-columns:repeat(6,1fr)}
}
