* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ------------------ GAME LAYOUT ------------------ */

#game {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  overflow: hidden;
}

/* ------------------ WINDOW AREA ------------------ */

#window {
  position: relative;
  width: 100%;
  height: 100%;
  background: #111;
  overflow: hidden;
  border: 1px solid #333;
  transition: background-color 0.6s ease;
}

#window.lit {
  background-color: #161616;
}

/* BACKDROP */
#backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(#222, #111);
  z-index: 1;
}

/* ------------------ MANNEQUINS ------------------ */

#mannequins {
  position: absolute;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 2;
}

.mannequin {
  width: clamp(70px, 6vw, 110px);
  height: clamp(180px, 22vh, 260px);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.mannequin:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.8));
}

.mannequin.selected {
  outline: 2px solid #d3b327;
  outline-offset: 4px;
}

/* ------------------ PROPS ------------------ */

#props {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 3;
}

.prop {
  width: 80px;
  height: 40px;
  background: #333;
}

/* ------------------ GLASS OVERLAY ------------------ */

#glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0)
  );
  pointer-events: none;
  z-index: 4;
}

/* ------------------ LIGHTING REVEAL ------------------ */

#window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.22),
    rgba(0,0,0,0.75)
  );
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 5;
}

#window.lit::after {
  opacity: 1;
}

/* ------------------ UI PANEL ------------------ */

#ui {
  background: #0a0a0a;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #222;
}

#theme {
  line-height: 1.4;
}

/* ------------------ CONTROLS ------------------ */

.picker {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}

button {
  padding: 10px 14px;
  background: #141414;
  color: #fff;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

button:hover {
  background: #1f1f1f;
}

/* ------------------ RESULT OVERLAY ------------------ */

#result {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  z-index: 10;
}
