:root {
  --page-bg: #cfe9f8;
  --panel-bg: rgba(255, 252, 247, 0.95);
  --panel-line: rgba(35, 27, 19, 0.08);
  --panel-shadow: 0 24px 60px rgba(55, 34, 18, 0.14);
  --text: #6b0e2b;
  --muted: rgba(107, 14, 43, 0.68);
  --soft: rgba(107, 14, 43, 0.05);
  --strong: rgba(107, 14, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Host Grotesk", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  transition: background-color 240ms ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar {
  position: absolute;
  top: 34px;
  left: 38px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 32px;
}

.home-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(420px, 40%) 1fr;
  gap: 36px;
  min-height: min(calc(100vh - 92px), 600px);
  max-height: 600px;
  align-items: stretch;
}

.left-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  padding: 60px;
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff4e00 #ffffff;
}

.left-stage::-webkit-scrollbar {
  width: 12px;
}

.left-stage::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 0;
}

.left-stage::-webkit-scrollbar-thumb {
  background: #ff4e00;
  border: 2px solid #ffffff;
  border-radius: 0;
}

.left-stage::-webkit-scrollbar-thumb:hover {
  background: #e74700;
}

.copy-block {
  margin-bottom: 28px;
}

.results-kicker {
  margin: 0 0 14px;
  color: rgba(107, 14, 43, 0.5);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.step-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.step-description,
.field-label,
.person-note,
.result-meta,
.results-summary {
  color: var(--muted);
  line-height: 1.5;
}

.step-description {
  margin: 18px 0 0;
  max-width: 36ch;
  font-size: 1rem;
}

.wizard-form {
  min-height: 220px;
}

.wizard-form.is-count-mode {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 1;
  min-height: 0;
}

.wizard-form.is-count-mode .wizard-body {
  width: 100%;
  min-height: 100%;
}

.wizard-form.is-avatar-mode {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wizard-form.is-avatar-mode .wizard-body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wizard-form.is-outfit-mode {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wizard-form.is-outfit-mode .wizard-body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wizard-form.is-action-mode {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 1;
  min-height: 0;
}

.wizard-form.is-action-mode .wizard-body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wizard-form.is-angle-mode {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 1;
  min-height: 0;
}

.wizard-form.is-angle-mode .wizard-body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wizard-form.is-loading-mode {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 1;
  min-height: 0;
}

.wizard-form.is-loading-mode .wizard-body {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-body {
  display: grid;
  gap: 16px;
}

.loading-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.success-step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  min-height: 100%;
  text-align: center;
}

.loading-step-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 2.45vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.success-step-text {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 2.45vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.success-reset-button {
  min-width: 220px;
}

.loading-step-dots {
  display: inline-flex;
  min-width: 1.8em;
  justify-content: flex-start;
}

.loading-step-dots span {
  opacity: 0.2;
  animation: loading-dots 1.2s infinite ease-in-out;
}

.loading-step-dots span:nth-child(2) {
  animation-delay: 160ms;
}

.loading-step-dots span:nth-child(3) {
  animation-delay: 320ms;
}

.count-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  text-align: center;
}

.count-question {
  margin: 0;
  color: var(--text);
  font-family: "Host Grotesk", "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
}

.count-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: auto;
  margin-bottom: auto;
}

.count-option {
  width: 57px;
  height: 49px;
  border: 0;
  border-radius: 12px;
  background: #f8f5d2;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
}

.count-option:hover {
  transform: translateY(-1px);
}

.count-option.is-selected {
  background: #ff4e00;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 78, 0, 0.2);
}

.avatar-step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: center;
  gap: 24px;
}

.outfit-step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: center;
  gap: 24px;
}

.action-step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: center;
  gap: 28px;
}

.angle-step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: center;
  gap: 28px;
}

.avatar-step-copy {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

.outfit-step-copy {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

.action-step-copy {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

.angle-step-copy {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

.avatar-step-title {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
}

.outfit-step-title {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
}

.action-step-title {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
}

.angle-step-title {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
}

.avatar-step-subtitle {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.outfit-step-subtitle {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.action-step-subtitle {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.angle-step-subtitle {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.action-step-body {
  width: min(100%, 100%);
  display: grid;
  gap: 18px;
  margin-top: auto;
  margin-bottom: auto;
}

.angle-step-body {
  width: min(100%, 100%);
  display: grid;
  gap: 18px;
  margin-top: auto;
  margin-bottom: auto;
}

.action-select-shell {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(107, 14, 43, 0.08);
  text-align: left;
}

.angle-select-shell {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(107, 14, 43, 0.08);
  text-align: left;
}

.action-select {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
}

.angle-select {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
}

.action-preview {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 245, 210, 0.7);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.angle-preview {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 245, 210, 0.7);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.avatar-grid-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  max-height: 338px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ff4e00 rgba(255, 255, 255, 0);
}

.outfit-grid-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  max-height: 338px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ff4e00 rgba(255, 255, 255, 0);
}

.avatar-grid-shell::-webkit-scrollbar {
  width: 8px;
}

.outfit-grid-shell::-webkit-scrollbar {
  width: 8px;
}

.avatar-grid-shell::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0);
}

.outfit-grid-shell::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0);
}

.avatar-grid-shell::-webkit-scrollbar-thumb {
  background: #ff4e00;
  border-radius: 0;
}

.outfit-grid-shell::-webkit-scrollbar-thumb {
  background: #ff4e00;
  border-radius: 0;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 38px;
  padding-bottom: 20px;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 38px;
  padding-bottom: 20px;
}

.avatar-grid-fade {
  display: none;
}

.outfit-grid-fade {
  display: none;
}

.avatar-grid-shell.has-overflow .avatar-grid-fade {
  display: block;
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  margin-top: -88px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0) 0%, rgba(255, 252, 247, 0.82) 58%, rgba(255, 252, 247, 0.98) 100%);
}

.outfit-grid-shell.has-overflow .outfit-grid-fade {
  display: block;
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  margin-top: -88px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0) 0%, rgba(255, 252, 247, 0.82) 58%, rgba(255, 252, 247, 0.98) 100%);
}

.avatar-empty {
  margin: auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.avatar-card {
  border: 0;
  padding: 8px 8px 10px;
  background: transparent;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  border-radius: 24px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.outfit-card {
  border: 0;
  padding: 8px 8px 10px;
  background: transparent;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  border-radius: 24px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.avatar-card:hover {
  transform: translateY(-1px);
}

.outfit-card:hover {
  transform: translateY(-1px);
}

.avatar-card.selected,
.avatar-card.is-selected {
  background: rgba(255, 78, 0, 0.08);
}

.outfit-card.selected,
.outfit-card.is-selected {
  background: rgba(255, 78, 0, 0.08);
}

.avatar-visual {
  position: relative;
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: #f8f5d2;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.outfit-visual {
  position: relative;
  display: block;
  width: 110px;
  height: 130px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f5d2;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.avatar-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.outfit-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.avatar-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 78, 0, 0.9);
  opacity: 0;
  transition: opacity 160ms ease;
}

.outfit-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 78, 0, 0.9);
  opacity: 0;
  transition: opacity 160ms ease;
}

.avatar-check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #ff4e00;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.outfit-check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #ff4e00;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.avatar-card.selected .avatar-visual,
.avatar-card.is-selected .avatar-visual {
  background: #ff4e00;
  box-shadow: 0 10px 24px rgba(255, 78, 0, 0.18);
}

.outfit-card.selected .outfit-visual,
.outfit-card.is-selected .outfit-visual {
  background: #ff4e00;
  box-shadow: 0 10px 24px rgba(255, 78, 0, 0.18);
}

.avatar-card.selected .avatar-check,
.avatar-card.is-selected .avatar-check {
  opacity: 1;
}

.outfit-card.selected .outfit-check,
.outfit-card.is-selected .outfit-check {
  opacity: 1;
}

.avatar-name {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.avatar-card.selected .avatar-name,
.avatar-card.is-selected .avatar-name {
  color: #ff4e00;
}

.person-grid,
.mini-grid,
.results-list {
  display: grid;
  gap: 12px;
}

.person-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card,
.field-shell,
.results-panel,
.result-card {
  border: 1px solid var(--panel-line);
  background: rgba(248, 244, 238, 0.92);
  box-shadow: 0 14px 30px rgba(107, 14, 43, 0.08);
}

.person-card {
  min-height: 132px;
  padding: 14px 12px;
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.person-card:hover {
  transform: translateY(-1px);
}

.person-card.is-selected {
  border-color: var(--strong);
  background: rgba(107, 14, 43, 0.06);
}

.person-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(107, 14, 43, 0.14);
  font-size: 1rem;
}

.person-name {
  margin: 18px 0 6px;
  color: var(--text);
  font-size: 1rem;
}

.person-note {
  margin: 0;
  font-size: 0.86rem;
}

.field-shell {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
}

.field-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-shell input,
.field-shell select,
.field-shell textarea {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.field-shell input::placeholder,
.field-shell textarea::placeholder {
  color: rgba(107, 14, 43, 0.36);
}

.field-shell textarea {
  min-height: 88px;
  resize: vertical;
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-list {
  display: grid;
  gap: 10px;
}

.reference-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(107, 14, 43, 0.06);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.reference-item.is-selected {
  border-color: var(--strong);
  background: rgba(107, 14, 43, 0.06);
}

.reference-item img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.reference-name {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.reference-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.wizard-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 22px;
  padding-top: 22px;
  padding-bottom: 2px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0) 0%, rgba(255, 252, 247, 0.86) 24%, rgba(255, 252, 247, 0.98) 100%);
}

.wizard-footer-start {
  justify-content: flex-start;
}

.wizard-footer-end {
  justify-content: flex-end;
}

.wizard-footer-between {
  justify-content: space-between;
}

.wizard-footer-center {
  justify-content: center;
}

.generation-status {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

@keyframes loading-dots {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }

  40% {
    opacity: 1;
  }
}

.nav-button {
  width: 156px;
  height: 52px;
  border: 0;
  border-radius: 5px;
  padding: 10px 15px;
  background: #f8f5d2;
  color: var(--text);
  font-size: 0.96rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-button[disabled] {
  opacity: 0.34;
  cursor: default;
}

.nav-button-primary {
  background: #ff4e00;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
}

.results-panel {
  margin-top: 26px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(250, 247, 242, 0.96);
}

.results-panel.is-success-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px 24px;
  text-align: center;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.results-summary {
  margin: 0;
  font-size: 0.88rem;
}

.results-panel.is-success-only .results-head {
  margin: 0;
  justify-content: center;
}

.results-panel.is-success-only .results-summary {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.results-panel.is-success-only .results-list {
  display: none;
}

.results-list {
  grid-template-columns: 1fr;
}

.result-card {
  overflow: hidden;
  border-radius: 20px;
}

.result-card.is-loading {
  opacity: 0.72;
}

.result-image {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 5, 5, 0.4);
}

.result-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.result-body {
  padding: 14px;
}

.result-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.result-meta {
  margin: 8px 0 0;
  font-size: 0.86rem;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.result-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.feature-stage {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  max-height: 600px;
}

.feature-frame {
  width: min(100%, 760px);
  height: 100%;
  max-height: 600px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.featured-image-shell {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: rgba(255, 249, 241, 0.18);
  box-shadow: 0 32px 70px rgba(69, 41, 19, 0.18);
  min-height: 0;
}

.featured-image-shell.is-generated::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(12, 8, 5, 0) 0%, rgba(12, 8, 5, 0.3) 100%);
  pointer-events: none;
}

.featured-image-shell.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.featured-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-actions {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.feature-download-button {
  min-width: 156px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: rgba(255, 78, 0, 0.96);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(255, 78, 0, 0.28);
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(255, 78, 0, 0.34);
}

.featured-empty {
  color: rgba(107, 14, 43, 0.8);
  font-size: 1rem;
  text-align: center;
}

.featured-caption {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--text);
}

.featured-artist {
  margin: 0;
  font-family: "Fascinate Inline", serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  vertical-align: middle;
  color: var(--text);
}

.featured-caption-copy {
  min-width: 0;
  text-align: right;
}

.featured-title,
.featured-year {
  margin: 0;
  font-family: "Host Grotesk", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
  vertical-align: middle;
}

.featured-title {
  color: var(--text);
}

.featured-year {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.92);
  color: #fff9f1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.confetti-piece {
  position: fixed;
  width: 12px;
  height: 18px;
  border-radius: 3px;
  opacity: 0;
  animation-name: confetti-burst;
  animation-timing-function: cubic-bezier(0.18, 0.8, 0.22, 1);
  animation-fill-mode: forwards;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.confetti-piece.is-circle {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), var(--confetti-drop), 0) rotate(var(--confetti-rotate)) scale(1);
  }
}

@media (max-width: 980px) {
  .page-shell {
    position: static;
    padding: 22px 20px 24px;
    display: block;
  }

  .topbar {
    position: static;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    max-height: none;
  }

  .left-stage {
    max-height: none;
    padding: 32px;
  }

  .feature-frame {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .feature-stage {
    max-height: none;
  }

  .featured-actions {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 680px) {
  .person-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .count-options {
    gap: 18px;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .outfit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .wizard-footer,
  .results-head {
    flex-direction: column;
    align-items: start;
  }

  .featured-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-caption-copy {
    text-align: left;
  }

  .featured-title,
  .featured-year {
    text-align: left;
  }
}
