:root {
  --ink: #06243f;
  --orange: #ff5a1f;
  --orange-text: #d23500;
  --cream: #fff4df;
  --paper: #fffdf7;
  --track-paper: #f3f0eb;
  --sea: #63b7c7;
  --green: #9bcf8f;
  --muted: #5c6b76;
  --line: 5px solid var(--ink);
  --shadow: 0 0 0 1px var(--ink), 9px 9px 0 1px var(--ink);
  --orange-shadow: 0 0 0 1px var(--ink), 14px 14px 0 1px var(--orange);
  --page-gutter: clamp(16px, 3.5vw, 72px);
}

* { box-sizing: border-box; font-synthesis: none; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 90, 31, 0.13) 0 10%, transparent 11%),
    radial-gradient(circle at 88% 20%, rgba(6, 36, 63, 0.12) 0 9%, transparent 10%),
    radial-gradient(circle at 76% 84%, rgba(99, 183, 199, 0.24) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(255,255,255,.22) 0 25%, transparent 25% 50%, rgba(255,255,255,.16) 50% 75%, transparent 75%) 0 0 / 42px 42px;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.nav {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.badge,
.btn,
.card,
.route-card,
.phone,
.faq-item {
  border: var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.badge {
  pointer-events: auto;
  width: 190px;
  height: 92px;
  padding: 6px;
  overflow: hidden;
  background: var(--cream);
  transform: rotate(-3deg);
  transition: transform .14s, box-shadow .14s;
}

.badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.badge:hover,
.badge:focus-visible {
  transform: translate(6px, 6px) rotate(-3deg);
  box-shadow: 0 0 0 1px var(--ink);
}

.brand-number {
  display: inline-block;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  transform: translateY(-1px) scale(.96);
  transform-origin: left center;
}

.brand-inline {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.brand-inline .brand-number {
  margin-left: 2px;
  transform: translateY(-.5px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.nav-links a {
  padding: 9px 13px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink), 4px 4px 0 1px var(--ink);
  font-weight: 900;
  transition: transform .14s, box-shadow .14s;
}

.nav-links a:last-child {
  color: var(--ink);
  background: var(--orange);
}

.nav-links a.nav-easteregg {
  position: relative;
  overflow: visible;
}

.nav-links a.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  padding-inline: 10px;
  background: var(--paper);
  color: var(--ink);
}

.language-flag {
  display: block;
  width: 25px;
  height: 17px;
  border: 1px solid rgba(6, 36, 63, .28);
  border-radius: 2px;
  object-fit: cover;
}

.nav-pigeon {
  position: absolute;
  left: 12px;
  bottom: calc(100% - 7px);
  z-index: 4;
  width: 62px;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translate(4px, 4px) rotate(-1deg);
  box-shadow: 0 0 0 1px var(--ink);
}

.mobile-bottom-nav {
  display: none;
}

.mobile-bottom-nav a {
  text-decoration: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 20px;
  color: var(--ink);
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s, box-shadow .14s;
}

.btn:hover {
  transform: translate(6px, 6px) rotate(-1deg);
  box-shadow: 0 0 0 1px var(--ink);
}

.btn.dark { color: white; background: var(--ink); }
.btn.light { color: var(--ink); background: var(--paper); }
.btn.notify-cta {
  color: var(--ink);
  background: var(--orange);
  animation: notifyPulse 1.9s ease-in-out infinite;
}

.btn.notify-cta:hover,
.btn.notify-cta:focus-visible {
  animation-play-state: paused;
}

@keyframes notifyPulse {
  0%, 100% {
    box-shadow: var(--shadow);
    transform: translate(0, 0) rotate(-.6deg);
  }
  50% {
    box-shadow: 10px 10px 0 var(--ink), 0 0 0 6px rgba(255, 90, 31, .22);
    transform: translate(-1px, -2px) rotate(.8deg);
  }
}

section {
  position: relative;
  min-height: 100vh;
  padding: 112px var(--page-gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.kicker .arrow {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border: 3px solid var(--cream);
  border-radius: 999px;
  color: var(--ink);
  background: var(--orange);
  line-height: 1;
  letter-spacing: 0;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  margin: 28px 0 24px;
  font-size: clamp(58px, 9vw, 126px);
  line-height: .88;
  font-weight: 900;
  letter-spacing: -5px;
}

h2 {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: .93;
  font-weight: 900;
  letter-spacing: -3px;
}

h3 {
  margin: 12px 0 8px;
  font-size: 32px;
  line-height: .98;
  font-weight: 900;
  letter-spacing: -1px;
}

.orange { color: var(--orange-text); }

.lead {
  max-width: 840px;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 700;
  line-height: 1.28;
}

.note {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.legend-mark {
  color: var(--orange-text);
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.logo-card {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 6px solid var(--ink);
  border-radius: 46px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink), 16px 16px 0 1px var(--orange);
  transform: rotate(2deg);
}

.logo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1152;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  background: white;
  text-align: center;
}

.logo-inner::before {
  content: none;
}

.hero-route-art {
  display: block;
  width: 94%;
  height: 114%;
  object-fit: contain;
  object-position: 48% 50%;
  border-radius: 28px;
}

.hero-rider {
  position: absolute;
  z-index: 5;
  width: clamp(30px, 4.1vw, 58px);
  height: clamp(24px, 3.4vw, 48px);
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(3px 3px 0 rgba(6, 36, 63, .26));
  will-change: transform;
  transform: translate(-50%, -88%);
}

.hero-route-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rider {
    animation: none;
    left: 11%;
    top: 59%;
  }

  .btn.notify-cta {
    animation: none;
  }
}

@keyframes bob { to { transform: translateY(-8px) rotate(-3deg); } }

.sticker {
  position: absolute;
  z-index: 3;
  padding: 10px 16px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
  font-size: 20px;
  font-weight: 900;
  transform: rotate(12deg);
}

.sticker.top { top: 30px; right: -12px; }


.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin-top: 30px;
}

.stat {
  min-height: 138px;
  padding: 18px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: white;
  box-shadow: 0 0 0 1px var(--ink), 6px 6px 0 1px var(--ink);
  transform: rotate(var(--r));
  min-width: 0;
}

.stat b {
  display: block;
  color: var(--orange-text);
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: .95;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
}

.route-title {
  max-width: 980px;
  margin-bottom: 58px;
  padding: 32px;
  transform: rotate(-1deg);
}

.route-title .lead {
  margin-top: 28px;
}

.route-stage {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  max-width: 1380px;
  margin: auto;
}

.map-panel {
  position: sticky;
  top: 105px;
  overflow: hidden;
  padding: 22px;
  border: 6px solid var(--ink);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink), 12px 12px 0 1px var(--ink);
}

.map-panel h3 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 900;
}

.mini-map {
  position: relative;
  height: 820px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--track-paper);
}

.sea-band,
.gate-band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-asset {
  position: absolute;
  z-index: 5;
  display: block;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0 rgba(6, 36, 63, .45));
  pointer-events: none;
}

.sea-band span {
  position: relative;
  z-index: 6;
  transform: translateX(0);
}

.sea-asset {
  right: -18px;
  top: 98px;
  width: 238px;
  height: 158px;
  border-radius: 18px;
  transform: rotate(3deg);
  opacity: .98;
}

.berlin-asset {
  left: 64%;
  bottom: 56px;
  width: 268px;
  height: 178px;
  transform: translateX(-50%);
}

.gate-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  text-align: center;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.sea-band {
  top: 0;
  height: 104px;
  border-bottom: 4px solid var(--ink);
  background:
    linear-gradient(180deg, #cceef5 0%, #dff7fb 100%);
}

.sea-band::before {
  content: none;
}

.sea-band::after {
  content: none;
}

.gate-band {
  bottom: 0;
  height: 84px;
  border-top: 4px solid var(--ink);
  background: var(--track-paper);
}

.gate-band::before {
  content: none;
}

.gate-band::after {
  content: none;
}

.gpx {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.route-shadow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-main {
  fill: none;
  stroke: var(--orange);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-panel-media {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 2;
  aspect-ratio: 941 / 1672;
  height: 76%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.route-panel-track {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.route-rider {
  position: absolute;
  left: 26%;
  top: 94%;
  z-index: 3;
  width: 19%;
  height: auto;
  transform: translate(-50%, -64%) rotate(-18deg);
  pointer-events: none;
  will-change: left, top, transform;
}

.route-copy {
  display: grid;
  gap: 34px;
}

.route-card {
  padding: 28px;
  transform: rotate(var(--r));
}

.route-card p,
.card p,
.card li,
.faq-item p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.38;
}

.quote {
  padding: 30px;
  border: 5px solid var(--ink);
  border-radius: 28px;
  color: white;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 9px 9px 0 1px var(--orange);
  transform: rotate(-1deg);
}

.quote p {
  margin: 0;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 44px auto 0;
}

.rules-grid .time-card {
  grid-column: auto;
  transform: rotate(var(--r));
}

.rules-grid .fairplay-card {
  grid-column: auto;
  transform: rotate(var(--r));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 44px auto 0;
}

.step-card {
  position: relative;
  min-height: 268px;
  padding: 24px;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: white;
  box-shadow: 0 0 0 1px var(--ink), 8px 8px 0 1px var(--ink);
  transform: rotate(var(--r));
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 54px;
  flex: 0 0 54px;
  height: 54px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.step-label {
  color: var(--orange-text);
  font-size: clamp(21px, 1.8vw, 30px);
  line-height: .9;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.step-card h3 {
  margin-top: 0;
  font-size: clamp(25px, 2.5vw, 34px);
}

.step-card p {
  font-size: 16px;
}

.card {
  min-height: 282px;
  padding: 30px;
  transform: rotate(var(--r));
}

.card .tag {
  display: inline-block;
  padding: 7px 11px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 4px 4px 0 1px var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.icon-box {
  width: 98px;
  min-width: 98px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
  color: var(--orange-text);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}

html[lang="en"] #regeln .route-title h2 {
  max-width: 900px;
  font-size: clamp(42px, 5.5vw, 76px);
  overflow-wrap: anywhere;
}

html[lang="en"] #regeln .route-icon {
  width: auto;
  min-width: 98px;
  padding-inline: 10px;
  font-size: 27px;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
  background: var(--ink);
  color: var(--cream);
}

.app-section .lead {
  margin-top: 28px;
}

.app-section .card {
  color: var(--ink);
}

.app-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: 0;
}

.app-feature-grid .card {
  min-height: 220px;
  padding: 22px;
}

.leaderboard-section {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 90, 31, .16), transparent 22%),
    radial-gradient(circle at 82% 30%, rgba(99, 183, 199, .22), transparent 24%),
    var(--cream);
}

.leaderboard-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 28px;
  max-width: 1180px;
  margin: 42px auto 0;
  align-items: stretch;
}

.ranking-card {
  min-height: auto;
  background: var(--paper);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.ranking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
}

.ranking-row span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 34px auto 0;
}

.achievement-card {
  position: relative;
  min-height: 228px;
  padding: 22px;
  overflow: hidden;
}

.achievement-icon {
  display: inline-grid;
  place-items: center;
  min-width: 70px;
  height: 58px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(6, 36, 63, .18));
  transform: rotate(4deg);
  pointer-events: none;
}

.achievement-card:nth-child(even) .achievement-badge {
  transform: rotate(-4deg);
}

.achievement-card h3,
.achievement-card p {
  position: relative;
  z-index: 1;
}

.achievement-card h3 {
  max-width: 100%;
  margin-bottom: 10px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.data-note {
  max-width: 1180px;
  margin: 28px auto 0;
  min-height: auto;
  background: #d9f3f8;
}

.phone {
  position: relative;
  width: min(390px, 100%);
  justify-self: center;
  padding: 12px;
  border-radius: 40px;
  color: var(--ink);
  background: #111;
  box-shadow: 0 0 0 1px var(--ink), 16px 16px 0 1px var(--orange);
  transform: rotate(2deg);
}

.phone-screen {
  overflow: hidden;
  height: min(690px, 78vh);
  min-height: 620px;
  border: 4px solid #222;
  border-radius: 30px;
  background: var(--cream);
}

.phone-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cream);
}

.inline-demo-reset {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--orange);
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}

.inline-demo-reset:hover,
.inline-demo-reset:focus-visible {
  transform: translate(4px, 4px) rotate(-1deg);
  box-shadow: 0 0 0 1px var(--ink);
}

.phone-status {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
}

.phone-app-top {
  position: relative;
  padding: 15px;
  border-bottom: 4px solid var(--ink);
  background: var(--paper);
}

.phone-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phone-app-top h3 {
  margin: 10px 0 5px;
  font-size: 35px;
}

.phone-app-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 88px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: white;
  box-shadow: 0 0 0 1px var(--ink), 3px 3px 0 1px var(--ink);
  transform: rotate(2deg);
}

.phone-app-title {
  max-width: calc(100% - 104px);
}

.phone-content {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.phone-card {
  padding: 14px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: white;
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
  font-weight: 900;
}

.phone-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.phone-stat {
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
}

.phone-stat b {
  display: block;
  font-size: 20px;
}

.phone-progress {
  height: 16px;
  margin-top: 10px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: white;
}

.phone-progress i {
  display: block;
  width: 37.5%;
  height: 100%;
  background: var(--orange);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.phone-logo {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.phone-logo span {
  padding: 3px 7px;
  border: 3px solid var(--ink);
  color: white;
  background: var(--ink);
}

.qr {
  width: min(205px, 74%);
  aspect-ratio: 1;
  margin: 8px auto;
  border: 5px solid var(--ink);
  background:
    linear-gradient(90deg, var(--ink) 14px, transparent 14px) 0 0 / 34px 34px,
    linear-gradient(var(--ink) 14px, transparent 14px) 0 0 / 34px 34px,
    radial-gradient(circle at 70% 72%, var(--orange) 0 17px, transparent 18px),
    white;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: white;
  font-weight: 900;
}

.phone-button {
  min-height: 52px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
  font-weight: 900;
}

.phone-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.phone-button.dnf {
  color: var(--ink);
  background: #ffd7c8;
}

.phone-tabbar span {
  padding: 9px 2px;
}

.phone-tabbar .active {
  color: var(--ink);
  background: var(--orange);
}

.faq {
  max-width: 960px;
  margin: 48px auto 0;
}

.faq-item {
  margin: 18px 0;
  padding: 24px;
  cursor: pointer;
  transform: rotate(var(--r));
}

.faq-item h3 {
  margin: 0;
  font-size: 26px;
}

.faq-item p {
  display: none;
  margin-top: 12px;
}

.faq-item.open p { display: block; }

.final {
  min-height: auto;
  padding-block: 98px;
}

.final-box {
  max-width: 1150px;
  margin: auto;
  padding: 48px;
  border: 8px solid var(--ink);
  border-radius: 48px;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--ink), 16px 16px 0 1px var(--ink);
  transform: rotate(-1deg);
}

.final-box p {
  max-width: 850px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  margin-top: 26px;
}

.signup-form input {
  min-height: 56px;
  padding: 12px 14px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.signup-form button {
  min-height: 56px;
  padding: 12px 18px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--ink), 6px 6px 0 1px var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  max-width: 860px;
  margin-top: 28px;
}

.notify-form input[type="email"] {
  min-height: 58px;
  padding: 12px 16px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.notify-form button {
  min-height: 58px;
  padding: 12px 18px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--ink), 6px 6px 0 1px var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notify-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 840px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.notify-consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--ink);
}

.notify-consent a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.notify-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.notify-form.is-loading button {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 1px var(--ink);
}

.form-note.is-success {
  color: var(--cream);
}

.form-note.is-error {
  color: var(--ink);
  background: var(--cream);
  display: inline-block;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.form-note {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 900;
}

.notify-captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 36, 63, .74);
}

.notify-captcha-modal[hidden] {
  display: none;
}

.notify-captcha-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink), 12px 12px 0 1px var(--orange);
}

.notify-captcha-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 24px;
  line-height: 1;
}

.notify-captcha-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(115px, 170px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  padding-right: 42px;
}

.notify-captcha-card .eyebrow {
  margin-bottom: 8px;
  color: var(--orange-text);
}

.notify-captcha-card h3 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: .92;
}

.notify-captcha-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.notify-captcha-scene {
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

.notify-captcha-scene img,
.notify-captcha-option img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notify-captcha-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.notify-captcha-option {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.notify-captcha-option.is-selected {
  border-color: var(--orange);
  background: var(--paper);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 5px rgba(255, 90, 31, .45), 1px 1px 0 var(--ink);
  animation: notifySelectionWobble 1.05s ease-in-out infinite;
}

@keyframes notifySelectionWobble {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .38), 1px 1px 0 var(--ink);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 90, 31, .18), 1px 1px 0 var(--ink);
  }
}

.notify-success-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 38px);
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 12px 12px 0 1px var(--ink);
}

.notify-success-card h3 {
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 66px);
  line-height: .9;
}

.notify-success-card p {
  margin: 0 0 22px;
  max-width: 430px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.notify-success-card .notify-captcha-close {
  background: var(--paper);
  color: var(--ink);
}

.notify-success-nice {
  min-height: 54px;
  padding: 10px 22px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--sea);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
  font: inherit;
  font-weight: 900;
}

.notify-captcha-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.notify-captcha-actions button {
  min-height: 52px;
  padding: 10px 16px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
  font: inherit;
  font-weight: 900;
}

.notify-captcha-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.notify-captcha-status {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 26px var(--page-gutter);
  border-top: 5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-weight: 900;
}

.footer-logo {
  display: block;
  width: 148px;
  height: 72px;
  padding: 5px;
  border: 4px solid var(--cream);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--orange);
  transform: rotate(-2deg);
}

.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-route .arrow {
  color: var(--orange-text);
}

.footer-legend {
  max-width: 760px;
  color: rgba(255, 244, 223, .78);
  font-size: 13px;
  line-height: 1.35;
}

.footer-legend .legend-mark {
  margin-right: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-legal a {
  padding: 8px 12px;
  border: 3px solid var(--cream);
  border-radius: 999px;
  color: var(--cream);
  background: transparent;
  box-shadow: 3px 3px 0 var(--orange);
  transition: transform .14s, box-shadow .14s;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--orange);
}

@media (min-width: 981px) and (max-width: 1680px) {
  section {
    min-height: auto;
    padding: 84px var(--page-gutter);
  }

  .nav {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .badge {
    width: 164px;
    height: 80px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    gap: clamp(30px, 4vw, 52px);
  }

  h1 {
    margin: 22px 0 18px;
    font-size: clamp(48px, 6.1vw, 92px);
    letter-spacing: -4px;
  }

  h2 {
    font-size: clamp(40px, 4.8vw, 68px);
  }

  h3 {
    font-size: 28px;
  }

  .lead {
    max-width: 760px;
    font-size: clamp(18px, 1.65vw, 25px);
  }

  .note {
    font-size: 16px;
  }

  .btn {
    min-height: 52px;
    padding: 12px 18px;
  }

  .logo-card {
    width: min(100%, 500px);
    min-height: 400px;
    justify-self: center;
    border-radius: 38px;
  }

  .stats,
  .route-title,
  .route-stage,
  .grid,
  .steps-grid,
  .leaderboard-board,
  .achievement-grid,
  .data-note,
  .final-box {
    max-width: 1280px;
  }

  .route-title {
    margin-bottom: 44px;
    padding: 28px;
  }

  .route-stage {
    grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
    gap: 34px;
  }

  .mini-map {
    height: 700px;
  }

  .route-copy {
    gap: 26px;
  }

  .card,
  .route-card,
  .step-card {
    padding: 22px;
  }

  .card {
    min-height: 244px;
  }

  .step-card {
    min-height: 232px;
  }

  .route-card p,
  .card p,
  .card li,
  .faq-item p {
    font-size: 18px;
  }

  .steps-grid,
  .achievement-grid {
    gap: 16px;
  }

  .icon-box {
    width: 86px;
    min-width: 86px;
    height: 74px;
    font-size: 30px;
  }

  .phone {
    width: min(350px, 100%);
  }

  .phone-screen {
    height: min(630px, 72vh);
    min-height: 560px;
  }

  .final {
    padding-block: 82px;
  }

  .final-box {
    padding: 40px;
  }
}

@media (max-width: 980px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .nav { position: fixed; align-items: flex-start; }
  .badge {
    width: 108px;
    height: 54px;
    padding: 4px;
    border-width: 4px;
    border-radius: 18px;
    box-shadow: 0 0 0 1px var(--ink), 4px 4px 0 1px var(--ink);
  }
  .nav-links a:not(:last-child):not(.language-switch) { display: none; }
  .nav-links {
    position: static;
    z-index: 70;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .nav-links a.nav-easteregg {
    order: 1;
    display: inline-flex;
  }
  .nav-links a.language-switch {
    order: 2;
    display: inline-flex;
    align-self: flex-end;
  }
  .mobile-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 4px solid var(--ink);
    border-radius: 22px;
    background: rgba(255, 253, 247, .96);
    box-shadow: 0 0 0 1px var(--ink), 5px 5px 0 1px var(--ink);
    backdrop-filter: blur(8px);
  }
  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 6px 4px;
    border: 3px solid var(--ink);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
  }
  .mobile-bottom-nav a:last-child {
    color: var(--ink);
    background: var(--paper);
  }
  .hero,
  .route-stage,
  .app-section,
  .steps-grid,
  .grid,
  .stats { grid-template-columns: 1fr; }
  .rules-grid .time-card,
  .rules-grid .fairplay-card {
    grid-column: auto;
    transform: rotate(var(--r));
  }
  .logo-card { min-height: 340px; }
  .logo-inner { min-height: 320px; }
  .map-panel { position: relative; top: auto; padding: 16px; }
  .map-panel h3 { font-size: 26px; }
  .mini-map { height: 680px; }
  .route-panel-media { height: 72%; top: 51%; }
  .route-rider { width: 17%; }
  .leaderboard-board,
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement-badge {
    width: 68px;
    height: 68px;
  }
  .sea-band { height: 82px; }
  .gate-band { height: 72px; }
  .sea-band,
  .gate-label { font-size: 17px; }
  .sea-asset {
    right: -28px;
    top: 78px;
    width: 154px;
    height: 108px;
  }
  .berlin-asset {
    left: 64%;
    bottom: 42px;
    width: 170px;
    height: 118px;
  }
  h1 { letter-spacing: -3px; }
  .hero .kicker { margin-top: 30px; }
  footer { grid-template-columns: 1fr; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 560px) {
  section { padding-inline: var(--page-gutter); }
  h1 { font-size: 56px; }
  h2 { font-size: 44px; }
  .nav { left: 12px; right: 12px; }
  .badge {
    width: 86px;
    height: 44px;
    border-width: 3px;
    border-radius: 15px;
    box-shadow: 0 0 0 1px var(--ink), 3px 3px 0 1px var(--ink);
  }
  .badge img { border-radius: 10px; }
  .nav-links a.nav-easteregg {
    max-width: min(210px, calc(100vw - 132px));
    padding: 8px 11px;
    font-size: 12px;
  }
  .nav-links a.language-switch {
    padding: 7px 10px;
    border-width: 3px;
  }
  .mobile-bottom-nav {
    right: 8px;
    left: 8px;
    gap: 5px;
    padding: 6px;
    border-width: 3px;
  }
  .mobile-bottom-nav a {
    min-height: 42px;
    border-width: 2px;
    font-size: 11px;
  }
  .nav-pigeon {
    left: 10px;
    bottom: calc(100% - 6px);
    width: 50px;
  }
  .badge { font-size: 22px; }
  .mini-map { height: 590px; border-width: 3px; }
  .route-panel-media { height: 70%; }
  .sea-band { height: 72px; }
  .gate-band { height: 64px; }
  .sea-band,
  .gate-label { font-size: 14px; }
  .sea-asset {
    right: -30px;
    top: 68px;
    width: 128px;
    height: 92px;
  }
  .berlin-asset {
    left: 66%;
    bottom: 34px;
    width: 140px;
    height: 96px;
  }
  .final-box { padding: 30px; }
  .signup-form,
  .notify-form { grid-template-columns: 1fr; }
  .notify-captcha-top {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .notify-captcha-scene {
    width: min(170px, 52vw);
  }
  .notify-captcha-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notify-captcha-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 380px) {
  section { padding-inline: 12px; }
  .card,
  .route-card,
  .route-title,
  .final-box,
  .stat,
  .step-card,
  .phone { transform: none; }
  .card { padding: 20px; }
  .final-box {
    padding: 22px;
    border-radius: 30px;
  }
  .notify-form,
  .notify-form input[type="email"],
  .notify-form button,
  .notify-consent {
    min-width: 0;
    max-width: 100%;
  }
  .notify-form input[type="email"],
  .notify-form button { width: 100%; }
  .ranking-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .ranking-row strong { overflow-wrap: anywhere; }
  .ranking-row em { grid-column: 2; }
}
