:root {
  --bg: #101c19;
  --surface: #1a2b24;
  --surface-raised: #263d32;
  --line: #536d5c;
  --text: #f2f3e8;
  --muted: #c2d1c6;
  --action: #f4b66b;
  --accent: #d9f385;
}

.header-inner { min-height: 67px; }
.site-header { background: #111e19; }
.account-button { max-width: min(34vw, 175px); overflow: hidden; text-overflow: ellipsis; min-height: 42px; }
.button { box-shadow: none; }
.yard-panel, .yard-turn-guide, .yard-edition { box-shadow: none; }
.yard-page-title { margin: clamp(16px, 3vw, 28px) 0 12px; }
.yard-page-title h1 { font-size: clamp(1.6rem, 4vw, 2.65rem); line-height: 1.06; letter-spacing: -.045em; }
.yard-page-title p { margin-top: 5px; font-size: .9rem; }
.yard-page-title .guide-link { min-height: 44px; }
.yard-home { gap: 12px; }
.yard-home-choice[data-mode] { border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.yard-home-choice[data-mode="training"] { border-color: #78916a; }
.yard-home-choice[data-mode="live"] .button { background: #263731; border-color: #739186; color: #e9f2e9; }
.yard-home-help { padding-block: 0; }
.yard-home-resume { background: #213b2d; }
.yard-rf-visit:not(a) { margin-top: 8px; }
.yard-editions .yard-edition { background: var(--surface); }
.yard-edition h3 { margin-block: 5px 9px; }
.yard-edition .yard-facts { gap: 6px 13px; }
.yard-edition-featured .yard-edition { border-left: 3px solid var(--route-color); }
.yard-edition-more { margin-top: 8px; }
.yard-edition-more > summary { cursor: pointer; padding: 11px; font-size: .87rem; font-weight: 720; }
.yard-training-goals { margin-bottom: 8px; }
.yard-training-goals > .button { text-align: left; }
.yard-training-goals > .button.primary, .yard-training-goals > .button.primary small { color: var(--action-ink); }
.yard-other-editions > summary, .yard-discovery-account > summary, .yard-avatar-rotation > summary, .support-team > summary {
  min-height: 44px; padding-block: 10px; cursor: pointer; font-size: .88rem; font-weight: 720;
}
.yard-avatar-rotation { width: 100%; }
.yard-avatar-rotation:not([open]) { border-top: 1px solid var(--line); }
.yard-avatar-stage {
  isolation: isolate;
  background: radial-gradient(ellipse at 49% 44%, #a6bd8063, transparent 58%),
    linear-gradient(180deg, #172a24 10%, #364c3a 62%, #182b22 86%);
}
.yard-avatar-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #16292058, #1a2c2470 46%, #1a2d22 92%),
    url("/assets/sentier.jpg") left 52% / auto 148% no-repeat;
  opacity: .55;
}
.yard-avatar-stage canvas { position: absolute; inset: 0; }
.yard-avatar-drag-hint {
  position: absolute; inset: auto 9px 8px auto; margin: 0;
  padding: 5px 8px; border-radius: 7px; background: #192b22e6;
  color: #e3efd6; font-size: .68rem; line-height: 1.25; pointer-events: none;
}
.yard-avatar-cameras { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.yard-avatar-cameras button { padding-inline: 2px; }
.yard-avatar-save .actions .primary { flex: 1; }
.yard-tabs { gap: 6px; margin-block: 0 12px; }
.yard-tabs .button { min-width: 0; }
.yard-board { min-width: 0; }
.yard-board th[scope="col"] { color: var(--muted); font-size: .76rem; }
.yard-board tbody tr:first-child td:first-child { color: var(--action); font-weight: 800; }
.yard-board th, .yard-board td { border-color: #405b4e; }
.support-page .support-hero:not(.support-invite) { padding: clamp(14px, 2.5vw, 23px); background: #1d352c; }
.support-page .support-hero:not(.support-invite) h1 { font-size: clamp(1.45rem, 4vw, 2.45rem); }
.support-page .support-portrait { width: clamp(75px, 16vw, 132px); }
.support-page .support-progress { margin-top: 8px; }
.support-page .support-team:not([open]) { padding-block: 0; }
.support-page .support-team ul { margin-top: 8px; }
.support-page .support-layout { align-items: start; }
nav.yard-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.yard-menu-grid .yard-menu-link { align-items: center; min-height: 58px; height: 100%; border-radius: 11px; background: #21372e; }
.yard-menu-grid .yard-menu-link b { font-size: .86rem; }
.yard-menu-grid .yard-menu-link small { display: none; }
.yard-guide .guide-hero { padding: clamp(14px, 2vw, 22px); box-shadow: none; background: #21372e; }
.yard-guide .guide-essential { background: #1b3027; }
.yard-guide .guide-useful { padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.yard-guide .guide-useful summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-weight: 720; }
.yard-guide .guide-example { margin-bottom: 12px; }
.legal-page { max-width: 820px; line-height: 1.62; }
.legal-page .card { box-shadow: none; border-radius: 15px; }

.yard-race-compact { gap: 10px; }
.yard-race-summary { padding-block: 7px; background: #1a2c25; }
.yard-race-focus { grid-template-columns: minmax(0, 1.72fr) minmax(250px, 1fr); align-items: start; }
.yard-race-map, .yard-map { padding: 12px; background: #182d28; border: 1px solid #48665a; }
.yard-map-stage { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #547369; border-radius: 12px; background: #32574b; }
.yard-map-stage canvas { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.yard-map-camp { position: absolute; z-index: 0; display: flex; align-items: center; gap: 4px; transform: translate(-50%, calc(-100% - 17px)); white-space: nowrap; background: #142b24; color: #ffd695; padding: 3px 7px; font-size: .72rem; font-weight: 750; border: 1px solid #8c805a; border-radius: 6px; pointer-events: none; }
.yard-map-camp .icon { width: 13px; height: 13px; }
.yard-map-pins { inset: 0; }
.yard-map-pin { width: 44px; height: 44px; }
.yard-map-pin::before { width: 18px; height: 18px; box-shadow: 0 2px 8px #122722aa; }
.yard-map-pin[data-own="true"]::before { border-color: #234529; box-shadow: 0 0 0 2px #edfac8, 0 2px 9px #122722aa; }
.yard-map-pin[data-group="true"]::before { width: 29px; height: 29px; }
.yard-map-pin[data-group="false"] span { top: 33px; }
.yard-map-pin[data-group="false"][data-own="false"][aria-pressed="false"]:not(:hover):not(:focus-visible) span { display: none; }
.yard-training-pin { color: #213825; background: #e4f78e; border: 2px solid #f4fbdc; }
.yard-map-progress { display: grid; gap: 5px; margin-top: 9px; color: #c8d7c9; font-size: .78rem; }
.yard-map-progress > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1px 10px; }
.yard-map-progress strong { color: #f1f8df; font-variant-numeric: tabular-nums; }
.yard-map-progress progress { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 999px; background: #415c50; color: #deef93; overflow: hidden; }
.yard-map-progress progress::-webkit-progress-bar { background: #415c50; }
.yard-map-progress progress::-webkit-progress-value { background: #deef93; }
.yard-map-progress progress::-moz-progress-bar { background: #deef93; }
.yard-map-status { margin-top: 5px; font-size: .71rem; }
.yard-map-weather { padding: 2px 6px; background: #233b32; border-color: #547164; }
.yard-map-weather small { display: none; }
.yard-map-weather .yard-weather-art { width: 34px; height: 27px; }
.yard-race-vitals, .yard-turn-guide.yard-turn-compact { background: #1c3027; border-color: #4a6656; }
.yard-race-vitals .yard-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.yard-race-vitals .yard-gauge-caption { font-size: .75rem; margin: 0; }
.yard-race-side .yard-turn-step { flex-direction: row; align-items: center; min-height: 56px; height: 100%; padding: 8px; }
.yard-race-side .yard-turn-step .yard-turn-icon { width: 28px; height: 28px; flex: 0 0 28px; }
.yard-race-side .yard-turn-step .yard-weather-art { width: 27px; height: 24px; }
.yard-race-side .yard-turn-step b { font-size: .79rem; }
.yard-race-side .yard-turn-step small { font-size: .66rem; }
.yard-race-side .yard-turn-compact ol { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.yard-next-choice { margin-top: 8px; padding: 8px 9px; }
.yard-next-choice p { font-size: .8rem; }
.yard-next-choice .button { min-height: 42px; }
.yard-race-map-wrap .yard-training-controls { gap: 6px; padding: 6px; min-height: 0; }
.yard-race-map-wrap .yard-training-command, .yard-race-map-wrap .yard-auto-mode { flex: 1 1 auto; padding: 0; border: 0; }
.yard-race-map-wrap .yard-training-command > .button { flex: 1; min-width: 0; min-height: 44px; }
.yard-race-map-wrap .yard-auto-mode > .button { width: 100%; }

@media (max-width: 700px) {
  .header-inner { min-height: 57px; }
  .yard-page-title .actions { margin: 0; }
  .yard-race-focus { grid-template-columns: minmax(0, 1fr); }
  .yard-race-map, .yard-map { padding: 9px; }
  .yard-race-side .yard-turn-compact ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yard-race-side .yard-turn-step { flex-direction: column; align-items: start; padding: 7px; min-height: 82px; gap: 4px; }
  .yard-race-side .yard-turn-step .yard-turn-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .yard-race-side .yard-turn-step b { font-size: .72rem; }
  .yard-race-side .yard-turn-step small { font-size: .62rem; }
  .yard-map-camp { font-size: .65rem; }
  .yard-race-map-wrap .yard-training-command, .yard-race-map-wrap .yard-auto-mode { flex: 1 1 0; min-width: 0; }
  .yard-race-map-wrap .yard-auto-mode > .button { padding-inline: 5px; }
  .yard-home-choice[data-mode] { padding: 13px; }
  .yard-home-choice > p { grid-column: 2; }
  .yard-home-choice-icon { width: 34px; height: 34px; }
  .yard-home-choice > .button { margin-top: 1px; }
  .yard-home .yard-rf-visit { margin: 0; }
}

@media (max-width: 360px) {
  .yard-menu-grid .yard-menu-link { padding-inline: 7px; gap: 5px; }
  .yard-menu-grid .yard-menu-link b { font-size: .77rem; }
  .yard-board table { font-size: .76rem; }
  .yard-race-side .yard-turn-step b { overflow-wrap: anywhere; }
}
