/* The site's styles, its tokens in :root. Linked from app.html; a browser on its first visit gets them in the page
   itself (server._page), and fonts' addresses get their ?v= when served (pages.app_css). */
@font-face{font-family:"IBM Plex Sans";font-weight:400 600;font-display:swap;src:url(/static/plex-sans-cyr.woff2?v=8dacae5c52) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Sans";font-weight:400 600;font-display:swap;src:url(/static/plex-sans-lat.woff2?v=6148594dc0) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-weight:400;font-display:swap;src:url(/static/plex-mono-400-cyr.woff2?v=f3e3ef5f4a) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-weight:400;font-display:swap;src:url(/static/plex-mono-400-lat.woff2?v=2c9bacf024) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-weight:500;font-display:swap;src:url(/static/plex-mono-500-cyr.woff2?v=695a267637) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-weight:500;font-display:swap;src:url(/static/plex-mono-500-lat.woff2?v=3a2668b94b) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-weight:600;font-display:swap;src:url(/static/barlow-condensed-600-lat.woff2?v=4c3bf65b58) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-weight:700;font-display:swap;src:url(/static/barlow-condensed-700-lat.woff2?v=4cdd4b39be) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Layout: one column of cards; home = upload + history, job = result. Course purple is the only accent. */
:root{
  --bg:#F5F4F0; --panel:#FFFFFF; --ink:#1F1D22; --muted:#6B6770; --line:#E2DFD8; --soft:#F7E6EF; --sk-shine:#F1EFEA;
  --accent:#B0207A; --accent-ink:#FFFFFF; --ok:#2E8B57; --warn:#B86E00; --bad:#C0392B;
  --flag:#EE7A1E;   /* the orange of a control's flag (the replay in 3D marks the control run to) */
  --sky:#D9E4EC;    /* the replay in 3D: over the horizon, and the haze the far ground fades into */
  --scrim:rgba(20,18,24,.97); --scrim-ink:#EEEBF0;   /* under a picture opened over the page */
  /* the street map under my starts: greyed out so the purple pins are the only colour on it (OSM's pink roads and
     districts drowned them); the pin's halo, inside and glow, and the glass of the map's buttons */
  --tiles:grayscale(.9) contrast(.9) brightness(1.04); --pin-halo:#FFFFFF; --pin-fill:rgba(255,255,255,.8); --map-glass:rgba(255,255,255,.85); --pin-glow:rgba(176,32,122,.35);
  --display:"Barlow Condensed","Arial Narrow",sans-serif;
  --body:"IBM Plex Sans",system-ui,-apple-system,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;
  /* runners on a shared map, me first: a fixed order checked for colour-blind separation (same as the map's lines);
     won/lost legs: blue and red poles, grey middle; the legs table: green the best time on a leg, through teal,
     to blue the slowest (5 = best … 1 = slowest); pale tints on the light theme, deep muted ones on the dark - no grey step, which on the dark theme read as a colour of its own */
  --s0:#b0207a; --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100; --s5:#008300; --s6:#6250d6; --s7:#e34948;
  --win:#2a78d6; --lose:#e34948; --mid:#d9d7d1;
  --h1:#bcd1f0; --h2:#dbe6f5; --h3:#e0efed; --h4:#d3ebd8; --h5:#b3dcbf;
  --h1-ink:#1F1D22; --h2-ink:#1F1D22; --h3-ink:#1F1D22; --h4-ink:#1F1D22; --h5-ink:#1F1D22;
  /* the trainer's map signs: the colours of a printed orienteering map (ISOM / ISSprOM). A map is paper, so they stay
     the same on the dark theme: the dark block below does not redefine them */
  --iso-paper:#FFFFFF; --iso-black:#1A1A1A; --iso-brown:#C1662A; --iso-blue:#1E9BD7; --iso-water:#5EBFEA;
  --iso-yellow:#F9B233; --iso-yellow2:#FCD98E; --iso-green1:#C8E7BF; --iso-green2:#8DCB82; --iso-green:#3CA647;
  --iso-olive:#A9A43C; --iso-purple:#B4237F; --iso-tan:#EBCFA6; --iso-grey:#8C8C8C; --iso-grey2:#D2D2D2;
  --iso-shade:#4A3B30; --iso-earth:#C9B28C;   /* «Рельеф в объёме»: the shadow on the ground, the cut sides of the piece, */
  --iso-grass:#9DB866; --iso-litter:#8F8A55; --iso-crown:#3E6E31; --iso-crown2:#58873A; --iso-fir:#2C5233; --iso-trunk:#5A4130; --iso-haze:#D3DCE2;   /* the forest on it */
  /* the trainer: the streak's fire; a stat earned is --star. Its games have no colours of their own (they had eleven,
     one a game, 10.11): the site's accent is the thing to do, --ok what is done, --muted what is locked */
  --fire:#D85A30; --fire-bg:#FAECE7;
  --flag-w:#FFFFFF; --flag-o:#E8762B;   /* the control flag of the badge «Знаю все знаки»: white and orange, as in the woods */
  --badge-bg:#2A1226;   /* the night of the badge's picture, its place while it loads */
  --star:#E0A100; --ring-bg:#ECE9E2;
  --climb:#7A5230;   /* climbing: the brown of the contours, in a start's legs and its height profile */
}
@media (prefers-color-scheme:dark){:root{
  --bg:#17161A; --panel:#221F26; --ink:#EEEBF0; --muted:#A39FAA; --line:#37333C; --soft:#3A2233; --sk-shine:#4A4551;
  --accent:#E05BAE; --accent-ink:#1A0F16; --ok:#4CC285; --warn:#F2A54A; --bad:#EF6B5C; color-scheme:dark;
  --flag:#F28A33; --sky:#262C36;
  --scrim:rgba(8,7,10,.97); --scrim-ink:#EEEBF0;
  --tiles:invert(1) hue-rotate(180deg) grayscale(.8) brightness(.8) contrast(.9); --pin-halo:#17161A; --pin-fill:rgba(23,22,26,.75); --map-glass:rgba(34,31,38,.85); --pin-glow:rgba(224,91,174,.5);
  --s0:#e05bae; --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#008300; --s6:#9085e9; --s7:#e66767;
  --win:#3987e5; --lose:#e66767; --mid:#4a4650;
  --h1:#3462a3; --h2:#324c6e; --h3:#2d5553; --h4:#2f5c47; --h5:#2f7d50;
  --h1-ink:#EEEBF0; --h2-ink:#EEEBF0; --h3-ink:#EEEBF0; --h4-ink:#EEEBF0; --h5-ink:#EEEBF0;
  --fire:#EF8A62; --fire-bg:#3D2118;
  --flag-w:#F4F1EC; --flag-o:#EF8A4B;
  --badge-bg:#2A1226;
  --star:#F2BE3A; --ring-bg:#37333C;
  --climb:#9A7350}}   /* --iso-*: paper, as on the light theme */
*{box-sizing:border-box}
[hidden]{display:none!important}   /* hidden must win over display:flex on .vloop, .msg etc. */
/* the scrollbar's place is kept on every page: on Windows a short page («Статьи») has none and a long one
   («Мои старты») has one, and the whole page shifted sideways by its width when switching between them */
html{scrollbar-gutter:stable}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 var(--body)}
a{color:var(--accent)}
.wrap{max-width:1100px;margin:0 auto;padding:20px 16px 60px;display:flex;flex-direction:column;gap:20px}
header.top{display:flex;align-items:center;gap:14px}
header.top a{text-decoration:none;color:inherit}
/* the logo with what the site is under it, one block: the account links and the tabs are centred on it (30.11) */
.brand{display:flex;flex-direction:column;gap:3px}
.brand .logo{font:700 30px/1 var(--display);letter-spacing:.01em}
.brand b{color:var(--accent)}
.brand .tag{font-size:12px;line-height:1.2;color:var(--muted);white-space:nowrap}
/* the site's sections, on every page. From 1100 px: the tabs on the logo's line, the header one row with a line under
   it (30.11: as a row of their own they took 45 px more of every page, a start's map too). Narrower: a bar at the
   screen's foot (below); all six don't fit the logo's line with its subtitle and the
   account links under ~1070 px (an admin's) */
/* the header never wraps: a long login gives way, cut with «…» to the room left (30.11: «aleksandr.konstantinopolskiy»
   with an admin's icons put the account links on a line of their own at 1100 px, the header 92 px instead of 48) */
.brand,.sections,.tgch-top,.who>*{flex-shrink:0}.who{min-width:0}.who .acc{min-width:0;flex-shrink:1}
.who .acc span{display:inline-block;min-width:3ch;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sections{display:flex}
.sections a{font-weight:600;font-size:15px;color:var(--muted);text-decoration:none;white-space:nowrap}
.sections a:hover{color:var(--ink)}
.sections a:focus-visible,.sec-more:focus-visible,.sec-more-list a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.sections svg,.sec-more,.sec-more-list{display:none}
@media (min-width:1100px){header.top{align-items:center;border-bottom:1px solid var(--line)}
  .who,.tgch-top{order:6}
  .sections{order:2;align-self:stretch;margin:0 0 -1px 10px}
  .sections a{display:flex;align-items:center;padding:12px 12px 10px;border-bottom:2px solid transparent}
  .sections a[aria-current=page]{color:var(--ink);border-bottom-color:var(--accent)}}
/* under 1100 px (a phone, a tablet, a narrow window): the sections are a bar at the screen's foot, an icon over a short
   word, as in an app: the thumb reaches it, all four are in sight and the header is one thin line. «Статьи», «Клубы»,
   «О сайте» are under «Ещё», a card over the bar (on one of their pages «Ещё» reads its name and is current). On a
   tablet the four keep together in the middle. The bar leaves while the map is full screen, a game of the trainer is on
   and a text field has the keyboard up; the feedback button stands above it */
@media (max-width:1099px){
  :root{--tabbar:56px}
  /* the logo's subtitle takes no width: under the logo, beside it the account links and Telegram keep to one line on a
     phone. They stand on the logo's line, not the block's middle: there the subtitle ran up to the bell (30.11) */
  .brand{position:relative;padding-bottom:20px}.brand .tag{position:absolute;left:0;bottom:0}
  header.top{align-items:flex-start}header.top :is(.who,.tgch-top){align-self:flex-start;height:30px;box-sizing:border-box}
  .sections{position:fixed;left:0;right:0;bottom:0;z-index:1100;margin:0;gap:0;overflow:visible;border:0;border-top:1px solid var(--line);
    background:var(--panel);padding:0 max(0px,calc(50% - 300px)) env(safe-area-inset-bottom);justify-content:space-evenly}
  /* each item as wide as its word, the room left shared out evenly: the gaps between the words are the same, and the
     short «Ещё» gets no wider cell than the others (30.11); on a tablet the four keep within 600 px in the middle */
  .sections a,.sec-more{flex:0 1 auto;min-width:0;height:var(--tabbar);box-sizing:border-box;display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:3px;padding:0 10px;margin:0;border:0;background:none;font:inherit;font-size:11px;font-weight:600;line-height:1.2;
    color:var(--muted);text-decoration:none;white-space:nowrap;cursor:pointer}
  .sections svg{display:block;width:22px;height:22px;flex:none}
  .sections a[aria-current=page],.sec-more[aria-current=page],.sec-more[aria-expanded=true]{color:var(--accent)}
  .sections a:is([data-s=guide],[data-s=orient],[data-s=about]){display:none}
  .sec-more-list{display:flex;flex-direction:column;position:fixed;left:max(8px,calc(50% - 240px));right:max(8px,calc(50% - 240px));z-index:1100;padding:6px;border-radius:14px;
    bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 8px);background:var(--panel);border:1px solid var(--line);box-shadow:0 8px 28px rgba(0,0,0,.18)}
  .sec-more-list a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;font-weight:600;font-size:15px;color:var(--ink);text-decoration:none}
  .sec-more-list svg{width:22px;height:22px;color:var(--muted)}
  .sec-more-list a[aria-current=page]{color:var(--accent);background:var(--soft)}.sec-more-list a[aria-current=page] svg{color:var(--accent)}
  body:has(#sections:not([hidden])) .wrap{padding-bottom:calc(60px + var(--tabbar) + env(safe-area-inset-bottom))}
  body:has(#sections:not([hidden])) .fb-btn{bottom:calc(16px + var(--tabbar) + env(safe-area-inset-bottom))}
  body:is(:has(.tg-full,:fullscreen),:has(:is(input:not([type=checkbox],[type=radio],[type=range],[type=file]),textarea,select):focus)) :is(.sections,.sec-more-list){display:none}
  body:is(:has(.tg-full,:fullscreen),:has(:is(input:not([type=checkbox],[type=radio],[type=range],[type=file]),textarea,select):focus)) .fb-btn{bottom:16px}}
h1,h2{font-family:var(--display);font-weight:700;margin:0;letter-spacing:.01em}
h1{font-size:32px;line-height:1.1}
h2{font-size:22px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px}
.pad{padding:18px}
.grid{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:860px){.grid{grid-template-columns:minmax(0,1fr)}}
label.lbl{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.drop{border:1.5px dashed var(--line);border-radius:10px;padding:16px;display:flex;gap:12px;align-items:center;cursor:pointer;transition:border-color .15s,background .15s;min-height:84px}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--soft)}
.drop.filled{border-style:solid}
.drop input{position:absolute;opacity:0;width:1px;height:1px}
.drop .ico{width:52px;height:52px;border-radius:8px;background:var(--soft);display:grid;place-items:center;flex:none;overflow:hidden;color:var(--accent);font:600 13px var(--mono)}
.drop .ico img{width:100%;height:100%;object-fit:cover}
.drop .t{font-weight:600}
.drop .s{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.field{display:flex;flex-direction:column;gap:6px}
input[type=text],input[type=search],input[type=url],select{font:inherit;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);width:100%}
/* the browser's arrow sits on the edge: ours, inset */
select{appearance:none;-webkit-appearance:none;padding-right:34px;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A8690' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center}
.check{display:flex;gap:8px;align-items:center;font-size:14px}
.form{display:flex;flex-direction:column;gap:14px}
.btn{font:inherit;font-weight:600;padding:10px 16px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px;justify-content:center}
.btn:hover{border-color:var(--accent)}
.btn .bi{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn.primary .spin{border-color:var(--accent-ink);border-top-color:transparent}
.btn .bi-fill{fill:currentColor;stroke-width:1.5}
.btn .bi-down{width:14px;height:14px;margin-left:-2px;opacity:.85}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.danger{color:var(--bad)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn:focus-visible,input:focus-visible,select:focus-visible,.drop:focus-within,.job-a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.msg{font-size:14px;padding:10px 12px;border-radius:8px;background:var(--soft)}
.msg.err{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)}
.hint{font-size:13px;color:var(--muted)}
/* «Похоже, это тоже ты» over my starts: a line a race — the day, the race and class, the place, «Это я» or «Не я» */
.my-rows{display:flex;flex-direction:column;gap:10px}.my-rows h2,.my-rows h3{margin:0}.my-rows h3{margin-top:6px}
.mr{list-style:none;margin:0;padding:0}
.my-rows-hint{margin:0}
/* a guest's «это я» on a race page: their season as it would start, from this line, and the sign-up */
.sh-dlg form{gap:14px}
.sh-dlg h2{padding-right:36px}
.sh-x{position:absolute;top:8px;right:8px;width:40px;height:40px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:26px;line-height:1;cursor:pointer}
.sh-x:hover{color:var(--accent);background:var(--soft)}
.sh-prev{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:12px;background:var(--soft)}
.sh-prev .lbl{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--accent);font-weight:600}
.sh-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sh-tiles div{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:10px;background:var(--panel)}
.sh-tiles span{font-size:12px;color:var(--muted)}.sh-tiles b{font:700 22px/1.1 var(--display)}.sh-tiles i{font:normal 12px var(--body);color:var(--muted)}
#ev-who{max-width:420px}
@media (max-width:640px){.sh-dlg .fb-row{flex-direction:column-reverse;align-items:stretch}}
/* «Сезон» over my starts: the tiles of a race's page, the gap chart, the rivals with their score */
.season{padding:0}.season h3{margin:0 0 4px}
.ss-sum{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;padding:14px 18px;cursor:pointer;list-style:none;border-radius:inherit}
.ss-sum::-webkit-details-marker{display:none}
.ss-sum:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.ss-t{font:700 20px/1.2 var(--display)}
.ss-f{font-size:14px;color:var(--muted);flex:1 1 auto;min-width:0}
.ss-spark{flex:none}.ss-spark polyline{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.ss-spark circle{fill:var(--accent)}
.ss-body{display:flex;flex-direction:column;gap:14px;padding:0 18px 18px}
@media (max-width:640px){.ss-f{order:3;flex-basis:100%}.ss-t{flex:1}}
@media (min-width:641px){.season .ev-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ss-chart{height:170px;margin-top:8px}.ss-chart svg{display:block;overflow:visible}
.ss-chart .g{stroke:var(--line);stroke-width:1}
.ss-chart .ax{font:11px var(--mono);fill:var(--muted)}
.ss-chart .val{font:500 11px var(--mono);fill:var(--ink)}
.ss-chart .ln{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.ss-chart .pt{fill:var(--panel);stroke:var(--accent);stroke-width:2.5;cursor:pointer}
.ss-chart .pt.best,.ss-chart a:hover .pt{fill:var(--accent)}
.mr.ss-rv li{grid-template-columns:minmax(0,1fr) auto}
.ss-n{display:flex;flex-direction:column;min-width:0}
.ss-sc{font:500 16px var(--mono);white-space:nowrap}.ss-sc.up{color:var(--ok)}.ss-sc.down{color:var(--bad)}
.ss-es{margin-top:10px}
.ss-dots{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column}
.ss-dots li{display:grid;grid-template-columns:12em minmax(0,1fr) auto;gap:6px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.ss-dots li:first-child{border-top:0}
.ss-dots .k{font-weight:600}.ss-dots .top .k{color:var(--accent)}
.ss-dots .d{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ss-dots .d>:not(.ss-more){padding:3px 9px;border:0;cursor:pointer;border-radius:999px;background:var(--soft);color:var(--accent);font:500 13px var(--mono);text-decoration:none;white-space:nowrap}
.ss-dots .d>:not(.ss-more):hover,.ss-dots .d>:not(.ss-more):focus-visible{background:var(--accent);color:var(--panel)}
.ss-dots [data-none] .d>:not(.ss-more){color:var(--muted);background:var(--line)}
.ss-dots .d>[hidden]{display:none}
.kinds{margin-top:14px}.kinds .ss-dots{margin-top:4px}
.ss-more{padding:3px 9px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--muted);font:500 13px var(--body);cursor:pointer}
.ss-more:hover,.ss-more:focus-visible{color:var(--accent);border-color:var(--accent)}
.ss-dots .t{font:500 14px var(--mono);color:var(--muted);white-space:nowrap}
@media (max-width:640px){.ss-dots li{grid-template-columns:minmax(0,1fr) auto}.ss-dots .d{grid-column:1/-1;grid-row:2}}
/* a protocol's line with no track, as a start's card: in place of the map «Без трека» and «Добавить трек» */
.job.prow .th{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:44px 16px 16px;text-align:center}   /* clear of «⋯» in the corner */
.job.prow .th .btn{margin-top:8px}
.pr-l{font-size:13px;color:var(--muted)}
.pr-m{font:700 30px/1.1 var(--display);color:var(--accent)}
.pr-h{font-size:14px;color:var(--ink);max-width:24em}
.mr li{display:grid;grid-template-columns:6.5em minmax(0,1fr) auto auto;gap:4px 14px;align-items:baseline;padding:8px 0;border-top:1px solid var(--line)}
.mr li:first-child{border-top:0}
.mr-d,.mr-r{font:14px var(--mono);color:var(--muted);white-space:nowrap}.mr-r b{color:var(--ink);font-weight:500}
.mr-t{display:flex;flex-direction:column;min-width:0}.mr-t a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-g{font-size:13px;color:var(--muted)}
.mr-a{display:flex;gap:12px;align-items:center;white-space:nowrap}
.mr-a .btn{padding:4px 12px}
@media (max-width:640px){.mr li{grid-template-columns:minmax(0,1fr) auto}.mr-d{grid-column:1/-1;font-size:13px}.mr-t{grid-column:1/-1}.mr-t a{white-space:normal}}
.jobs{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}   /* «24.10.25 · 14,56 км · 24 КП» on one line */
.job{position:relative;display:flex;flex-direction:column;text-decoration:none;color:inherit;overflow:hidden;transition:border-color .15s}
.job:hover{border-color:var(--accent)}
.jobs-more{grid-column:1/-1;height:1px}
/* the card is a box: the link fills it, «⋯» sits over the picture's corner on glass (readable on a light photo and on none) */
.job-a{flex:1;display:flex;flex-direction:column;color:inherit;text-decoration:none;border-radius:inherit;outline-offset:-2px}
.job .job-dl{position:absolute;top:8px;right:8px;z-index:2}
/* quiet until wanted: a thin glass over the photo, the dots alone tell it's there; the card's hover brings it up */
.job-dots{width:32px;height:32px;padding:0;display:grid;place-items:center;border:1px solid transparent;border-radius:99px;cursor:pointer;color:var(--ink);
  background:color-mix(in srgb,var(--panel) 45%,transparent);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:.75;transition:opacity .15s,background .15s}
.job:hover .job-dots{opacity:1;background:color-mix(in srgb,var(--panel) 75%,transparent)}
.job-dots svg{width:18px;height:18px;fill:currentColor}
.job-dots:hover,.job-dots:focus-visible,.job-dots[aria-expanded=true]{opacity:1;background:var(--panel);border-color:var(--accent);color:var(--accent)}
.job-dots:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.job-dl .dl-menu{left:auto;right:0;min-width:200px}
.job-dl .dl-menu b{font-weight:500}
.fb .fb-b.pri.bad{background:var(--bad);border-color:var(--bad)}   /* a start's deletion: the confirming button in red */
.job-dl [data-act=del]{color:var(--bad)}.job-dl [data-act=del] .i{stroke:var(--bad)}
.job .th{aspect-ratio:4/3;background:var(--soft);display:grid;place-items:center;color:var(--muted);font-size:13px;overflow:hidden;position:relative}
/* laid over the box, not in its grid: Safari on an iPhone sized the grid's row by the picture's own height (100 % of
   a row the aspect-ratio box doesn't fix), so the picture sat lower than its box with its bottom cut off (04.12) */
.job .th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* until /api/jobs answers, the cards' outlines with a shine running over them (in the template: on screen at once, no script);
   the list replaces them. One full row of them (the rows past it take no room), two cards on a phone */
.sks{grid-column:1/-1;display:grid;grid-template-columns:inherit;gap:inherit;grid-template-rows:auto;grid-auto-rows:0;row-gap:0;overflow:hidden}
.job.sk{pointer-events:none}
.job.sk .b{min-height:142px}
.sk :is(.th,.ev-day,i){background:linear-gradient(100deg,var(--line) 40%,var(--sk-shine) 50%,var(--line) 60%) 0 0/300% 100%;animation:sk 1.4s linear infinite}
.sk .th{border-radius:0}
.sk .ev-day{height:68px}
.sk i{display:block;height:14px;border-radius:6px}
.sk .ev-head i:first-child{width:80%;height:18px}
.sk .ev-head i+i{width:55%}
.sk .ev-foot i:first-child{width:72px;height:22px}
.sk .ev-foot i+i{width:84px;height:24px;border-radius:99px}
@keyframes sk{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.sk :is(.th,.ev-day,i){animation:none}}
@media (max-width:640px){.sks{grid-template-rows:auto auto;row-gap:14px}}
/* under the picture a start's card is a race's card (.ev-day, .ev-head, .ev-foot): the day on a tile, the time under a line */
.job .b{flex:1;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr auto;gap:12px 14px;padding:14px 16px}
.meta{font-family:var(--mono);font-size:12px;color:var(--muted)}
/* a start's line (date · km · time) is under its title, not a row of its own over it (16.11: on a phone it took a line
   between «← Мои старты» and the title); one line high from the first frame, so nothing moves when its data comes */
#j-meta{display:block;margin:6px 0 0;min-height:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#j-guest:empty{display:none}   /* only a shared link fills it: empty, it would add a gap of its own */
/* «← Мои старты» over a start: the link stays 44 px to tap, but its padding doesn't push the page apart (16.11: 30 px
   of air over the words and 26 under them on a phone) */
.btn.ghost.back{margin:-10px 0}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:2px 9px;border-radius:99px;width:fit-content}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.chip.done{color:var(--ok);background:color-mix(in srgb,var(--ok) 14%,transparent)}
.chip.work{color:var(--accent);background:var(--soft)}
.chip.review{color:var(--warn);background:color-mix(in srgb,var(--warn) 16%,transparent)}
.chip.error{color:var(--bad);background:color-mix(in srgb,var(--bad) 14%,transparent)}
.chip.work::before{animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.chip.work::before{animation:none}}
.empty{padding:40px 20px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:14px;grid-column:1/-1}
.empty p{margin:0}
.home{display:flex;flex-direction:column;gap:18px}
.homehead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.btn.big{padding:12px 22px;font-size:16px}
/* the section's main action on the line of its heading: a pill with a plus, one word on a phone so both fit in 343px */
.homehead.add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:baseline}
/* the button sits on the heading's baseline, lifted so the middles of the small letters meet: centring the boxes put it
   on the capitals and a few px above «оревнования», and by more on a phone, whose Cyrillic comes from another font */
.homehead.add .btn.add{position:relative;top:-1px}
.homehead.add>.totals,.homehead.add>.hrow{grid-column:1/-1}
.hrow{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.hrow .totals{align-self:stretch}
/* «Сезон» under the totals, over «Задача дня» and the list/map switch: the switch stays by the list it switches */
#h-season{align-self:stretch}#h-season:empty{display:none}
/* the season to «Задача дня» as far as «Задача дня» to the cards (.home's 18 px); an empty block takes no gap of its own */
#h-season:not(:empty){margin-bottom:8px}#h-guest:empty,#h-rows:empty{display:none}
/* the line into the day's task (dailyHook) on the row of the list/map switch: on a phone that row was the switch alone */
.hline{align-self:stretch;display:flex;align-items:center;justify-content:flex-end;gap:10px}#h-daily{flex:none;min-width:0;margin-right:auto}#h-daily:empty{display:none}
#h-daily .dhook{min-height:43px;box-sizing:border-box;padding:6px 14px}#h-daily .dsep,#h-daily .dq{display:none}   /* beside the switch: «Задача дня →» alone, the question is in the task */
/* the family's accounts on the switch's row, scrolled sideways when they outgrow it; «Задача дня» then gets a row of
   its own on a phone, where the three side by side left the names a sliver */
.hline>.fam{flex:1 1 0;min-width:0;margin:0}
@media (max-width:600px){.hline:has(>.fam:not([hidden])){flex-wrap:wrap}.hline:has(>.fam:not([hidden]))>#h-daily{flex-basis:100%;margin:0}}
#h-guest:empty{display:none}   /* else an empty row and a second gap between the heading and the starts */
.btn.add{padding:8px 16px 8px 12px;border-radius:999px;gap:6px;font-size:15px;white-space:nowrap}
.btn.add svg{width:18px;height:18px;flex:none}
.btn.add .n{display:none}
@media (max-width:520px){.btn.add .w{display:none}.btn.add .n{display:inline}}
/* 320 px (iPhone SE): «Соревнования» and «+ Протокол» overlapped; the plus alone says it next to the heading */
@media (max-width:360px){.btn.add .n{display:none}.btn.add{padding:10px}}
.btn.ghost{border-color:transparent;background:none;padding-left:0;width:fit-content}
.btn.ghost:hover{color:var(--accent)}
.newpage{max-width:520px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.newpage .form{gap:12px}
.newpage h1{margin-bottom:6px}
/* first visit: what the site does, next to the form */
.welcome{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}
@media (max-width:860px){.welcome{grid-template-columns:minmax(0,1fr);gap:20px}}
.welcome .newpage{max-width:none;margin:0}
.intro{display:flex;flex-direction:column;gap:16px}
.intro h1{font-size:40px;line-height:1.05}
.intro h1 b{color:var(--accent)}
@media (max-width:640px){.intro h1{font-size:32px}}
.intro .lead{margin:0;font-size:16px;color:var(--muted);max-width:52ch}
/* the trainer for whoever came without a track (01.12: a fifth of the visitors come in through it, and it brings the
   most sign-ups) — static, in the first screen, so it moves nothing when the page loads */
.intro .w-train{margin:-6px 0 0;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.intro .w-train svg{width:18px;height:18px;flex-shrink:0;color:var(--accent)}
.intro .w-train a{font-weight:600}
.intro video{display:block;width:100%;height:auto;aspect-ratio:720/650;border-radius:12px;border:1px solid var(--line);background:var(--soft)}
.intro ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;counter-reset:st}
@media (max-width:640px){.intro ol{grid-template-columns:minmax(0,1fr)}}
.intro li{counter-increment:st;display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--muted)}
.intro li b{color:var(--ink);font-size:15px}
.intro li b::before{content:counter(st);display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:50%;
  background:var(--accent);color:var(--accent-ink);font:600 12px var(--mono);vertical-align:1px}
.welcome-page{display:flex;flex-direction:column;gap:28px}
.faq{display:flex;flex-direction:column}
.faq h2{margin-bottom:6px}
.faq details{border-top:1px solid var(--line);padding:12px 0}
.faq details:last-child{padding-bottom:0}
.faq summary h3{margin:0;font:600 16px/1.35 var(--body)}
.faq-a{color:var(--muted);font-size:15px;max-width:75ch}
.faq-a p{margin:8px 0 0}
.tracks{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:8px}
.tracks h4{margin:0;color:var(--ink);font-size:15px}
.tracks ol{margin:4px 0 0;padding-left:20px}
.tracks p{margin:4px 0 0;font-size:13px}
.intro .go{display:none;align-self:flex-start}
@media (max-width:860px){.intro .go{display:inline-flex}}
.drop.opt{border-style:dotted;min-height:64px;padding:12px 16px}
.drop.opt .ico{width:40px;height:40px}
.add-sheet{align-self:flex-start;margin-top:-6px}
.steps{display:flex;gap:6px;flex-wrap:wrap;font-size:13px}
.steps span{padding:4px 10px;border-radius:99px;border:1px solid var(--line);color:var(--muted)}
.steps span.on{border-color:var(--accent);color:var(--accent);font-weight:600}
.steps span.past{color:var(--ink)}
/* cards on the result page: same spacing as between the picture and the video */
#j-body{display:flex;flex-direction:column;gap:16px}
.result{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
@media (max-width:860px){.result{grid-template-columns:minmax(0,1fr)}}
/* picture and video cards share two rows (frame, text) so they line up side by side; their buttons are in the title */
.result{grid-template-rows:auto auto}
.result>.media{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:14px}
/* a start with legs: one card, the map replayed as on the shared page */
.result.solo{display:flex;flex-direction:column}
.result.solo>.media{display:flex;flex-direction:column;gap:10px}
/* «Скачать»: a small menu under the button: the two cuts of the video, and the picture beside the replay */
.dl{position:relative}
.dl-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:30;min-width:300px;display:flex;flex-direction:column;gap:2px;padding:6px;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.18)}
.dl-menu button,.dl-menu a{font:inherit;text-align:left;text-decoration:none;background:none;border:0;padding:8px 10px;border-radius:7px;color:var(--ink);cursor:pointer;
  display:grid;grid-template-columns:24px 1fr;column-gap:12px;row-gap:2px;align-items:center}
.dl-menu .i{grid-row:span 2;width:24px;height:24px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dl-menu button:hover,.dl-menu button:focus-visible,.dl-menu a:hover,.dl-menu a:focus-visible{background:var(--soft)}
.dl-menu .s{font-size:13px;color:var(--muted)}
/* a video's row: its two kinds as buttons at its end, the flat replay and the one in 3D (the latter while «3D» can be had) */
.dl-menu .dl-row{padding:8px 6px 8px 10px;display:grid;grid-template-columns:24px 1fr auto;column-gap:12px;row-gap:2px;align-items:center}
.dl-row .dl-k{grid-column:3;grid-row:1/span 2;display:flex;gap:4px}
.dl-menu .dl-k button{display:block;padding:7px 11px;border:1px solid var(--line);font-weight:600;font-size:13px;color:var(--accent)}
.frame{border-radius:10px;overflow:hidden;background:#111;display:flex;align-items:center;justify-content:center;min-height:0}
.frame img,.frame video{display:block;width:100%;height:100%;object-fit:contain}
.frame img{cursor:zoom-in}
.mtext{display:flex;flex-direction:column;gap:6px;align-self:start}
.mtext:empty{display:none}
.cap{font-size:13px;color:var(--muted)}
.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;z-index:20;cursor:zoom-out}
/* sized by the window, not by its container: a % max-height inside an auto-sized box doesn't limit anything */
.lightbox .lb{position:relative;line-height:0}
.lightbox img{display:block;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);width:auto;height:auto;border-radius:6px}
.lightbox svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.spin{display:inline-block;width:16px;height:16px;border:2px solid var(--soft);border-top-color:var(--accent);border-radius:50%;animation:sp 1s linear infinite;vertical-align:-3px}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:3s}}
.splits{overflow-x:auto}
/* scrolled sideways (a phone, a long course), who the row is stays in view: the name column, or the first one in a table
   without names (КП). What is left of it (the map tick) slides under it */
.splits :is(th,td).nm,.splits table:not(:has(.nm)) :is(th,td):first-child{position:sticky;left:0;z-index:1;background:var(--panel);
  box-shadow:inset -1px 0 0 var(--line);transition:background-color .2s,box-shadow .2s}
/* once scrolled (.scrolled, set in app-core.js), that column is frosted glass over the rest, with a soft edge instead of a line */
.splits.scrolled :is(th,td).nm,.splits.scrolled table:not(:has(.nm)) :is(th,td):first-child{background:color-mix(in srgb,var(--panel) 58%,transparent);
  -webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5);
  box-shadow:10px 0 14px -12px color-mix(in srgb,var(--ink) 55%,transparent)}
/* a place right before the name (the first column) stays too, a fixed width so the name knows where to stick */
.splits tr>:first-child:has(+.nm){position:sticky;left:0;z-index:1;background:var(--panel);box-sizing:border-box;
  width:2.2em;min-width:2.2em;max-width:2.2em;padding-right:2px;transition:background-color .2s}
.splits tr>:first-child+.nm{left:2.2em;padding-left:3px}
.splits.scrolled tr>:first-child:has(+.nm){background:color-mix(in srgb,var(--panel) 58%,transparent);
  -webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5)}
/* the name itself, and how it slims to its first letters once scrolled (.slim, app-core.js): the map tick folds away, the name
   is cut to three letters with a fade, back to its own width (--w) when scrolled home */
.splits td.nm .nt{display:inline-block;vertical-align:bottom;overflow:hidden;white-space:nowrap;max-width:var(--w,none);
  transition:max-width .28s ease}
.splits td.nm .sw{transition:width .28s ease,margin .28s ease,opacity .2s}
.splits.slim td.nm .nt{max-width:2.4em;-webkit-mask-image:linear-gradient(90deg,#000 75%,transparent);mask-image:linear-gradient(90deg,#000 75%,transparent)}
.splits.slim td.nm .sw{width:0;margin-right:0;opacity:0}
/* folding is slower than opening and eases in to rest, so the cells drift left under the finger rather than jump */
.splits.slim td.nm .nt{transition:max-width .55s cubic-bezier(.22,1,.36,1)}
.splits.slim td.nm .sw{transition:width .45s cubic-bezier(.22,1,.36,1),margin .45s cubic-bezier(.22,1,.36,1),opacity .25s}
.splits.slim td.nm .meta{visibility:hidden}
@media (prefers-reduced-motion:reduce){.splits td.nm :is(.nt,.sw){transition:none}}
.splits table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.splits th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600;text-align:left;padding:6px 8px;border-bottom:1px solid var(--line)}
.splits td{padding:3px 8px;border-bottom:1px solid var(--line);font-family:var(--mono)}
.splits input{font:inherit;width:6.5em;padding:4px 6px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ink)}
.splits input:hover{border-color:var(--line)}
.splits input:focus{border-color:var(--accent);background:var(--panel);outline:none}
.splits input.place{width:3.5em}
.splits input.empty{border-color:var(--warn);border-style:dashed}
/* a tick in a table is not a split being typed in: its own size, not the field's 6.5em and padding (the shared map's
   «Карта» column was 114 px wide on a phone for a 16 px tick, wider than the names) */
.splits input[type=checkbox]{width:16px;height:16px;padding:0;margin:0;border:0;accent-color:var(--accent);vertical-align:middle;cursor:pointer}
.together table.results :is(th,td):first-child{text-align:center;padding-left:6px;padding-right:6px}
.splits .pl{display:inline-block;min-width:1.6em}
.pic{position:relative}
/* default "meet" fitting matches the picture's object-fit: contain */
.pic svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.fit{margin:0;font-size:14px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.fit span:first-child{font-weight:600}
.fit.ok span:first-child::before,.fit.warn span:first-child::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:1px}
.fit.ok span:first-child::before{background:var(--ok)}
.fit.warn span:first-child{color:var(--warn)}
.fit.warn span:first-child::before{background:var(--warn)}
/* how to fix the georeference: until the guide is opened */
.fixhint{margin-top:10px;padding:12px 14px;border-radius:10px;background:var(--soft);display:flex;flex-direction:column;gap:8px;font-size:14px}
.fixhint p{margin:0}.fixhint .row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.fixhint a:not(.btn){color:var(--accent);font-weight:600}
.progress{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:start}
/* one column on a phone: what is going on and how long first, the map under it (a photo of a map is taller than the screen) */
@media (max-width:860px){.progress{grid-template-columns:minmax(0,1fr)}.progress .pvt{order:-1}}
.pv{position:relative;border-radius:10px;overflow:hidden;background:var(--soft)}
.pv img{display:block;width:100%;opacity:.75}
.pv svg{position:absolute;inset:0;width:100%;height:100%}
.pv circle{fill:none;stroke:var(--accent);vector-effect:non-scaling-stroke;stroke-width:2.5;animation:pop .35s ease-out both}
@keyframes pop{from{opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(1.6)}}
@media (prefers-reduced-motion:reduce){.pv circle{animation:none}}
.pvt{display:flex;flex-direction:column;gap:10px}
/* an unsure tie's guess on the job page (showGuess): the track over the photo, the photo at full strength */
.pv.guess{max-width:560px}.pv.guess img{opacity:1;height:auto}
.pv.guess polyline{fill:none;stroke:var(--s1);stroke-width:3;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pv.guess polyline.halo{stroke:var(--pin-halo);stroke-width:6}
.redraw{position:sticky;top:8px;z-index:5;width:fit-content;margin:0 auto -6px;padding:6px 14px;border-radius:99px;background:var(--panel);border:1px solid var(--accent);font-size:14px;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.busy .result,.busy .legs{opacity:.55;transition:opacity .2s}
.legs{display:flex;flex-direction:column;gap:18px;--det:#2F7BC4;--clean:color-mix(in srgb,var(--ink) 18%,transparent)}
@media (prefers-color-scheme:dark){.legs{--det:#6AA8E8}}
.legs .lbl{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}
.dot.hes{background:var(--warn)}.dot.det{background:var(--det)}.dot.ok{background:var(--ok)}.dot.climb{background:var(--climb)}.dot.nogps{background:transparent;border:2px dashed var(--muted)}
.sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.stat{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:10px;background:var(--soft)}
.stat b{font:700 28px/1.1 var(--display);font-variant-numeric:tabular-nums}
.worst{display:flex;flex-direction:column;gap:8px}
.wchip{font:inherit;color:inherit;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:10px;
  border:1px solid color-mix(in srgb,var(--warn) 45%,var(--line));background:color-mix(in srgb,var(--warn) 8%,var(--panel))}
.worst .row>.wchip{flex:1 1 200px}
.wchip:hover{border-color:var(--warn)}
.wchip span{font-size:13px;color:var(--muted)}
.wchip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.leglist{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.leg{display:grid;grid-template-columns:40px 92px minmax(80px,1fr) minmax(0,1.3fr);gap:6px 14px;align-items:center;padding:9px 8px;border-bottom:1px solid var(--line);cursor:pointer}
.leg:hover{background:color-mix(in srgb,var(--soft) 60%,transparent)}
.leg.sel{background:var(--soft);box-shadow:inset 3px 0 0 var(--accent)}
.leg:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.leg .kp{width:32px;height:32px;border-radius:50%;border:2px solid var(--accent);color:var(--accent);display:grid;place-items:center;font-weight:700;font-size:14px}
.leg .tm{display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}
.leg .tm b{font-size:16px}
.pl{font-size:13px;font-weight:600;color:var(--muted)}
.pl i{font-style:normal;font-weight:400}
.pl.first{color:var(--ok)}
.bar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:transparent}
.bar i{display:block;height:100%}
.bar .c,.legend .c{background:var(--clean)}.bar .h,.legend .h{background:var(--warn)}.bar .d,.legend .d{background:var(--det)}.bar .u,.legend .u{background:var(--climb)}
.why{font-size:14px;color:var(--muted);min-width:0}
.why b{color:var(--ink)}
.why.bad b{color:var(--warn)}
.why .var{display:block;margin-top:2px;font-size:13px;color:var(--accent)}   /* which way: on a leg run by different ways */
.sum .grp{color:var(--accent)}   /* «у группы обычно» under my own totals */
.okk{color:var(--ok);font-size:13px}
.more{grid-column:1/-1;padding:4px 0 4px 54px}
.ld{display:flex;flex-direction:column;gap:6px}
.ld p{margin:0;font-size:14px;display:block}
.ld .dot,.why .dot{margin-right:7px;vertical-align:1px}
.legend{display:flex;gap:16px;flex-wrap:wrap}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:18px;height:8px;border-radius:4px}
.how summary{font-size:14px;color:var(--muted)}
.how summary::after{width:6px;height:6px;margin-left:8px}
.how p{margin:8px 0 0;font-size:14px;color:var(--muted);max-width:75ch}
/* "where do I get the track": a link right under the track field, one brand's steps at a time */
.trackhelp{margin:-4px 0 -6px}
.trackhelp>summary{justify-content:flex-start;gap:6px;font-size:14px;font-weight:600;color:var(--accent);width:fit-content;margin-left:auto}
.trackhelp>summary::before{content:"?";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;
  border:1.5px solid currentColor;font:600 11px var(--mono)}
.trackhelp>summary::after{border-color:currentColor;margin-left:2px}
.th-box{margin-top:10px;padding:12px;border-radius:10px;background:var(--soft);display:flex;flex-direction:column;gap:10px}
.th-tabs{display:flex;flex-wrap:wrap;gap:6px}
.th-tabs button{font:inherit;font-size:13px;font-weight:600;padding:5px 11px;border-radius:99px;border:1px solid var(--line);
  background:var(--panel);color:var(--muted);cursor:pointer}
.th-tabs button[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.th-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.th-steps{margin:0;padding-left:20px;font-size:14px;display:flex;flex-direction:column;gap:4px}
.th-steps li::marker{color:var(--accent);font-weight:600}
.th-note{margin:0;font-size:13px;color:var(--muted)}
@media (max-width:640px){.leg{grid-template-columns:36px 1fr;}.leg .bar,.leg .why{grid-column:2}.more{padding-left:0}}
.vloop{margin:0;font-size:14px;color:var(--accent);font-weight:600;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.linkbtn{font:inherit;font-weight:500;font-size:13px;background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;cursor:pointer}
.linkbtn:hover{color:var(--ink)}
/* a long table: 20 rows tall, scrolled inside under its header (foldRows) */
.splits.tall{overflow-y:auto;border-bottom:1px solid var(--line)}
.splits.tall thead th{position:sticky;top:0;z-index:2;background:var(--panel)}
.splits.tall thead th:is(.nm,:first-child){z-index:3}
details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px}
details>summary::-webkit-details-marker{display:none}
details>summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-left:auto;transition:transform .15s}
details[open]>summary::after{transform:rotate(-135deg)}
details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.kv{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:14px}
.kv b{font-weight:600}
.bar{height:6px;background:var(--soft);border-radius:3px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);width:0}
.who{margin-left:auto;align-self:center;display:flex;gap:12px;align-items:center;font-size:14px;color:var(--muted)}
.who a{color:var(--muted)}.who a:hover{color:var(--accent)}
.who .badge{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-ink);
  font:600 11px/18px var(--mono);text-align:center}
/* an admin's «Аналитика» and the bell as icons, the number of what's new on its corner */
.who .ico{position:relative;align-self:center;display:inline-flex;padding:2px}.who .ico svg{width:20px;height:20px}
.who .acc svg{display:none;width:20px;height:20px}
.who .acc{display:inline-flex;align-items:center}.who .acc .acc-medal{display:inline-flex;margin-left:5px}.who .acc .acc-medal svg{display:block;width:18px;height:18px}
@media (max-width:480px){.who{gap:7px}.who .acc{align-self:center;display:inline-flex;padding:2px}.who .acc svg{display:block}.who .acc span{display:none}
  .who .acc{position:relative;margin-right:5px}.who .acc .acc-medal{position:absolute;right:-7px;bottom:-5px;margin:0}.who .acc .acc-medal svg{width:15px;height:15px}}   /* a phone: the medal on the account icon's corner */
/* on the bell itself, ringed in the page's colour so the bell's outline doesn't cut through it */
.who .ico:has(.badge){margin-right:5px}.who .ico .badge{position:absolute;top:-5px;right:-7px;min-width:16px;padding:0 4px;font-size:10px;line-height:16px;box-shadow:0 0 0 2px var(--bg)}
/* when the tagline doesn't fit beside them, it goes below: the account links stay on the logo's line */

/* a guest's start lives only in this browser: ask them to keep it in an account */
.guest{display:flex;gap:12px 18px;align-items:center;flex-wrap:wrap;border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.guest p{margin:0;flex:1 1 280px}
.guest .row{display:flex;gap:8px;flex-wrap:wrap}
/* public link under the result: the address, copy, send */
.share{display:flex;flex-direction:column;gap:10px;border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.share .row input{flex:1 1 240px;width:auto;font:14px var(--mono)}
/* «Напишите мне» under the shared-map block: a contact to hear when the protocol or the others turn up */
.news{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.news .row{display:flex;gap:8px;flex-wrap:wrap;margin:0}.news input{flex:1 1 220px;width:auto;min-width:0}
/* other people on the same course: everyone's line on my map, times, legs side by side */
.together{display:flex;flex-direction:column;gap:16px}
.together .media{display:flex;flex-direction:column;gap:10px}
.tg-teaser{display:flex;gap:12px 18px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.tg-who{display:inline-flex;align-items:center;margin-right:14px;white-space:nowrap}
/* the map stays compact on the page; "На весь экран" takes it with its controls and the live table */
.tg-stage{display:flex;flex-direction:column;gap:10px}
.tg-stage .frame{height:min(56vh,520px)}
.tg-stage:fullscreen,.tg-stage.tg-full{position:fixed;inset:0;z-index:1001;background:var(--bg);padding:0 0 calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;overflow:auto}
/* the map edge to edge, the controls under it keep the page's gutter */
.tg-stage:fullscreen .frame,.tg-stage.tg-full .frame{height:auto;flex:1 1 0;min-height:240px;border-radius:0}
.tg-stage:fullscreen>:not(.frame),.tg-stage.tg-full>:not(.frame){margin-inline:16px}
.tg-stage:fullscreen .frame img,.tg-stage.tg-full .frame img{cursor:default}
.tg-fs{margin-left:auto}
.tg-wait{position:absolute;color:#cfc9d4}
/* in full screen the map gets the room: small buttons, the leg on one line, ▶, the slider, the clock and «Свернуть»
   on one line too, how they start below it */
.tg-stage:fullscreen,.tg-stage.tg-full{gap:8px}
.tg-stage:fullscreen .btn,.tg-stage.tg-full .btn{padding:6px 12px;font-size:14px}
.tg-stage:fullscreen .seg button,.tg-stage.tg-full .seg button{padding:5px 8px;font-size:14px}
.tg-stage:fullscreen select,.tg-stage.tg-full select{padding:5px 28px 5px 10px;background-position:right 10px center;font-size:14px}
.tg-stage:fullscreen .tg-play,.tg-stage.tg-full .tg-play{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px 10px;align-items:center}
.tg-stage:fullscreen .tg-play .tg-ctl,.tg-stage.tg-full .tg-play .tg-ctl{display:contents}
.tg-stage:fullscreen .tg-fs,.tg-stage.tg-full .tg-fs{order:2;margin-left:0}
.tg-stage:fullscreen input[type=range],.tg-stage.tg-full input[type=range]{flex:1 1 220px;min-width:40px;order:1}
@media (max-width:640px){.tg-stage:fullscreen input[type=range],.tg-stage.tg-full input[type=range]{flex-basis:40px}}
.tg-stage:fullscreen .tg-clock,.tg-stage.tg-full .tg-clock{min-width:0}
.tg-stage:fullscreen .tg-time,.tg-stage.tg-full .tg-time{order:1}
.tg-stage:fullscreen .tg-play .tg-course,.tg-stage.tg-full .tg-play .tg-course{order:3}
.tg-stage:fullscreen .tg-legbar,.tg-stage.tg-full .tg-legbar{flex-wrap:nowrap;gap:8px}
.tg-stage:fullscreen .tg-legbar b,.tg-stage.tg-full .tg-legbar b{white-space:nowrap}
.tg-stage:fullscreen .tg-wd,.tg-stage.tg-full .tg-wd{display:none}
/* a phone in full screen: the names are on the dots already, and how they start can be set on the page */
@media (max-width:640px){.tg-stage:fullscreen .tg-live,.tg-stage.tg-full .tg-live,
  .tg-stage:fullscreen .tg-course,.tg-stage.tg-full .tg-course{display:none}}
/* controls over the map: my loss to the best on each leg; a press replays that leg for everyone. A sheet in the
   site's theme, light or dark, opaque enough for the place badges to read on any photo */
.tg-kps{position:absolute;top:8px;right:8px;bottom:8px;width:88px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:6px;
  border-radius:10px;background:var(--kp-bg);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);scrollbar-width:none;z-index:2;
  box-shadow:0 1px 6px rgba(0,0,0,.18);
  --kp-bg:rgba(255,255,255,.88);--kp-chip:rgba(0,0,0,.045);--kp-hover:rgba(0,0,0,.09);--kp-now:rgba(0,0,0,.35);--kp-lp:rgba(0,0,0,.1);
  --kp-ink:#1F1D22;--kp-muted:#55505B;--kp-best:#1E7A46;--kp-lost:#C0392B;
  --kp-q1:#2E8B57;--kp-q2:#7CC29A;--kp-q3:rgba(0,0,0,.22);--kp-q4:#C98A1E;--kp-q5:#C0392B;--kp-hes:#D9822B;--det:#2F7BC4;
  --kp-q1-ink:#1E7A46;--kp-q2-ink:#3B7F58;--kp-q3-ink:#55505B;--kp-q4-ink:#9A5B00;--kp-q5-ink:#B0302A}
@media (prefers-color-scheme:dark){.tg-kps{--kp-bg:rgba(20,18,24,.86);--kp-chip:rgba(255,255,255,.07);--kp-hover:rgba(255,255,255,.15);
  --kp-now:rgba(255,255,255,.5);--kp-lp:rgba(255,255,255,.2);--kp-ink:#F4F1F6;--kp-muted:#D3CED8;--kp-best:#7BE3A6;--kp-lost:#FF9A8C;
  --kp-q2:#4F9A70;--kp-q3:rgba(255,255,255,.28);--kp-hes:#F0A84A;--det:#7CB4EE;box-shadow:none;
  --kp-q1-ink:#7BE3A6;--kp-q2-ink:#A9DDBC;--kp-q3-ink:#D3CED8;--kp-q4-ink:#F0C080;--kp-q5-ink:#FF9A8C}}
.tg-kps::-webkit-scrollbar{display:none}
/* how the whole course plays, over the map's top left corner like the controls' list: it takes no line of its own;
   the tracks' opacity under it */
.tg-tl{position:absolute;top:8px;left:8px;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.tg-over{display:flex;gap:10px;align-items:center;padding:5px 12px 5px 5px;
  border-radius:10px;background:rgba(18,16,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font-size:14px}
.tg-over[hidden],.tg-over .check[hidden]{display:none}
.tg-over:has(.check[hidden]){padding-right:5px}   /* on a leg: the speed alone */
.tg-over select{width:auto;padding:5px 26px 5px 9px;font-size:14px;color:#fff;background-color:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);background-position:right 9px center}
.tg-over select option{color:var(--ink);background:var(--panel)}
.tg-over .check{font-size:14px;gap:6px;cursor:pointer}
/* «Через КП» beside the opacity, under «Весь путь»: the same glass, the opacity where it always was */
.tg-row{display:flex;gap:6px;align-items:center}
.tg-pullc{height:36px;padding:0 12px 0 10px;font-size:14px;gap:6px;cursor:pointer;color:#fff;border-radius:10px;
  background:rgba(18,16,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.28);box-shadow:0 1px 6px rgba(0,0,0,.3)}
.tg-pullc[hidden]{display:none}
.tg-pullc input[type=checkbox]{accent-color:var(--accent);margin:0}
/* the line's colour under them, a row of its own (on a phone the row above is as wide as the map): a swatch and the choice */
.tg-linec{display:flex;align-items:center;padding:0 4px 0 10px}
.tg-linec[hidden]{display:none}
.tg-linec select{width:auto;height:30px;padding:3px 24px 3px 4px;font-size:14px;color:#fff;background-color:transparent;border:0;background-position:right 7px center}
.tg-linec select option{color:var(--ink);background:var(--panel)}
.tg-sw{width:14px;height:14px;flex:none;border-radius:50%;border:1.5px solid rgba(255,255,255,.85)}
/* a phone: the settings folded into one glass button «⚙ ×30» (app-together.js); a wider screen shows them open, no button */
.tg-setp{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.tg-set{display:none;align-items:center;gap:6px;height:36px;padding:0 11px 0 9px;font:14px var(--mono);cursor:pointer;color:#fff;border-radius:10px;
  background:rgba(18,16,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.28);box-shadow:0 1px 6px rgba(0,0,0,.3)}
.tg-set .bi{position:static;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tg-tl.open .tg-set{border-color:var(--accent)}
/* folded, «Через КП» stays out beside the button: the one setting a runner flips while watching */
@media (max-width:640px){.tg-set{display:flex}.tg-tl:not(.open){flex-direction:row}
  .tg-tl:not(.open) .tg-setp>:not(.tg-row),.tg-tl:not(.open) .tg-row>:not(.tg-pullc){display:none}}
/* + / − over the map's bottom left, the same glass as the speed; two fingers or a drag move the map (replayPlayer) */
.tg-zoom,.tg-op{border-radius:10px;background:rgba(18,16,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.28);box-shadow:0 1px 6px rgba(0,0,0,.3)}   /* edged: past the photo the frame is as dark */
.tg-zoom{position:absolute;left:8px;bottom:8px;z-index:2;display:flex;flex-direction:column;overflow:hidden}
.tg-stage .tg-zoom .btn,.tg-stage .tg-op .btn{width:38px;height:38px;padding:0;border:0;border-radius:0;background:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tg-zoom .btn+.btn{border-top:1px solid rgba(255,255,255,.2)}
.tg-zoom .btn:hover{background:rgba(255,255,255,.12)}
.tg-op:not(.open):hover{background:rgba(48,44,56,.6)}
.tg-zoom .bi,.tg-op .bi{position:static}   /* not the map's own svg (.pic svg) */
/* «3D»: the same replay on the ground under the map (app-terrain.js), a layer over the frame; the map's own svg hidden under
   it, the speed, the controls' list and + / − stay on top. The «3D» button is the third under + / − (it reads «2D» then) */
.tg-zoom .tg-3db{font:700 13px var(--body)}
.pic.is3d>svg{visibility:hidden}
.is3d .tg-kps{z-index:2}
.tg-3dv{position:absolute;inset:0;z-index:1;background:linear-gradient(var(--sky),var(--bg) 85%)}
.tg-3dv canvas{position:absolute;inset:0;width:100%;height:100%}
.tg-3dgl{touch-action:none;cursor:grab}
.tg-3dlab{pointer-events:none}
.tg-3dwait{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:14px 18px;border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:0 2px 12px rgba(0,0,0,.25);max-width:80%;text-align:center}
.tg-3dwait progress{width:220px;max-width:60vw;accent-color:var(--accent)}
.tg-3dpct{font:500 13px var(--mono);color:var(--muted)}
.tg-3dn{position:absolute;left:56px;bottom:8px;width:38px;height:38px;padding:0;border-radius:10px;border:1px solid rgba(255,255,255,.28);
  background:rgba(18,16,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font:600 11px var(--body);line-height:1;gap:2px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center}
/* «за кем»: the glass's own select, as the speed's over the map (.tg-over select): no white box in the dark panel */
.tg-stage select.tg-3dwho{width:auto;max-width:170px;height:30px;padding:3px 24px 3px 9px;font:500 12px var(--body);color:#fff;
  background-color:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:8px;background-position:right 8px center}
.tg-3dwho option{color:var(--ink);background:var(--panel)}
.tg-3dn span{display:block;color:var(--accent);font-size:10px;line-height:1;transition:transform .1s}   /* the arrow and «С» together in the middle */
@media (max-width:640px){.tg-3dn{bottom:auto;left:auto;top:132px;right:8px}
  /* a phone: the relief's panel is one button beside the speed's; open, a column under it — the height on its own row */
}   /* a phone: + / − / 3D on the right top, the controls' list along the bottom */
/* the tracks' opacity: a ◐ and its number under the speed (mono: nothing shifts as it moves). Pressed, the ◐ goes and the
   slider's knob, drawn as the same ◐, rides out from its spot to the value as the track grows from 0, the number pushed
   to its end; closed, all of it back, the ◐ returning once the knob is home. No motion asked: at once */
.tg-op{display:flex;align-items:center;height:36px;cursor:pointer;color:#fff;--opw:130px}
.tg-stage .tg-op .btn{width:27px;height:36px;padding:0 0 0 9px;justify-content:flex-start;border-radius:9px 0 0 9px;overflow:hidden;
  transition:width 0s .25s,padding 0s .25s}
.tg-stage .tg-op.open .btn{width:0;padding:0;transition:none}
.tg-op .bi{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
.tg-opv{font:13px var(--mono);min-width:4.5ch;padding:0 10px 0 7px;text-align:right;white-space:nowrap}
.tg-opsl{width:0;overflow:hidden;visibility:hidden;transition:width .25s ease,margin 0s .25s,visibility 0s .25s}
.tg-op.open .tg-opsl{width:var(--opw);margin-left:11px;visibility:visible;transition:width .25s ease}
.tg-stage .tg-opsl input[type=range]{display:block;width:100%;min-width:0;height:22px;margin:0;padding:0;background:none;border:0;cursor:pointer;
  -webkit-appearance:none;appearance:none;order:0}
.tg-opsl input::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--accent) var(--p),rgba(255,255,255,.3) var(--p))}
.tg-opsl input::-moz-range-track{height:4px;border-radius:2px;background:rgba(255,255,255,.3)}
.tg-opsl input::-moz-range-progress{height:4px;border-radius:2px;background:var(--accent)}
/* the knob is the ◐: a ring, its right half filled, the left dark so the track doesn't show through */
.tg-opsl input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;box-sizing:border-box;
  border:1.5px solid #fff;background:linear-gradient(90deg,rgba(18,16,22,1) 50%,#fff 50%)}
.tg-opsl input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;box-sizing:border-box;border:1.5px solid #fff;background:linear-gradient(90deg,rgba(18,16,22,1) 50%,#fff 50%)}
/* the relief's height (app-terrain.js): the same control, a mountain for the ◐ and a plain knob */
.tg-relief .tg-opsl input::-webkit-slider-thumb,.tg-shade .tg-opsl input::-webkit-slider-thumb{background:#fff}
.tg-relief .tg-opsl input::-moz-range-thumb,.tg-shade .tg-opsl input::-moz-range-thumb{background:#fff}
.tg-3dfrow{gap:8px}
.tg-3datt{margin:10px 0 0;font-size:11px;color:var(--muted)}   /* the heights' source, at the bottom of the replay's block in 3D */
/* «Следовать» and «за кем» on the same glass as «Через КП» (.tg-pullc): over the map, not on it */
.tg-3dfrow .check{height:36px;padding:0 12px 0 10px;font-size:14px;gap:6px;cursor:pointer;color:#fff;border-radius:10px;
  background:rgba(18,16,22,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.28);box-shadow:0 1px 6px rgba(0,0,0,.3)}
.tg-3dprev{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--bg);z-index:1}
.tg-3dwait .btn{margin-top:2px}.tg-3dprev+.tg-3dwait{z-index:2}
.tg-3dfrow .check input{accent-color:var(--accent);margin:0}
.tg-stage .tg-3dfrow select.tg-3dwho{height:36px;font-size:14px;padding:3px 26px 3px 10px;border-radius:10px;background-color:rgba(18,16,22,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 1px 6px rgba(0,0,0,.3);background-position:right 9px center}
@media (prefers-reduced-motion:reduce){.tg-opsl,.tg-op.open .tg-opsl,.tg-stage .tg-op .btn{transition:none}}
/* a phone: the controls' strip has the bottom, so + / − go top right; the slider shorter, clear of them */
@media (max-width:640px){.tg-zoom{left:auto;bottom:auto;top:8px;right:8px}.tg-op{--opw:104px}}
.tg-stage .frame{touch-action:none;cursor:grab}   /* one finger moves the map, not the page (01.11) */
.tg-stage .frame{-webkit-user-select:none;user-select:none}   /* a pan doesn't select the controls' text (27.11) */
.tg-stage .frame.drag{cursor:grabbing}
.tg-over input[type=checkbox]{accent-color:var(--accent);margin:0}
.tg-kps .kp{font:inherit;flex:none;display:flex;flex-direction:column;align-items:center;gap:0;padding:4px 2px;border-radius:7px;border:1px solid transparent;
  background:var(--kp-chip);color:var(--kp-ink);cursor:pointer;line-height:1.2}
.tg-kps .kp b{font-size:15px;white-space:nowrap}
.tg-kps .kp span{font:11px var(--mono);color:var(--kp-muted)}
.tg-kps .kp.best span{color:var(--kp-best)}
.tg-kps .kp.lost span{color:var(--kp-lost)}
.tg-kps .kp:hover{background:var(--kp-hover)}
.tg-kps .kp.now{border-color:var(--kp-now)}
.tg-kps .kp.on{background:var(--accent);border-color:var(--accent);color:#fff}
.tg-kps .kp.on span{color:#fff}
/* under the time: the place on the leg; in the corner: a dot where time was lost, coloured by why */
.tg-kps .kp{position:relative}
/* a chip reads from the left: the control and my place on the leg, under it the time and why time was lost; a stripe
   on the left in the colour of the fifth of the field my place is in: green the best, red the last */
.tg-kps .kp{align-items:flex-start;padding:4px 4px 4px 9px}
/* the stripe is the left border itself, not an inset shadow: a shadow sits inside the 1px border and left a line of
   the chip's own colour (pink on the picked one) to the left of the green */
.tg-kps .kp.q1{--q:var(--kp-q1)}.tg-kps .kp.q2{--q:var(--kp-q2)}.tg-kps .kp.q3{--q:var(--kp-q3)}.tg-kps .kp.q4{--q:var(--kp-q4)}.tg-kps .kp.q5{--q:var(--kp-q5)}
.tg-kps .kp.q1,.tg-kps .kp.q2,.tg-kps .kp.q3,.tg-kps .kp.q4,.tg-kps .kp.q5{border-left:3px solid var(--q);padding-left:7px}
.tg-kps .kp .pl{font:500 11px var(--mono);font-style:normal;margin-left:5px;color:var(--kp-q3-ink)}
.tg-kps .kp.q1 .pl{color:var(--kp-q1-ink)}.tg-kps .kp.q2 .pl{color:var(--kp-q2-ink)}.tg-kps .kp.q4 .pl{color:var(--kp-q4-ink)}.tg-kps .kp.q5 .pl{color:var(--kp-q5-ink)}
.tg-kps .kp .why{display:inline-block;width:6px;height:6px;border-radius:50%;margin-left:5px;vertical-align:1px}
.tg-kps .kp .why.hes{background:var(--kp-hes)}.tg-kps .kp .why.det{background:var(--det)}
.tg-legstat{margin:0;font-size:13px;line-height:1.5}
.tg-legstat .dot{width:8px;height:8px;margin-right:5px;vertical-align:0}
.tg-stage .tg-legstat{--det:#2F7BC4}
@media (prefers-color-scheme:dark){.tg-stage .tg-legstat{--det:#6AA8E8}}
.tg-kps .kp:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (max-width:640px){.tg-kps{top:auto;left:8px;width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden}.tg-kps .kp{min-width:64px}}
.tg-legbar b{font-weight:600}
/* the menu of sections: a sticky row above them; beside the column where the screen has room for it */
.tg-nav{position:sticky;top:0;z-index:20;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:-4px -16px 0;padding:8px 16px;
  background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.tg-nav::-webkit-scrollbar{display:none}
.tg-nav a{flex:none;font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel)}
.tg-nav a:hover{color:var(--ink);border-color:var(--accent)}
.tg-nav a.on{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}
.tg-nav a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[data-nav]{scroll-margin-top:64px}
@media (min-width:1460px){
  .tg-nav{position:fixed;top:140px;left:calc(50% - 550px - 190px);width:170px;flex-direction:column;gap:2px;margin:0;padding:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .tg-nav a{border:0;background:none;border-left:2px solid var(--line);border-radius:0;padding:7px 12px}
  .tg-nav a.on{background:none;color:var(--accent);border-left-color:var(--accent)}
  [data-nav]{scroll-margin-top:20px}}
/* the analysis under the map: charts, me against one other, results, legs */
.together{--det:#2F7BC4}
@media (prefers-color-scheme:dark){.together{--det:#6AA8E8}}
.tg-panel{display:flex;flex-direction:column;gap:10px}
.tg-chart{position:relative}
.tg-chart .plot{outline:none;cursor:pointer;touch-action:pan-y}
.tg-chart .plot:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.tg-chart svg{display:block;overflow:visible}
.tg-chart .ax{font:11px var(--mono);fill:var(--muted)}
.tg-chart .lbl{font:600 12px var(--body);fill:var(--ink)}
.tg-chart .grid{stroke:var(--line);stroke-width:1}
.tg-chart .base{stroke:var(--muted);stroke-width:1}
.tg-chart .cross{stroke:var(--muted);stroke-width:1}
.tg-chart path.hot{filter:brightness(1.15)}
.tg-tip{position:absolute;z-index:5;pointer-events:none;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:6px 9px;
  font-size:13px;line-height:1.35;box-shadow:0 4px 14px rgba(0,0,0,.14);white-space:nowrap}
.tg-tip .tt{color:var(--muted);font-size:12px;margin-bottom:2px}
.tg-tip .tr{display:flex;gap:7px;align-items:center}
.tg-tip .tr i{width:12px;height:3px;border-radius:2px;flex:none}
.tg-tip .tr b{font-variant-numeric:tabular-nums}
.tg-tip .tr span{color:var(--muted)}
.tg-legend,.vs-legend,.tg-keys{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:var(--muted)}
.tg-legend i,.vs-legend i{display:inline-block;width:14px;height:3px;border-radius:2px;vertical-align:middle;margin-right:6px}
.vs-legend i{height:8px;width:10px}
.vs-legend i.ln{height:2px;width:14px;background:var(--ink);opacity:.75}
.tg-keys i{display:inline-block;width:14px;height:8px;border-radius:2px;vertical-align:-1px;margin-right:6px}
.tg-keys i.nogps{background:repeating-linear-gradient(90deg,var(--c) 0 4px,transparent 4px 7px)}
.run{background:var(--mid)}.hes{background:var(--warn)}.det{background:var(--det)}
.vs-sum{margin:0;line-height:1.55}
.vs-sum .hint{display:block}
.prerender table{border-collapse:collapse;font-size:14px}.prerender td,.prerender th{padding:4px 10px;border-bottom:1px solid var(--line);text-align:left}
.prerender nav{display:flex;flex-wrap:wrap;gap:6px 12px;margin:8px 0}
/* a race's page from the server laid out as the script's (.together): the sections' row as tall as .tg-nav, then the
   way back, then the title — where eventPage puts them; where the sections stand beside the column, no row */
.pre-ev{display:flex;flex-direction:column;gap:16px}
.pre-nav{height:51px;margin:-4px -16px 0}
@media (min-width:1460px){.pre-nav{display:none}}
/* «Итоги» in words (story.py), the same in the server's HTML and the page: a fact a row, its label in purple on the
   left (above it on a phone), names bold, times and counts in mono */
.sum-row{display:grid;grid-template-columns:128px 1fr;gap:2px 16px;margin:0;padding:10px 0;border-top:1px solid var(--line)}
.sum-list{display:flex;flex-direction:column}
.sum-row:first-child{border-top:0;padding-top:2px}
.sum-row>strong{font:600 11.5px/1.95 var(--body);letter-spacing:.07em;text-transform:uppercase;color:var(--accent)}
.sum-row>span{line-height:1.6;max-width:72ch}
.sum-row b{font-weight:600}
.sum-row a.sum-who{font-weight:600;color:var(--accent);text-decoration:none}
.sum-row a.sum-who:hover{text-decoration:underline}
.sum-row .n{font-family:var(--mono);font-size:.93em;font-weight:500;white-space:nowrap}
@media (max-width:640px){.sum-row{grid-template-columns:1fr}}
.ev-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
/* a race's card: the day on a tile beside the title, the counts under a line; «N разборов» is the accent's pill, and a
   card with any wears an accent edge — those races have tracks, a shared map and someone to compare with */
.ev-card{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr auto;gap:12px 14px;padding:16px;color:var(--ink);text-decoration:none;
  transition:border-color .15s;position:relative;overflow:hidden}
.ev-card:hover{border-color:var(--accent)}
.ev-card.has{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.ev-card.has::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--accent)}
.ev-day{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:54px;padding:6px 4px;border-radius:10px;
  background:var(--soft);color:var(--accent);line-height:1;align-self:start}
.ev-day b{font:700 26px/1 var(--display)}
.ev-day span{font:500 12px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.04em}
.ev-day span+span{color:var(--muted);font-size:11px;text-transform:none}
.ev-head{display:flex;flex-direction:column;gap:6px;min-width:0}
.ev-head b{font-size:16px;line-height:1.3}
.ev-head .meta .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ev-foot{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;
  padding-top:10px;border-top:1px solid var(--line)}
.ev-here{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 8px;border-radius:999px;font:600 13px var(--body);
  background:var(--accent);color:var(--accent-ink);white-space:nowrap}
.ev-here svg{width:13px;height:13px}
/* a start's place: the accent's tint, a podium's filled as «N разборов» */
.ev-rank{padding:3px 10px;border-radius:999px;font:600 13px var(--body);background:var(--soft);color:var(--accent);white-space:nowrap}
.ev-rank.top{background:var(--accent);color:var(--accent-ink)}
/* the races' filter: a word, the region, the month; on a phone the word and «Найти» on a line, the two lists under them */
.ev-filter{display:flex;gap:8px;flex-wrap:wrap}
.ev-filter input{flex:1 1 240px;width:auto;min-width:0}
.ev-filter select{flex:0 1 200px;width:auto;min-width:0}
.ev-filter select[name=region]{flex-basis:290px}   /* «Ханты-Мансийский (Ханты-Мансийск)» whole on a computer */
.ev-filter .sel{display:contents}
/* «С разборами»: a toggle the size of the selects beside it, the track mark of a card's «N разборов»; the checkbox
   itself only visually hidden (the form sends it, the keyboard reaches it) */
.ev-tracks{position:relative;display:inline-flex;align-items:center;gap:7px;padding:9px 13px 9px 11px;border:1px solid var(--line);border-radius:8px;
  background:var(--panel);color:var(--muted);white-space:nowrap;cursor:pointer;user-select:none}
.ev-tracks svg{width:14px;height:14px;flex:none}
.ev-tracks:hover{color:var(--ink)}
.ev-tracks:has(input:checked){border-color:var(--accent);background:var(--soft);color:var(--accent)}
.ev-tracks:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.ev-filter .ev-tracks input{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
@media (max-width:640px){.ev-filter{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .ev-filter .sel{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;grid-column:1/-1;order:1}
  .ev-tracks{grid-column:1/-1;order:2;justify-self:start}}
.ev-more{align-self:center}
/* a page of 12: a phone shows 5 until the script takes the list on (app-races.js eventsPage) */
.ev-more.ph{display:none}
@media (max-width:640px){.ev-cards:not(.open)>.ev-card:nth-child(n+6){display:none}.ev-more.ph{display:inline-flex}}
/* the list's opening words (races.list_head) and its regions under the cards: a link to each region's page */
.ev-intro{margin:-6px 0 0;color:var(--muted);line-height:1.5;max-width:72ch}
.ev-reg{display:grid;gap:10px;padding:14px 16px;max-width:520px}
.ev-reg label{font-weight:600}.ev-reg label .meta{display:block;font-weight:400;overflow-wrap:anywhere}
.ev-reg-b{display:flex;gap:8px;flex-wrap:wrap}
/* «Спортивное ориентирование: Ставропольский край» took four lines of 32 px beside the button on a phone */
@media (max-width:640px){.home h1.evh{font-size:26px}}
.ev-regions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ev-regions h2{flex-basis:100%;font-size:24px;margin-bottom:4px}
.ev-regions a{display:inline-flex;align-items:baseline;gap:6px;padding:5px 12px;border:1px solid var(--line);border-radius:999px;
  background:var(--panel);color:var(--ink);text-decoration:none;font-size:14px}
.ev-regions a:hover{border-color:var(--accent)}
.ev-regions a span{font:500 12px var(--mono);color:var(--muted)}
.ev-regions a[aria-current]{border-color:var(--accent);color:var(--accent)}
.ev-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.ev-stats .stat{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;background:var(--soft)}
.ev-stats .stat b{font-size:22px}
/* a runner's card under their line in a race's results: it stays in view while the wide table scrolls sideways */
.ev-row{cursor:pointer}
.ev-row[aria-expanded=true] td{border-bottom-color:transparent}
.splits tr.ev-rowcard>td{padding:4px 8px 12px;font-family:var(--body);white-space:normal}
.ev-rcard{position:sticky;left:8px;max-width:min(640px,calc(100vw - 96px));display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:10px;background:var(--soft)}
.ev-rcard .btn{padding:6px 12px;font-size:14px;border-radius:999px}
.ev-way svg{display:block;width:100%;height:40px;border-bottom:1px solid var(--line)}   /* place along the course: 1st at the top */
.ev-prog{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.ev-prog .mv{font-size:12px}.ev-prog .mv.up{color:var(--ok)}.ev-prog .mv.dn{color:var(--bad)}
/* on a phone the table fits 375 px instead of scrolling for its last column: «Отставание» breaks at its soft hyphen
   (the word alone made the column 91 px for «+36:20») and the cells are a bit narrower; the name keeps its own padding */
@media (max-width:640px){.ev-prog .splits :is(th,td){padding-left:4px;padding-right:4px}.ev-prog .splits th{letter-spacing:0}}
table.hard td{white-space:nowrap}
.hard-train{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:var(--soft);border:1px solid var(--accent);display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap}
.hard-train p{margin:0;flex:1 1 300px;font-size:14px}
.hard-train .btn{white-space:nowrap}
.hbar span{display:block;width:120px;height:8px;border-radius:2px;background:var(--line)}
.hbar i{display:block;height:100%;border-radius:2px;background:var(--accent)}
@media (max-width:640px){#ev-forks .hbar{display:none}}   /* on a phone the times come first: the count says the share */
.pr-list{display:flex;flex-direction:column;gap:6px}
.pr-pick{text-align:left;font:inherit;font-size:14px;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer}
.pr-pick:hover{border-color:var(--accent)}
.pr-pick.sure{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
#pr-q{max-width:420px}
.vs-title{display:flex;align-items:center;gap:0 10px;flex-wrap:wrap}
.vs-title :is(#vs-name,#vs-a){display:inline-flex;align-items:center;color:var(--accent)}
.vs-title .sw{width:22px;height:8px;margin-right:8px}
/* a row of round picks that scrolls sideways (the event page's groups) */
.vs-pick{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
.vs-pick button{flex:none;display:inline-flex;align-items:center;font:inherit;font-weight:600;font-size:14px;padding:8px 14px;border-radius:999px;
  border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer;white-space:nowrap}
.vs-pick button .t{font:13px var(--mono);color:var(--muted);margin-left:6px}
.vs-pick button .here{display:inline-flex;align-items:center;gap:3px;margin-left:8px;padding:1px 7px 1px 5px;border-radius:999px;font:12px var(--mono);
  background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.vs-pick button .here svg{width:11px;height:11px}
.vs-pick button[aria-checked=true] .here{background:color-mix(in srgb,var(--accent-ink) 22%,transparent);color:var(--accent-ink)}
.vs-pick button:hover{border-color:var(--accent)}
.vs-pick button[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.vs-pick button[aria-checked=true] .t{color:var(--accent-ink);opacity:.85}
.vs-pick button[aria-checked=true] .sw{box-shadow:0 0 0 2px var(--accent-ink)}
.vs-pick button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* a race's page: come and analyze your own start; «это я» on a line of the results */
.ev-join{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;border-color:var(--accent)}
.ev-join>div{display:flex;flex-direction:column;gap:8px;flex:1 1 360px}
.ev-join h2{margin:0}
.ev-map:not([hidden]){display:flex;flex-wrap:wrap;gap:16px 24px;align-items:stretch}
.ev-map-txt{display:flex;flex-direction:column;gap:10px;flex:1 1 320px}
.ev-map-txt h2{margin:0}
.ev-map-pic{flex:1 1 260px;min-height:180px;border-radius:12px;background:var(--line) center/cover no-repeat;
  border:1px solid var(--line)}
/* a class's shared map for a guest (groupMapPage, pages.py): a drawn map with a few tracks, what it holds, the way in.
   The drawing keeps its proportions, so the server's page and the script's are as tall */
.gm-guest{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center}
.gm-pic{flex:1 1 300px;min-width:0;width:100%;height:auto;aspect-ratio:640/300;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.gm-pic .ct{fill:none;stroke:var(--line);stroke-width:2}
.gm-pic .tr{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.gm-pic .co{fill:none;stroke:var(--accent);stroke-width:2.5}
.gm-txt{display:flex;flex-direction:column;gap:10px;flex:1 1 320px}
.gm-txt h2,.gm-txt p{margin:0}
.gm-txt .row{display:flex;gap:8px;flex-wrap:wrap}
/* a button, not a cell of data: grey letters in the table's mono font read as one more column (02.12, a parent
   looking for their child's line went past it), and a phone has no hover to light it up */
.itsme{font:600 13px/1 var(--body);color:var(--accent);background:var(--soft);text-decoration:none;white-space:nowrap;padding:2px 10px;border:1px solid transparent;border-radius:999px}
tr:hover .itsme,.itsme:focus-visible{border-color:var(--accent)}
.itsme:hover{background:var(--accent);color:var(--accent-ink)}
/* a line of my family (races._known_lines): whose, in place of «это я» */
.kintag{display:inline-block;vertical-align:1px;margin-left:6px;font:600 12px/18px var(--body);color:var(--muted);white-space:nowrap;padding:0 7px;border:1px solid var(--line);border-radius:999px}
.splits.slim td.nm .kintag{display:none}
.up-line{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--accent);border-radius:10px;background:var(--soft)}
.up-line .lbl{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.up-line .linkbtn{align-self:flex-start;margin-top:2px}
.up-line select{margin-top:6px;width:100%}
.vs-choose{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.vs-step{display:flex;gap:6px;flex:1 1 320px;min-width:0}
.vs-step select{flex:1;min-width:0;padding-right:40px;background-position:right 16px center}
.vs-step .btn{padding:8px 14px;font-size:18px;line-height:1}
.vs-step .btn:disabled{opacity:.35;cursor:default}
@media (max-width:480px){.vs-step .btn{padding:8px 11px}.vs-step select{padding-left:9px;padding-right:28px;background-position:right 11px center}}
.vs-quick{display:flex;flex-wrap:wrap;gap:6px}
.vs-quick .btn{padding:7px 12px;font-size:14px;border-radius:999px}
.vs-quick .btn[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.vs-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
.vs-cols:has(>[hidden]){grid-template-columns:1fr}   /* no map: «Бежали рядом» is gone, the losses take the row */
.vs-cols .lbl{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:6px}
.vs-leg{display:block;width:100%;text-align:left;font:inherit;font-size:14px;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);padding:6px 0;cursor:pointer}
.vs-leg:hover b{color:var(--accent)}
@media (max-width:640px){.vs-cols{grid-template-columns:1fr}}
table.results td{white-space:nowrap}
/* «Клубы»: the place is what stays when scrolled, not the club — a long one («МБОУ ДОД ДЮСШ "Нижегородец", Нижний Новгород»)
   pinned took the whole phone and the numbers could not be reached (13.11) */
table.clubs :is(th,td):first-child{text-align:right;color:var(--muted)}table.clubs td.cl{font-family:var(--body);text-align:left}
table.results tr.notrack td{color:var(--muted)}
table.results tr.notrack td.nm{color:var(--ink)}
/* my line: «это я» by the name, in any row of the results (finished, splits cut short, not finished) */
table.results tr.me td.nm{font-weight:600}
.metag{display:inline-block;vertical-align:1px;margin-left:6px;padding:0 7px;border:1px solid var(--accent);border-radius:999px;color:var(--accent);font:600 12px/18px var(--body);white-space:nowrap}
.splits.slim td.nm .metag{display:none}
/* a route of a class of controls by choice: the controls in order, a step never broken across lines */
.ev-route{line-height:1.7}.ev-route .rs{white-space:nowrap;font-family:var(--mono);font-size:13px}
.tg-panel .lhead .seg{display:inline-flex}
.split-bar span{display:flex;gap:2px;width:140px;height:8px}
.split-bar i{display:block;height:100%;border-radius:2px;min-width:0}
.split-bar i[style^="width:0"]{display:none}
table.heat td.h{border-bottom-color:var(--panel)}
/* a legs cell: the leg over the time from the start, each line ending in its place, both places in the same box */
table.legs2 td{padding:2px 5px}
/* the ticks of a race's legs table: who to look at alone; the bar over it, its buttons small */
/* the tick and the colour mark share one middle with the name: .32em over its baseline, between the middle of its small
   letters and of its capitals. Both by their box's middle (half the x-height, .26em), lifted .06em: a length counts from
   the box's baseline, and Safari puts a checkbox's 2 px off Chrome's, the tick sitting low there */
.splits input.pk{width:14px;height:14px;padding:0;margin:0 6px 0 0;accent-color:var(--accent);cursor:pointer}
.splits input.pk,.splits td.nm .sw{vertical-align:middle;position:relative;top:-.06em}
.lpick{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lpick .btn{padding:6px 12px;font-size:14px;border-radius:999px}
/* a legs column head: the control in a ring like on the map, the one the leg comes from small before it */
table.legs2 th.kp{text-align:center;white-space:nowrap;padding:5px 4px;letter-spacing:0}
table.legs2 th.kp .from{font-size:10px;font-weight:500;opacity:.7}
table.legs2 th.kp .from::after{content:'→';margin:0 3px}
table.legs2 th.kp .ko{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 3px;box-sizing:border-box;border-radius:11px;
  border:2px solid var(--accent);color:var(--ink);font-size:12px;font-weight:700}
table.legs2 .lc{display:grid;grid-template-columns:auto 2.2em 1.75em;align-items:center;row-gap:1px;white-space:nowrap;font-size:13px;line-height:17px}
table.legs2 .lc .c{font-size:12px;opacity:.75}
table.legs2 .lc .mv{font-size:11px;text-align:right;padding-right:2px}
table.legs2 .lc .mv.up{color:var(--ok)}table.legs2 .lc .mv.dn{color:var(--bad)}
table.legs2 .lc .mv.cd{text-align:center;padding:0;opacity:.7}   /* own order: the control's code by its leg */
.lhead .seg button{padding:5px 10px;font-size:13px}
table.legs2 .lc .lp{font-size:11px;font-weight:500;text-align:center;line-height:15px;border-radius:3px;background:color-mix(in srgb,currentColor 8%,transparent)}
/* a dark tint reads heavier on the pale cells than a light one on the dark: this evens them out by eye */
@media (prefers-color-scheme:dark){table.legs2 .lc .lp{background:color-mix(in srgb,currentColor 12%,transparent)}}
table.legs2 .lc .lp:empty{background:none}
/* route choice on a leg: a line a way, as small as it reads, so the map keeps the room */
.tg-variants{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.35}
.tg-var{display:flex;flex-wrap:wrap;gap:0 10px;align-items:baseline}
.tg-var b{font-weight:600}
.tg-var .t{font-family:var(--mono);color:var(--muted)}
.tg-var:first-child .t{color:var(--ink)}
.tg-var .sw{width:10px;margin-right:5px;vertical-align:1px}
.tg-var .rn{white-space:nowrap}
.tg-var .m{font-family:var(--mono);color:var(--muted)}
.tg-kps .kp{position:relative}
.tg-kps .kp .fork{position:absolute;top:3px;right:4px;line-height:0;color:var(--kp-ink)}
.forkico{width:11px;height:11px;vertical-align:-1px}
.tg-live i{font-style:normal;color:var(--muted)}
.tg-play{display:flex;flex-direction:column;gap:10px}
.tg-ctl{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap}
.tg-ctl .seg{display:inline-grid;width:auto}
.tg-ctl select{width:auto}
.tg-ctl input[type=range]{flex:1 1 200px;accent-color:var(--accent)}
.tg-clock{font:14px var(--mono);min-width:5.5em;text-align:right}
/* who's where: short, so a phone fits two or three a line */
.tg-live{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:13px;line-height:1.35;font-variant-numeric:tabular-nums;min-height:1.35em}
/* the replay as a player: play, the timeline and the clock on one line; how it plays, smaller, on the next */
.tg-bar{flex-wrap:nowrap}
.tg-bar input[type=range]{flex:1 1 auto;min-width:0;margin:0}
#tg-go{flex:none}
.tg-bar .tg-clock{text-align:right;min-width:5ch}   /* as wide as «20:36» (mono): equal gaps both sides, the timeline steady */
.tg-time{display:flex;flex-direction:column;align-items:flex-end;flex:none;line-height:1.15}
/* under the clock, small: «4:19/км» or «—». A box of no width, the text running left from the clock's right edge: the
   clock's column, and so the timeline, stay as wide as without it (on a phone a wider pace took 70 px off the timeline) */
.tg-pace{width:0;display:flex;justify-content:flex-end;font:10px var(--mono);color:var(--muted);white-space:nowrap}
.tg-opts{gap:8px 10px}
.tg-opts .seg button{padding:7px 10px;font-size:14px}

.tg-bar .btn{flex:none;padding:8px 11px;font-size:14px;min-width:10.4em}   /* play and full screen: one size, at either end of the line */
@media (max-width:640px){.tg-bar .btn{min-width:0;width:38px;height:38px;padding:0}#tg-go .tg-go-t,.tg-bar .tg-fs-t{display:none}}
/* what to do with the start: by its title (it is the whole start one downloads or shares, not the map);
   on a phone under the title, the buttons sharing the line equally */
.jtitle{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.acts[hidden]{display:none}
.jwho{margin:0 0 4px;font-size:15px;color:var(--muted)}.jwho b{color:var(--ink);font-weight:600}   /* whose start a shared link shows */
.jtitle .dl-menu{left:auto;right:0}          /* the button is at the page's right edge: the menu opens leftwards */
@media (max-width:640px){.jtitle .acts{flex:1 1 100%}.jtitle .dl-menu{left:0;right:auto}}
@media (max-width:640px){.acts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
  .acts .btn{width:100%;padding:11px 8px;font-size:15px}}
.tg-live>span{white-space:nowrap}
.tg-live b{margin-right:4px}
.tg-live .sw{width:10px;margin-right:4px;vertical-align:1px}
.tg-live .done{color:var(--muted)}
.tg-privacy{display:flex;gap:8px 16px;align-items:baseline;flex-wrap:wrap;justify-content:space-between}
.together .frame img{cursor:zoom-in}
.sw.off{background:transparent!important;box-shadow:inset 0 0 0 1px var(--muted)}
.sw.trk{background:transparent;box-shadow:inset 0 0 0 2px var(--accent)}
#tg-pickmsg.warn{color:var(--warn)}
.sw{display:inline-block;width:14px;height:6px;border-radius:3px;vertical-align:middle;margin-right:8px}
.together td.nm{font-family:inherit;white-space:nowrap}
.together tr.me td.nm{font-weight:600}
.together td.best{color:var(--ok);font-weight:600}
.together td.gap{color:var(--muted)}
.login{max-width:440px;width:100%;margin:6vh auto 0;display:flex;flex-direction:column;gap:12px}
.login form{display:flex;flex-direction:column;gap:12px}
.login input[type=text],.login input[type=password]{font:inherit;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);width:100%}
.login input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.login input[aria-invalid=true]{border-color:var(--bad)}
.login h1{margin:0;font-size:24px}
.lg-forgot{align-self:flex-end;font-size:14px;margin:-4px 0 0}
.seg{display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:10px;background:var(--soft)}
.seg button{font:inherit;font-weight:600;padding:8px;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.seg button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the family's accounts above «Мои старты» and on the account page: whose starts these are, one tap to another's */
.fam{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:2px 0}
.fam::-webkit-scrollbar{display:none}
.fam button{flex:none;display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:14px;font-weight:600;padding:6px 12px;border-radius:99px;
  border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer}
.fam button[aria-current=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);cursor:default}
.fam button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* a child's account in the header (pages.header kid): its name on the accent, on a phone too, not the bare icon */
.who .acc.kid{gap:5px;padding:3px 10px 3px 7px;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-weight:600}
.who .acc.kid:hover{color:var(--accent-ink);opacity:.9}.who .acc.kid>svg{display:block;width:16px;height:16px}
@media (max-width:480px){.who .acc.kid{padding:3px 9px 3px 6px}.who .acc.kid span{display:inline-block;max-width:9ch}}
/* the header's family menu (famMenu): every account of the family a tap away */
.fam-menu{position:fixed;z-index:60;min-width:200px;max-width:calc(100vw - 16px);display:grid;gap:2px;padding:8px;border-radius:14px;
  background:var(--panel);border:1px solid var(--line);box-shadow:0 8px 28px rgba(0,0,0,.18)}
.fam-menu .hint{margin:2px 8px 4px;font-size:12px}
.fam-menu button,.fam-menu a{display:flex;align-items:center;justify-content:space-between;gap:10px;font:inherit;font-size:15px;font-weight:600;
  padding:9px 10px;border:0;border-radius:9px;background:none;color:var(--ink);text-align:left;text-decoration:none;cursor:pointer}
.fam-menu button:hover,.fam-menu a:hover{background:var(--soft)}
.fam-menu button[aria-checked=true]{background:var(--accent);color:var(--accent-ink)}
.fam-menu button[aria-checked=true] .meta{color:inherit;opacity:.8}
.fam-menu a{font-weight:500;color:var(--muted);border-top:1px solid var(--line);border-radius:0 0 9px 9px;margin-top:4px}
.fam-menu .badge{min-width:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-size:11px;line-height:18px;text-align:center}
.fam .badge{min-width:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-size:11px;line-height:18px;text-align:center}
.fam button[aria-current=true] .badge{background:var(--accent-ink);color:var(--accent)}
.up-kid{display:grid;gap:8px;margin-top:6px;padding:10px 12px;border-radius:10px;background:var(--panel);border:1px solid var(--accent);font-size:14px}
.mv-row{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.ac-fam ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ac-fam li{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ac-fam li .linkbtn{text-align:left;font-size:13px}
.ac-fam form,form.ac-fam{display:grid;gap:8px}
.ac-join summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:14px;padding:4px 0}
.ac-join[open] summary{margin-bottom:8px}
.fam.pick{flex-wrap:wrap;overflow:visible;margin:0}
.fam.pick button{font-family:var(--mono);font-weight:500}
.fam.pick button.own{font-family:var(--body);font-weight:600}
.fam.pick button[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.fnote{font-size:13px;margin:-6px 0 0;min-height:1.2em;color:var(--muted)}
.fnote.ok{color:var(--ok)}.fnote.bad{color:var(--bad)}
.totals{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.totals b{color:var(--ink);font-variant-numeric:tabular-nums}
.job .res{font:500 20px var(--mono);font-variant-numeric:tabular-nums}
/* a title as long as a protocol's («ЮФО, Кросс - классика - общий старт (083010181я), 21.1.2026») takes three lines, not five */
.job .ev-head b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.job .ev-head .nw{white-space:nowrap}
.job .ev-foot .chip{margin-left:auto}
.fbl{display:flex;flex-direction:column;gap:12px}
.fbl>.seg{max-width:360px}
.fbi{display:flex;flex-direction:column;gap:8px}
.fbi.done{opacity:.6}
/* the bell's page: a notice is a link to the shared map; unread ones marked by the accent on the left */
.ntc{display:flex;flex-direction:column;gap:4px;padding:12px 16px;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.ntc:hover{border-color:var(--accent)}div.ntc:hover{border-color:var(--line)}.ntc-text{color:var(--muted);white-space:pre-line}.ntc-text.ink{color:var(--ink)}
.fb-reply{white-space:pre-line;border-left:3px solid var(--accent);padding-left:10px;display:flex;flex-direction:column;gap:2px}
.fb-reset{flex-wrap:wrap}.fb-reset input{font:13px var(--mono);flex:1 1 260px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}.fb-reset .hint{flex-basis:100%}
.fb-ans summary{cursor:pointer;color:var(--accent)}.fb-ans textarea{width:100%;margin:8px 0;box-sizing:border-box;font:inherit}
.news .i-bell{width:1.1em;height:1.1em;vertical-align:-.2em;fill:none;color:var(--accent)}.ntc.new{box-shadow:inset 3px 0 0 var(--accent)}
.an-seg{grid-template-columns:repeat(3,1fr);max-width:420px}
/* list or map of my starts: two icons on the right under the totals, not a wide row of words */
.view-seg{flex:none;padding:2px}
.view-seg button{padding:6px 11px;display:flex}
.view-seg svg{width:27px;height:27px;fill:currentColor}
.jmap{height:min(70vh,620px);overflow:hidden;z-index:0}
/* the map view: on a wide screen the list of starts beside the map */
.jwrap[hidden]{display:none}
/* the list of starts over the map: a button in the corner, a glass pane sliding in from the right (like «Точки» in the manual fit) */
.jmap .jlist-btn{position:absolute;top:10px;right:10px;z-index:1000;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;
  border:0;border-radius:10px;background:var(--panel);color:var(--ink);font:600 13px var(--body);box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer}
.jmap .jlist-btn:hover{color:var(--accent)}
.jlist-btn svg{width:18px;height:18px;stroke:currentColor}
.jlist-btn .c{min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-size:12px;display:grid;place-items:center}
.jmap .jpane{position:absolute;z-index:1002;top:8px;right:8px;bottom:8px;width:min(340px,calc(100% - 16px));display:flex;flex-direction:column;cursor:auto;
  border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 70%,transparent);
  -webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);box-shadow:0 10px 30px rgba(0,0,0,.25);
  font:14px/1.4 var(--body);color:var(--ink);transform:translateX(calc(100% + 16px));visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
.jmap.listed .jpane{transform:none;visibility:visible;transition:transform .2s ease}
@media (prefers-reduced-motion:reduce){.jmap .jpane,.jmap.listed .jpane{transition:none}}
.jpane-h{display:flex;align-items:center;justify-content:space-between;padding:6px 4px 4px 14px;font:700 18px/1 var(--display);letter-spacing:.01em}
.jpane-x{border:0;background:none;color:var(--muted);font-size:24px;line-height:1;min-width:40px;min-height:40px;cursor:pointer}
.jpane-x:hover{color:var(--accent)}
.jside{position:relative;flex:1;min-height:0;overflow:auto}
.jside .pop{max-height:none}
.pop a.on{background:var(--soft)}
.pop a.on .n{color:var(--accent)}
/* on a phone the starts of a pin come up in a sheet at the bottom of the map, the map still in sight above it */
.jmap .jsheet{position:absolute;left:8px;right:8px;bottom:8px;z-index:1001;max-height:60%;overflow:auto;cursor:auto;
  background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.3);font:14px/1.4 var(--body)}
.jmap .jsheet[hidden]{display:none}
.jsheet .pop{max-height:none}
.jsheet-x{position:absolute;top:4px;right:4px;z-index:1;width:40px;height:40px;border:0;background:none;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.jsheet-x:hover{color:var(--accent)}
.jmap.leaflet-container{background:var(--bg)}
.jmap .leaflet-tile-pane{filter:var(--tiles)}
/* a pin (hpin: of the home map; .kp and .pin are the replay's and the manual fit's) is a control's circle, as on an orienteering map: a purple ring, the number of starts inside it */
.hpin{background:none;border:0}
.hpin-ring{width:100%;height:100%;border-radius:50%;border:4px solid var(--accent);background:var(--pin-fill);color:var(--accent);
  box-shadow:0 0 0 2px var(--pin-halo),0 0 14px 3px var(--pin-glow),0 3px 8px rgba(0,0,0,.3);display:grid;place-items:center;font:600 14px/1 var(--mono);
  transition:transform .15s}
.hpin:hover .hpin-ring,.hpin:focus-visible .hpin-ring{transform:scale(1.12)}
.hpin:focus-visible{outline:none}
.hpin-ring.on{transform:scale(1.15);background:var(--accent);color:var(--accent-ink)}
.hpin-start.on{transform:scale(1.2)}
.hpin-start.on path{fill:var(--accent)}
.hpin-fin.on{transform:scale(1.2)}
/* closer in, my tracks: a purple line on a halo, the start's triangle and the finish's double circle */
.jmap .jline-halo{stroke:var(--pin-halo);stroke-width:8px;stroke-opacity:.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.jmap .jline{stroke:var(--accent);stroke-width:3px;stroke-opacity:1;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:stroke-width .15s}
.jmap .jline.on{stroke-width:5px}
.hpin-start{width:100%;height:100%;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));transition:transform .15s}
.hpin-start svg{display:block;width:100%;height:100%;overflow:visible}
.hpin-start path{fill:var(--pin-fill);stroke:var(--accent);stroke-width:3;stroke-linejoin:round;paint-order:stroke}
.hpin:hover .hpin-start,.hpin:hover .hpin-fin{transform:scale(1.15)}
.hpin-fin{width:100%;height:100%;border-radius:50%;border:2.5px solid var(--accent);background:var(--pin-fill);
  box-shadow:inset 0 0 0 2.5px var(--pin-fill),inset 0 0 0 5px var(--accent),0 0 0 2px var(--pin-halo);transition:transform .15s}
.jmap .leaflet-bar{border:0;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.jmap .leaflet-bar a{background:var(--panel);color:var(--ink);border-bottom-color:var(--line);width:34px;height:34px;line-height:34px}
.jmap .leaflet-bar a:hover{background:var(--soft);color:var(--accent)}
.jmap .leaflet-bar a.leaflet-disabled{background:var(--panel);color:var(--line)}
.jmap .leaflet-control-attribution{background:var(--map-glass);color:var(--muted);font-size:11px;border-top-left-radius:6px}
.jmap .leaflet-control-attribution a{color:var(--muted)}
/* popup on the home map: a small card in the page's colours, one row per start */
.jmap .leaflet-popup-content-wrapper{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:0;
  box-shadow:0 10px 30px rgba(0,0,0,.25)}
.jmap .leaflet-popup-tip{background:var(--panel);border:1px solid var(--line);box-shadow:none}
.jmap .leaflet-popup-content{font:14px/1.4 var(--body);margin:0;width:min(360px,calc(100vw - 72px))!important}
.jmap a.leaflet-popup-close-button{color:var(--muted);top:8px;right:8px;font-size:20px}
.jmap a.leaflet-popup-close-button:hover{color:var(--accent)}
.pop-h{font:700 18px/1 var(--display);letter-spacing:.01em;padding:14px 40px 10px 14px;border-bottom:1px solid var(--line)}
.pop-h span{display:block;color:var(--muted);font:12px/1.4 var(--mono);margin-top:4px}
.pop{display:flex;flex-direction:column;max-height:300px;overflow:auto;padding:6px}
.pop a,.jmap .pop a{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center;padding:6px;border-radius:8px;
  text-decoration:none;color:inherit;transition:background .15s}
.pop a:hover,.pop a:focus-visible{background:var(--soft);outline:none}
.pop a:hover .n{color:var(--accent)}
.pop .th{width:64px;height:48px;border-radius:6px;overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--accent);font:700 18px var(--display)}
.pop .th img{width:100%;height:100%;object-fit:cover}
.pop .b{display:flex;flex-direction:column;gap:2px;min-width:0}
.pop .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop .n{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:18px}
.pop .res{font-size:13px;font-variant-numeric:tabular-nums}
.pop .res b{font-weight:600}
.pop .chip{margin-top:2px}
.an-fun{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.an-fun li{display:grid;grid-template-columns:minmax(9em,12em) 1fr 3em;align-items:center;gap:10px;font-size:14px}
.an-fun .bar{height:10px;border-radius:5px;background:var(--soft);overflow:hidden}
.an-fun .bar i{display:block;height:100%;background:var(--accent);border-radius:5px}
.an-fun b{font-family:var(--mono);text-align:right}
.an h2{font-size:15px;margin:0 0 10px}
/* «Обновить» in a widget's corner: that widget counted again by itself; its title keeps clear of it */
.an .panel[data-part]{position:relative}
.an .panel[data-part]>h2{padding-right:76px}
.an-re{position:absolute;top:16px;right:16px}
.an-re:disabled{cursor:default;text-decoration:none}
/* a funnel: each step's share of the first one, and what the step before it lost */
.an-fl li{grid-template-columns:minmax(10em,20em) 1fr 3em 8em}
.an-fl .pct{font:13px var(--mono);color:var(--muted);white-space:nowrap}
.an-fl .pct em{font-style:normal;color:var(--bad)}
.an-ex{margin-top:10px!important;padding-top:10px!important;border-top:1px solid var(--line)}
.an-ex li{color:var(--muted)}
.an-seg-t th[title]{cursor:help}
.an-seg-t tbody th{text-align:left;padding-top:10px;color:var(--muted);font-weight:600}
.an details{margin-top:10px}
.an details>summary{font-size:14px;color:var(--muted);width:fit-content}
@media (max-width:640px){.an-fl li{grid-template-columns:1fr 3em 7em}.an-fl .bar{grid-column:1/-1;grid-row:2}.an-ex .bar,.an-ex span:empty{display:none}}
.splits td.d{white-space:nowrap}
.an-up td{white-space:nowrap}
.an-sh{cursor:pointer;user-select:none;white-space:nowrap}
.an-sh:hover,.an-sh:focus-visible{color:var(--ink)}
.an-sh[aria-sort=ascending],.an-sh[aria-sort=descending]{color:var(--accent)}
.an-sh[aria-sort=ascending]::after{content:" ▲"}
.an-sh[aria-sort=descending]::after{content:" ▼"}
.an-up .an-act button+button{margin-left:12px}
.an-fit.ok b{color:var(--ok)}.an-fit.warn b{color:var(--warn)}.an-fit.bad b{color:var(--bad)}
.an-up td[title]{cursor:help}
/* a race's name may be 80 letters long: cut, so the buttons at the row's end stay in sight */
.an td.an-st{max-width:16em}
.an td.an-st>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* a login may be 31 letters long (22.11): cut, the whole of it on hover */
.an td.an-who{max-width:9em;overflow:hidden;text-overflow:ellipsis}
.an-rc td:first-child{font-family:var(--body);white-space:normal;min-width:12em;max-width:24em}
.an-rc td:first-child .meta{white-space:nowrap}
.an-rb{display:flex;align-items:center;gap:8px;min-width:8em}
.an-rb .bar{flex:1;height:10px;border-radius:5px;background:var(--soft);overflow:hidden}
.an-rb .bar i{display:block;height:100%;background:var(--accent);border-radius:5px}
.an-rb b{font-family:var(--mono);min-width:2em;text-align:right}
.an-ch{margin-bottom:14px}
.an-ch label{font-size:14px;color:var(--muted)}
.an-ch select{width:auto;padding-top:6px;padding-bottom:6px;margin-left:8px}
#an-chart{height:200px;margin-top:10px}
#an-chart svg{display:block}
#an-ret{height:180px;margin-top:6px}#an-ret svg{display:block}
.an-rt td.rt{text-align:center;color:var(--ink)}.an-rt td.z{color:var(--muted)}.an-rt td,.an-rt th{white-space:nowrap}.an-rt th:nth-child(n+3){text-align:center}
.an-ch .b{fill:var(--accent)}
.an-ch .b.now,.an-ch .b.off{opacity:.45}
.an-ch .b .gs,.an-lg i.gs{fill:url(#an-gp)}
.an-ch .gb{fill:var(--soft)}.an-ch .gl{fill:var(--accent)}
.an-lg{white-space:nowrap;margin-right:6px}
.an-lg i{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--accent);margin:0 4px 0 0;vertical-align:-1px}
.an-lg i.gs{background:repeating-linear-gradient(45deg,var(--accent) 0 2px,var(--soft) 2px 4px);margin-left:8px}
.an-ch .hit{fill:transparent}
.an-ch g:hover .b{opacity:.8}
.an-ch .g{stroke:var(--line);stroke-width:1}
.an-ch .ax{font:11px var(--mono);fill:var(--muted)}
.an-ch .val{font:500 11px var(--mono);fill:var(--ink)}
.an-ch .fz{fill:var(--soft);opacity:.6}
.an-ch .t{stroke:var(--ink);stroke-width:2;stroke-linecap:round}
.an-ch .t.f{stroke-dasharray:5 4}
.an .splits.capped{overflow-y:auto;overscroll-behavior-y:contain}
.an .splits.capped thead th{position:sticky;top:0;z-index:2;background:var(--panel)}
.fbi p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.fbi .ph{display:flex;gap:10px;flex-wrap:wrap}
.fbi figure{margin:0;width:160px;display:flex;flex-direction:column;gap:4px}
.fbi figure img{width:160px;height:120px;object-fit:cover;border-radius:8px;display:block;background:var(--soft)}
.fbi figcaption{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
/* support block: QR for the desktop, a big button for the phone, countdown to the date the server is paid until */
.support{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:center;
  border-color:color-mix(in srgb,var(--accent) 35%,var(--line));
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 60%),var(--panel)}
.support .qr{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--muted);font-size:12px}
.support .qr img{width:148px;height:148px;display:block;padding:8px;border-radius:14px;background:#fff;box-shadow:0 6px 20px color-mix(in srgb,var(--accent) 22%,transparent);transition:transform .15s}
.support .qr:hover img{transform:scale(1.03)}
.support .txt{display:flex;flex-direction:column;gap:14px;min-width:0}
.support .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:600;color:var(--accent)}
.support h2{font-size:28px;line-height:1.05;margin-top:2px}
.support p{margin:0;color:var(--muted)}
.support p b{color:var(--ink);font-weight:600}
.left{display:flex;flex-direction:column;gap:8px}
.left .lbl{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.left .cd{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
.left .cd span{display:flex;flex-direction:column;align-items:center;min-width:64px;padding:8px 10px 6px;border-radius:10px;background:var(--bg);border:1px solid var(--line);font-size:12px;color:var(--muted)}
.left .cd span:first-child{background:var(--accent);border-color:var(--accent);color:color-mix(in srgb,var(--accent-ink) 80%,transparent)}
.left .cd span:first-child b{color:var(--accent-ink)}
.left .cd b{font:700 30px/1 var(--display);color:var(--ink);font-variant-numeric:tabular-nums}
.left .track{height:6px;border-radius:3px;background:var(--line);overflow:hidden;max-width:300px}
.left .track i{display:block;height:100%;width:100%;border-radius:3px;background:linear-gradient(90deg,var(--bad),var(--warn) 30%,var(--accent) 60%)}
.left.over .cd b{color:var(--bad)}
.support .acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.support .acts .tgch{line-height:1.3}.support .acts .i-tg{width:30px;height:30px}
.support .give{align-self:flex-start;font-size:16px;padding:12px 26px;border-radius:99px;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 35%,transparent);transition:transform .15s,box-shadow .15s}
.support .give:hover{transform:translateY(-1px);box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 45%,transparent)}
@media (max-width:640px){.support{grid-template-columns:minmax(0,1fr)}.support .qr{display:none}.support .give{align-self:stretch;flex:1 1 100%}
  .left .cd span{flex:1;min-width:0}}
/* consent checkboxes, the legal documents, the footer, the account page */
.agree{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:var(--muted);line-height:1.45;cursor:pointer}
.agree input{margin:2px 0 0;flex:none;width:16px;height:16px;accent-color:var(--accent)}
.doc{max-width:820px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.doc h2{font-size:20px;margin-top:10px}.doc p,.doc ul{margin:0}.doc li{margin:2px 0}
.doc table{border-collapse:collapse;font-size:14px;display:block;overflow-x:auto}
.doc td,.doc th{padding:6px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;min-width:120px}
/* «Статьи»: the articles and their list */
.guide{line-height:1.55}.guide h1{margin:0}.guide ol{margin:0;padding-left:22px}.guide ol>li{margin:0 0 14px}.guide li>p{margin:0 0 8px}
.guide .meta{font-family:var(--mono);font-size:13px;color:var(--muted)}
.guide .crumb{font-size:14px;font-weight:600;color:var(--accent);text-decoration:none;align-self:flex-start}
.guide figure{margin:4px 0 8px}.guide figure img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}
.guide figure.tall{max-width:320px}
.guide figcaption{font-size:13px;color:var(--muted);margin-top:6px}
.guide code{font-family:var(--mono);font-size:.9em;background:var(--soft);padding:1px 5px;border-radius:4px}
.guide .signs{margin:4px 0 8px}.guide figure.lrow .tr-row{max-width:420px}
.guide .cta{margin-top:12px}.guide figure a{display:block;cursor:zoom-in}
/* «Ориентирование в России» (/orientirovanie): the districts as chips, a region a heading over its rows; a row the
   name and what it is for, the kind, the links as small buttons (wrapping under the name on a phone) */
.orient h1{margin:0}.orient #or-q{width:100%;box-sizing:border-box}
.orient .or-nav{display:flex;flex-wrap:wrap;gap:6px}
.orient .or-nav a{font-size:13px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);text-decoration:none}
.orient .or-nav a:hover{border-color:var(--accent);color:var(--ink)}
.orient .or-nav a[aria-current]{background:var(--accent);border-color:var(--accent);color:var(--panel)}
.orient .or-d,.orient .or-r{display:flex;flex-direction:column;gap:4px}.orient .or-d{gap:10px}
.orient .or-d[hidden],.orient .or-r[hidden],.orient .or-nav[hidden],.orient .or-off{display:none}
.orient .or-r{margin-top:14px;scroll-margin-top:12px}
.orient .or-dist{font-size:14px;font-weight:600;color:var(--accent);margin-top:26px}
/* a region's name on a tinted band: in a long page of rows it is where the eye stops */
.orient .or-r>h2,.orient .or-h{margin:0 0 2px;padding:6px 12px;background:var(--soft);border-radius:8px}
.orient .or-r h2{font-size:22px}.orient .or-h h2{margin:0;padding:0;background:none}
/* the region's races on its band, right of the name; under it on a narrow screen */
.orient .or-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px}
.orient .or-h .or-races{white-space:nowrap}
/* a row: the name (600, not bold: a region of bold names read as one block, 30.11) and what it is for, then the
   kind as a grey word and the links */
.orient .or-list{list-style:none;padding:0;margin:0}
.orient .or-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 0;margin:0}
.orient .or-list li+li{border-top:1px dashed var(--line)}
.orient .or-nm{flex:1 1 220px;display:flex;flex-direction:column;min-width:0}.orient .or-nm .hint{font-size:13px}
.orient .or-nm b{font-weight:600}
@media (max-width:640px){.orient .or-nm{flex-basis:100%}}
.orient .or-kind{font-size:13px;color:var(--muted)}
.orient .or-ln{display:flex;gap:6px}
.orient .or-ln a{font-size:13px;padding:3px 10px;border:1px solid var(--line);border-radius:6px;text-decoration:none;color:var(--accent)}
.orient .or-ln a:hover{border-color:var(--accent)}
.orient .or-races{font-size:14px}
.orient .or-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:10px}
.orient .or-foot .meta{font-family:var(--mono);font-size:13px;color:var(--muted)}
.ev-links{margin:0;font-size:14px}.ev-links[hidden]{display:none}
/* «Где заниматься» on a region's races page: the registry's rows, as on /orientirovanie */
.ev-clubs{display:flex;flex-direction:column;gap:4px;margin-top:10px}.ev-clubs h2{font-size:24px;margin:0 0 4px}
/* a screenshot opened over the page: whole first, a tap shows it full size to scroll */
.lightbox{position:fixed;inset:0;z-index:3000;background:var(--scrim);display:flex;align-items:center;justify-content:center;padding:56px 8px 40px;overflow:auto;cursor:zoom-in}
.lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.lightbox.full{display:block;padding:0;cursor:zoom-out}.lightbox.full img{max-width:none;max-height:none;border-radius:0}
.lb-x{position:fixed;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:24px;line-height:1;cursor:pointer}
.lb-hint{position:fixed;bottom:10px;left:0;right:0;margin:0;text-align:center;font-size:13px;color:var(--scrim-ink);pointer-events:none}
.lightbox.full .lb-hint{display:none}
.foot{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;margin-top:20px}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 16px}.foot a{color:var(--muted)}.foot a:hover{color:var(--ink)}.foot p{margin:0}
.account{max-width:560px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.account .panel{display:flex;flex-direction:column;gap:12px}
.account input[type=password]{font:inherit;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);width:100%;box-sizing:border-box}
.danger-zone{border-color:color-mix(in srgb,var(--bad) 40%,var(--line))}
.hide-me{display:flex;flex-direction:column;gap:10px}.hide-me .row select{flex:1 1 220px;width:auto}
/* the Telegram channel: an icon in the header, a line under «Поддержать», an invite on a race page and while a start is built, a link in the footer */
.i-tg{width:1.15em;height:1.15em;flex:none;fill:currentColor}
.tgch-top{align-self:center;display:inline-flex;padding:4px;border-radius:99px;color:var(--muted)}
.tgch-top:hover{color:#2AABEE}.tgch-top .i-tg{width:22px;height:22px}
.tgch{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--muted);text-decoration:none;width:fit-content}
.tgch .i-tg{color:#2AABEE}.tgch:hover{color:var(--ink)}.tgch b{color:var(--ink);font-weight:600}.ev-tg{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.ev-tg .i-tg.big{width:40px;height:40px;color:#2AABEE}
.ev-tg p{margin:0;flex:1 1 260px;color:var(--muted)}.ev-tg p b{color:var(--ink)}
.foot .tgline{display:inline-flex;align-items:center;gap:6px}
/* the site's bot (tg.py): what will come, and the button «Присылать в Telegram»; «Войти через Telegram» under the sign-in */
.ac-tg,#ac-tg-body{display:flex;flex-direction:column;gap:10px}.ac-tg p{margin:0}.ac-tg .i-tg{color:var(--accent)}
.lg-tg{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid var(--line)}.lg-tg .btn{width:100%}.lg-tg .i-tg{color:var(--accent)}
.tgbot{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:12px;border-radius:10px;background:var(--soft);line-height:1.4}
.tgbot p{margin:0}.tgbot .i-tg{width:1.2em;height:1.2em;vertical-align:-.25em;margin-right:6px;color:var(--accent)}.tgbot .btn .i-tg{margin:0}
.tgwait{width:auto;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;background:var(--soft);line-height:1.35}.tgwait .i-tg{width:26px;height:26px;margin-top:2px}
/* the trainer (/train): a hub (progress, the day's warm-up, the games as a road of levels), a round; the signs' reference on its own page (/train/signs). One palette for every game:
   the accent for what is in hand, green for done, grey for locked; a game is told by its sign. A legend sign is drawn in the text's colour; a map sign on a square of
   paper, in the map's own colours on both themes */
.train{display:flex;flex-direction:column;gap:16px}.train p{margin:0}
.tr-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tr-head{align-items:baseline}
/* the games are the trainer; the reference is a quiet link beside its title (a switch «Играть | Справочник» looked
   like two equal sections, 07.11), and on the reference the way back */
/* a chip, not bare grey text: a book and a chevron say it opens (13.11: read as a subtitle, nobody pressed it) */
.tr-ref-link{display:inline-flex;align-items:center;gap:6px;padding:6px 10px 6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel);
  font-size:14px;font-weight:600;line-height:1.2;color:var(--ink);text-decoration:none;white-space:nowrap}
.tr-ref-link svg{width:18px;height:18px;flex:none;color:var(--accent)}.tr-ref-link .chev{color:var(--muted);font-size:18px;line-height:1;margin-left:1px}
.tr-ref-link:hover{border-color:var(--accent);color:var(--accent)}.tr-ref-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
#tr-body{display:flex;flex-direction:column;gap:14px}
.train{--g:var(--accent);--g-bg:var(--soft);--g-ink:var(--ink)}   /* the warm-up: the site's own colour; a game's class on #tr-body overrides it */
.train h2{font-size:24px}.train h3{margin:0;font-size:15px;font-weight:600}
.tr-ico{width:22px;height:22px;flex:none}
/* the hub: the thing to do now, the progress in one strip, the tabs («Обучение», «Игры») */
.tr-mbar{display:flex;height:12px;border-radius:6px;background:var(--ring-bg);overflow:hidden}.tr-mbar i{display:block;height:100%;background:var(--ok)}
.tr-mbar i.r{background:var(--ok);opacity:.35}
.tr-chip{display:inline-flex;align-items:center;gap:5px;font-size:14px;color:var(--muted)}.tr-chip b{font:600 16px var(--mono);color:var(--ink)}
.tr-chip .tr-ico{width:18px;height:18px}.tr-chip.st .tr-ico{color:var(--star)}.tr-chip.fi .tr-ico{color:var(--fire)}.tr-chip.fi.cold .tr-ico{color:var(--muted)}
/* the hub is one column, centred on a computer: the games read top down, not across a wide screen */
.tr-wait{min-height:100vh}   /* the hub comes taller than a screen: the block under it (.tr-about) does not jump up and back */
.tr-about{max-width:720px;margin:28px auto 0;box-sizing:border-box;font-size:14px;line-height:1.5}.tr-about h2{margin-top:0}
.tr-about ul{padding-left:18px;margin:6px 0}.tr-about li{margin:3px 0}.tr-about h4{margin:14px 0 4px}
.tr-about details summary{cursor:pointer;padding:4px 0}
.tr-about>summary{cursor:pointer;font-weight:600;color:var(--muted)}.tr-about>summary:hover{color:var(--accent)}.tr-about[open]>summary{margin-bottom:12px}.tr-about details ul{color:var(--muted)}.tr-about details b{color:var(--ink)}
.tr-strip,.tr-warm,.tr-quiet,.tr-games,.tr-course,.tr-hubtabs,#tr-body>.tr-offer,#tr-body>.support{width:100%;max-width:720px;margin-left:auto;margin-right:auto;box-sizing:border-box}
/* in place of a button: what was done in the game, or a play mark (the whole card is the button) */
.tr-lkb{position:absolute;right:-4px;bottom:-4px;width:22px;height:22px;padding:3px;border-radius:50%;background:var(--panel);color:var(--muted);box-shadow:0 0 0 1px var(--line)}
/* a sign chapter's two kinds of games: what teaches the signs, what is played for a record (with the way to the table) */
/* «Поддержать» after a module passed: a line and the button under the round's result */
.tr-give{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 14px;border-radius:12px;background:var(--soft);font-size:14px;line-height:1.4}
.tr-give span{flex:1 1 220px}.tr-give .btn{flex:none}
#tr-body>.support{margin-top:12px}
/* the progress in one strip: signs known of all, the stars and the streak to the right, a thin bar under them */
.tr-strip{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 14px;padding:12px 14px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}
.tr-sk{font-size:14px;color:var(--muted)}.tr-sk b{font:600 20px var(--mono);color:var(--ink);margin-right:2px}
.tr-strip .tr-mbar{grid-column:1/-1;height:8px;border-radius:4px}
/* «Задача дня» on other pages (dailyHook): one line in the accent's edge, its words on one line, cut if long */
.dhook{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1.5px solid var(--accent);border-radius:12px;background:var(--soft);color:var(--ink);font-size:14px;line-height:1.3;text-decoration:none}
.dhook>span:not(.dgo){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dhook .dq{color:var(--muted)}
.dhook .bi{width:20px;height:20px;flex:none;color:var(--accent)}.dhook .dgo{flex:none;color:var(--accent);font-weight:700}
.dhook:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--panel))}.dhook:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ev-daily .dhook>span:not(.dgo){white-space:normal}   /* a race's page: under the fold, its own race's task told in full */
/* the day's warm-up and task: two tiles as the trainer's other cards (a panel, an edge, the sign to the left), half and
   half on a phone, of a fixed width wider; not done today — the accent's edge, done — the line's and a check (12.11) */
/* the thing to do now and the day's tiles: on a phone the button across, the tiles under it half and half; wider, all in
   one row as high as the button — the tiles alone under it left half the row empty (12.11) */
.tr-now{width:100%;max-width:720px;margin:0 auto;display:grid;gap:10px}
.tr-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tr-day:only-child{grid-column:1/-1}   /* the warm-up is the big button: «Задача дня» alone fills the row (13.11: half a row with an empty half beside) */
@media (min-width:641px){.tr-now:has(.tr-days){grid-template-columns:minmax(0,1fr) auto}.tr-days{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:176px}}
.tr-day{min-width:0;box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:2px;align-items:center;align-content:center;padding:12px 14px;border:1.5px solid var(--accent);border-radius:14px;background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.tr-day .tr-ico{grid-row:1/3;width:24px;height:24px;flex:none;color:var(--accent)}.tr-day b{font:600 15px/1.25 var(--body)}.tr-day>span{font-size:13px;line-height:1.3;color:var(--muted)}
.tr-day:hover{background:var(--soft)}.tr-day:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:400px){.tr-day:not(:only-child){grid-template-columns:minmax(0,1fr);align-content:start}.tr-day:not(:only-child) .tr-ico{grid-row:auto}}   /* up to 400 px (375 too): the sign over the name, «Разминка дня» on one line */
.tr-day.done{border:1px solid var(--line);padding:12.5px 14.5px}.tr-day.done .tr-ico{color:var(--ok)}   /* the same size with the thinner edge */
/* the second thing to do, quiet, under the first */
.tr-quiet{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted);font:inherit;font-size:14px;line-height:1.3;text-align:left;cursor:pointer}
.tr-quiet b{color:var(--ink);font-weight:600}.tr-quiet .tr-ico{width:20px;height:20px;flex:none;color:var(--fire)}.tr-quiet:hover{border-color:var(--accent)}.tr-quiet:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the thing to do now (the day's warm-up or the step of the course in hand): the first thing on the hub, across its width, in the accent; the warm-up done today — quiet */
.tr-warm{display:flex;align-items:center;gap:14px;padding:16px;border:0;border-radius:16px;background:var(--accent);color:var(--accent-ink);font:inherit;text-align:left;cursor:pointer}
.tr-warm>.tr-ico{width:38px;height:38px}.tr-wt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.tr-wt b{font:700 21px/1.15 var(--body)}.tr-wt span{font-size:14px;line-height:1.3;opacity:.92}
.tr-warm .tr-go{background:var(--accent-ink);color:var(--accent)}
.tr-warm.done,.tr-warm.shut{background:var(--soft);color:var(--ink)}.tr-warm.done>.tr-ico{color:var(--ok)}.tr-warm.shut>.tr-ico{color:var(--muted)}
.tr-warm.done .tr-go,.tr-warm.shut .tr-go{background:var(--panel);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.tr-warm:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* dark: the accent is a light pink there, and a band filled with it glared — tinted, with the accent on the edge, the sign and the button */
@media (prefers-color-scheme:dark){.tr-warm:not(.done):not(.shut){background:var(--soft);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--accent)}
  .tr-warm:not(.done):not(.shut)>.tr-ico{color:var(--accent)}.tr-warm:not(.done):not(.shut) .tr-go{background:var(--accent);color:var(--accent-ink)}}
@media (max-width:520px){.tr-warm{gap:11px;padding:14px}.tr-warm>.tr-ico{width:32px;height:32px}.tr-wt b{font-size:19px}}
/* the games to pick from («Игры»): a chapter's heading and a grid of tiles under it — two across on a phone, four on a
   computer; a tile: the game's sign, the result to the right of it, the name, a line; a locked one dashed and grey */
.tr-games{display:flex;flex-direction:column;gap:10px}
.tr-ghint{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:13px;line-height:1.35;color:var(--muted)}.tr-ghint span{flex:1 1 220px}
.tr-ghint .btn{flex:none;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font-size:14px;border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.tr-ghint .btn .tr-ico{width:16px;height:16px;color:var(--star)}.tr-ghint .btn:hover{border-color:var(--accent)}
.train .tr-gh{margin:12px 0 0;font:700 19px/1.2 var(--body)}.train .tr-ghint+.tr-gh{margin-top:4px}
.tr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tr-gt{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:4px 8px;align-items:center;min-height:118px;padding:12px;border:1px solid var(--line);border-radius:14px;
  background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer;position:relative}
.tr-new{position:absolute;top:-8px;right:12px;padding:0 6px;border-radius:9px;background:var(--accent);color:var(--accent-ink);font:600 10px/16px var(--body);box-shadow:0 0 0 2px var(--bg);pointer-events:none}   /* «новая» over a game just added: as «новый» over «Тренажёр» (.tab-new) */
.tr-gi{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--soft)}.tr-gi>.tr-ico{width:22px;height:22px;color:var(--accent)}
.tr-gr{justify-self:end;display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:99px;background:var(--bg);font:600 13px var(--mono);white-space:nowrap}
.tr-gr .tr-ico{width:14px;height:14px;color:var(--star)}
.tr-gt b{grid-column:1/-1;margin-top:4px;font-size:16px;line-height:1.2}.tr-gs{grid-column:1/-1;align-self:start;font-size:13px;line-height:1.3;color:var(--muted)}
.tr-gs .meta{display:block;margin-top:2px;font:500 12px var(--mono)}
.tr-gt:hover{border-color:var(--accent)}.tr-gt:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tr-gt.shut{cursor:default;border-style:dashed;background:none}.tr-gt.shut b{color:var(--muted);font-weight:500}.tr-gt.shut .tr-gi{background:var(--bg)}.tr-gt.shut .tr-gi>.tr-ico:first-child{color:var(--muted);opacity:.6}
.tr-gt.shut:hover{border-color:var(--line)}
@media (max-width:520px){.tr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-gt{min-height:112px;padding:10px}}
/* the course: a band per module, a card per unit — the one in hand open with its nodes (the games' stops and cards), one
   done or locked a single line; the hub's two halves («Обучение», «Игры») are the tabs over it */
.tr-course{display:flex;flex-direction:column;gap:6px}
/* the hub's two halves: a quiet switch, the chosen one lighter — not a second accent beside the thing to do */
.tr-hubtabs{flex-wrap:nowrap;gap:4px;padding:4px;border-radius:14px;background:var(--ring-bg)}
.tr-hubtabs .tr-tab{flex:1;padding:8px 12px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:15px;font-weight:600}
.tr-hubtabs .tr-tab[aria-selected=true]{background:var(--panel);color:var(--ink)}
/* a step: a heading in plain text (its state, its number, its name, how much is done), its rows folded under it */
.tr-step{border-top:1px solid var(--line)}.tr-step:first-of-type{border-top:0}
.tr-mod{display:flex;align-items:center;gap:10px;padding:12px 2px;list-style:none;cursor:pointer}.tr-mod::-webkit-details-marker{display:none}
.tr-mod:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.tr-mst{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--accent)}.tr-mst .tr-ico{width:15px;height:15px}
.tr-step.done .tr-mst{background:color-mix(in srgb,var(--ok) 16%,var(--panel));color:var(--ok)}.tr-step.shut .tr-mst{background:var(--ring-bg);color:var(--muted)}
.tr-mod>span:not(.tr-mst){flex:none;font:500 12px var(--mono);color:var(--muted);white-space:nowrap}
.tr-mod b{flex:1;min-width:0;font:700 18px/1.25 var(--body)}.tr-step.shut .tr-mod b{color:var(--muted);font-weight:600}
.tr-mod em{flex:none;font:500 13px var(--mono);font-style:normal;color:var(--muted);white-space:nowrap}.tr-mod em.w{font:400 12px var(--body)}
@media (max-width:520px){.tr-mod .tr-mw{display:none}}   /* a phone: the number alone, the word pushed long names to three lines */
.tr-rows{display:flex;flex-direction:column;gap:8px;padding:0 0 14px}
.tr-ust{flex:none;display:grid;place-items:center;min-width:52px;height:28px;box-sizing:border-box;padding:0 8px;border-radius:99px;background:var(--bg);font:500 12px var(--mono);color:var(--muted);white-space:nowrap}
.tr-ust .tr-ico{width:16px;height:16px}
.tr-unit.done .tr-ust{background:color-mix(in srgb,var(--ok) 16%,var(--panel));color:var(--ok)}
.tr-unit{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.tr-uh{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:36px;padding:10px 12px;border:0;border-radius:12px;background:none;font:inherit;color:var(--ink);text-align:left}
button.tr-uh{cursor:pointer}button.tr-uh:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.tr-unit:not(.shut):hover{border-color:var(--accent)}
.tr-ut{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
/* a row not in hand is one line: the name, then one word of what it is */
.tr-unit:not(.cur) .tr-ut{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0 8px}.tr-unit:not(.cur) .tr-uh{min-height:28px;padding:8px 12px}.tr-un{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}.tr-un b{font-size:16px;line-height:1.25}
.tr-uw{font-size:13px;line-height:1.3;color:var(--muted)}
.tr-go{flex:none;padding:7px 12px;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-size:14px;font-weight:600}
.tr-unit .tr-go{background:none;color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent)}   /* the row in hand: outlined, the filled button is the one on top */
.tr-ugame{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft)}.tr-ugame .tr-ico{width:17px;height:17px;color:var(--accent)}
.tr-unit.chest .tr-ust{min-width:52px}.tr-unit.chest:not(.done):not(.cur) .tr-ust{background:none}.tr-unit.chest .tr-ust .tr-ico{width:20px;height:20px;color:var(--star)}.tr-unit.shut.chest .tr-ust .tr-ico{color:var(--muted)}.tr-unit.chest.done .tr-ust .tr-ico{color:var(--ok)}.tr-unit.chest.cur .tr-ust .tr-ico{color:var(--accent)}
.tr-unit.chest .tr-gr{flex:none}
.tr-unit.shut .tr-ugame{background:var(--bg)}.tr-unit.shut .tr-ugame .tr-ico{color:var(--muted)}
.tr-unit.gold .tr-ust{background:color-mix(in srgb,var(--star) 20%,var(--panel));color:var(--star)}
.tr-ustar{font-size:14px;letter-spacing:1px;color:var(--star)}
.tr-unit.cur{border:2px solid var(--accent)}.tr-unit.cur .tr-ust{background:var(--soft);color:var(--accent)}
.tr-unit.shut{border-style:dashed;background:none}.tr-unit.shut .tr-uh{cursor:default}.tr-unit.shut b{font-weight:500;color:var(--muted)}
.tr-jump{flex:none;margin-left:auto;padding:5px 12px;font-size:13px;border:1px solid var(--line);background:var(--panel);color:var(--ink);white-space:nowrap}
.tr-jump:hover{border-color:var(--accent);color:var(--accent)}
/* the records' table */
.tr-tabs{display:flex;flex-wrap:wrap;gap:6px}
.tr-tab{font:inherit;font-size:14px;padding:6px 12px;border-radius:99px;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer}
.tr-tab[aria-selected=true]{background:var(--g);border-color:var(--g);color:var(--panel);font-weight:600}
.tr-lb{width:100%;border-collapse:collapse;font-size:15px}.tr-lb td{padding:8px 6px;border-bottom:1px solid var(--line)}
.tr-lb td:first-child{width:2.5em;font-family:var(--mono);color:var(--muted)}.tr-lb td:last-child{text-align:right;white-space:nowrap;color:var(--muted)}.tr-lb .n{font-family:var(--mono);color:var(--ink)}
/* the badge «Знаю все знаки»: its medal on the hub's card (the shared picture: train.badge_png), the way to it, the mark in the records */
.tr-medal{width:64px;height:64px;flex:none}.tr-medal circle{fill:var(--soft);stroke:var(--accent);stroke-width:7}.tr-medal .fw{fill:var(--flag-w)}.tr-medal .fo{fill:var(--flag-o)}.tr-medal rect{fill:none;stroke:var(--ink);stroke-width:2.5}
.tr-badgebox{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding-top:10px;border-top:1px solid var(--line);min-width:0}
.tr-badgebox .tr-medal{width:36px;height:36px}.tr-badgebox .tr-wt{flex:1;min-width:0;line-height:1.25}.tr-badgebox .tr-wt b{font-size:15px}.tr-badgebox .tr-wt span{font-size:13px;color:var(--muted)}
.tr-badgebox .btn{flex:none;padding:6px 12px;font-size:14px}
@media (max-width:480px){.tr-badgebox{gap:8px}.tr-badgebox .tr-medal{width:30px;height:30px}.tr-badgebox .tr-wt b{font-size:14px;white-space:nowrap}.tr-badgebox .tr-wt span{font-size:12px}.tr-badgebox .btn{padding:5px 10px;font-size:13px}}
/* the round that learnt the last sign: the badge's screen (badgeScreen), its picture rising into place once */
.tr-cele{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;max-width:440px;margin:0 auto;padding:4px 0 8px}
.tr-ctag{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:var(--accent);letter-spacing:.04em;text-transform:uppercase}.tr-ctag .tr-ico{width:20px;height:20px}
.tr-cpic{width:min(100%,360px);aspect-ratio:1080/1350;border-radius:18px;overflow:hidden;background:var(--badge-bg);opacity:0;transform:translateY(16px) scale(.96);box-shadow:0 0 0 0 transparent;transition:opacity .5s ease,transform .7s cubic-bezier(.2,.8,.2,1),box-shadow 1.2s ease}
.tr-cpic.in{opacity:1;transform:none;box-shadow:0 18px 56px -10px color-mix(in srgb,var(--accent) 60%,transparent)}
.tr-cpic img{display:block;width:100%;height:100%}
.tr-cele h2{margin:6px 0 0;font-size:26px;line-height:1.15}.tr-cele .hint{margin:0;max-width:360px}.tr-cele .btn{width:100%;max-width:360px}
@media (prefers-reduced-motion:reduce){.tr-cpic{transition:none;transform:none}}
.tr-bdg .tr-ico{width:16px;height:16px;vertical-align:-3px;margin-left:5px;color:var(--accent)}
.tr-lb .you{font-weight:400;font-size:13px;color:var(--g-ink)}
.tr-lb td:nth-child(2){overflow-wrap:anywhere}
.tr-lb tr.me td{background:var(--g-bg);font-weight:600}.tr-lb tr.me td:first-child{color:var(--g-ink)}.tr-lb tr.gap td{color:var(--muted);text-align:center;padding:2px}
.tr-goal.tr-place{flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}.tr-place>.tr-ico{width:22px;height:22px;color:var(--g);flex:none}.tr-place>span{flex:1 1 150px}
.tr-place .btn{flex:none;padding:5px 12px;font-size:14px;border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.tr-bar{margin-top:4px;height:5px;border-radius:3px;background:color-mix(in srgb,var(--g) 15%,var(--panel));overflow:hidden}.tr-bar i{display:block;height:100%;background:var(--g);border-radius:3px}
/* a game's screen: its colour on top */
.tr-screen{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:14px;background:var(--panel);border:1px solid var(--line);border-top:5px solid var(--g)}
.tr-title{display:flex;align-items:center;gap:10px}.tr-title b{font:700 24px/1.1 var(--display)}.tr-title .tr-ico{color:var(--g);width:26px;height:26px}
.tr-back{font:inherit;font-weight:600;font-size:14px;color:var(--muted);background:none;border:0;padding:0;cursor:pointer;align-self:flex-start}
.tr-back:hover{color:var(--ink)}
.btn.tr-gbtn{background:var(--g);border-color:var(--g);color:var(--panel)}
/* the goal on top of a round and at its end: what to play for, and how far along it is */
/* «Дальше» filling up: the next question comes by itself when it is full */
.tr-auto{position:relative;overflow:hidden}.tr-auto .tr-sec{font-family:var(--mono);font-weight:500;opacity:.85;min-width:1ch}
.tr-auto::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:4px;background:color-mix(in srgb,var(--panel) 65%,transparent);transform-origin:left;animation:tr-fill var(--t) linear forwards}
@keyframes tr-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.tr-auto::after{display:none}}
.tr-autosw{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;font-size:13px;color:var(--muted);cursor:pointer}.tr-autosw input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
/* the round's mistakes: what was right, what was picked, what to look for */
.tr-misses{display:flex;flex-direction:column;gap:8px}
.tr-miss{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;border-radius:10px;border:1px solid var(--line);box-shadow:inset 4px 0 0 var(--bad);background:var(--panel)}
.tr-miss>div:only-child{grid-column:1/-1}.tr-miss>svg{width:48px;height:48px}
.tr-mpic{display:flex!important;flex-direction:column;gap:4px;width:104px}.tr-mpic svg{display:block;width:100%;height:auto}.tr-miss b{display:block;line-height:1.3}
.tr-miss span{display:block;font-size:13px;line-height:1.4;color:var(--muted)}.tr-miss .was{color:var(--bad);font-weight:600}
/* a guest's offer to sign in: on the hub instead of the warm-up, and under a round's end */
.tr-offer{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:12px;background:var(--soft);color:var(--ink)}.tr-offer p{margin:0;line-height:1.45}
.tr-goal{display:flex;flex-direction:column;gap:5px;padding:9px 12px;border-radius:10px;background:var(--g-bg);color:var(--g-ink);font-size:14px;font-weight:600}
.tr-goal .tr-bar{margin:0;background:color-mix(in srgb,var(--g) 18%,var(--panel))}   /* a game's main button, in its colour */
/* a question: dots for the round (green right, red wrong), the sign or its name, four answers 2×2 */
/* in a game: the page's title steps aside, on a phone the site's sections and the feedback button too */
.train.tr-in .tr-head{display:none}
@media (max-width:1099px){body:has(.train.tr-in) .sections,body:has(.train.tr-in) .sec-more-list{display:none}
  body:has(.train.tr-in) .wrap{padding-bottom:60px}body:has(.train.tr-in) .fb-btn{bottom:16px}}
@media (max-width:640px){body:has(.train.tr-in) .fb-btn{display:none}}
.tr-top{display:flex;align-items:center;gap:10px}.tr-top .tr-title{margin-right:auto}
.tr-game{display:flex;align-items:center;gap:8px;min-width:0;margin-right:auto}.tr-game .tr-ico{color:var(--g)}
.tr-game b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-where{font:500 14px var(--mono);color:var(--muted);white-space:nowrap}
.tr-x{flex:none;display:grid;place-items:center;width:36px;height:36px;margin:-6px -8px -6px -4px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
.tr-x .tr-ico{width:20px;height:20px}.tr-x:hover{color:var(--ink);background:var(--bg)}.tr-x:focus-visible{outline:2px solid var(--g);outline-offset:-2px}
.tr-goal.slim{padding:6px 10px;gap:4px;font-size:13px}.tr-goal.slim .tr-bar{height:3px}
.btn.tr-gbtn:focus-visible{outline-color:var(--g)}
.tr-dots{display:flex;gap:5px;flex-wrap:wrap}.tr-dots i{width:12px;height:12px;border-radius:50%;background:var(--ring-bg)}
.tr-dots i.ok{background:var(--ok)}.tr-dots i.bad{background:var(--bad)}.tr-dots i.now{box-shadow:0 0 0 2px var(--g)}
.tr-ask{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:4px 0}
.tr-ask>svg{width:152px;height:152px}.tr-ask b{font-size:21px;line-height:1.25}
.tr-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tr-opt{position:relative;font:inherit;font-weight:600;min-height:58px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);cursor:pointer;line-height:1.25}
.tr-opt:hover:not(:disabled){border-color:var(--g)}.tr-opt:focus-visible{outline:2px solid var(--g);outline-offset:2px}
.tr-opts.pics .tr-opt{display:grid;place-items:center;padding:12px}.tr-opts.pics svg{width:76px;height:76px}
.tr-opt:disabled{cursor:default;opacity:.55}.tr-opt.ok,.tr-opt.bad{opacity:1;border-width:3px}
/* right and wrong by a tint and a mark too, not by the border's colour alone */
.tr-opt.ok{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 14%,var(--panel))}.tr-opt.bad{border-color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,var(--panel))}
.tr-opt.ok::after,.tr-opt.bad::after{position:absolute;top:4px;right:7px;font:700 14px/1 var(--body)}
.tr-opt.ok::after{content:"✓";color:var(--ok)}.tr-opt.bad::after{content:"✕";color:var(--bad)}
.tr-after{display:flex;flex-direction:column;gap:10px}.tr-after p{line-height:1.45}.tr-after .meta{font-family:var(--mono);font-size:12px;color:var(--muted)}
/* the blitz: a minute that runs out under the question */
.tr-clock{height:8px;border-radius:4px;background:var(--ring-bg);overflow:hidden}.tr-clock i{display:block;height:100%;background:var(--g);width:100%}.tr-clock.low i{background:var(--bad)}
.tr-score{font:500 22px/1 var(--mono);color:var(--g)}.tr-streak{font:600 13px var(--mono);color:var(--g-ink)}.tr-streak:not(:empty){padding:2px 7px;border-radius:99px;background:var(--g-bg)}
.tr-flash .tr-opt.ok{background:color-mix(in srgb,var(--ok) 18%,var(--panel))}
/* the pairs: twelve cards face down, a sign and its name to find together */
.tr-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(92px,auto);gap:8px}
@media (min-width:600px){.tr-cards{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:110px;max-width:640px;width:100%;margin:0 auto}}
.tr-card{font:inherit;font-weight:600;font-size:13px;line-height:1.2;min-height:92px;padding:8px;border-radius:10px;border:1px solid var(--line);cursor:pointer;display:grid;place-items:center;text-align:center;
  background:var(--g-bg);color:var(--g)}
.tr-card .back{width:26px;height:26px;opacity:.6}
.tr-card.up{background:var(--panel);color:var(--ink);border-color:var(--g)}
.tr-card svg:not(.back){width:64px;height:64px}   /* open or found: a found card lost its size and its sign filled the row (07.11) */
.tr-card.done{background:var(--panel);color:var(--ink);border:2px solid var(--ok);cursor:default}
.tr-card.miss{border:2px solid var(--bad);background:color-mix(in srgb,var(--bad) 10%,var(--panel));animation:tr-shake .3s}
@keyframes tr-shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.tr-card.miss{animation:none}}
.tr-card:focus-visible{outline:2px solid var(--g);outline-offset:2px}
/* the map games: a row of control descriptions (A-H, what is asked filled in), a bit of map with three circles to tap,
   a sign on the way from start to control, three tiles to put in order */
.tr-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:2px solid var(--ink);border-radius:4px;background:var(--panel);width:100%;max-width:460px}
.tr-row div.ask{background:var(--g-bg);box-shadow:inset 0 0 0 2px var(--g)}.tr-row div.ask i{color:var(--g-ink);font-weight:700}
.tr-row div{position:relative;aspect-ratio:1;border-left:1px solid var(--ink);display:grid;place-items:center}.tr-row div:first-child{border-left:0}
.tr-row i{position:absolute;top:1px;left:3px;font:500 11px var(--mono);color:var(--muted);font-style:normal}
.tr-row b{font:500 14px var(--mono)}.tr-row svg{width:84%;height:84%}
.tr-slot{width:100%;display:flex;justify-content:center}
.tr-map{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.tr-scene{width:100%;max-width:520px;height:auto;max-height:46vh}   /* the answers stay on the screen under it */
.tr-solid-w{position:relative;width:100%;max-width:520px}.tr-solid{display:block;width:100%;aspect-ratio:1/.62;max-height:46vh;touch-action:pan-y;cursor:grab}   /* pan-y: on a phone a drag up and down still scrolls the page */
.tr-solid-n{display:block;text-align:right;font:400 11px var(--mono);color:var(--muted)}   /* under the picture: over it, it ran into the piece as it swung */
.tr-zoom{position:absolute;top:6px;right:6px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}
.tr-zoom button{width:36px;height:36px;border:0;background:none;color:var(--ink);font:500 20px/1 var(--body);cursor:pointer}.tr-zoom button+button{border-top:1px solid var(--line)}
.tr-zoom button:disabled{color:var(--muted);opacity:.5;cursor:default}.tr-zoom button:hover:not(:disabled){background:var(--soft)}
.tr-view{position:absolute;left:6px;bottom:24px;display:flex;gap:6px}   /* «Ещё раз», «Сверху»: over the picture's lower corner, above the line under it */
.tr-view button{height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:500 13px var(--body);cursor:pointer}.tr-view button:hover{background:var(--soft)}
.tr-scene .rl{font:500 10px var(--mono);fill:var(--iso-black)}.tr-scene .rl.sc{font-size:12px;font-weight:600}.tr-rule{max-height:90px}
.tr-scene .tap{fill:transparent;cursor:pointer}.tr-scene .no{font:600 13px var(--body);fill:var(--iso-purple)}
.tr-scene .ok .ring{stroke:var(--ok);stroke-width:4}.tr-scene .bad .ring{stroke:var(--bad);stroke-width:4}.tr-scene .off .ring{opacity:.5}
.tr-scene .tap-l{fill:none;stroke:transparent;stroke-width:30;pointer-events:stroke;cursor:pointer}.tr-scene .ok .route{stroke:var(--ok);stroke-width:4}.tr-scene .bad .route{stroke:var(--bad);stroke-width:4}.tr-scene .off .route{opacity:.5}
.tr-scene .route{fill:none;stroke:var(--iso-purple);stroke-width:2.5;stroke-dasharray:7 5}
/* a real leg («Задача дня»): the ways on a photo of a map of any size — widths in screen pixels, a white edge to stand out of the print */
.tr-real .route,.tr-real .halo,.tr-real .tap-l,.tr-real .mk{vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.tr-real .halo{fill:none;stroke:var(--flag-w);stroke-width:7px;opacity:.9}.tr-real .route{stroke:var(--accent);stroke-width:3.5px;stroke-dasharray:none}
.tr-real .ok .route,.tr-real .bad .route{stroke-width:4.5px}.tr-real .off .route,.tr-real .off .halo{opacity:.35}
.tr-real .mk{fill:none;stroke:var(--iso-purple);stroke-width:3px}.tr-real .lt{font-weight:700;fill:var(--accent);stroke:var(--flag-w);paint-order:stroke}
.tr-race{margin:6px 0 0}
/* «Где бегун сейчас?», «Где ошибся?»: the run in --accent, where it ended a dot, a tap a cross; after, the truth in --ok:
   the hidden seconds or the best runner's way, the point, the circle counted as right, a dashed line from the tap */
.tr-real.tap{cursor:crosshair}.tr-real .arr{fill:var(--accent);stroke:var(--flag-w);stroke-width:1.5px;vector-effect:non-scaling-stroke;stroke-linejoin:round}.tr-real .dot{fill:var(--accent);stroke:var(--flag-w);stroke-width:2px;vector-effect:non-scaling-stroke}
.tr-real .spot path,.tr-real .gap,.tr-real .zone,.tr-real .hit{vector-effect:non-scaling-stroke;stroke-linecap:round;fill:none}
.tr-real .spot .halo{stroke-width:8px}.tr-real .spot .c{stroke:var(--accent);stroke-width:4px}.tr-real .spot.bad .c{stroke:var(--bad)}.tr-real .spot.ok .c{stroke:var(--ok)}
.tr-real .truth .route{stroke:var(--ok)}.tr-real .zone{stroke:var(--ok);stroke-width:3px;fill:color-mix(in srgb,var(--flag-w) 30%,transparent)}
.tr-real .hit{fill:var(--ok);stroke:var(--flag-w);stroke-width:2px}.tr-real .gap{stroke:var(--flag-w);stroke-width:3px;stroke-dasharray:6 5}   /* white: a black dash is a path on the map */
.tr-send{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* «Задача дня»: its line on the hub (done: the check in --ok), the share who got it right */
.tr-daily .tr-ico{color:var(--accent)}.tr-daily.done .tr-ico{color:var(--ok)}
/* the archive of the days' tasks (archiveScreen): a row a day — its mark, the question and race, the date; one not
   solved yet in the accent's edge, as the hub's tile; the race wraps (cut, it hid the class and the leg on a phone) */
.tr-arch{display:flex;flex-direction:column;gap:8px}
.tr-aday{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1.5px solid var(--accent);border-radius:12px;background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.tr-aday.ok,.tr-aday.bad{border:1px solid var(--line);padding:10.5px 12.5px}
.tr-aday .tr-ico{color:var(--accent)}.tr-aday.ok .tr-ico{color:var(--ok)}.tr-aday.bad .tr-ico{color:var(--bad)}
.tr-aday .tr-wt b{font:600 15px/1.25 var(--body)}.tr-aday .tr-wt span{font-size:13px;color:var(--muted);opacity:1;overflow-wrap:anywhere}
.tr-ad{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font:500 13px var(--mono);color:var(--muted);white-space:nowrap}
.tr-ad i{font:500 12px var(--body);font-style:normal}.tr-aday:not(.ok):not(.bad) .tr-ad i{color:var(--accent)}.tr-aday.ok .tr-ad i{color:var(--ok)}.tr-aday.bad .tr-ad i{color:var(--bad)}
.tr-aday:hover{background:var(--soft)}.tr-aday:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tr-dstat{margin:10px 0 0;font-size:15px;color:var(--muted)}.tr-dstat b{font:600 22px var(--mono);color:var(--ink);margin-right:4px}.tr-scene .frame{fill:none;stroke-width:1}
.tr-opts.three{grid-template-columns:repeat(3,minmax(0,1fr))}
/* «Профиль»: a graph of height per answer, the leg's start on the left */
.tr-prof{width:100%;height:auto}.tr-opts.pics .tr-prof{width:100%;height:auto}.tr-prof .ax{stroke:var(--line);stroke-width:1.5}
.tr-prof .ln{fill:none;stroke:var(--g);stroke-width:2.6;stroke-linejoin:round}.tr-prof text{font:500 10px var(--mono);fill:var(--muted)}
/* the graphs are numbered (the answer says «график 2»); on a phone one under another, the width of the map */
.tr-opts.prof{counter-reset:prof}.tr-opts.prof .tr-opt{counter-increment:prof}
.tr-opts.prof .tr-opt::before{content:counter(prof);position:absolute;top:4px;left:8px;font:600 13px/1 var(--mono);color:var(--g-ink)}
/* «Сориентируй карту»: the compass over four bits of map, numbered like the graphs; with the answer, the map turned
   to the way one runs */
.tr-compass{max-height:112px}.cp-ring{fill:var(--panel);stroke:var(--ink);stroke-width:3}.cp-tick{stroke:var(--muted);stroke-width:1.5}
.cp-n{fill:var(--bad)}.cp-s{fill:var(--muted)}.cp-dot{fill:var(--ink)}
.tr-opts.maps{counter-reset:maps}.tr-opts.maps .tr-opt{counter-increment:maps;padding:8px 8px 8px 24px}.tr-opts.pics.maps svg{width:100%;max-width:150px;height:auto}
.tr-opts.maps .tr-opt::before{content:counter(maps);position:absolute;top:6px;left:8px;font:600 13px/1 var(--mono);color:var(--g-ink)}
.tr-opts.three.maps .tr-opt{padding:4px}.tr-opts.three.maps .tr-opt::before{top:8px;left:9px;z-index:1;padding:2px 4px;border-radius:4px;background:var(--panel)}.tr-opts.pics.three.maps svg{max-width:none}   /* «Рельеф в объёме»: three maps in a row on a phone, the number on the map's corner */
.tr-turn{display:flex;align-items:center;gap:12px;margin:8px 0 10px;font-size:13px;line-height:1.35;color:var(--muted);text-align:left}.tr-turned{flex:none;width:104px;height:104px}
@media (max-width:520px){.tr-opts.prof{grid-template-columns:1fr}.tr-opts.prof .tr-opt{min-height:0;padding:6px 28px}.tr-opts.prof .tr-prof{height:74px}}
.tr-order{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tr-order .tr-opt{position:relative;display:grid;place-items:center;padding:10px}
.tr-order svg{width:100%;max-width:96px;height:auto;aspect-ratio:1}.tr-order i{position:absolute;top:4px;left:4px;font:700 16px/1 var(--mono);font-style:normal;color:var(--g);background:var(--panel);border-radius:6px;padding:3px 6px}.tr-order i:empty{display:none}
.tr-order .tr-opt:disabled{opacity:1}
/* the end of a game: the score, what it earned (a star, a section opened, a record), the signs to look at again */
.tr-end{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.tr-end .big{font:700 46px/1 var(--display);color:var(--g)}
.tr-wins{display:flex;flex-direction:column;gap:6px}
.tr-win{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:var(--g-bg);color:var(--g-ink);font-weight:600}
.tr-win .tr-ico{color:var(--star)}
/* the reference: a search over all the signs, a card per sign; the known ones ticked */
.tr-find{width:100%}
.tr-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:4px 16px;margin:0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.tr-cols b{font-family:var(--mono);color:var(--ink);margin-right:6px}
.tr-groups{display:flex;flex-direction:column;gap:18px;margin-top:14px}.tr-groups h3{margin:0 0 8px;color:var(--muted)}
.tr-groups h3 .meta,.train h3 .meta{font-family:var(--mono);font-weight:400;margin-left:6px;font-size:13px}
.signs{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.sign{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);gap:4px 12px;align-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.sign svg{grid-row:span 2;width:52px;height:52px}
.sign b{font-weight:600;line-height:1.3;padding-right:30px}.sign b .meta{font-family:var(--mono);font-weight:400;font-size:12px;color:var(--muted);margin-left:6px}
.sign>span{font-size:13px;line-height:1.4;color:var(--muted)}
.sign .onmap{grid-column:2;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sign .onmap svg{width:34px;height:34px;display:block}
.sign .lv{position:absolute;top:10px;right:10px;display:flex;gap:3px}.sign .lv i{width:7px;height:7px;border-radius:50%;background:var(--ring-bg)}
.sign .lv i.on{background:var(--star)}.sign .lv.known i{background:var(--ok)}
.sig{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--ink)}.sig .f{fill:currentColor;stroke:none}
.iso{fill:none;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--iso-paper)}
.iso .w{fill:var(--iso-paper)}.iso .k{stroke:var(--iso-black)}.iso .kf{fill:var(--iso-black)}.iso .b{stroke:var(--iso-brown)}.iso .bf{fill:var(--iso-brown)}
.iso .u{stroke:var(--iso-blue)}.iso .uf{fill:var(--iso-water)}.iso .y{fill:var(--iso-yellow)}.iso .y2{fill:var(--iso-yellow2)}
.iso .g1{fill:var(--iso-green1)}.iso .g2{fill:var(--iso-green2)}.iso .g{stroke:var(--iso-green)}.iso .gf{fill:var(--iso-green)}
.iso .olf{fill:var(--iso-olive)}.iso .p{stroke:var(--iso-purple)}.iso .pf{fill:var(--iso-purple)}
.iso .edge{stroke:var(--iso-grey)}.iso .tan,.iso .tanf{fill:var(--iso-tan)}.iso .grf{fill:var(--iso-grey)}.iso .gr2{fill:var(--iso-grey2)}
