@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  /* Liquid Glass Palette */
  --bg-color: #000000;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --primary: #38bdf8;
  --positive: #ff4d4d;
  --negative: #4d94ff;

  /* Glass Tokens */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), inset 0 0 5px rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.5);

  /* Animations */
  --transition-fast: 0.3s ease;
  --transition-pop: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  display: block;
}

/* Liquid Glass Component */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: -2px 0 2px rgba(255, 0, 0, 0.2), 2px 0 2px rgba(0, 255, 255, 0.2);
  border-radius: 24px;
}

#controls {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 260px;
  animation: panelPop var(--transition-pop);
}

@keyframes panelPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

h1 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(to bottom, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Splash Overlay */
.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  max-width: 500px;
  padding: 40px;
  text-align: center;
  animation: modalPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.splash-header h2 {
  font-size: 2rem;
  margin: 0;
  background: linear-gradient(to bottom, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-header p {
  color: var(--primary);
  font-weight: 600;
  margin: 10px 0 30px 0;
}

.splash-body {
  text-align: left;
  margin-bottom: 30px;
}

.splash-body ul {
  list-style: none;
  padding: 0;
}

.splash-body li {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.splash-body li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.5);
}

/* Footer Link */
.signature-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
}

.signature-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signature-link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Utils */
.help-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}