/* Mix Match Board — mockups IHM (mobile-first) */

:root {
  --wood-deep: #2a1a10;
  --ink: #1a1410;
  --paper: #fffdf8;
  --frame: #ffffff;
  --border-soft: rgba(0, 0, 0, 0.3);
  --panel: rgba(22, 14, 8, 0.62);
  --panel-border: rgba(232, 200, 140, 0.22);
  --muted: rgba(255, 245, 230, 0.72);
  --like: #e11d48;
  --shop: #c4a574;
  --radius: 12px;
  --font: "Outfit", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 430px;
  --nav-h: 4.25rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  background-color: var(--wood-deep);
  background-image:
    linear-gradient(
      180deg,
      rgba(20, 12, 6, 0.28) 0%,
      rgba(80, 50, 22, 0.12) 40%,
      rgba(20, 12, 6, 0.35) 100%
    ),
    url("../img/bg-wood.png");
  background-repeat: repeat;
  background-size: 280px 280px;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--paper);
  background: transparent;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

/* App shell = phone width by default */
.app {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 0.85rem calc(var(--nav-h) + var(--safe-bottom) + 0.75rem);
}

@media (min-width: 768px) {
  :root {
    --max: 720px;
  }

  .app {
    padding: 1rem 1.25rem calc(var(--nav-h) + 1rem);
  }

  html {
    background-size: 420px 420px;
    background-attachment: fixed;
  }
}

@media (min-width: 1100px) {
  :root {
    --max: 920px;
  }
}

/* Top bar — mobile stack */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.topbar .search {
  flex: 1 1 100%;
  order: 3;
  width: 100%;
  max-width: none;
}

@media (min-width: 640px) {
  .topbar .search {
    flex: 1 1 auto;
    order: 0;
    max-width: 22rem;
  }
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span {
  font-weight: 400;
  opacity: 0.75;
}

.search {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: none;
  font-size: 0.95rem;
}

.search::placeholder {
  color: var(--muted);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--paper);
  cursor: pointer;
  font-size: 1rem;
}

/* Bottom nav — thumb-friendly */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  min-height: var(--nav-h);
  padding: 0.4rem 0.35rem calc(0.4rem + var(--safe-bottom));
  background: rgba(22, 14, 8, 0.96);
  border-top: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.bottom-nav a {
  flex: 1;
  max-width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  font-size: 0.62rem;
  opacity: 0.65;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.bottom-nav .nav-ico {
  font-size: 1.2rem;
  line-height: 1;
}

@media (min-width: 480px) {
  .bottom-nav a {
    font-size: 0.68rem;
    max-width: 6.5rem;
  }
}

/* Panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  backdrop-filter: blur(6px);
}

.panel + .panel {
  margin-top: 0.75rem;
}

.panel-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Chips — horizontal scroll on mobile */
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips .chip {
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .chips {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
}

/* Color swatches */
.swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.swatches::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .swatches {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.swatch.active {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.swatch .dot {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Feed grid — évite les artefacts des CSS columns (barres / fond coupé) */
.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.pin {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fffdf8;
  color: #1a1410;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

@media (min-width: 640px) {
  .pin {
    border-radius: 14px;
  }
}

.pin-visual {
  position: relative;
  background: #f4f1ec;
}

.pin-collage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  min-height: 150px;
  background: #e8e2d8;
}

@media (min-width: 640px) {
  .pin-collage {
    min-height: 210px;
  }
}

.pin-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4f1ec;
}

.pin-collage img:first-child {
  grid-row: 1 / span 2;
}

.pin-body {
  padding: 0.55rem 0.65rem 0.7rem;
  background: #fffdf8;
}

.pin-body h2 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  line-height: 1.25;
  color: #1a1410;
  font-weight: 600;
}

@media (min-width: 640px) {
  .pin-body h2 {
    font-size: 0.95rem;
  }
}

.pin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #5c534a;
}

.pin-meta .likes {
  color: #be123c;
  font-weight: 600;
}

/* Product grid — 1 col mobile */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 3px solid var(--frame);
  background: transparent;
}

@media (min-width: 640px) {
  .card {
    border-width: 4px;
  }
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.95);
  color: #52525b;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vote {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.vote button {
  border: none;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 0.25rem;
  min-width: 2rem;
  min-height: 2rem;
}

.vote button.is-like {
  color: var(--like);
}

.btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--shop);
  color: #1a1410;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.badge-shop {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  background: rgba(17, 17, 17, 0.82);
  color: var(--shop);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-sponsored {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #8a8278;
}

/* Mix-match detail */
.tableau {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tableau-head {
  padding: 0.9rem 0.9rem 0.65rem;
}

.tableau-head h1 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.tableau-head .by {
  margin: 0;
  font-size: 0.8rem;
  color: #6b635a;
}

.tableau-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.9rem;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f7f4ef;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.5rem;
}

.action.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.action.liked {
  color: var(--like);
  border-color: rgba(225, 29, 72, 0.35);
  background: #fff1f4;
}

.pieces {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  padding: 0 0.9rem 0.9rem;
}

@media (min-width: 640px) {
  .pieces {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    padding: 0 1rem 1rem;
  }
}

.piece {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.piece-media {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
}

.piece-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.piece-body {
  padding: 0.5rem 0.55rem 0.65rem;
}

.piece-body strong {
  display: block;
  font-size: 0.75rem;
}

.piece-body .cat {
  display: block;
  font-size: 0.68rem;
  color: #6b635a;
  margin-bottom: 0.35rem;
}

/* Create slots */
.outfit {
  display: grid;
  gap: 0.65rem;
}

.slot {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 0.55rem;
  min-height: 4.25rem;
}

.slot .btn-shop {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 480px) {
  .slot {
    grid-template-columns: 5.5rem 1fr auto;
  }

  .slot .btn-shop {
    grid-column: auto;
  }
}

.slot.filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.slot-thumb {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.25rem;
}

.slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slot-meta strong {
  display: block;
  font-size: 0.9rem;
}

.slot-meta span {
  font-size: 0.75rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.75rem;
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  margin-top: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--panel-border);
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  min-height: 2.5rem;
}

/* Collection */
.shelf {
  display: grid;
  gap: 0.65rem;
}

.shelf-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  min-height: 4.5rem;
}

.shelf-row img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.shelf-row strong {
  display: block;
  font-size: 0.9rem;
}

.shelf-row span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Hub index */
.hub {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}

@media (min-width: 640px) {
  .hub {
    max-width: 540px;
    padding: 2.5rem 1.25rem;
  }
}

.hub h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.hub .lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.vision {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.vision strong {
  color: var(--paper);
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hub-list a {
  display: block;
  padding: 0.9rem 0.95rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.hub-list a strong {
  display: block;
  margin-bottom: 0.15rem;
}

.hub-list a span {
  font-size: 0.8rem;
  color: var(--muted);
}

.page-title {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* —— Landing (mobile-first) —— */
.landing-body {
  min-height: 100vh;
}

.landing {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 1rem 1rem calc(1.5rem + var(--safe-bottom));
}

.landing-hero {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.landing-brand {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 11vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.landing-copy h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 245, 230, 0.95);
}

.landing-tag {
  margin: 0 0 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.signup {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: rgba(18, 12, 8, 0.55);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.signup label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.signup input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  outline: none;
}

.signup input:focus {
  border-color: rgba(232, 200, 140, 0.55);
}

.signup input::placeholder {
  color: rgba(255, 245, 230, 0.4);
}

.btn-signup {
  margin-top: 0.15rem;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.9rem 1rem;
}

.signup-alt {
  margin: 0.1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.signup-alt a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-alt button {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

a.chip {
  display: inline-block;
}

.landing-shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 340px;
  padding: 0.5rem 0 0.25rem;
}

.phone {
  margin: 0;
  width: 42vw;
  max-width: 168px;
  background: #1a1410;
  border: 3px solid rgba(255, 245, 230, 0.35);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.phone figcaption {
  margin: 0;
  padding: 0.45rem 0.6rem 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 245, 230, 0.65);
}

.phone-screen {
  margin: 0.25rem 0.45rem 0.55rem;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f1ec;
  color: #1a1410;
  min-height: 280px;
  padding: 0.45rem;
}

.phone-back {
  transform: translate(14%, 10%) rotate(-7deg);
  opacity: 0.95;
  z-index: 1;
}

.phone-front {
  transform: translate(-10%, 0) rotate(4deg);
  z-index: 2;
  width: 46vw;
  max-width: 184px;
}

.shot-feed {
  display: grid;
  gap: 0.45rem;
}

.shot-pin {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.shot-pin p {
  margin: 0;
  padding: 0.35rem 0.45rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.shot-collage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 88px;
  background: #e8e2d8;
}

.shot-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.shot-collage img:first-child {
  grid-row: 1 / span 2;
}

.shot-create {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.shot-title {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.shot-slot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  font-size: 0.68rem;
  color: #6b635a;
  background: rgba(255, 255, 255, 0.7);
}

.shot-slot.filled {
  border-style: solid;
  color: #1a1410;
  font-weight: 600;
}

.shot-slot img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.shot-cta {
  margin-top: 0.25rem;
  text-align: center;
  background: #1a1410;
  color: #fffdf8;
  border-radius: 999px;
  padding: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
}

/* Landing desktop enhancement */
@media (min-width: 900px) {
  .landing {
    max-width: 1100px;
    padding: 2rem 1.5rem 2.5rem;
  }

  .landing-hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: calc(100vh - 4rem);
  }

  .landing-shots {
    order: 2;
    min-height: 460px;
  }

  .landing-copy {
    order: 1;
  }

  .landing-brand {
    font-size: 3.4rem;
  }

  .signup {
    max-width: 22rem;
  }

  .phone {
    width: 220px;
    max-width: none;
    border-radius: 28px;
  }

  .phone-front {
    width: 240px;
  }

  .phone-screen {
    min-height: 340px;
    margin: 0.35rem 0.55rem 0.65rem;
    padding: 0.55rem;
  }

  .shot-collage {
    height: 110px;
  }

  .phone-back {
    transform: translate(18%, 8%) rotate(-8deg);
  }

  .phone-front {
    transform: translate(-12%, 0) rotate(4deg);
  }
}

/* —— Outfit wizard & results —— */
.wizard-steps {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.wizard-steps li {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 245, 230, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
}

.wizard-steps li.is-done {
  color: rgba(255, 245, 230, 0.85);
  border-color: rgba(232, 200, 140, 0.35);
}

.wizard-steps li.is-active {
  background: #fffdf8;
  color: #1a1410;
  border-color: transparent;
}

.crumb {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.crumb a {
  color: #fffdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fffdf8;
  min-height: 4.5rem;
}

.choice-card strong {
  font-size: 0.95rem;
}

.choice-card span {
  font-size: 0.72rem;
  color: var(--muted);
}

.color-chip {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.outfit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .outfit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.outfit-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.55rem;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  color: #1a1410;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .outfit-card {
    grid-template-columns: 1fr;
  }
}

.outfit-card-media-form {
  margin: 0;
  min-width: 0;
}

.outfit-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #f3efe8;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.outfit-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.outfit-card-add {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 20, 16, 0.88);
  color: #fffdf8;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.outfit-card-media:hover .outfit-card-add,
.outfit-card-media:focus-visible .outfit-card-add {
  background: #c4a574;
  color: #1a1410;
}

.outfit-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.15rem 0.2rem 0.25rem 0;
}

@media (min-width: 640px) {
  .outfit-card-body {
    padding: 0.15rem 0.35rem 0.45rem;
  }
}

.outfit-card-body h2 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.outfit-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.outfit-card-actions .action {
  min-width: 2.2rem;
  justify-content: center;
  background: #1a1410;
  color: #fffdf8;
  border: none;
}

.outfit-card-actions .action.liked {
  background: #be123c;
}

.inline-form {
  display: inline;
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: #5c534a;
}

.linkish {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0 0.15rem;
  font: inherit;
}

.play-outfit-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.play-outfit-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.play-outfit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-media-form { margin: 0; }
button.card-media-add {
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  position: relative;
}
