/* ============================================================
   Mix & Match Wardrobe — Glossy Pink & Crystal-Silver Theme
   ============================================================ */

:root {
  --pink-bg-1: #fff2f8;
  --pink-bg-2: #ffd9ec;
  --pink-soft: #ffc1df;
  --pink-mid: #ff77b7;
  --pink-hot: #ff3b93;
  --pink-deep: #c4186d;
  --pink-plum: #6c1849;
  --silver-light: #f4f6fc;
  --silver-border: #e5d4e6;
  --white: #ffffff;
  --text-dark: #4b1d38;
  --text-muted: #8b5675;
  --shadow-pink: 0 14px 34px rgba(214, 41, 127, 0.18);
  --shadow-card: 0 10px 28px rgba(173, 38, 108, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html, body {
  min-height: 100%;
  font-family: 'Avenir Next', 'Nunito', 'Quicksand', 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
    radial-gradient(circle at 86% 24%, rgba(255, 168, 214, 0.45) 0%, transparent 48%),
    radial-gradient(circle at 50% 90%, rgba(235, 198, 255, 0.35) 0%, transparent 50%),
    linear-gradient(160deg, var(--pink-bg-1) 0%, var(--pink-bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ============================================================
   FLOATING SPARKLE BACKGROUND
   ============================================================ */
.bg-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle-dot {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 12px rgba(255, 77, 158, 0.7);
  animation: floatSparkle linear infinite;
  user-select: none;
}

@keyframes floatSparkle {
  0% { transform: translateY(105vh) scale(0.6) rotate(0deg); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.85; }
  100% { transform: translateY(-10vh) scale(1.15) rotate(180deg); opacity: 0; }
}

/* ============================================================
   3D ANIMATED OPENING CLOSET DOORS OVERLAY
   ============================================================ */
.closet-doors-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  pointer-events: none;
  opacity: 0;
  perspective: 1400px;
  transition: opacity 0.35s ease;
}

.closet-doors-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.closet-door {
  width: 50%;
  height: 100%;
  background: linear-gradient(165deg, #ffd2e8 0%, #ff9ecd 48%, #f874b6 100%);
  border: 10px solid #ffffff;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.7), 0 0 36px rgba(196, 24, 109, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 60px 44px;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}

.door-left {
  transform-origin: left center;
  border-right-width: 5px;
}

.door-right {
  transform-origin: right center;
  border-left-width: 5px;
}

.door-panel {
  flex: 1;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 179, 217, 0.32));
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.8), 0 6px 14px rgba(196, 24, 109, 0.18);
}

.door-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #ffd2e8 55%, #ff4d9e 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 6px 20px rgba(196, 24, 109, 0.45);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.door-left .door-handle { right: 20px; }
.door-right .door-handle { left: 20px; }

.closet-seam-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ffffff 0%, #ff4da6 45%, transparent 100%);
  box-shadow: 0 0 60px 22px rgba(255, 77, 166, 0.9), 0 0 110px 44px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.closet-doors-overlay.glowing .closet-seam-glow {
  opacity: 1;
}

.closet-doors-overlay.opening .door-left {
  transform: rotateY(-112deg);
}

.closet-doors-overlay.opening .door-right {
  transform: rotateY(112deg);
}

.closet-doors-overlay.opening .closet-seam-glow {
  opacity: 0;
}

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 22px rgba(214, 41, 127, 0.08);
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pink-deep);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.brand-chip:hover {
  transform: scale(1.03);
  background: rgba(255, 193, 223, 0.35);
}

.brand-chip img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(214, 41, 127, 0.25);
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   APP SHELL & SCREENS
   ============================================================ */
.app-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 36px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  animation: fadeSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   BUTTONS & BADGES (Glossy 3D Pink Style!)
   ============================================================ */
.pill-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.pill-btn:active {
  transform: translateY(2px) scale(0.98);
}

.pill-btn.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #ff79b8 0%, #ff358d 55%, #d91871 100%);
  border: 2.5px solid #ffffff;
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.55),
    0 6px 0 #a31156,
    0 12px 24px rgba(217, 24, 113, 0.35);
  text-shadow: 0 2px 4px rgba(135, 11, 69, 0.38);
}

.pill-btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 3px 8px rgba(255, 255, 255, 0.65),
    0 8px 0 #a31156,
    0 16px 30px rgba(217, 24, 113, 0.42);
}

.pill-btn.soft {
  color: var(--pink-deep);
  background: linear-gradient(180deg, #ffffff 0%, #ffe6f3 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(196, 24, 109, 0.14);
}

.pill-btn.soft:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #ffd4ea 100%);
}

.pill-btn.large {
  padding: 14px 30px;
  font-size: 1.08rem;
}

.pill-btn.mega {
  padding: 18px 44px;
  font-size: 1.32rem;
}

.pill-btn.small {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.pill-btn.full {
  width: 100%;
}

.pill-btn.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
}

.pulse-glow {
  animation: pulseBtn 2.2s ease-in-out infinite;
}

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

.eyebrow-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe0f0, #f5e6ff);
  border: 1.5px solid #ffffff;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(214, 41, 127, 0.1);
}

/* ============================================================
   SCREEN 1: TITLE SCREEN
   ============================================================ */
.title-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 26px 24px 36px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 54px rgba(214, 41, 127, 0.22);
}

.logo-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.logo-halo {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 119, 183, 0.45) 0%, transparent 70%);
  filter: blur(22px);
  animation: haloPulse 3s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-logo {
  position: relative;
  width: min(350px, 78vw);
  height: min(350px, 78vw);
  object-fit: cover;
  border-radius: 32px;
  border: 5px solid #ffffff;
  box-shadow: 0 18px 42px rgba(196, 24, 109, 0.28);
  animation: gentleBob 3.6s ease-in-out infinite;
}

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

.title-subtitle {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ============================================================
   GLASS PANELS & MODE SELECT
   ============================================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  padding: 30px 32px;
  box-shadow: var(--shadow-pink);
  margin: 0 auto;
}

.center-panel {
  max-width: 820px;
  text-align: center;
}

.wide-panel {
  max-width: 1020px;
}

.screen-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 900;
  color: var(--pink-deep);
  margin-bottom: 8px;
}

.screen-lead {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 26px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mode-card {
  text-align: left;
  padding: 26px;
  border-radius: 24px;
  border: 3px solid #ffffff;
  background: linear-gradient(160deg, #ffffff 0%, #ffe8f4 100%);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mode-card.friends {
  background: linear-gradient(160deg, #ffffff 0%, #f5e6ff 100%);
}

.mode-card:hover {
  transform: translateY(-5px);
  border-color: var(--pink-mid);
  box-shadow: 0 18px 34px rgba(214, 41, 127, 0.22);
}

.mode-emoji {
  font-size: 2.6rem;
}

.mode-card h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--pink-deep);
}

.mode-card p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.96rem;
  flex: 1;
}

.mode-cta {
  display: inline-block;
  margin-top: 6px;
  font-weight: 900;
  color: var(--pink-hot);
  font-size: 1rem;
}

/* ============================================================
   THEME PICKER GRID
   ============================================================ */
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.panel-footer-row.center {
  justify-content: center;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.theme-card {
  border: 3px solid #ffffff;
  border-radius: 20px;
  padding: 16px 14px;
  background: linear-gradient(165deg, #ffffff 0%, #fff0f8 100%);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 16px rgba(196, 24, 109, 0.09);
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink-soft);
}

.theme-card.selected {
  border-color: var(--pink-hot);
  background: linear-gradient(165deg, #fff5fa 0%, #ffd8ec 100%);
  box-shadow: 0 10px 24px rgba(255, 59, 147, 0.28);
  transform: translateY(-3px);
}

.theme-card-emoji {
  font-size: 2rem;
}

.theme-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--pink-deep);
}

.theme-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.38;
}

/* Surprise Theme Roulette Reveal Card */
.theme-roulette-card {
  max-width: 560px;
  margin: 18px auto 8px;
  padding: 28px 26px;
  border-radius: 28px;
  background: linear-gradient(155deg, #ffffff 0%, #ffe6f4 60%, #f5e6ff 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 18px 40px rgba(214, 41, 127, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-roulette-card.spinning {
  animation: rouletteShake 0.14s ease-in-out infinite;
}

.theme-roulette-card.revealed {
  border-color: var(--pink-hot);
  box-shadow: 0 20px 48px rgba(255, 59, 147, 0.34);
  animation: popReveal 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes rouletteShake {
  0%, 100% { transform: scale(0.985); }
  50% { transform: scale(1.015); }
}

@keyframes popReveal {
  0% { transform: scale(0.88); }
  65% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.roulette-emoji {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.roulette-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pink-deep);
  margin-bottom: 8px;
}

.roulette-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.roulette-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ============================================================
   FRIENDS ROOM HUB & LOBBY
   ============================================================ */
.name-input-row {
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 380px;
}

.name-input-row label,
.field-label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--pink-deep);
}

input[type="text"],
.pink-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2.5px solid var(--pink-soft);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
.pink-select:focus {
  border-color: var(--pink-hot);
  box-shadow: 0 0 0 4px rgba(255, 59, 147, 0.15);
}

.code-input {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-align: center;
  font-size: 1.25rem !important;
}

.friends-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sub-card {
  background: linear-gradient(160deg, #ffffff 0%, #fff1f8 100%);
  border: 2.5px solid #ffffff;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.sub-card h3 {
  color: var(--pink-deep);
  font-size: 1.2rem;
  font-weight: 900;
}

.sub-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.error-banner {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffe0ec;
  border: 2px solid #ff5c9e;
  color: #a6135d;
  font-weight: 800;
  text-align: center;
}

.lobby-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.room-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff4d9e, #d81b78);
  border: 3px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(216, 27, 120, 0.3);
}

.code-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.room-code-box strong {
  font-size: 1.6rem;
  letter-spacing: 0.16em;
}

.mini-copy-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.mini-copy-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lobby-theme-banner {
  padding: 14px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffe3f2, #f3e4ff);
  border: 2px solid #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 800;
  color: var(--pink-deep);
}

.lobby-players-wrap h3 {
  font-size: 1rem;
  color: var(--pink-deep);
  margin-bottom: 10px;
}

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.player-chip {
  padding: 9px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--pink-soft);
  font-weight: 800;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 10px rgba(196, 24, 109, 0.08);
}

.player-chip.ready {
  border-color: #ff4d9e;
  background: #ffe8f4;
}

.lobby-tip {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.waiting-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffe6f3;
  color: var(--pink-deep);
  font-weight: 800;
}

/* ============================================================
   SCREEN 5: ANIME DOLL DRESS-UP STUDIO
   ============================================================ */
.studio-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.doll-stage-card {
  position: sticky;
  top: 76px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border: 3px solid #ffffff;
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.studio-theme-pill {
  width: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe2f2, #f5e6ff);
  border: 2px solid #ffffff;
  text-align: center;
}

.studio-theme-pill strong {
  display: block;
  color: var(--pink-deep);
  font-size: 0.98rem;
}

.studio-theme-pill small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.doll-pedestal {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 360px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 224, 241, 0.75) 65%, rgba(255, 194, 228, 0.65) 100%);
  border: 2.5px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px 8px 14px;
}

.doll-mount {
  width: 100%;
  max-width: 278px;
  position: relative;
  z-index: 2;
}

.pedestal-base {
  display: none;
}

.doll-mount .anime-doll-svg,
.doll-mount .anime-doll-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(196, 24, 109, 0.16));
}

.idle-float {
  animation: dollBreath 3.2s ease-in-out infinite;
}

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

.pedestal-base {
  position: absolute;
  bottom: 10px;
  width: 200px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 133, 187, 0.55) 0%, rgba(255, 193, 223, 0.18) 70%, transparent 100%);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.stage-quick-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.runway-go-btn {
  padding: 14px 20px;
  font-size: 1.04rem;
}

/* Wardrobe Right Panel */
.wardrobe-panel {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  border: 3px solid #ffffff;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-pink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 600px;
}

.step-welcome-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff5aa4, #e0227e);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(224, 34, 126, 0.25);
}

.step-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 900;
  font-size: 0.82rem;
  white-space: nowrap;
}

.step-welcome-banner p {
  font-weight: 800;
  font-size: 0.96rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat-tab {
  border: 2px solid #ffffff;
  background: #fff3f9;
  color: var(--pink-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  background: #ffe0f0;
  transform: translateY(-1px);
}

.cat-tab.active {
  background: linear-gradient(135deg, #ff5ea8, #e0217c);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(224, 33, 124, 0.28);
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 2px dashed rgba(255, 133, 187, 0.35);
}

.sub-tab {
  border: 2px solid var(--pink-soft);
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 6px 13px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
}

.sub-tab.active {
  background: #ffe0f0;
  border-color: var(--pink-hot);
  color: var(--pink-deep);
}

.wardrobe-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 410px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--pink-deep);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.item-card {
  border: 2.5px solid #ffffff;
  background: linear-gradient(165deg, #ffffff 0%, #fff1f8 100%);
  border-radius: 16px;
  padding: 12px 8px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(196, 24, 109, 0.08);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  position: relative;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--pink-soft);
}

.item-card.selected {
  border-color: var(--pink-hot);
  background: linear-gradient(165deg, #fff6fb 0%, #ffd8ec 100%);
  box-shadow: 0 8px 18px rgba(255, 59, 147, 0.25);
}

.item-icon {
  font-size: 1.65rem;
  line-height: 1.1;
}

.item-card.has-thumb {
  padding: 7px 6px 8px;
  gap: 5px;
}

.item-thumb-box {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(155deg, #fff8fc 0%, #ffeaf5 100%);
  border: 1.5px solid rgba(255, 165, 210, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-thumb-box.empty-thumb {
  font-size: 1.55rem;
  color: var(--pink-mid);
  background: #fff5fa;
}

.item-thumb-box.face-thumb,
.item-thumb-box.svg-thumb {
  padding: 4px;
}

.item-thumb-box.photo-thumb {
  background: #ffffff;
}

.item-thumb-box.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Exact Studio-Anime Zone Crops so every button previews the exact item! */
.item-thumb-box.crop-hair img {
  transform: scale(1.95);
  transform-origin: 50% 16%;
}

.item-thumb-box.crop-tops img {
  transform: scale(2.35);
  transform-origin: 50% 38%;
}

.item-thumb-box.crop-bottoms img {
  transform: scale(1.85);
  transform-origin: 50% 66%;
}

.item-thumb-box.crop-dresses img {
  transform: scale(1.3);
  transform-origin: 50% 56%;
}

.item-thumb-box.crop-outerwear img {
  transform: scale(2.15);
  transform-origin: 50% 37%;
}

.item-thumb-box.crop-outer-wide img {
  transform: scale(1.12);
  transform-origin: 50% 42%;
}

.item-thumb-box.crop-shoes img {
  transform: scale(2.6);
  transform-origin: 50% 95%;
}

.item-thumb-box.crop-headwear img {
  transform: scale(2.45);
  transform-origin: 50% 8%;
}

.item-thumb-box.crop-bag img {
  transform: scale(2.75);
  transform-origin: 26% 65%;
}

.item-thumb-box.crop-socks img {
  transform: scale(1.95);
  transform-origin: 50% 80%;
}

.thumb-pat-tag {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 1px 4px;
  box-shadow: 0 2px 5px rgba(196, 24, 109, 0.22);
}

.item-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.theme-match-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.72rem;
  background: #ff3b93;
  color: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 900;
}

/* Color Swatches & Custom Picker */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.color-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(108, 24, 73, 0.2);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch.selected {
  transform: scale(1.14);
  box-shadow: 0 0 0 3px var(--pink-hot), 0 6px 14px rgba(255, 59, 147, 0.35);
}

.skin-swatch-card {
  border: 2.5px solid #ffffff;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 8px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(196, 24, 109, 0.08);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.skin-swatch-card:hover {
  transform: translateY(-2px);
}

.skin-swatch-card.selected {
  border-color: var(--pink-hot);
  background: #ffe8f4;
}

.skin-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid rgba(108, 24, 73, 0.18);
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.55);
}

.custom-color-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff5fa, #f6eaff);
  border: 2px dashed var(--pink-mid);
}

.custom-color-box label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--pink-deep);
}

.custom-color-box input[type="color"] {
  width: 48px;
  height: 36px;
  border: 2.5px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  box-shadow: 0 3px 10px rgba(196, 24, 109, 0.2);
}

.studio-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 2px solid rgba(255, 193, 223, 0.5);
}

.step-progress-text {
  font-weight: 900;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============================================================
   SCREEN 6: SPARKLING FASHION RUNWAY
   ============================================================ */
.runway-arena {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 4px solid #ffffff;
  background: radial-gradient(circle at 50% 18%, #6d1f59 0%, #3a0d38 58%, #1e0621 100%);
  box-shadow: 0 24px 60px rgba(108, 24, 73, 0.42);
  padding: 22px 24px 26px;
  color: #ffffff;
}

.runway-marquee {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  max-width: fit-content;
  margin: 0 auto 14px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.spotlight {
  position: absolute;
  top: -40px;
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, rgba(255, 179, 224, 0.36) 0%, transparent 100%);
  clip-path: polygon(42% 0%, 58% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 1;
}

.spot-left {
  left: 8%;
  transform-origin: top center;
  animation: sweepLeft 4.5s ease-in-out infinite;
}

.spot-right {
  right: 8%;
  transform-origin: top center;
  animation: sweepRight 4.5s ease-in-out infinite;
}

@keyframes sweepLeft {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(8deg); }
}

@keyframes sweepRight {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-8deg); }
}

.camera-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.camera-flash.flash-pop {
  animation: flashBurst 0.45s ease-out;
}

@keyframes flashBurst {
  0% { opacity: 0.65; }
  100% { opacity: 0; }
}

.catwalk-stage {
  position: relative;
  height: 455px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 3;
}

.catwalk-floor {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 150px;
  background: linear-gradient(180deg, #ff77b7 0%, #ff3b93 52%, #c4186d 100%);
  clip-path: polygon(22% 0%, 78% 0%, 100% 100%, 0% 100%);
  border-top: 4px solid #ffffff;
  box-shadow: 0 -10px 40px rgba(255, 119, 183, 0.55);
}

.runway-doll-walker {
  position: relative;
  z-index: 4;
  width: 245px;
  margin-bottom: 18px;
}

.runway-doll-walker .anime-doll-svg,
.runway-doll-walker .anime-doll-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
}

.runway-doll-walker.walking {
  animation: runwayEnter 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.runway-doll-walker.posing {
  animation: runwayPose 1.8s ease-in-out infinite;
}

@keyframes runwayEnter {
  0% { transform: translateY(-70px) scale(0.42); opacity: 0.2; }
  35% { transform: translateY(-42px) scale(0.64) rotate(-2deg); opacity: 1; }
  65% { transform: translateY(-16px) scale(0.86) rotate(2deg); }
  100% { transform: translateY(0px) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes runwayPose {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-6px) scale(1.03) rotate(1.2deg); }
}

.runway-pose-banner {
  position: absolute;
  top: 16px;
  padding: 7px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5aa4, #ff8ac4);
  border: 2px solid #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(255, 59, 147, 0.45);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.35s ease;
}

.runway-pose-banner.visible {
  opacity: 1;
  transform: scale(1);
}

.runway-bottom-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Friends Voting Controls on Runway */
.runway-vote-bar {
  position: relative;
  z-index: 5;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vote-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.vote-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.vote-num-btn {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 2.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.45rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.vote-num-btn span {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.9;
}

.vote-num-btn.good {
  background: linear-gradient(160deg, rgba(255, 119, 183, 0.8), rgba(216, 27, 120, 0.85));
}

.vote-num-btn:hover {
  transform: translateY(-4px) scale(1.06);
  background: #ff3b93;
}

.quick-compliments {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.compliment-chip {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.compliment-chip.active {
  background: #ffffff;
  color: var(--pink-deep);
}

.vote-status-msg {
  font-weight: 800;
  font-size: 1rem;
}

/* ============================================================
   SCREEN 7 & 8: RESULTS & PODIUM
   ============================================================ */
.results-panel {
  max-width: 920px;
}

.results-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
}

.results-doll-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.results-doll-frame {
  width: 100%;
  padding: 14px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #ffd9ec 100%);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-card);
}

.results-doll-frame .anime-doll-svg,
.results-doll-frame .anime-doll-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.judge-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-judge-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff77b7, #c4186d);
  border: 3px solid #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  box-shadow: 0 8px 18px rgba(196, 24, 109, 0.28);
}

.judge-header h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--pink-deep);
}

.rating-tier-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.86rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ff4d9e, #d81b78);
}

.rating-tier-pill.okay {
  background: linear-gradient(135deg, #b388ff, #8e5ce6);
}

.score-display-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5fa, #ffe0f0);
  border: 2.5px solid #ffffff;
  margin-bottom: 14px;
}

.score-big {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--pink-deep);
  line-height: 1;
}

.score-big small {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.score-stars {
  font-size: 1.8rem;
  letter-spacing: 3px;
}

.judge-comment-bubble {
  padding: 16px 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 2.5px solid var(--pink-soft);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(196, 24, 109, 0.08);
}

.judge-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe6f3;
  color: var(--pink-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-chip.tip {
  background: #f3e8ff;
  color: #6a2fb8;
}

.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Friends Podium Grid */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.podium-card {
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #fff0f8 100%);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.podium-card.winner {
  border-color: var(--pink-hot);
  background: linear-gradient(165deg, #fff9fc 0%, #ffd6eb 100%);
  box-shadow: 0 14px 32px rgba(255, 59, 147, 0.28);
}

.podium-rank {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pink-deep);
}

.podium-doll-wrap {
  width: 160px;
}

.podium-doll-wrap .anime-doll-svg,
.podium-doll-wrap .anime-doll-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.podium-score {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--pink-hot);
}

.podium-comment {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 700;
}

.mini-doll-preview {
  width: 190px;
  margin: 14px auto;
}

/* ============================================================
   SAVED LOOKS MODAL & TOAST
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(75, 29, 56, 0.45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 28px;
  background: #fff6fb;
  border: 3px solid #ffffff;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(75, 29, 56, 0.35);
}

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

.modal-header h2 {
  color: var(--pink-deep);
  font-weight: 900;
}

.close-modal-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ffd6ea;
  color: var(--pink-deep);
  font-weight: 900;
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: 20px;
  padding: 12px;
  background: #ffffff;
  border: 2px solid var(--pink-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gallery-item .anime-doll-svg,
.gallery-item .anime-doll-canvas {
  width: 130px;
  height: auto;
  display: block;
}

.mini-doll-preview .anime-doll-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item-meta {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pink-deep);
}

.gallery-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d9e, #c4186d);
  color: #ffffff;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 12px 28px rgba(196, 24, 109, 0.35);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 760px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .doll-stage-card {
    position: sticky;
    top: 66px;
    padding: 10px 12px;
    gap: 8px;
  }
  .doll-pedestal {
    min-height: 220px;
    max-height: 280px;
    padding: 4px;
  }
  .doll-mount {
    max-width: 170px;
  }
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mode-grid,
  .friends-split {
    grid-template-columns: 1fr;
  }
  .glass-panel {
    padding: 20px 18px;
  }
}

/* ============================================================
   DRESS TO IMPRESS (DTI) — RANK, TIMER, POSES & 3-TIER PODIUM
   ============================================================ */
.rank-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe0f0, #f4e6ff);
  border: 2px solid #ffffff;
  color: var(--pink-deep);
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(196, 24, 109, 0.12);
  white-space: nowrap;
}

.dti-timer-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dti-timer-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d9e, #d81b78);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.94rem;
  box-shadow: 0 6px 14px rgba(216, 27, 120, 0.25);
}

.dti-timer-pill.urgent {
  background: linear-gradient(135deg, #ff1744, #d50057);
  animation: timerUrgent 0.7s ease-in-out infinite;
}

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

.mini-time-btn {
  border: 2px solid #ffffff;
  background: #ffe6f3;
  color: var(--pink-deep);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.78rem;
  cursor: pointer;
}

.mini-time-btn:hover {
  background: #ffc8e4;
}

.dti-models-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f6ebff;
  color: #7c38b8;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Runway Crowd Floating Hearts */
.runway-crowd-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.crowd-heart {
  position: absolute;
  bottom: 24px;
  font-size: 1.5rem;
  animation: heartFloatUp 1.5s ease-out forwards;
}

@keyframes heartFloatUp {
  0% { transform: translateY(0) scale(0.6); opacity: 1; }
  100% { transform: translateY(-240px) scale(1.3); opacity: 0; }
}

/* DTI Runway Pose Controls */
.runway-pose-bar {
  position: relative;
  z-index: 5;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pose-bar-label {
  font-weight: 900;
  font-size: 0.92rem;
}

.pose-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pose-btn {
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, rgba(255, 119, 183, 0.85), rgba(216, 27, 120, 0.85));
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.pose-btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
}

/* Live DTI Doll Pose Animations */
.runway-doll-walker.pose-twirl {
  animation: dtiTwirl 0.9s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.runway-doll-walker.pose-heart {
  animation: dtiHeartPop 0.75s ease-in-out !important;
}
.runway-doll-walker.pose-royal {
  animation: dtiRoyalSway 1s ease-in-out !important;
}
.runway-doll-walker.pose-star {
  animation: dtiStarJump 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.runway-doll-walker.pose-diva {
  animation: dtiDivaStrut 0.9s ease-in-out !important;
}

@keyframes dtiTwirl {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.06) translateY(-10px); }
  100% { transform: rotateY(360deg) scale(1); }
}

@keyframes dtiHeartPop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.09) rotate(-4deg) translateY(-8px); }
  70% { transform: scale(1.06) rotate(4deg) translateY(-4px); }
}

@keyframes dtiRoyalSway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-5deg) translateY(6px) scale(0.98); }
  70% { transform: rotate(4deg) translateY(-6px) scale(1.04); }
}

@keyframes dtiStarJump {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-30px) scale(1.08); }
}

@keyframes dtiDivaStrut {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-14px) rotate(-4deg) scale(1.04); }
  75% { transform: translateX(14px) rotate(4deg) scale(1.04); }
}

/* Grand 3-Tier DTI Podium */
.podium-master-panel {
  position: relative;
  overflow: hidden;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -16px;
  border-radius: 3px;
  animation: confettiFall linear infinite;
  opacity: 0.9;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(720px) rotate(540deg); opacity: 0.1; }
}

.rank-reward-banner {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5aa4, #a742f5);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(196, 24, 109, 0.28);
}

.dti-podium-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  margin: 18px 0 20px;
}

.dti-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dti-podium-doll {
  width: 170px;
  margin-bottom: -10px;
  position: relative;
  z-index: 2;
}

.dti-podium-slot.place-1 .dti-podium-doll {
  width: 210px;
  animation: dollBreath 2.6s ease-in-out infinite;
}

.dti-podium-doll .anime-doll-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(196, 24, 109, 0.24));
}

.dti-pedestal-block {
  width: 100%;
  border-radius: 22px 22px 14px 14px;
  border: 3px solid #ffffff;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 12px 26px rgba(196, 24, 109, 0.2);
}

.dti-podium-slot.place-1 .dti-pedestal-block {
  min-height: 155px;
  background: linear-gradient(180deg, #ff77b7 0%, #e62380 100%);
  color: #ffffff;
}

.dti-podium-slot.place-2 .dti-pedestal-block {
  min-height: 120px;
  background: linear-gradient(180deg, #ffb6da 0%, #f065aa 100%);
  color: #ffffff;
}

.dti-podium-slot.place-3 .dti-pedestal-block {
  min-height: 98px;
  background: linear-gradient(180deg, #e5c6ff 0%, #b574ee 100%);
  color: #ffffff;
}

.podium-place-badge {
  font-size: 1.25rem;
  font-weight: 900;
}

.podium-model-name {
  font-weight: 900;
  font-size: 1rem;
}

.podium-model-score {
  font-weight: 900;
  font-size: 1.12rem;
  background: rgba(255, 255, 255, 0.24);
  padding: 3px 12px;
  border-radius: 999px;
}

.runner-up-strip {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.runner-up-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--pink-soft);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--text-dark);
}

.your-judge-card {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 2.5px solid #ffffff;
  box-shadow: var(--shadow-card);
}

@media (max-width: 760px) {
  .dti-podium-stage {
    grid-template-columns: 1fr;
  }
}

/* DTI Pattern Chips & Layer Toggle Bar */
.pattern-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pattern-chip {
  border: 2px solid var(--pink-soft);
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pattern-chip:hover {
  border-color: var(--pink-hot);
  background: #fff0f8;
}

.pattern-chip.active {
  background: linear-gradient(135deg, #ff5ea8, #e0217c);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 33, 124, 0.28);
}

.dti-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff2f9, #f5e9ff);
  border: 2px solid #ffffff;
  font-size: 0.84rem;
  color: var(--text-dark);
}

/* ============================================================
   PLAY WITH FRIENDS — STYLIST PROFILE PICTURE & EMOJI PICKER
   ============================================================ */
.stylist-profile-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 16px 0 22px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #ffeaf5 65%, #f6ebff 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 12px 28px rgba(214, 41, 127, 0.14);
}

.profile-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.profile-avatar-ring {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: linear-gradient(145deg, #ffd4ea, #f2ddff);
  box-shadow: 0 10px 24px rgba(214, 41, 127, 0.24), 0 0 0 3px var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-avatar-fallback {
  font-size: 2.8rem;
  line-height: 1;
}

.profile-emoji-corner {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--pink-mid);
  box-shadow: 0 4px 10px rgba(214, 41, 127, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.profile-preview-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-preview-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--pink-mid);
}

.profile-preview-badge strong {
  font-size: 1.02rem;
  color: var(--pink-deep);
  word-break: break-word;
}

.profile-controls-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stylist-profile-card .name-input-row {
  margin: 0;
  max-width: 100%;
}

.profile-picker-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emoji-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-choice-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid var(--pink-soft);
  background: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.emoji-choice-btn:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--pink-hot);
}

.emoji-choice-btn.active {
  border-color: var(--pink-hot);
  background: linear-gradient(135deg, #ffe3f2, #ffd1ea);
  box-shadow: 0 4px 12px rgba(255, 59, 147, 0.28);
  transform: scale(1.08);
}

.avatar-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.avatar-choice-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(214, 41, 127, 0.14), 0 0 0 1.5px var(--pink-soft);
  background: linear-gradient(135deg, #ffe4f3, #f3e4ff);
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.avatar-choice-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-choice-btn img.crop-face {
  object-position: center 16%;
}

.avatar-choice-btn:hover {
  transform: translateY(-2px) scale(1.06);
}

.avatar-choice-btn.active {
  box-shadow: 0 0 0 3px var(--pink-hot), 0 6px 14px rgba(255, 59, 147, 0.32);
  transform: scale(1.08);
}

.upload-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5ea8, #e0217c);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px rgba(224, 33, 124, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.upload-avatar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(224, 33, 124, 0.35);
}

.chip-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  border: 2px solid var(--pink-soft);
  flex-shrink: 0;
}

.podium-player-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.podium-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  border: 2px solid var(--pink-mid);
  box-shadow: 0 3px 8px rgba(214, 41, 127, 0.2);
}

@media (max-width: 680px) {
  .stylist-profile-card {
    grid-template-columns: 1fr;
  }
}
