/* ============ V3 — Character Select + new room themes ============ */

.char-select {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 60px;
  background:
    radial-gradient(ellipse at 50% 30%, #1a1410 0%, #0a0908 70%),
    #0a0908;
  border: 3px solid var(--gold);
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.9),
    0 0 0 1px var(--gold-deep),
    0 0 50px rgba(212,168,75,0.25);
  max-width: 920px;
  width: 92%;
}

.char-select-header { text-align: center; }
.char-select-eyebrow {
  font-family: 'Limelight', serif;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.5em;
  margin-bottom: 8px;
}
.char-select-title {
  font-family: 'Limelight', serif;
  color: #f4ecd0;
  font-size: 38px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(212,168,75,0.3);
}
.char-select-divider {
  display: flex; align-items: center; justify-content: center;
  margin-top: 12px;
  color: var(--gold);
  font-size: 14px;
}
.char-select-divider::before,
.char-select-divider::after {
  content: '';
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 16px;
}

.char-select-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.char-arrow {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.char-arrow:hover {
  background: var(--gold);
  color: #0a0908;
  transform: scale(1.08);
}

.char-card-stack {
  position: relative;
  flex: 1;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-card {
  position: absolute;
  width: 200px;
  height: 260px;
  background: linear-gradient(180deg, #1a1410 0%, #0a0908 100%);
  border: 1.5px solid var(--gold-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.6),
    0 8px 24px rgba(0,0,0,0.5);
}

.char-card.center {
  transform: translateX(0) scale(1);
  border-color: var(--gold);
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.6),
    0 0 0 1px var(--gold),
    0 12px 30px rgba(0,0,0,0.7),
    0 0 24px rgba(212,168,75,0.3);
  z-index: 3;
  opacity: 1;
}
.char-card.left {
  transform: translateX(-220px) scale(0.78) rotateY(20deg);
  z-index: 2;
  opacity: 0.55;
  filter: brightness(0.6);
}
.char-card.right {
  transform: translateX(220px) scale(0.78) rotateY(-20deg);
  z-index: 2;
  opacity: 0.55;
  filter: brightness(0.6);
}
.char-card.far {
  transform: translateX(0) scale(0.4);
  opacity: 0;
  pointer-events: none;
}

.char-card-frame {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-deep);
  pointer-events: none;
}
.char-card-frame::before,
.char-card-frame::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
}
.char-card-frame::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.char-card-frame::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.char-portrait {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 0 6px;
  transform: scale(2.2);
  transform-origin: center bottom;
}

.char-card-name {
  font-family: 'Limelight', serif;
  color: #f4ecd0;
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-top: 8px;
  text-align: center;
}
.char-card-title {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
  font-style: italic;
}

.char-bio {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.char-bio-blurb {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #d8c896;
  font-size: 16px;
  letter-spacing: 0.04em;
  min-height: 24px;
}
.char-bio-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.char-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.char-stat-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.char-stat-pips {
  display: flex;
  gap: 3px;
  color: #3a342a;
  font-size: 9px;
}
.pip.lit { color: var(--gold); text-shadow: 0 0 4px rgba(212,168,75,0.6); }

.char-select-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}
.char-back {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.char-back:hover { opacity: 1; }
.char-confirm {
  font-family: 'Limelight', serif;
  color: #f4ecd0;
  font-size: 14px;
  letter-spacing: 0.3em;
  cursor: pointer;
  pointer-events: auto;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.5; } }

/* ============ Room theme tints ============ */
.room.theme-boiler { background: radial-gradient(ellipse at 50% 80%, #2a1a10 0%, #0a0908 75%); }
.room.theme-penthouse { background: radial-gradient(ellipse at 50% 20%, #1a1820 0%, #0a0908 75%); }
.room.theme-rooftop { background: radial-gradient(ellipse at 50% 70%, #18141c 0%, #0a0908 80%); }
.room.theme-marquee { background: radial-gradient(ellipse at 50% 50%, #2a1c0a 0%, #0a0908 75%); }
.room.theme-backstage { background: radial-gradient(ellipse at 50% 50%, #14100c 0%, #0a0908 75%); }
.room.theme-mirrors { background: radial-gradient(ellipse at 50% 50%, #1c1c1c 0%, #0a0908 75%); }

/* steam jets */
.steam-jet {
  position: absolute;
  width: 24px;
  bottom: 0;
  background: linear-gradient(0deg, rgba(232,216,176,0.0), rgba(232,216,176,0.18) 40%, rgba(232,216,176,0.05) 100%);
  pointer-events: none;
  filter: blur(1px);
}

/* wind streaks */
.wind-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,75,0.4), transparent);
  pointer-events: none;
}

@media (max-width: 720px) {
  .char-select { padding: 24px 16px; gap: 16px; }
  .char-select-title { font-size: 22px; letter-spacing: 0.08em; }
  .char-select-eyebrow { font-size: 10px; }
  .char-card { width: 150px; height: 200px; padding: 12px 8px; }
  .char-card-stack { height: 220px; }
  .char-card.left { transform: translateX(-150px) scale(0.7); }
  .char-card.right { transform: translateX(150px) scale(0.7); }
  .char-portrait { transform: scale(1.6); }
  .char-card-name { font-size: 13px; }
  .char-card-title { font-size: 8px; }
  .char-bio-blurb { font-size: 13px; }
  .char-bio-stats { gap: 16px; }
  .char-stat-label { font-size: 8px; }
}
