:root {
  --foam: #eefaff;
  --deep: #021826;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--deep);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

body {
  background: linear-gradient(180deg, #063852 0%, #04283e 55%, #021624 85%, #1d1914 100%);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}

#tank-gl,
#tank-life {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#tank-gl {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#tank-gl.ready {
  opacity: 1;
}

#tank-life {
  z-index: 2;
}

/* Aquarium front glass bevel, subtle specular sheen & deep edge vignette */
.tank-glass {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.045) 0%, transparent 24%, transparent 78%, rgba(160, 230, 255, 0.03) 100%),
    radial-gradient(ellipse 100% 95% at 50% 48%, transparent 64%, rgba(1, 10, 18, 0.55) 100%);
  box-shadow:
    inset 0 1px 0 rgba(200, 245, 255, 0.16),
    inset 0 0 40px rgba(0, 12, 22, 0.45);
}

/* Subtle etched-glass brand in top-left corner so the center aquarium view is 100% unobstructed */
.glass-brand {
  position: fixed;
  top: clamp(14px, 2.5vmin, 28px);
  left: clamp(16px, 2.8vmin, 32px);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0.72;
  transition: opacity 0.4s ease;
}

.brand {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.14em;
  color: rgba(235, 250, 255, 0.88);
  text-shadow:
    0 0 18px rgba(100, 220, 255, 0.28),
    0 2px 8px rgba(0, 14, 28, 0.65);
}

.brand-fish {
  font-weight: 600;
}

.brand-fam {
  font-weight: 200;
}

.brand-hint {
  font-size: clamp(0.62rem, 1vmin, 0.72rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(190, 235, 250, 0.55);
  text-shadow: 0 1px 3px rgba(0, 10, 20, 0.7);
}

/* Bottom-left controls */
.tank-controls {
  position: fixed;
  left: clamp(12px, 2.2vmin, 24px);
  bottom: clamp(10px, 1.8vmin, 20px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-pill {
  font-family: inherit;
  font-size: clamp(0.72rem, 1.2vmin, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(240, 252, 255, 0.88);
  background: rgba(3, 20, 34, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.36em 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  cursor: pointer;
  transition: all 0.28s ease;
  text-shadow: 0 1px 4px rgba(1, 14, 28, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.control-pill:hover {
  background: rgba(5, 32, 52, 0.72);
  border-color: rgba(160, 235, 255, 0.42);
  color: #ffffff;
  transform: translateY(-1px);
}

.control-pill:active {
  transform: translateY(0);
}

.pill-shuffle {
  font-size: 0.95em;
  opacity: 0.72;
  transition: transform 0.4s ease;
}

.control-pill:hover .pill-shuffle {
  opacity: 1;
  transform: rotate(180deg);
}

.version {
  position: fixed;
  right: clamp(12px, 2.2vmin, 24px);
  bottom: clamp(10px, 1.8vmin, 20px);
  font-size: clamp(0.72rem, 1.2vmin, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(244, 251, 255, 0.75);
  text-shadow: 0 1px 4px rgba(1, 14, 28, 0.65);
  pointer-events: none;
  z-index: 10;
}
