/* ==========================================================================
   PRINCESS GRACELYN'S ELSA & ARIEL: MAGICAL KINGDOMS — Fairytale Stylesheet
   ========================================================================== */

:root {
  --ice-light: #e0f7ff;
  --ice-cyan: #5ce1e6;
  --ice-blue: #38b6ff;
  --ice-deep: #1b4d89;
  --ocean-teal: #2dd4bf;
  --ocean-coral: #ff6b9d;
  --ocean-purple: #a855f7;
  --royal-gold: #ffd166;
  --royal-gold-deep: #f59e0b;
  --panel-bg: rgba(15, 32, 68, 0.78);
  --panel-border: rgba(255, 255, 255, 0.38);
  --font-round: 'Trebuchet MS', 'Segoe UI', 'Comic Sans MS', system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-round);
  background: linear-gradient(135deg, #0b1d3a 0%, #164e63 50%, #3b0764 100%);
  color: #ffffff;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
}

button:active {
  transform: translateY(1px) scale(0.97);
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
#top-bar {
  position: relative;
  z-index: 100;
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background: linear-gradient(90deg, rgba(14, 42, 92, 0.94), rgba(30, 58, 110, 0.92), rgba(76, 29, 115, 0.94));
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  gap: 6px;
}

.top-left, .top-center, .top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.35);
  white-space: nowrap;
}

.princess-badge-btn {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-color: #fde047;
  box-shadow: 0 3px 12px rgba(236, 72, 153, 0.45);
}

.chest-btn {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.chest-btn.chest-ready {
  background: linear-gradient(135deg, #fde047, #f97316);
  color: #0f172a;
  border-color: #ffffff;
  animation: pulseGlow 1.2s infinite alternate;
}

@keyframes pulseGlow {
  from { transform: scale(1); box-shadow: 0 0 8px #fde047; }
  to { transform: scale(1.06); box-shadow: 0 0 20px #fde047; }
}

.star-counter {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.sticker-badge {
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
}

.mode-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.32);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  gap: 3px;
}

.mode-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  white-space: nowrap;
}

.mode-pill.active {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #67e8f9);
  box-shadow: 0 2px 10px rgba(103, 232, 249, 0.6);
}

.icon-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.icon-btn.off {
  opacity: 0.48;
  filter: grayscale(0.8);
}

/* ==========================================================================
   SCREENS & TOASTS
   ========================================================================== */
.screen {
  display: none;
  position: relative;
  width: 100%;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  overflow: hidden;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

#toast-container {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.magical-toast {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.96), rgba(126, 34, 206, 0.96));
  border: 2px solid #fde047;
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: toastPop 2.8s forwards;
}

@keyframes toastPop {
  0% { opacity: 0; transform: translateY(-14px) scale(0.86); }
  12% { opacity: 1; transform: translateY(0) scale(1.03); }
  85% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.92); }
}

/* ==========================================================================
   SCREEN 0: PRINCESS GRACELYN'S 7-WORLD HUB
   ========================================================================== */
#hub-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hub-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  overflow-y: auto;
}

.hub-hero {
  text-align: center;
}

.title-sparkles {
  font-size: 1.05rem;
  letter-spacing: 4px;
}

.main-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 2px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.elsa-text {
  background: linear-gradient(180deg, #ffffff 0%, #7dd3fc 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.amp-text {
  color: #fde047;
  margin: 0 8px;
  font-size: 0.8em;
}

.ariel-text {
  background: linear-gradient(180deg, #ffe4e6 0%, #fb7185 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin: 2px 0 0;
  font-size: clamp(0.92rem, 1.35vw, 1.12rem);
  font-weight: 700;
  color: #fef08a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

/* Talking Quest Scroll Banner */
.quest-scroll-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.88), rgba(14, 116, 144, 0.88));
  border: 2px solid #fde047;
  font-size: 0.88rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.quest-go-btn {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.8rem;
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #67e8f9);
}

.hub-stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.hub-princess-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 6px 8px 10px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.elsa-card {
  border-color: rgba(125, 211, 252, 0.75);
}

.ariel-card {
  border-color: rgba(251, 113, 133, 0.75);
}

.princess-label {
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
}

.poke-hint {
  display: block;
  font-size: 0.72rem;
  color: #fde047;
}

/* 10-World Symmetrical 5x2 Grid on Kingdom Hub! */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 160px);
  justify-content: center;
  gap: 8px;
}

.world-card {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: 20px;
  color: #ffffff;
  border: 2.5px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.card-adventure { background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%); }
.card-dressup   { background: linear-gradient(135deg, #db2777 0%, #9333ea 100%); }
.card-petspa    { background: linear-gradient(135deg, #16a34a 0%, #0891b2 100%); }
.card-bakery    { background: linear-gradient(135deg, #e11d48 0%, #d97706 100%); }
.card-coloring  { background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%); }
.card-cowrace   { background: linear-gradient(135deg, #059669 0%, #eab308 100%); border-color: #fde047; }
.card-hideseek  { background: linear-gradient(135deg, #0284c7 0%, #ec4899 100%); border-color: #fde047; }
.card-karaoke   { background: linear-gradient(135deg, #9333ea 0%, #f43f5e 100%); border-color: #fde047; }
.card-decorator { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); }
.card-party     { background: linear-gradient(135deg, #ea580c 0%, #db2777 100%); }

.card-icon {
  font-size: 1.32rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.22);
  width: 72px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body h2 {
  margin: 0 0 3px;
  font-size: 0.98rem;
  font-weight: 900;
}

.card-body p {
  margin: 0 0 5px;
  font-size: 0.76rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.94);
}

.card-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.28);
  color: #fde047;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.hub-controls-banner {
  background: rgba(15, 23, 42, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  text-align: center;
}

/* ==========================================================================
   SHARED SUB-TOOLBARS & STAGE CONTAINERS
   ========================================================================== */
.sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
  z-index: 10;
}

.level-tabs, .adv-status, .dec-scenes, .dec-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.lvl-btn, .bg-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.lvl-btn.active, .bg-chip.active {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #fff;
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.hud-chip {
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hud-action-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.magic-btn-elsa { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.magic-btn-ariel { background: linear-gradient(135deg, #db2777, #2dd4bf); }

.canvas-stage-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

#adv-canvas, #decorator-canvas, #party-canvas, #dressup-canvas, #petspa-canvas, #bakery-canvas, #coloring-canvas, #cowrace-canvas, #hideseek-canvas, #karaoke-canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.42);
  background: #0f2942;
  touch-action: none;
}

#coloring-canvas {
  cursor: crosshair;
}

.touch-controls {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.dpad-group, .magic-touch-group {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.touch-btn {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.ice-touch { background: rgba(2, 132, 199, 0.82); }
.sea-touch { background: rgba(219, 39, 119, 0.82); }

.overlay-card {
  position: absolute;
  z-index: 30;
  background: linear-gradient(145deg, rgba(15, 35, 75, 0.95), rgba(88, 28, 135, 0.95));
  border: 3px solid #fde047;
  border-radius: 28px;
  padding: 26px 32px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.hidden { display: none !important; }
.victory-sparkles { font-size: 2.2rem; }

.victory-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.big-cta-btn {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 1.0rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #67e8f9);
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(253, 224, 71, 0.45);
}

.secondary-cta-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   SHARED TWO-COLUMN STUDIO LAYOUT (DRESS-UP, PET SPA, BAKERY, COLORING)
   ========================================================================== */
.dressup-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 14px;
  padding: 10px 16px;
  height: 100%;
  overflow: hidden;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.wardrobe-panel {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  overflow-y: auto;
}

.princess-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.p-tab {
  padding: 9px;
  border-radius: 15px;
  font-weight: 900;
  font-size: 0.94rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.p-tab.active-elsa {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-color: #e0f2fe;
}

.p-tab.active-ariel {
  background: linear-gradient(135deg, #db2777, #14b8a6);
  border-color: #fce7f3;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cat-btn {
  padding: 7px 6px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.cat-btn.active {
  background: linear-gradient(135deg, #fde047, #f472b6);
  color: #0f172a;
  border-color: #fff;
}

.items-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding-right: 4px;
}

.wardrobe-item-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
  font-size: 0.78rem;
}

.wardrobe-item-btn.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(236, 72, 153, 0.45));
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(253, 224, 71, 0.5);
}

.swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  border: 2px solid #fff;
}

.wardrobe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.action-pill {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.runway-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}

.runway-toolbar, .runway-bottom-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.runway-label {
  font-weight: 800;
  font-size: 0.86rem;
}

.runway-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

/* ==========================================================================
   PALACE DECORATOR
   ========================================================================== */
.decorator-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  padding: 10px 14px;
  height: 100%;
  overflow: hidden;
}

.sticker-drawer {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  overflow: hidden;
}

.sticker-drawer h3 { margin: 0; text-align: center; font-size: 1.05rem; }

.dec-cat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.dec-cat {
  padding: 6px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.dec-cat.active {
  background: linear-gradient(135deg, #38bdf8, #f472b6);
  color: #0f172a;
  border-color: #fff;
}

.drawer-hint { margin: 0; font-size: 0.74rem; color: #bae6fd; text-align: center; }

.dec-palette-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding-right: 4px;
}

.dec-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.dec-item-emoji { font-size: 1.6rem; }
.decorator-stage-area { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; }

/* ==========================================================================
   PARTY & MEMORY MATCH
   ========================================================================== */
.party-stage-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.party-dom-layer {
  position: absolute;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.memory-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.82);
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  backdrop-filter: blur(10px);
}

.mem-card {
  width: 92px;
  height: 104px;
  border-radius: 18px;
  font-size: 2.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #7e22ce);
  border: 3px solid #e0f2fe;
  color: #fff;
}

.mem-card.flipped, .mem-card.matched {
  background: linear-gradient(135deg, #fffbeb, #e0f2fe);
  color: #0f172a;
  border-color: #fde047;
}

.mem-card-label { font-size: 0.68rem; font-weight: 900; margin-top: 3px; }

/* ==========================================================================
   STICKER BOOK & MYSTERY TREASURE CHEST MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(7, 16, 38, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 86vh;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 { margin: 0; }

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.modal-sub { margin: 0; color: #bae6fd; font-size: 0.92rem; }

.stickers-grid {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
  padding: 4px;
}

.sticker-tile {
  padding: 10px 8px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

.sticker-tile.unlocked {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(236, 72, 153, 0.35));
  border: 2px solid #fde047;
}

.sticker-icon { font-size: 2rem; margin-bottom: 4px; }
.sticker-tile:not(.unlocked) .sticker-icon { filter: grayscale(1) opacity(0.35); }
.sticker-name { font-weight: 900; font-size: 0.82rem; }
.sticker-desc { font-size: 0.72rem; color: rgba(255, 255, 255, 0.82); margin-top: 3px; }

.chest-big-icon {
  font-size: 5.5rem;
  cursor: pointer;
  margin: 8px 0;
}

.chest-big-icon.shaking {
  animation: chestShake 0.65s infinite ease-in-out;
}

.chest-big-icon.popped {
  animation: chestPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chestShake {
  0%, 100% { transform: rotate(-6deg) scale(1.02); }
  50% { transform: rotate(6deg) scale(1.08); }
}

@keyframes chestPop {
  0% { transform: scale(0.4); }
  100% { transform: scale(1.18); }
}

@media (max-width: 1180px) {
  .hub-princess-card { display: none; }
  .hub-cards-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); width: 100%; max-width: 920px; }
  .world-card { width: auto; }
  .dressup-layout { grid-template-columns: 320px 1fr; }
  .decorator-layout { grid-template-columns: 250px 1fr; }
}

@media (max-width: 760px) {
  .dressup-layout, .decorator-layout { grid-template-columns: 1fr; overflow-y: auto; }
}
