/* ==========================================================================
   Hattie's 3D Toybox - Premium CSS Stylesheet
   Whimsical, interactive, responsive, and gorgeous modern design
   ========================================================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Outfit:wght@300;400;600;800&display=swap');

/* Design System & Themes */
:root {
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Theme Defaults (Rainbow Filament) */
  --bg-primary: #0f0920;
  --bg-secondary: #170d31;
  --text-main: #f3f0fa;
  --text-muted: #a69cb9;
  
  /* Filament Color Accents */
  --accent-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 20%, #70a1ff 50%, #2ed573 80%, #ffd32a 100%);
  --accent-color: #ff758c;
  --accent-glow: rgba(255, 117, 140, 0.4);
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 8px 32px 0 rgba(112, 161, 255, 0.25);
  
  /* Constant Colors */
  --color-rainbow: linear-gradient(135deg, #ff758c, #ff7eb3, #70a1ff, #2ed573, #ffd32a);
  --color-glow: #39ff14;
  --color-glitter: #ff1493;
  --color-gold: linear-gradient(135deg, #ffe066, #f5b041, #ffd700, #ff8c00);
}

/* Theme overrides */
body.theme-rainbow {
  --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 25%, #ffd200 50%, #4cd137 75%, #00a8ff 100%);
  --accent-color: #ff6b6b;
  --accent-glow: rgba(255, 107, 107, 0.4);
  --shadow-glow: 0 8px 32px 0 rgba(255, 107, 107, 0.25);
}

body.theme-glow {
  --bg-primary: #050d03;
  --bg-secondary: #0a1c07;
  --accent-gradient: linear-gradient(135deg, #39ff14 0%, #10ac84 100%);
  --accent-color: #39ff14;
  --accent-glow: rgba(57, 255, 20, 0.6);
  --shadow-glow: 0 8px 32px 0 rgba(57, 255, 20, 0.3);
  --panel-bg: rgba(57, 255, 20, 0.03);
  --panel-border: rgba(57, 255, 20, 0.15);
}

body.theme-glitter {
  --bg-primary: #190514;
  --bg-secondary: #290820;
  --accent-gradient: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #da70d6 100%);
  --accent-color: #ff1493;
  --accent-glow: rgba(255, 20, 147, 0.5);
  --shadow-glow: 0 8px 32px 0 rgba(255, 20, 147, 0.3);
  --panel-bg: rgba(255, 20, 147, 0.04);
  --panel-border: rgba(255, 20, 147, 0.15);
}

body.theme-gold {
  --bg-primary: #120e03;
  --bg-secondary: #201704;
  --accent-gradient: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #d4af37 100%);
  --accent-color: #ffd700;
  --accent-glow: rgba(255, 215, 0, 0.4);
  --shadow-glow: 0 8px 32px 0 rgba(255, 215, 0, 0.25);
  --panel-bg: rgba(255, 215, 0, 0.03);
  --panel-border: rgba(255, 215, 0, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none; /* Make it feel like an app, no accidental highlight wiggles */
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(112, 161, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 117, 140, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Background drifts */
.bubble-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.06;
  filter: blur(4px);
  animation: floatUp 15s linear infinite;
  bottom: -100px;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.06;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-110vh) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

/* Layout Containers */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography & Headers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.logo-container {
  display: inline-block;
  position: relative;
  padding: 0.5rem 1.5rem;
}

.logo-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  filter: blur(25px);
  opacity: 0.25;
  border-radius: 50px;
  z-index: -1;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.15; filter: blur(20px); }
  100% { opacity: 0.35; filter: blur(35px); }
}

h1.main-title {
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--accent-glow);
  transition: all 0.5s ease;
}

p.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Filament Theme Selector Bar */
.filament-selector-bar {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  max-width: 750px;
  margin: 2rem auto 0 auto;
  box-shadow: var(--shadow-glow);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.selector-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spool-options {
  display: flex;
  gap: 1rem;
}

.spool-btn {
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spool-btn:hover {
  transform: translateY(-4px);
}

.spool-btn.active {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.spool-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spool-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: block;
}

.spool-btn[data-theme="rainbow"] .spool-icon {
  background: var(--color-rainbow);
}
.spool-btn[data-theme="glow"] .spool-icon {
  background: var(--color-glow);
  box-shadow: 0 0 10px var(--color-glow);
}
.spool-btn[data-theme="glitter"] .spool-icon {
  background: var(--color-glitter);
  background-image: radial-gradient(circle at 30% 30%, #fff 0%, transparent 40%);
}
.spool-btn[data-theme="gold"] .spool-icon {
  background: var(--color-gold);
}

.spool-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.spool-btn.active .spool-name {
  color: var(--text-main);
}

/* Grid & Section Headings */
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.section-title span {
  font-size: 1.5rem;
}

/* Creature Cards Grid */
.creature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.25rem;
  margin-bottom: 5rem;
}

/* Glassmorphism Creature Card */
.creature-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

/* Playful Wiggle Animation on hover */
.creature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px var(--accent-glow);
  animation: gentleWiggle 1s ease-in-out infinite alternate;
}

@keyframes gentleWiggle {
  0% { transform: translateY(-8px) scale(1.02) rotate(-1deg); }
  100% { transform: translateY(-8px) scale(1.02) rotate(1deg); }
}

.card-img-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.creature-card:hover .card-img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.creature-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.creature-emoji {
  font-size: 1.5rem;
}

.creature-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Cute Stats Display */
.card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
}

.stat-bar-container {
  width: 120px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-out;
}

/* Card Actions (Local Customizer) */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.color-picker-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filament-picker-dots {
  display: flex;
  gap: 0.35rem;
}

.picker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.picker-dot:hover {
  transform: scale(1.2);
}

.picker-dot.active {
  border-color: #fff;
  transform: scale(1.1);
}

.picker-dot[data-filament="rainbow"] { background: var(--color-rainbow); }
.picker-dot[data-filament="glow"] { background: var(--color-glow); }
.picker-dot[data-filament="glitter"] { background: var(--color-glitter); }
.picker-dot[data-filament="gold"] { background: var(--color-gold); }

/* Playful Action Button */
.btn {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.btn:active {
  transform: translateY(1px);
}

/* Two-Column Section: Simulator and Wishlist */
.interactive-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .interactive-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* 3D Printer Simulator Box */
.printer-card {
  background: rgba(23, 13, 49, 0.4);
  border: 2px solid var(--panel-border);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.printer-frame {
  width: 100%;
  aspect-ratio: 1.2;
  border: 10px solid #2d2645;
  background: #090514;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
}

/* Vertical and Horizontal Printer Rods */
.printer-axis-x {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: #3e375a;
  top: 10%;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: top 0.1s linear;
}

.printer-extruder {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #5b4d8c;
  border-radius: 4px;
  top: -9px;
  left: 10%;
  z-index: 6;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  transition: left 0.1s linear;
}

.printer-extruder::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #ff4757;
}

.printer-laser-sparkle {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #ffebb3;
  border-radius: 50%;
  box-shadow: 0 0 15px 5px #fffa65;
  filter: blur(1px);
  display: none;
  animation: sparkPulse 0.2s infinite alternate;
}

@keyframes sparkPulse {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.4); opacity: 1; }
}

.printer-bed {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 8px;
  background: #17112a;
  border-bottom: 2px solid #574b90;
  bottom: 12%;
  z-index: 4;
}

/* Printing Silhouette Layer-by-layer reveal */
.print-object-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14%;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.print-silhouette {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) drop-shadow(0 0 1px var(--accent-color));
  opacity: 0.15;
}

.print-reveal-mask {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%; /* Dynamic height representing percentage */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: height 0.1s linear;
}

.print-reveal-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* Control Panel */
.printer-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.simulator-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.select-custom {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.select-custom:focus {
  border-color: var(--accent-color);
}

.print-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  justify-content: center;
  border-radius: 16px;
  gap: 0.5rem;
}

.print-progress-bar-container {
  width: 100%;
  height: 24px;
  background: rgba(0,0,0,0.4);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  position: relative;
  display: none;
}

.print-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  border-radius: 30px;
  transition: width 0.1s linear;
  position: relative;
}

.print-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

.printer-screen {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.15);
  border-radius: 10px;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #39ff14;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 0 5px rgba(0,255,0,0.1);
}

/* Dream Creature Builder Box */
.builder-card {
  background: rgba(23, 13, 49, 0.4);
  border: 2px solid var(--panel-border);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

.builder-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.input-custom {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-custom:focus {
  border-color: var(--accent-color);
}

.emoji-selector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.emoji-option-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  font-size: 1.4rem;
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emoji-option-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.1);
}

.emoji-option-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 4px 10px var(--accent-glow);
}

/* Toybox Shelf Dashboard */
.toybox-shelf-container {
  margin-bottom: 5rem;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.shelf-count {
  font-size: 0.85rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

/* The Acryllic Toy Shelf Layer */
.shelf-system {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding: 1rem 0;
}

.shelf-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
}

/* Wooden/Glowing Plank underneath creatures */
.shelf-plank {
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.5),
    0 0 20px var(--accent-glow);
  z-index: 1;
}

.shelf-toy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shelf-toy-item:hover {
  transform: translateY(-12px);
}

.shelf-toy-visual {
  width: 90px;
  height: 90px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  border: 2px solid var(--panel-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.shelf-toy-item:hover .shelf-toy-visual {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Custom filament aura for Shelf items */
.shelf-toy-visual.filament-rainbow { box-shadow: 0 0 15px var(--accent-glow); border-color: #ff758c; }
.shelf-toy-visual.filament-glow { box-shadow: 0 0 15px var(--color-glow); border-color: var(--color-glow); }
.shelf-toy-visual.filament-glitter { box-shadow: 0 0 15px var(--color-glitter); border-color: var(--color-glitter); }
.shelf-toy-visual.filament-gold { box-shadow: 0 0 15px rgba(255,215,0,0.4); border-color: #ffd700; }

.shelf-toy-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-top: 0.65rem;
  color: var(--text-main);
  text-align: center;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.shelf-toy-type {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Delete badge on toy shelf item */
.delete-toy-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.shelf-toy-item:hover .delete-toy-btn {
  opacity: 1;
}

.delete-toy-btn:hover {
  transform: scale(1.2);
  background: #ff6b81;
}

/* No toys state */
.empty-shelf-text {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-text {
  margin-bottom: 0.5rem;
}

.footer-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Print confetti particle animation container */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 12px;
  background: red;
  opacity: 0.8;
  animation: fall 3s ease-out forwards;
}

@keyframes fall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}
