/* Mission walkthrough (/missions/<slug>), all screen sizes. A static file linked by components/pages/MissionWalkthrough.tsx:
   it stays out of the inlined CSS, which is copied into every page and counts against the worker size limit.
   New design (Lorenzo, 2026-11-23): open steps on a dashed GPS route with HUD number tiles, big pictures that
   alternate sides, a "Mission passed" banner, tips as numbered cards. Phone overrides: public/phone/missions.css */

/* at a glance: the pause-menu brief as a title card, then a centred facts bar */
.mw-glance { display: grid; gap: 1.4rem; margin-top: 2rem; }
.mw-brief { margin: 0; padding: 0.15rem 0 0.15rem 1.1rem; border-left: 3px solid var(--accent-pink); }
.mw-brief figcaption { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-pink); }
.mw-brief blockquote { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; color: var(--text-primary); }
.mw-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.08); border-block: 1px solid rgba(255, 255, 255, 0.08); }
.mw-facts > div { display: grid; align-content: center; gap: 0.3rem; padding: 0.95rem 0.8rem; text-align: center; background: var(--bg-void); }
.mw-facts dt { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.mw-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; color: var(--text-primary); text-wrap: balance; }
.mw-facts dd a { color: var(--accent-pink); }
.mw-facts dd a:hover { text-decoration: underline; }

/* sticky step index */
.mw-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .mw-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 3rem; } }
.mw-index { display: none; }
@media (min-width: 1024px) {
  .mw-index { display: block; position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
}
.mw-index-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-pink); margin: 0 0 0.6rem; }
.mw-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mw-index a { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.4rem 0.5rem; border-radius: 6px; font-size: 0.85rem; line-height: 1.3; color: var(--text-secondary); }
.mw-index a:hover, .mw-index a:focus-visible { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.mw-index a span { flex: none; width: 1.4rem; font-family: var(--font-display); font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--accent-pink); }

/* steps: no boxes; a skewed HUD tile for the number, the dashed line of the minimap route between two steps */
.mw-steps { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.mw-step { position: relative; display: grid; gap: 1rem; padding: 0 0 2.4rem 3.3rem; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .mw-step { scroll-margin-top: 1.5rem; } }
.mw-step:last-child { padding-bottom: 0; }
.mw-step:not(:last-child)::before { content: ''; position: absolute; left: calc(0.9rem - 1px); top: 2.3rem; bottom: 0.35rem; border-left: 2px dashed color-mix(in srgb, var(--accent-pink) 45%, transparent); }
.mw-num { position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 4px; font-size: 1.05rem; font-weight: 700; line-height: 1; background: var(--accent-pink); color: #0b0b12; transform: skewX(-8deg); }
.mw-step:target .mw-num { background: #fff; }
.mw-title { margin: 0; font-size: 1.65rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; color: var(--text-primary); }
.mw-step:target .mw-title { color: var(--accent-pink); }
.mw-text { margin: 0.55rem 0 0; font-size: 1rem; line-height: 1.65; color: color-mix(in srgb, var(--text-primary) 84%, transparent); }
.mw-controls { margin: 0.85rem 0 0; padding-left: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: baseline; border-left: 2px solid var(--accent-cyan); font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); }
.mw-controls-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-cyan); }
.mw-key { display: inline-block; min-width: 1.6em; padding: 0 0.4em; margin: 0 0.1em; border-radius: 5px; font: 600 0.78rem/1.6 ui-monospace, monospace; text-align: center; background: var(--bg-elevated); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px var(--border-default); color: #fff; }
.mw-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -22px #000; }
.mw-shot img { object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.mw-shot:hover img, .mw-shot:focus-visible img { transform: scale(1.04); }
/* a step with a picture: text and picture side by side, the picture changing side from one to the next */
@container (min-width: 680px) {
  .mw-step--shot { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 2rem; align-items: start; }
  .mw-step--flip { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .mw-step--flip .mw-shot { order: -1; }
}

/* the end of the steps reads like the game's own result banner */
.mw-passed { display: grid; justify-items: center; gap: 0.35rem; margin-top: 2.5rem; padding: 1.6rem 1rem; text-align: center; border-block: 1px solid rgba(250, 204, 21, 0.35); background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.1), transparent); }
.mw-passed-t { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; color: #facc15; }
.mw-passed-n { font-weight: 600; color: var(--text-primary); }
.mw-passed-r { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: #4ade80; }
.mw-passed a { margin-top: 0.3rem; font-size: 0.85rem; font-weight: 700; color: var(--accent-pink); }
.mw-passed a:hover { text-decoration: underline; }

/* tips: numbered cards */
.mw-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: tip; }
.mw-tips li { counter-increment: tip; position: relative; padding: 1rem 1.1rem 1.1rem 3.4rem; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mw-tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 1rem; top: 0.95rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent-pink); }
.mw-open { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; list-style: disc; font-size: 0.92rem; color: var(--text-muted); }

/* previous / next mission */
/* Previous / next mission: picture cards, the next one wider and louder. */
.mw-pn { display: grid; gap: 1rem; padding: 2.5rem 0; border-top: 1px solid var(--border-subtle); }
@media (min-width: 768px) { .mw-pn { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.mw-pn > span:empty { display: none; }
.mw-pn > span:empty + .mw-pn-card, .mw-pn > .mw-pn-card:only-child { grid-column: 1 / -1; }
.mw-pn-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 180px; overflow: hidden; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mw-pn-card--next { min-height: 260px; box-shadow: inset 0 0 0 2px var(--accent-pink), 0 0 40px -12px var(--accent-pink-glow); }
.mw-pn-img { z-index: -2; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.mw-pn-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #07070e 5%, rgba(7, 7, 14, 0.6) 50%, rgba(7, 7, 14, 0.15) 100%); }
.mw-pn-card:hover .mw-pn-img, .mw-pn-card:focus-visible .mw-pn-img { transform: scale(1.04); }
.mw-pn-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.4rem; }
.mw-pn-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-pink); }
.mw-pn-title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 0.95; text-transform: uppercase; color: var(--text-primary); }
.mw-pn-card--next .mw-pn-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.mw-pn-desc { max-width: 60ch; font-size: 0.95rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.mw-pn-cta { align-self: flex-start; margin-top: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent-pink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .mw-pn-img, .mw-shot img { transition: none; } }
/* a long fact value (a place in a sentence) in the body face, so it does not tower over the others */
.mw-facts > .mw-fact--long dd { font-family: inherit; font-size: 0.92rem; line-height: 1.35; font-weight: 600; }
