html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

#wrap { position: relative; width: 100%; height: 100%; }

#game {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#ui {
  position: absolute;
  pointer-events: none;
}

.pill {
  position: absolute;
  background: rgba(220, 220, 220, 0.95);
  color: #111;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 14px;
}

#fps { left: 10px; top: 10px; }
#fps span {
  margin-left: 6px;
  background:#ff9800;
  color:#fff;
  padding:2px 8px;
  border-radius:7px;
}

#title {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #ddd;
  text-align: right;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6);
}
#title .muted { opacity: 0.8; font-weight: 600; }

.leftBottom { left: 10px; bottom: 70px; }
#fishCount span {
  margin-left: 6px;
  background:#ff9800;
  color:#fff;
  padding:2px 8px;
  border-radius:7px;
}

.toolbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: rgba(190,190,190,0.95);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.toolBtn{
  width: 52px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.25);
  background: rgba(230,230,230,1);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  user-select: none;
}

.toolBtn.active {
  outline: 3px solid #111;
  background: #fff;
}

.toolbarHint{
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.65);
  user-select: none;
}

.panel {
  position: absolute;
  width: 260px;
  height: 190px;
  background: rgba(35,35,35,0.95);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  left: 190px;
  bottom: 80px;
  pointer-events: auto;
  padding: 10px;
  box-sizing: border-box;
}

.hidden { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid button {
  height: 52px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.grid button:hover { background: rgba(255,255,255,0.12); }
.grid button.active { outline: 3px solid rgba(255,255,255,0.7); }
