/* /card flow only; everything else comes from ../styles.css (the Playground's layout, strip and controls). */
.step-count{
  margin:0;
  font-size:0.72rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--text-dim);
}
.step{ display:flex; flex-direction:column; gap:18px; }
.step-head{
  margin:0;
  font-family:"Fraunces", Georgia, serif;
  font-weight:600;
  font-size:1.4rem;
}
.step-head:focus{ outline:none; }
.step-head:focus-visible{ outline:2px solid var(--coral-text); outline-offset:4px; }

.step-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.step-nav .btn{ min-width:96px; min-height:44px; }
.step-nav #stepNext{ margin-left:auto; }

/* Occasion: big buttons, two to a row. */
.occasion-list{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.occasion-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-height:88px;
  padding:12px;
  border-width:2px;
  font-size:0.95rem;
}
.occasion-emoji{ font-size:1.6rem; letter-spacing:0.1em; }
.occasion-btn[aria-pressed="true"]{ border-color:var(--coral-text); }
.occasion-btn:focus-visible, .look-tile:focus-visible{ outline:2px solid var(--coral-text); outline-offset:2px; }

.step textarea#aboutText{ width:100%; resize:vertical; font-family:inherit; padding:10px; border-radius:10px;
  border:1px solid var(--line); background:var(--paper-2); color:var(--text); }
.prompt-chips{ display:flex; flex-wrap:wrap; gap:8px; }

/* Palette: the pool, grouped by the word that found each emoji. */
.pool-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.pool-head .btn[aria-disabled="true"]{ opacity:0.5; cursor:default; }
.pool{ display:flex; flex-direction:column; gap:14px; }
.pool-group{ display:flex; flex-direction:column; gap:6px; }
.pool-word{ margin:0; font-size:0.8rem; font-weight:600; color:var(--text-dim); }

/* Look: the presets as thumbnails. */
.look-list{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.look-tile{
  all:unset;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:8px;
  border:2px solid var(--line);
  border-radius:14px;
  cursor:pointer;
  text-align:center;
}
.look-tile canvas{ width:96px; height:96px; border-radius:50%; display:block; }
.look-tile[aria-pressed="true"]{ border-color:var(--coral-text); }
.look-name{ font-size:0.85rem; font-weight:600; }
.look-uses{ font-size:0.75rem; color:var(--text-dim); }

@media (forced-colors: active){
  .occasion-btn[aria-pressed="true"], .look-tile[aria-pressed="true"]{ border-color:Highlight; }
}

/* Phone: the strip grows back 300 ms after a text field loses focus. Without the wait, a tap on the button under
   the field misses it: WebKit hit-tests the mouseup after the strip has grown and the button has moved down. */
@media (max-width: 860px){
  .card-flow .canvas-wrap{ transition:width 0s linear 300ms; }
  :root:has(.panel :is(input[type="text"], textarea):focus) .card-flow .canvas-wrap{ transition-delay:0s; }
}
