/* FeelBench — warm-paper toybox, v4. One design system for all pages. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&display=swap');

:root {
  --paper: #FAF6EE;
  --ink: #23201A;
  --ink-soft: #4A453B;
  --muted: #8C8577;
  --line: #E8E0CF;
  --line-soft: #EFE9DB;
  --line-strong: #D6CAB0;
  --card: #FFFFFF;
  --yellow: #FFD43B;
  --yellow-deep: #F5C518;
  --good: #3FA968;
  --bad: #E25C4A;

  /* task accents — toy-bin colors, assigned by data-accent */
  --sky: #4E9DE0;
  --bubblegum: #E8709A;
  --leaf: #52AE6E;
  --coral: #EF6B57;
  --grape: #9A6CE0;
  --sun: #EFA93C;
  --lagoon: #2FB5AE;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r-card: 18px;
  --r-inner: 12px;
  --spring: cubic-bezier(.3, 1.4, .4, 1);
  --snap: cubic-bezier(.3, 1.12, .35, 1);
  --shadow: 0 1px 2px rgba(35, 30, 20, .05), 0 10px 30px -18px rgba(35, 30, 20, .25);
  --shadow-lift: 0 2px 4px rgba(35, 30, 20, .06), 0 18px 44px -18px rgba(35, 30, 20, .3);
}

* { box-sizing: border-box; }

html { height: 100%; color-scheme: light; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 44px);
  max-width: 1280px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.eyes {
  display: inline-flex;
  gap: 2px;
  align-self: center;
  margin: 0 2px;
  transform: translateY(1px);
}

.eye {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--ink);
}

.eye .pupil {
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform .12s ease-out;
}

.eyes.blink .eye { animation: blink .18s ease-in-out; }

@keyframes blink {
  50% { transform: scaleY(.12); }
}

.tagline {
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
  margin-right: auto;
  padding-left: 4px;
  white-space: nowrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  width: min(280px, 30vw);
  color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}

.search:focus-within { border-color: var(--ink-soft); box-shadow: var(--shadow); }

.search svg { flex: none; }

.search input {
  border: none;
  background: none;
  outline: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .25s, background .15s;
}

.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.98); }

.btn-play {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(35, 30, 20, .15);
}

.btn-play:hover { background: var(--yellow-deep); box-shadow: var(--shadow); }

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: var(--shadow-lift); }

/* ---------- shared page shell ---------- */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px) 60px;
}

/* ---------- home intro ---------- */

.intro {
  padding: clamp(18px, 4vh, 44px) 0 30px;
  max-width: 760px;
}

.intro h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 14px;
}

.intro h1 .tilt {
  display: inline-block;
  background: var(--yellow);
  border-radius: 10px;
  padding: 0 10px 2px;
  transform: rotate(-1.5deg);
}

.intro p {
  margin: 0;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.intro .fine { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- library grid ---------- */

.library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 26px;
  padding-top: 8px;
}

.toy {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--r-card);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* cards never move on hover — they just come forward */
  transition: box-shadow .3s ease, border-color .2s ease;
}

.toy:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.toy-window {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #14130F;
}

.toy-window iframe {
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 800px;
  border: none;
  pointer-events: none;
  transform-origin: 0 0;
  /* scale set by JS */
}

.toy-live {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 19, 15, .72);
  color: #F5F1E7;
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-family: var(--mono);
}

.toy-live .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 2.4s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

.toy-body { padding: 16px 18px 18px; }

.toy-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.bin {
  width: 11px; height: 11px;
  border-radius: 4px;
  flex: none;
  transform: rotate(8deg);
}

[data-accent="sky"] .bin, .bin[data-accent="sky"] { background: var(--sky); }
[data-accent="bubblegum"] .bin, .bin[data-accent="bubblegum"] { background: var(--bubblegum); }
[data-accent="leaf"] .bin, .bin[data-accent="leaf"] { background: var(--leaf); }
[data-accent="coral"] .bin, .bin[data-accent="coral"] { background: var(--coral); }
[data-accent="grape"] .bin, .bin[data-accent="grape"] { background: var(--grape); }
[data-accent="sun"] .bin, .bin[data-accent="sun"] { background: var(--sun); }
[data-accent="lagoon"] .bin, .bin[data-accent="lagoon"] { background: var(--lagoon); }

.toy-short {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 3px;
}

.toy-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.toy-meta .pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- footer / how it works ---------- */

.how {
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.how h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
}

.how p { margin: 0; font-size: 14.5px; color: var(--muted); }

.foot {
  margin-top: 44px;
  padding: 18px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.foot a { color: var(--ink-soft); }

/* ---------- task page ---------- */

.task-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 0 20px;
}

.task-head h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
}

.task-head .bin { width: 15px; height: 15px; border-radius: 5px; }

.judge-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  max-width: 60ch;
}

.task-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* model rail */

.rail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0 14px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .35s var(--spring), border-color .15s, background .15s, color .15s;
}

.chip:hover:not(:disabled) { border-color: var(--ink-soft); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:disabled { opacity: .35; cursor: default; }

.seg {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--muted);
  transition: background .15s, color .15s;
}

.seg button.active { background: var(--yellow); color: var(--ink); font-weight: 600; }
.seg button:disabled { opacity: .3; cursor: default; }

.rail-note { font-size: 12.5px; color: var(--muted); margin-left: 2px; }

/* stage */

.stage {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #14130F;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: min(72vh, 780px);
}

.stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
  opacity: 1;
  transition: opacity .25s ease;
}

.stage iframe.entering { opacity: 0; }
.stage iframe[hidden] { display: none; }

.stage .boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #14130F;
  color: #8C8577;
  font-family: var(--mono);
  font-size: 13px;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 2;
}

.stage .boot.off { opacity: 0; }

.stage-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 4px 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.stage-foot .who {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--body);
  font-size: 14.5px;
}

.stage-foot .spacer { flex: 1; }

.stage-foot button, .stage-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--body);
  font-size: 13.5px;
  padding-bottom: 1px;
}

.stage-foot button:hover, .stage-foot a:hover { border-color: var(--ink-soft); }

/* filmstrip of all takes */

.strip-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  margin: 34px 0 12px;
}

.shelf-vendor { margin: 26px 0 0; }
.shelf-vendor:first-child { margin-top: 4px; }

.shelf-vendor > h4 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.shelf-vendor > h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.shelf-fams {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  row-gap: 22px;
}

.fam-name {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.fam-takes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.take {
  width: 150px;
  border-radius: var(--r-inner);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--card);
  text-align: left;
  transition: transform .35s var(--spring), border-color .15s;
  padding: 0;
}

.take:hover { transform: translateY(-2px); }
.take.active { border-color: var(--ink); }

.take img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #14130F;
}

.take .who {
  display: block;
  padding: 6px 10px 7px;
  min-height: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- prompt modal ---------- */

dialog.prompt-modal {
  border: none;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink);
  padding: 0;
  width: min(760px, calc(100vw - 40px));
  max-height: 84vh;
  box-shadow: 0 30px 80px -20px rgba(35, 30, 20, .45);
}

dialog.prompt-modal::backdrop {
  background: rgba(35, 30, 20, .45);
  backdrop-filter: blur(3px);
}

.prompt-inner { padding: 28px 30px 26px; overflow-y: auto; max-height: 84vh; }

.prompt-inner h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.prompt-inner .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.prompt-rules {
  font-size: 13.5px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-inner);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.prompt-rules summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; font-size: 13.5px; }
.prompt-rules pre { margin: 10px 0 0; }

.prompt-task pre, .prompt-rules pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

.prompt-task {
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--r-inner);
  padding: 16px 18px;
}

.prompt-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.prompt-foot .hint { font-size: 13px; color: var(--muted); }

/* ---------- guess game ---------- */

.guess-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0 14px;
}

.guess-top .what {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.streak {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}

.streak b { color: var(--ink); font-size: 15px; }

.guess-stage { height: min(58vh, 640px); }

.guess-bar {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
}

.guess-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 12px;
}

.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.opt {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  transition: transform .35s var(--spring), border-color .15s, background .2s, color .2s, opacity .2s;
}

.opt:hover:not(:disabled) { border-color: var(--ink-soft); }
.opt:disabled { cursor: default; }
.opt.dim { opacity: .38; }
.opt.right { background: var(--good); border-color: var(--good); color: #fff; animation: pop .5s var(--spring); }
.opt.wrong { background: var(--bad); border-color: var(--bad); color: #fff; animation: shake .4s ease; }

@keyframes pop { 40% { transform: scale(1.12); } }
@keyframes shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.guess-result {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  min-height: 42px;
}

.guess-result .verdict {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
}

.guess-result .verdict.yes { color: var(--good); }
.guess-result .verdict.no { color: var(--bad); }

.guess-result .detail { color: var(--muted); font-size: 14px; font-family: var(--mono); }
.guess-result .spacer { flex: 1; }

.effort-q { margin-top: 16px; }

.opts-effort {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  max-width: 640px;
}

.opt-effort { font-family: var(--mono); font-size: 13.5px; }

/* ---------- compare ---------- */

.vs-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0 16px;
}

.vs-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  margin: 0;
}

.vs-head .bin { width: 13px; height: 13px; }

.vs-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  transition: grid-template-columns .4s var(--snap), gap .4s var(--snap);
}

.vs-grid.max-a { grid-template-columns: 1fr 0fr; gap: 0; }
.vs-grid.max-b { grid-template-columns: 0fr 1fr; gap: 0; }

.pane {
  min-width: 0;
  overflow: clip;
  overflow-clip-margin: 8px;
  transition: opacity .25s ease;
}

.vs-grid.max-a #pane-b,
.vs-grid.max-b #pane-a { opacity: 0; pointer-events: none; }

.pane .stage {
  height: min(56vh, 620px);
  transition: height .4s var(--snap);
}

.vs-grid.max-a #pane-a .stage,
.vs-grid.max-b #pane-b .stage { height: min(70vh, 820px); }

.vs-badge {
  position: absolute;
  left: 50%;
  top: calc(min(56vh, 620px) / 2);
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  z-index: 5;
  box-shadow: var(--shadow-lift);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--spring);
}

.vs-grid.max-a .vs-badge,
.vs-grid.max-b .vs-badge { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(.5); }

.pane-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 2px 10px;
}

.pane-bar .pane-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
}

.pane-bar .pane-stats {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.pane-bar .spacer { flex: 1; }

.pane-max {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--card);
  transition: border-color .15s, transform .35s var(--spring);
}

.pane-max:hover { border-color: var(--ink-soft); }
.pane-max:active { transform: scale(.97); }

.rail-compact { padding: 0 0 6px; gap: 6px; }
.rail-compact .chip { padding: 5px 12px; font-size: 13px; }
.rail-compact .seg button { padding: 3px 10px; font-size: 12px; }

@media (max-width: 900px) {
  .vs-grid, .vs-grid.max-a, .vs-grid.max-b { grid-template-columns: 1fr; gap: 20px; }
  .vs-badge { display: none; }
  .pane .stage { height: 48vh; }
  .pane-max { display: none; }
  .vs-grid.max-a #pane-b, .vs-grid.max-b #pane-a { opacity: 1; pointer-events: auto; }
}

/* vs chip on shelf takes */

.take { position: relative; }

.take .vs-chip {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  transform: rotate(-8deg) scale(0);
  transition: transform .3s var(--spring);
  z-index: 3;
}

.take:hover .vs-chip { transform: rotate(-8deg) scale(1); }
.take .vs-chip:hover { transform: rotate(-8deg) scale(1.15); }

/* ---------- model pages ---------- */

/* homepage: newest model spotlight + the by-model rail */

.spotlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: transform .35s var(--spring), box-shadow .25s, border-color .15s;
}

.spotlight:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
  box-shadow: var(--shadow-lift);
}

.spotlight .arrow { transition: transform .3s var(--spring); }
.spotlight:hover .arrow { transform: translateX(3px); }

.new-tag {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.by-model {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.by-model h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
}

.by-model p { margin: 0; font-size: 14.5px; color: var(--muted); }
.by-model .model-chips { padding-top: 14px; }

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.chip-link:hover { transform: translateY(-2px); }

.chip-link.fresh {
  border-color: var(--yellow-deep);
  box-shadow: inset 0 0 0 1px var(--yellow);
  color: var(--ink);
}

/* one model's page */

.model-head { padding: 8px 0 4px; }

.model-name {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.model-name h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.vendor-tag {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.model-head .judge-line { max-width: 58ch; }

.model-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}

.model-stats .pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.vs-rail {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.vs-rail .vs-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.vs-rail .rail { padding: 0 0 10px; }

/* model-page toy cards */

a.toy-title { text-decoration: none; }
a.toy-title:hover { text-decoration: underline; text-underline-offset: 3px; }

.toy-meta .spacer { flex: 1; }

.card-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.card-link:hover { color: var(--ink); }

.ab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.ab-seg { flex: 1; }
.ab-seg button { flex: 1; font-family: var(--body); font-size: 12.5px; }

.toy-empty { opacity: .72; }
.toy-empty:hover { border-color: var(--line); box-shadow: var(--shadow); }
.toy-empty .toy-window {
  background: repeating-linear-gradient(-45deg, #F2ECDF 0 10px, #EDE6D6 10px 20px);
  display: grid;
  place-items: center;
}

.skipped {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}

/* the model index */

.intro-tight { margin-bottom: 8px; }

.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.mcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--r-card);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .2s ease;
}

.mcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }

.mshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  aspect-ratio: 5 / 1;
}

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

.mcard-body { padding: 13px 16px 15px; }

.mcard-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.mcard-meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

/* model-page links dropped into existing furniture */

.stage-foot .who a,
.pane-bar .pane-name a,
a.fam-name {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.stage-foot .who a:hover,
.pane-bar .pane-name a:hover,
a.fam-name:hover { text-decoration-color: var(--ink-soft); }

/* ---------- misc ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.back:hover { color: var(--ink); }

.empty-note {
  color: var(--muted);
  font-size: 14.5px;
  padding: 30px 0;
  text-align: center;
}

@media (max-width: 760px) {
  .tagline { display: none; }
  .search { width: 100%; order: 10; }
  .top { flex-wrap: wrap; }
  .stage { height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .eye .pupil { transform: none !important; }
}
