:root { --game-dock: calc(62px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-top: 77px; }
.header-inner { gap: 14px; }
.site-header nav { gap: 3px; }
.site-header nav button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-inline: 11px; }
.site-header nav button .icon { width: 16px; height: 16px; }
.account-button { background: #1a281f; color: var(--text); min-height: 36px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.account-button:hover { border-color: var(--accent); }
.account-button span { flex: none; }
.solo-link { color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer .actions { gap: 6px 13px; justify-content: flex-end; }
.race-shell { margin-top: 21px; }
.hero:not([hidden]) + #sync-warning + .multiplayer .race-shell { margin-top: 0; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr); align-items: start; gap: 18px; }
.game-layout .runner-panel { grid-area: auto; position: sticky; top: 78px; }
.stage-main { display: grid; gap: 12px; min-width: 0; }
.race-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 15px; padding: 19px 24px; margin-bottom: 13px; border: 1px solid #53654b; border-radius: 19px; background: linear-gradient(88deg, #192a20fa 0%, #1c3024e8 52%, #203429b0), url('./assets/sentier.jpg') 52% 61% / cover; }
.race-banner h1 { font-size: clamp(1.8rem, 4.3vw, 3rem); line-height: 1.02; letter-spacing: -.05em; margin: 4px 0 9px; overflow-wrap: anywhere; }
.race-banner-facts, .race-banner-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: #d3dfcf; font-size: .78rem; }
.race-banner-facts span, .race-banner-stats span { display: inline-flex; align-items: center; gap: 4px; }
.race-banner-facts .icon, .race-banner-stats .icon { width: 14px; height: 14px; color: var(--accent); }
.race-banner-side { min-width: 151px; display: grid; gap: 8px; justify-items: end; }
.day-rail { display: grid; gap: 4px; grid-template-columns: repeat(5, 1fr); width: 100%; }
.day-rail span { height: 5px; border-radius: 7px; background: #344b3a; }
.day-rail .here { background: #95a871; }
.day-rail .done { background: var(--accent); }
.phase-nav { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 5px; position: sticky; top: 4px; z-index: 6; padding: 5px; margin-bottom: 14px; background: #14221a; border: 1px solid #3d5240; border-radius: 13px; box-shadow: 0 6px 17px #0a120b4d; }
.phase-nav button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 5px; color: #c0cdbf; background: #1e2c23; border: 1px solid transparent; border-radius: 8px; font-size: .86rem; font-weight: 700; }
.phase-nav button .icon { width: 17px; height: 17px; }
.phase-nav button:hover { border-color: #748d65; }
.phase-nav button[aria-pressed="true"] { color: var(--accent); border-color: #829957; background: #31452d; }
.phase-nav button small { border-radius: 10px; padding: 1px 5px; font-size: .63rem; color: #e1edca; background: #435337; font-variant-numeric: tabular-nums; }
.challenge-list { display: grid; gap: 8px; }
.challenge-row { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto 16px; align-items: center; gap: 10px; min-height: 65px; padding: 7px 10px; text-align: left; color: var(--text); border: 1px solid #49644d; border-radius: 11px; background: linear-gradient(110deg, #2b4131, #213329); }
.challenge-row:hover:not(:disabled) { border-color: var(--accent); background: #324b34; }
.challenge-row:disabled { color: #d9e3d3; opacity: .9; }
.challenge-description b, .challenge-description small { display: block; }
.challenge-description small { color: var(--muted); font-size: .77rem; }
.challenge-points { color: var(--accent); white-space: nowrap; font-size: .75rem; font-weight: 760; }
.challenge-row > .icon { color: #c7d6bd; width: 15px; height: 15px; }
.challenge-footer { margin-top: 13px; }
.boost-panel, .dose-panel { padding: 3px 9px 9px; border: 1px solid #3e5545; border-radius: 9px; }
.boost-panel legend, .dose-panel legend { margin-inline: 0; padding: 0 5px; }
.boost-panel > p { margin: 0 0 4px; }
.launch-panel { display: block; padding: 9px 11px; background: #19291e; border: 1px solid #3a5340; border-radius: 11px; }
.launch-panel > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.launch-panel .error { margin-bottom: 0; }
.avatar-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.avatar-save { padding-top: 9px; border-top: 1px solid #3c5040; }
.mission-picker { border-color: #5d7046; background: #243725; }
.mission-choices { display: grid; gap: 7px; }
.mission-option { display: flex; align-items: center; gap: 8px; padding: 7px; min-height: 53px; border: 1px solid #4b6549; border-radius: 9px; cursor: pointer; color: var(--text); }
.mission-option:has(input:checked) { border-color: var(--accent); background: #35492c; }
.mission-option input { accent-color: var(--accent); margin: 0 3px 0 0; flex: none; }
.mission-option .stamp { width: 32px; height: 32px; }
.mission-option b, .mission-option small { display: block; }
.mission-option small { color: #c5d6bf; font-size: .76rem; }
.mission-free { min-height: 44px; font-size: .85rem; }
.mission-outcome, .record-card, .reminder-card { display: flex; align-items: flex-start; gap: 10px; }
.mission-outcome { flex-wrap: wrap; padding: 10px; border-radius: 9px; border: 1px solid #4b644a; background: #24352a; }
.mission-outcome.achieved { border-color: #7e9b55; background: #31442c; }
.mission-outcome > div { flex: 1 1 160px; }
.record-card { margin-bottom: 12px; }
.badge-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; list-style: none; padding: 0; margin: 0; }
.badge-card { display: flex; align-items: flex-start; gap: 9px; }
.badge-card:not(.earned) .stamp { color: #aabca8; border-color: #495f4c; background: #273a2d; }
.badge-card.earned { border-color: #7b9958; background: #2b412e; }
.badge-card h3, .reminder-card h3 { margin: 3px 0; }
.reminder-card .actions { margin-top: 11px; }
.race-quick { position: fixed; right: 14px; bottom: 14px; z-index: 11; color: #251c10; background: #f2c17d; border-color: #f2c17d; box-shadow: 0 6px 25px #0008; }
.race-quick:hover { color: #251c10; background: #f8d89e; border-color: #f8d89e; }
.toast { top: 12px; bottom: auto; right: 12px; left: auto; transform: none; max-width: min(390px, calc(100% - 24px)); z-index: 21; }
.live-avatar { width: 67px; height: 67px; padding: 0; overflow: hidden; background: radial-gradient(circle at 40% 20%, #6d8461, #273b32 76%); }
.trail-avatar { display: block; width: 100%; height: 100%; }
.live-avatar .trail-avatar, .mini-avatar .trail-avatar { object-fit: contain; }
.avatar-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.select-field { display: grid; gap: 5px; min-width: 0; font-size: .83rem; color: var(--text); font-weight: 650; }
.select-field select { font: inherit; font-weight: 550; min-height: 43px; width: 100%; padding: 6px 8px; color: var(--text); background: #142119; border: 1px solid #536854; border-radius: 8px; text-overflow: ellipsis; }
.select-field small { color: var(--muted); font-size: .74rem; font-weight: 480; line-height: 1.35; }
.studio { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); }
.avatar-stage {
  position: sticky; top: 12px; align-self: start; display: grid; justify-items: center; overflow: hidden; padding: 12px 16px;
  background: radial-gradient(ellipse at 42% 30%, #65745b 0%, #354b3b 42%, transparent 75%),
    linear-gradient(165deg, #1f342c, #131e1c 70%, #24382d);
}
.avatar-stage canvas { display: block; width: min(100%, 395px); height: auto; cursor: grab; touch-action: pan-y; border-radius: 12px; }
.avatar-stage canvas:active { cursor: grabbing; }
.avatar-stage canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.live-avatar canvas { width: 100%; height: 100%; }
.avatar-stage-controls { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #9ba88d42; }
.avatar-stage-controls h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.avatar-stage-controls .actions { flex-wrap: nowrap; gap: 6px; }
.avatar-stage-controls .button { width: 44px; min-height: 44px; justify-content: center; padding: 0; border-color: #84977c77; border-radius: 50%; background: #15241dcc; }
.avatar-stage-controls .button:hover { background: #354b39; }
.kit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 11px; }
.kit-fields legend { grid-column: 1 / -1; }
.consignes p { grid-column: 1 / -1; }
.injury-estimate dl { display: grid; gap: 4px; margin: 10px 0; }
.injury-estimate dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .83rem; }
.injury-estimate dd { margin: 0; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.injury-estimate p { margin: 7px 0; }
.injury-estimate a { text-decoration: underline; text-underline-offset: .16em; }
.kit-fields .select-field:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
.load { margin-top: 7px; font-size: .8rem; color: var(--muted); }
.load.over { color: #ffccaa; }
.forecast { margin-top: 10px; padding: 9px 10px; border-left: 2px solid #92a967; border-radius: 0 8px 8px 0; background: #253424; font-size: .79rem; }
.forecast b { color: var(--accent); }
.forecast.locked { border-color: #607267; background: #202d25; }
.forecast.locked b { color: #c9d9c9; }
.day-hint { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.roadbook { flex: 1; min-width: 0; }
.chapter-story { margin-top: 9px; line-height: 1.45; }
.legal-page { max-width: 780px; display: grid; justify-items: start; gap: 16px; padding-block: 22px 36px; }
.legal-page > .card { width: 100%; }
.legal-page .card h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); line-height: 1.12; margin-block: 5px 10px; }
.legal-page h2 { margin-bottom: 6px; font-size: 1.1rem; }
.legal-page p, .legal-page li { line-height: 1.55; overflow-wrap: anywhere; }
.legal-page ul { padding-left: 20px; }
.legal-page li + li, .legal-page section > p + p { margin-top: 6px; }
.legal-page a:not(.button), .privacy-note a { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
.stage .stage-distance { color: var(--accent); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.course-sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 10px 0 0; gap: 5px; }
.course-sectors li { display: flex; align-items: center; gap: 6px; padding: 6px; min-width: 0; border: 1px solid #3b5140; border-radius: 8px; background: #233429; }
.course-sectors li .icon { width: 15px; height: 15px; color: var(--accent); }
.course-sectors li small, .course-sectors li b { display: block; line-height: 1.26; }
.course-sectors li small { font-size: .58rem; color: var(--muted); }
.course-sectors li b { margin-top: 2px; font-size: .71rem; font-weight: 650; overflow-wrap: anywhere; }
.roadbook-actions { margin-top: 9px; }
.effort-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 9px 0 12px; }
.effort-plan { padding-inline: 5px; }
.effort-plan[aria-pressed="true"] { background: #354830; color: var(--accent); border-color: #829956; }
.prep-details { margin: 13px 0; padding: 0 10px; border: 1px solid #405442; border-radius: 9px; background: #202e25; }
.prep-details summary { cursor: pointer; min-height: 43px; padding: 9px 0; font-size: .83rem; font-weight: 670; }
.prep-details summary small { display: block; margin-left: 13px; color: var(--muted); font-weight: 470; }
.prep-details fieldset, .prep-details .notes { margin: 3px 0 12px; }
.result-details { margin: 0; }
.mapscope { min-width: 0; }
.map-field { width: 100%; position: relative; border: 1px solid #55705a; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 1; background: #1e382c; }
.course-map, .map-pins { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-pin { display: block; position: absolute; width: clamp(21px, 4.6vw, 33px); height: clamp(21px, 4.6vw, 33px); padding: 1px; overflow: hidden; border: 2px solid #c9dcca; border-radius: 50%; background: #2a4737; box-shadow: 0 1px 6px #030d08; transform: translate(-50%,-50%); transition: top 1.05s linear, left 1.05s linear; z-index: 1; }
.map-pin.is-me { border-color: var(--accent); background: #6a8140; z-index: 3; }
.map-pin.is-running { box-shadow: 0 0 0 3px #dfeca140, 0 0 8px #cfea6696; }
.map-status { margin-block: 10px; }
.runner-list { display: grid; gap: 5px; list-style: none; padding: 0; margin: 0; }
.runner-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: #203027; border: 1px solid #3a4b40; border-radius: 8px; min-height: 36px; font-size: .82rem; }
.runner-list li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.runner-list small { display: block; color: var(--muted); }
.runner-list strong { color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 1px; background: #3d5743; border-radius: 50%; }
.race-timer { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; font-weight: 650; margin-bottom: 6px; }
.race-timer output { color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.race-progress { height: 6px; margin-bottom: 13px; overflow: hidden; background: #33473b; border-radius: 99px; }
.race-progress > span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .8s linear; }
.race-sector { margin: -6px 0 12px; color: #c0d0bc; font-size: .82rem; }
.virtual-start { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; color: #c9d9c5; font-size: .8rem; }
.virtual-start .icon, .recovery-card .icon { width: 16px; height: 16px; color: var(--accent); vertical-align: text-bottom; }
.virtual-start b, .virtual-start output { color: var(--accent); font-weight: 740; font-variant-numeric: tabular-nums; }
.recovery-card { padding: 10px; border: 1px solid #536c48; border-radius: 10px; background: #233629; }
.recovery-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 8px; margin: 7px 0 0; }
.recovery-facts > div { display: grid; align-content: start; padding: 7px; border: 1px solid #425a43; border-radius: 8px; background: #1b2b21; }
.recovery-facts dt, .recovery-facts small { color: #c2d1be; font-size: .72rem; line-height: 1.3; }
.recovery-facts dd { margin: 0; color: var(--accent); font-size: 1.06rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.incident { margin-bottom: 13px; padding: 13px; border: 1px solid #927048; border-radius: 11px; background: #372e20; }
.incident-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.incident-injury { border-color: #b27563; background: #3c2825; }
.incident-injury .eyebrow { color: #ffc1ae; }
.incident .eyebrow { color: #f5c585; }
.incident h4 { margin: 4px 0; }
.incident .actions { margin-top: 9px; }
.incident .button { border-color: #967951; background: #4b3b28; }
.incident .button:hover { border-color: #ffd397; }
.incident-choice { text-align: left; justify-content: space-between; flex: 1 1 170px; }
.incident-choice small { display: block; margin-top: 3px; font-size: .74rem; font-weight: 550; color: #edd6b4; }
.decision-clock { display: block; margin-top: 6px; color: #f6c891; font-size: .79rem; font-weight: 720; }
.game-controls { display: grid; gap: 10px; }
.trail-ravito { --trail-accent: #86e3df; --trail-base: #234749; }
.trail-torrent { --trail-accent: #c4dba0; --trail-base: #344930; }
.trail-balises { --trail-accent: #ffd097; --trail-base: #493d30; }
.trail-choice { min-height: 76px; border-left: 3px solid var(--trail-accent); background: linear-gradient(110deg, var(--trail-base), #1c2e25); }
.trail-choice .stamp, .trail-choice .challenge-points { color: var(--trail-accent); }
.trail-choice .challenge-description b { margin-bottom: 3px; }
.trail-choice .challenge-description small { line-height: 1.33; }
.trail-choice .trail-card-reward { margin-top: 4px; color: var(--trail-accent); font-weight: 730; }
.race-rewards { display: grid; gap: 6px; padding: 11px; border: 1px solid #557451; border-radius: 11px; background: #253a2a; }
.race-rewards h4 { color: #ecf3df; font-size: .94rem; }
.race-rewards > .button { justify-self: start; min-height: 36px; padding: 6px 9px; }
.race-reward-list, .race-reward-chips { margin: 0; padding: 0; list-style: none; }
.race-reward-list { display: grid; gap: 8px; }
.race-reward-list li { display: flex; gap: 8px; align-items: flex-start; color: #dce9cf; font-size: .84rem; }
.race-reward-list li > .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.race-reward-list p { font-size: .77rem; }
.race-reward-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.race-reward-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #5e7755; border-radius: 8px; color: #e0eccd; background: #2f4732; font-size: .75rem; font-weight: 680; }
.race-reward-chips .icon { width: 14px; height: 14px; color: var(--accent); }
.mapscope .race-reward-chips { margin: 8px 0; }
.race-rewards-result .reward-points { color: var(--accent); font-weight: 800; }
.board-challenges .button { min-height: 36px; font-size: .8rem; }
.board-challenges [aria-pressed="true"] { background: #3d5336; border-color: #a8c086; color: var(--accent); }
.support-page { max-width: 1000px; margin-inline: auto; }
.support-hero {
  display: grid; gap: 20px; padding: clamp(18px, 3.4vw, 36px);
  border: 1px solid #54644a; border-radius: 23px; overflow: hidden;
  background: linear-gradient(96deg, #142019f5, #18291ddd 46%, #27392252), linear-gradient(0deg, #142219ee, transparent 85%), #25372b url('./assets/sentier.jpg') center 33% / cover;
}
.support-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.support-identity .eyebrow { color: var(--accent); }
.support-identity h1 { margin: 8px 0 10px; font-size: clamp(2.1rem, 5.3vw, 4.55rem); line-height: 1; font-weight: 830; letter-spacing: -.06em; overflow-wrap: anywhere; }
.support-identity h1 em { display: block; color: var(--accent); font-style: normal; }
.support-route { display: flex; align-items: center; gap: 7px; color: #deeadb; font-size: .9rem; font-weight: 650; }
.support-route .icon { width: 17px; height: 17px; flex: none; color: #b8d298; }
.support-portrait { display: grid; justify-items: center; width: clamp(112px, 19vw, 201px); margin: 0; padding: 4px; border: 1px solid #b3c39e76; border-radius: 17px; background: radial-gradient(ellipse at 50% 0, #789270d9, #253e31f5 79%); }
.support-portrait canvas { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 5px #0b151266); }
.support-portrait figcaption { width: 100%; padding: 4px 5px; border-radius: 8px; background: #1a2b21ec; text-align: center; color: #ecf0d8; font-size: .73rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.support-progress { padding: 11px 13px 9px; border: 1px solid #9baa8370; border-radius: 12px; background: #14241aee; }
.support-progress-top, .support-progress-note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 8px; }
.support-progress-top p { color: #e5ecdf; font-size: .86rem; }
.support-progress-top strong { font-size: 1.15rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.support-phase { display: inline-flex; align-items: center; gap: 6px; color: #e4ecd9; font-size: .75rem; font-weight: 730; }
.support-phase::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9cb3a3; }
.support-phase[data-phase="running"]::before, .support-phase[data-phase="preparing"]::before { background: var(--accent); box-shadow: 0 0 8px #d9f7836b; }
.support-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; padding: 0; list-style: none; }
.support-step { display: grid; gap: 3px; color: #adbead; font-size: .68rem; font-weight: 730; }
.support-step.current, .support-step.done { color: var(--accent); }
.support-step-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, #cde88a var(--fill), #3d5545 var(--fill)); }
.support-step.current .support-step-track { outline: 1px solid #b2c581; outline-offset: 1px; }
.support-progress-note { color: #c3d0bf; font-size: .74rem; }
.support-progress-note b { color: #f2f4e8; font-weight: 690; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 13px; align-items: start; margin-top: 13px; }
.support-action, .support-team { display: grid; gap: 10px; min-width: 0; padding: clamp(15px, 2.6vw, 24px); }
.support-action { border-color: #566e4b; background: radial-gradient(ellipse at 100% 0, #354a34, transparent 67%), #202f25; }
.support-action h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.1; letter-spacing: -.04em; }
.support-action p { max-width: 51ch; color: #d3dfcf; font-size: .92rem; }
.support-reward { display: flex; align-items: center; gap: 9px; }
.support-reward .stamp { width: 35px; height: 35px; border-radius: 9px; }
.support-reward .icon { width: 19px; height: 19px; }
.support-reward[data-ravito="full"] .stamp { border-color: #937c5a; background: #473e30; color: #ffe0ab; }
.support-reward[data-ravito="closed"] .stamp { border-color: #59715f; background: #2b4136; color: #d4e9dd; }
.support-action .support-note { color: #becbbf; font-size: .75rem; }
.support-note a { text-underline-offset: 3px; }
.support-actions { gap: 6px 9px; }
.support-actions .primary { min-height: 48px; }
.support-cheers { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #607a56; border-radius: 10px; background: #182a20; }
.support-cheers-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 10px; }
.support-cheers-heading span { color: #d6e6bd; font-size: .82rem; font-variant-numeric: tabular-nums; }
.support-cheers meter { display: block; width: 100%; height: 9px; }
.support-cheers meter::-webkit-meter-bar { border: 0; border-radius: 6px; background: #3d5545; }
.support-cheers meter::-webkit-meter-optimum-value { border-radius: 6px; background: var(--accent); }
.support-cheers meter::-moz-meter-bar { background: var(--accent); }
.support-action .support-cheers p { color: #d5e4d6; font-size: .82rem; }
.support-cheers p strong { color: var(--accent); }
.support-team { background: linear-gradient(130deg, #26372b, #1a2720 75%); }
.support-team-heading { display: flex; align-items: center; gap: 10px; }
.support-team-heading h2 { font-size: 1.13rem; line-height: 1.2; letter-spacing: -.024em; }
.support-team-heading p { color: #cbdda8; font-size: .82rem; font-weight: 700; }
.support-fans { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.support-fans li { padding: 4px 9px; border: 1px solid #485e4b; border-radius: 8px; background: #263b2c; color: #e0eadc; font-size: .81rem; font-weight: 650; overflow-wrap: anywhere; }
.trail-dialog { width: min(510px, calc(100% - 20px)); }
.trail-game { display: grid; gap: 10px; }
.trail-tip { color: #d0dccd; font-size: .84rem; }
.trail-hud { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #e7eddf; font-size: .76rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.trail-hud span { padding: 4px 9px; border: 1px solid #4c6551; border-radius: 7px; background: #223528; white-space: nowrap; }
.trail-hud span:first-child { color: var(--trail-accent); }
.trail-field { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid #587269; background: #234538; }
.trail-field canvas { display: block; width: 100%; height: auto; }
.trail-ravito .trail-field canvas { touch-action: manipulation; }
.trail-count, .trail-feedback { position: absolute; z-index: 1; text-align: center; pointer-events: none; }
.trail-count { inset: 28% 0 auto; color: #fff9d4; text-shadow: 0 3px 12px #162220; font-weight: 900; font-size: clamp(2rem, 10vw, 4rem); line-height: 1; }
.trail-feedback { bottom: 8px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 95%; padding: 4px 12px; border-radius: 20px; color: #17261f; background: #e0f3a9; font-size: .83rem; font-weight: 800; }
.trail-feedback[data-hit="bump"], .trail-feedback[data-hit="miss"] { background: #ffd2b3; }
.trail-feedback[data-hit="perfect"] { background: #ffdd91; }
.trail-commands { display: grid; gap: 8px; }
.trail-restart { min-height: 40px; padding: 6px 10px; justify-self: start; }
.practice-shortcuts { justify-content: flex-end; gap: 6px; margin: 0 0 10px; }
.practice-shortcuts .button { min-height: 40px; padding: 7px 10px; font-size: .79rem; }
.practice-page { max-width: 1000px; margin-inline: auto; }
.practice-layout:not(.columns) { max-width: 650px; }
.practice-layout h2 { font-size: 1.18rem; line-height: 1.2; }
.trail-inputs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.trail-inputs .button { min-height: 48px; padding: 5px 6px; touch-action: manipulation; }
.trail-inputs [aria-pressed="true"] { color: #152b27; background: var(--trail-accent); border-color: var(--trail-accent); }
.trail-inputs [aria-disabled="true"] { opacity: .65; }
.trail-target-sign { color: #f0e9d1; text-align: center; font-size: .87rem; font-weight: 760; }
.trail-balises .trail-inputs button { flex-direction: column; gap: 0; font-size: 1.22rem; line-height: 1.05; }
.trail-balises .trail-inputs small { font-size: .72rem; font-weight: 660; }
.trail-gauge { position: relative; overflow: hidden; height: 16px; border: 1px solid #6c8771; border-radius: 9px; background: #101f19; }
.trail-target, .trail-needle { position: absolute; top: 0; height: 100%; }
.trail-target { left: 38%; width: 24%; background: #80b48b; }
.trail-target i { position: absolute; left: 50%; top: 0; width: var(--perfect, 40%); height: 100%; transform: translateX(-50%); background: #fbd582; }
.trail-needle { width: 4px; background: #fffdf2; box-shadow: 0 0 1px 1px #263c34; transform: translateX(-50%); }
.trail-summary { display: flex; align-items: center; gap: 7px 12px; flex-wrap: wrap; padding: 8px 11px; border: 1px solid #587256; border-radius: 9px; background: #24392c; color: #dbe7d9; font-size: .83rem; }
.trail-summary strong { color: var(--trail-accent); font-size: 1.08rem; white-space: nowrap; }
.trail-actions { gap: 7px; }
.trail-actions .button { min-height: 44px; }
.trail-reward-hint, .trail-reward-earned { flex: 1 1 100%; color: #dce9d7; font-size: .8rem; }
.trail-reward-hint b, .trail-reward-earned b { color: var(--trail-accent); }
.trail-reward-earned { padding-top: 5px; border-top: 1px solid #506b50; }
.trail-reward-earned span { display: block; }
.game-validation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 9px; border-top: 1px solid #455b47; }
.game-validation .small { color: var(--muted); }
.mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-tile { color: var(--text); background: #203329; border: 1px solid #566a54; border-radius: 9px; min-height: 52px; padding: 4px; font-size: .79rem; font-weight: 680; }
.mini-tile .icon { display: block; margin: 0 auto 2px; color: var(--accent); width: 18px; height: 18px; }
.mini-tile:not(:disabled):hover, .mini-tile[aria-pressed="true"] { background: #344c2d; border-color: var(--accent); color: var(--accent); }
.mini-tile:disabled { color: #a5b2a8; background: #1b261e; }
.maze { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: min(100%, 300px); }
.maze .wall { background: repeating-linear-gradient(45deg, #2e3b31, #2e3b31 5px, #212c24 5px, #212c24 10px); }
.game-sequence { display: flex; flex-wrap: wrap; gap: 6px; }
.game-sequence .label { font-size: .82rem; letter-spacing: 0; }
.recovery-code { overflow-wrap: anywhere; display: block; color: var(--accent); background: #121e16; border: 1px solid #4e6649; border-radius: 9px; padding: 11px; user-select: all; }
#email-request-form input, #email-code-form input, #email-name-form input { font-size: 1rem; }
#email-code-form input { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.connection-warning { padding: 8px 13px; border: 1px solid #887047; border-radius: 9px; color: #ffe0b4; background: #342d21; margin-bottom: 12px; font-size: .85rem; }
.connection-warning button { margin-left: 5px; }

@media (min-width: 880px) {
  .map-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, .32fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 15px; }
  .map-page .map-field { grid-row: 1 / 3; }
  .map-page .map-status { margin-top: 2px; }
  .map-page .runner-list { max-height: 350px; overflow: auto; }
}

@media (max-width: 810px) {
  .site-header nav button { padding-inline: 7px; font-size: .8rem; }
  .site-header nav button .icon { display: none; }
  .brand strong { font-size: .95rem; }
  .account-button { max-width: 112px; }
}
@media (max-width: 660px) {
  html { scroll-padding-bottom: calc(var(--game-dock) + 10px); }
  body { padding-bottom: var(--game-dock); }
  .header-inner { min-height: 54px; }
  .site-header nav { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; min-height: var(--game-dock); padding: 4px max(4px, env(safe-area-inset-right, 0px)) max(5px, env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); background: #17251d; border-top: 1px solid #4a624d; box-shadow: 0 -5px 16px #0c160b60; }
  .site-header nav button { display: grid; justify-items: center; gap: 2px; min-height: 50px; padding: 4px 1px; font-size: .67rem; }
  .site-header nav button .icon { display: block; width: 19px; height: 19px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .game-layout .runner-panel { position: static; }
  .race-shell { margin-top: 12px; }
  .race-banner { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px 14px; margin-bottom: 10px; border-radius: 15px; }
  .race-banner h1 { font-size: clamp(1.55rem, 6vw, 2.1rem); margin-bottom: 6px; }
  .race-banner-side { grid-template-columns: auto minmax(44px, 1fr); gap: 5px 9px; align-items: center; justify-items: start; }
  .race-banner-stats { grid-column: 1 / -1; }
  .phase-nav { margin-bottom: 10px; }
  .phase-nav button { display: grid; justify-items: center; gap: 1px; min-height: 48px; padding-inline: 1px; font-size: .71rem; }
  .phase-nav button small { position: absolute; top: 2px; right: 2px; padding-inline: 3px; font-size: .57rem; }
  .challenge-row { gap: 7px; padding-inline: 7px; }
  .challenge-row .stamp { width: 33px; height: 33px; }
  .challenge-row .stamp .icon { width: 19px; height: 19px; }
  .support-page { padding-top: 12px; }
  .support-hero { gap: 12px; padding: 13px; border-radius: 17px; background-position: center, center, 55% 29%; }
  .support-identity { gap: 7px; }
  .support-identity h1 { font-size: clamp(1.73rem, 6.3vw, 2.66rem); margin-block: 5px 6px; }
  .support-identity .eyebrow { font-size: .57rem; }
  .support-route { gap: 4px; font-size: .75rem; }
  .support-route .icon { width: 14px; height: 14px; }
  .support-portrait { width: clamp(78px, 23vw, 123px); padding: 3px; border-radius: 12px; }
  .support-portrait figcaption { font-size: .59rem; }
  .support-progress { padding: 8px 9px 7px; }
  .support-layout { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 9px; }
  .support-actions .primary { flex: 1 1 100%; }
  .badge-shelf { grid-template-columns: minmax(0, 1fr); }
  .launch-panel > div { gap: 4px; }
  .launch-panel .primary { width: 100%; }
  .race-quick { bottom: calc(var(--game-dock) + 8px); }
  .toast { top: max(8px, env(safe-area-inset-top, 0px)); }
  dialog { margin: auto auto max(9px, env(safe-area-inset-bottom, 0px)); }
  .trail-dialog { padding: 12px; }
  .trail-dialog .dialog-head { margin-bottom: 8px; }
  .trail-dialog .dialog-head h2 { font-size: 1.29rem; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .avatar-stage { top: 5px; z-index: 3; padding: 3px 12px; grid-template-columns: minmax(0, 1.7fr) minmax(100px, 1fr); gap: 6px; align-items: center; }
  .avatar-stage canvas { width: min(100%, 232px); }
  .avatar-stage-controls { display: grid; justify-items: start; border: 0; padding: 0; }
  .avatar-stage-controls h3 { font-size: 1rem; }
  .account-button { min-height: 34px; }
  .footer .actions { gap: 0 8px; }
  .course-sectors { grid-template-columns: 1fr; }
  .course-sectors li small, .course-sectors li b { display: inline; }
  .course-sectors li small { margin-right: 5px; }
}

@media (max-width: 360px) {
  .support-hero { padding: 11px; gap: 10px; }
  .support-action, .support-team { gap: 8px; padding: 12px; }
  .support-action p { line-height: 1.4; }
}
@media (max-width: 340px) {
  .phase-nav button { font-size: .67rem; }
  .kit-fields { grid-template-columns: minmax(0, 1fr); }
  .recovery-facts > div:nth-child(3) { grid-column: 1 / -1; }
}
