:root {
  --bg: #07131f;
  --panel: rgba(10, 23, 36, 0.82);
  --panel-2: rgba(18, 35, 53, 0.88);
  --line: rgba(173, 223, 255, 0.14);
  --text: #eef8ff;
  --muted: #8eb2c9;
  --accent: #57d2ff;
  --accent-2: #7ef0a6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, #123b5c 0%, #091521 42%, #04090f 100%);
}
button, input {
  font: inherit;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #72ddff, #2faed9);
  color: #03101a;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--line);
}
input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
label { display: block; font-size: 14px; color: var(--muted); }
h1,h2,h3,p { margin: 0; }

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.auth-panel { padding: 20px; }
.main-panel { padding: 20px; min-height: calc(100vh - 32px); }
.stack { display: grid; gap: 12px; margin-top: 14px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.muted { color: var(--muted); }
.wallet {
  display: grid;
  gap: 10px;
}
.wallet div, .shop-card, .inv-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.wallet span { display: block; color: var(--muted); font-size: 13px; }
.wallet strong { font-size: 24px; }
.quick-actions { display: grid; gap: 10px; margin-top: 14px; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--line); }
.tab.active { background: linear-gradient(180deg, #72ddff, #2faed9); color: #03101a; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.aquarium {
  position: relative;
  overflow: hidden;
  height: min(68vh, 720px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #06111b;
}
.aquarium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 27, 0.08), rgba(6, 17, 27, 0.25)),
    url("./images/tank.png") center center / cover no-repeat;
  opacity: 0.98;
}
.water {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(94, 207, 255, 0.07));
  pointer-events: none;
  z-index: 1;
}
.fish, .decor {
  position: absolute;
  user-select: none;
  z-index: 2;
}
.fish {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border-radius: 50%;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.35));
  cursor: pointer;
  touch-action: manipulation;
}
.fish.selected {
  background: rgba(126, 240, 166, 0.12);
  box-shadow: 0 0 0 2px rgba(126, 240, 166, 0.85), 0 0 0 8px rgba(126, 240, 166, 0.18);
}
.decor {
  font-size: 30px;
  opacity: 0.95;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.shop-card h4, .inv-card h4 { margin-bottom: 6px; }
.shop-card .meta, .inv-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.shop-card .row, .inv-card .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.inspector {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}
.inspector-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hint { color: var(--muted); margin-top: 12px; font-size: 13px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 12px;
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .main-panel { min-height: auto; }
  .topbar { flex-direction: column; align-items: stretch; }
}
