/* The hall now (module floor, spec docs/niches/gameclub/02-floor-tech.md): consoles, tables and fields as tiles with a timer
   ring; the free hours and their story; the week's heatmap; the regular teams. Theme tokens only — the neon club glows, the
   court stays crisp. */
.fl-page { display: grid; gap: 16px; }

/* ---------- tabs ---------- */
.fl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.fl-tabs::-webkit-scrollbar { display: none; }
.fl-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.fl-tabs a:hover { color: var(--ink); }
.fl-tabs a.is-active { background: var(--bg); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.fl-tabs a.is-active .ic { color: var(--accent-text); }
.fl-panel { display: grid; gap: 16px; }

/* ---------- the day in numbers ---------- */
.fl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fl-stat { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.fl-stat small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.fl-stat b { font: var(--display-weight) 28px/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.fl-stat span { min-height: 1.2em; font-size: 12.5px; }
.fl-stat__of { margin-left: 6px; font: 500 14px var(--font-body); color: var(--ink-3); }
.fl-stat--main { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg) 70%); }
.fl-stat--tariff { border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); background: color-mix(in srgb, var(--signal) 9%, var(--bg)); }
.fl-stat--tariff b { color: color-mix(in srgb, var(--signal) 70%, var(--ink)); }
.fl-meter { display: block; height: 6px; margin-top: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fl-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
:root[data-theme="neon"] .fl-meter i { background: linear-gradient(90deg, var(--accent), var(--signal)); box-shadow: 0 0 12px var(--signal); }

.fl-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--bad-soft); color: var(--bad); font-weight: 600; font-size: 14px; animation: fl-blink 1.6s ease-in-out infinite; }
@keyframes fl-blink { 50% { opacity: .72; } }

/* ---------- the tiles ---------- */
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.fl-tile {
  --fl-c: var(--ink-3);
  position: relative; display: grid; gap: 12px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: var(--bg); cursor: default; transition: border-color .2s, box-shadow .2s, transform .15s;
}
.fl-tile[tabindex="0"] { cursor: pointer; }
.fl-tile[tabindex="0"]:hover { border-color: color-mix(in srgb, var(--fl-c) 45%, var(--line)); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.fl-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: calc(var(--radius) + 4px) 0 0 calc(var(--radius) + 4px); background: var(--fl-c); opacity: .9; }
.fl-tile.is-free { --fl-c: var(--ok); }
.fl-tile.is-busy { --fl-c: var(--accent); }
.fl-tile.is-soon { --fl-c: var(--warn); }
.fl-tile.is-over { --fl-c: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 14%, transparent); }
.fl-tile.is-open { --fl-c: var(--signal); }
.fl-tile.is-off { --fl-c: var(--line-strong); opacity: .72; }
:root[data-theme="neon"] .fl-tile.is-busy { --fl-c: color-mix(in srgb, var(--accent) 55%, #ffffff); }
:root[data-theme="neon"] .fl-tile:not(.is-off) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--fl-c) 22%, transparent), 0 18px 40px -26px var(--fl-c); }
:root[data-theme="court"] .fl-tile.is-busy { --fl-c: var(--accent); }

.fl-tile__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fl-tile__dot { width: 10px; height: 10px; flex: none; border-radius: 99px; background: var(--c, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
.fl-tile__name { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.fl-tile__name b { font: 650 16px/1.2 var(--font-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-tile__name small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-badge { flex: none; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; background: color-mix(in srgb, var(--fl-c, var(--ink-3)) 14%, var(--bg)); color: color-mix(in srgb, var(--fl-c, var(--ink-3)) 80%, var(--ink)); white-space: nowrap; }
.fl-tile.is-over .fl-badge { background: var(--bad); color: #fff; animation: fl-blink 1s ease-in-out infinite; }

.fl-tile__body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.fl-ring { position: relative; width: 112px; height: 112px; }
.fl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fl-ring__track { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.fl-ring__arc { fill: none; stroke: var(--fl-c); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s linear, stroke .3s; }
.fl-tile.is-free .fl-ring__arc { stroke-dasharray: 2 4; stroke-linecap: butt; opacity: .55; }
.fl-tile.is-off .fl-ring__arc { stroke-dashoffset: 100 !important; }
.fl-tile.is-over .fl-ring__arc { animation: fl-blink 1s ease-in-out infinite; }
.fl-tile.is-open .fl-ring__arc { filter: drop-shadow(0 0 6px var(--signal)); }
:root[data-theme="neon"] .fl-tile:not(.is-free):not(.is-off) .fl-ring__arc { filter: drop-shadow(0 0 7px var(--fl-c)); }
.fl-ring__text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 1px; }
.fl-ring__text b { font: 700 21px/1 var(--font-display); letter-spacing: -.02em; }
.fl-ring__text small { max-width: 84px; font-size: 11px; line-height: 1.2; color: var(--ink-2); }
.fl-tile.is-over .fl-ring__text b { color: var(--bad); }
.fl-tile.is-open .fl-ring__text small { color: color-mix(in srgb, var(--signal) 75%, var(--ink)); font-weight: 700; font-size: 12.5px; }

.fl-tile__who { display: grid; gap: 7px; align-content: center; min-width: 0; }
.fl-tile__client { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-tile.is-free .fl-tile__client, .fl-tile.is-off .fl-tile__client { color: var(--ink-3); font-weight: 500; }
.fl-tile__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.fl-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 8px; border-radius: 99px; background: var(--surface); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-tile__bill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.fl-tile__bill.is-due { color: color-mix(in srgb, var(--warn) 85%, var(--ink)); font-weight: 600; }
.fl-tile__next { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.fl-tile__next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-tile__next.is-wait { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 85%, var(--ink)); }
.fl-tile__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-tile__acts .btn { flex: 1 1 auto; }

/* ---------- the start sheet ---------- */
.fl-time-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fl-time { display: grid; gap: 2px; padding: 10px 8px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); text-align: center; transition: border-color .15s, background .15s; }
.fl-time b { font: 650 15px var(--font-display); }
.fl-time small { font-size: 12px; color: var(--ink-2); }
.fl-time[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.fl-time[aria-pressed="true"] b { color: var(--accent-text); }
.fl-time:disabled { opacity: .4; cursor: not-allowed; }
.fl-players { width: 100%; }
.fl-game-chips { flex-wrap: wrap; overflow: visible; }
.fl-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); }
.fl-sum b { font: 700 22px var(--font-display); }
.fl-warn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 85%, var(--ink)); font-size: 13px; }
.fl-method { width: 100%; }
.fl-paynow { min-height: 32px; }

/* ---------- a session ---------- */
.fl-ses { display: grid; gap: 16px; }
.fl-ses__clock { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: var(--radius); background: var(--surface); }
.fl-ses__clock b { font: 700 40px/1 var(--font-display); letter-spacing: -.03em; }
.fl-ses__clock small { color: var(--ink-2); font-size: 13px; }
.fl-ses__row { display: grid; gap: 8px; }
.fl-ses__btns { display: flex; gap: 8px; }
.fl-ses__btns .btn { flex: 1; }
.fl-bar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-bar-chip { display: inline-flex; gap: 6px; align-items: baseline; }
.fl-bar-chip small { color: var(--ink-3); font-size: 11.5px; }
.fl-bar-chip.is-added { animation: fl-pop .45s var(--ease); }
@keyframes fl-pop { 40% { transform: scale(1.08); background: var(--accent-soft); } }
.fl-h2 { font: 650 17px/1.25 var(--font-display); letter-spacing: -.01em; }
.fl-h3 { font: 650 14px var(--font-display); }
.fl-bill { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.fl-bill__lines { display: grid; gap: 4px; }
.fl-bill__line { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; font-size: 14px; }
.fl-bill__line.is-paid { color: var(--ink-3); }
.fl-bill__line.is-paid .fl-bill__name::after { content: " ✓"; color: var(--ok); }
.fl-bill__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-bill__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-weight: 600; }
.fl-bill__total b { font: 700 22px var(--font-display); }
.fl-ses__foot { flex-wrap: wrap; }

/* ---------- the money ---------- */
.fl-pay-total { display: grid; gap: 2px; justify-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.fl-pay-total small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.fl-pay-total b { font: 700 36px/1.1 var(--font-display); letter-spacing: -.02em; }
.fl-pay-total span { font-size: 12.5px; }
.fl-pay-mode { width: 100%; }
.fl-split { display: grid; gap: 12px; }
.fl-split__head { display: flex; align-items: center; justify-content: space-between; }
.fl-stepper { display: flex; align-items: center; gap: 6px; }
.fl-stepper b { min-width: 32px; text-align: center; font: 700 20px var(--font-display); }
.fl-stepper .icon-btn { border: 1px solid var(--line-strong); font-size: 20px; font-weight: 600; }
.fl-split__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fl-player { position: relative; display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg); transition: transform .12s, background .2s, border-color .2s; }
.fl-player b { font: 700 18px var(--font-display); }
.fl-player small { font-size: 11px; color: var(--ink-2); }
.fl-player:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.fl-player.is-paid { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.fl-player.is-paid::after { content: "✓"; position: absolute; top: -7px; right: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 800; }
.fl-player.is-paid b { color: var(--ok); }
.fl-split__progress { display: grid; gap: 4px; }
.fl-split__progress .fl-meter i { background: var(--ok); }

/* ---------- the free hours ---------- */
.fl-free-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fl-days { flex: 1 1 320px; }
.fl-free-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-free-acts .is-disabled { pointer-events: none; opacity: .5; }
.fl-hint { font-size: 13px; margin-top: -6px; }
.fl-free-list { display: grid; gap: 10px; }
.fl-free-row { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.fl-free-row header { display: flex; align-items: center; gap: 10px; }
.fl-free-row header b { font: 650 15px var(--font-display); }
.fl-windows { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-window { display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 80%, var(--ink)); text-align: left; transition: transform .12s, box-shadow .15s; }
.fl-window b { font: 700 15px var(--font-display); letter-spacing: -.01em; }
.fl-window small { font-size: 11.5px; opacity: .85; }
.fl-window:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 35%, transparent); }
.fl-window.is-tariff { background: color-mix(in srgb, var(--signal) 16%, var(--bg)); color: color-mix(in srgb, var(--signal) 55%, var(--ink)); }

.sheet--story { max-width: 520px; }
.fl-story { display: grid; gap: 14px; justify-items: center; }
.fl-story__phone { width: min(300px, 70vw); aspect-ratio: 9 / 16; padding: 8px; border-radius: 34px; background: #0f0f10; box-shadow: var(--shadow-2), 0 30px 60px -30px rgba(0, 0, 0, .55); }
.fl-story__phone img { width: 100%; height: 100%; border-radius: 27px; object-fit: cover; background: var(--surface); }
.fl-story-style { width: 100%; }

/* ---------- the heatmap ---------- */
.fl-heat-card { padding: 16px; display: grid; gap: 14px; }
.fl-heat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.fl-heat-head p { font-size: 13px; margin-top: 2px; }
.fl-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.fl-legend__bar { width: 110px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--fl-heat) 6%, var(--surface)), var(--fl-heat)); }
.fl-heat-scroll { overflow-x: auto; scrollbar-width: thin; }
.fl-page { --fl-heat: var(--accent); }
:root[data-theme="neon"] .fl-page { --fl-heat: var(--signal); }
.fl-heat { display: grid; grid-template-columns: 34px repeat(var(--cols, 16), minmax(18px, 1fr)); gap: 3px; min-width: 560px; }
.fl-heat__hour { font-size: 10.5px; color: var(--ink-3); text-align: left; padding-bottom: 2px; font-variant-numeric: tabular-nums; }
.fl-heat__day { font-size: 12px; font-weight: 600; color: var(--ink-2); align-self: center; }
.fl-heat__cell { height: 26px; border-radius: 5px; background: color-mix(in srgb, var(--fl-heat) calc(var(--v, 0) * 1%), var(--surface)); transition: transform .12s; }
.fl-heat__cell:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fl-heat); position: relative; z-index: 1; }
.fl-heat__cell.is-dead { outline: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent); outline-offset: -2px; }
.fl-heat__cell.is-closed { background: repeating-linear-gradient(135deg, var(--hatch-1) 0 4px, var(--hatch-2) 4px 8px); }
.fl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.fl-insight { padding: 16px; display: grid; gap: 12px; align-content: start; }
.fl-dead { display: grid; gap: 8px; }
.fl-dead__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.fl-dead__load { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fl-dead__load i { display: block; height: 100%; border-radius: inherit; background: var(--warn); }
.fl-dead__row small { color: var(--ink-2); font-size: 12px; }
.fl-tariffs { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); justify-items: start; }
.fl-tariff-list { display: grid; gap: 6px; width: 100%; }
.fl-tariff { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); font-size: 13.5px; }
.fl-tariff span { color: var(--ink-2); }
.fl-tariff__pct { font-weight: 700; color: color-mix(in srgb, var(--signal) 65%, var(--ink)) !important; }
.fl-games { display: grid; gap: 10px; counter-reset: game; }
.fl-game { display: grid; grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.fl-game__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-game__bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fl-game__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--fl-heat)); }
.fl-game small { color: var(--ink-2); font-size: 12px; }

/* ---------- the tariffs' editor ---------- */
.fl-tar-rows { display: grid; gap: 10px; }
.fl-tar-row { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.fl-tar-row__top { display: flex; gap: 8px; }
.fl-tar-row__top .input { flex: 1; }
.fl-tar-days { flex-wrap: wrap; overflow: visible; }
.fl-tar-row__times { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 8px; }

/* ---------- the teams ---------- */
.fl-team-filter { flex-wrap: wrap; overflow: visible; }
.fl-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fl-team { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--bg); --fl-c: var(--ink-3); }
.fl-team.is-regular { --fl-c: var(--ok); }
.fl-team.is-active { --fl-c: var(--accent); }
.fl-team.is-lost { --fl-c: var(--bad); }
.fl-team__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fl-team__badge { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--fl-c) 16%, var(--bg)); color: color-mix(in srgb, var(--fl-c) 80%, var(--ink)); font: 800 16px var(--font-display); }
.fl-team__name { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.fl-team__name b { font: 650 16px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-team__name small { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-team__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fl-team__facts div { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); }
.fl-team__facts dt { font-size: 11.5px; color: var(--ink-3); }
.fl-team__facts dd { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-team__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-team__foot > span { flex: 1; font-size: 12.5px; }

@media (max-width: 760px) {
  .fl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-stat b { font-size: 24px; }
  .fl-grid { grid-template-columns: 1fr; }
  .fl-tile__body { grid-template-columns: 96px minmax(0, 1fr); }
  .fl-ring { width: 96px; height: 96px; }
  .fl-ring__text b { font-size: 18px; }
  .fl-split__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fl-dead__row { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .fl-free-acts { width: 100%; }
  .fl-free-acts > * { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-alert, .fl-tile.is-over .fl-badge, .fl-tile.is-over .fl-ring__arc { animation: none; }
  .fl-ring__arc { transition: none; }
}

/* ---------- a field or a court: the ground from above, the scoreboard over it ---------- */
.fl-tile--pitch { gap: 10px; }
.fl-pitch { position: relative; aspect-ratio: 200 / 112; border-radius: 12px; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 18px -12px rgba(0, 0, 0, .45); }
.fl-pitch__ground, .fl-ground { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter .4s; }
.fl-ground .g-lines, .fl-ground .g-glass { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.fl-ground .g-dot { fill: rgba(255, 255, 255, .9); }
.fl-ground--football .g-base { fill: #2f8f46; }
.fl-ground--football .g-stripes rect { fill: rgba(255, 255, 255, .07); }
.fl-ground--football .g-goals rect { fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fl-ground--padel .g-base { fill: #0f3f73; }
.fl-ground--padel .g-court { fill: #1f6fbf; }
.fl-ground--padel .g-glass { stroke: rgba(186, 230, 253, .85); stroke-width: 3; }
.fl-ground--tennis .g-base { fill: #2c7a4b; }
.fl-ground--tennis .g-court { fill: #2f5fbd; }
.fl-ground .g-net { stroke: #f8fafc; stroke-width: 2.4; stroke-dasharray: 2 1.5; vector-effect: non-scaling-stroke; }
/* free: the ground waits, quieter; booked and not come yet: waits too; time up: it glows red */
.fl-tile--pitch.is-free .fl-ground, .fl-tile--pitch.is-off .fl-ground { filter: saturate(.55) brightness(1.08); }
.fl-tile--pitch.is-off .fl-ground { filter: grayscale(.8) brightness(.9); }
.fl-tile--pitch.is-over .fl-pitch::after { content: ""; position: absolute; inset: 0; background: rgba(220, 38, 38, .32); animation: fl-blink 1s ease-in-out infinite; }
.fl-pitch__team { position: absolute; z-index: 1; top: 8px; left: 50%; transform: translateX(-50%); max-width: 86%; padding: 3px 10px; border-radius: 99px;
  background: rgba(10, 20, 14, .55); backdrop-filter: blur(4px); color: #fff; font: 650 12.5px/1.3 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-pitch__team:empty { display: none; }
.fl-pitch__board { position: absolute; z-index: 1; left: 50%; top: 54%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1px; min-width: 104px;
  padding: 6px 12px 7px; border-radius: 10px; background: rgba(8, 12, 10, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 22px -12px rgba(0, 0, 0, .8); color: #fff; }
.fl-pitch__board b { font: 700 22px/1.05 var(--font-mono); letter-spacing: .02em; color: #fef08a; text-shadow: 0 0 10px rgba(254, 240, 138, .45); }
.fl-pitch__board small { font-size: 10.5px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.fl-tile--pitch.is-free .fl-pitch__board b { font: 700 15px/1.2 var(--font-display); color: #bbf7d0; text-shadow: none; letter-spacing: 0; }
.fl-tile--pitch.is-over .fl-pitch__board b { color: #fecaca; text-shadow: 0 0 12px rgba(248, 113, 113, .6); }
.fl-tile--pitch.is-soon .fl-pitch__board b { color: #fde68a; }
.fl-tile--pitch.is-off .fl-pitch__board b { color: rgba(255, 255, 255, .7); text-shadow: none; }
.fl-pitch__time { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, .35); }
.fl-pitch__time i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a3e635, #fef08a); transition: width 1s linear; }
.fl-tile--pitch.is-over .fl-pitch__time i { background: #ef4444; }
.fl-tile__who--pitch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fl-tile__who--pitch .fl-tile__meta:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .fl-tile--pitch.is-over .fl-pitch::after { animation: none; } }

/* ---------- a computer club: the map of the hall — seats by zone ---------- */
.fl-grid.fl-map { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1100px) { .fl-grid.fl-map { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } .fl-map .fl-zone:first-child { grid-row: span 2; } }
.fl-zone { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--bg); }
.fl-zone__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "spec count"; align-items: center; gap: 3px 10px; }
.fl-zone__name { grid-area: name; font: 700 17px var(--font-display); letter-spacing: -.01em; }
.fl-zone__spec { grid-area: spec; min-width: 0; font-size: 12px; color: var(--ink-3); }
.fl-zone__price { grid-area: price; justify-self: end; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fl-zone__count { grid-area: count; justify-self: end; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.fl-zone__seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 10px; }
/* a seat is a computer: its monitor — the bezel with its chin and power light, the screen lit while it is played on (the
   game's hills on it, its glare and lines) — on its stand. The monitor is dark in every theme: its words are light. */
.fl-seat { --c: var(--ink-3); --scr: #05080b; --bezel: #10151b; position: relative; display: grid; justify-items: center; min-width: 0; padding: 0; border: 0; background: none;
  color: #eef4f1; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fl-seat.is-busy { --c: var(--accent); }
.fl-seat.is-soon { --c: var(--warn); }
.fl-seat.is-open { --c: #38bdf8; }
.fl-seat.is-over { --c: var(--bad); }
.fl-seat__mon { position: relative; width: 100%; min-width: 0; padding: 3px 3px 8px; border-radius: 8px; background: linear-gradient(180deg, #1b222b, var(--bezel) 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 16px -10px rgba(0, 0, 0, .8); transition: transform .15s, box-shadow .25s; }
.fl-seat__mon::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 7px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: #2b3540; transition: background .25s; }
.fl-seat__screen { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 0; aspect-ratio: 3 / 2; min-width: 0; padding: 6px 7px 9px; overflow: hidden; border-radius: 5px; background: var(--scr); }
.fl-seat__screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .07) 0 24%, transparent 24.5%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); }
.fl-seat__stand { position: relative; width: 46%; height: 12px; }
.fl-seat__stand::before { content: ""; position: absolute; left: 50%; top: 0; width: 13px; height: 9px; transform: translateX(-50%); background: linear-gradient(90deg, #0b0f14, #222b35 50%, #0b0f14); clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.fl-seat__stand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 2px 2px; background: #1b232c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(0, 0, 0, .5); }
/* lit: the colour of its state on the screen, the game's hills, the light on the desk, the power light on */
.fl-seat:is(.is-busy, .is-soon, .is-open, .is-over) .fl-seat__screen { background: radial-gradient(120% 90% at 18% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 64%),
  linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--scr)), var(--scr) 88%); }
.fl-seat:is(.is-busy, .is-soon, .is-open, .is-over) .fl-seat__screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: var(--c); opacity: .15;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V27l13-9 9 6 15-14 13 10 11-7 15 12 12-8 13 9 19-11v25z'/%3E%3C/svg%3E") 0 100% / 170% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V27l13-9 9 6 15-14 13 10 11-7 15 12 12-8 13 9 19-11v25z'/%3E%3C/svg%3E") 0 100% / 170% 100% no-repeat; }
.fl-seat:nth-child(3n+2) .fl-seat__screen::after { -webkit-mask-position: 55% 100%; mask-position: 55% 100%; }
.fl-seat:nth-child(3n) .fl-seat__screen::after { -webkit-mask-position: 100% 100%; mask-position: 100% 100%; }
.fl-seat:is(.is-busy, .is-soon, .is-open, .is-over) .fl-seat__mon { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent), 0 14px 26px -14px var(--c); }
.fl-seat:is(.is-busy, .is-soon, .is-open, .is-over) .fl-seat__mon::after { background: var(--c); box-shadow: 0 0 6px var(--c); }
.fl-seat.is-over .fl-seat__mon { animation: fl-seat-over 1s ease-in-out infinite; }
@keyframes fl-seat-over { 50% { box-shadow: 0 0 0 2px var(--bad), 0 0 26px -2px var(--bad); } }
.fl-seat:hover .fl-seat__mon { transform: translateY(-2px); }
.fl-seat:focus-visible { outline: none; }
.fl-seat:focus-visible .fl-seat__mon { outline: 2px solid var(--accent); outline-offset: 2px; }
/* free: the screen off; touched — it wakes */
.fl-seat.is-free:hover .fl-seat__screen { background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--scr); }
.fl-seat.is-free:hover .fl-seat__mon::after { background: var(--accent); }
/* out of order: no signal, the power light red */
.fl-seat.is-down .fl-seat__screen { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 6px, rgba(255, 255, 255, .055) 6px 12px), var(--scr); }
.fl-seat.is-down .fl-seat__mon::after { background: var(--bad); opacity: .85; }
.fl-seat.is-off { opacity: .5; cursor: default; }
.fl-seat__top, .fl-seat__time, .fl-seat__who, .fl-seat__rigs { position: relative; z-index: 1; }
.fl-seat__top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.fl-seat__no { font: 800 17px/1 var(--font-mono); letter-spacing: -.02em; color: color-mix(in srgb, var(--c) 72%, #ffffff); }
.fl-seat:is(.is-free, .is-down, .is-off) .fl-seat__no { color: #64717e; }
.fl-seat__icon { color: var(--c); opacity: .95; }
.fl-seat:is(.is-free, .is-down) .fl-seat__icon { color: #64717e; opacity: .6; }
.fl-seat__time { align-self: end; font: 700 13.5px/1.1 var(--font-mono); color: #f3f8f6; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent); }
.fl-seat:is(.is-free, .is-down, .is-off) .fl-seat__time { font: 600 11px/1.2 var(--font-body); color: #8693a0; text-shadow: none; }
.fl-seat.is-free:hover .fl-seat__time { color: color-mix(in srgb, var(--accent) 65%, #ffffff); }
.fl-seat.is-over .fl-seat__time { color: #fecaca; }
.fl-seat__who { overflow: hidden; min-height: 1.2em; font-size: 10.5px; color: rgba(226, 236, 232, .72); text-overflow: ellipsis; white-space: nowrap; }
.fl-seat__bar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.fl-seat__bar i { display: block; height: 100%; width: 0; background: var(--c); transition: width 1s linear; box-shadow: 0 0 8px var(--c); }
/* the Bootcamp room: one place for a team — its computers in a row on its desk */
.fl-zone.is-room .fl-zone__seats { grid-template-columns: 1fr; }
.fl-seat.is-wide { justify-items: stretch; }
.fl-seat.is-wide .fl-seat__stand { display: none; }
.fl-seat.is-wide .fl-seat__mon { padding: 3px; border-radius: 10px; }
.fl-seat.is-wide .fl-seat__mon::after { display: none; }
.fl-seat.is-wide .fl-seat__screen { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 4px 10px; aspect-ratio: auto; min-height: 0; padding: 12px 14px 12px; border-radius: 8px; }
.fl-seat.is-wide .fl-seat__top { grid-column: 1 / -1; }
.fl-seat.is-wide .fl-seat__no { font: 750 17px var(--font-display); }
.fl-seat.is-wide .fl-seat__rigs { grid-column: 1 / -1; }
.fl-seat.is-wide .fl-seat__time { grid-row: 3; grid-column: 2; font-size: 20px; }
.fl-seat.is-wide .fl-seat__who { grid-row: 3; grid-column: 1; align-self: end; font-size: 13px; }
.fl-seat__rigs { display: flex; flex-wrap: wrap; align-items: start; gap: 6px 10px; padding: 6px 0 12px; }
.fl-seat__rigs i { position: relative; width: 30px; height: 21px; border: 2px solid #26303b; border-bottom-width: 4px; border-radius: 3px; background: var(--scr); }
.fl-seat__rigs i::before { content: ""; position: absolute; left: 50%; top: calc(100% + 4px); width: 4px; height: 4px; transform: translateX(-50%); background: #26303b; }
.fl-seat__rigs i::after { content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 14px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: #26303b; }
.fl-seat:is(.is-busy, .is-soon, .is-open, .is-over) .fl-seat__rigs i { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, var(--scr)), color-mix(in srgb, var(--c) 20%, var(--scr)));
  box-shadow: 0 0 10px -2px var(--c); }
/* what the colours say */
.fl-legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.fl-legend-row[hidden] { display: none; }
.fl-legend-row li { display: inline-flex; align-items: center; gap: 6px; }
.fl-legend-row li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.fl-legend-row .is-free::before { background: #05080b; box-shadow: 0 0 0 1.5px #3a4552; } .fl-legend-row .is-busy { --c: var(--accent); } .fl-legend-row .is-soon { --c: var(--warn); }
.fl-legend-row .is-over { --c: var(--bad); } .fl-legend-row .is-open { --c: #38bdf8; } .fl-legend-row .is-down { --c: var(--ink-3); }
/* the player's balance in the start and pay sheets */
.fl-wallet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.fl-wallet[hidden] { display: none; }
.fl-wallet__sum { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.fl-wallet__sum .ic { color: var(--accent-text); }
.fl-wallet--pay { justify-content: flex-start; }
@media (max-width: 760px) { .fl-zone__seats { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px 6px; } .fl-seat__screen { aspect-ratio: auto; min-height: 56px; padding: 5px 6px 7px; }
  .fl-seat__no { font-size: 15px; } .fl-seat__time { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .fl-seat.is-over .fl-seat__mon { animation: none; } .fl-seat__mon { transition: none; } }

/* ---------- a player's balance on the client's card (module wallet) ---------- */
.wallet-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg) 70%); }
.wallet-card__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.wallet-card__main { display: flex; flex-direction: column; min-width: 0; }
.wallet-card__value { font-size: 28px; font-weight: 750; line-height: 1.15; }
.wallet-ledger { margin-top: 8px; }
.wallet-row { align-items: center; }
.wallet-row .ledger__main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wallet-row .ledger__main b { font-weight: 600; }
.wallet-row.is-in .ledger__sum { color: var(--ok); }
.wallet-row.is-void { opacity: .55; }
.wallet-row.is-void .ledger__sum { text-decoration: line-through; }
.wallet-amounts { flex-wrap: wrap; overflow: visible; }
.wallet-bonus { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.wallet-bonus[hidden] { display: none; }
