/* ============================================
   MANUELA LIMA SANTOS — Site da Princesa 👑
   ============================================ */

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  gap: 0.4rem;
  background: rgba(255,255,255,0.88);
  border-radius: 999px;
  padding: 5px 8px;
  box-shadow: 0 4px 20px rgba(255,77,166,0.3);
  backdrop-filter: blur(8px);
}

.lang-btn {
  font-family: 'Baloo 2', cursive;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: #888;
  transition: all 0.2s;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255,77,166,0.35);
}

.lang-btn:not(.active):hover {
  border-color: var(--pink2);
  color: var(--pink);
}

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

:root {
  --pink:    #ff4da6;
  --pink2:   #ff80c0;
  --pink3:   #ffe0f0;
  --purple:  #a64dff;
  --blue:    #4da6ff;
  --blue2:   #cce8ff;
  --yellow:  #ffcc00;
  --white:   #ffffff;
  --shadow:  0 4px 24px rgba(255,77,166,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Baloo 2', cursive;
  background: linear-gradient(160deg, #ffe0f0 0%, #cce8ff 50%, #f0e0ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SPARKLES ===== */
.sparkles-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg,
    rgba(255,224,240,0.35) 0%,
    rgba(204,232,255,0.25) 60%,
    rgba(255,224,240,0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== NAME ===== */
.name-badge {
  background: rgba(255,255,255,0.88);
  border-radius: 32px;
  padding: 1.2rem 2.5rem;
  display: inline-block;
  box-shadow: 0 8px 40px rgba(255,77,166,0.35), 0 0 0 6px rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.name-letter {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  display: inline-block;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.12), 0 0 20px rgba(255,255,255,0.8);
  animation: bounce 2s ease-in-out infinite;
  transition: transform 0.2s;
}

.name-letter:hover { transform: scale(1.3) rotate(-5deg); }

.name-letter:nth-child(2n)   { animation-delay: 0.15s; }
.name-letter:nth-child(3n)   { animation-delay: 0.30s; }
.name-letter:nth-child(4n)   { animation-delay: 0.45s; }
.name-letter:nth-child(5n)   { animation-delay: 0.60s; }

.name-spacer { display: inline-block; width: 0.5em; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 0 #fff;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.badge {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(166,77,255,0.3);
  animation: pulse 2s ease-in-out infinite;
}

.badge:nth-child(2) { animation-delay: 0.4s; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.badge:nth-child(3) { animation-delay: 0.8s; background: linear-gradient(135deg, var(--yellow), var(--pink)); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  padding: 0.8rem 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255,77,166,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2s ease-in-out infinite;
}

.btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(255,77,166,0.6);
}

/* ===== CLOUDS ===== */
.clouds-row {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 120px;
  z-index: 5;
  pointer-events: none;
}

.cloud {
  position: absolute;
  bottom: 10px;
  background: rgba(255,255,255,0.85);
  border-radius: 50px;
  animation: driftCloud linear infinite;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
}

.c1 { width:160px; height:50px; left:-200px; animation-duration:18s; animation-delay:0s; }
.c1::before { width:80px; height:80px; top:-40px; left:20px; }
.c1::after  { width:60px; height:60px; top:-30px; left:70px; }

.c2 { width:120px; height:40px; left:-200px; bottom:40px; animation-duration:24s; animation-delay:5s; }
.c2::before { width:60px; height:60px; top:-30px; left:15px; }
.c2::after  { width:50px; height:50px; top:-25px; left:55px; }

.c3 { width:200px; height:60px; left:-200px; bottom:20px; animation-duration:20s; animation-delay:10s; }
.c3::before { width:90px; height:90px; top:-50px; left:25px; }
.c3::after  { width:70px; height:70px; top:-40px; left:90px; }

.c4 { width:140px; height:45px; left:-200px; bottom:55px; animation-duration:30s; animation-delay:2s; }
.c4::before { width:70px; height:70px; top:-35px; left:20px; }
.c4::after  { width:55px; height:55px; top:-28px; left:65px; }

@keyframes driftCloud {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 300px)); }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem;
  text-align: center;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 3px solid var(--pink2);
}

.about-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--pink);
  text-shadow: 2px 2px 0 rgba(255,77,166,0.2);
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.about-card {
  background: linear-gradient(135deg, var(--pink3), var(--blue2));
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  font-size: 1.8rem;
  text-align: center;
  box-shadow: 0 3px 12px rgba(255,77,166,0.2);
  min-width: 80px;
  transition: transform 0.2s;
  cursor: default;
}

.about-card:hover { transform: scale(1.15) rotate(-3deg); }
.about-card small { display: block; font-size: 0.75rem; color: var(--purple); font-weight: 700; }

/* ===== GAME SECTION ===== */
.game-section {
  position: relative;
  z-index: 10;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.game-title {
  margin-bottom: 0.5rem;
}

.game-desc {
  color: var(--purple);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.game-wrapper {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(166,77,255,0.4), 0 0 0 6px var(--pink2);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.game-hud {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 0.6rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.hud-item span {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
}

#gameCanvas {
  display: block;
  background: #2a0a3a;
  width: 100% !important;
  height: auto !important;
  touch-action: none;
}

/* Game Overlay */
.game-overlay {
  position: absolute;
  top: 42px; left: 0;
  width: 100%; height: calc(100% - 42px);
  background: rgba(30, 0, 60, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  backdrop-filter: blur(4px);
}

.overlay-box {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(255,77,166,0.4);
  max-width: 320px;
}

.overlay-emoji { font-size: 3.5rem; margin-bottom: 0.5rem; animation: bounce 1.5s ease-in-out infinite; }

.overlay-box h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--pink);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.overlay-box p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.btn-start {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,77,166,0.4);
  transition: transform 0.2s;
}

.btn-start:hover { transform: scale(1.08); }

/* ===== TOUCH CONTROLS ===== */
.touch-controls {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.touch-row {
  display: flex;
  gap: 0.4rem;
}

.touch-btn {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-size: 1.6rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,77,166,0.4);
  transition: transform 0.1s, opacity 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.touch-btn:active { transform: scale(0.92); opacity: 0.8; }
.touch-btn-down { background: linear-gradient(135deg, var(--blue), var(--purple)); }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: 2rem;
}

.footer-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(255,224,240,0.6) 0%, rgba(204,232,255,0.7) 100%);
}

.footer-hearts {
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  margin-bottom: 1.5rem;
  animation: pulse 3s ease-in-out infinite;
}

.daddy-message {
  background: rgba(255,255,255,0.9);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 40px rgba(255,77,166,0.3), 0 0 0 4px var(--pink2);
}

.daddy-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

.daddy-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.daddy-highlight {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.6rem;
  text-shadow: none;
}

.daddy-sub {
  display: block;
  color: #666;
  font-size: 1rem;
}

.footer-copy {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .name-letter { font-size: clamp(2rem, 10vw, 3.5rem); }
  .name-badge  { padding: 1rem 1.2rem; }
  .daddy-message { padding: 1.5rem 1.2rem; }
  .touch-btn { width: 56px; height: 56px; font-size: 1.4rem; }
}


/* ============================================
   DOLL DRESS-UP — Drag & Drop Edition v4
   Palco grande, itens maiores, iPad-friendly
   ============================================ */

/* Hero dual buttons */
.hero-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:1.2rem; }
.btn-play-doll { background: linear-gradient(135deg,#a64dff,#4da6ff) !important; }
.btn-play-doll:hover { background: linear-gradient(135deg,#8a2be2,#1e90ff) !important; }

/* Section */
.doll-section {
  position: relative; z-index: 10;
  padding: 3rem 1.2rem 5rem;
  background: linear-gradient(180deg,#fff0f8 0%,#f0e8ff 50%,#e8f4ff 100%);
}
.doll-section-inner  { max-width: 1400px; margin: 0 auto; }
.doll-section-header { text-align:center; margin-bottom:2rem; }
.doll-section-icon   { font-size:3.5rem; animation:bounce 2s infinite; display:block; margin-bottom:.5rem; }
.doll-section-desc   { color:var(--purple); font-size:1.1rem; font-weight:600; margin-top:.5rem; }

/* ── Wrapper ── */
.dg-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ── LEFT column ── */
.dg-left {
  flex: 0 0 480px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 70px;
}

/* ── Stage (palco dobrado) ── */
.dg-stage {
  position: relative;
  width: 460px;
  height: 680px;
  background: linear-gradient(160deg,#ffe0f5,#e8d0ff,#d0e8ff);
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(166,77,255,.35), 0 0 0 5px #ff80c0;
  overflow: visible;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

/* Layers inside stage */
.dg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dg-layer .dg-placed {
  pointer-events: all;
}

/* Doll base image */
.dg-base {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 680px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

/* Placed accessories */
.dg-placed {
  position: absolute;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  border-radius: 8px;
  transition: box-shadow .15s;
  touch-action: none;
}
.dg-placed:hover    { box-shadow: 0 0 0 3px #ff4da6, 0 4px 14px rgba(255,77,166,.45); }
.dg-placed-selected { box-shadow: 0 0 0 4px #ffcc00, 0 6px 20px rgba(255,204,0,.55); }

/* Doll name */
.dg-doll-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--purple);
  text-align: center;
  min-height: 1.8rem;
}

/* Size control */
.dg-size-ctrl {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: .6rem 1rem;
  box-shadow: 0 2px 12px rgba(166,77,255,.18);
  width: 100%;
  max-width: 460px;
}
.dg-size-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--purple);
  white-space: nowrap;
}
#dgSizeRange {
  flex: 1;
  min-width: 100px;
  accent-color: var(--pink);
}
#dgSizeVal {
  font-family: 'Baloo 2', cursive;
  font-size: .95rem;
  font-weight: 700;
  color: var(--pink);
  min-width: 42px;
}
.dg-btn-remove {
  font-family: 'Fredoka One', cursive;
  font-size: .9rem;
  padding: .3rem .9rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff6b6b,#ff4da6);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.dg-btn-remove:hover { opacity:.85; }

/* Action buttons */
.dg-action-row { display:flex; gap:.8rem; flex-wrap:wrap; justify-content:center; width:100%; }
.dg-btn {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  padding: .6rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.dg-btn:hover { transform:scale(1.06); box-shadow:0 6px 22px rgba(0,0,0,.2); }
.dg-btn-reset { background:linear-gradient(135deg,#ff80c0,#ff4da6); color:#fff; box-shadow:0 4px 14px rgba(255,77,166,.35); }
.dg-btn-save  { background:linear-gradient(135deg,#ffcc00,#ff9900); color:#fff; box-shadow:0 4px 14px rgba(255,153,0,.35); }

/* Hint */
.dg-hint {
  font-family: 'Baloo 2', cursive;
  font-size: .9rem;
  color: #a64dff;
  text-align: center;
  max-width: 460px;
  line-height: 1.5;
}

/* ── RIGHT column ── */
.dg-right {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Panels */
.dg-panel {
  background: rgba(255,255,255,.9);
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 22px rgba(166,77,255,.14);
  border: 2px solid rgba(255,128,192,.3);
}
.dg-panel-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--pink);
  margin-bottom: .9rem;
  text-align: center;
}

/* Grids */
.dg-grid     { display:flex; flex-wrap:wrap; gap:.55rem; }
.dg-grid-acc { gap:.5rem; }

/* Category label */
.dg-acc-section { margin-bottom: 1rem; }
.dg-cat-label {
  font-family: 'Fredoka One', cursive;
  font-size: .9rem;
  color: var(--purple);
  margin-bottom: .4rem;
  padding-left: .25rem;
}

/* Items — maiores para iPad */
.dg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  width: 90px;
  padding: .45rem .3rem;
  border: 2px solid rgba(166,77,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.93);
  cursor: pointer;
  transition: all .18s;
  font-family: 'Baloo 2', cursive;
  font-size: .68rem;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
  line-height: 1.2;
  user-select: none;
}
.dg-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}
.dg-item span {
  display: block;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dg-item:hover    { border-color:var(--pink2); transform:scale(1.08); box-shadow:0 4px 16px rgba(255,77,166,.28); }
.dg-selected      { border-color:var(--pink); background:linear-gradient(135deg,#ffe0f5,#e8d0ff); box-shadow:0 0 0 3px var(--pink2),0 4px 14px rgba(255,77,166,.3); transform:scale(1.05); }

/* Acc item — draggable */
.dg-acc-item { cursor: grab; }
.dg-acc-item:active { cursor: grabbing; }

/* None button */
.dg-none-icon { font-size:2rem; line-height:1; }

/* Touch ghost */
.dg-touch-ghost {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  object-fit: contain;
  opacity: .88;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(255,77,166,.55);
  transition: none;
}

/* Sparkles */
.dg-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  animation: dgBurst .9s ease-out forwards;
}
@keyframes dgBurst {
  0%   { transform:translate(-50%,-50%) scale(0); opacity:1; }
  60%  { transform:translate(-50%,-50%) scale(3); opacity:.7; }
  100% { transform:translate(-50%,-50%) scale(6); opacity:0; }
}

/* Toast */
.dg-toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,#ff4da6,#a64dff);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  padding: .9rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(255,77,166,.45);
  z-index: 9999;
  animation: toastIn .4s ease, toastOut .4s ease 2.6s forwards;
  white-space: nowrap;
}
@keyframes toastIn  { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
@keyframes toastOut { from{opacity:1} to{opacity:0;transform:translateX(-50%) translateY(20px)} }

/* ── Responsive iPad (768-1024px) ── */
@media (max-width:1100px) {
  .dg-left  { flex: 0 0 400px; min-width: 300px; }
  .dg-stage { width: 380px; height: 570px; }
  .dg-base  { width: 330px; height: 570px; }
  .dg-size-ctrl { max-width: 380px; }
  .dg-hint      { max-width: 380px; }
}

/* ── Responsive mobile ── */
@media (max-width:700px) {
  .dg-wrap  { flex-direction:column; align-items:center; }
  .dg-left  { position:static; flex:none; width:100%; max-width:400px; }
  .dg-stage { width:320px; height:480px; }
  .dg-base  { width:280px; height:480px; }
  .dg-size-ctrl { max-width:320px; }
  .dg-hint      { max-width:320px; }
  .dg-item      { width:78px; }
  .dg-item img  { width:54px; height:54px; }
}
