:root {
  --bg-1: #1a1f3d;
  --bg-2: #4b1d6c;
  --panel: rgba(17, 17, 25, 0.52);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #f5f7ff;
  --muted: #dfe6ff;
  --accent: #ff8bd8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 173, 233, 0.45), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(125, 211, 252, 0.18), transparent 26%),
    radial-gradient(circle at 50% 85%, rgba(255, 175, 225, 0.24), transparent 30%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -28px, 0) scale(1.12); }
  100% { transform: translate3d(-16px, 22px, 0) scale(0.92); }
}

.page-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.75rem;
}

.lead {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

.toy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.toy-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  padding: 22px 18px;
}

.toy-card h2 {
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.result-box {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  line-height: 1.5;
}

.swatch {
  width: 100%;
  height: 86px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8bd8, #7ec8ff);
  border: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 16px;
}

.toy-button {
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  color: #111;
  background: linear-gradient(135deg, #ffd166, #ff8bd8);
  box-shadow: 0 10px 24px rgba(255, 140, 216, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.toy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 140, 216, 0.42);
}

.toy-button.small {
  width: auto;
  margin-top: 0;
  padding: 10px 16px;
  font-size: 0.82rem;
}

.interactive-lab {
  margin-top: 30px;
  background: rgba(17, 17, 25, 0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 20px 18px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.lab-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lab-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.lab-header span {
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
}

.bubble-field,
.ball-field {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.bubble-field {
  height: 220px;
  margin-bottom: 20px;
}

.ball-field {
  height: 240px;
  background: linear-gradient(180deg, rgba(65, 114, 255, 0.24), rgba(8, 24, 55, 0.3));
}

.bubble {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.95), rgba(151, 225, 255, 0.4) 28%, rgba(163, 196, 255, 0.18) 60%, transparent 68%);
  box-shadow: inset -8px -10px 18px rgba(74, 128, 255, 0.16), 0 10px 24px rgba(94, 134, 255, 0.14);
  cursor: pointer;
  animation: floatBubble 7s ease-in-out infinite;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.bubble:hover {
  transform: scale(1.05);
}

.bubble.popped {
  animation: bubblePop 0.35s ease forwards;
}

@keyframes bubblePop {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.04); }
}

.soccer-ball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0 18%, #f3f4f6 18% 32%, #dfe7f6 32% 40%, #eef2ff 41% 100%);
  border: 6px solid rgba(255,255,255,0.7);
  box-shadow: inset -10px -10px 20px rgba(74, 84, 104, 0.2), 0 18px 26px rgba(10, 16, 35, 0.26);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.soccer-ball::before,
.soccer-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.soccer-ball::before {
  background: linear-gradient(90deg, transparent 0 46%, rgba(24, 41, 83, 0.18) 46% 54%, transparent 54% 100%);
}

.soccer-ball::after {
  background: linear-gradient(180deg, transparent 0 46%, rgba(24, 41, 83, 0.18) 46% 54%, transparent 54% 100%);
  transform: rotate(30deg);
}

.soccer-ball.dragging {
  cursor: grabbing;
  box-shadow: inset -10px -10px 20px rgba(74, 84, 104, 0.2), 0 20px 35px rgba(10, 16, 35, 0.32);
}

.star-field {
  position: relative;
  height: 200px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(125, 105, 255, 0.08));
  overflow: hidden;
}

.star {
  position: absolute;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff7a8, #ffd166, #ff9dcf);
  clip-path: polygon(50% 0%, 61% 35%, 100% 35%, 68% 57%, 80% 100%, 50% 73%, 20% 100%, 32% 57%, 0% 35%, 39% 35%);
  box-shadow: 0 0 18px rgba(255, 214, 102, 0.7);
}

.star:hover {
  transform: scale(1.08) rotate(8deg);
}

.star.burst {
  animation: starBurst 0.55s ease forwards;
}

@keyframes starBurst {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(1.7); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

@media (max-width: 767px) {
  .toy-grid {
    grid-template-columns: 1fr;
  }

  .lab-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
