/* ==========================================================================
   Milli's Fidget Universe - CSS Design System & Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout Constants */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Theme 1: Nebula (Purple & Pink) --- */
body.theme-nebula {
    --bg-dark: #080718;
    --bg-card: rgba(22, 16, 48, 0.45);
    --accent: #ff007f;
    --primary: #9d4edd;
    --highlight: #00f0ff;
    --glow-accent: 0 0 15px rgba(255, 0, 127, 0.5);
    --glow-primary: 0 0 15px rgba(157, 78, 221, 0.5);
    --glow-highlight: 0 0 15px rgba(0, 240, 255, 0.5);
    --gradient-accent: linear-gradient(135deg, #7b2cbf 0%, #ff007f 100%);
    --gradient-text: linear-gradient(90deg, #00f0ff, #ff007f, #9d4edd);
}

/* --- Theme 2: Supernova (Red & Amber) --- */
body.theme-supernova {
    --bg-dark: #120404;
    --bg-card: rgba(48, 16, 16, 0.45);
    --accent: #ff002b;
    --primary: #fb8500;
    --highlight: #ffb703;
    --glow-accent: 0 0 15px rgba(255, 0, 43, 0.5);
    --glow-primary: 0 0 15px rgba(251, 133, 0, 0.5);
    --glow-highlight: 0 0 15px rgba(255, 183, 3, 0.5);
    --gradient-accent: linear-gradient(135deg, #d00000 0%, #fb8500 100%);
    --gradient-text: linear-gradient(90deg, #ffb703, #fb8500, #ff002b);
}

/* --- Theme 3: Black Hole (Indigo & Gold) --- */
body.theme-blackhole {
    --bg-dark: #03040c;
    --bg-card: rgba(12, 18, 38, 0.5);
    --accent: #d4af37;
    --primary: #3a0ca3;
    --highlight: #4cc9f0;
    --glow-accent: 0 0 15px rgba(212, 175, 55, 0.4);
    --glow-primary: 0 0 15px rgba(58, 12, 163, 0.4);
    --glow-highlight: 0 0 15px rgba(76, 201, 240, 0.5);
    --gradient-accent: linear-gradient(135deg, #3a0ca3 0%, #d4af37 100%);
    --gradient-text: linear-gradient(90deg, #4cc9f0, #3a0ca3, #d4af37);
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: #f1f3f9;
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-medium);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Background Twinkling Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px;
}

/* --- Utilities --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: var(--accent);
    text-shadow: var(--glow-accent);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium), background var(--transition-medium);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.hidden {
    display: none !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.2);
}

.btn-primary:hover {
    box-shadow: var(--glow-accent);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.96);
}

/* --- Header / Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 7, 22, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-glass);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--highlight);
    box-shadow: var(--glow-highlight);
    transition: transform var(--transition-medium);
}

.logo-area:hover .nav-logo {
    transform: rotate(360deg) scale(1.05);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.theme-pill-group {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px;
    border-radius: 20px;
    gap: 2px;
}

.theme-pill {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.theme-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.theme-pill.active {
    color: #fff;
    background: var(--primary);
    box-shadow: var(--glow-primary);
}

/* Audio toggle */
.audio-btn {
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.audio-btn:hover {
    border-color: var(--highlight);
    box-shadow: var(--glow-highlight);
    transform: scale(1.05);
}

.audio-btn.muted {
    border-color: var(--accent);
    color: var(--accent);
}

.audio-btn.muted:hover {
    box-shadow: var(--glow-accent);
}

.icon-audio {
    width: 18px;
    height: 18px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 5rem 2rem 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--highlight);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-glow-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
    z-index: 2;
    animation: floatAnimation 6s ease-in-out infinite;
}

.planet-ring {
    position: absolute;
    width: 110%;
    height: 40%;
    border: 3px solid var(--highlight);
    border-radius: 50%;
    transform: rotate(-22deg);
    pointer-events: none;
    z-index: 1;
    box-shadow: var(--glow-highlight), inset var(--glow-highlight);
    animation: rotateRing 15s linear infinite;
}

.glow-pulse {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,127,0.2) 0%, rgba(157,78,221,0) 70%);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.floating-fidget {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    z-index: 3;
    animation: floatFidget 8s ease-in-out infinite alternate;
}

.pop-bubble {
    background: radial-gradient(circle, var(--accent) 20%, var(--primary) 80%);
    box-shadow: var(--glow-accent);
}

.gear-spinner {
    background: radial-gradient(circle, var(--highlight) 20%, rgba(0, 119, 182, 0.8) 80%);
    box-shadow: var(--glow-highlight);
    animation-delay: 2s;
    border-radius: 30%;
}

.switch-key {
    background: radial-gradient(circle, #ffd166 20%, #e85d04 80%);
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.5);
    animation-delay: 4s;
    border-radius: 6px;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotateRing {
    0% { transform: rotate(-22deg) rotateY(0deg); }
    100% { transform: rotate(-22deg) rotateY(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.08); opacity: 1; }
}

@keyframes floatFidget {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(8px, -12px) rotate(180deg); }
    100% { transform: translate(-4px, 8px) rotate(360deg); }
}

/* --- Fidget Dashboard Grid --- */
.fidget-dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.section-subtitle {
    font-size: 1.05rem;
    opacity: 0.7;
}

.toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.toy-card {
    height: 450px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.toy-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.02);
}

.toy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-glass);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
    z-index: 10;
}

.toy-card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toy-btn-group {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2px;
    gap: 2px;
}

.toy-option-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 9px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.toy-option-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.toy-option-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.toy-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toy-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight);
}

.toy-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.toy-footer {
    border-top: var(--border-glass);
    padding-top: 0.8rem;
    margin-top: 1.2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
    z-index: 10;
}

/* ==========================================================================
   TOY COMPONENT STYLING
   ========================================================================== */

/* 1. Pop-It Pro */
.popit-body {
    padding: 10px;
}
.popit-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.popit-shape-wrapper {
    display: grid;
    gap: 8px;
    background: rgba(24, 21, 51, 0.7);
    padding: 14px;
    border-radius: 20px;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.popit-bubble {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.4), inset 0 -3px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.popit-bubble:active {
    transform: scale(0.88);
}
.popit-bubble.popped {
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.8), inset 0 -1px 2px rgba(255, 255, 255, 0.1), 0 0 8px currentColor;
    transform: scale(0.93);
    filter: brightness(0.7) saturate(1.2);
}

/* Popit Custom Shapes styling variables */
.popit-shape-wrapper.shape-circle {
    border-radius: 50%;
    padding: 24px;
}
.popit-shape-wrapper.shape-heart {
    padding: 16px;
}

/* 2. Mechanical Clicky Board */
.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: linear-gradient(135deg, #1f1f2e, #13131c);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.keyboard-switch-base {
    width: 72px;
    height: 72px;
    background: #2b2b3a;
    border-radius: 10px;
    position: relative;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.keyboard-switch-stem {
    width: 50px;
    height: 50px;
    background: #00b4d8;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    box-shadow: 0 6px 0 #0077b6, 0 8px 8px rgba(0,0,0,0.5);
    position: absolute;
    top: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.05s ease, box-shadow 0.05s ease, background 0.1s ease;
}
.keyboard-switch-stem:active,
.keyboard-switch-stem.pressed {
    top: 10px;
    box-shadow: 0 2px 0 #0077b6, 0 3px 4px rgba(0,0,0,0.5);
}
.stem-label-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.7;
    pointer-events: none;
}

/* 3. Sensory Squish Ball */
.squishy-playground {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.squishy-element {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    box-shadow: 0 12px 25px rgba(0,0,0,0.5), inset -5px -5px 15px rgba(0,0,0,0.5), inset 5px 5px 15px rgba(255,255,255,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
    transition: transform 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.2), border-radius 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.2), background var(--transition-medium);
}
.squishy-element:active,
.squishy-element.squished {
    transform: scale(1.65, 0.35) translateY(45px);
    border-radius: 50% 50% 12% 12% / 30% 30% 70% 70%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.7), inset -2px -2px 10px rgba(0,0,0,0.6), inset 2px 2px 10px rgba(255,255,255,0.15);
    transition: transform 0.06s ease, border-radius 0.06s ease;
}

/* Textures */
.squishy-element.texture-galaxy-cat {
    background: radial-gradient(circle at 35% 35%, #ff007f 0%, #7b2cbf 70%, #03001e 100%);
}
.squishy-element.texture-glitter {
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.8) 0%, rgba(123, 44, 191, 0.8) 85%, #080718 100%);
}
.squishy-element.texture-aurora {
    background: radial-gradient(circle, #39ff14 0%, #0077b6 80%, #03001e 100%);
    animation: auroraGlowPulse 4s ease-in-out infinite alternate;
}
@keyframes auroraGlowPulse {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(90deg) brightness(1.2); }
}
.squishy-element.texture-bead {
    background: radial-gradient(circle at 30% 30%, #ffb703 0%, #d00000 80%, #1a0404 100%);
}

.squishy-ball-face {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
}

/* Glitter particles in ball */
.glitter-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(0.5px);
    box-shadow: 0 0 6px #fff;
}

/* Water bead circles in ball */
.water-bead-element {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.4), inset -1px -1px 3px rgba(0,0,0,0.4);
}

/* 4. Physics Fidget Spinner */
.spinner-body {
    background: radial-gradient(circle, rgba(16, 14, 38, 0.5) 0%, rgba(4, 3, 10, 0.5) 100%);
}
.spinner-container {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.spinner-container:active {
    cursor: grabbing;
}
.spinner-element {
    width: 160px;
    height: 160px;
    position: relative;
    transform: rotate(var(--spinner-rotation, 0deg));
    transform-style: preserve-3d;
    z-index: 5;
}
.spinner-center {
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #a0aec0, #4a5568);
    border-radius: 50%;
    top: 56px;
    left: 56px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 2px 2px rgba(255,255,255,0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
}
.spinner-bearing {
    width: 22px;
    height: 22px;
    background: #1a202c;
    border-radius: 50%;
    border: 3px solid #718096;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}
.spinner-wing {
    position: absolute;
    width: 44px;
    height: 80px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
.wing-1 {
    top: 0;
    left: 58px;
    transform-origin: 22px 80px;
}
.wing-2 {
    top: 0;
    left: 58px;
    transform-origin: 22px 80px;
    transform: rotate(120deg);
}
.wing-3 {
    top: 0;
    left: 58px;
    transform-origin: 22px 80px;
    transform: rotate(240deg);
}
.wing-cap {
    width: 28px;
    height: 28px;
    background: #000;
    border-radius: 50%;
    border: 3px solid var(--highlight);
    box-shadow: 0 0 10px var(--highlight), inset 0 1px 2px rgba(0,0,0,0.8);
}

.spinner-blur-ring {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 0px solid rgba(0, 240, 255, 0);
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.1s ease, border-width 0.1s ease, box-shadow 0.1s ease;
    opacity: 0;
    box-shadow: inset 0 0 0px rgba(0,0,0,0);
}

/* 5. Tactile Magnetic Slider */
.slider-playground {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}
.magnetic-slider-track {
    width: 100%;
    height: 42px;
    background: linear-gradient(180deg, #100f24, #191838);
    border-radius: 21px;
    position: relative;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.6), 0 2px 2px rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    overflow: hidden;
}
.magnetic-slider-block {
    width: 58px;
    height: 34px;
    background: linear-gradient(135deg, #5b597a, #33324d);
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.2);
    position: absolute;
    top: 3px;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: grab;
    user-select: none;
}
.magnetic-slider-block:active {
    cursor: grabbing;
}
.slider-ticks {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 58px);
    margin-top: 10px;
}
.slider-ticks span {
    width: 2px;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 1px;
}

/* 6. Hematite Magnet Stones */
.magnets-body {
    background: radial-gradient(circle, #09091f 0%, #03030d 100%);
}
.magnets-playground {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: crosshair;
}
.magnetic-force-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}
.magnet-stone {
    position: absolute;
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at 35% 35%, #555, #222 80%, #050505 100%);
    border-radius: 40% 50% 45% 42% / 45% 40% 50% 45%; /* organic rock shape */
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6), inset 2px 2px 4px rgba(255,255,255,0.2);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    user-select: none;
    transition: transform 0.05s ease;
}
.magnet-stone:active {
    cursor: grabbing;
    transform: scale(1.05);
}
.magnet-pole {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    pointer-events: none;
    user-select: none;
}
.pole-n { color: #e53e3e; text-shadow: 0 0 5px rgba(229, 62, 62, 0.5); }
.pole-s { color: #3182ce; text-shadow: 0 0 5px rgba(49, 130, 206, 0.5); }

.magnet-stone.snapped {
    transition: left 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.2), top 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.magnet-shockwave {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--highlight);
    box-shadow: var(--glow-highlight);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
.magnet-shockwave.pulse {
    animation: shockwaveAnimate 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes shockwaveAnimate {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* 7, 8, 9 Canvas-based elements (Beads, Slime, Sand) */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Slime bubble popping overlay */
.slime-bubble-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}
.slime-air-bubble {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.1s ease, opacity 0.1s ease;
}
.slime-air-bubble:active {
    transform: scale(1.4);
    opacity: 0;
}

.slime-color-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.slime-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition-fast);
}
.slime-color-dot:hover {
    transform: scale(1.15);
}
.slime-color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 6px #fff;
    transform: scale(1.2);
}

/* --- Footer --- */
.footer {
    background: #04030c;
    border-top: var(--border-glass);
    padding: 3rem 2rem 2rem 2.5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 500px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: var(--glow-accent);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-tagline {
    font-size: 0.88rem;
    opacity: 0.6;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* --- Toast Notification System --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}
.toast {
    background: rgba(12, 10, 31, 0.95);
    border: 1px solid var(--highlight);
    box-shadow: var(--glow-highlight);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateY(20px);
    opacity: 0;
    animation: toastFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
    backdrop-filter: blur(8px);
}
@keyframes toastFadeIn {
    to { transform: translateY(0); opacity: 1; }
}
.toast.fade-out {
    animation: toastFadeOut 0.3s ease forwards;
}
@keyframes toastFadeOut {
    to { transform: translateY(-20px); opacity: 0; }
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .logo-glow-container {
        width: 220px;
        height: 220px;
    }
    .toys-grid {
        grid-template-columns: 1fr;
    }
}
