.making { padding-top: 20px; }
.making-head { text-align: center; max-width: 720px; margin: 0 auto 30px; animation: rise .6s both; }
.making-head h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; }
.making-title { font: italic 500 24px/1.3 var(--display); color: var(--accent-text); margin: 10px 0 12px; min-height: 1em; }

.rail { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 0 auto 34px; max-width: 900px; }
.rail li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink-2); position: relative; }
.rail li + li::before { content: ""; position: absolute; top: 26px; right: 50%; width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); z-index: -1; }
.rail li.done + li::before, .rail li.done + li.on::before { background: var(--ink); }
.rail .dot { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-size: 22px; transition: all .3s; }
.rail .done .dot { background: var(--ink); border-color: var(--ink); color: var(--accent); font-weight: 800; }
.rail .on { color: var(--ink); }
.rail .on .dot { border-color: var(--ink); background: var(--accent-soft); box-shadow: 0 0 0 6px var(--ring); animation: pulse 1.6s ease-in-out infinite; }
.rail .stuck .dot { animation: none; border-color: #8c2f16; box-shadow: none; }
.rail small { color: var(--accent-text); font-weight: 800; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 171, 45, .08); transform: scale(1.05); } }

.fail { display: flex; gap: 20px; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto 30px; padding: 20px 24px; border-radius: var(--r); background: #fbe5da; border: 1.5px solid #f0c3ad; }
.fail p { color: var(--ink-2); font-size: 15px; margin: 4px 0 6px; }
.fail summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.fail code { display: block; font-size: 12px; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }

.meet { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: center; max-width: 980px; margin: 0 auto 40px; padding: 26px; background: var(--card); border: 1.5px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); animation: rise .7s both; }
.meet h2 { font-size: 34px; font-weight: 600; margin-bottom: 8px; }
.meet-art { border-radius: 16px; overflow: hidden; background: #fff; transform: rotate(1deg); box-shadow: 0 12px 30px -16px rgba(44, 46, 53, .55); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.slot { margin: 0; animation: rise .5s var(--d) both; }
.slot.is-cover { grid-column: span 2; grid-row: span 2; }
.slot-art { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #ebe5d3; box-shadow: 0 12px 26px -16px rgba(44, 46, 53, .5); }
.slot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0% at 50% 60%); transition: clip-path 1.4s cubic-bezier(.3, .6, .2, 1); }
.slot.revealed img { clip-path: circle(80% at 50% 60%); }
.wash {
  position: absolute; inset: -30%; opacity: .9; transition: opacity .8s;
  background: radial-gradient(closest-side at 30% 40%, rgba(255, 171, 45, .6), transparent), radial-gradient(closest-side at 70% 60%, rgba(255, 255, 255, .8), transparent), radial-gradient(closest-side at 50% 30%, rgba(44, 46, 53, .16), transparent);
  filter: blur(18px); animation: swirl 7s ease-in-out infinite alternate;
}
.slot[data-status="waiting"] .wash { opacity: .35; animation-duration: 14s; }
.slot.revealed .wash { opacity: 0; }
@keyframes swirl { to { transform: rotate(40deg) scale(1.15) translate(4%, -3%); } }
.slot-label { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 253, 247, .9); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.slot-label:empty { display: none; }
.slot[data-status="painting"] .slot-label::before { content: "🖌 "; }
.slot-text { font: 15px/1.5 var(--page-serif); color: var(--ink-2); margin-top: 12px; padding: 0 4px; }
.slot.is-cover .slot-text { font: italic 600 22px/1.3 var(--display); color: var(--ink); }
.lines { display: grid; gap: 7px; }
.lines i { height: 9px; border-radius: 5px; background: linear-gradient(90deg, #e2dbc5, #f4f0e5, #e2dbc5); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.lines i.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .rail li { font-size: 12px; }
  .rail .dot { width: 44px; height: 44px; font-size: 18px; }
  .rail li + li::before { top: 21px; }
  .meet { grid-template-columns: 1fr; }
  .slot.is-cover { grid-column: auto; grid-row: auto; }
  .fail { flex-direction: column; align-items: stretch; }
}
