@layer reset, base, layout, components;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
}

@layer base {
  :root {
    /* Rich, vibrant colors for the balls */
    --ball-1-10: #fbc02d;  /* Gold/Yellow */
    --ball-11-20: #0288d1; /* Deep Blue */
    --ball-21-30: #d32f2f; /* Ruby Red */
    --ball-31-40: #7b1fa2; /* Royal Purple */
    --ball-41-45: #388e3c; /* Emerald Green */

    --bg-gradient: radial-gradient(circle at top center, #2e1065, #0f172a); /* Deep Purple to Slate */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  }

  body {
    background: var(--bg-gradient);
    min-height: 100vh;
    font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* Subtle ambient glow */
  body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }
}

@layer layout {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
}
