/* The theme «club» (direction Б, the owner's choice 2026-10-23: «карту Зала как у Railway, деньги в Кассе как у Mercury»;
   design/research/2026-10-23-panel-references.md) in liquid glass (the owner 24.10: «супер получился светлое стекло и
   темное стекло… как ночной режим»). This is the night: a dark blurred picture behind the whole Panel, panels of frosted
   glass over it — translucent, blurred, a bright hairline on the edge, 12 px apart; the day is modes/day.css. The only
   decoration is real data — guests' avatars, games' covers, products' photos. The shell's night: cool blue-black, never
   neutral grey, never #000; its lime is a line and a mark (a free seat's ring, the chosen), a fill only for the one main
   action. Motion only when a state changes, 150–200 ms. A part never names a colour of its own: every colour is a name
   given here (design/theme.test.ts). */

/* Medeo Sans (OFL, DNFDEVS/medeo-font 1.000-rc4; the owner's choice 30.10 for the whole of Weaver, the Panel half a step
   thinner — tokens.css): Latin, Cyrillic with all Kazakh letters and ₸, weights 100–900, an optical size for big numbers,
   digits of one width with tnum; our subset, cut like the shell's (tools/build-font.py), 241 KB (fonts/OFL-Medeo.txt) */
@font-face { font-family: "Medeo Sans"; font-weight: 100 900; font-display: swap; src: url("../fonts/Medeo.woff2") format("woff2"); }

:root, [data-theme="club"] {
  --font: "Medeo Sans", "Segoe UI Variable Text", system-ui, sans-serif;

  /* surfaces: glass over the shell's ink, one step at a time */
  --bg: #07080b;                       /* under the picture, while it loads */
  --app-bg: url("../art/bg-dark.jpg"); /* behind the whole Panel: blurred and dimmed already, our own */
  --print-ink: #000000; --print-paper: #ffffff;   /* a printed report: black on white in any mode */
  /* a PC's screen as the player sees it (the catalog's «Как увидит игрок»): the shell's own night in any mode of the Panel */
  /* a chart's series in a fixed order (time, passes, goods): checked with the dataviz validator on the dark glass (all pass) */
  --viz-1: #789f1c; --viz-2: #4b8be0; --viz-3: #d2692f;
  --screen-bg: #0b0c0f; --screen-panel: #16171c; --screen-ink: #edeef0; --screen-ink-2: #b3b4b9; --screen-ink-dark: #0b0c0f;
  /* the lock's language flags, as the shell draws them (Kazakhstan's blue and sun; Russia's white, blue, red) */
  --screen-flag-kz: #00afca; --screen-flag-sun: #fec50c; --screen-flag-w: #ffffff; --screen-flag-b: #0039a6; --screen-flag-r: #d52b1e;
  --bg-chrome: rgba(18, 20, 26, .52);  /* the menu's panel, the bars, the sheet */
  --bg-panel: rgba(20, 22, 28, .48);   /* a panel */
  --bg-dialog: var(--bg-panel);        /* a dialog, over the scrim */
  --bg-sheet: var(--bg-chrome);        /* a sheet on the right */
  --off-opacity: .5;                   /* what a thing that cannot be picked says beside its reason */
  --bg-well: rgba(8, 9, 12, .42);      /* a sunken place inside a panel (the check, the canvas of the map) */
  --bg-flat-hover: rgba(255, 255, 255, .07);
  --bg-control: rgba(255, 255, 255, .07);   /* a field, a chip, a quiet button, a tile, a card */
  --bg-control-hover: rgba(255, 255, 255, .11);
  /* a control on the picture itself, no glass under it (the top bar's search and round buttons): the night's control; the day
     makes it white glass (modes/day.css) */
  --bg-control-bare: var(--bg-control);
  --bg-control-bare-hover: var(--bg-control-hover);
  --bg-raised: rgba(255, 255, 255, .1);     /* on a control's surface: a count, a thumb, a tag */
  --bg-raised-hover: rgba(255, 255, 255, .14);
  --bg-selected: rgba(255, 255, 255, .16);  /* the chosen chip or segment */
  --bg-pop: rgba(26, 28, 35, .82);
  --bg-pop-hover: rgba(255, 255, 255, .1);
  --bg-tip: rgba(30, 32, 40, .9);
  --bg-tint: rgba(255, 255, 255, .03);
  --bg-drop: #16171c;
  --scrim: rgba(3, 4, 6, .64);
  --scrollbar: #26272e;
  --selection: rgba(221, 245, 106, .26);
  --grid-dot: rgba(255, 255, 255, .055);   /* the map's canvas: a dot every cell (Railway) */

  /* the six quiet tones of a face without a picture (ui/Avatar): identity, not meaning — muted, no violet-blue */
  --tone-1: #23332c; --tone-1-ink: #9fd3b6;
  --tone-2: #372d22; --tone-2-ink: #e0bc8f;
  --tone-3: #2a313d; --tone-3-ink: #a9bbd6;
  --tone-4: #3a2629; --tone-4-ink: #e3a6ae;
  --tone-5: #30331f; --tone-5-ink: #cbd38f;
  --tone-6: #213437; --tone-6-ink: #93cfd4;

  /* lines: few; tone and gaps part the panels */
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .11);

  /* text: the shell's off-white, never above #f5f5f7 */
  --text: #edeef0;
  --text-2: #b3b4b9;
  /* the quiet grey: a field's placeholder, the words under a switch, the time, the menu's items. #8b8c92 was 4,28–4,47:1 at
     its worst place (the top bar's Ctrl / K, «Найти по названию», «Логин, имя или телефон»; design audit 11.11, П2-03, П1-10),
     the owner's choice 11.11 (quiz 13, А): a step lighter, 5,3:1 there; still a step under --text-2 */
  --text-3: #9a9ba1;
  --text-4: #6e7178;   /* the disabled: 3,0:1 at its worst place on the glass (a seat card, #262831; К-3), was #5f6168 2,4:1 (design audit 11.11, П2-09) */

  /* the accent: a fill only for the main action; elsewhere a line or a mark */
  --accent: #ddf56a;
  --accent-text: var(--accent);          /* lime as words and numbers (a light glass makes it darker) */
  --accent-hover: #e8fb8c;
  --on-accent: #0b0c0f;
  /* the edge of a light fill on the glass (the lime main button, the chips): none by night, the day draws one (modes/day.css) */
  --fill-edge: none;
  --main: #edeef0;
  --main-hover: #ffffff;
  --on-main: #0b0c0f;
  --good: #4fd18b;                     /* money in (Mercury: green only for what came in) */
  --good-fill: #4fd18b;                /* a done action's moment (ui/Action, look «b»): the button green, its words on it */
  --on-good: #0b0c0f;
  --bad: #ff6b6b;
  --on-bad: #0b0c0f;
  --warn: #f2b94b;
  --on-warn: #0b0c0f;
  --info: #8db4ff;

  /* the map's seats: free — the lime ring, playing — the owner's burgundy with the guest, off — grey stripes */
  --seat-free: rgba(255, 255, 255, .06);
  --on-seat-free: var(--text);
  --seat-free-ring: var(--accent);
  --seat-busy: #6e1f33;
  --on-seat-busy: #f2f3f5;
  --seat-busy-dot: #c4506f;
  --seat-off: repeating-linear-gradient(135deg, #24252b 0 3px, #1a1b20 3px 7px);
  --on-seat-off: #7b7d84;
  --seat-maint: #23242a;
  --on-seat-maint: var(--text-3);
  --mark-light: var(--text);
  --on-mark-light: #0b0c0f;
  /* the room drawn on the map (2026-10-29): walls and things quieter than any seat, so the PCs stay the point */
  --wall: rgba(255, 255, 255, .26);
  --decor-bg: rgba(255, 255, 255, .035);
  --decor-line: rgba(255, 255, 255, .09);
  --decor-ink: #90939c;   /* the map's things («Гардероб», «Бар»): 4,6:1 at the darkest place under them (#282a2d–#2a2b30: the blur moves it), was #6c6e75 2,8:1 (design audit 11.11, П1-09) */

  /* shape and motion: rounded glass blocks, a little more air in them and in the controls */
  --gap: 12px;                         /* between panels */
  --r-ctl: 12px; --r-panel: 22px; --r-tag: 8px;
  --h-md: 34px; --h-sm: 30px; --h-money: 44px;
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2);
  --shadow-sheet: -24px 0 48px rgba(0, 0, 0, .5);
  --t-fast: .15s;
  --t-state: .2s;
  --ease: cubic-bezier(.2, 0, 0, 1);
  /* the glass: a panel's inner padding, its blur and its edge */
  --font-display: var(--font);         /* big numbers and titles */
  --panel-pad: 18px;
  --panel-blur: blur(28px) saturate(150%);
  --panel-edge: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* The glass's solid look (rule Ф-8; design audit 11.11, П2-20; the owner 11.11, quiz 19 А) for the one who asked the system for
   less transparency (Windows 11: Параметры → Специальные возможности → Визуальные эффекты → Эффекты прозрачности: выкл.) or more
   contrast: no blur, the panels, the menus and the dialogs filled solid with what the glass gives on average over the dark
   picture (the text under the panels #0f1117–#101219, the menu #101524), a 1 px frame for the glint, the edge and the shadow;
   the picture shows only in the gaps. Every part takes its blur from --panel-blur, its fill from these names. Nobody else
   sees a change. The day's — modes/day.css. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root, [data-theme="club"] {
    --panel-blur: none;
    --bg-chrome: #111318; --bg-panel: #131519; --bg-dialog: #15171c; --bg-sheet: #111318;
    --bg-pop: #1b1d24; --bg-tip: #1e2028;
    --bg-control-bare: #1b1d23; --bg-control-bare-hover: #23252c;
    --panel-edge: inset 0 0 0 1px var(--line-2);
  }
}
