/* Pas perdus, showcase site: same paper, river and brick as the game (style.css). */
:root {
  --ink: #1F2A2E; --muted: #55625F; --paper: #F6F1E7; --card: #FFFDF8; --line: #E1D8C6; --bg: #EDE6D8;
  --river: #2F6F73; --on-river: #FFFFFF; --brick: #A8492A; --gold-soft: #F4E6C4; --gold-ink: #6B4D12;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --ink: #ECE6DA; --muted: #B4AC9E; --paper: #1D2224; --card: #252B2D; --line: #3A4244; --bg: #15191A;
  --river: #7FC0BD; --on-river: #0F1E1E; --brick: #E08A68; --gold-soft: #3A3220; --gold-ink: #E5C27A; color-scheme: dark } }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body) }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance }
a { color: var(--river) }
p { margin: 0 }
main { max-width: 1120px; margin: 0 auto }
.eyebrow { font: 600 11px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: 6px }
.row { display: flex; gap: 10px; flex-wrap: wrap }
.btn { display: inline-block; background: var(--river); color: var(--on-river); border-radius: 99px; padding: 11px 20px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid var(--river) }
.btn.alt { background: transparent; color: var(--river) }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px }

.s-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(20px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line); flex-wrap: wrap }
.s-logo { font: 700 21px var(--display); display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none }
.s-logo img { width: 40px; height: 40px; display: block }
.s-nav nav { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap }
.s-nav nav a { color: var(--muted); text-decoration: none }
.s-nav nav a:hover { color: var(--ink) }
@media (max-width: 640px) { .s-nav nav { gap: 14px; font-size: 13.5px } }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 44px 20px 36px; align-items: center }
.hero h1 { font-size: clamp(32px, 5vw, 50px) }
.hero p { color: var(--muted); font-size: 17px; margin: 14px 0 20px; max-width: 48ch }
.free { display: inline-block; background: var(--gold-soft); color: var(--gold-ink); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; margin-bottom: 16px }
.s-map { margin: 0; position: relative; border-radius: 18px; border: 1px solid var(--line); background: #E8EEE9; overflow: hidden }
.s-map svg { display: block; width: 100%; height: 100% }
.s-map .arr { fill: #F3EEE2; stroke: #CFC5B0; stroke-width: 1.2 }
.s-map .arr.on { fill: #F4E6C4; stroke: #C9A866 }
.s-map .arr-n { font: 600 11px var(--body); fill: #8A8170; text-anchor: middle }
.s-map figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 10.5px; color: #6D6553 }
.pin { position: absolute; display: flex; align-items: flex-start; gap: 6px; transform: translate(-7px, -7px); color: #1F2A2E; text-decoration: none }
.pin i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--brick); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35) }
.pin span { background: #FFFDF8; border: 1px solid #E1D8C6; border-radius: 10px; padding: 5px 9px; font-size: 12.5px; line-height: 1.3; box-shadow: 0 8px 20px -12px rgb(0 0 0 / .45); max-width: 14rem }
.pin b { display: block; font-family: var(--display); font-size: 14px }
.pin-left { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px) }
.pin:focus-visible span, .pin:hover span { border-color: var(--river) }
@media (prefers-color-scheme: dark) { .s-map { background: #1E2628 } .s-map .arr { fill: #2A3133; stroke: #46504F } .s-map .arr.on { fill: #4A4028; stroke: #8C7445 } .s-map .arr-n { fill: #A89F8C } .s-map figcaption { color: #A89F8C } }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px }  }

.sec { padding: 34px 20px; border-top: 1px solid var(--line) }
.sec h2 { font-size: clamp(24px, 3.2vw, 30px); margin-bottom: 12px }
.sec > p { color: var(--muted); max-width: 75ch }
.note { font-size: 14px; margin-top: 14px; color: var(--muted) }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.steps div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px }
.steps b { font: 600 28px var(--display); color: var(--river) }
.steps h3 { font-size: 18px; margin: 2px 0 4px }
.steps p { color: var(--muted); font-size: 14.5px }

.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; display: block }
.game:hover { border-color: var(--river) }
.ph { height: 160px; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 3px rgb(0 0 0 / .7); position: relative; overflow: hidden; text-decoration: none }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ph span { position: relative }
.ph::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .45)) }
.ph span { z-index: 1 }
.credit { font-size: 11.5px; color: var(--muted); margin: 10px 0 0 } .credit a { color: var(--muted) }
.small-btn { margin-top: 12px; padding: 8px 16px; font-size: 14px }
.ph-next { background: repeating-linear-gradient(45deg, var(--line) 0 10px, var(--paper) 10px 20px); color: var(--muted); text-shadow: none }
.bd { padding: 16px }
.bd h3 { font-size: 20px }
.bd p { color: var(--muted); font-size: 14.5px; margin: 6px 0 12px }
.meta { display: flex; gap: 6px; flex-wrap: wrap }
.meta span { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted) }
.st { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; margin-bottom: 8px }
.st.on { background: #dcece6; color: #1e5c49 }
.st.new { background: var(--gold-soft); color: var(--gold-ink) }
.st.vote { background: #ece6f3; color: #5d4280 }
@media (prefers-color-scheme: dark) { .st.on { background: #213A3A; color: #9fe0c9 } .st.vote { background: #2F2638; color: #d2b6ee } }


/* Game page */
.gh { padding: 36px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start }
.gh h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px }
.gh > div > p { color: var(--muted); margin: 12px 0 16px; font-size: 16.5px }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--muted) }
.facts b { display: block; font: 600 19px var(--display); color: var(--ink) }
.modes { display: grid; gap: 12px }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px }
.mode h2 { font-size: 19px }
.mode p { color: var(--muted); font-size: 14.5px; margin: 6px 0 12px }
.route { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; max-width: 40rem }
.list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px }
.list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; font-weight: 600 }
.list li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--river); color: var(--on-river); display: grid; place-items: center; font: 600 13px var(--display) }
.list li.lock::before { content: "…"; background: var(--line); color: var(--muted) }
.list small { font-weight: 400; color: var(--muted); font-size: 13.5px }
.src { font-size: 13px; margin: 14px 0; overflow-wrap: anywhere }

.s-foot { margin-top: 20px; padding: 20px max(20px, calc((100% - 1120px) / 2)); background: #1F2A2E; color: #D5DCDA; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }

@media (max-width: 820px) {
  .steps, .games { grid-template-columns: minmax(0, 1fr) }
  .gh, .route { grid-template-columns: minmax(0, 1fr) }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
.ph-next::after { display: none }
