/* =============================================================================
   Magiczna Kolorowanka - Style CSS
   Kolorowy, przyjazny, bezpieczny dla szkoły interfejs
============================================================================= */

:root {
  --font-primary: 'Fredoka', 'Quicksand', 'Nunito', system-ui, -apple-system, sans-serif;
  --bg-main: #f0f4ff;
  --panel-bg: #ffffff;
  --border-color: #e2e8f0;
  --primary: #6c5ce7;
  --primary-hover: #5b4bc4;
  --accent-pink: #ff7675;
  --accent-yellow: #ffeaa7;
  --accent-green: #55efc4;
  --accent-blue: #74b9ff;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-button: 0 4px 0 rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: var(--font-primary);
  background: radial-gradient(circle at 10% 20%, #ffeaa7 0%, #fab1a0 15%, #fd79a8 30%, #a29bfe 60%, #74b9ff 90%);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* =============================================================================
   Floating Background Bubbles
============================================================================= */
.bg-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  animation: floatUp 16s infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) scale(0.8) rotate(0deg);
    opacity: 0.1;
  }
  20% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-15vh) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/* =============================================================================
   App Container & Header
============================================================================= */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 18px;
  min-height: 100vh;
  gap: 12px;
}

header.app-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.3rem;
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06) rotate(6deg); }
}

.logo-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(45deg, #6c5ce7, #e84393, #fd79a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-text p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* =============================================================================
   Buttons Style
============================================================================= */
.btn {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-button);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.btn-icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.25rem;
}

.btn-secondary {
  background: #f1f2f6;
  color: var(--text-dark);
}
.btn-secondary:hover:not(:disabled) {
  background: #dfe4ea;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-celebrate {
  background: linear-gradient(135deg, #ff9ff3, #feca57);
  color: #2d3436;
  font-size: 1.05rem;
  padding: 9px 18px;
  animation: celebrateGlow 2.5s infinite ease-in-out;
}
@keyframes celebrateGlow {
  0%, 100% { box-shadow: 0 4px 0 #e1b12c, 0 0 12px rgba(254, 202, 87, 0.6); }
  50% { box-shadow: 0 4px 0 #e1b12c, 0 0 20px rgba(255, 159, 243, 0.8); }
}

.btn-download {
  background: #10ac84;
  color: #fff;
}
.btn-download:hover {
  background: #1dd1a1;
}

.btn-print {
  background: #54a0ff;
  color: #fff;
}
.btn-print:hover {
  background: #2e86de;
}

.btn-clear {
  background: #ff6b6b;
  color: #fff;
}
.btn-clear:hover {
  background: #ee5253;
}

/* =============================================================================
   Drawing Carousel Selector Bar
============================================================================= */
.carousel-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  border: 3px solid rgba(255, 255, 255, 0.8);
  scrollbar-width: thin;
  scrollbar-color: #a29bfe #f1f2f6;
}

.carousel-bar::-webkit-scrollbar {
  height: 6px;
}
.carousel-bar::-webkit-scrollbar-thumb {
  background: #a29bfe;
  border-radius: 10px;
}

.drawing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #f8f9fc;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-width: 110px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.drawing-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #a29bfe;
  background: #ffffff;
}

.drawing-card.active {
  border-color: #6c5ce7;
  background: #ede9fe;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.25);
  transform: translateY(-2px);
}

.drawing-card-icon {
  font-size: 1.8rem;
  margin-bottom: 3px;
}

.drawing-card-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  margin-bottom: 4px;
  padding: 2px;
}

.drawing-card.active .drawing-card-thumb {
  border-color: #6c5ce7;
}

.drawing-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  white-space: nowrap;
}

/* =============================================================================
   Main Studio Layout (Left Tools, Center Canvas, Right Colors)
============================================================================= */
.studio-layout {
  display: grid;
  grid-template-columns: 90px 1fr 280px;
  gap: 14px;
  flex: 1;
  min-height: 580px;
}

/* =============================================================================
   Left Panel: Tools & Brush Size
============================================================================= */
.panel-tools {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.tool-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.tool-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: #f8f9fc;
  border: 3px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 4px;
  position: relative;
}

.tool-btn:hover {
  border-color: #a29bfe;
  background: #fff;
  transform: translateY(-2px);
}

.tool-btn.active {
  border-color: #6c5ce7;
  background: #6c5ce7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
  transform: scale(1.05);
}

.tool-btn-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.tool-btn-name {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 3px;
  line-height: 1;
}

.tool-btn.active .tool-btn-name {
  color: #ffffff;
}

/* Brush size selector */
.sizes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.size-btn {
  width: 48px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #f8f9fc;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-btn:hover {
  background: #fff;
  border-color: #a29bfe;
}

.size-btn.active {
  border-color: #6c5ce7;
  background: #ede9fe;
}

.size-dot {
  display: block;
  background: var(--text-dark);
  border-radius: 50%;
  transition: all 0.15s ease;
}

.size-btn.active .size-dot {
  background: #6c5ce7;
}

/* =============================================================================
   Center Stage: Canvas, Zoom Toolbar & SVG Artwork
============================================================================= */
.canvas-stage {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  gap: 10px;
}

/* Zoom & View Toolbar */
.zoom-toolbar {
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8f9fc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.zoom-controls-group,
.zoom-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-btn {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  width: 38px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid #dcdde1;
  background: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.zoom-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: #ede9fe;
  transform: translateY(-1px);
}

.zoom-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.zoom-slider {
  width: 120px;
  height: 8px;
  accent-color: var(--primary);
  cursor: pointer;
}

.zoom-badge-btn {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 58px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 2px solid #dcdde1;
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.zoom-badge-btn:hover {
  border-color: var(--primary);
  background: #ede9fe;
}

.zoom-action-btn {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 2px solid #dcdde1;
  background: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.zoom-action-btn:hover {
  border-color: #a29bfe;
  background: #f3f0ff;
}

.zoom-action-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 4 / 3;
  background: #f1f2f6;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 4px solid #2c3e50;
  overflow: hidden;
  touch-action: none;
}

.canvas-zoom-layer {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform-origin: 0 0;
  will-change: transform;
}

.canvas-wrapper svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-wrapper canvas#drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  touch-action: none;
}

.canvas-wrapper canvas#lineart-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  pointer-events: none;
}

/* SVG & Canvas coloring hover hints */
.canvas-wrapper.tool-bucket svg .colorable,
.canvas-wrapper.tool-bucket canvas#drawing-canvas {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="%236c5ce7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/></svg>') 4 20, auto;
  transition: filter 0.12s ease;
}

.canvas-wrapper.tool-bucket svg .colorable:hover {
  filter: brightness(0.92) drop-shadow(0 0 4px rgba(108, 92, 231, 0.5));
}

/* Custom cursors for other tools */
.canvas-wrapper.tool-brush {
  cursor: crosshair;
}
.canvas-wrapper.tool-crayon {
  cursor: crosshair;
}
.canvas-wrapper.tool-marker {
  cursor: crosshair;
}
.canvas-wrapper.tool-glitter {
  cursor: crosshair;
}
.canvas-wrapper.tool-eraser {
  cursor: cell;
}
.canvas-wrapper.tool-sticker {
  cursor: pointer;
}
.canvas-wrapper.tool-pan,
.canvas-wrapper.tool-pan svg .colorable,
.canvas-wrapper.tool-pan canvas#drawing-canvas {
  cursor: grab;
}
.canvas-wrapper.is-panning,
.canvas-wrapper.is-panning svg .colorable,
.canvas-wrapper.is-panning canvas#drawing-canvas {
  cursor: grabbing !important;
}

/* Expanded stage view ("Duży widok") */
body.stage-expanded .carousel-bar {
  display: none;
}

body.stage-expanded .app-container {
  max-width: 100%;
  padding: 8px 12px;
}

body.stage-expanded .canvas-wrapper,
body.stage-expanded .zoom-toolbar {
  max-width: 1180px;
}

/* Status message overlay */
.stage-hint {
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* =============================================================================
   Right Panel: Colors, Patterns, Stickers
============================================================================= */
.panel-palette {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.8);
  max-height: 680px;
  overflow-y: auto;
}

.palette-tabs {
  display: flex;
  background: #f1f2f6;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.palette-tab-btn {
  flex: 1;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.palette-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.palette-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Active Color Preview & Custom Picker */
.active-color-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fc;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
}

.active-color-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-preview-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #2d3436;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.active-color-info span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.custom-picker-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.custom-picker-wrapper input[type="color"] {
  width: 40px;
  height: 36px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

/* Swatches Grid */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 3px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.18);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.color-swatch.active {
  transform: scale(1.15);
  border-color: #2d3436;
  box-shadow: 0 0 0 3px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

/* Patterns Grid */
.patterns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pattern-card {
  height: 60px;
  border-radius: var(--radius-md);
  border: 3px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px;
  transition: all 0.18s ease;
  position: relative;
}

.pattern-card:hover {
  transform: translateY(-2px);
  border-color: #a29bfe;
}

.pattern-card.active {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px #a29bfe;
  transform: scale(1.03);
}

.pattern-card span {
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* Stickers Grid */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sticker-item {
  aspect-ratio: 1;
  background: #f8f9fc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sticker-item:hover {
  transform: scale(1.2) rotate(6deg);
  background: #fff;
  border-color: #a29bfe;
}

.sticker-item.active {
  border-color: #6c5ce7;
  background: #ede9fe;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.25);
}

/* =============================================================================
   Confetti & Modal Celebration
============================================================================= */
canvas#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
}

.celebration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45, 52, 54, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.celebration-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.celebration-box {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 6px solid #ffeaa7;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration-modal.visible .celebration-box {
  transform: scale(1) translateY(0);
}

.celebration-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: bounceTrophy 1.5s infinite ease-in-out;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.celebration-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #6c5ce7;
  margin-bottom: 8px;
}

.celebration-message {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.celebration-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* =============================================================================
   Print Stylesheet
============================================================================= */
@media print {
  body {
    background: #ffffff !important;
  }
  header.app-header,
  .carousel-bar,
  .panel-tools,
  .panel-palette,
  .zoom-toolbar,
  .stage-hint,
  .bg-bubbles,
  .btn {
    display: none !important;
  }
  .app-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .studio-layout {
    display: block !important;
  }
  .canvas-stage {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .canvas-wrapper {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }
  .canvas-zoom-layer {
    transform: none !important;
  }
}

/* =============================================================================
   Responsive Design
============================================================================= */
@media (max-width: 1100px) {
  .studio-layout {
    grid-template-columns: 80px 1fr 240px;
    gap: 10px;
  }
  .swatches-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .studio-layout {
    display: flex;
    flex-direction: column;
  }
  .panel-tools {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding: 8px 14px;
  }
  .tools-list {
    flex-direction: row;
    width: auto;
    overflow-x: auto;
  }
  .sizes-list {
    flex-direction: row;
    width: auto;
    margin-top: 0;
  }
  .panel-palette {
    max-height: none;
  }
  .swatches-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .stickers-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 600px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .btn span {
    display: none;
  }
  .btn-celebrate span {
    display: inline;
  }
  .zoom-slider {
    width: 85px;
  }
  .zoom-action-btn span {
    display: none;
  }
  .swatches-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
