/* MoneyBall user web theme v2 "Court" (project_docs/design/2026-11-06_design_system_v2.md,
   card 28): the tokens of section 2, the components of section 3. Pages read the tokens only
   (CLAUDE.md "Design tokens"). One action colour per screen (--action, dark text on it);
   figures in Barlow Condensed; Inter for text; both served from the portal's own files.
   The SEO landing's hero (stage M4, todo/SEO_LANDING_CHAT_ONBOARDING_PLAN.md) takes the reference
   repo's hero fonts, Oswald 300 for the title and Roboto for its text, from @fontsource as well. */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap; src: url('/vendor/fonts/oswald/oswald-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap; src: url('/vendor/fonts/oswald/oswald-latin-300-normal.woff2') 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: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/vendor/fonts/nunito/nunito-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/vendor/fonts/nunito/nunito-latin-800-normal.woff2') 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: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/roboto/roboto-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/roboto/roboto-latin-400-normal.woff2') 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: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/roboto/roboto-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/roboto/roboto-latin-700-normal.woff2') 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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/inter/inter-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/inter/inter-latin-400-normal.woff2') 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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/inter/inter-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/inter/inter-latin-500-normal.woff2') 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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/inter/inter-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/inter/inter-latin-600-normal.woff2') 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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/inter/inter-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/inter/inter-latin-700-normal.woff2') 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-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/barlow-condensed/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --surface: #F7F9FC; --card: #FFFFFF; --field: #E8EDF5; --text: #10213A; --muted: #55657F;
  --primary: #1E5BB8; --on-primary: #FFFFFF; --nav-indicator: #D6E3F8; /* MD3 secondary container: the active indicator, the tonal button */
  --action: #E3F03C; --on-action: #10213A;
  --accent: var(--action); --on-accent: var(--on-action); /* alias of the first build, removed next release */
  --win: #1B7F3B; --error: #B3261E; --on-error: #FFFFFF; --prize: #B8860B; --outline: #C3CCDA;
  /* The route button as Yandex Maps draws its own (read on yandex.ru/maps 2026-11-08): blue, white text, both themes. */
  --route: #196DFF; --on-route: #FFFFFF;
  /* Letters over a picture or a map, as the reference repo's SEO heroes (seo-landing.js HERO_TEXT_HALO): white, with a
     dark shade fading out around each letter and no box. */
  /* The black word on the splash's ball (engineer, 2026-11-08). */
  --ball-text: #111111;
  /* The players' map slogan, the TrabajoYa jobs map's .map-slogan (utils/theme.js: #FFC107, bold, right side). */
  --map-slogan: #FFC107;
  /* The ball lifted off the picture and its word raised on it (engineer, 2026-11-09: "Add elevation to the ball and
     text"): a near and a far shadow under the ball, its inner shading kept round; the word with a light edge above and
     a soft shadow below. *Was: one 0 12px 26px shadow written in the rule, barely seen on the court.* */
  --ball-elevation: 0 4px 6px rgba(0,0,0,0.35), 0 14px 22px rgba(0,0,0,0.45), 0 26px 48px rgba(0,0,0,0.35), inset -10px -14px 22px rgba(0,0,0,0.28), inset 6px 8px 14px rgba(255,255,255,0.18);
  /* the splash's support line over the photograph: black close in, wider below, dense where it meets the letters */
  --support-elevation: 0 1px 1px #000, 0 2px 2px #000, 0 2px 4px #000, 0 3px 6px #000, 0 4px 10px #000, 0 6px 14px #000, 0 0 18px #000, 0 8px 24px #000, 0 0 32px rgba(0,0,0,0.95), 0 12px 48px rgba(0,0,0,0.9);
  --ball-text-elevation: 0 -1px 0 rgba(255,255,255,0.55), 0 2px 2px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.3);
  --hero-text: #FFFFFF; --hero-halo: 0 4px 8px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.85), 0 0 56px rgba(0,0,0,0.75);
  --radius-button: 28px; --radius-field: 16px; --radius-card: 24px; --radius-chip: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px;
  --font-body: 16px; --font-small: 13px; --font-h2: 20px; --font-title: 28px; --font-figure: 40px; --font-figure-small: 28px;
  --font-text: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-figures: 'Barlow Condensed', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* MD3 elevation (Trello card "Hamburger menu 1.2 bigger...", 2026-11-08: "I see no shadows, no layers, no elevation"):
     Material Web's md-elevation, a key shadow at 30 % and an ambient one at 15 % black, levels 1 to 3 (cards and the
     modal drawer 1, the navigation bar 2, FABs and dialogs 3). *Was: --elevation-1 at 8 % and 6 %, barely visible.* */
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15); --elevation-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15); --elevation-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);
  --scrim: rgba(0, 0, 0, 0.45);
  /* the landing hero: light text over a photograph in both themes, the reference repo's shadow */
  --hero-text: #FFFFFF; --hero-band: rgba(0, 0, 0, 0.28); --hero-ground: #0E1A2B;
  /* the splash's status bar in both themes: the rose of the splash photograph's top edge (a-mobile.jpg, mean of its top 3 %,
     Trello card "Extend app to status bar", 2026-11-09) */
  --splash-status-bar: #B47C80;
  --hero-cta-fill: rgba(255, 255, 255, 0.18);
  /* the landing button's text: a black glow fading over 26 px around the letters (engineer, 2026-11-07) */
  --hero-cta-glow: 0 0 3px #000000, 0 0 8px #000000, 0 0 14px #000000, 0 0 20px #000000, 0 0 26px #000000, 0 0 26px #000000;
  --hero-shadow: 0 4px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.85), 0 0 56px rgba(0, 0, 0, 0.75);
  --font-hero: 'Oswald', 'Roboto', sans-serif; --font-hero-text: 'Roboto', var(--font-text);
  /* the SEO pages' floating buttons (views/partials/fabs.ejs): the two messengers' own colours, white marks */
  --brand-whatsapp: #25D366; --brand-telegram: #229ED9; --on-brand: #FFFFFF;
  --fab-shadow: var(--elevation-3);
}
:root[data-theme="dark"] {
  --surface: #0E1A2B; --card: #172539; --field: #22344D; --text: #EAF0FA; --muted: #A6B4C8;
  --primary: #6FA3F0; --on-primary: #0E1A2B; --error: #FF8A80; --on-error: #0E1A2B; --win: #6BD48A; --prize: #F2C94C; --outline: #3A4D68;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15); --elevation-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15); --elevation-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15); --scrim: rgba(0, 0, 0, 0.6); --nav-indicator: #2C4466;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0E1A2B; --card: #172539; --field: #22344D; --text: #EAF0FA; --muted: #A6B4C8;
    --primary: #6FA3F0; --on-primary: #0E1A2B; --error: #FF8A80; --on-error: #0E1A2B; --win: #6BD48A; --prize: #F2C94C; --outline: #3A4D68;
    --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15); --elevation-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15); --elevation-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15); --scrim: rgba(0, 0, 0, 0.6); --nav-indicator: #2C4466;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--surface); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-text); font-size: var(--font-body); line-height: 1.375; }
a { color: var(--primary); }
/* Every page's title centred (the engineer, 2026-11-10: "center horizontally all headers on app"). */
h1 { font-size: var(--font-title); line-height: 1.15; margin: var(--space-3) 0; font-weight: 700; text-align: center; }
h2 { font-size: var(--font-h2); line-height: 1.3; margin: var(--space-4) 0 var(--space-2); font-weight: 600; }
p { margin: var(--space-2) 0; }
.muted { color: var(--muted); }
.small { font-size: var(--font-small); line-height: 1.4; }
.figure { font-family: var(--font-figures); font-size: var(--font-figure); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
.figure.small, .figures .figure { font-size: var(--font-figure-small); }
.figure.prize { color: var(--prize); }
.figure.primary { color: var(--primary); }
.figure.win { color: var(--win); }
.figure.loss { color: var(--error); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); text-align: left; }
.figures.two { grid-template-columns: repeat(2, 1fr); }
main { max-width: 760px; margin: 0 auto; padding: var(--space-3); padding-bottom: calc(var(--space-5) + 56px); }
.card { background: var(--card); border-radius: var(--radius-card); padding: var(--space-3); box-shadow: var(--elevation-1); margin: var(--space-3) 0; }
.card.flat { box-shadow: none; background: var(--field); }
.card.primary-edge { border-left: 4px solid var(--primary); }
.hero { text-align: center; padding: var(--space-4) var(--space-3); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.row { display: flex; gap: var(--space-2); align-items: flex-end; }
.row > * { flex: 1; }
.row .narrow { flex: 0 0 auto; }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.steps { background: var(--field); border-radius: var(--radius-field); padding: var(--space-2) var(--space-3); font-weight: 600; text-align: center; word-break: break-word; }
.bar { height: 8px; border-radius: 4px; background: var(--field); overflow: hidden; margin: var(--space-2) 0; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ---------- navigation (Material Design 3, 2026-11-06; m3.material.io "Top app bar", "Navigation
   rail" guidelines): a small app bar 64 px high, full width, straight corners, the background colour
   until the page scrolls; at most one trailing action; a navigation bar under 600 px, a collapsed
   navigation rail from 600 px, never both; the menu icon opens the modal expanded rail (the drawer).
   *Was: a wrapping top bar of page links and three text pills, and a player-only bottom tab bar.* */
.appbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2) 0 var(--space-1); background: var(--surface); transition: background .2s, box-shadow .2s; }
.appbar.scrolled { background: var(--card); box-shadow: var(--elevation-1); }
.appbar-gap { flex: 1; }
/* The head as round buttons (engineer, 2026-11-08: "Make head fab like on TrabajoYa splash"; the reference's splash row:
   40 px circles with a 2 px outline, a light fill and the icon in the outline's colour, 8 px apart) on the MD3 top app
   bar's own surface with its elevation and shadow, so the page scrolls under it (the engineer, 2026-11-10: "Appbar should
   not be transparent, see MD3 on google, should be elevation and shadow"). *Was: a transparent bar, the page's text
   showing between the buttons.* The bar is 72 px for the 53 px menu button. */
.appbar.head-fabs, .appbar.head-fabs.scrolled { height: 72px; background: var(--card); box-shadow: var(--elevation-2); gap: 8px; padding: 0 var(--space-2); }
.head-fab { pointer-events: auto; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--primary); background: var(--card); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--elevation-3); text-decoration: none; cursor: pointer; }
.head-fab .ic { width: 24px; height: 24px; }
.head-fab .ball { width: 26px; height: 26px; }
/* The language button: the flag of the page's language filling the circle, as TrabajoYa's flag-indicator (Trello card
   "Correct buttons order", 2026-11-13). *Was: the language code in letters.* */
.head-fab.lang-fab { background-color: var(--card); background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
/* The splash's pair (TrabajoYa's #flagIndicator and #langBtn, Trello card "Menu and header/ball are jumping on each language
   cycling", 2026-11-13): the flag is a picture, not a button; the button beside it shows the next language's code at 0.3 of
   the circle, weight 600, as TrabajoYa's 1.8vh on its 6vh circle. */
.head-fab.flag-indicator { cursor: default; }
.head-fab.lang-code span { font-family: var(--font-hero-text); font-size: calc(var(--head, 44px) * 0.3); font-weight: 600; line-height: 1; }
.head-fab.selected { background: var(--primary); color: var(--on-primary); }
/* The menu button 1.2 times the others, always the last in the head, in the top right corner (Trello card "Hamburger menu 1.2
   bigger and always right top corner on all screens. Drayer is right side", 2026-11-08). */
.head-fab.head-menu { width: 53px; height: 53px; min-height: 53px; }
.head-fab.head-menu .ic { width: 29px; height: 29px; }
.brand { font-family: var(--font-figures); font-weight: 700; font-size: 22px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-1); }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.icon-btn, button.icon-btn { width: 48px; height: 48px; min-height: 48px; padding: 0; border: 0; border-radius: var(--radius-chip); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn:hover { background: var(--field); }
.icon-btn.selected { background: var(--nav-indicator); }
.button.tonal, button.tonal { background: var(--nav-indicator); color: var(--text); }
.navrail, .navbar { display: none; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; }
.nav-ind { width: 56px; height: 32px; border-radius: var(--radius-field); display: flex; align-items: center; justify-content: center; }
.nav-item:hover .nav-ind { background: var(--field); }
.nav-item.active { color: var(--text); font-weight: 700; }
.nav-item.active .nav-ind { background: var(--nav-indicator); }
@media (max-width: 599px) {
  body.with-nav .navbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: var(--elevation-2); }
  .navbar .nav-item { flex: 1; min-width: 0; }
  body.with-nav main { padding-bottom: 112px; }
  body.with-nav footer { padding-bottom: 112px; }
}
@media (min-width: 600px) {
  body.with-nav { padding-left: 80px; }
  body.with-nav .navrail { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); position: fixed; top: 72px; left: 0; bottom: 0; width: 80px; padding-top: var(--space-3); background: var(--surface); z-index: 20; }
  body.with-nav .appbar { margin-left: -80px; }
}
.navdrawer-scrim { display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50; }
.navdrawer-scrim.open { display: block; }
/* The drawer opens on the right, under the menu button (same card). *Was: on the left.* */
/* As wide as its longest item's text and 20 px after it (the engineer, 2026-11-15: "drawyer is too wide, make it menu items
   max text width with 20 px right side padding"); *was: min(360px, 86vw).* */
.navdrawer { position: absolute; top: 0; right: 0; bottom: 0; width: max-content; max-width: 86vw; background: var(--card); border-radius: var(--radius-field) 0 0 var(--radius-field); padding: var(--space-3); overflow-y: auto; box-shadow: var(--elevation-1); }
.navdrawer-head { flex-direction: row-reverse; display: flex; align-items: center; gap: var(--space-2); height: 56px; margin-bottom: var(--space-2); font-family: var(--font-figures); font-weight: 700; font-size: 22px; }
/* The drawer on the right: its close button under the menu button, the arrow pointing to the right edge. */
.navdrawer-head [data-nav-close] .ic { transform: scaleX(-1); }
.drawer-item, button.drawer-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-button); background: transparent; color: var(--text); text-decoration: none; font: inherit; font-weight: 500; justify-content: flex-start; text-align: left; }
.drawer-item:hover { background: var(--field); }
.drawer-item.active { background: var(--nav-indicator); font-weight: 700; }
.navdrawer { padding-right: 20px; }
/* The head (the brand and the close button) does not widen the drawer: the items decide its width. */
.navdrawer-head { width: 0; min-width: 100%; }
.navdrawer .drawer-item { padding-right: 0; }
.navdrawer hr { border: 0; border-top: 1px solid var(--outline); margin: var(--space-2) var(--space-3); }
/* The MoneyBall mark (2026-11-06, engineer: "the logo which complies with money and with ball"): a padel
   ball struck as a coin, /icons/logo.svg; *was* a plain lime circle with a dark border. */
.ball { width: 28px; height: 28px; background: url('/icons/logo.svg') center / contain no-repeat; display: inline-block; flex: none; }
.hero .ball { width: 64px; height: 64px; }

/* ---------- buttons ---------- */
.button, button { font: inherit; font-weight: 600; min-height: 48px; padding: 12px var(--space-4); border-radius: var(--radius-button); border: 1px solid transparent; background: var(--field); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.button.block, button.block { display: flex; width: 100%; min-height: 52px; }
.button.action, button.action, .button.accent, button.accent { background: var(--action); color: var(--on-action); }
.button.primary, button.primary { background: var(--primary); color: var(--on-primary); }
.button.secondary, button.secondary { background: var(--field); color: var(--text); }
.button.outline, button.outline { background: transparent; color: var(--text); border-color: var(--outline); }
.button.text, button.text { background: transparent; color: var(--primary); }
.button.danger, button.danger { background: var(--error); color: var(--on-error); }
.button.small, button.small { min-height: 40px; padding: var(--space-2) var(--space-3); font-size: var(--font-small); }
button:disabled { opacity: 0.5; cursor: default; }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-3); }
.actions.left { justify-content: flex-start; }
.actions > * { flex: 1 1 auto; }

/* ---------- fields ---------- */
input, select, textarea { font: inherit; width: 100%; min-height: 52px; padding: var(--space-3); border-radius: var(--radius-field); border: 1px solid var(--outline); background: var(--field); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border: 2px solid var(--primary); padding: calc(var(--space-3) - 1px); }
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; min-height: 0; padding: 0; }
/* A password field with its eye (views/partials/pw.ejs; the admin's .pw, Trello card "The field should have eye icon to see
   password.", 2026-11-13): the eye inside the field's right end, the text kept clear of it, focused too. */
.pw { position: relative; }
.pw input, .pw input:focus { padding-right: 52px; }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pw .eye .ic { width: 22px; height: 22px; }
input[type="range"] { min-height: 0; padding: 0; background: transparent; border: none; accent-color: var(--primary); }
input[type="file"] { min-height: 0; padding: var(--space-2); }
/* Safari draws a date field at its own native width past the card's edge and centres its text (iPad, 2026-11-07,
   the profile's birth date): no native look, no minimum width, the text on the left like the other fields. */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; box-sizing: border-box; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-size: var(--font-small); color: var(--muted); margin: var(--space-3) 0 var(--space-1); }
.hint { font-size: var(--font-small); color: var(--muted); margin-top: var(--space-1); }
.hint.error { color: var(--error); }
.check { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-3) 0; font-size: var(--font-body); color: var(--text); }
.check input { margin: 2px 0 0; flex: 0 0 24px; }
.code-field { text-align: center; font-family: var(--font-figures); font-size: 32px; font-weight: 700; letter-spacing: 0.3em; padding: var(--space-3) 0; min-height: 64px; }
.code-field.wrong { border: 2px solid var(--error); }
.slider-value { font-family: var(--font-figures); font-size: var(--font-figure-small); font-weight: 700; }

/* ---------- chips, pills, tabs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-chip); background: var(--field); color: var(--text); font-size: 14px; font-weight: 500; border: 2px solid transparent; cursor: pointer; user-select: none; white-space: nowrap; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; margin: 0; }
.chip.selected, .chip:has(input:checked) { background: var(--card); border-color: var(--primary); color: var(--primary); }
.chip.tab.selected { background: var(--text); color: var(--card); border-color: var(--text); }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-chip); font-size: 12px; font-weight: 500; background: var(--field); color: var(--text); line-height: 20px; white-space: nowrap; }
.pill.ok { background: var(--win); color: var(--on-primary); }
.pill.warn, .pill.action { background: var(--action); color: var(--on-action); }
.pill.bad { background: var(--error); color: var(--on-error); }
.pill.info { background: var(--primary); color: var(--on-primary); }
.pill.prize { background: var(--prize); color: var(--on-primary); }
.date-pills { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); scrollbar-width: none; }
.date-pills::-webkit-scrollbar { display: none; }
.date-pill { flex: 0 0 64px; height: 64px; border-radius: var(--radius-field); background: var(--field); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; border: 2px solid transparent; }
.date-pill .dow { font-size: 12px; color: var(--muted); }
.date-pill .dom { font-family: var(--font-figures); font-size: 22px; font-weight: 700; }
.date-pill.selected { background: var(--text); color: var(--card); }
.date-pill.selected .dow { color: var(--card); }

/* ---------- lists, cards of objects ---------- */
.match-card { display: block; text-decoration: none; color: inherit; }
.match-card .title { font-size: var(--font-h2); font-weight: 600; line-height: 1.3; }
.match-card .when { font-weight: 500; margin: var(--space-1) 0; }
/* "Сейчас играют" (Trello card "Player data."): the two pairs side by side, each pair's two avatars overlapping. */
.game-card .title { font-size: var(--font-h2); font-weight: 600; line-height: 1.3; }
.game-pairs { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: var(--space-3) 0; }
.game-pair { flex: 1 1 0; min-width: 0; text-align: center; }
.game-pair .small { overflow-wrap: anywhere; }
.game-pair .avatars { display: flex; justify-content: center; margin-bottom: var(--space-1); }
.game-pair .avatars a { display: block; text-decoration: none; }
.game-pair .avatars a + a { margin-left: -14px; }
.game-pair .avatar { width: 56px; max-width: 56px; border: 2px solid var(--card); }
a.chip { text-decoration: none; }
.avatar.avatar-letter { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-weight: 600; font-size: 22px; color: var(--muted); }
.game-vs { flex: 0 0 auto; font-weight: 600; color: var(--muted); }
/* "Лестница": each card a rail of rungs, the place on the rail, the pair's two avatars overlapping. */
.ladder h2 { margin: 0 0 var(--space-1); }
.rungs { list-style: none; margin: var(--space-2) 0 0; padding: 0; position: relative; }
.rungs::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--outline); }
.rung { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) 0; position: relative; min-height: 52px; }
.rung-place { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--field); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 600; z-index: 1; border: 2px solid var(--card); }
.rung.mine .rung-place { background: var(--primary); color: var(--on-primary); }
.rung.mine .rung-name { font-weight: 600; }
.rung .avatars { display: flex; flex: 0 0 auto; }
.rung .avatars a { display: block; text-decoration: none; }
.rung .avatars a + a { margin-left: -12px; }
.rung .avatar { width: 40px; max-width: 40px; border: 2px solid var(--card); font-size: 16px; }
.rung-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rung-score { flex: 0 0 auto; text-align: right; line-height: 1.3; }
/* The eye that opens a pair's page (MoneyBall cards "Add button with eye to open pair profile page." and, the same night,
   "eye to see pair should be inside outlined circle button the size of whatsapp fab"): the round WhatsApp button's size
   (.mb-fab, 58 px and its 27 px icon, 52 and 23 px on a phone) with the head buttons' outline (.head-fab). */
.rung-open { margin-left: auto; width: 58px; height: 58px; min-height: 58px; border-radius: 50%; border: 2px solid var(--primary); background: var(--card); color: var(--primary); }
.rung-open .ic { width: 27px; height: 27px; }
.rung-score + .rung-open { margin-left: 0; }
.radio-row { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-field); background: var(--field); margin: var(--space-2) 0; cursor: pointer; border: 2px solid transparent; }
.radio-row:has(input:checked) { background: var(--card); border-color: var(--primary); }
.radio-row input { width: 20px; height: 20px; flex: 0 0 20px; }
.list-row { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--outline); min-height: 56px; }
.list-row:last-child { border-bottom: none; }
.list-row .amount { font-weight: 600; white-space: nowrap; }
.list-row .amount.plus { color: var(--win); }
.list-row .amount.minus { color: var(--error); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--outline); font-size: 14px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
tr.mine td { font-weight: 600; background: var(--field); }
tr.mine td:first-child { border-left: 4px solid var(--primary); }
td.num { text-align: center; }
td.plus { color: var(--win); } td.minus { color: var(--error); }
.notice { border-left: 4px solid var(--primary); padding: var(--space-2) var(--space-3); background: var(--card); border-radius: var(--radius-field); margin: var(--space-3) 0; }
.notice.error { border-color: var(--error); color: var(--error); }
.partner-card { text-align: left; }
.partner-card .photo, .avatar { width: 100%; max-width: 358px; aspect-ratio: 1; height: auto; border-radius: var(--radius-card); object-fit: cover; background: var(--field); display: block; }
.avatar { width: 120px; max-width: 120px; border-radius: 50%; }
/* A portrait photo is cropped from its upper part, where the face is (a full-height photo showed the torso). */
.partner-card .photo, .avatar { object-position: 50% 15%; }
/* the pair's two faces, the partner's overlapping the player's (pair.ejs, 2026-11-07) */
.pair-avatars { display: flex; flex: none; }
.pair-avatars .avatar { width: 56px; max-width: 56px; border: 3px solid var(--card); box-sizing: content-box; }
.pair-avatars .avatar + .avatar { margin-left: -18px; }
.partner-card .name { font-size: var(--font-title); font-weight: 700; margin-top: var(--space-2); }
/* The profile photos besides the avatar (migration 08): a grid of squares on the profile and the partner card. */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-2) 0; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: var(--radius-field); overflow: hidden; background: var(--field); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell .pill { position: absolute; left: 6px; bottom: 6px; }
.photo-cell .photo-del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: var(--scrim); color: var(--hero-text); font-size: 20px; line-height: 1; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed var(--outline); color: var(--primary); font-size: 28px; cursor: pointer; }
.photo-add span { font-size: var(--font-small); }
.partner-card .photo-grid { max-width: 358px; }
.sets { display: grid; grid-template-columns: 80px 1fr 20px 1fr; gap: var(--space-2); align-items: center; margin: var(--space-2) 0; }
.sets input { text-align: center; font-family: var(--font-figures); font-size: 28px; font-weight: 700; padding: var(--space-2) 0; }
.sets .colon { text-align: center; font-size: 24px; }

/* ---------- maps ---------- */
#map, .map { height: 260px; border-radius: var(--radius-field); overflow: hidden; background: var(--field); }
.map.tall { height: 70vh; min-height: 360px; }
.address-results { display: flex; flex-direction: column; gap: var(--space-1); margin: var(--space-1) 0; }
.address-results button { text-align: left; white-space: normal; justify-content: flex-start; }
.popup-photo { width: 160px; max-width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius-field); display: block; margin-bottom: var(--space-1); }
/* The players' list (views/cards.ejs; todo/PLAYERS_LIST_PORT_PLAN.md, TrabajoYa's jobs list): each card the Tinder-like
   look of 2026-11-10, the photo filling the card and the information over it on semi-transparent, blurred panels in the
   card colour, readable in both themes; the cards one under the other, up to 600 px wide, centred on a wide window. A
   computer's browser gets the table. *Was: a deck, one card at a time (--deck-h, app.js deckFit).* */
.pl-card.tinder { position: relative; height: min(78vh, 680px); min-height: 420px; max-width: 600px; margin: 0 auto var(--space-3); border-radius: var(--radius-card); overflow: hidden; background: var(--field); box-shadow: var(--elevation-2); }
.pl-card .tinder-name a { color: inherit; text-decoration: none; }
.pl-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; color: var(--muted); }
.tinder-btn.chosen { background: var(--primary); color: var(--on-primary); }
.pl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-2); margin: var(--space-2) 0; }
.pl-stat { background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-card); padding: var(--space-2); display: flex; flex-direction: column; gap: 4px; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.pl-n { font-size: 24px; font-weight: 700; color: var(--primary); }
.pl-filters label { display: flex; flex-direction: column; gap: 6px; }
.pl-filters [hidden] { display: none !important; }
.pl-filter-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; margin-top: var(--space-2); }
.pl-filter-row > label { flex: 1 1 160px; min-width: 0; }
.pl-filter-row label.pl-check { flex-direction: row; align-items: center; gap: 8px; flex: 0 1 auto; }
.pl-filter-row label.pl-check input { width: auto; min-height: 0; }
.pl-table-card { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table th, .pl-table td { padding: 10px 8px; border-bottom: 1px solid var(--outline); text-align: left; vertical-align: middle; }
.pl-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.pl-sortable[data-dir="asc"] .pl-ind::after { content: " ▲"; }
.pl-sortable[data-dir="desc"] .pl-ind::after { content: " ▼"; }
.pl-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-who img, .pl-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--field); color: var(--muted); }
.pl-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-acts .tinder-btn { width: 40px; height: 40px; min-height: 40px; }
.pl-acts .tinder-btn .ic { width: 22px; height: 22px; }
.tinder-photos { position: absolute; inset: 0; }
.tinder-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0; transition: opacity .2s; }
.tinder-photo.shown { opacity: 1; }
.tinder-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; }
.tinder-bars span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); }
.tinder-bars span.on { background: #FFFFFF; }
.tinder-info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.tinder-panel { background: color-mix(in srgb, var(--card) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); border: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tinder-name { font-size: var(--font-title); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tinder-times { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tinder-actions { display: flex; align-items: center; justify-content: center; gap: 28px; }
.tinder-btn { width: 64px; height: 64px; min-height: 64px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--card) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--elevation-3); border: 2px solid var(--outline); color: var(--text); }
.tinder-btn .ic { width: 32px; height: 32px; }
.tinder-btn.pair { border-color: var(--primary); color: var(--primary); }
.tinder-btn.see { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.tinder-count { min-width: 48px; text-align: center; padding: 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--card) 62%, transparent); color: var(--text); }
.tinder-links { flex-direction: row; justify-content: center; align-items: center; gap: 8px; padding: 4px 14px; }
/* The contact buttons stand at the bottom right over the deck: the info leaves them room on a phone. */
@media (max-width: 640px) { body:has(.mb-fabs) .tinder-info { right: 84px; } }
.leaflet-popup-content-wrapper { background: var(--card); color: var(--text); border-radius: var(--radius-field); }
.leaflet-popup-content { margin: var(--space-2) var(--space-3); }
.leaflet-popup-tip { background: var(--card); }
.leaflet-popup .actions { margin-top: var(--space-2); justify-content: flex-start; }

/* ---------- sheet, modal, toast ---------- */
.modal-scrim, .sheet-scrim { position: fixed; inset: 0; background: var(--scrim); display: none; align-items: center; justify-content: center; z-index: 50; padding: var(--space-3); }
.modal-scrim.open, .sheet-scrim.open { display: flex; }
.sheet-scrim { align-items: flex-end; padding: 0; }
.modal { background: var(--card); border-radius: var(--radius-card); padding: var(--space-4); max-width: 420px; width: 100%; box-shadow: var(--elevation-3); }
.modal .actions { justify-content: flex-end; }
.sheet { background: var(--card); border-radius: var(--radius-card) var(--radius-card) 0 0; padding: var(--space-3) var(--space-3) calc(var(--space-4) + env(safe-area-inset-bottom)); width: 100%; max-width: 760px; margin: 0 auto; }
.sheet .handle { width: 40px; height: 4px; border-radius: 2px; background: var(--outline); margin: 0 auto var(--space-3); }
.toast { position: fixed; bottom: calc(var(--space-3) + 64px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: var(--space-2) var(--space-3); border-radius: var(--radius-button); font-size: var(--font-small); display: none; z-index: 60; max-width: 90vw; white-space: pre-line; }
.toast.show { display: block; }
#install-note, #offline-note { display: none; }
footer { text-align: center; color: var(--muted); font-size: var(--font-small); padding: var(--space-4) var(--space-3); }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  main { padding: var(--space-2); padding-bottom: 80px; }
  .card { padding: var(--space-3); border-radius: var(--radius-card); margin: var(--space-2) 0; }
}

/* ---------- the SEO pages' floating buttons (views/partials/fabs.ejs) ---------- */
/* The reference repo's .global-whatsapp-fab sizes: 64 px round, 24 px from the edges, 58 px and 16 px on a phone;
   a column at the bottom right, Up on top. Above the page, the app bar (30) and the navigation bar (20), under the
   drawer, modal and sheet scrims (50). */
.mb-fabs { position: fixed; right: 24px; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 40; }
/* The splash (views/splash.ejs, engineer 2026-11-08): on a phone (portrait) the vertical photograph of landing a fills the
   window; on a horizontal window the full horizontal hero of landing a fills it ("Horisontal should have full hero image
   of .../a SEO"). *Was, for an hour: the vertical photograph in the middle over a blurred copy of itself.* The ball's
   centre stands at 1/3 of the image height from its bottom ("Make ball position to 1/3 of the image height"), the three
   lines just above it; then (the same day: "Make ball 0.8 smaller and 40px lower position text and ball, and double
   distance between ball and text") the ball 0.8 of that size, both 40 px lower, the gap twice as wide; then ("Move girls right to 40 px. Double distance between text and ball") the
   gap doubled again (32 px). Text and ball are in the TrabajoYa SEO hero title's font, Oswald 300 at line-height 1.1, at that
   title's size, clamp(53px, 10.6vw, 95px), held to what lets the longest line fit a phone (11vw) and keeps the
   three lines under the players' faces on a horizontal window (6.5vh; at 9vh "Турнир" crossed a face at 1440 x 900) ("Make font the same as on
   TrabajoYa SEO hero headers, on the button and text"; *was: Oswald 700 at 19-32 px*). The ball is a photograph of a
   real ball (public/img/padel-ball.webp: "A type of tennis ball", Wikimedia Commons, CC0; a padel ball looks the same). */
/* The splash's own fill is rose: iOS 26 Safari colours its status bar from the fixed element at the top edge and no longer
   from theme-color (WebKit bugs 301756, 302272); the blurred photo covers this fill everywhere on the page. */
.splash { position: fixed; inset: 0; overflow: hidden; background: var(--splash-status-bar); --ball: clamp(85px, 21.6vmin, 141px); }
/* The splash's row of round buttons at the top (TrabajoYa splash: centred, a line joining them behind). */
/* The row's buttons are the size of the WhatsApp and Telegram buttons (engineer, 2026-11-08: "buttons should be lower,
   and the diameter the same as on fab"): 58 px, 52 px on a phone, 6vh from the top as on TrabajoYa. */
/* The row and the lines under it near the top edge, so they stand above the models' heads (the engineer, 2026-11-10:
   "Make menu and texts higher. so that text do not overlaps models heads"; *was: max(6vh, 32px) below the safe area*). */
.splash-head { position: absolute; top: calc(env(safe-area-inset-top, 0px) + max(1.5vh, 10px)); left: 50%; transform: translateX(-50%); display: flex; gap: var(--space-2); z-index: 2; --head: 58px; }
.splash-head::before { content: ''; position: absolute; left: calc(var(--head) / 2); right: calc(var(--head) / 2); top: 50%; height: 2px; background: var(--primary); transform: translateY(-50%); z-index: -1; }
.splash-head .head-fab { width: var(--head); height: var(--head); min-height: var(--head); }
.splash-head .head-fab .ic { width: 27px; height: 27px; }
.splash-head .head-fab .ball { width: 30px; height: 30px; }
/* Six buttons since the language button (2026-11-12; the last one the profile or, for a visitor, the map): on a narrow
   phone they shrink to fit the window's width. */
@media (max-width: 599px) { .splash-head { --head: min(52px, calc((100vw - 32px - 50px) / 6)); gap: 10px; } .splash-head .head-fab .ic { width: 23px; height: 23px; } .splash-head .head-fab .ball { width: 26px; height: 26px; } }
/* The support line and the clock under the row (the TrabajoYa splash's: an underlined line, then a small pill). */
.splash-top-line { position: absolute; top: calc(env(safe-area-inset-top, 0px) + max(1.5vh, 10px) + 58px + 10px); left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 599px) { .splash-top-line { top: calc(env(safe-area-inset-top, 0px) + max(1.5vh, 10px) + 52px + 10px); } }
/* The support line in the theme's text colour on a 16 px glow of the theme's background (Trello card "Add background",
   2026-11-08: "Text is not readable. Add theme backgrount to the font (16 px shadow)"); the glow is laid three times so it
   is solid enough under thin 13 px letters on any part of the photo. *Was: white with the black --hero-halo.* */
/* White over the photograph with a dense black shadow lifted below it (engineer, 2026-11-09: "Not like this. Only gradient ...
   Make darker and wider font shadow and more elevation"). *Was, for one deploy: on the clock's card pill.* */
.splash-support { background: none; border: 0; padding: 0; min-height: 0; color: var(--hero-text); text-shadow: var(--support-elevation); text-decoration: underline; font-family: var(--font-hero-text); font-size: 13px; font-weight: 400; cursor: pointer; }
.splash-clock { display: inline-flex; align-items: center; gap: 10px; padding: 2px 10px; border-radius: 10px; background: var(--card); color: var(--text); font-family: var(--font-hero-text); font-size: 12px; font-weight: 700; opacity: 0.88; }
.splash-clock-sep { width: 1px; height: 12px; background: var(--outline); }
.support-form h2 { margin: 0 0 var(--space-2); font-size: 20px; }
.support-form label { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-2); font-size: 14px; }
.support-note { min-height: 1.2em; margin: 0 0 var(--space-2); font-size: 14px; }
/* The picture covers the window in both orientations, sized and placed by the script of views/splash.ejs from its models'
   box (upright: feet near the bottom, heads under the support line, the headline never over a head; the engineer,
   2026-11-10: "too much models shifting up. Remove blurred space. Text should not overlap models heads on all pictures
   changing"). It shows once placed. *Was, upright: every picture scaled to landing A's frame (--k = min((100vw - 20px) /
   823, 100vh / 1600)), a blurred copy (.splash-blur) and A's drawn floor (.splash-floor) under and around it.* */
.splash-photo { position: absolute; max-width: none; opacity: 0; transition: opacity .25s ease; }
.splash-photo.placed { opacity: 1; }
/* The header row, its line and the headline show with the picture, once the script has placed them (Trello card "When I
   click language button the design is jumping left. The header text.", 2026-11-14: they were painted at their plain
   CSS place first and moved by the script a moment later, about 11 px sideways and the header 38 px up, on every load;
   a click on the language button loads the page again, so every click showed the jump). A picture that fails to load
   is marked placed by the script, so the buttons never stay hidden. */
.splash-head, .splash-top-line, .splash-content { transition: opacity .25s ease; }
.splash:has(.splash-photo:not(.placed)) .splash-head,
.splash:has(.splash-photo:not(.placed)) .splash-top-line,
.splash:has(.splash-photo:not(.placed)) .splash-content { opacity: 0; }
/* Sideways (Trello card "On horixontal picture models right and header lett thould be with 60 px distance", 2026-11-09):
   the horizontal picture at the window's full height, moved by the script of views/splash.ejs so its models stand 60 px
   right of the headline block, the two centred; its side edges fade into the blurred copy behind, which fills any side
   it uncovers. *Was: the picture covering the window, the headline centred over the models.* */
/* Then (the same evening): "Split models and header. Header is right side" and "No blur on picture": the models on the
   left, the headline on their right, the picture covering the window by itself (size and place set by the script), no
   blurred copy and no faded edges. */
@media (orientation: landscape) {
  .splash-content { right: auto; width: max-content; }
}
.splash-content { position: absolute; left: 0; right: 0; bottom: calc(33.333% - var(--ball) / 2 - 40px); display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-2) * 4); padding: 0 var(--space-2); text-align: center; }
/* The splash's own halo (Trello card "Background does not accomodate to photo placed.", 2026-11-09: "Make shadow darker and
   wider to +10px to existing on font"): --hero-halo with each blur 10 px wider and each layer darker; the other pages keep
   --hero-halo. */
/* Elevation (Trello card "Add elevation", 2026-11-09: on a light picture the wide halo spread too thin to show under the
   letters): a close dark shadow under each letter and a lifted drop shadow first, the wide halo after them. The drop is
   black, raised 12 px with a 12 px blur (the engineer, 2026-11-09: "Add elevation and black shadow 12 p to header font";
   *was: 0 6px 10px at 0.75*). */
.splash-text { margin: 0; font-family: var(--font-hero); font-weight: 300; color: var(--hero-text); text-shadow: 0 2px 2px rgba(0,0,0,0.9), 0 12px 12px rgba(0,0,0,1), 0 4px 18px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.95), 0 0 66px rgba(0,0,0,0.9); font-size: min(clamp(53px, 10.6vw, 95px), 11vw, 6.5vh); line-height: 1.1; }
/* the headline's lines as blocks: views/splash.ejs equalizeLines gives one of them a top margin so the gaps look equal */
.splash-text .splash-line { display: block; }
.splash-ball { position: relative; width: var(--ball); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none;
  background: url('/img/padel-ball-felt.webp') center / cover no-repeat;
  box-shadow: var(--ball-elevation);
  transition: transform 0.15s ease; }
/* The ball's word in Nunito ExtraBold, rounded and heavier (Trello card "Change to smooth font", 2026-11-08), at 0.155 of the
   ball so it keeps Oswald's width, about 62 % of the ball (at 0.22 the wider face ran edge to edge). *Was: Oswald 300 at 0.22.* */
/* the seam turning on the ball (views/splash.ejs), under the word */
.splash-ball-seam { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; }
/* once the canvas draws the label on the turning ball, the page's label stays only for screen readers */
.splash-ball.rolling span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.splash-ball span { position: relative; z-index: 1; font-family: 'Nunito', var(--font-text); font-weight: 800; color: var(--ball-text); text-shadow: var(--ball-text-elevation); font-size: calc(var(--ball) * 0.155); line-height: 1.1; }
.splash-ball:active { transform: scale(0.96); }
/* A map keeps its layers inside itself: Leaflet's panes and controls carry z-index 400 to 1000, and without a stacking
   context of its own a map rose above the floating buttons, the app bar, the navigation bar and the dialogs (Trello card
   "fab should always be on top of all", 2026-11-08: the club page's map covered the WhatsApp button). */
.leaflet-container { isolation: isolate; }
/* The same for the players' and games' map frame: its location card (z-index 500) and slogan (450) lie beside the map, and
   without a stacking context of the frame's own they rose above the menu drawer (50; the engineer, 2026-11-10: "Screen
   elements overlap drawyer."). */
.pm-wrap { isolation: isolate; }
/* The place picker (js/app.js mbMapPicker; Trello card "Port TrabajoYa map picker and functionality.", 2026-11-09), ported
   from the reference repo's /map-picker page: the whole window, a title bar with the close button, the map with a pin
   that a tap or a drag moves, and one panel with the search (suggestions as you type), the location button, Отмена and
   Найти, the address of the point and "Выбрать это место". The panel lies at the bottom on a phone and at the top left
   from 769 px, as there. Above the navigation and the floating buttons (20 to 40), under the toast (60).
   *Was: a small dialog with the map, a hint and Отмена / Готово, the point a dot, no search.* */
.mbp { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: var(--surface); }
.mbp[hidden] { display: none; }
.mbp-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: calc(var(--space-2) + env(safe-area-inset-top, 0px)) var(--space-2) var(--space-2) var(--space-3); background: var(--card); border-bottom: 1px solid var(--outline); }
.mbp-head h2 { margin: 0; font-size: var(--font-h2); }
.mbp-body { flex: 1; position: relative; overflow: hidden; }
.mbp-map { position: absolute; inset: 0; background: var(--field); }
.mbp-panel { position: absolute; left: 12px; right: 12px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: var(--space-3); background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-card); box-shadow: var(--elevation-2); }
.mbp-row { display: flex; gap: var(--space-2); align-items: center; position: relative; }
.mbp-row input { flex: 1; min-width: 0; min-height: 48px; }
.mbp-row > button { flex: 1; }
.mbp-row > button, .mbp-use { gap: 6px; padding-left: var(--space-3); padding-right: var(--space-3); }
.mbp-row > button .ic, .mbp-use .ic { width: 20px; height: 20px; }
button.mbp-locate { width: 48px; height: 48px; min-height: 48px; padding: 0; flex: none; border-radius: var(--radius-chip); }
.mbp-hint { margin: 0; font-size: var(--font-small); color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.mbp-hint.err { color: var(--error); }
.mbp-suggest { position: absolute; left: 0; right: 56px; bottom: calc(100% + 4px); max-height: 40vh; overflow-y: auto; background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-field); box-shadow: var(--elevation-3); }
.mbp-suggest[hidden] { display: none; }
.mbp-suggest button { display: block; width: 100%; min-height: 0; padding: 10px var(--space-3); border: 0; border-bottom: 1px solid var(--outline); border-radius: 0; background: transparent; color: var(--text); text-align: left; font-weight: 400; }
.mbp-suggest button:last-child { border-bottom: 0; }
.mbp-suggest button.on, .mbp-suggest button:hover { background: var(--field); }
.mbp-suggest b { display: block; font-weight: 600; }
.mbp-suggest small { display: block; color: var(--muted); font-size: var(--font-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbp-suggest .none { padding: 10px var(--space-3); color: var(--muted); font-size: var(--font-small); }
.mbp-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--primary); border: 3px solid var(--card); box-shadow: var(--elevation-2); transform: rotate(-45deg); position: relative; }
.mbp-pin::after { content: ''; position: absolute; width: 10px; height: 10px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--card); }
.mbp .leaflet-top.leaflet-left { top: 8px; }
@media (min-width: 769px) {
  .mbp-panel { top: 16px; left: 16px; right: auto; bottom: auto; width: 380px; }
  .mbp-suggest { top: calc(100% + 4px); bottom: auto; }
  .mbp .leaflet-top.leaflet-left { left: auto; right: 10px; }
  .mbp .leaflet-top.leaflet-left .leaflet-control { float: right; }
}
/* The club page (Trello card "Refactor page" and the engineer's chat, 2026-11-08): the map covers the whole page, one
   semi-transparent card lies over it with the theme's card colour fading under the text, and the app bar, the navigation
   and the floating buttons stay above (their z-index 20 to 40 over the map's 0). */
.club-map { position: fixed; inset: 0; z-index: 0; background: var(--field); }
/* One row (engineer, 2026-11-08: "Make it inline. Too much empty space."): the name and courts on the left, the buttons on
   the right; they wrap under it only when the window is too narrow. */
/* No box (engineer, 2026-11-08: "Transparent card with gradient under the font, like on TrabajoYa SEO hero"): the text
   lies on the map with the hero's fading shade under each letter. *Was, an hour: a semi-transparent card with a blur.* */
.club-card { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: var(--space-1) var(--space-3); padding: var(--space-1) 0; }
.club-card h1, .club-sub { color: var(--hero-text); text-shadow: var(--hero-halo); }
.club-card h1 { margin: 0; line-height: 1.15; }
.club-sub { margin: 2px 0 0; }
.club-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
/* Маршрут as on Yandex Maps (engineer, 2026-11-08: "Маршрут should be the button as on Yandex maps"): a 40 px blue button
   with 12 px corners, the route icon on the left, white text. */
.button.route { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 12px; background: var(--route); color: var(--on-route); }
.button.route svg { width: 22px; height: 22px; flex-shrink: 0; }
.mb-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: var(--fab-shadow); cursor: pointer; transition: transform 0.2s ease; padding: 0; }
.mb-fab:hover { transform: translateY(-2px); }
.mb-fab[hidden] { display: none; }
.mb-fab svg { width: 27px; height: 27px; fill: currentColor; }
/* 0.8 again (engineer, 2026-11-08, on the splash: "move fabs to right bottom and decrease size to 0.8"): 58 px, 52 px on a
   phone; *was* 72 / 65 px (2026-11-07: "fabs are too big, decrease to 0.8"), 90 / 81 px before that, and the reference
   repo's 64 / 58 px. The Up button is outlined with a chevron ("make Up button outlined with
   chevron up icon"); *was* a filled card-coloured disc with an arrow. */
.mb-fab-up { background: transparent; color: var(--text); border: 2px solid currentColor; box-shadow: none; }
.mb-fab-tg { background: var(--brand-telegram); color: var(--on-brand); }
/* The players' map's play button for a visitor, the yellow of the action buttons with the racket (partials/fabs.ejs). */
.mb-fab-play { background: var(--action); color: var(--on-action); }
.mb-fab-wa { background: var(--brand-whatsapp); color: var(--on-brand); }
/* The flag, the next language and the theme above WhatsApp (the engineer, 2026-11-18): the WhatsApp button's size with the
   head buttons' outline (.head-fab). */
.mb-fab-head { background: var(--card); color: var(--primary); border: 2px solid var(--primary); }
.mb-fab-flag { background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; cursor: default; }
.mb-fab-flag:hover { transform: none; }
.mb-fab-lang span { font-family: var(--font-hero-text); font-size: 18px; font-weight: 600; line-height: 1; }
.mb-fab-head .ic { width: 27px; height: 27px; fill: currentColor; }
@media (max-width: 768px) {
  .mb-fab-lang span { font-size: 16px; }
  .mb-fab-head .ic { width: 23px; height: 23px; }
}
@media (max-width: 768px) {
  .mb-fabs { right: 16px; bottom: 28px; gap: 12px; }
  .mb-fab { width: 52px; height: 52px; }
  .mb-fab svg { width: 23px; height: 23px; }
  .rung-open { width: 52px; height: 52px; min-height: 52px; }
  .rung-open .ic { width: 23px; height: 23px; }
}
/* a phone page with the bottom navigation bar: the column stands on the bar (its 112 px), never over it */
@media (max-width: 599px) { body.with-nav .mb-fabs { bottom: calc(112px + env(safe-area-inset-bottom)); } }
/* The page's end scrolls clear of the floating buttons (2026-11-10, /signup at 390 px: the stack covered the last line,
   the terms; the engineer, 2026-11-09: "Not readable elements are not acceptable in any interface or page"). Scrolled
   down, the stack is six buttons (up, flag, language, theme, WhatsApp, Telegram; since 2026-11-18): 28 + 6 x 52 + 5 x 12
   = 400 px from the bottom, or from 112 px above the bottom navigation, 484 px. *Was: three buttons, 226 and 310 px.* */
@media (max-width: 640px) { body:has(.mb-fabs) main { padding-bottom: 416px; } }
@media (max-width: 599px) { body.with-nav:has(.mb-fabs) main { padding-bottom: calc(500px + env(safe-area-inset-bottom)); } }

/* ---------- the players' map (views/karta.ejs), built as the admin's maps (engineer, 2026-11-08: "The same map should
   see the users to click on tag and to chose partner"): the filter bar, the map with its buttons, the legend; star
   tags with labels and pies, coloured by the status tokens below. ---------- */
/* --st-pair green, lighter than the clubs' (the engineer, 2026-11-19: pairs "Should be green on pie chart of the cluster";
   *was #00897B, teal*). --st-player men, --st-player-f women without a pair (the engineer, 2026-11-19: "Men orange, women blue"), a lighter blue
   than me and the region. */
:root { --st-me: #2F80ED; --st-player: #F2711C; --st-player-f: #29A3F5; --st-club: #2E9E4F; --st-area: #1E5BB8; --st-request: #9C27B0; --st-pair: #66BB6A; }
/* A map page fills the window to its bottom edge and the map takes all the room between the filters and the legend
   (engineer, 2026-11-10: "The map should be full screen on all screens where the map is the main tool"): js/app.js
   fillToBottom sets the page's height from the window and the page's top, on load and on every resize. *Was: the map
   100vh - 260 px high, a grey band under the legend in the app's in-app browser.* */
main:has(.pm-page) { max-width: none; padding-left: 0; padding-right: 0; padding-bottom: 0; }
/* The floating buttons' end room above (240 / 324 px) is for a page that scrolls; a map page does not, and that room
   took 324 px off the map in the app (2026-11-10, iPhone simulator). These selectors outrank the two rules above. */
body.with-nav:has(.mb-fabs) main:has(.pm-page), body:has(.mb-fabs) main:has(.pm-page) { padding-bottom: 0; }
.pm-page { display: flex; flex-direction: column; }
.pm-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 8px var(--space-2); background: var(--card); border-bottom: 1px solid var(--outline); }
.pm-title { font-weight: 700; }
/* The count and the kinds' boxes wrap on a narrow screen, each box whole (three boxes since 2026-11-15). */
.pm-line { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; white-space: nowrap; max-width: 100%; }
/* The count in exactly the filter's font, size, weight and colour (the engineer, 2026-11-09: "Make both fonts as the
   filter font"; 2026-11-10: "Partners count should be the same font as filter text": the label's global rule had left the
   filter muted and the count in the text colour). One rule for both. */
.pm-line .pm-title, .pm-check { font-family: var(--font-text); font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--muted); margin: 0; }
.pm-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pm-check input { width: 18px; height: 18px; margin: 0 0 0 4px; }
.pm-search { display: flex; gap: 8px; }
.pm-search input { min-width: 220px; height: 32px; min-height: 0; padding: 0 12px; border-radius: var(--radius-field); border: 1px solid var(--outline); background: var(--surface); color: var(--text); }
/* 32 px high, the field, the button and the two lists (the engineer, 2026-11-14: "Button and field is too fat"); was 40 px. */
#pm-search .pm-search-btn { height: 32px; min-height: 0; padding: 0 14px; border-radius: var(--radius-field); border: 0; background: var(--st-club); color: var(--on-primary); font-weight: 600; font-size: 14px; }
.pm-wrap { position: relative; flex: 1 1 auto; min-height: 320px; }
#player-map, #games-map { position: absolute; inset: 0; }
.pm-controls { position: absolute; left: 12px; bottom: 24px; z-index: 5; display: flex; flex-direction: column; gap: 12px; }
.pm-btn { width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50%; border: 2px solid var(--st-club); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--elevation-1); }
/* A visitor's "Играть" under the map's buttons (views/karta.ejs), the twin's action buttons on its map. */
.pm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 8px var(--space-2); background: var(--card); border-top: 1px solid var(--outline); font-size: 13px; color: var(--muted); }
.pm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pm-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: currentColor; }
.pm-legend i.st-area { background: transparent; border: 2px solid var(--st-area); }
/* On a phone the WhatsApp and Telegram buttons stand at the bottom right over the map's foot: the legend leaves them room
   (2026-11-14). */
@media (max-width: 640px) { body:has(.mb-fabs) .pm-legend { padding-right: 84px; text-align: left; } }
.st-me { color: var(--st-me); } .st-player { color: var(--st-player); } .st-player-f { color: var(--st-player-f); } .st-club { color: var(--st-club); } .st-area { color: var(--st-area); } .st-request { color: var(--st-request); } .st-pair { color: var(--st-pair); }
.pm-star { width: 18px; height: 18px; flex: none; display: inline-block; background: currentColor; -webkit-mask: url('/icons/star.svg') center / contain no-repeat; mask: url('/icons/star.svg') center / contain no-repeat; }
.pm-pin-wrap, .pm-pie { background: none; border: 0; }
.pm-pin { display: flex; align-items: flex-start; gap: 2px; white-space: nowrap; }
.pm-pin .pm-star { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35)); }
/* The players' map location card and slogan, as the admin map's .mb-map-geo and TrabajoYa's .map-slogan (Trello card "The
   map should opens after user onboards ...", 2026-11-09); the slogan at 0.8 of TrabajoYa's size (the engineer: "Decrease
   font 'Chose pair' on map 0.8 times"), always on one line, its size following the width on a phone ("This should always
   be one line"). */
.pm-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6); }
/* Every map's tiles follow the theme the same way, the games map (/karta-igr), the place picker and the city pages too (the
   engineer, 2026-11-15: "No dark/light automation on map https://play4.fit/karta-igr"). */
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6); }
}
/* The location card: semi-transparent and outlined, "GPS:" and "IP:" each on at most two lines, the font shrinking to fit
   (the engineer, 2026-11-09: "Remove long headers form Geo card. Make card semi transparent, outlined"); app.js fitGeo. */
/* The slogan above the location card, centred, in a lighter weight (the engineer, 2026-11-19: "Выбери пару для игры ...
   should be above geo card, centered horizontally and less fat font"); the card starts under the slogan's line, both from
   one size (--pm-slogan-size). *Was: the slogan at the right under the card, weight 700.* */
/* 0.8 of the first size (the engineer, 2026-11-19: "Decrease font to 0.8 times"). *Was: clamp(17.6px, 3.6vw, 38.4px).* */
.pm-wrap { --pm-slogan-size: clamp(14.1px, 2.88vw, 30.7px); }
.pm-geo { position: absolute; top: calc(22px + 1.05 * var(--pm-slogan-size)); right: 12px; z-index: 500; width: 230px; background: color-mix(in srgb, var(--card) 55%, transparent); color: var(--text); border: 1px solid var(--outline); border-radius: 12px; padding: 8px 10px; font-size: 13px; line-height: 1.3; }
.pm-geo-line { overflow: hidden; }
.pm-geo-line + .pm-geo-line { margin-top: 4px; }
.pm-slogan { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 450; pointer-events: none; user-select: none; text-align: center; white-space: nowrap; font-family: 'Roboto', var(--font-text); font-size: var(--pm-slogan-size); font-weight: 500; letter-spacing: 1px; line-height: 1.05; color: var(--map-slogan); text-shadow: var(--hero-halo); }
@media (max-width: 599px) { .pm-wrap { --pm-slogan-size: min(clamp(11.5px, 3.84vw, 17.9px), calc((100vw - 32px) / 16)); } .pm-geo { width: 170px; } }
.pm-pin-label { display: flex; align-items: center; gap: 6px; background: var(--card); color: var(--text); border: 1px solid var(--outline); border-radius: 8px; padding: 2px 8px 2px 2px; font-size: 12px; line-height: 1.25; box-shadow: var(--elevation-1); }
.pm-pin-label img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pm-pair img + img { margin-left: -10px; }
.pair-two { display: flex; flex-wrap: wrap; gap: 16px; }
.pair-one { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.pair-one .avatar { width: 64px; max-width: 64px; }
.pm-pin-label > span { display: flex; flex-direction: column; padding-left: 4px; }
.pm-pin-label small { color: var(--muted); font-size: 11px; }
.pm-pie svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
/* "Карта игр": the TrabajoYa jobs map's applied tag (the star, the avatars overlapping it, the label on its right). */
.gm-wrap { background: none; border: 0; }
.gm-tag { position: relative; cursor: pointer; }
.gm-star { position: absolute; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.gm-tag.now .gm-star { color: var(--win); }
.gm-avatars { position: absolute; left: 0; top: 0; }
.gm-av { position: absolute; border-radius: 50%; overflow: hidden; box-sizing: border-box; border: 1px solid var(--text); background: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: var(--muted); }
.gm-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.gm-label { position: absolute; left: 22px; top: -16px; display: inline-flex; flex-direction: column; width: max-content; background: var(--card); color: var(--text); border: 1px solid var(--st-club); border-radius: 4px; padding: 2px 6px; font-size: 13px; line-height: 15px; box-shadow: var(--elevation-1); white-space: nowrap; }
.gm-tag.now .gm-label { border-color: var(--win); }
.gm-label small { font-size: 11px; line-height: 13px; color: var(--muted); }
.gm-label .gm-more { display: inline; color: var(--st-club); font-weight: 600; }
.gm-list { list-style: none; padding: 0; margin: 8px 0; }
.gm-list li { padding: 4px 0; border-bottom: 1px solid var(--outline); }
.gm-list li:last-child { border-bottom: none; }
@media (max-width: 599px) { .pm-search input { min-width: 0; width: 100%; } }
/* The map's list (views/karta.ejs #pm-list; the engineer, 2026-11-12): the filters in the head, a table on a computer,
   cards below 768 px. Every text wraps; nothing is cut (memory: nothing unreadable in any interface). */
/* The two dropdowns on one line whatever the width, each half of it (the engineer, 2026-11-14: "Align 2 dropdowns in one
   single string. They eat map space when wrapped"); on a narrow phone their text is a little smaller so it stays whole.
   *Was: flex-wrap: wrap, the second under the first.* */
.pm-line.pm-selects { flex-wrap: nowrap; justify-content: center; gap: 8px; white-space: normal; max-width: 100%; }
.pm-selects select { width: auto; flex: 1 1 auto; min-width: 0; max-width: 260px; height: 32px; min-height: 0; padding: 0 6px 0 12px; border-radius: var(--radius-field); border: 1px solid var(--outline); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
@media (max-width: 420px) { .pm-selects select { font-size: 13px; padding: 0 4px 0 8px; } .pm-line.pm-selects { width: 100%; } }
.pm-view-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-field); border: 2px solid var(--st-club); background: var(--card); color: var(--text); font-weight: 600; cursor: pointer; }
.pm-view-btn .ic { width: 20px; height: 20px; }
/* "Карта", the way back from the list to the map, only in the list (js/app.js sets hidden on the map); the display above
   kept it on the map too (the engineer asked its purpose, 2026-11-14). */
.pm-view-btn[hidden] { display: none; }
.pm-listmode .pm-wrap, .pm-listmode .pm-legend { display: none; }
.pm-list { flex: 1 1 auto; padding: var(--space-3); background: var(--surface); }
/* The list's end scrolls clear of the floating buttons, as every page's end does (the map page drops main's room for
   its full-screen map): at 390 px the last pair card's eye lay under the play button (2026-11-16). */
#pm-list { padding-bottom: 240px; }
@media (max-width: 599px) { body.with-nav #pm-list { padding-bottom: calc(324px + env(safe-area-inset-bottom)); } }
.pm-row { display: grid; grid-template-columns: 72px minmax(120px, 1.4fr) 90px minmax(140px, 2fr) 110px 58px; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-bottom: 1px solid var(--outline); color: var(--text); text-decoration: none; background: var(--card); overflow-wrap: anywhere; }
a.pm-row:hover { background: var(--field); }
.pm-head { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); }
/* Each column header sorts (js/app.js pmSort): the label with two triangles, the active direction's in the primary colour. */
.pm-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.pm-sort.on { color: var(--text); }
.pm-tri { display: inline-flex; flex-direction: column; gap: 2px; }
.pm-tri i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .45; }
.pm-tri .up { border-bottom: 5px solid currentColor; }
.pm-tri .down { border-top: 5px solid currentColor; }
.pm-sort.on:not(.desc) .pm-tri .up, .pm-sort.on.desc .pm-tri .down { opacity: 1; color: var(--primary); }
.pm-faces { display: inline-flex; }
.pm-faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); }
.pm-faces img + img, .pm-faces img + span, .pm-faces span + img, .pm-faces span + span { margin-left: -14px; }
/* a pair's player without a photo: the name's first letter in a circle of the photo's size (app.js drawList) */
.pm-faces span { width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--card); background: var(--field); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
/* On a phone the list's "Карта" button goes under the two dropdowns, whose texts stay whole (seen cut at 390 px, 2026-11-15). */
@media (max-width: 599px) { .pm-listmode .pm-line.pm-selects { flex-wrap: wrap; } .pm-listmode .pm-selects select { flex: 1 1 40%; } }
.pm-name { font-weight: 600; }
.pm-place { color: var(--muted); }
.pm-dist { font-weight: 600; white-space: nowrap; }
.pm-meta { display: none; }
/* the eye of a pair's card in the map's list (app.js drawList): the ladder's outlined circle at the row's end */
.pm-eye { margin-left: 0; cursor: pointer; }
.tinder-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--outline); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--text); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--elevation-1); cursor: pointer; }
.tinder-nav .ic { width: 28px; height: 28px; }
.tinder-nav.prev { left: 12px; }
.tinder-nav.next { right: 12px; }
.pm-empty { padding: var(--space-4) var(--space-3); text-align: center; }
@media (max-width: 767px) {
  .pm-head { display: none; }
  #pm-rows { display: flex; flex-direction: column; gap: var(--space-3); }
  .pm-row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "faces name dist eye" "faces meta meta eye" "faces place place eye"; gap: 2px var(--space-3); padding: var(--space-3); border: 1px solid var(--outline); border-radius: var(--radius-card); box-shadow: var(--elevation-1); }
  .pm-faces { grid-area: faces; align-self: start; }
  .pm-faces img, .pm-faces span { width: 56px; height: 56px; }
  .pm-name { grid-area: name; }
  .pm-dist { grid-area: dist; }
  .pm-lv { display: none; }
  .pm-meta { display: block; grid-area: meta; color: var(--muted); }
  .pm-place { grid-area: place; }
  .pm-eye, .pm-eye-room { grid-area: eye; }
}

/* The theme toggle shows the theme it leads to: the sun in the dark theme, the moon in the light one (engineer, 2026-11-10). */
:root:not([data-theme="dark"]) .ti-sun, :root[data-theme="dark"] .ti-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ti-sun { display: inline-block; } :root:not([data-theme]) .ti-moon { display: none; } }

/* Suggestions under a search field (js/app.js mbSuggest; engineer, 2026-11-10: "All fields in app and admin should have
   autocomplete"), the admin's .mb-suggest. */
.mb-suggest { position: absolute; z-index: 3100; background: var(--card); border: 1px solid var(--outline); border-radius: 12px; box-shadow: var(--elevation-3); max-height: 50vh; overflow-y: auto; }
.mb-suggest-item { padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 14px; }
.mb-suggest-item.on, .mb-suggest-item:hover { background: var(--field); }
.mb-suggest-item b { color: var(--primary); }
.mb-suggest-sub { color: var(--muted); font-size: 12px; word-break: break-word; }
.mb-suggest-empty { padding: 12px 14px; color: var(--muted); font-size: 14px; }

/* A player's map tag, TrabajoYa's worker tag (local_user_portal/routes/workers-map.js .worker-tag-*; project_docs/
   MAP_MARKERS_BEHAVIOR.md; engineer, 2026-11-12: "map tags design is different from TrabajoYa and hallucinated ... Exact
   following the origin"): Material's outlined star, 50 px, centred on the point, in the status colour; the text field's
   top left corner on the point, a 1 px border in the same colour, two lines: the class above the name (engineer: "No
   address on map tag. The username and game class, nothing more"). A player of less than 5 days: a yellow star with the
   accent's halo behind it, the field outlined in the accent, a 2 px sideways shake for the first 180 s of the map; from
   day 5 to 10 an orange star (app.js / admin-map.js wtag). *Was: an 18-24 px filled star with a rounded label at its
   right, the avatar and the home place in it.* */
:root { --tag-new: #FFC107; --tag-recent: #FF5722; }
@keyframes wtag-blink { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
.wtag { position: relative; font-family: 'Roboto', sans-serif; cursor: pointer; }
.wtag.blinking { animation: wtag-blink 1s ease-in-out infinite; }
.wtag-icon { position: absolute; left: -25px; top: -25px; width: 50px; height: 50px; }
.wtag-star { position: absolute; left: 0; top: 0; width: 50px; height: 50px; display: block; background: currentColor; -webkit-mask: url('/icons/star-outline.svg') center / contain no-repeat; mask: url('/icons/star-outline.svg') center / contain no-repeat; }
/* the shadow on a wrapper: a mask clips its own element's drop-shadow */
.wtag-star-shade { position: absolute; left: 0; top: 0; width: 50px; height: 50px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.wtag-halo { left: -6px; top: -6px; width: 62px; height: 62px; color: var(--tag-recent); pointer-events: none; }
.wtag-text { position: absolute; left: 0; top: 0; background: var(--card); border: 1px solid transparent; border-radius: 4px; padding: 2px; margin: 0; text-align: left; width: fit-content; white-space: nowrap; }
.wtag.blinking .wtag-text { outline: 1px solid var(--tag-recent); outline-offset: 0; }
.wtag-cat { font-size: 13px; font-weight: 300; color: var(--text); line-height: 13px; margin: 0 0 0.67px 0; padding: 0; display: block; white-space: nowrap; }
.wtag-name { font-size: 12px; font-weight: 400; color: var(--text); line-height: 12px; margin: 0; padding: 0; display: block; white-space: nowrap; }
@media (max-width: 1024px) { .wtag-cat, .wtag-name { font-size: 11px; font-weight: 300; line-height: 11px; } }
/* A pair request's or a pair's tag (app.js duoTag; the engineer, 2026-11-15: "Pair should be shown ... as 2 overlapped by 4%
   avatars"): the two round avatars centred on the point, the second over the first by 4% of an avatar's width, the field
   to their right. A face without a photo shows the name's first letter. */
.wtag.duo { --duo: 36px; }
.wtag.duo .wtag-icon { display: flex; left: calc(var(--duo) * -0.98); top: calc(var(--duo) * -0.5); width: auto; height: var(--duo); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.duo-face { position: relative; flex: none; width: var(--duo); height: var(--duo); box-sizing: border-box; border: 2px solid var(--outline); border-radius: 50%; overflow: hidden; background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.duo-face + .duo-face { margin-left: calc(var(--duo) * -0.04); }
.duo-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.wtag.duo .wtag-text { left: calc(var(--duo) * 0.98 + 4px); top: -15px; }
/* The club chosen on the match page's map (app.js selectClub). *Was: .mb-tag.selected.* */
.wtag.selected .wtag-text { border-color: var(--win) !important; }
.wtag.selected .wtag-star { color: var(--win) !important; }

/* A select's list as a menu inside the page (js/app.js mbMenuSelect; the engineer, 2026-11-14: "Dropdowns are outside the
   page"), the MD3 menu: the card colour, 12 px corners, elevation 2, the chosen line in the primary colour. */
.mb-menu { position: fixed; z-index: 10000; display: flex; flex-direction: column; overflow-y: auto; padding: 4px 0; background: var(--card); color: var(--text); border: 1px solid var(--outline); border-radius: 12px; box-shadow: var(--elevation-2); }
.mb-menu-item { display: block; width: 100%; min-height: 40px; padding: 8px 16px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; white-space: normal; cursor: pointer; }
.mb-menu-item:hover, .mb-menu-item:focus-visible { background: var(--field); outline: none; }
.mb-menu-item.selected { background: var(--primary); color: var(--on-primary); }
.mb-menu-item[disabled] { opacity: 0.5; cursor: default; }

/* "Показать скрытых (N)" over the partners' map and list (views/karta.ejs). */
.pm-hidden { margin: var(--space-2) var(--space-3); }
/* The line from a tag's point to its label when the label was moved off another tag (declutter in the maps' scripts). */
.wtag-lead { position: absolute; left: 0; top: 0; height: 1.5px; transform-origin: 0 50%; pointer-events: none; }
