/* "From an idea to players", on Home and on creators.html: five stops on one road. Each stop has a picture, then
   a numbered block on a line that runs through all five, then its text. The block's colour says how far along
   that step is: filled orange for "in the build now", outlined blue for "coming", purple for "later".
   On narrow screens the road turns downwards and the line runs along the left. */
.road-head { margin: 88px 0 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.road { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.road li { display: flex; flex-direction: column; }
.road h3 { font-size: 1.2rem; margin: 0 0 6px; }
.road p { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.road .tag { align-self: start; margin-top: auto; }

/* The picture of each stop (a photo, or a small drawn card for the steps that have none) */
.road-pic { aspect-ratio: 4 / 3; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.road-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.road li:first-child .road-pic img { object-position: 50% 45%; transform: scale(1.3); }
.road li:hover .road-pic img { transform: scale(1.06); }
.road li:first-child:hover .road-pic img { transform: scale(1.38); }
.road-code { display: grid; place-items: center; padding: 14px; background: var(--bg); }
.road-code code { font: 0.8rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); }
.road-code b { color: var(--rare); font-weight: 400; }
.road-code i { color: var(--good); font-style: normal; }
.road-shop { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px; background: radial-gradient(circle at 80% 20%, rgba(199, 146, 255, 0.18), transparent 60%), var(--panel); }
.road-shop span { font: 600 0.72rem/1 "Chakra Petch", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.road-shop strong { font: 700 1.4rem/1.2 "Chakra Petch", sans-serif; }
.road-shop em { font-style: normal; color: var(--accent-text); font-weight: 800; }
.road-shop small { color: var(--epic); font-weight: 700; }

/* The line and the numbered blocks on it */
.road-mark { position: relative; height: 64px; display: flex; align-items: center; }
.road-mark::before { content: ""; position: absolute; left: 0; right: -20px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.road li:last-child .road-mark::before { right: 0; background: linear-gradient(90deg, var(--line), transparent); }
.road-mark span {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  font: 700 1rem/1 "Chakra Petch", sans-serif; border: 2px solid; background: var(--bg);
}
.road-now .road-mark span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.road-soon .road-mark span { border-color: var(--rare); color: var(--rare); }
.road-later .road-mark span { border-color: var(--epic); color: var(--epic); }

@media (max-width: 1000px) {
  .road { grid-template-columns: 1fr; gap: 0; }
  .road li { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 18px; padding-bottom: 28px; position: relative; }
  .road-mark { grid-column: 1; grid-row: 1 / span 4; height: auto; align-items: start; }
  .road-mark::before { left: 19px; right: auto; top: 0; bottom: -28px; width: 2px; height: auto; margin: 0; }
  .road li:last-child .road-mark::before { display: none; }
  .road-pic { grid-column: 2; grid-row: 1 / span 4; align-self: start; }
  .road h3, .road p, .road .tag { grid-column: 3; }
  .road .tag { margin-top: 0; justify-self: start; }
}
@media (max-width: 560px) {
  .road li { grid-template-columns: 40px minmax(0, 1fr); }
  .road-pic { grid-column: 2; grid-row: auto; margin-bottom: 12px; aspect-ratio: 16 / 9; }
  .road-mark { grid-row: 1 / span 5; }
  .road h3, .road p, .road .tag { grid-column: 2; }
}
