@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Montserrat:wght@400;700&display=swap');

/* Background Leopard Print Pattern in pink + silver */
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  background: url('images/leopard-pink-silver.png') repeat;
  background-size: 250px 250px;
  color: #f8f0f8;
  overflow-x: hidden;
  user-select: none;
}

/* Window Frame */
.window-frame {
  max-width: 1200px;
  margin: 40px auto;
  background: rgba(255 192 203 / 0.15);
  border: 2px solid #d7b8d7;
  border-radius: 14px;
  box-shadow: 0 0 15px 6px rgba(255 192 203 / 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* Title Bar */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #ff96d6, #c1a3f5);
  padding: 10px 20px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: inset 0 -2px 6px #d7b8d7;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1.2px;
  user-select: none;
}

.controls {
  display: flex;
  gap: 12px;
}

.controls .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 0 6px 1px rgba(255 255 255 / 0.6);
  transition: transform 0.2s ease;
}

.controls .close {
  background: #ff5f7e;
}
.controls .minimize {
  background: #ffd36e;
}
.controls .maximize {
  background: #6effe0;
}

.controls .dot:hover {
  transform: scale(1.3);
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #c191e8, #fbb2d1);
  color: #330033;
  padding: 8px 20px;
  font-weight: 600;
  border-bottom: 2px solid #fba4d8;
  user-select: none;
}

.top-bar .tab {
  padding: 6px 16px;
  border-radius: 24px 24px 0 0;
  background: #f98fc0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.top-bar .tab.selected {
  background: #fce6f1;
  color: #b355b9;
  font-weight: 700;
  box-shadow: 0 2px 10px #fbc2de;
}

.spacer {
  flex-grow: 1;
}

.top-bar .label {
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Content Layout */
.content {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* Categories Buttons */
.categories {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-btn {
  background: #f3a8e7;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 600;
  color: #400040;
  cursor: pointer;
  box-shadow: 0 0 8px #ffb3d7;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
}

.category-btn:hover {
  background: #d35fc2;
  color: #fff;
  box-shadow: 0 0 12px #ff70b4;
}

.category-btn:focus {
  outline: 2px solid #ff99cc;
}

/* Main area split */
.main-area {
  display: flex;
  gap: 20px;
  flex-grow: 1;
}

/* Clothes panel */
.clothes-panel {
  flex-basis: 60%;
  background: rgba(255 192 203 / 0.35);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 0 25px #ff9cce;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Clothing category panel (scrollable) */
.clothing-category {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
  user-select: none;
}

/* Scrollbar style */
.clothing-category::-webkit-scrollbar {
  width: 10px;
}

.clothing-category::-webkit-scrollbar-track {
  background: rgba(255 192 203 / 0.15);
  border-radius: 20px;
}

.clothing-category::-webkit-scrollbar-thumb {
  background: #ff5fc2;
  border-radius: 20px;
}

/* Individual clothing card */
.clothing-card {
  position: relative;
  width: 140px;
  background: linear-gradient(145deg, #ffb6d7, #fdb9f3);
  border-radius: 18px;
  box-shadow: 0 0 12px #ff7ecd;
  cursor: grab;
  text-align: center;
  padding: 10px 8px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  user-select: none;
}

.clothing-card:active {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff8bde;
}

.clothing-card img {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 6px #ff9fe6;
  transition: filter 0.3s ease;
}

.clothing-card:hover img {
  filter: drop-shadow(0 0 6px #ff9be4);
}

/* Label text below image */
.label-text {
  margin-top: 6px;
  font-weight: 600;
  color: #6d0a6d;
  font-size: 1rem;
  user-select: text;
}

/* Try Me button on each card */
.try-btn {
  margin-top: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  background: linear-gradient(45deg, #d75fc2, #ff6fc2);
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 0 12px #ff6fc2;
  transition: background 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.try-btn:hover {
  background: linear-gradient(45deg, #ff8fd7, #ff4fcf);
  transform: scale(1.1);
}

/* Action bar buttons */
.action-bar {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.action-btn {
  padding: 14px 24px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(90deg, #c06fc2, #e29ed9);
  border: none;
  border-radius: 28px;
  box-shadow: 0 0 18px #ea7ee4;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.action-btn:hover {
  background: linear-gradient(90deg, #ff9fe6, #e4a0f7);
  box-shadow: 0 0 28px #ff9fe6;
}

/* Doll display */
.doll-display {
  flex-basis: 38%;
  background: rgba(255 192 203 / 0.3);
  border-radius: 20px;
  box-shadow: 0 0 20px #f794f7;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.doll-window {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, #ffc6f5 0%, #ffa7d6 100%);
  border-radius: 20px;
  box-shadow: 0 0 28px #fca1ea inset;
  padding: 12px;
}

.label-small {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #6b086b;
  margin-bottom: 12px;
  font-size: 1.2rem;
  user-select: text;
}

.doll-wrapper {
  position: relative;
  width: 250px;
  height: 480px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 0 40px #ffa1d1 inset;
  overflow: hidden;
}

#doll {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 480px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* Outfit pieces layered on top */
#layered-outfit img.outfit-piece {
  position: absolute;
  width: 240px;
  top: 10px;
  left: 5px;
  pointer
