:root {
  --navy: #073f78;
  --blue: #075ba7;
  --cyan: #13b8ca;
  --cyan-soft: #e7f8fa;
  --ink: #12212e;
  --muted: #62717f;
  --line: #dce5ea;
  --paper: #f5f8fa;
  --white: #fff;
  --orange: #f3a43b;
  --green: #29a66f;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 55, 86, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--white); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header { height: 86px; max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 20; background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.brand span { display: grid; line-height: 1; text-transform: uppercase; }
.brand b { color: var(--navy); font-size: 15px; letter-spacing: -.5px; }
.brand small { color: var(--cyan); font-size: 14px; font-weight: 800; letter-spacing: 2px; margin-top: 5px; }
nav { display: flex; align-items: center; gap: 32px; font-weight: 600; font-size: 14px; }
nav a { transition: color .2s; }
nav a:hover { color: var(--blue); }
.header-actions, .hero-actions { display: flex; align-items: center; gap: 12px; }
.participant-badge { display: grid; justify-items: end; line-height: 1.15; }
.participant-badge small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.participant-badge b { max-width: 180px; overflow: hidden; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; padding: 7px 9px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.profile-trigger:hover, .profile-trigger[aria-expanded="true"] { border-color: var(--line); background: #f5f9fa; }
.profile-trigger-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--cyan), var(--blue)); }
.profile-trigger-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-trigger-avatar i { grid-area: 1 / 1; font-size: 10px; font-style: normal; font-weight: 900; }
.profile-caret { color: var(--blue); font-size: 15px; transition: transform .2s; }
.profile-trigger[aria-expanded="true"] .profile-caret { transform: rotate(180deg); }
.profile-panel { position: absolute; top: 77px; right: 28px; width: min(410px, calc(100vw - 30px)); max-height: calc(100vh - 92px); overflow-y: auto; border: 1px solid #dbe6ea; border-radius: 22px; padding: 24px; background: #fff; box-shadow: 0 28px 80px rgba(7,39,65,.24); z-index: 50; }
.profile-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.profile-panel-head small { color: var(--blue); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.profile-panel-head h2 { margin: 4px 0 0; color: var(--navy); font-size: 22px; letter-spacing: -.7px; }
.profile-close { width: 31px; height: 31px; flex: none; border: 0; border-radius: 50%; color: var(--navy); background: #edf3f6; font-size: 19px; cursor: pointer; }
.profile-identity { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding: 20px 0 15px; }
.profile-avatar { position: relative; width: 72px; height: 72px; display: grid; place-items: center; overflow: visible; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 8px 22px rgba(7,91,167,.2); }
.profile-avatar > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.profile-avatar > span { grid-area: 1 / 1; font-size: 20px; font-weight: 900; }
.profile-avatar label { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--blue); font-size: 15px; cursor: pointer; }
.profile-avatar input { display: none; }
.profile-identity h3 { margin: 0; color: var(--navy); font-size: 17px; }
.profile-identity p { margin: 4px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.avatar-remove { margin-top: 7px; border: 0; border-bottom: 1px dashed #9aacb6; padding: 0 0 2px; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-meta span { min-width: 0; display: grid; gap: 4px; padding: 11px; border-radius: 11px; background: #f3f7f9; }
.profile-meta small, .profile-results small { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.profile-meta b { overflow: hidden; color: var(--navy); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; }
.profile-section { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.profile-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.profile-section-title h3 { margin: 0; color: var(--navy); font-size: 13px; }
.profile-section-title small { color: var(--muted); font-size: 8px; }
.profile-results { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.profile-results span { display: grid; gap: 3px; padding: 11px; border: 1px solid #dfe9ed; border-radius: 11px; background: #f8fbfc; }
.profile-results b { color: var(--navy); font-size: 18px; }
.profile-height { margin-top: 17px; border-top: 1px solid var(--line); }
.profile-height summary { display:flex; justify-content:space-between; padding:17px 1px 4px; color:var(--navy); font-size:11px; font-weight:800; cursor:pointer; list-style:none; }
.profile-height summary::-webkit-details-marker { display:none; }
.profile-height[open] summary span { transform:rotate(180deg); }
.profile-height form { display:grid; gap:9px; margin-top:12px; }
.profile-height label { display:grid; gap:5px; color:var(--navy); font-size:9px; font-weight:800; }
.profile-height input { padding:10px 11px; font-size:11px; }
.profile-height-warning { margin:0; color:var(--muted); font-size:8px; line-height:1.45; }
.profile-height .button { padding:11px; font-size:10px; }
.profile-team-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 13px; border-radius: 13px; color: #fff; background: linear-gradient(125deg, var(--navy), var(--blue)); }
.profile-team-card > i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.12); font-size: 19px; font-style: normal; }
.profile-team-card span { display: grid; gap: 3px; }
.profile-team-card b { font-size: 11px; }
.profile-team-card small { color: rgba(255,255,255,.67); font-size: 8px; line-height: 1.3; }
.team-create-form { display:grid; gap:10px; margin-top:12px; padding:12px; border:1px solid #dbe7eb; border-radius:12px; background:#f8fbfc; }
.team-search-results { display:grid; gap:6px; }
.team-search-results:empty { display:none; }
.team-search-user { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px; border:1px solid #dbe7eb; border-radius:9px; background:#fff; color:#29475d; font-size:12px; }
.team-search-user button { border:0; border-radius:7px; padding:5px 8px; background:#e8f5f7; color:#075b75; font-weight:700; cursor:pointer; }
.team-search-user.selected { background:#e8f5f0; border-color:#98d2bc; }
.team-invitations { display:grid; gap:8px; margin-top:12px; }
.team-invitation { padding:10px; border:1px solid #dbe7eb; border-radius:10px; background:#fff; font-size:12px; color:#29475d; }
.team-invitation small { display:block; color:#8194a1; margin-top:3px; }
.team-invitation-actions { display:flex; gap:6px; margin-top:8px; }
.team-invitation-actions button { border:1px solid #cfe5ea; border-radius:7px; padding:5px 8px; background:#f7fcfd; color:#075ba7; font-size:11px; font-weight:700; cursor:pointer; }
.profile-team-members { display:grid; gap:6px; margin-top:10px; }
.team-members-title { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.5px; }
.team-member-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 9px; border:1px solid #dbe7eb; border-radius:9px; background:#fff; }
.team-member-row span { display:grid; gap:2px; min-width:0; }
.team-member-row b { color:var(--navy); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.team-member-row small { color:var(--muted); font-size:8px; }
.team-member-row button { flex:none; border:1px solid #f0caca; border-radius:7px; padding:5px 7px; color:#a33d3d; background:#fff6f6; font-size:9px; font-weight:700; cursor:pointer; }
.personal-ranking-note { color:var(--muted); font-size:12px; }
.personal-ranking-rows { display:grid; gap:7px; margin-top:18px; text-align:left; }
.personal-ranking-row { display:grid; grid-template-columns:28px 34px 1fr auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid #dfe9ed; border-radius:10px; background:#f8fbfc; }
.personal-ranking-row > b { color:var(--blue); font-size:13px; text-align:center; }
.personal-ranking-avatar { width:34px; height:34px; display:grid; place-items:center; overflow:hidden; border-radius:50%; color:#fff; background:linear-gradient(145deg,var(--navy),var(--cyan)); font-size:11px; font-weight:800; }
.personal-ranking-avatar img { width:100%; height:100%; object-fit:cover; }
.personal-ranking-row span { display:grid; gap:2px; min-width:0; }
.personal-ranking-row span strong { overflow:hidden; color:var(--navy); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.personal-ranking-row span small { overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.personal-ranking-row > strong { color:var(--navy); font-size:12px; }
.personal-ranking-row.ranking-placeholder { color:var(--muted); opacity:.72; }
.personal-ranking-row.ranking-placeholder span strong, .personal-ranking-row.ranking-placeholder > strong { color:var(--muted); }
.ranking-empty { padding:16px; color:var(--muted); font-size:11px; text-align:center; }
.personal-ranking-empty { color:var(--muted); font-size:12px; }
.profile-password { margin-top: 17px; border-top: 1px solid var(--line); }
.profile-password summary { display: flex; justify-content: space-between; padding: 17px 1px 4px; color: var(--navy); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.profile-password summary::-webkit-details-marker { display: none; }
.profile-password[open] summary span { transform: rotate(180deg); }
.profile-password form { gap: 10px; margin-top: 13px; }
.profile-password label { font-size: 9px; }
.profile-password input { padding: 10px 11px; font-size: 11px; }
.profile-password .button { padding: 11px; font-size: 10px; }
.profile-logout { width: 100%; margin-top: 17px; border: 0; border-radius: 0; padding: 11px 0 2px; color: #c44848; background: transparent; font-size: 10px; font-weight: 800; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.profile-admin-link { display:block; margin-top:10px; color:var(--blue); font-size:10px; font-weight:800; text-align:center; }
.profile-message { min-height: 14px; margin: 8px 0 0; color: #ad3c3c; font-size: 9px; line-height: 1.35; text-align: center; }
.profile-message.success { color: var(--green); }
.profile-activity { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; padding-right: 2px; }
.profile-activity-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e1eaee; border-radius: 11px; background: #f8fbfc; }
.profile-activity-row > span { display: grid; gap: 3px; min-width: 0; }
.profile-activity-row b { color: var(--navy); font-size: 10px; }
.profile-activity-row small { color: var(--muted); font-size: 8px; }
.profile-activity-row strong { color: var(--blue); font-size: 13px; white-space: nowrap; }
.profile-activity-empty { margin: 0; padding: 12px; border-radius: 11px; color: var(--muted); background: #f8fbfc; font-size: 9px; text-align: center; }
.team-challenge { display:grid; gap:11px; margin-top:16px; padding:18px; border:1px solid #d9e7eb; border-radius:16px; background:#f8fbfc; }
.team-challenge-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.team-challenge-head small { color:var(--blue); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.team-challenge-head h3 { margin:4px 0 0; color:var(--navy); font-size:16px; }
.team-challenge-head > b { color:var(--blue); font-size:11px; white-space:nowrap; }
.team-challenge > p { margin:0; color:var(--ink); font-size:13px; line-height:1.45; }
.team-challenge-members { display:flex; flex-wrap:wrap; gap:5px; }
.team-challenge-member { padding:6px 8px; border-radius:8px; color:#7b4d32; background:#fff0e6; font-size:10px; }
.team-challenge-member.ready { color:#176944; background:#e8f7ef; }
.team-challenge form { display:grid; gap:8px; }
.team-challenge label { display:grid; gap:5px; color:var(--navy); font-size:10px; font-weight:800; }
.team-challenge input { padding:10px 11px; font-size:12px; }
.challenge-status { min-height:15px; color:var(--muted) !important; font-size:10px !important; }
.avatar-editor-dialog { width: min(390px, calc(100% - 30px)); padding: 24px; }
.avatar-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.avatar-editor-head small { color: var(--blue); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.avatar-editor-head h2 { margin: 4px 0 0; color: var(--navy); font-size: 23px; letter-spacing: -.7px; }
.avatar-editor-note { margin: 13px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.avatar-editor-canvas-wrap { width: min(280px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 50%; background: #eaf2f5; box-shadow: 0 8px 25px rgba(7,39,65,.16); touch-action: none; }
.avatar-editor-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.avatar-editor-canvas-wrap canvas:active { cursor: grabbing; }
.avatar-zoom { display: grid; gap: 7px; margin-top: 16px; color: var(--navy); font-size: 10px; font-weight: 800; }
.avatar-zoom input { padding: 0; accent-color: var(--blue); }
.avatar-editor-actions { display: flex; gap: 9px; margin-top: 18px; }
.avatar-editor-actions .button { flex: 1; }
.button { border: 0; border-radius: 12px; padding: 12px 19px; cursor: pointer; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(7, 91, 167, .2); }
.button-primary:hover { background: var(--navy); box-shadow: 0 12px 24px rgba(7, 91, 167, .3); }
.button-ghost { color: var(--navy); background: #edf4f8; }
.button-large { padding: 16px 23px; border-radius: 14px; }
.button-large span { margin-left: 14px; }
.menu-button { display: none; background: transparent; border: 0; font-size: 24px; color: var(--navy); }

.hero { background: linear-gradient(132deg, #f4fafb 0%, #e9f8fb 48%, #edf5fb 100%); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 580px; height: 580px; right: -230px; top: -260px; border: 90px solid rgba(19,184,202,.08); border-radius: 50%; }
.hero-grid { max-width: 1240px; margin: auto; min-height: 630px; padding: 80px 28px; display: grid; grid-template-columns: 1fr .92fr; gap: 70px; align-items: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: 1.8px; font-size: 12px; font-weight: 800; color: var(--blue); }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 32px; height: 2px; background: var(--cyan); }
h1 { font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -4px; margin: 25px 0; max-width: 650px; }
h1 em { color: var(--cyan); font-style: normal; }
.hero-lead { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 32px; }
.text-link { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--navy); padding: 10px 0 4px; }
.hero-note { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 38px; height: 38px; border: 3px solid white; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; margin-left: -9px; }
.avatar-stack span:first-child { margin-left: 0; background: var(--cyan); }
.avatar-stack span:nth-child(2) { background: var(--orange); }
.avatar-stack span:nth-child(3) { background: var(--green); }
.hero-note p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hero-note b { color: var(--ink); }

.journey-card { min-height: 0; aspect-ratio: 1280 / 704; background: var(--navy); border-radius: 32px; padding: 34px; color: #fff; box-shadow: 0 30px 80px rgba(7,63,120,.24); position: relative; overflow: hidden; isolation: isolate; }
.journey-card-shell { width: 100%; }
.journey-card-photo { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; border-radius: 32px; object-fit: cover; object-position: center; opacity: .92; filter: saturate(1.04) contrast(1.04) brightness(1.05); background: #071c30; }
.journey-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(4,29,50,.3) 0%, rgba(7,63,120,.02) 52%, rgba(3,28,50,.5) 100%); pointer-events: none; }
.journey-card::before { content: ""; width: 280px; height: 280px; border: 45px solid rgba(255,255,255,.05); border-radius: 50%; position: absolute; right: -100px; top: -90px; z-index: 0; pointer-events: none; }
.journey-card > *:not(.journey-card-photo) { position: relative; z-index: 1; }
.journey-countdown { display: block; min-height: 20px; margin: 0 0 8px; padding-left: 4px; color: var(--navy); }
.journey-countdown small { color: var(--navy); font-size: 12px; font-weight: 700; white-space: normal; }
.journey-countdown strong { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.journey-card-head { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.journey-card-head div { display: grid; gap: 4px; }
.journey-card small { color: rgba(255,255,255,.6); }
.journey-card-head strong { font-size: 18px; }
.live-pill { font-size: 11px; padding: 7px 12px; height: max-content; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px; background: rgba(255,255,255,.11); }
.distance-number { display: flex; align-items: baseline; gap: 10px; margin-top: 42px; }
.distance-number strong { font-size: 75px; line-height: 1; letter-spacing: -5px; }
.distance-number span { color: var(--cyan); font-size: 22px; font-weight: 800; }
.journey-card > p { margin: 7px 0 0; color: rgba(255,255,255,.75); }
.journey-card > p span { color: var(--cyan); margin: 0 6px; }
.mini-map { min-height: 190px; position: relative; margin-top: 8px; overflow: hidden; border-radius: 22px; background: #102d46; }
.mini-map svg { width: 100%; height: 100%; overflow: visible; }
.map-shape { fill: rgba(255,255,255,.045); }
.route-shadow { fill: none; stroke: rgba(19,184,202,.15); stroke-width: 12; }
.route-path { fill: none; stroke: url(#route-gradient); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 5 9; filter: url(#glow); }
.route-dots circle { fill: var(--cyan); stroke: #fff; stroke-width: 3; }
.map-label { position: absolute; bottom: 13px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.75); }
.map-label.start { left: 0; }.map-label.finish { right: 0; }
.journey-stats { position: absolute !important; left: 34px; right: 34px; bottom: 34px; display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
.journey-stats div { display: grid; gap: 5px; }
.journey-duration { display: flex !important; align-items: baseline; justify-content: flex-end; gap: 8px !important; text-align: right; }
.journey-duration small, .journey-duration span, .journey-duration b { color: #fff; font-family: inherit; font-size: 15px; line-height: 1.15; font-weight: 800; letter-spacing: 0; text-shadow: none; }

.quick-stats { max-width: 1184px; margin: -28px auto 0; position: relative; z-index: 4; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(5, 1fr); padding: 23px 28px; }
.quick-stats article { display: flex; align-items: center; gap: 13px; padding: 0 22px; border-left: 1px solid var(--line); }
.quick-stats article:first-child { border: 0; padding-left: 0; }
.quick-stats article:last-child { padding-right: 0; }
.stat-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.stat-icon.cyan { background: #e6f8fa; color: var(--cyan); }.stat-icon.blue { background: #e7f1fb; color: var(--blue); }.stat-icon.orange { background: #fff3e3; color: var(--orange); }.stat-icon.green { background: #e6f7ef; color: var(--green); }
.quick-stats article div { display: grid; gap: 3px; }
.quick-stats b { font-size: 14px; }.quick-stats small { color: var(--muted); font-size: 11px; }

.section { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; margin-bottom: 45px; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(35px, 4vw, 54px); letter-spacing: -2.5px; line-height: 1.06; margin: 13px 0 0; }
.section-heading p { color: var(--muted); line-height: 1.7; margin: 0; }
.category-switch { display: flex; background: var(--paper); padding: 7px; border-radius: 16px; margin-bottom: 24px; gap: 6px; }
.category-switch button { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 13px; cursor: pointer; font-weight: 800; color: var(--muted); }
.category-switch button span { font-size: 10px; font-weight: 600; margin-left: 5px; opacity: .7; }
.category-switch button.active { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(15,55,86,.08); }
.route-board { padding: 32px; background: var(--paper); border-radius: 26px; border: 1px solid #e8eef1; }
.route-board-top { display: flex; justify-content: space-between; align-items: end; }
.route-board-top > div { display: grid; gap: 4px; }
.route-board-top small { color: var(--muted); }.route-board-top b { font-size: 20px; }
.route-score { text-align: right; }.route-score b { color: var(--blue); font-size: 30px; }.route-score small { font-size: 11px; }
.progress-track { height: 8px; background: #dce6eb; border-radius: 10px; margin: 26px 0 36px; position: relative; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.progress-track i { position: absolute; top: 50%; width: 42px; height: 24px; display: grid; place-items: center; transform: translate(-50%,-50%); background: var(--navy); color: #fff; font-size: 9px; border-radius: 20px; font-style: normal; font-weight: 800; }
.stop-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stop-card { min-width: 0; position: relative; background: #fff; padding: 10px 10px 14px; border-radius: 15px; border: 1px solid transparent; display: grid; gap: 4px; overflow: hidden; }
.stop-card > span { position: absolute; top: 17px; left: 17px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.9); font-size: 9px; font-weight: 800; z-index: 2; }
.stop-photo { height: 112px; border-radius: 10px; background: linear-gradient(135deg, #dfe8ec, #c8d8df); margin-bottom: 7px; }
.stop-one { background: linear-gradient(145deg, rgba(7,91,167,.28), rgba(19,184,202,.75)), radial-gradient(circle at 30% 50%, #fff 0 15%, transparent 16%); }
.stop-two { background: linear-gradient(35deg, rgba(7,63,120,.85), rgba(19,184,202,.25)), linear-gradient(140deg, transparent 40%, white 41% 46%, transparent 47%); }
.stop-three { background: linear-gradient(145deg, rgba(243,164,59,.35), rgba(7,91,167,.8)), radial-gradient(circle at 65% 32%, white 0 12%, transparent 13%); }
.stop-card small { color: var(--muted); font-size: 9px; }.stop-card b { font-size: 12px; min-height: 34px; }.stop-card em { font-style: normal; font-size: 9px; color: var(--green); font-weight: 800; text-transform: uppercase; }
.stop-card.current { border-color: var(--cyan); box-shadow: 0 9px 22px rgba(19,184,202,.15); }.stop-card.current em { color: var(--orange); }
.stop-card.locked { opacity: .52; filter: grayscale(1); }.stop-card.locked em { color: var(--muted); }
.demo-caption { color: var(--muted); font-size: 11px; margin: 22px 0 0; }

/* Интерактивная карта команд */
.route-map-board { background: #f4f8fa; overflow: hidden; }
.map-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.map-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(41,166,111,.11); }
.map-stage-wrap { margin-top: 24px; border-radius: 20px; overflow: hidden; border: 1px solid #dce8ed; background: linear-gradient(#eaf8fb 0 48%, #eef5ed 48% 100%); }
.map-stage { position: relative; min-width: 760px; height: 440px; overflow: hidden; background: radial-gradient(circle at 18% 15%, rgba(255,255,255,.9), transparent 28%), linear-gradient(180deg, #e9f8fb, #edf6f7); }
.legacy-tournament-map { display: none; }
.legacy-map-controls { display: none; }
.map-stage::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(#91b6c6 1px, transparent 1px); background-size: 25px 25px; }
.map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.russia-land { filter: url(#map-shadow); stroke: rgba(7,91,167,.12); stroke-width: 2; }
.terrain-line { fill: none; stroke: rgba(7,91,167,.09); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map-route-halo { fill: none; stroke: rgba(19,184,202,.14); stroke-width: 19; stroke-linecap: round; }
.map-route { fill: none; stroke: url(#main-route); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 3 11; }
.category-route { display: block; }
.route-mode-note { display: flex; align-items: center; gap: 11px; width: max-content; max-width: 100%; margin-top: 16px; padding: 9px 12px; border: 1px solid #dce8ed; border-radius: 11px; background: #fff; }
.route-mode-note > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e8f7f8; font-size: 19px; }
.route-mode-note > div { display: grid; gap: 2px; }
.route-mode-note b { color: var(--navy); font-size: 11px; }
.route-mode-note small { color: var(--muted); font-size: 8px; }
.route-mode-legend { gap: 16px; }
.route-mode-legend > div { display: grid; grid-template-columns: 25px auto; column-gap: 6px; align-items: center; }
.route-mode-legend > div > span { grid-row: 1 / span 2; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #e8f7f8; font-size: 15px; }
.route-mode-legend > div > span img { width: 23px; height: 23px; object-fit: contain; }
.route-mode-legend b { font-size: 10px; }
.route-mode-legend small { font-size: 8px; }
.route-rule-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-stop { transition: opacity .25s; }
.map-stop circle, circle.map-stop { fill: #fff; stroke: #7d9aaa; stroke-width: 4; }
.map-stop.passed circle { fill: var(--cyan); stroke: #fff; }
.map-stop.finish circle { fill: var(--blue); stroke: #fff; }
.map-stop text { fill: var(--navy); font-size: 11px; font-weight: 800; }
.map-stop.extra-walker, .map-stop.extra-sport { opacity: 1; }
.map-decor { fill: none; stroke: rgba(7,91,167,.13); stroke-width: 4; stroke-linejoin: round; }
.route-vehicle { position: absolute; z-index: 5; display: grid; width: 40px; height: 40px; margin: -20px 0 0 -20px; place-items: center; border: 2px solid #fff; border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 7px 18px rgba(12,57,85,.23); font-size: 24px; line-height: 1; }
.route-vehicle-chill { animation: vehicle-chill 16s ease-in-out infinite; }
.route-vehicle-walker { animation: vehicle-walker 13s linear infinite; }
.route-vehicle-sport { animation: vehicle-sport 15s ease-in-out infinite; }
.route-vehicle img { width: 34px; height: 34px; object-fit: contain; }
@keyframes vehicle-chill {
  0% { left: 6%; top: 64%; transform: rotate(-25deg); }
  25% { left: 28%; top: 20%; transform: rotate(15deg); }
  52% { left: 60%; top: 78%; transform: rotate(25deg); }
  78% { left: 76%; top: 72%; transform: rotate(-5deg); }
  100% { left: 94%; top: 66%; transform: rotate(-25deg); }
}
@keyframes vehicle-walker {
  0% { left: 6%; top: 64%; transform: scaleX(1); }
  50% { left: 50%; top: 65%; transform: scaleX(1); }
  100% { left: 94%; top: 66%; transform: scaleX(-1); }
}
@keyframes vehicle-sport {
  0% { left: 6%; top: 64%; transform: scaleX(1); }
  24% { left: 30%; top: 79%; transform: scaleX(1); }
  50% { left: 65%; top: 30%; transform: scaleX(1); }
  75% { left: 79%; top: 60%; transform: scaleX(-1); }
  100% { left: 94%; top: 66%; transform: scaleX(-1); }
}
.team-markers { position: absolute; inset: 0; z-index: 4; }
.team-marker { --marker-color: var(--cyan); position: absolute; transform: translate(-50%,-95%); border: 0; padding: 0; background: transparent; cursor: pointer; color: var(--ink); transition: transform .2s, z-index .2s; z-index: 2; }
.team-marker > span.team-marker-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--marker-color); background: #fff; border: 3px solid var(--marker-color); border-radius: 13px; transform: none; box-shadow: 0 7px 17px rgba(12,57,85,.28); font-size: 23px; line-height: 1; }
.team-marker > span.team-marker-icon img { width: 34px; height: 34px; object-fit: contain; }
.team-marker-chill > span.team-marker-icon { width: 31px; height: 31px; border: 0; border-radius: 0; background: var(--marker-color); box-shadow: none; -webkit-mask: url('assets/routes/airplane.png') center / contain no-repeat; mask: url('assets/routes/airplane.png') center / contain no-repeat; }
.team-marker-chill > span.team-marker-icon img { display: none; }
.team-marker-chill:hover > span.team-marker-icon, .team-marker-chill.active > span.team-marker-icon { box-shadow: 0 0 0 5px color-mix(in srgb, var(--marker-color) 22%, transparent); }
.team-marker-rank { position: absolute; right: -6px; bottom: -5px; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--marker-color); font-size: 8px; font-style: normal; font-weight: 900; }
.team-marker > b { position: absolute; left: 50%; top: -29px; transform: translateX(-50%); padding: 5px 8px; color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(18,57,82,.14); border-radius: 7px; font-size: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.team-marker:hover, .team-marker.active { transform: translate(-50%,-105%) scale(1.12); z-index: 6; }
.team-marker:hover > b, .team-marker.active > b { opacity: 1; }
.team-marker.active > span { box-shadow: 0 0 0 5px rgba(7,91,167,.16), 0 7px 17px rgba(12,57,85,.28); }
.team-marker.active > span.team-marker-icon { box-shadow: 0 0 0 5px rgba(7,91,167,.16), 0 7px 17px rgba(12,57,85,.28); }
.map-scale { position: absolute; left: 25px; bottom: 23px; display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,.88); color: var(--muted); font-size: 9px; font-weight: 700; }
.map-scale span { width: 38px; border-top: 3px dashed var(--blue); }
.map-dashboard { display: grid; grid-template-columns: 1.12fr .88fr; gap: 15px; margin-top: 15px; }
.selected-team, .map-team-list { background: #fff; border: 1px solid #e1e9ed; border-radius: 18px; padding: 20px; }
.selected-team { --team-color: var(--cyan); }
.selected-team-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.team-color { width: 12px; height: 46px; border-radius: 20px; background: var(--team-color); }
.selected-team-head div { display: grid; gap: 2px; }
.selected-team-head small, .selected-team-head p { color: var(--muted); font-size: 9px; margin: 0; }
.selected-team-head h3 { margin: 0; font-size: 19px; }
.team-place { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--team-color); background: #edf4f8; }
.selected-team-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }
.selected-team-numbers div { display: grid; gap: 2px; padding-right: 9px; border-right: 1px solid var(--line); }
.selected-team-numbers div:last-child { border: 0; }
.selected-team-numbers strong { font-size: 19px; }.selected-team-numbers small { color: var(--muted); font-size: 8px; }
.team-route-progress { height: 6px; margin-top: 18px; border-radius: 10px; background: #e6edef; overflow: hidden; }
.team-route-progress span { display: block; height: 100%; border-radius: inherit; background: var(--team-color); transition: width .35s; }
.next-stop { margin: 8px 0 0; color: var(--muted); font-size: 9px; }.next-stop b { color: var(--ink); }
.map-team-list { padding: 13px; }
.map-team-list-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px 10px; }.map-team-list-head b { font-size: 12px; }.map-team-list-head small { color: var(--muted); font-size: 8px; }
#mapTeamList { display: grid; gap: 3px; }
.map-team-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 0; border-radius: 10px; padding: 7px; background: transparent; cursor: pointer; text-align: left; transition: background .2s; }
.map-team-item:hover, .map-team-item.active { background: #f0f6f8; }
.map-team-item i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-size: 9px; font-style: normal; color: #fff; font-weight: 800; background: var(--marker-color); }
.map-team-item span { display: grid; gap: 1px; }.map-team-item b { font-size: 10px; }.map-team-item small { font-size: 8px; color: var(--muted); }.map-team-item strong { font-size: 11px; color: var(--navy); }
.next-object-card { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; margin-top: 15px; background: #fff; border: 1px solid #e1e9ed; border-radius: 18px; padding: 12px; }
.next-object-image { height: 85px; border-radius: 12px; background: linear-gradient(145deg, rgba(7,91,167,.35), rgba(19,184,202,.75)), radial-gradient(circle at 65% 35%, #fff 0 10%, transparent 11%); display: flex; align-items: flex-end; padding: 10px; }
.next-object-image span { color: #fff; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.next-object-card > div:nth-child(2) { display: grid; gap: 4px; }.next-object-card small { color: var(--blue); font-size: 8px; text-transform: uppercase; font-weight: 800; }.next-object-card h3 { font-size: 14px; margin: 0; }.next-object-card p { color: var(--muted); font-size: 9px; margin: 0; line-height: 1.5; }
.next-object-card button { border: 0; border-radius: 10px; background: #edf2f4; color: #8a9aa5; padding: 11px 13px; font-size: 9px; font-weight: 800; }
.chill-challenge { margin-top: 15px; padding: 23px; border-radius: 18px; color: #fff; background: linear-gradient(130deg, #073f78, #075ba7 65%, #08a8ba); display: grid; grid-template-columns: 1fr 180px; gap: 25px; position: relative; overflow: hidden; }
.chill-challenge::after { content: "?"; position: absolute; right: 190px; bottom: -66px; font-size: 190px; line-height: 1; color: rgba(255,255,255,.04); font-weight: 900; }
.route-map-board:not([data-map-category="chill"]) .chill-challenge { display: none; }
.challenge-copy { position: relative; z-index: 2; }
.challenge-label { display: flex; align-items: center; gap: 10px; }.challenge-label span { padding: 5px 8px; border-radius: 7px; color: var(--navy); background: #8ce9ef; font-size: 8px; text-transform: uppercase; font-weight: 900; letter-spacing: .8px; }.challenge-label small { color: rgba(255,255,255,.58); font-size: 8px; }
.challenge-copy h3 { max-width: 650px; font-size: 16px; line-height: 1.45; margin: 15px 0; }
.challenge-hint { margin: -5px 0 13px; color: #a8edf1; font-size: 9px; }
.challenge-answers { display: flex; gap: 7px; flex-wrap: wrap; }.challenge-answers button { padding: 8px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }.challenge-answers button:hover { background: rgba(255,255,255,.16); }.challenge-answers button:disabled { opacity: .45; cursor: default; }
.challenge-result { margin-top: 12px; padding: 9px 11px; width: max-content; max-width: 100%; border-radius: 9px; color: #fff; background: rgba(255,255,255,.12); font-size: 9px; font-weight: 700; }.challenge-result.success { color: #bff7d9; }.challenge-result.error { color: #ffd2c9; }
.challenge-reward { position: relative; z-index: 2; display: grid; align-content: center; gap: 7px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.16); }.challenge-reward > small { color: rgba(255,255,255,.55); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }.challenge-reward strong { font-size: 19px; }.challenge-reward strong span { color: #8ce9ef; font-size: 35px; }
.attempts { display: flex; align-items: center; gap: 5px; }.attempts i { width: 8px; height: 8px; border-radius: 50%; background: #8ce9ef; }.attempts i.used { background: rgba(255,255,255,.18); }.attempts span { margin-left: 4px; color: rgba(255,255,255,.55); font-size: 8px; }
.hint-button { justify-self: start; margin-top: 7px; padding: 7px 0; border: 0; border-bottom: 1px dashed rgba(255,255,255,.4); color: #fff; background: transparent; font-size: 8px; cursor: pointer; }

.ratings-section { max-width: none; background: #f3f7f9; padding-left: max(28px, calc((100vw - 1184px)/2)); padding-right: max(28px, calc((100vw - 1184px)/2)); }
.rating-tabs { display: flex; gap: 7px; margin-bottom: 24px; }
.rating-tabs button { padding: 11px 17px; border: 0; border-radius: 10px; background: #e3ebef; color: var(--muted); font-weight: 700; cursor: pointer; }
.rating-tabs button.active { background: var(--navy); color: #fff; }
.rating-layout { display: grid; grid-template-columns: .36fr .64fr; gap: 20px; }
.leader-card { border-radius: 24px; padding: 30px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(7,63,120,.18); }
.leader-card::after { content: "01"; position: absolute; right: -8px; bottom: -38px; font-size: 160px; font-weight: 800; color: rgba(255,255,255,.05); }
.leader-crown { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.13); color: #ffd666; margin-bottom: 25px; }
.leader-place { font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--cyan); font-weight: 800; }
.leader-card h3 { font-size: 27px; margin: 8px 0 5px; }.leader-card p { color: rgba(255,255,255,.65); margin: 0; font-size: 12px; }
.leader-score { margin: 28px 0 12px; display: flex; align-items: baseline; gap: 7px; }.leader-score strong { font-size: 48px; }.leader-score span { color: rgba(255,255,255,.65); }
.leader-progress { height: 5px; background: rgba(255,255,255,.14); border-radius: 5px; }.leader-progress span { height: 100%; display: block; border-radius: 5px; background: var(--cyan); }
.leader-card > small { display: block; margin-top: 9px; }
.rating-table-wrap { background: #fff; border-radius: 24px; padding: 20px; }
.table-filter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.table-filter button { border: 0; background: transparent; color: var(--muted); padding: 7px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; }.table-filter button.active { color: var(--blue); background: #eaf3fa; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; text-align: left; padding: 15px 10px 10px; }td { padding: 13px 10px; border-top: 1px solid #edf1f3; }td:first-child { width: 60px; }td:nth-last-child(-n+2) { text-align: center; }th:nth-last-child(-n+2) { text-align: center; }td strong { display: block; }td small { color: var(--muted); font-size: 9px; }.place { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #edf1f3; }.place.gold { background: #fff2c9; color: #9c6c00; }.place.silver { background: #e9edf0; color: #5a6872; }.place.bronze { background: #f6e6dc; color: #a96236; }
.people-rating { background: #fff; border-radius: 24px; padding: 35px; text-align: center; }.podium { display: flex; justify-content: center; align-items: end; gap: 25px; min-height: 190px; }.podium article { display: grid; justify-items: center; gap: 5px; position: relative; }.podium article > span { width: 26px; height: 26px; display: grid; place-items: center; background: #e8eef2; border-radius: 50%; font-size: 10px; font-weight: 800; position: absolute; right: 0; top: -3px; }.podium article > div { width: 70px; height: 70px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--cyan); border: 5px solid #e9f8fa; }.podium .first > div { width: 95px; height: 95px; background: var(--navy); border-color: #fff1c8; }.podium b { font-size: 13px; }.podium small { color: var(--muted); }.people-rating > p { color: var(--muted); font-size: 12px; margin-top: 25px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.steps-grid article { border: 1px solid var(--line); border-radius: 20px; padding: 25px; min-height: 235px; position: relative; transition: transform .25s, box-shadow .25s; }
.steps-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.steps-grid article > span { position: absolute; top: 21px; right: 22px; color: #cbd6dc; font-size: 12px; font-weight: 800; }
.steps-grid i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--cyan-soft); color: var(--blue); font-size: 25px; font-style: normal; overflow: hidden; }
.steps-grid i img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.steps-grid h3 { font-size: 18px; margin: 27px 0 10px; }.steps-grid p { color: var(--muted); line-height: 1.6; font-size: 12px; }
.cta-section { max-width: 1184px; margin: 0 auto 80px; padding: 55px 60px; border-radius: 28px; background: linear-gradient(115deg, var(--navy), var(--blue) 55%, var(--cyan)); color: #fff; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.cta-section::after { content: ""; position: absolute; width: 280px; height: 280px; border: 40px solid rgba(255,255,255,.06); border-radius: 50%; right: 20%; top: -100px; }
.section-kicker.light { color: #80e6ee; }.cta-section h2 { font-size: 40px; line-height: 1.08; letter-spacing: -2px; margin: 12px 0 0; }.button-light { color: var(--navy); background: #fff; position: relative; z-index: 2; }
footer { min-height: 130px; max-width: 1240px; padding: 25px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }.footer-brand { transform: scale(.84); transform-origin: left center; }footer > a { color: var(--navy); font-weight: 800; }

dialog { width: min(500px, calc(100% - 30px)); border: 0; border-radius: 25px; padding: 38px; box-shadow: 0 30px 90px rgba(7,39,65,.28); }dialog::backdrop { background: rgba(10,32,48,.58); backdrop-filter: blur(4px); }dialog h2 { font-size: 34px; letter-spacing: -1.5px; margin: 10px 0; }dialog > p { color: var(--muted); line-height: 1.6; font-size: 13px; }.dialog-close { position: absolute; right: 18px; top: 15px; border: 0; background: #edf3f6; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 20px; }form { display: grid; gap: 15px; margin-top: 26px; }label { display: grid; gap: 7px; font-size: 11px; font-weight: 800; }input, select { width: 100%; border: 1px solid var(--line); background: #f8fafb; border-radius: 11px; padding: 13px; color: var(--ink); outline: 0; }input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(19,184,202,.12); }.form-success { padding: 25px; border-radius: 15px; background: #e8f7ef; margin-top: 24px; }.form-success b { color: var(--green); }.form-success p { margin-bottom: 0; font-size: 12px; }.hidden { display: none !important; }

@media (max-width: 960px) {
  nav { display: none; }.site-header.menu-open > nav { position: absolute; display: grid; gap: 0; top: 72px; left: 0; right: 0; padding: 10px 18px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 25px rgba(7,39,65,.12); z-index: 30; }.site-header.menu-open nav a { padding: 11px 0; }.menu-button { display: block; position: relative; z-index: 31; cursor: pointer; pointer-events: auto; }.header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-top: 60px; }.hero-copy { max-width: 720px; }.journey-card { min-height: auto; }
  .quick-stats { grid-template-columns: 1fr 1fr; margin-left: 25px; margin-right: 25px; }.quick-stats article:nth-child(3) { border-left: 0; }.quick-stats article { padding: 12px 20px; }
  .stop-grid { grid-template-columns: repeat(3, 1fr); }.rating-layout { grid-template-columns: 1fr; }.steps-grid { grid-template-columns: 1fr 1fr; }.cta-section { margin-left: 28px; margin-right: 28px; }
  .map-stage-wrap { overflow-x: auto; }.map-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 72px; padding: 0 17px; }.brand img { width: 44px; height: 44px; }.brand span { display: none; }.participant-badge { display: none; }.profile-trigger { padding: 5px; }.profile-caret { display: none; }.profile-panel { position: fixed; top: 65px; right: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 73px); padding: 20px; }.header-actions .button-ghost { padding: 9px 12px; font-size: 10px; }.header-actions .button-primary { padding: 10px 13px; font-size: 11px; }.menu-button { order: -1; }
  .hero-grid { padding: 48px 18px 58px; }.eyebrow { font-size: 9px; }.hero h1 { font-size: 48px; letter-spacing: -2.8px; }.hero-lead { font-size: 15px; }.hero-actions { align-items: stretch; flex-direction: column; }.text-link { width: max-content; }.journey-card { padding: 24px; border-radius: 24px; }.journey-card-photo { border-radius: 24px; }.journey-stats { left: 24px; right: 24px; bottom: 24px; }.distance-number strong { font-size: 60px; }.mini-map { height: 155px; }
  .quick-stats { margin: -22px 15px 0; padding: 15px; grid-template-columns: 1fr; }.quick-stats article, .quick-stats article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 12px 4px; }.quick-stats article:first-child { border-top: 0; padding: 12px 4px; }
  .section { padding: 75px 18px; }.section-heading { grid-template-columns: 1fr; gap: 20px; }.section-heading h2 { font-size: 38px; }.category-switch { overflow-x: auto; }.category-switch button { min-width: 135px; }.category-switch button span { display: block; margin-top: 3px; }
  .route-board { padding: 20px 14px; }.stop-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 7px; }.stop-card { min-width: 190px; scroll-snap-align: start; }.route-score b { font-size: 23px; }
  .map-stage { height: 360px; }.map-stage-wrap { margin-left: -4px; margin-right: -4px; }.map-status { display: none; }.map-team-list-head small { display: none; }
  .route-mode-legend { width: 100%; max-width: 100%; gap: 7px; justify-content: space-between; }.route-mode-legend > div { min-width: 0; flex: 1; }.route-mode-legend b, .route-mode-legend small { line-height: 1.15; }
  .next-object-card { grid-template-columns: 95px 1fr; }.next-object-card button { display: none; }.next-object-image { height: 92px; }
  .chill-challenge { grid-template-columns: 1fr; padding: 20px; }.challenge-reward { padding: 15px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }.challenge-answers button { flex: 1; min-width: 85px; }
  .ratings-section { padding-left: 18px; padding-right: 18px; }.rating-tabs { overflow-x: auto; }.rating-tabs button { white-space: nowrap; }.rating-table-wrap { padding: 10px; overflow-x: auto; }table { min-width: 560px; }.leader-card { padding: 24px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.steps-grid article { min-height: 145px; padding: 14px; border-radius: 14px; }.steps-grid article > span { top: 10px; right: 12px; font-size: 9px; }.steps-grid i { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }.steps-grid h3 { margin: 12px 0 6px; font-size: 14px; }.steps-grid p { font-size: 10px; line-height: 1.35; }.cta-section { margin: 0 14px 32px; padding: 20px 18px; flex-direction: column; align-items: flex-start; gap: 14px; border-radius: 20px; }.cta-section h2 { margin-top: 7px; font-size: 24px; line-height: 1.08; letter-spacing: -1px; }.cta-section .section-kicker.light { font-size: 10px; letter-spacing: 1px; }.cta-section .button-large { width: 100%; padding: 11px 15px; border-radius: 12px; font-size: 12px; text-align: center; }.cta-section::after { width: 150px; height: 150px; border-width: 20px; right: -35px; top: -60px; }footer { margin: 0 18px; flex-direction: column; align-items: flex-start; gap: 12px; }.footer-brand { display: none; }
  dialog { padding: 30px 22px; }
}

/* Standalone tournament table view: keep only the live route and ratings. */
html:not(.tournament-page) .route-section,
html:not(.tournament-page) .ratings-section { display: none !important; }
html.tournament-page .hero,
html.tournament-page .quick-stats,
html.tournament-page .rules-section,
html.tournament-page .cta-section,
html.tournament-page footer,
html.tournament-page .next-object-card { display: none !important; }
html.tournament-page .route-section { padding-top: 42px; }
html.tournament-page .ratings-section { padding-top: 20px; }
html.tournament-page main { min-height: 100vh; }
html.tournament-page .route-board-top,
html.tournament-page .route-mode-note,
html.tournament-page .route-rule-note,
html.tournament-page .map-dashboard,
html.tournament-page .team-challenge,
html.tournament-page .next-object-card { display: none !important; }
html.tournament-page .route-board { padding-top: 20px; }
html.tournament-page .map-stage-wrap { margin-top: 0; border: 0; background: transparent; }
html.tournament-page .map-stage { min-width: 0; height: auto; aspect-ratio: 1695 / 928; background: #07111c; }
html.tournament-page .map-stage::before,
html.tournament-page .map-stage > svg,
html.tournament-page .map-stage > .route-vehicle,
html.tournament-page .map-stage > .team-markers,
html.tournament-page .map-stage > .map-scale { display: none !important; }
html.tournament-page .legacy-tournament-map { display: block; width: 100%; height: 100%; object-fit: contain; }
html.tournament-page .map-stage { cursor: grab; touch-action: none; }
html.tournament-page .map-stage.is-dragging { cursor: grabbing; }
html.tournament-page .legacy-tournament-map { transform: translate3d(0,0,0) scale(1); transform-origin: center center; transition: transform .18s ease; user-select: none; -webkit-user-drag: none; }
html.tournament-page .legacy-map-controls { position: absolute; right: 12px; bottom: 12px; z-index: 8; display: flex; gap: 5px; }
html.tournament-page .legacy-map-controls button { min-width: 32px; height: 30px; padding: 0 7px; border: 1px solid #c8dce1; border-radius: 8px; color: #07519a; background: rgba(255,255,255,.94); font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 2px 7px rgba(7,39,65,.18); }
html.tournament-page .legacy-map-controls button:active { transform: translateY(1px); background: #eaf7f8; }

/* Compact step illustrations: uploaded source images must never size the cards. */
.steps-grid article > i {
  box-sizing: border-box;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px;
  overflow: hidden;
}
.steps-grid article > i > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 640px) {
  .steps-grid article > i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-basis: 34px;
  }
}
