/* Indoor Laps site. Brand colours from game/assets/brand/icon.svg, type as in tools/splash. */
/* Self-hosted (SIL OFL), so no visitor data goes to a font service. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url(fonts/PlusJakartaSans-400.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url(fonts/PlusJakartaSans-600.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(fonts/PlusJakartaSans-700.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(fonts/PlusJakartaSans-800.woff2) format("woff2"); }

:root {
  --paper: #f6f1e7; --paper-2: #ede6d6; --ink: #1d1f24; --ink-2: #555a63;
  --red: #d62f2f; --green-1: #e3e6cf; --green-2: #b1c27c; --green-3: #6f8a2a;
  --card: #fffdf8; --line: #ddd4c1; --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #16181c; --paper-2: #1f2228; --ink: #f2ede3; --ink-2: #a9adb4;
    --card: #1d2026; --line: #2e323a; --green-1: #2a3021; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.bar nav { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; font-weight: 600; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--ink-2); }
.bar nav a:hover { color: var(--ink); }
.bar nav .nav-cta { color: #fff; background: var(--red); padding: 8px 16px; border-radius: 999px; }
@media (max-width: 640px) { .bar nav a:not(.nav-cta) { display: none; } }

.hero { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: min(78vh, 760px); }
.hero-panel { background: var(--paper); border-radius: 0 64px 64px 0; position: relative; z-index: 1; margin-right: -64px;
  display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(16px, 5vw, 80px); }
.hero h1 { font-size: clamp(72px, 10vw, 136px); font-weight: 800; letter-spacing: -0.045em; line-height: .92; margin: 16px 0 24px; }
.tag { color: var(--red); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); margin: 0 0 20px; }
.lead { color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.beta { align-self: flex-start; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-3); background: var(--green-1); padding: 5px 12px; border-radius: 999px; }
.hero-shot { border: 0; padding: 0; cursor: zoom-in; background: #000; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { margin: 0; border-radius: 0; padding-top: 32px; }
  .hero-shot { aspect-ratio: 16 / 10; order: -1; }
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; font-size: 16px; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: var(--paper); }
.facts div { padding: 26px 16px; text-align: center; border-right: 1px solid #ffffff1a; }
.facts b { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.facts span { font-size: 14px; opacity: .7; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.block { padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 80px); max-width: 1280px; margin: 0 auto; }
.sub { color: var(--ink-2); margin: 0 0 32px; max-width: 46em; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--paper-2);
  position: relative; grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery button.wide { grid-column: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery span { position: absolute; left: 10px; bottom: 10px; font-size: 13px; font-weight: 600; color: #fff;
  background: #0009; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery button, .gallery button.wide { grid-column: span 1; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid3 p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.features article h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 14px; }

.route-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.route-filter button { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.route-filter button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.routes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.routes li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.routes b { display: block; font-size: 16px; }
.routes small { color: var(--ink-2); font-size: 14px; }
.routes .kind { float: right; font-size: 12px; font-weight: 700; color: var(--green-3); }

.status .ok h3 { color: var(--green-3); }
.status .test h3 { color: #c07a12; }
.status .next h3 { color: var(--ink-2); }
.status ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.status li { margin: 4px 0; }

.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dl.mine { border: 2px solid var(--red); }
.dl h3 { font-size: 26px; }
.req { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.dl dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 20px 0 0; color: var(--ink-2); }
.dl dd { margin: 0; }
.hash { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.inside { color: var(--ink-2); margin: 20px 0 28px; }
@media (max-width: 760px) { .dl-cards { grid-template-columns: 1fr; } }
.howto { border-top: 1px solid var(--line); padding: 16px 0; }
.howto summary { font-weight: 700; cursor: pointer; }
.howto ol, .howto ul { color: var(--ink-2); }

.feedback { padding-top: 0; }
footer { border-top: 1px solid var(--line); padding: 32px clamp(16px, 5vw, 80px); font-size: 14px; color: var(--ink-2); }
footer p { margin: 4px 0; max-width: 1120px; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: #0d0e10f2; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 8px; }
.lightbox figcaption { color: #e9e4d8; text-align: center; margin-top: 12px; font-size: 15px; }
.lightbox button { position: absolute; background: #ffffff1a; color: #fff; border: 0; border-radius: 999px;
  width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: #ffffff33; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p { color: var(--ink-2); }
.routes .osm { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--green-3); text-decoration: none; }
.routes .osm:hover { text-decoration: underline; }
