/* Wizard container */
#wizard-screens {
  position: relative;
  overflow: hidden;
}

#wizard-screens.is-animating {
  transition: height 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wizard screens */
.wizard-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
}

.wizard-screen.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.wizard-screen.is-animating {
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.28s ease;
}

/* HUD */
#hud {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid #222;
  padding-bottom: 0.5rem;
}

/* Zone */
#zone-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; background: #111; }
#zone-flavor { font-style: italic; color: var(--muted); font-size: 0.9rem; }

/* Log */
#log { max-height: 30dvh; overflow-y: auto; }
#log-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
#log-list li { font-size: 0.9rem; padding: 0.4rem 0.6rem; background: var(--surface); border-radius: 3px; }

/* Player list */
#player-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
#player-list li { padding: 0.5rem 0.75rem; background: var(--surface); border-radius: 3px; display: flex; align-items: center; gap: 0.5rem; }
.list-sprite { width: 32px; height: 28px; object-fit: contain; flex-shrink: 0; }

/* Pokémon picker */
#picker { display: flex; flex-direction: column; gap: 0.6rem; }

#picker-filters { display: flex; gap: 0.5rem; }
#picker-filters select { flex: 1; padding: 0.4rem 0.5rem; border: 1px solid var(--border, #ccc); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 0.85rem; cursor: pointer; }

.picker-hint { font-size: 0.85rem; color: var(--muted); text-align: center; padding: 0.5rem 0; }

#picker-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.poke-card {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: border-color 0.15s;
  outline: none;
  text-align: center;
}
.poke-card:hover,
.poke-card:focus { border-color: #555; }
.poke-card.selected { border-color: var(--accent); }

.poke-img { width: 100%; max-width: 80px; height: 64px; object-fit: contain; }
.poke-name { font-size: 0.78rem; color: var(--text); font-weight: bold; line-height: 1.2; }
.poke-form { font-size: 0.68rem; color: var(--muted); font-style: italic; }
.poke-types { display: flex; flex-wrap: wrap; gap: 0.2rem; justify-content: center; }

.type-badge {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

/* Selected card (full-width, larger) */
#picker-selected-card .poke-card {
  flex-direction: row;
  align-items: center;
  padding: 0.6rem 0.75rem;
  gap: 0.75rem;
  text-align: left;
}
#picker-selected-card .poke-img { height: 72px; width: 72px; flex-shrink: 0; }
#picker-selected-card .poke-name { font-size: 1rem; }
#picker-selected-card .poke-types { justify-content: flex-start; }

/* Evolution chain */
.chain-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}
.chain-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.chain-img { width: 48px; height: 40px; object-fit: contain; opacity: 0.55; }
.chain-step.chain-selected .chain-img { opacity: 1; }
.chain-name { font-size: 0.65rem; color: var(--muted); }
.chain-step.chain-selected .chain-name { color: var(--accent); font-weight: bold; }
.chain-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #444;
  font-size: 1rem;
  flex-shrink: 0;
}
.chain-level { font-size: 0.6rem; color: var(--muted); }

.picker-evo-note {
  font-size: 0.8rem;
  color: var(--accent);
  text-align: center;
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

/* Identity summary on join screen */
#identity-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.summary-sprite { width: 36px; height: 32px; object-fit: contain; }

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid #333;
  font-weight: normal;
  font-size: 0.85rem;
}

/* Step indicator */
#step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.1rem 0 0.4rem;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccc;
  border: 1px solid #bbb;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.step-dot.done {
  background: #999;
  border-color: #999;
}

.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* Screen title */
.screen-title {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 0.1rem;
}

/* Host settings */
#host-settings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: 4px;
}

#host-settings::before {
  content: 'Game Settings';
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

#host-settings label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

#host-settings select,
#host-settings input[type="number"] {
  width: auto;
  min-width: 7rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  flex-shrink: 0;
}

/* Wizard nav */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.wizard-nav button {
  width: auto;
  flex-shrink: 0;
  padding: 0.75rem 1.4rem;
}
