/* =========================================================
   FLOW HOKEJ · Prototyp R0 · design systém
   Scoreboard + Skate-cut · tokeny podle brand manuálu
   ========================================================= */
:root {
  --bg: #041020;
  --bg-2: #061529;
  --s1: #0B1A2E;
  --s2: #12243D;
  --s3: #1A3150;
  --line: rgba(255, 255, 255, .07);
  --line-2: #22344F;
  --text: #FFFFFF;
  --muted: #A9B8CE;
  --dim: #6F819C;
  --primary: #5613E1;
  --primary-2: #6B2BF0;
  --cyan: #24C5FF;
  --magenta: #BF01FF;
  --grad: linear-gradient(70deg, #24C5FF 0%, #5613E1 52%, #BF01FF 100%);
  --grad-soft: linear-gradient(70deg, rgba(36,197,255,.16), rgba(86,19,225,.16) 52%, rgba(191,1,255,.16));
  --ok: #22C55E;
  --warn: #F5A524;
  --danger: #F04452;
  --blue: #3B82F6;
  --r-card: 18px;
  --r: 12px;
  --font-d: 'Saira', 'Inter', system-ui, sans-serif;
  --font-t: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  --nav-h: 72px;
  --top-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(900px 520px at -10% 105%, rgba(36, 197, 255, .09), transparent 60%),
    radial-gradient(800px 480px at 110% -10%, rgba(191, 1, 255, .09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 15px/1.5 var(--font-t);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
svg.i.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-family: var(--font-d); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font-d); font-weight: 800; font-style: italic; font-stretch: 92%;
  letter-spacing: -.01em; line-height: 1.02; text-transform: uppercase;
}
.h1 { font-family: var(--font-d); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.h2 { font-family: var(--font-d); font-weight: 700; font-size: 20px; line-height: 1.2; margin: 0; }
.h3 { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.25; margin: 0; }
.eyebrow {
  font-family: var(--font-d); font-weight: 700; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.sb { /* scoreboard numerals */
  font-family: var(--font-d); font-weight: 800; font-stretch: 78%; font-variant-numeric: tabular-nums;
  letter-spacing: .01em; line-height: .9;
}
.sb-glow { text-shadow: 0 0 18px rgba(36, 197, 255, .45); }

/* ---------- App shell ---------- */
.app { min-height: 100%; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: rgba(4, 16, 32, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar .brand-mark { width: 34px; height: 34px; }
.topbar .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.region-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
  white-space: nowrap; min-width: 0;
}
.region-chip span { overflow: hidden; text-overflow: ellipsis; }
.region-chip svg { color: var(--cyan); }
.top-spacer { flex: 1; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  color: var(--text); transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--magenta); color: #fff; font: 700 11px/18px var(--font-d); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.proto-tag {
  font: 700 10px/1 var(--font-d); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed rgba(169, 184, 206, .4); border-radius: 6px; padding: 5px 7px; white-space: nowrap;
}
.main { padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
.view { padding: 16px 16px 8px; max-width: 1320px; margin: 0 auto; animation: viewIn .38s var(--ease) backwards; }
.view.flush { padding: 0; max-width: none; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

/* Bottom navigation */
.bottomnav {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(6, 18, 36, .86); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid var(--line);
}
.bn-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--dim); font: 600 11px/1 var(--font-t); transition: color .2s;
}
.bn-item svg.i { width: 24px; height: 24px; }
.bn-item.active { color: #fff; }
.bn-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 34px; height: 3px; transform: translateX(-50%) skewX(-24deg);
  background: var(--grad); border-radius: 2px; box-shadow: 0 0 14px rgba(86, 19, 225, .9);
}
.bn-item.active svg.i { color: var(--cyan); filter: drop-shadow(0 0 8px rgba(36, 197, 255, .5)); }
.bn-item .bn-badge {
  position: absolute; top: 9px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--magenta);
  box-shadow: 0 0 0 2px var(--bg-2);
}

/* FAB */
.fab {
  position: fixed; z-index: 46; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: 0 12px 30px -6px rgba(86, 19, 225, .8), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--spring), border-radius .25s;
}
.fab::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); opacity: 0; transition: opacity .3s; z-index: -1; }
.fab:active { transform: scale(.92); }
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.4; transition: transform .3s var(--ease); }
.fab.open svg.i { transform: rotate(45deg); }
.fab-menu {
  position: fixed; z-index: 46; right: 16px; bottom: calc(var(--nav-h) + 86px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.fab-menu.open { pointer-events: auto; }
.fab-menu a, .fab-menu button {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 14px; border-radius: 14px;
  background: var(--s2); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px;
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .2s, transform .3s var(--spring);
}
.fab-menu.open a, .fab-menu.open button { opacity: 1; transform: none; }
.fab-menu svg.i { color: var(--cyan); }
.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(2, 8, 18, .55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- Desktop shell ---------- */
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 264px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 16px 16px;
    background: linear-gradient(180deg, #041020 0, #041020 90px, #061428 60%, #051326); border-right: 1px solid var(--line);
  }
  .sb-logo { padding: 2px 8px 22px; }
  .sb-logo img { width: 150px; mix-blend-mode: lighten; }
  .sb-nav { display: flex; flex-direction: column; gap: 2px; }
  .sb-label { margin: 18px 12px 8px; }
  .sb-link {
    position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px;
    color: var(--muted); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s;
  }
  .sb-link:hover { background: rgba(255, 255, 255, .04); color: #fff; }
  .sb-link.active { color: #fff; background: linear-gradient(90deg, rgba(86, 19, 225, .32), rgba(86, 19, 225, .04)); }
  .sb-link.active::before {
    content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--grad);
  }
  .sb-link.active svg.i { color: var(--cyan); }
  .sb-link .count { margin-left: auto; font: 700 11px/18px var(--font-d); padding: 0 7px; border-radius: 9px; background: var(--magenta); color: #fff; }
  .sb-foot { margin-top: auto; }
  .persona-card {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line);
  }
  .persona-card .pc-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
  .persona-card .pc-role { font-size: 12px; color: var(--muted); }
  .topbar { padding: 0 28px; height: 68px; }
  .topbar .brand-mark { display: none; }
  .top-search {
    display: flex; align-items: center; gap: 10px; width: min(460px, 40vw); height: 42px; padding: 0 14px; border-radius: 12px;
    background: var(--s1); border: 1px solid var(--line); color: var(--dim); font-size: 14px;
  }
  .top-search kbd { margin-left: auto; font: 600 11px var(--font-t); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); }
  .bottomnav, .m-only { display: none !important; }
  .fab { bottom: 28px; right: 28px; }
  .fab-menu { bottom: 98px; right: 28px; }
  .main { padding-bottom: 40px; min-width: 0; }
  .view { padding: 26px 28px 8px; }
}
@media (max-width: 1023.98px) { .d-only { display: none !important; } .top-search { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 13px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s;
  overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(86, 19, 225, .9), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--primary-2); }
.btn-primary::after { /* skate-cut shine */
  content: ''; position: absolute; top: -50%; bottom: -50%; width: 40px; left: -60px; transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 110%; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px rgba(191, 1, 255, .7); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { border: 1px solid var(--line-2); color: #fff; }
.btn-outline:hover { border-color: var(--cyan); }
.btn-danger { background: rgba(240, 68, 82, .14); color: #FF8A94; }
.btn-ok { background: rgba(34, 197, 94, .16); color: #6EE7A0; }
.btn-warn { background: rgba(245, 165, 36, .16); color: #FFC766; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--cyan); font-weight: 600; }
.link-more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.link-more:hover { color: #fff; }

/* ---------- Chips, badges, status ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; flex: none;
  background: var(--s1); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--muted); transition: all .2s;
}
.chip:hover { color: #fff; }
.chip.on { background: rgba(86, 19, 225, .28); border-color: rgba(107, 43, 240, .9); color: #fff; }
.chip .cnt { font: 700 11px/16px var(--font-d); padding: 0 6px; border-radius: 8px; background: var(--primary); color: #fff; }
.chip svg.i { width: 16px; height: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; flex: none;
  font: 700 11px/1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 255, 255, .07); color: var(--muted);
}
.tag svg.i { width: 13px; height: 13px; stroke-width: 2.2; }
.tag.skew { transform: skewX(-12deg); border-radius: 4px; }
.tag.skew > * { transform: skewX(12deg); }
.tag.ok { background: rgba(34, 197, 94, .15); color: #5EE394; }
.tag.warn { background: rgba(245, 165, 36, .16); color: #FFC35C; }
.tag.danger { background: rgba(240, 68, 82, .16); color: #FF7F8A; }
.tag.blue { background: rgba(59, 130, 246, .18); color: #8DB8FF; }
.tag.cyan { background: rgba(36, 197, 255, .14); color: var(--cyan); }
.tag.mag { background: rgba(191, 1, 255, .16); color: #E07BFF; }
.tag.brand { background: var(--grad); color: #fff; }
.tag.solid-danger { background: var(--danger); color: #fff; }
.tag.model { background: transparent; border: 1px dashed rgba(169, 184, 206, .35); color: var(--dim); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Cards & sections ---------- */
.section { margin-top: 28px; }
.section:first-child { margin-top: 4px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-d); font-weight: 800; font-style: italic; font-size: 17px; letter-spacing: .02em; text-transform: uppercase;
}
.sec-title::before { content: ''; width: 14px; height: 18px; background: var(--grad); transform: skewX(-18deg); border-radius: 2px; flex: none; }
.sec-title.hot::before { background: linear-gradient(70deg, var(--danger), var(--magenta)); }
.sec-title .sub { font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.card {
  position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card);
}
.card-pad { padding: 16px; }
.card.hover { transition: transform .25s var(--ease), border-color .25s, background .25s; }
.card.hover:hover { transform: translateY(-2px); border-color: rgba(36, 197, 255, .25); background: #0E1F36; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
@media (min-width: 1024px) { .rail { margin: 0; padding: 2px 0 6px; } }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- Event card ---------- */
.ev-card { display: flex; gap: 14px; padding: 14px; align-items: stretch; }
.ev-date {
  width: 58px; flex: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--s2); border: 1px solid var(--line); padding: 8px 0; position: relative; overflow: hidden;
}
.ev-date .d1 { font: 700 10.5px/1 var(--font-d); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ev-date .d2 { font-size: 26px; margin: 3px 0 2px; }
.ev-date .d3 { font: 600 10.5px/1 var(--font-d); text-transform: uppercase; color: var(--dim); letter-spacing: .08em; }
.ev-date::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pk, var(--ok)); }
.ev-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ev-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev-title { font: 700 16px/1.25 var(--font-d); margin: 0; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ev-meta svg.i { width: 14px; height: 14px; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.cap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cap-bar { display: flex; gap: 2px; }
.cap-bar i { width: 5px; height: 12px; border-radius: 1.5px; background: rgba(255, 255, 255, .1); transform: skewX(-12deg); }
.cap-bar i.f { background: var(--pk, var(--ok)); }
.price { font: 800 16px/1 var(--font-d); white-space: nowrap; }
.price small { font-weight: 600; font-size: 12px; color: var(--muted); }

/* Compact rail card (event) */
.ev-tile { width: 268px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ev-tile .tile-head {
  height: 92px; position: relative; padding: 12px; display: flex; align-items: flex-start; justify-content: space-between;
  background: linear-gradient(160deg, rgba(18, 36, 61, .2), rgba(4, 16, 32, .9)), var(--tile-bg, var(--s2)); background-size: cover; background-position: center;
}
.ev-tile .tile-head .big-date { position: absolute; left: 12px; bottom: 8px; font-size: 30px; }
.ev-tile .tile-head .big-date small { font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-left: 6px; color: var(--muted); font-stretch: 100%; }
.ev-tile .tile-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* Puck legend dot */
.pk-ok { --pk: var(--ok); }
.pk-warn { --pk: var(--warn); }
.pk-blue { --pk: var(--blue); }
.pk-danger { --pk: var(--danger); }
.pk-mag { --pk: var(--magenta); }

/* ---------- Map pucks ---------- */
.puck {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #2a3b55 0%, #0d1726 55%, #050b14 100%);
  border: 3px solid var(--pk, var(--ok)); display: grid; place-items: center; color: var(--pk, var(--ok));
  box-shadow: 0 6px 14px rgba(0, 0, 0, .6), 0 0 0 3px rgba(4, 16, 32, .7), 0 0 18px -2px var(--pk, var(--ok));
  transition: transform .2s var(--spring);
}
.puck::after { /* puck rim highlight */
  content: ''; position: absolute; inset: 3px; border-radius: 50%; border-top: 1.5px solid rgba(255, 255, 255, .22);
}
.puck svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.puck img { width: 22px; height: 22px; }
.puck.sel { transform: scale(1.28); z-index: 5; }
.puck.pulse::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--pk); animation: puckPulse 1.8s ease-out infinite;
}
@keyframes puckPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.puck.alt-official { border-color: transparent; background: radial-gradient(circle at 35% 28%, #2a3b55 0%, #0d1726 55%, #050b14 100%) padding-box, var(--grad) border-box; }
.leaflet-div-icon.puck-icon { background: none; border: 0; }
.cluster {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--cg)); box-shadow: 0 8px 18px rgba(0, 0, 0, .6);
}
.cluster b {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0a1628;
  font: 800 15px/1 var(--font-d); color: #fff;
}
.puck-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.puck-legend span { display: inline-flex; align-items: center; gap: 6px; }
.puck-legend .mini { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--pk, var(--muted)); background: #0d1726; }

/* ---------- Map view ---------- */
.map-wrap { position: relative; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
.map { position: absolute; inset: 0; background: #07162a; }
.leaflet-container { background: #07162a; font-family: var(--font-t); }
.leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) saturate(.55) brightness(.72) contrast(1.12); }
.leaflet-tile-pane::after { content: none; }
.leaflet-control-attribution { background: rgba(4, 16, 32, .7) !important; color: var(--dim) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom a { background: var(--s2) !important; color: #fff !important; border-color: var(--line) !important; }
.map-top { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.glass { background: rgba(8, 22, 42, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); }
.seg { display: inline-flex; padding: 4px; border-radius: 13px; gap: 2px; }
.seg button { height: 34px; padding: 0 13px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(86, 19, 225, .9); }
.map-peek {
  position: absolute; z-index: 500; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  border-radius: 20px; padding: 14px; box-shadow: var(--shadow); animation: sheetIn .35s var(--ease) both;
}
.map-side { display: none; }
@media (min-width: 1024px) {
  .map-wrap { height: calc(100vh - 68px); display: grid; grid-template-columns: 400px 1fr; }
  .map-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: rgba(4, 16, 32, .6); }
  .map-side .ms-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
  .map-side .ms-list { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
  .map-side .ev-card.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
  .map { position: relative; inset: auto; height: 100%; }
  .map-cell { position: relative; height: 100%; min-height: 0; }
  .map-peek { left: auto; right: 18px; bottom: 18px; width: 380px; }
  .map-top { left: 18px; right: 18px; flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 8px; align-items: center; }
.filter-bar .chips { flex: 1; }
.filter-btn { position: relative; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-weight: 600; font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2);
  color: #fff; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36, 197, 255, .15); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A9B8CE' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s;
}
.opt.on { background: rgba(86, 19, 225, .28); border-color: var(--primary-2); color: #fff; }
.opt[disabled] { opacity: .45; cursor: not-allowed; }
.opt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.opt svg.i { width: 18px; height: 18px; }
.toggle { position: relative; display: inline-block; vertical-align: middle; width: 48px; height: 28px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 14px; background: var(--s3); transition: background .2s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.toggle input:checked + span { background: var(--primary); }
.toggle input:checked + span::after { transform: translateX(20px); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .t { font-weight: 600; }
.set-row .s { font-size: 13px; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--primary-2); }

/* ---------- Sheet / modal ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-root .scrim { z-index: 0; position: absolute; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; z-index: 1;
  background: linear-gradient(180deg, #102340, #0B1A2E 120px); border-top: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .42s var(--ease); box-shadow: 0 -20px 50px rgba(0, 0, 0, .5);
}
.sheet-root.open .sheet { transform: none; }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 2px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 540px; max-height: 86vh; border-radius: 24px; border: 1px solid rgba(255,255,255,.1);
    transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .25s; padding: 22px 24px 24px;
  }
  .sheet-root.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet.wide { width: 720px; }
}

/* Success burst */
.success { text-align: center; padding: 8px 0 4px; }
.success .ring {
  width: 92px; height: 92px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(34, 197, 94, .18), transparent 70%);
}
.success .ring svg { width: 92px; height: 92px; }
.success .ring circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .7s var(--ease) forwards; }
.success .ring path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .45s var(--ease) forwards; }
.success.warn .ring circle { stroke: var(--warn); }
.success .cuts { position: absolute; inset: -18px; pointer-events: none; }
.success .cuts i { position: absolute; left: 50%; top: 50%; width: 3px; height: 16px; border-radius: 2px; background: var(--grad); opacity: 0; animation: cut .7s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes cut { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-40px) scaleY(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scaleY(1); } }

/* ---------- Toast & push ---------- */
.toast-root { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--nav-h) + 24px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: #1B2F4D; border: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .35s var(--spring) both; display: flex; gap: 8px; align-items: center; }
.toast svg.i { color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) { .toast-root { bottom: 30px; } }
.push-root { position: fixed; z-index: 130; top: 10px; left: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 1024px) { .push-root { left: auto; right: 20px; top: 20px; width: 380px; } }
.push {
  pointer-events: auto; width: 100%; max-width: 420px; border-radius: 20px; padding: 12px 14px; cursor: pointer;
  background: rgba(30, 44, 66, .9); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  animation: pushIn .55s var(--spring) both; display: grid; grid-template-columns: 38px 1fr; gap: 4px 11px;
}
.push.out { animation: pushOut .35s var(--ease) forwards; }
.push .p-ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #041020; display: grid; place-items: center; overflow: hidden; }
.push .p-ico img { width: 30px; height: 30px; }
.push .p-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.push .p-head b { color: #fff; font-weight: 700; letter-spacing: .02em; }
.push .p-head .sim { margin-left: auto; font: 700 9.5px/1 var(--font-d); letter-spacing: .12em; padding: 4px 6px; border-radius: 5px; border: 1px dashed rgba(255,255,255,.35); color: #fff; }
.push .p-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.push .p-body { grid-column: 2; font-size: 13.5px; color: #D4DEEC; line-height: 1.35; }
@keyframes pushIn { from { opacity: 0; transform: translateY(-40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pushOut { to { opacity: 0; transform: translateY(-30px) scale(.96); } }

/* ---------- Hero / skate-cut ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px 20px; min-height: 180px;
  background: linear-gradient(180deg, rgba(4, 16, 32, .1), rgba(4, 16, 32, .85) 75%), url('../assets/skatecut.jpg') center 30% / cover;
  border: 1px solid rgba(255, 255, 255, .08);
}
.hero.soft { background: linear-gradient(100deg, rgba(4, 16, 32, .96) 30%, rgba(4, 16, 32, .55)), url('../assets/skatecut.jpg') right 20% / cover; }
.hero > * { position: relative; }
.skate-svg { position: absolute; pointer-events: none; }
.cut-line { height: 2px; background: var(--grad); transform: skewX(-24deg); border-radius: 2px; }

/* ---------- Avatars & crests ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; font: 800 15px/1 var(--font-d);
  background: var(--av, var(--s3)); color: #fff; letter-spacing: .02em;
}
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.avatar.round { border-radius: 50%; }
.crest {
  width: 44px; height: 50px; flex: none; position: relative; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 14%, 100% 62%, 50% 100%, 0 62%, 0 14%);
  background: linear-gradient(160deg, var(--c1) 0 55%, color-mix(in srgb, var(--c1) 70%, #000) 55%);
  color: var(--c2); font: 900 13px/1 var(--font-d); font-style: italic; letter-spacing: .02em;
}
.crest.sm { width: 30px; height: 34px; font-size: 9.5px; }
.crest.lg { width: 78px; height: 88px; font-size: 22px; }
.team-stripe { width: 4px; align-self: stretch; border-radius: 3px; background: linear-gradient(var(--c1), var(--c1) 70%, var(--c2) 70%); flex: none; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .li-main { flex: 1; min-width: 0; }
.li .li-t { font-weight: 700; font-size: 14.5px; }
.li .li-s { font-size: 13px; color: var(--muted); }
.li-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); color: var(--cyan); flex: none; }

/* ---------- Agenda / calendar ---------- */
.agenda-day { margin-top: 18px; }
.agenda-day h4 { margin: 0 0 8px; position: sticky; top: var(--top-h); z-index: 2; padding: 8px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.ag-item { display: flex; gap: 12px; padding: 12px 14px; align-items: center; }
.ag-time { width: 54px; flex: none; text-align: left; }
.ag-time .sb { font-size: 22px; }
.ag-time small { display: block; font-size: 11.5px; color: var(--dim); }
.ag-item.changed { border-color: rgba(245, 165, 36, .45); background: linear-gradient(90deg, rgba(245, 165, 36, .09), transparent 60%), var(--s1); }
.ag-item.cancelled { opacity: .75; }
.ag-item.cancelled .ev-title { text-decoration: line-through; text-decoration-color: var(--danger); }
.strike { text-decoration: line-through; color: var(--dim); }
.daystrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.daystrip::-webkit-scrollbar { display: none; }
.ds-day { flex: none; width: 52px; height: 66px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ds-day .w { font: 700 10.5px/1 var(--font-d); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ds-day .n { font-size: 22px; }
.ds-day .dots { display: flex; gap: 3px; height: 5px; }
.ds-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--pk); }
.ds-day.on { background: var(--primary); border-color: var(--primary-2); }
.ds-day.on .w { color: #fff; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.month .mh { background: var(--s1); padding: 10px; font: 700 11px var(--font-d); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.month .md { background: rgba(11, 26, 46, .92); min-height: 118px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.month .md.out { background: rgba(6, 20, 38, .9); }
.month .md.out .dn { color: var(--dim); }
.month .md.today { background: linear-gradient(180deg, rgba(86, 19, 225, .22), rgba(11, 26, 46, .92)); }
.month .dn { font: 700 14px/1 var(--font-d); margin-bottom: 4px; }
.month .md.today .dn { color: var(--cyan); }
.m-ev { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.05); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ev:hover { background: rgba(255,255,255,.1); }
.m-ev .status-dot { background: var(--pk); }
.m-more { font-size: 11.5px; color: var(--muted); padding-left: 6px; }

/* ---------- Ice ---------- */
.ice-card { overflow: hidden; display: flex; flex-direction: column; }
.ice-card .ice-top { position: relative; padding: 16px 16px 14px; background: linear-gradient(120deg, rgba(240, 68, 82, .16), rgba(191, 1, 255, .1) 60%, transparent), var(--s1); }
.ice-card .ice-time { font-size: 40px; display: flex; align-items: baseline; gap: 8px; }
.ice-card .ice-time .to { font-size: 22px; color: var(--muted); }
.ice-card .ice-day { font: 800 13px/1 var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: #FF7F8A; display: flex; align-items: center; gap: 6px; }
.ice-card .ice-bot { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ice-price { display: flex; align-items: baseline; gap: 10px; }
.ice-price .now { font-size: 28px; }
.ice-price .was { font: 600 14px var(--font-d); color: var(--dim); text-decoration: line-through; }
.discount { font: 800 12px/1 var(--font-d); padding: 5px 8px; border-radius: 6px; background: var(--danger); color: #fff; transform: skewX(-12deg); display: inline-block; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.countdown b { font: 700 14px var(--font-d); color: #fff; font-variant-numeric: tabular-nums; }
.ice-card.taken { opacity: .6; }
.ice-card.taken .ice-top { background: var(--s2); }

/* Rink timeline */
.timeline { position: relative; overflow-x: auto; }
.tl-grid { position: relative; min-width: 860px; }
.tl-hours { display: grid; grid-template-columns: repeat(17, 1fr); margin-left: 110px; font: 600 11px var(--font-d); color: var(--dim); }
.tl-row { display: flex; align-items: center; height: 64px; border-top: 1px solid var(--line); }
.tl-label { width: 110px; flex: none; font-weight: 700; font-size: 13.5px; }
.tl-track { position: relative; flex: 1; height: 46px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px calc(100% / 17)); border-radius: 10px; }
.tl-block {
  position: absolute; top: 3px; bottom: 3px; border-radius: 9px; padding: 5px 8px; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: rgba(86, 19, 225, .35); border: 1px solid rgba(107, 43, 240, .7); line-height: 1.25; cursor: pointer; transition: filter .2s;
}
.tl-block:hover { filter: brightness(1.2); }
.tl-block small { display: block; color: rgba(255,255,255,.65); font-weight: 500; }
.tl-block.maint { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 6px, transparent 6px 12px); border-color: var(--line-2); color: var(--dim); }
.tl-block.free { background: rgba(34, 197, 94, .08); border: 1px dashed rgba(34, 197, 94, .6); color: #6EE7A0; }
.tl-block.cancelled { background: rgba(245, 165, 36, .1); border: 1px dashed var(--warn); color: #FFC766; animation: attention 2.4s ease-in-out infinite; }
.tl-block.offer { background: linear-gradient(110deg, rgba(240, 68, 82, .4), rgba(191, 1, 255, .35)); border-color: var(--danger); }
.tl-block.booked-new { background: rgba(34, 197, 94, .25); border-color: var(--ok); }
@keyframes attention { 50% { box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); } }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); z-index: 2; }

/* ---------- Requests ---------- */
.req-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.req-head { display: flex; gap: 12px; align-items: center; }
.req-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; background: var(--grad-soft); border: 1px solid rgba(191, 1, 255, .3); color: #E07BFF; }
.req-ico svg.i { width: 26px; height: 26px; }
.req-ico.opp { color: var(--cyan); border-color: rgba(36, 197, 255, .3); }
.urgency { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: #FF9AA3; }
.urgency i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Notifications ---------- */
.nt { display: flex; gap: 12px; padding: 14px; border-radius: 16px; position: relative; transition: background .2s; }
.nt:hover { background: rgba(255, 255, 255, .03); }
.nt.unread { background: linear-gradient(90deg, rgba(86, 19, 225, .14), transparent 70%); }
.nt.unread::after { content: ''; position: absolute; right: 14px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.nt-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--s2); }
.nt-ico.ice { color: #FF7F8A; background: rgba(240, 68, 82, .14); }
.nt-ico.team { color: var(--warn); background: rgba(245, 165, 36, .14); }
.nt-ico.req { color: #E07BFF; background: rgba(191, 1, 255, .14); }
.nt-ico.ev { color: var(--cyan); background: rgba(36, 197, 255, .12); }
.nt-ico.ok { color: var(--ok); background: rgba(34, 197, 94, .14); }
.nt-t { font-weight: 700; font-size: 14.5px; line-height: 1.3; padding-right: 18px; }
.nt-b { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.nt-time { font-size: 12px; color: var(--dim); margin-top: 6px; display: flex; gap: 8px; align-items: center; }

/* ---------- Report (who got notified) ---------- */
.report { border-radius: 16px; background: var(--s2); padding: 14px; }
.rep-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.rep-row + .rep-row { border-top: 1px solid var(--line); }
.rep-row .why { color: var(--muted); font-size: 12.5px; }
.rep-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.rep-ic.y { background: rgba(34, 197, 94, .16); color: var(--ok); }
.rep-ic.n { background: rgba(255, 255, 255, .06); color: var(--dim); }

/* ---------- Detail pages ---------- */
.detail-hero {
  position: relative; overflow: hidden; margin: -16px -16px 0; padding: 18px 16px 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, rgba(4, 16, 32, .25), var(--bg) 96%), url('../assets/skatecut.jpg') center 25% / cover;
}
.detail-hero.official { background: linear-gradient(180deg, rgba(4, 16, 32, .1), var(--bg) 96%), url('../assets/skatecut.jpg') center 60% / cover; }
.detail-hero.ice { background: linear-gradient(180deg, rgba(60, 4, 30, .35), var(--bg) 96%), url('../assets/skatecut.jpg') center 80% / cover; }
.detail-hero .nav-row { display: flex; justify-content: space-between; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(4, 16, 32, .55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); }
.round-btn.on { color: var(--warn); }
.round-btn.on svg.i { fill: currentColor; }
.dh-title { font-size: 30px; margin: 10px 0 8px; }
.date-block { display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--s1); }
.date-block > div { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.date-block > div + div { border-left: 1px solid var(--line); }
.date-block .big { font-size: 38px; }
.cap-meter { display: flex; gap: 3px; margin: 10px 0 6px; }
.cap-meter i { flex: 1; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, .08); transform: skewX(-14deg); }
.cap-meter i.f { background: var(--pk); box-shadow: 0 0 10px -2px var(--pk); animation: capIn .5s var(--ease) both; }
@keyframes capIn { from { opacity: 0; transform: skewX(-14deg) scaleY(.2); } }
.sticky-cta {
  position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 30; margin-top: 18px;
  padding: 12px; border-radius: 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.sticky-cta .cta-info { flex: 1; min-width: 0; }
@media (min-width: 1024px) {
  .detail-hero { margin: -26px -28px 0; padding: 26px 28px 30px; min-height: 280px; }
  .detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
  .detail-grid .aside { position: sticky; top: 92px; }
  .sticky-cta { position: static; margin-top: 0; box-shadow: none; flex-direction: column; align-items: stretch; }
  .dh-title { font-size: 44px; }
}

/* ---------- Home specifics ---------- */
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.child-switch { display: flex; gap: 8px; }
.next-card { overflow: hidden; padding: 0; }
.next-card .nc-top { position: relative; padding: 18px 18px 16px; background: linear-gradient(115deg, rgba(86, 19, 225, .55), rgba(4, 16, 32, .2) 70%), url('../assets/skatecut.jpg') right 70% / 900px auto; }
.next-card .nc-count { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 2px; }
.next-card .nc-count .sb { font-size: 54px; }
.next-card .nc-count .u { font: 800 14px var(--font-d); letter-spacing: .12em; color: var(--muted); margin-right: 10px; }
.next-card .nc-bot { padding: 14px 18px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.alert-card { display: flex; gap: 12px; padding: 14px; align-items: flex-start; border-color: rgba(245, 165, 36, .4); background: linear-gradient(90deg, rgba(245, 165, 36, .12), rgba(11, 26, 46, .9) 70%); }
.alert-card.cancel { border-color: rgba(240, 68, 82, .45); background: linear-gradient(90deg, rgba(240, 68, 82, .13), rgba(11, 26, 46, .9) 70%); }
.ann { padding: 14px; display: flex; gap: 12px; }
.ann .ann-text { font-size: 14.5px; line-height: 1.45; }
.rsvp { display: flex; gap: 8px; }
.home-grid { display: grid; gap: 0 24px; }
@media (min-width: 1180px) { .home-grid { grid-template-columns: minmax(0, 1fr) 360px; } .home-aside { position: sticky; top: 92px; align-self: start; } }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .qa-grid { grid-template-columns: repeat(4, 1fr); } }
.qa { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 14px; }
.qa .qa-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 700px) { .type-grid { grid-template-columns: repeat(8, 1fr); } }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); font-size: 12px; font-weight: 700; text-align: center; transition: all .25s var(--ease); }
.type-tile:hover { border-color: rgba(36, 197, 255, .4); transform: translateY(-2px); }
.type-tile svg.i { width: 26px; height: 26px; color: var(--cyan); }
.rsvp-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.rsvp-bar i { display: block; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .sb { font-size: 34px; }

/* ---------- Import table ---------- */
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--dim); }
.step b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); font-family: var(--font-d); }
.step.on { color: #fff; }
.step.on b { background: var(--primary); }
.step.done b { background: var(--ok); }
.step-sep { width: 26px; height: 2px; background: var(--line-2); transform: skewX(-24deg); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font: 700 11px var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.err td { background: rgba(240, 68, 82, .06); }
.tbl tr.dup td { background: rgba(245, 165, 36, .06); opacity: .8; }
.tbl .select, .tbl .input { height: 36px; font-size: 13px; border-radius: 9px; }
.tbl-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--s1); }
.dropzone { border: 2px dashed var(--line-2); border-radius: 18px; padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--cyan); background: rgba(36, 197, 255, .04); }

/* ---------- Profiles ---------- */
.rink-art { position: relative; height: 200px; margin: -16px -16px 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, rgba(86, 19, 225, .55), transparent 60%), #071a33; }
.rink-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rink-art .art-label { position: absolute; right: 12px; bottom: 10px; }
@media (min-width: 1024px) { .rink-art { margin: -26px -28px 0; height: 260px; } }
.profile-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -40px; position: relative; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.amen svg.i { width: 16px; height: 16px; color: var(--cyan); }
.lockbox { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; border: 1px dashed var(--line-2); background: rgba(11, 26, 46, .6); }
.lockbox .li-ico { color: var(--muted); }

/* ---------- Tabs (skewed) ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 14px; font: 700 14px var(--font-d); color: var(--muted); white-space: nowrap; }
.tab.on { color: #fff; }
.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--grad); transform: skewX(-24deg); border-radius: 2px; }

/* ---------- Empty / skeleton ---------- */
.empty { text-align: center; padding: 36px 20px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .e-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); }
.empty .e-ic svg.i { width: 30px; height: 30px; }
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--s1) 0%, var(--s2) 50%, var(--s1) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Search overlay ---------- */
.search-ov { position: fixed; inset: 0; z-index: 95; background: rgba(4, 16, 32, .96); backdrop-filter: blur(10px); padding: 14px 16px; display: none; flex-direction: column; gap: 14px; }
.search-ov.open { display: flex; animation: viewIn .25s var(--ease); }
.search-ov .s-in { display: flex; gap: 10px; align-items: center; max-width: 720px; width: 100%; margin: 0 auto; }
.search-ov .s-res { max-width: 720px; width: 100%; margin: 0 auto; overflow-y: auto; }

/* ---------- Footer / marking ---------- */
.proto-foot { text-align: center; color: var(--dim); font-size: 12px; padding: 26px 16px 8px; display: flex; justify-content: center; gap: 8px; align-items: center; flex-wrap: wrap; }
.proto-foot img { width: 18px; }
.model-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- opravy rozložení (overflow v gridech) --- */
.home-grid > *, .detail-grid > *, .grid > *, .vz-grid > * { min-width: 0; }
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 1023.98px) {
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); margin: 0; z-index: 42; }
  .view:has(.sticky-cta) { padding-bottom: 120px; }
}
@media (max-width: 480px) {
  .seg button:not(.on) span { display: none; }
  .seg button { padding: 0 11px; }
  .region-chip { max-width: 150px; }
}
button.proto-tag { cursor: pointer; }
button.proto-tag.demo-on { border-color: rgba(191, 1, 255, .8); color: #E07BFF; }

@media (max-width: 600px) { .lockbox { flex-wrap: wrap; } .lockbox > div:nth-child(2) { flex: 1 1 200px; } }
.map, .leaflet-container { z-index: 0; isolation: isolate; }
@media (max-width: 1023.98px) {
  body:has(.sticky-cta) .fab, body:has(.sticky-cta) .fab-menu { display: none; }
  .leaflet-control-zoom { display: none; }
}
