:root {
  --bg-color: #fff0f3;
  --panel-bg: rgba(255, 255, 255, 0.95);
  --kitty-pink: #ffccd5;
  --kitty-hot-pink: #ff85a1;
  --kitty-red: #ff4d6d;
  --kitty-yellow: #ffe066;
  --text-main: #5c3d42;
  --text-dim: #8c6a70;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Polka Dot Hello Kitty Pattern Background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff5f7;
  background-image: 
    radial-gradient(#ffa6c9 1.5px, transparent 1.5px),
    radial-gradient(#ffa6c9 1.5px, #fff5f7 1.5px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  opacity: 0.1;
  z-index: -1;
}

/* Glow and shadow helpers */
.glow-pink {
  text-shadow: 0 2px 4px rgba(255, 77, 109, 0.2);
}

.glow-cyan {
  text-shadow: 0 2px 4px rgba(255, 133, 161, 0.2);
}

.glow-yellow {
  text-shadow: 0 2px 4px rgba(255, 224, 102, 0.3);
}

.border-glow-pink {
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.15);
  border-color: var(--kitty-hot-pink) !important;
}

.border-glow-cyan {
  box-shadow: 0 4px 12px rgba(255, 133, 161, 0.15);
  border-color: var(--kitty-pink) !important;
}

.border-glow-purple {
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.12);
  border-color: var(--kitty-pink) !important;
}

/* Cute Premium Rounded Card */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--kitty-pink);
  border-radius: 1.75rem; /* 28px */
  box-shadow: 0 12px 28px rgba(92, 61, 66, 0.08), 0 8px 12px rgba(255, 182, 193, 0.12);
}

.font-digital {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}

/* Dream vignette overlay */
.crt-overlay::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle, transparent 72%, rgba(255, 255, 255, 0.45) 100%);
  z-index: 999;
  pointer-events: none;
  opacity: 0.6;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #fff0f3;
}
::-webkit-scrollbar-thumb {
  background: var(--kitty-pink);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--kitty-hot-pink);
}

/* Soft pulse animation for turn indicator */
@keyframes kitty-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 16px rgba(255, 77, 109, 0.4);
    border-color: var(--kitty-hot-pink) !important;
  }
}

.active-pulse-cyan {
  animation: kitty-pulse 2s infinite ease-in-out;
  border-width: 3px !important;
}

.active-pulse-pink {
  animation: kitty-pulse 2s infinite ease-in-out;
  border-width: 3px !important;
}

/* Cute slider design */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #ffe5ec;
  height: 8px;
  border-radius: 4px;
  outline: none;
  border: 1px solid rgba(255, 182, 193, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--kitty-red);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(255, 77, 109, 0.25);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"].slider-pink::-webkit-slider-thumb {
  background: var(--kitty-hot-pink);
  box-shadow: 0 3px 6px rgba(255, 133, 161, 0.25);
}
