/* Vzhled vychází z appky Yellow Fish Pool (sklo, skvrny, rybky, žlutá). Odlišnost: místo modré klubu
   má rezervace jako druhou barvu zelenou kulečníkového sukna. */
:root {
  --yellow: #ffd43b;
  --yellow-2: #f5b700;
  --text: #f5f7fa;
  --muted: rgba(235, 240, 248, .62);
  --faint: rgba(235, 240, 248, .38);
  --stroke: rgba(255, 255, 255, .16);
  --stroke-hi: rgba(255, 255, 255, .34);
  --green: #34d399;
  --red: #ff6b6b;
  --blue: #3aa0ff;
  --felt: #12b981;
  --felt-soft: rgba(18, 185, 129, .16);
  --felt-line: rgba(70, 215, 160, .34);
  --felt-ink: #8ff0c8;
  --r: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--text); background: #07090d; -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
  padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--yellow); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- pozadí: rozmazané skvrny a rybky pod sklem ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #0b1d1a 0%, #060a10 70%); }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 26s ease-in-out infinite alternate; }
.bg .b1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -22vmax; background: radial-gradient(circle, #f5b700 0%, transparent 65%); }
.bg .b2 { width: 58vmax; height: 58vmax; right: -22vmax; top: 16vh; background: radial-gradient(circle, #0e9f6e 0%, transparent 65%); opacity: .45; animation-delay: -8s; }
.bg .b3 { width: 52vmax; height: 52vmax; left: 6vw; bottom: -30vmax; background: radial-gradient(circle, #0b4fb3 0%, transparent 65%); opacity: .4; animation-delay: -15s; }
.bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url(/fish-pattern.svg); background-size: 240px 168px;
  background-position: center top; opacity: .05;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 20%, #000 35%, transparent 90%); mask-image: radial-gradient(ellipse 120% 90% at 50% 20%, #000 35%, transparent 90%); }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; } }

/* ---------- sklo ---------- */
.glass, .card, dialog {
  background: linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 45%, rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 var(--stroke-hi), inset 0 -1px 0 rgba(255,255,255,.04), 0 10px 40px rgba(0,0,0,.35);
  border-radius: var(--r);
}

.topbar { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 20; max-width: 836px;
  margin: calc(8px + env(safe-area-inset-top)) auto 0; padding: 8px 10px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 999px; background: linear-gradient(155deg, rgba(18,185,129,.2), rgba(255,255,255,.04) 55%, rgba(18,185,129,.08)); border-color: var(--felt-line); }
body.wide .topbar { max-width: 1176px; }
@media (max-width: 860px) { .topbar { margin-left: 12px; margin-right: 12px; } }
body.wide .topbar { margin-left: max(12px, calc(50% - 588px)); margin-right: max(12px, calc(50% - 588px)); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.brand img { border-radius: 10px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand b { font-size: 17px; letter-spacing: -.02em; color: var(--yellow); }
.brand small { font-size: 11.5px; color: var(--felt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-chip { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--felt-soft); border: 1px solid var(--felt-line);
  color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; }

.wrap { max-width: 860px; margin: 0 auto; padding: 16px 16px 60px; }
.wrap.wide { max-width: 1200px; }
h1 { font-size: 30px; letter-spacing: -.03em; margin: 10px 4px 4px; line-height: 1.1; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--felt-ink); font-weight: 600; margin: 0 2px 12px; }
.sub { color: var(--muted); margin: 0 4px 16px; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { padding: 16px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- tlačítka ---------- */
.btn { appearance: none; border: 1px solid var(--felt-line); background: linear-gradient(180deg, rgba(18,185,129,.16), rgba(18,185,129,.06));
  color: var(--text); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s, background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, #ffe066, #f5b700); color: #1a1405; border-color: rgba(255,240,180,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 24px rgba(245,183,0,.35); }
.btn.danger { color: var(--red); border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }

/* ---------- volby: hra, den, délka (pilulky jako v Pool app) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.chip { flex: none; min-width: 64px; text-align: center; border: 1px solid var(--stroke); background: rgba(255,255,255,.06);
  border-radius: 16px; padding: 8px 12px; cursor: pointer; transition: all .15s; }
.chip b { display: block; font-size: 15px; }
.chip span { font-size: 12px; color: var(--muted); }
.chip.on { background: linear-gradient(180deg, rgba(255,224,102,.95), rgba(245,183,0,.9)); border-color: rgba(255,240,180,.8); color: #1a1405;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 16px rgba(245,183,0,.3); }
.chip.on span { color: rgba(26,20,5,.7); }
.chip:disabled { opacity: .3; cursor: not-allowed; }

/* ---------- časy a stoly ---------- */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { border: 1px solid var(--stroke); background: rgba(0,0,0,.22); border-radius: 14px; padding: 9px 4px; text-align: center; cursor: pointer; transition: all .15s; }
.time b { display: block; font-variant-numeric: tabular-nums; }
.time span { font-size: 12px; color: var(--felt-ink); }
.time.on { background: linear-gradient(180deg, rgba(255,224,102,.95), rgba(245,183,0,.9)); color: #1a1405; border-color: rgba(255,240,180,.8); box-shadow: 0 4px 16px rgba(245,183,0,.3); }
.time.on span { color: rgba(26,20,5,.75); }
.time:disabled { opacity: .3; cursor: not-allowed; }
.time:disabled b { text-decoration: line-through; }
.time:disabled span { color: var(--muted); }
.tables { display: grid; gap: 8px; }
.tbl { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--stroke); background: rgba(0,0,0,.22);
  border-radius: 16px; padding: 12px 14px; cursor: pointer; text-align: left; transition: all .15s; }
.tbl.on { border-color: rgba(255,212,59,.75); background: rgba(255,212,59,.1); box-shadow: 0 0 0 1px rgba(255,212,59,.45) inset; }

/* ---------- formuláře ---------- */
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 4px 6px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(0,0,0,.25); outline: none; font-size: 16px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--felt); }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(18,185,129,.8); box-shadow: 0 0 0 3px rgba(18,185,129,.22); }
.btn:focus-visible, .chip:focus-visible, .time:focus-visible, .tbl:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: #ffc2c2; padding: 10px 14px; border-radius: 14px; margin: 10px 0; }
.okbox { border-color: rgba(52,211,153,.45); }
.okbox h2 { color: var(--green); }
.summary { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 6px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 18px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid var(--stroke); color: var(--muted); white-space: nowrap; }
.badge.ok { background: rgba(52,211,153,.14); color: var(--green); border-color: rgba(52,211,153,.35); }
.badge.bad { background: rgba(255,107,107,.16); color: #ff9a9a; border-color: rgba(255,107,107,.4); }
.badge.y { background: rgba(255,212,59,.16); color: var(--yellow); border-color: rgba(255,212,59,.4); }
.badge.b { background: rgba(58,160,255,.16); color: #8cc8ff; border-color: rgba(58,160,255,.4); }
footer { margin: 24px 4px 0; color: var(--muted); font-size: 13px; }
.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 100; padding: 12px 18px; border-radius: 16px;
  font-size: 15px; font-weight: 500; background: rgba(30,34,42,.85); border: 1px solid var(--stroke); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

/* ---------- administrace ---------- */
.tabs { display: flex; padding: 3px; gap: 3px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); overflow-x: auto; margin-bottom: 14px; }
.tabs button { flex: 1 0 auto; border: 0; background: transparent; box-shadow: none; padding: 9px 12px; border-radius: 11px; font-size: 14px; color: var(--muted); }
.tabs button.primary { background: linear-gradient(180deg, rgba(18,185,129,.55), rgba(14,150,105,.4)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 12px rgba(18,185,129,.3); border: 0; }
.daynav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.daynav input { width: auto; padding: 8px 12px; }
.board-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(0,0,0,.25); }
.board { display: grid; position: relative; min-width: 100%; }
.board .th { position: sticky; top: 0; background: rgba(14,22,24,.95); padding: 8px 6px; font-weight: 700; font-size: 14px; text-align: center; border-bottom: 1px solid var(--stroke); z-index: 2; }
.board .tm { font-size: 12px; color: var(--muted); padding: 2px 6px; border-top: 1px solid rgba(255,255,255,.07); position: sticky; left: 0; background: rgba(10,16,18,.95); z-index: 1; font-variant-numeric: tabular-nums; }
.board .cell { border-top: 1px solid rgba(255,255,255,.07); border-left: 1px solid rgba(255,255,255,.07); min-height: 26px; cursor: pointer; }
.board .cell:hover { background: var(--felt-soft); }
.board .cell.past { background: rgba(0,0,0,.3); }
.board .res { margin: 2px; border-radius: 10px; padding: 4px 7px; font-size: 13px; line-height: 1.25; overflow: hidden; cursor: pointer; z-index: 1;
  background: rgba(255,212,59,.18); border: 1px solid rgba(255,212,59,.6); }
.board .res.web { background: rgba(18,185,129,.2); border-color: rgba(70,215,160,.65); }
.board .res.block { background: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px); border-color: rgba(255,255,255,.3); }
.board .res.arrived { opacity: .7; border-style: dashed; }
.board .res.noshow { background: rgba(255,107,107,.15); border-color: rgba(255,107,107,.6); }
.list .item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; border-top: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.list .item:first-child { border-top: 0; }
.list .item.cancelled { opacity: .5; text-decoration: line-through; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; border: 1px solid; }
dialog { color: var(--text); padding: 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  background: linear-gradient(155deg, rgba(40,48,52,.92), rgba(18,24,26,.94)); }
dialog::backdrop { background: rgba(0,0,0,.5); }
dialog h2 { font-size: 18px; text-transform: none; letter-spacing: -.02em; color: var(--text); }
.hours-row { display: grid; grid-template-columns: 44px 100px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.tbl-row { display: grid; grid-template-columns: 1.2fr 1fr 90px auto auto auto; gap: 8px; align-items: center; margin-bottom: 6px; }
@media (max-width: 560px) { .tbl-row { grid-template-columns: 1fr 1fr; } }
.price-row { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); }
.price-row:first-of-type { border-top: 0; }
.price-row .checks label { padding: 5px 10px; font-size: 14px; }
.price-fields { display: grid; grid-template-columns: 110px 110px 1fr 90px auto auto auto; gap: 8px; align-items: center; margin-top: 8px; }
@media (max-width: 640px) { .price-fields { grid-template-columns: 1fr 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; margin: 0; color: var(--text); border: 1px solid var(--stroke); background: rgba(0,0,0,.2); padding: 7px 12px; border-radius: 999px; }

/* ---------- týdenní kalendář ---------- */
.pick-head { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.pick-head > div { min-width: 0; max-width: 100%; }
.count-box { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper b { font-size: 18px; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .btn { width: 34px; height: 34px; padding: 0; font-size: 17px; border-radius: 10px; }
.wk-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: center; }
.wk-nav h2 { margin: 0; }
.wk-nav .btn { width: 44px; font-size: 20px; padding: 6px 0; }
.wk-help { margin: 8px 0 10px; }
.wk-scroll { --dw: 1fr; overflow-x: auto; padding: 0 0 6px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(64px, var(--dw))); gap: 5px; }
@media (max-width: 640px) {   /* na mobilu 3–4 dny, zbytek posunem do stran */
  .wk-scroll { --dw: calc((100vw - 32px - 34px) / 3.6); }
  .wk-grid { grid-template-columns: repeat(7, var(--dw)); }
}
.wk-c { min-height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wk-day { flex-direction: column; line-height: 1.15; padding: 4px 0; }
.wk-day span { font-size: 12px; color: var(--muted); }
.wk-day.today { color: var(--yellow); }
.wk-day.today span { color: var(--yellow); }
.wk-day.dim { opacity: .4; }
.wk-slot { position: relative; min-height: 42px; border: 1px solid var(--stroke); background: rgba(255,255,255,.05); padding: 0; font: inherit; color: inherit; }
.wk-slot b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-slot i { position: absolute; right: 6px; bottom: 3px; font-style: normal; font-size: 11px; line-height: 1; }
.wk-slot.free { background: var(--felt-soft); border-color: var(--felt-line); cursor: pointer; transition: background .12s, transform .12s; }
.wk-slot.free:active { transform: scale(.96); }
.wk-slot.free:hover { background: rgba(18, 185, 129, .3); }
.wk-slot.free i { color: var(--felt-ink); opacity: .8; }
.wk-slot.full, .wk-slot.past { color: var(--faint); border-color: transparent; }
.wk-slot.full b { text-decoration: line-through; }
.wk-slot.full { background: repeating-linear-gradient(135deg, rgba(255,107,107,.12) 0 5px, rgba(255,107,107,.04) 5px 10px); }
.wk-slot.past { background: rgba(255, 255, 255, .03); }
.wk-slot.on { background: linear-gradient(180deg, rgba(255,224,102,.95), rgba(245,183,0,.9)); color: #1a1405; font-weight: 700;
  border-color: rgba(255,240,180,.8); border-radius: 0; cursor: pointer; margin: -2.5px 0; min-height: 47px; }
.wk-slot.on.first { border-radius: 10px 10px 0 0; margin-top: 0; min-height: 44.5px; }
.wk-slot.on.last { border-radius: 0 0 10px 10px; margin-bottom: 0; min-height: 44.5px; }
.wk-slot.on.first.last { border-radius: 10px; min-height: 42px; }
.wk-slot.on i { font-size: 15px; font-weight: 700; bottom: 4px; }
.wk-slot:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.wk-off { background: none; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.wk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.lg.free { background: var(--felt-soft); border: 1px solid var(--felt-line); }
.lg.full { background: repeating-linear-gradient(135deg, rgba(255,107,107,.3) 0 3px, rgba(255,107,107,.08) 3px 6px); }
.lg.past { background: rgba(255, 255, 255, .06); }
.details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--stroke); scroll-margin-top: 80px; }
.warnbox { background: rgba(255, 212, 59, .1); border: 1px solid rgba(255, 212, 59, .35); border-radius: 14px; padding: 10px 12px; margin: 8px 0 12px; font-size: 14px; }
.warn { color: var(--yellow); }
.bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; max-width: 836px; margin: 0 auto; padding: 10px 12px 10px 16px; border-radius: 18px; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body:has(#bar:not([hidden])) .wrap { padding-bottom: 110px; }
.bar { transition: transform .25s, opacity .25s; }
.bar.away { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* turnaje v kalendáři */
.wk-tour { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 4px; text-align: center; line-height: 1.2;
  background: linear-gradient(180deg, rgba(58,160,255,.22), rgba(58,160,255,.1)); border: 1px solid rgba(58,160,255,.45); color: var(--text); overflow: hidden; }
.wk-tour span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9fd0ff; }
.wk-tour b { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.wk-tour small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-tour.past { opacity: .45; }
.wk-slot u { position: absolute; left: 5px; bottom: 3px; font-size: 10px; text-decoration: none; line-height: 1; }
.wk-day em { font-style: normal; font-size: 11px; }
.tour-list { display: grid; gap: 6px; margin: 0 0 12px; }
.tour-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 14px; background: rgba(58,160,255,.1); border: 1px solid rgba(58,160,255,.3); font-size: 14px; }
.table-pick { flex-basis: 100%; }
.wk-slot.call { flex-direction: column; gap: 1px; text-decoration: none; color: var(--text); border: 1px dashed rgba(255,212,59,.45); background: rgba(255,212,59,.07); }
.wk-slot.call small { font-size: 10px; color: var(--yellow); line-height: 1; }
.wk-slot.call:hover { background: rgba(255,212,59,.15); }
.call-note { margin: 0 0 12px; padding: 9px 12px; border-radius: 14px; background: rgba(255,212,59,.08); border: 1px solid rgba(255,212,59,.3); font-size: 14px; }
.call-note a { color: var(--yellow); font-weight: 600; white-space: nowrap; }
.group-hint { flex-basis: 100%; padding: 9px 12px; border-radius: 14px; background: rgba(255,212,59,.08); border: 1px solid rgba(255,212,59,.3); font-size: 14px; }
/* plovoucí uložení nastavení – bez podkladu, drží u spodního okraje */
.save-float { position: sticky; bottom: 14px; z-index: 15; display: flex; justify-content: center; gap: 10px; margin-top: 14px; pointer-events: none; }
.save-float .btn { pointer-events: auto; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.save-float .btn:not(.primary) { background: rgba(10,26,24,.92); }
.opt { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 4px; }
.tour-join { margin-top: 6px; padding: 5px 8px; white-space: nowrap; border-radius: 10px; font-size: 12px; font-weight: 700; text-decoration: none;
  color: #1a1405; background: linear-gradient(180deg, #ffe066, #f5b700); }
.tour-any { font-size: 10px !important; margin-top: 2px; }
.wk-day .wk-x { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.wk-shut { display: flex; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; font-size: 12px; color: var(--muted, rgba(255,255,255,.45)); line-height: 1.3; }
@keyframes seat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,212,59,.55); border-color: rgba(255,212,59,.75); } 50% { box-shadow: 0 0 0 7px rgba(255,212,59,0); border-color: rgba(255,212,59,.35); } }
.chip.pulse:not(.on) { animation: seat-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .chip.pulse:not(.on) { animation: none; border-color: rgba(255,212,59,.75); } }
.count-box.need .stepper { border-radius: 14px; box-shadow: 0 0 0 2px #ff6b6b; }
.count-box.need h2 { color: #ff8a8a; }
.count-box .req { color: #ff8a8a; }
.req-note { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--muted, #9aa7b4); }
.count-box.need .req-note { color: #ff8a8a; font-weight: 600; }
.err-text { color: #ff8a8a; }
/* rybka z loga plave v kartě, kterou je potřeba vyplnit (fish.js) */
.has-fish { position: relative; }
.has-fish > :not(.fish-tank) { position: relative; z-index: 1; }
.fish-tank { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.fish { position: absolute; left: 0; top: 0; pointer-events: none; opacity: .32; will-change: transform; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.fish svg { display: block; }
.fish.fly { position: absolute; z-index: 60; }   /* při přeplutí v souřadnicích stránky, stejně průhledná jako v kartě */
/* mobil: rychlé klepání na +/− nesmí zoomovat stránku */
button, .btn, .chip, a { touch-action: manipulation; }
.counts { display: flex; gap: 12px; flex: 1; min-width: 0; }
.counts .count-box { flex: 1; min-width: 0; }
.tp-head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 10px; }
.tp-head h2 { margin-bottom: 0; }
.any-table { appearance: none; background: none; border: 1px dashed var(--stroke); color: var(--muted); border-radius: 12px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.any-table.on { border: 1px solid rgba(255,240,180,.8); background: linear-gradient(180deg, rgba(255,224,102,.95), rgba(245,183,0,.9)); color: #1a1405; font-weight: 700; box-shadow: 0 4px 14px rgba(245,183,0,.25); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.tgrid .chip { min-width: 0; padding: 12px 4px; }
.wk-float { position: fixed; z-index: 15; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: rgba(10,18,20,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 0 0 12px 12px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.wk-float.on { opacity: 1; }
.wk-float-in { padding: 2px 0; }
.wk-float .wk-grid { will-change: transform; }
@media (max-width: 520px) {
  .counts { flex-basis: 100%; }
  .count-box h2 { font-size: 12px; letter-spacing: .03em; }
}
.tp-head, .tgrid { max-width: 460px; }
.fish-bubble { position: absolute; border-radius: 50%; border: 1.5px solid rgba(190,235,255,.75); background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.55), rgba(160,220,255,.08) 60%);
  pointer-events: none; opacity: 0; animation: fish-bubble 2.4s ease-out forwards; }
@keyframes fish-bubble { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 12% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.15); } }

/* ---------- nastavení: dlaždice sekcí vlevo, obsah sekce vpravo ---------- */
.set-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 14px; align-items: start; }
.set-nav { position: sticky; top: calc(84px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 8px; }
.set-tile { appearance: none; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke); color: var(--text);
  background: linear-gradient(155deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14); transition: border-color .15s, background .15s; }
.set-tile:hover { border-color: var(--felt-line); }
.set-tile.on { border-color: var(--felt-line); background: linear-gradient(155deg, rgba(18,185,129,.34), rgba(18,185,129,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 18px rgba(18,185,129,.22); }
.set-tile .ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: 19px; border-radius: 11px; background: rgba(0,0,0,.25); }
.set-tile .tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.set-tile b { font-size: 15px; }
.set-tile small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-tile.on small { color: var(--felt-ink); }
.set-tile .dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 8px rgba(255,212,59,.7); }
.save-float .unsaved { display: none; align-self: center; pointer-events: auto; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--yellow); background: rgba(10,26,24,.92); border: 1px solid rgba(255,212,59,.4); }
.save-float.dirty .unsaved { display: inline-block; }
@media (max-width: 760px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .set-tile { padding: 9px 10px; gap: 8px; border-radius: 14px; }
  .set-tile .ic { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
  .set-tile b { font-size: 13.5px; }
  .set-tile small { font-size: 11.5px; }
  .set-body { scroll-margin-top: calc(76px + env(safe-area-inset-top)); }
  .save-float { flex-wrap: wrap; }
}

/* ---------- plánek herny ---------- */
.hall-wrap { margin: 4px 0 6px; }
.hall { display: block; width: 100%; max-width: 680px; height: auto; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.hall .floor { fill: rgba(255,255,255,.035); stroke: var(--stroke); stroke-width: 1.5; }
.hall .bar-floor { fill: rgba(58,160,255,.10); stroke: rgba(58,160,255,.25); }
.hall .bar { fill: none; stroke: #6b4a2b; stroke-width: 13; stroke-linecap: round; }
.hall .bar.in { stroke: rgba(255,255,255,.55); stroke-width: 7; }
.hall .chair { fill: rgba(255,212,59,.75); }
.hall .stbl { fill: rgba(255,255,255,.22); }
.hall .col { fill: rgba(255,255,255,.16); }
.hall .door { stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; }
.hall .foos rect { fill: #1f6b3a; stroke: rgba(255,255,255,.35); }
.hall .foos path { stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.hall .bench { fill: #a3262e; stroke: rgba(0,0,0,.35); }
.hall .mach { fill: rgba(255,255,255,.3); stroke: rgba(255,255,255,.45); }
.hall .aq { stroke: rgba(160,210,255,.7); stroke-width: 1.5; }
.hall .afish { fill: var(--yellow); }
.hall .wall { fill: rgba(255,255,255,.16); }
.hall .darts circle { fill: #1a1a1a; stroke: #e33; stroke-width: 2; }
.hall .oche { stroke: rgba(255,255,255,.5); stroke-width: 2; stroke-dasharray: 4 3; }
.hall .lbl { fill: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-anchor: middle; }
.hall .door-l { fill: rgba(255,212,59,.7); text-anchor: start; }
.hall .door.wc { stroke: rgba(160,210,255,.85); }
.hall .wc-l { fill: rgba(160,210,255,.8); text-anchor: middle; font-size: 8.5px; letter-spacing: .04em; }
.ht .rail { fill: #4a3320; stroke: rgba(0,0,0,.45); stroke-width: 1; transition: stroke .15s; }
.ht .felt { fill: #0f7a5f; transition: fill .15s; }
.ht .felt.carom { fill: #1c5fa8; }
.ht .pk { fill: #050807; }
.ht .num { fill: #fff; font-size: 15px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.ht .sub { fill: rgba(255,255,255,.85); font-size: 7.5px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.ht.pick { cursor: pointer; }
.ht.pick:hover .felt, .ht.pick:focus-visible .felt { fill: #16a07c; }
.ht.pick:hover .felt.carom { fill: #2a78cc; }
.ht:focus { outline: none; }
.ht:focus-visible .rail { stroke: var(--yellow); stroke-width: 2; }
.ht.other { opacity: .38; cursor: pointer; }
.ht.other:hover { opacity: .6; }
.ht.busy { cursor: not-allowed; }
.ht.busy .felt { fill: #5b2b2b; }
.ht.busy .num { fill: rgba(255,255,255,.55); }
.ht.mine .rail { stroke: var(--yellow); stroke-width: 2.5; stroke-dasharray: 5 4; }
.ht.on .rail { stroke: var(--yellow); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(255,212,59,.8)); }
.ht.on .felt { fill: #18b48b; }
.ht.pulse:not(.on) .rail { animation: rail-pulse 1.6s ease-in-out infinite; }
@keyframes rail-pulse { 50% { stroke: rgba(255,212,59,.9); stroke-width: 3; } }
@media (prefers-reduced-motion: reduce) { .ht.pulse:not(.on) .rail { animation: none; stroke: rgba(255,212,59,.75); stroke-width: 2.5; } }
.hall-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.hall-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hall-legend .lg { display: inline-block; width: 10px; height: 16px; border-radius: 2px; border: 2px solid #4a3320; }
.lg.h-free { background: #0f7a5f; } .lg.h-busy { background: #5b2b2b; } .lg.h-other { background: #0f7a5f; opacity: .38; }
.lg.h-on { background: #18b48b; border-color: var(--yellow) !important; }
.hall-hint { text-align: center; margin-top: 4px; }
/* editor plánku v administraci */
.hall .slot { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.5; stroke-dasharray: 5 4; }
#hall-edit .ht { cursor: grab; touch-action: none; }
#hall-edit .ht.off { opacity: .45; }
#hall-edit .ht.drag { cursor: grabbing; }
#hall-edit .ht.drag .rail { stroke: var(--yellow); stroke-width: 3; }
.hall-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pick-step { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.pick-note { margin: 0 2px 8px; color: var(--text); }
.pick-note b { color: var(--yellow); }
