/* ORTI – oblikovni sistem
 * En poudarek (ORTI oranžna) na temno modri osnovi, Geist, ikone Tabler.
 * Zaobljenost: kontrolniki --r-ctl (10px), kartice in okna --r-card (16px), čipi/značke/avatarji polno okroglo.
 * Svetli in temni način: prefers-color-scheme + ročno html[data-theme].
 * Gibanje samo za povratno informacijo in prehode stanj; vse pod prefers-reduced-motion izklopljeno.
 */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    color-scheme: light;
    /* blagovna znamka */
    --brand: #f0501d;
    --brand-strong: #d6400f;
    --brand-ink: #ffffff;
    --brand-soft: #fff0ea;
    --navy: #101632;

    /* nevtralne (hladne, modrikaste) */
    --bg: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #f7f8fb;
    --surface-3: #eef0f5;
    --line: #e4e7ee;
    --line-strong: #d3d8e2;
    --text: #121729;
    --text-2: #424a5e;
    --muted: #6b7386;
    --faint: #9aa1b2;

    /* stanja */
    --ok: #15803d;
    --ok-soft: #e7f6ec;
    --warn: #b45309;
    --warn-soft: #fff4e0;
    --danger: #d92d3a;
    --danger-soft: #fdecee;
    --info: #2563c9;
    --info-soft: #eaf1fd;

    /* vrste storitev v koledarju (nežni toni, berljivo besedilo) */
    --svc-1: #ffe3d6; --svc-1-ink: #7a2a0c;
    --svc-2: #ffe3d6; --svc-2-ink: #7a2a0c;
    --svc-3: #fbf1c7; --svc-3-ink: #6b4e00;
    --svc-4: #dbeefe; --svc-4-ink: #0f4a7a;
    --svc-5: #dcf5e6; --svc-5-ink: #14532d;
    --svc-6: #dcf5e6; --svc-6-ink: #14532d;
    --svc-7: #e6e8ec; --svc-7-ink: #3a4150;
    --svc-8: #efe3fa; --svc-8-ink: #4c1d73;
    --mine: var(--brand);

    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --r-ctl: 10px;
    --r-card: 16px;
    --r-full: 999px;

    --shadow-1: 0 1px 2px rgb(16 22 50 / .06), 0 1px 1px rgb(16 22 50 / .04);
    --shadow-2: 0 6px 18px -6px rgb(16 22 50 / .14), 0 2px 4px rgb(16 22 50 / .05);
    --shadow-3: 0 24px 48px -16px rgb(16 22 50 / .28);
    --focus: 0 0 0 3px rgb(240 80 29 / .35);

    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --t-fast: 120ms;
    --t: 200ms;

    --topbar-h: 60px;
    --tabbar-h: 64px;
    --side-w: 248px;
    --safe-b: env(safe-area-inset-bottom, 0px);

    /* z-indeksi (sistemske plasti) */
    --z-sticky: 10;
    --z-topbar: 30;
    --z-tabbar: 30;
    --z-dropdown: 40;
    --z-overlay: 50;
    --z-toast: 60;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --brand: #ff6a3d;
        --brand-strong: #ff8460;
        --brand-ink: #1a0b04;
        --brand-soft: #3a1a0e;
        --bg: #0c0f1a;
        --surface: #141927;
        --surface-2: #181e2e;
        --surface-3: #1f2638;
        --line: #252d41;
        --line-strong: #323b53;
        --text: #eef1f7;
        --text-2: #c3c9d6;
        --muted: #8f97aa;
        --faint: #6a7286;
        --ok: #4ade80; --ok-soft: #12301f;
        --warn: #fbbf24; --warn-soft: #33270b;
        --danger: #ff6b76; --danger-soft: #3a1418;
        --info: #7aa7ff; --info-soft: #14233f;
        --svc-1: #4a2416; --svc-1-ink: #ffd9c9;
        --svc-2: #4a2416; --svc-2-ink: #ffd9c9;
        --svc-3: #3f350f; --svc-3-ink: #fbe7a1;
        --svc-4: #13324d; --svc-4-ink: #c4e2fb;
        --svc-5: #153522; --svc-5-ink: #bdeccd;
        --svc-6: #153522; --svc-6-ink: #bdeccd;
        --svc-7: #2a3040; --svc-7-ink: #d4d9e4;
        --svc-8: #33204a; --svc-8-ink: #e6d2f8;
        --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
        --shadow-2: 0 8px 22px -8px rgb(0 0 0 / .6);
        --shadow-3: 0 28px 56px -18px rgb(0 0 0 / .7);
        --focus: 0 0 0 3px rgb(255 106 61 / .45);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #ff6a3d;
    --brand-strong: #ff8460;
    --brand-ink: #1a0b04;
    --brand-soft: #3a1a0e;
    --bg: #0c0f1a;
    --surface: #141927;
    --surface-2: #181e2e;
    --surface-3: #1f2638;
    --line: #252d41;
    --line-strong: #323b53;
    --text: #eef1f7;
    --text-2: #c3c9d6;
    --muted: #8f97aa;
    --faint: #6a7286;
    --ok: #4ade80; --ok-soft: #12301f;
    --warn: #fbbf24; --warn-soft: #33270b;
    --danger: #ff6b76; --danger-soft: #3a1418;
    --info: #7aa7ff; --info-soft: #14233f;
    --svc-1: #4a2416; --svc-1-ink: #ffd9c9;
    --svc-2: #4a2416; --svc-2-ink: #ffd9c9;
    --svc-3: #3f350f; --svc-3-ink: #fbe7a1;
    --svc-4: #13324d; --svc-4-ink: #c4e2fb;
    --svc-5: #153522; --svc-5-ink: #bdeccd;
    --svc-6: #153522; --svc-6-ink: #bdeccd;
    --svc-7: #2a3040; --svc-7-ink: #d4d9e4;
    --svc-8: #33204a; --svc-8-ink: #e6d2f8;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 8px 22px -8px rgb(0 0 0 / .6);
    --shadow-3: 0 28px 56px -18px rgb(0 0 0 / .7);
    --focus: 0 0 0 3px rgb(255 106 61 / .45);
}

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0; min-height: 100dvh;
    font: 450 15px/1.5 var(--font); letter-spacing: -.005em;
    color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
    font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(22px, 2.4vw, 28px); }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:not([class]) { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* hitro zaporedno tapkanje (npr. −/+) na telefonu ne sme povečati strani (dvojni dotik); drsenje in povečava s prsti ostaneta */
a, button, label, summary, input, select, textarea, [role="button"] { touch-action: manipulation; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-ctl); }
::selection { background: var(--brand-soft); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.ico { width: 20px; height: 20px; flex: none; }
/* ikona v navadni povezavi (brez razreda) ostane v vrstici z besedilom – sicer jo »svg { display: block }« prelomi */
a:not([class]) > svg.ico { display: inline-block; vertical-align: -.2em; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 24px; height: 24px; }

/* ---------- ogrodje aplikacije ---------- */
.topbar {
    position: sticky; top: 0; z-index: var(--z-topbar);
    height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 16px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__logo { height: 20px; width: auto; }
:root[data-theme="dark"] .topbar__logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar__logo { filter: brightness(0) invert(1); } }
/* v klubu: logotip ORTI levo (vstopna stran), od imena kluba ločen s tanko črto */
.topbar__brand--club { flex: none; height: 28px; padding-right: 12px; border-right: 1px solid var(--line); }
@media (max-width: 640px) { .topbar__brand--club { padding-right: 9px; } .topbar__brand--club .topbar__logo { height: 14px; } }
.topbar__clubmenu { min-width: 0; }
.topbar__clubmenu > .menu__list { left: 0; right: auto; min-width: 240px; }
.topbar__chev { color: var(--muted); flex: none; transition: transform var(--t-fast); }
.topbar__club[aria-expanded="true"] .topbar__chev { transform: rotate(180deg); }
.topbar__club { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: var(--r-full); font-weight: 600; min-width: 0; transition: background var(--t-fast); }
.topbar__club:hover { background: var(--surface-3); }
.topbar__club span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.topbar__spacer { flex: 1; }
/* telefon in tablica (brez zavihkov v glavi; Nenad, 15. 11. 2026 – »toliko širok, koliko je prostora, v svojem okvirčku, ne natlačeno«):
   klub zapolni prostor med logotipom ORTI in ikonami, v okvirju, puščica na desnem robu */
@media (max-width: 1023px) {
    .topbar:has(.topbar__clubmenu) { gap: 10px; padding-inline: 12px; }
    .topbar:has(.topbar__clubmenu) .topbar__spacer { display: none; }
    .topbar__clubmenu { flex: 1 1 auto; }
    .topbar__club {
        width: 100%; height: 40px; padding: 0 10px 0 4px; gap: 8px; border-radius: 12px;
        background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
    }
    .topbar__club:hover, .topbar__club[aria-expanded="true"] { background: var(--surface-3); }
    .topbar__club .club-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
    .topbar__club > span:not(.club-mark) { flex: 1; min-width: 0; max-width: none; text-align: left; font-size: 14.5px; }
    .topbar__clubmenu > .menu__list { right: 0; min-width: 0; }
}
/* zavihki kluba v zgornji vrstici (namizje; na telefonu spodnja vrstica) */
.topnav { display: none; }
@media (min-width: 1024px) {
    .topnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .topnav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-full); color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
    .topnav a:hover { background: var(--surface-3); color: var(--text); }
    .topnav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
}
/* upravljanje kluba: čipi na telefonu namesto stranske navigacije, zavihki nastavitev */
.manage-chips { margin: -4px 0 16px; }
@media (min-width: 1024px) { .chips.manage-chips, .manage-chips { display: none; } }
.manage-chips .chip { text-decoration: none; }
.manage-tabs { display: flex; gap: 4px; margin: -6px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.manage-tabs::-webkit-scrollbar { display: none; }
.manage-tabs a { flex: none; padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast); }
.manage-tabs a:hover { color: var(--text); }
.manage-tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.topbar__actions { display: flex; align-items: center; gap: 4px; }

.club-mark {
    --h: 20; width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center;
    font: 700 13px/1 var(--font); color: var(--fg, #fff); letter-spacing: 0;
    background: linear-gradient(145deg, hsl(var(--h) var(--s1, 72%) var(--l1, 52%)), hsl(calc(var(--h) + var(--hs, 28)) var(--s2, 64%) var(--l2, 38%)));
    overflow: hidden;
}
.club-mark img { width: 100%; height: 100%; object-fit: cover; }
/* logotip (samo stran »O klubu«): cel, v izvirnem razmerju, na beli podlagi (logotipi so narejeni za belo) */
.club-mark.club-mark--logo { width: auto; min-width: 64px; max-width: min(220px, 55vw); padding: 8px 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.club-mark.club-mark--logo img { display: block; width: auto; height: 46px; max-width: 100%; object-fit: contain; }

.shell { display: grid; grid-template-columns: 1fr; min-height: calc(100dvh - var(--topbar-h)); }
.main { min-width: 0; padding: 20px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); }
.main--wide { padding-left: 0; padding-right: 0; }
.container { max-width: 1180px; margin: 0 auto; }
.container--narrow { max-width: 720px; margin: 0 auto; }
.container--form { max-width: 440px; margin: 0 auto; }

.sidenav { display: none; }
@media (min-width: 1024px) {
    .shell--side { grid-template-columns: var(--side-w) 1fr; }
    .sidenav {
        display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--topbar-h);
        height: calc(100dvh - var(--topbar-h)); overflow-y: auto; padding: 16px 12px;
        border-right: 1px solid var(--line); background: var(--surface);
    }
    .main { padding: 28px 32px 48px; }
    .tabbar { display: none !important; }
}
.sidenav__group { margin: 14px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sidenav__group:first-child { margin-top: 2px; }
.sidenav a {
    text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-ctl);
    color: var(--text-2); font-weight: 500; transition: background var(--t-fast), color var(--t-fast);
}
.sidenav a:hover { background: var(--surface-3); color: var(--text); }
.sidenav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidenav a .badge { margin-left: auto; }

/* spodnja vrstica na telefonu */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar);
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
}
.tabbar a { text-decoration: none; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 550; color: var(--muted); }
.tabbar a .ico { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a:active .ico { transform: scale(.92); }
/* turnir v živo: oznaka na zavihku Tekmovanja (namizje: »LIVE«, telefon: »● LIVE« namesto napisa pod ikono) */
.live-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; padding: 2px 7px 2px 6px; border-radius: var(--r-full); background: #d92d3a; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.35; }
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
.menu__list a .live-tag { margin-left: auto; }
.menu__new { margin-left: auto; padding: 1px 8px; border-radius: var(--r-full); background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 650; }
.menu__new[hidden] { display: none; }
/* sidro (#…) ne sme pristati pod lepljivo glavo – npr. povezave s strani Kaj je novega */
:target { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.tabbar a.is-live { position: relative; color: var(--danger); }
.tabbar__live { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; letter-spacing: .06em; color: var(--danger); }
.tabbar__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
/* števec na zavihku (npr. odzivi na iskanje): namizje in meni – pastilka ob imenu, telefon – mehurček na kotu ikone */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 2px; padding: 0 5px; border-radius: var(--r-full); background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.menu__list a .nav-count { margin-left: auto; }
.tabbar a.has-count { position: relative; }
.tabbar__count { position: absolute; top: 5px; left: calc(50% + 6px); display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-full); background: var(--brand); color: var(--brand-ink); font-size: 10.5px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
/* obvestilo v ORTI (odziv na iskanje, prošnja za pridružitev): telefon nad spodnjo vrstico, namizje zgoraj desno */
.nav-alert {
    position: fixed; z-index: calc(var(--z-tabbar) + 1); left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px 14px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3);
    opacity: 0; transform: translateY(12px); transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.nav-alert.is-in { opacity: 1; transform: none; }
.nav-alert__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.nav-alert__main { display: grid; gap: 2px; min-width: 0; }
.nav-alert__main b { font-size: 14.5px; line-height: 1.3; }
.nav-alert__main span { font-size: 12.5px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.nav-alert__more { color: var(--brand) !important; font-weight: 600; }
.nav-alert__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@media (min-width: 1024px) { .nav-alert { left: auto; right: 24px; bottom: auto; top: calc(var(--topbar-h) + 16px); width: 380px; } }
@media (prefers-reduced-motion: reduce) { .nav-alert { transition: none; transform: none; } }
/* zvonec z obvestili (zgornja vrstica kluba) */
.inbox__btn { position: relative; }
/* zvonec v glavi: svoj krog z obrobo (Nenad, 11. 11. 2026), enak velikosti ikone uporabnika ob njem */
.topbar .inbox__btn { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.topbar .inbox__btn .ico { width: 19px; height: 19px; }
@media (hover: hover) { .topbar .inbox__btn:hover { border-color: var(--faint, var(--line-strong)); background: var(--surface-2); } }
.topbar .inbox__btn[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.topbar .inbox__count { top: -4px; right: -4px; }
.inbox__count { position: absolute; top: 3px; right: 2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-full); background: var(--brand); color: var(--brand-ink); font-size: 10.5px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.inbox__count[hidden] { display: none; }
.menu__list.inbox__panel { width: min(400px, calc(100vw - 24px)); padding: 0; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-3); }
.inbox__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.inbox__head b { font-size: 16px; letter-spacing: -.01em; }
.menu__list .inbox__set { width: auto; padding: 6px; border-radius: 8px; color: var(--muted); }
.inbox__list { max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 10px; }
.inbox__sec { margin: 10px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.menu__list .inbox__item { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; padding: 12px 10px; border-radius: 12px; color: var(--text-2); text-align: left; cursor: default; }
.menu__list a.inbox__item { cursor: pointer; }
.menu__list .inbox__item + .inbox__item { margin-top: 2px; }
.menu__list a.inbox__item:hover { background: var(--surface-2); }
.inbox__item.is-unread::after { content: ""; position: absolute; top: 18px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.inbox__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); }
.inbox__ic .ico { width: 20px; height: 20px; }
.inbox__ic--result, .inbox__ic--confirm { background: var(--brand-soft); color: var(--brand); }
.inbox__ic--ach, .inbox__ic--season, .inbox__ic--comp { background: color-mix(in srgb, #e9b113 22%, transparent); color: #b8860b; }
.inbox__ic--slot, .inbox__ic--notice, .inbox__ic--res { background: var(--brand-soft); color: var(--brand); }
.inbox__ic--mm, .inbox__ic--club { background: color-mix(in srgb, var(--info, #2563eb) 14%, transparent); color: var(--info, #2563eb); }
.inbox__txt { display: grid; gap: 3px; min-width: 0; }
.inbox__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-right: 14px; }
.inbox__top b { font-size: 14.5px; line-height: 1.3; font-weight: 650; color: var(--text); }
.inbox__top small { flex: none; font-size: 12px; color: var(--faint); }
.inbox__sub { font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.inbox__score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox__score b { font-size: 17px; font-weight: 750; letter-spacing: .01em; color: var(--text); }
.inbox__score em { padding: 2px 8px; border-radius: var(--r-full); font-size: 12px; font-style: normal; font-weight: 650; background: var(--surface-3); color: var(--muted); }
.inbox__score em.is-won { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.inbox__score em.is-lost { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.inbox__acts { display: flex; gap: 8px; margin-top: 8px; }
.menu__list .inbox__acts .btn { width: auto; justify-content: center; padding: 7px 14px; }
.menu__list .inbox__acts .btn--primary { background: var(--brand); color: var(--brand-ink); }
.menu__list .inbox__acts .btn--primary:hover { background: var(--brand-strong, var(--brand)); color: var(--brand-ink); }
.menu__list .inbox__acts .btn:not(.btn--primary) { border: 1px solid var(--line-strong); }
.inbox__empty { margin: 0; padding: 28px 14px; text-align: center; color: var(--muted); font-size: 14px; }
.nav-alert__avatar--ic { border-radius: 12px; align-self: start; }
/* Shrani rezultat, dokler ni vpisan noben niz: nevtralen (onemogočena oranžna je v temnem načinu rjava) */
.nav-alert [data-alert-save]:disabled, .rs-save:disabled { background: var(--surface-3); border-color: transparent; color: var(--faint); opacity: 1; box-shadow: none; }
.nav-alert__avatar--ic .ico { width: 21px; height: 21px; }
.nav-alert__main .inbox__score { margin: 2px 0; }
@media (max-width: 640px) { .menu__list.inbox__panel { position: fixed; left: 10px; right: 10px; top: calc(var(--topbar-h) + 6px); width: auto; } }

/* hiter vnos rezultata na kartici obvestila (in na strani rezultata) */
.nav-alert__pad { grid-column: 1 / -1; min-width: 0; }
.nav-alert__hint { grid-column: 1 / -1; margin: 0 0 -4px; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.nav-alert__notme { grid-column: 2; justify-self: start; margin: -6px 0 0; padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (hover: hover) { .nav-alert__notme:hover { color: var(--danger); } }
.nav-alert__optout { margin-right: auto; padding-inline: 6px; color: var(--muted); font-weight: 500; }
@media (min-width: 1024px) { .nav-alert--pad { width: 420px; } }
/* vnos rezultata (kot ZR): zmagovalec niza → igre poraženca – liga in turnir (competitions.js), kartica obvestila in stran rezultata (Orti.winPad) */
.cmp-mhint { margin: 8px 0 8px; font-size: 13px; color: var(--muted); text-align: center; }
.cmp-mhint--step { font-weight: 650; color: var(--text-2); }
.cmp-mhint--ko { margin-top: 10px; font-size: 12px; }
.cmp-mteams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin: 6px 0 4px; }
.cmp-mteams__vs { align-self: center; font: 750 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cmp-team {
    position: relative; display: grid; gap: 3px; align-content: center; min-height: 76px; padding: 12px; border-radius: 14px;
    border: 2px solid var(--line-strong); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer;
    font: 650 15px/1.25 var(--font); overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.cmp-team--b { text-align: right; }
.cmp-team small { min-height: 13px; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.cmp-team:active { transform: scale(.97); }
.cmp-team.is-win { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-soft), var(--surface-2)); box-shadow: 0 6px 18px -10px rgb(240 80 29 / .6); }
.cmp-team.is-lose { opacity: .6; }
.cmp-padwrap { animation: cmp-rise var(--t) var(--ease) both; }
@keyframes cmp-rise { from { opacity: 0; transform: translateY(6px); } }
.cmp-pad { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.cmp-pad[hidden] { display: none; }
.cmp-pad button {
    height: 56px; padding: 0 4px; border: 0; border-radius: 12px; background: var(--surface-3); color: var(--text);
    font: 700 19px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: background var(--t-fast), transform var(--t-fast) var(--ease), color var(--t-fast);
}
.cmp-pad button:hover { background: var(--line); }
.cmp-pad button:active { transform: scale(.92); }
.cmp-pad button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.cmp-setstrip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 2px 0 6px; }
.cmp-setchip {
    display: grid; justify-items: center; gap: 1px; min-width: 72px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--text); font: inherit; cursor: default;
}
.cmp-setchip small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-setchip b { font: 750 17px var(--font); font-variant-numeric: tabular-nums; }
button.cmp-setchip { cursor: pointer; }
button.cmp-setchip:active { transform: scale(.97); }
.cmp-setchip.is-now { border-style: dashed; border-color: var(--brand); color: var(--brand); }
.cmp-setchip.is-done { background: var(--surface-2); }
.wp { display: grid; }
.wp.is-busy .cmp-pad, .wp.is-busy .cmp-mteams, .wp.is-busy .cmp-setstrip { opacity: .55; pointer-events: none; }
.wp .spad__fmt { margin-bottom: 6px; }
.wp .cmp-setstrip { margin-top: 2px; }
.cmp-setchip.is-won b { color: var(--ok, #15803d); }
.cmp-setchip--add { border-style: dashed; color: var(--muted); }
.wp__extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.wp__extra .chip[aria-pressed="true"], .wp__extra .chip[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.wp .cmp-pad { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav-alert .wp .cmp-team { min-height: 62px; padding: 10px 12px; }
.nav-alert .wp .cmp-pad { gap: 6px; }
.nav-alert .wp .cmp-pad button { height: 48px; font-size: 18px; }
.wp__custom { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 10px; }
.wp__custom > span { padding-bottom: 10px; font-weight: 700; color: var(--muted); }
.wp__in { display: grid; gap: 3px; max-width: 120px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wp__in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp__in .input { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.wp .spad__out { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .cmp-padwrap { animation: none; } .cmp-team, .cmp-pad button { transition: none; } .cmp-team:active, .cmp-pad button:active { transform: none; } }
.spad__fmt { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spad__fmtl { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spad__seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); }
.spad__seg button { padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer; touch-action: manipulation; }
.spad__seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.spad__out.is-final { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; }
.spad__out { margin: 2px 0 0; font-size: 13.5px; font-weight: 650; }
.spad__out--won { color: var(--ok, #16a34a); }
.spad__out--lost { color: var(--danger, #dc2626); }
.spad__out--draw { color: var(--muted); }
@keyframes live-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .live-tag::before, .tabbar__live::before { animation: none; } }

/* ---------- glave strani ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 65ch; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* »Pomoč« v glavi strani upravljanja (Nenad, 17. 11. 2026 – »desno in manj vpadljivo, odpre se v oknu«): na računalniku
   ikona in napis desno od dejanj, na telefonu samo ikona desno ob naslovu; okno help/_popup */
.page-head.has-help { position: relative; }
.page-head__help {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px;
    color: var(--muted); font-size: 13.5px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast);
}
.page-head__help .ico { width: 19px; height: 19px; }
.page-head__help:hover { color: var(--brand); background: var(--surface-3); }
@media (min-width: 641px) { .page-head.has-help > .page-head__actions { margin-left: auto; } .page-head__actions + .page-head__help { margin-left: -8px; } }
@media (max-width: 640px) {
    .page-head.has-help > div:first-child { padding-right: 44px; }
    .page-head__help { position: absolute; top: 0; right: -6px; width: 40px; height: 40px; padding: 0; justify-content: center; }
    .page-head__help .ico { width: 22px; height: 22px; }
    .page-head__help-l { display: none; }
}
@media (prefers-reduced-motion: reduce) { .page-head__help { transition: none; } }
/* članek pomoči: koraki, nasvet, »Kje« (stran Pomoč in okno »Pomoč«) */
.gd-steps { margin: 0; padding: 0; list-style: none; counter-reset: gd; display: grid; gap: 8px; }
.gd-steps li { counter-increment: gd; position: relative; padding-left: 34px; line-height: 1.5; text-wrap: pretty; }
.gd-steps li::before { content: counter(gd); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 750; }
.gd-tip { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, var(--surface-3)); font-size: 14px; line-height: 1.5; }
.gd-tip .ico { flex: none; margin-top: 2px; color: var(--warn); }
.gd-where { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 13.5px; min-width: 0; }
.gd-where .ico { flex: none; margin-top: 2px; color: var(--brand); }
.gd-where__l { font-weight: 650; color: var(--text-2); }
.gd-pop .dlg__head { align-items: flex-start; }
.gd-pop .dlg__head h2 { padding-top: 5px; line-height: 1.3; text-wrap: balance; }
.gd-pop__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.gd-pop__body { display: grid; gap: 14px; }
.gd-pop__lead { margin: 0; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.gd-pop__p { margin: 0; line-height: 1.55; text-wrap: pretty; }
.gd-pop__foot { justify-content: space-between; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.back-link:hover { color: var(--text); }

/* ---------- kartice in razdelki ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.card__body { padding: 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head h2, .card__head h3 { font-size: 15px; }
.card__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-card) var(--r-card); }
.stack { display: grid; gap: 16px; }
.stack--lg { gap: 24px; }
.stack--sm { gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
/* polja v mrežah: razmik določa mreža (sicer je desno polje zamaknjeno navzdol za .field + .field) */
.grid-2 > .field + .field, .grid-3 > .field + .field { margin-top: 0; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.section-title { font-size: 15px; font-weight: 650; margin: 8px 0 12px; }

/* ---------- gumbi ---------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--btn-bd);
    background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 14px; white-space: nowrap;
    cursor: pointer; user-select: none; text-decoration: none;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.btn:hover { --btn-bg: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: transparent; box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, var(--shadow-1); }
.btn--primary:hover { --btn-bg: var(--brand-strong); }
.btn--dark { --btn-bg: var(--text); --btn-fg: var(--surface); --btn-bd: transparent; }
.btn--dark:hover { --btn-bg: var(--text-2); }
.btn--ghost { --btn-bd: transparent; --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-3); }
.btn--danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn--danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn--icon.btn--sm { width: 32px; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- obrazci ---------- */
.field { display: grid; gap: 6px; align-content: start; } /* v mreži raztegnjeno polje: vnos ostane pod oznako */
.field + .field { margin-top: 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.label .opt { font-weight: 450; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 12.5px; color: var(--danger); font-weight: 500; }
.input, .select, .textarea {
    width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-ctl);
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
/* iOS Safari: vgrajena polja za datum in uro imajo lastno najmanjšo širino (segala so čez rob) in sredinsko vrednost */
input.input[type="date"], input.input[type="time"], input.input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input.input::-webkit-date-and-time-value { text-align: left; }
input.input[type="date"], input.input[type="time"] { line-height: 40px; } /* Safari brez appearance: vrednost navpično na sredini */
input.input::-webkit-datetime-edit { padding: 0; line-height: inherit; }

/* poteg navzdol = osveži (samo ORTI kot aplikacija – app.js) */
.ptr { position: fixed; top: calc(var(--topbar-h, 60px) + env(safe-area-inset-top, 0px)); left: 50%; z-index: 60; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-2); opacity: 0; transform: translate(-50%, -48px); pointer-events: none; }
.ptr .ico { width: 20px; height: 20px; }
.ptr.is-ready { color: var(--brand); }
.ptr.is-busy .ico { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.is-busy .ico { animation: none; } }

/* izbira datuma (app.js: vsa polja type=date) – izvirno polje je nevidno pod gumbom (vrednost, preverjanje obrazca) */
/* prijava v glavi (neprijavljeni): zaobljen gumb, ikona v krogcu */
.topbar__login { height: 40px; padding: 0 16px 0 5px; gap: 9px; border-radius: 999px; font-size: 14.5px; }
.topbar__login-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .22); }
.topbar__login-ic .ico { width: 17px; height: 17px; }
/* izbira jezika za neprijavljene in na prijavi (Nenad, 14. 11. 2026; partials/lang_menu.php; prijavljeni: meni uporabnika): globus in koda;
 * app.js placeMenu seznam premakne, da ne seže čez rob zaslona */
.lang-menu__btn { height: 40px; padding: 0 12px; gap: 6px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 650; letter-spacing: .02em; }
.lang-menu__list { min-width: 196px; }
.lang-menu__list a { gap: 10px; }
.lang-menu__code { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.lang-menu__list a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.lang-menu__list a[aria-current="page"] .lang-menu__code { background: var(--brand-soft); color: var(--brand); }
.lang-menu__list a .ico { margin-left: auto; }
.lang-menu > button { position: relative; }
.lang-menu > button[aria-expanded="true"]::after { /* puščica kot pri menijih v glavi (tudi na prijavi) */
    content: ""; position: absolute; left: 50%; top: calc(100% + 3px); z-index: calc(var(--z-dropdown) + 1);
    width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); pointer-events: none;
    background: var(--surface); border: solid var(--line); border-width: 1px 0 0 1px; border-radius: 3px 0 0 0;
}
.lang-menu:not(.topbar .lang-menu) .menu__list { top: calc(100% + 10px); }
@media (max-width: 380px) { .lang-menu__btn { padding: 0 9px; } .lang-menu__btn .ico { display: none; } }

.dp { position: relative; display: block; min-width: 0; }
.dp--inline { display: inline-block; vertical-align: middle; }
.dp-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.dp-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font: inherit; cursor: pointer; }
.dp-btn__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.dp-btn.is-empty .dp-btn__t { color: var(--faint); font-weight: 400; }
.dp-btn .ico { flex: none; color: var(--muted); }
.dp-btn:disabled { opacity: .6; cursor: default; }
dialog.dlg.dp-dlg { width: min(360px, calc(100vw - 32px)); padding: 14px 14px 12px; overflow: visible; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dp-title { font-size: 16px; font-weight: 650; text-transform: capitalize; }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dp-wd { padding: 4px 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.dp-day { height: 42px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-pad { height: 42px; } /* prazna mesta do 6 vrstic – enaka višina vsak mesec */
.dp-day.is-we { color: var(--text-2, var(--muted)); }
.dp-day:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); }
.dp-day:focus-visible { outline: none; box-shadow: var(--focus); }
.dp-day.is-today { color: var(--brand); font-weight: 700; }
.dp-day.is-sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.dp-day:disabled { color: var(--faint); cursor: default; opacity: .55; }
.dp-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-foot .dp-clear { margin-left: auto; color: var(--muted); }
@media (max-width: 640px) {
    dialog.dlg.dp-dlg { width: 100vw; padding: 18px 16px calc(16px + var(--safe-b, 0px)); }
    .dp-day { height: 46px; font-size: 16px; }
    .dp-pad { height: 46px; }
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.select {
    appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7386' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.input--sm, .select--sm { height: 34px; font-size: 13.5px; }
/* telefon: polje s pisavo pod 16 px ob tapu poveča stran (iOS) in pusti vodoravni drsnik – na dotik vedno 16 px */
@media (pointer: coarse) {
    :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: 16px; }
    .input, .select, .textarea, .input--sm, .select--sm { font-size: 16px; }
}
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.input-group__suffix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; background: var(--surface-2); color: var(--muted); font-size: 13px; }

/* stikalo */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; margin: 0; border-radius: var(--r-full); background: var(--line-strong); position: relative; cursor: pointer; transition: background var(--t) var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--t) var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { box-shadow: var(--focus); }
.switch__text { display: grid; gap: 2px; }
.switch__text b { font-weight: 600; font-size: 14px; }
.switch__text span { font-size: 13px; color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* segmentirani izbirnik */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-3); }
.segmented a, .segmented button, .segmented label {
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px;
    background: transparent; font-size: 13.5px; font-weight: 550; color: var(--muted); cursor: pointer; white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}
.segmented [aria-current="page"], .segmented [aria-pressed="true"], .segmented input:checked + span {
    background: var(--surface); color: var(--text); box-shadow: var(--shadow-1);
}
.segmented label { padding: 0; }
.segmented label span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- značke, čipi, avatarji ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-full);
    font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-full);
    border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; font-weight: 550; color: var(--text-2);
    white-space: nowrap; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--faint); color: var(--text); }
/* izbrani čip povsod mehko – oranžen odtenek namesto polne temne/bele (Nenad, 11. 11. 2026) */
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip[aria-current="location"] { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); color: var(--brand); }
@media (hover: hover) { .chip[aria-pressed="true"]:hover, .chip[aria-current="page"]:hover { border-color: var(--brand); color: var(--brand); } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
/* vodoravni trak z več vsebine: rob zbledi (app.js doda is-scroll-l / is-scroll-r) */
.is-scroll-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.is-scroll-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
.is-scroll-l.is-scroll-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
/* puščici na trakovih zavihkov (app.js): lepljivi gumbi v traku, brez vpliva na postavitev (negativni rob = širina + razmik) */
.has-arrows.is-scroll-l, .has-arrows.is-scroll-r { -webkit-mask-image: none; mask-image: none; }
.strip-arrow {
    position: sticky; z-index: 2; flex: none; align-self: stretch; display: flex; align-items: center; width: 52px; padding: 0 4px; border: 0;
    background: none; cursor: pointer; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .18s var(--ease, ease);
}
.strip-arrow--l { left: calc(0px - var(--strip-pl, 0px)); margin-right: calc(-52px - var(--strip-gap, 0px)); justify-content: flex-start; background: linear-gradient(to right, var(--strip-bg, var(--bg)) 38%, transparent); }
.strip-arrow--r { right: calc(0px - var(--strip-pr, 0px)); margin-left: calc(-52px - var(--strip-gap, 0px)); justify-content: flex-end; background: linear-gradient(to left, var(--strip-bg, var(--bg)) 38%, transparent); }
.is-scroll-l > .strip-arrow--l, .is-scroll-r > .strip-arrow--r { opacity: 1; pointer-events: auto; }
.strip-arrow > span {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-strong, var(--line)) 55%, transparent), 0 2px 8px rgb(0 0 0 / .14);
    transition: transform .15s var(--ease, ease), color .15s;
}
.strip-arrow .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.strip-arrow:active > span { transform: scale(.9); }
@media (hover: hover) { .strip-arrow:hover > span { color: var(--brand); } }
@media (prefers-reduced-motion: reduce) { .strip-arrow, .strip-arrow > span { transition: none; } }
.avatar {
    --h: 210; width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
    font: 650 12px/1 var(--font); color: var(--fg, #fff); letter-spacing: 0;
    background: linear-gradient(140deg, hsl(var(--h) var(--s1, 58%) var(--l1, 54%)), hsl(calc(var(--h) + var(--hs, 36)) var(--s2, 52%) var(--l2, 38%)));
}
/* slika igralca (user_style / Orti.avStyle doda --img): namesto začetnic */
.avatar[style*="--img"], .lb-av[style*="--img"], .sy-av[style*="--img"], .dv-av[style*="--img"] { background: var(--img) center / cover no-repeat, var(--surface-3); color: transparent; }
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.avatar--lg { width: 48px; height: 48px; font-size: 17px; }
.avatar--guest { background: var(--surface-3); color: var(--muted); }

/* izbira ikone (Profil, Nastavitve kluba) – partials/hue_picker.php */
.hue-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 18px; }
.hue-pick--bare { grid-template-columns: minmax(0, 1fr); }
.hue-pick__preview { margin-top: 4px; }
.hue-pick__main { display: grid; gap: 14px; min-width: 0; }
.hue-pick__set { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.hue-pick__label { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hue-pick__swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hue-pick__sw, .hue-pick__auto, .hue-pick__tone { position: relative; display: inline-grid; justify-items: center; gap: 4px; cursor: pointer; }
.hue-pick input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hue-pick__dot { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s; }
.hue-pick__dot.club-mark { border-radius: 9px; }
.hue-pick input:checked + .hue-pick__dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.hue-pick input:focus-visible + .hue-pick__dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.hue-pick input:disabled + .hue-pick__dot { opacity: .35; }
.hue-pick input:disabled { cursor: default; }
@media (hover: hover) { .hue-pick__sw:hover .hue-pick__dot, .hue-pick__tone:hover input:not(:disabled) + .hue-pick__dot, .hue-pick__sug:hover .hue-pick__dot { transform: scale(1.08); } }
.hue-pick__auto span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--text-2, var(--muted)); }
.hue-pick__auto input:checked + span { border-color: var(--text); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.hue-pick__auto input:focus-visible + span { box-shadow: var(--focus); }
.hue-pick__tones { display: flex; gap: 14px; }
.hue-pick__tone .hue-pick__dot { width: 44px; height: 44px; font-size: 15px; }
.hue-pick__tname { font-size: 12.5px; color: var(--muted); }
.hue-pick__tone input:checked ~ .hue-pick__tname { color: var(--text); font-weight: 600; }
.hue-pick__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.hue-pick__suggest .hue-pick__label { margin-right: 4px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--text-2, var(--muted)); }
.hue-pick__sug { padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.hue-pick__sug:focus-visible { outline: none; box-shadow: var(--focus); }
.hue-pick__ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ok); }
@media (max-width: 480px) { .hue-pick { grid-template-columns: 1fr; justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .hue-pick__dot { transition: none; } }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table .r { text-align: right; }
.table a.rowlink { font-weight: 600; }

/* ---------- seznami (namesto tabel na telefonu) ---------- */
.list { display: grid; margin: 0; padding: 0; list-style: none; } /* <ul class="list">: brez privzetega zamika brskalnika */
.list__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }
.card > .list > .list__item { padding-left: 20px; padding-right: 20px; } /* poravnano z glavo kartice */
.list__item:last-child { border-bottom: 0; }
a.list__item { transition: background var(--t-fast); }
a.list__item:hover { background: var(--surface-2); }
.list__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.list__main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__main span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__end { flex: none; text-align: right; display: grid; gap: 2px; justify-items: end; }

/* ---------- ključne številke ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); display: grid; gap: 4px; align-content: start; min-width: 0; }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__label .ico { flex: none; }
.stat__meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stat__value { font: 600 26px/1.15 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__meta { font-size: 12.5px; color: var(--muted); }
.stat--accent { background: var(--navy); border-color: transparent; color: #fff; }
.stat--accent .stat__label, .stat--accent .stat__meta { color: rgb(255 255 255 / .7); }

/* ---------- prazna stanja, opozorila, skeleti ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.empty__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.empty h3 { color: var(--text); }
.empty p { max-width: 42ch; }
.empty .row { justify-content: center; flex-wrap: wrap; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-ctl); font-size: 14px; background: var(--info-soft); color: var(--info); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--danger { background: var(--danger-soft); color: var(--danger); }
.alert p { color: var(--text-2); }
.alert b { color: inherit; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- pogovorna okna (native <dialog>) ---------- */
/*
 * Odpiranje: okno se rahlo dvigne in poveča (280 ms, močan ease-out), ozadje se zatemni. Zapiranje: app.js ovije
 * close() – okno dobi .is-closing (kratek izhod ~180 ms), nato se zapre (deluje tudi v Safariju, ki ne zna prehoda
 * iz zgornjega sloja). Na telefonu je okno spodnji list (glej spodaj); poteg navzdol ureja app.js.
 */
dialog.dlg {
    padding: 0; border: 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow-3);
    width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); border-radius: var(--r-card); overflow: hidden;
}
dialog.dlg[open] { display: flex; flex-direction: column; animation: dlg-pop 280ms cubic-bezier(.16, 1, .3, 1); }
dialog.dlg::backdrop { background: rgb(10 14 30 / .45); backdrop-filter: blur(2px); animation: fade-in 260ms ease-out; }
dialog.dlg.is-closing { animation: dlg-out 160ms cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
dialog.dlg.is-closing::backdrop { animation: fade-out 180ms ease-in forwards; }
@keyframes dlg-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes fade-out { to { opacity: 0; } }
.dlg__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 20px; }
.dlg__head h2 { flex: 1; font-size: 17px; }
.dlg__body { padding: 4px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
/* okno, ki ima glavo, telo in nogo znotraj <form>: telo se drsi, noga z gumbi ostane vidna (prej se je na telefonu odrezala) */
dialog.dlg > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
dialog.dlg .dlg__body { flex: 1 1 auto; min-height: 0; }
dialog.dlg .dlg__head, dialog.dlg .dlg__foot { flex: none; }
/* odprto okno: stran v ozadju se ne drsi (app.js doda html.dlg-lock); prostor za drsnik ostane, da se postavitev ne premakne */
html.dlg-lock { overflow: hidden; overscroll-behavior: none; scrollbar-gutter: stable; }
html.dlg-lock body { overflow: hidden; }
dialog.dlg { overscroll-behavior: contain; }
dialog.dlg::backdrop { opacity: var(--sheet-fade, 1); } /* poteg lista navzdol (app.js) postopoma odkrije stran */
.dlg__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
/* na telefonu kot spodnji list */
@media (max-width: 640px) {
    /* spodnji list: prileti s krivuljo kot v iOS, ob zapiranju zdrsne navzdol */
    dialog.dlg { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; padding-bottom: var(--safe-b); }
    /* tipkovnica (app.js nastavi --kb in --vvh iz visualViewport): list se dvigne nad tipkovnico in skrči na vidni del */
    html.kb-open dialog.dlg { margin-bottom: var(--kb, 0px); max-height: calc(var(--vvh, 100dvh) - 8px); padding-bottom: 0; }
    dialog.dlg[open] { animation: sheet-in 420ms cubic-bezier(.32, .72, 0, 1); }
    dialog.dlg.is-closing { animation: sheet-out 220ms cubic-bezier(.4, 0, 1, 1) forwards; }
    .dlg__head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-strong); }
    .dlg__head { position: relative; padding-top: 20px; }
    .dlg__foot .btn { flex: 1; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
    dialog.dlg, dialog.dlg[open], dialog.dlg::backdrop, dialog.dlg.is-closing, dialog.dlg.is-closing::backdrop { animation: none; }
}

/* ---------- spustni meni ---------- */
.menu { position: relative; }
.menu__list a { text-decoration: none; }
.menu__list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-dropdown); min-width: 220px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2);
    transform-origin: top right; animation: dlg-in var(--t-fast) var(--ease);
}
.menu__list a, .menu__list button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
    background: none; text-align: left; font-size: 14px; color: var(--text-2); cursor: pointer;
}
.menu__list a:hover, .menu__list button:hover { background: var(--surface-3); color: var(--text); }
.menu__list button[aria-current="true"] { color: var(--info); font-weight: 600; }
.menu__list form { margin: 0; }
.menu__select { display: grid; gap: 6px; padding: 4px 6px 8px; }
.menu__select label { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.menu__select select { width: 100%; min-width: 210px; }
.menu__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.menu__label { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.menu__label--ic { display: flex; align-items: center; gap: 6px; }
/* meni uporabnika (Nenad, 14. 11. 2026 – »izpostavi zaledje in odjavo«): Zaledje kot oranžen poudarek, Odjava rdeča */
.menu__list a.menu__admin { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.menu__list a.menu__admin:hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); color: var(--brand-strong); }
.menu__admin .menu__go { margin-left: auto; opacity: .7; transition: transform var(--t-fast) var(--ease); }
.menu__admin:hover .menu__go { transform: translateX(2px); }
/* »Prenesi aplikacijo« (Nenad, 19. 11. 2026): poudarjeno kot glavni gumb; samo na telefonu (strežnik), nikoli v aplikaciji */
.menu__list a.menu__app { background: var(--brand); color: var(--brand-ink); font-weight: 650; }
.menu__list a.menu__app:hover { background: var(--brand-strong); color: var(--brand-ink); }
.menu__list a.menu__app .ico { color: inherit; }
.menu__app .menu__go { margin-left: auto; opacity: .8; }
html.in-app .menu__app { display: none; }
@media (display-mode: standalone) { .menu__app { display: none; } }
.menu__list button.menu__logout { color: var(--danger); font-weight: 600; }
.menu__list button.menu__logout:hover { background: var(--danger-soft); color: var(--danger); }
/* prijava kot član (samo superskrbnik, Nenad 15. 11. 2026) */
.menu__list button.menu__imp { color: var(--text); font-weight: 600; }
.menu__list button.menu__imp--back { background: var(--warn-soft, var(--brand-soft)); color: var(--warn-strong, var(--brand-strong)); }
@media (prefers-reduced-motion: reduce) { .menu__admin .menu__go { transition: none; } }
/* menija v zgornji vrstici (Nenad, 13. 11. 2026 – »bolje povezano z ikono«): puščica pod odprtim gumbom kaže na meni,
 * meni je 10 px pod gumbom (app.js placeMenu nastavi top in najvišjo višino – ne čez spodnji meni na telefonu, dolg meni se drsi) */
.topbar .menu > button { position: relative; }
.topbar .menu > .btn--icon { border-radius: var(--r-full); }
.topbar .menu > button[aria-expanded="true"]::after {
    content: ""; position: absolute; left: 50%; top: calc(100% + 3px); z-index: calc(var(--z-dropdown) + 1);
    width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); pointer-events: none;
    background: var(--surface); border: solid var(--line); border-width: 1px 0 0 1px; border-radius: 3px 0 0 0;
    animation: menu-caret var(--t-fast) var(--ease);
}
@keyframes menu-caret { from { opacity: 0; } }
/* ikona uporabnika enako velika kot zvonec (40 px), brez sivega roba gumba (iPhone ob dotiku ohrani :hover) */
.topbar .menu__me { --btn-bg: transparent; height: 40px; border: 0; }
.topbar .menu__me > .avatar { width: 40px; height: 40px; font-size: 14px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
@media (hover: hover) { .topbar .menu__me:hover > .avatar { box-shadow: inset 0 0 0 2px var(--line-strong), inset 0 0 0 3.5px var(--surface); } }
/* odprt meni: obroč znotraj kroga – ikona ostane 40 px kot zvonec (ta ob odprtju obarva rob) */
.topbar .menu > button[aria-expanded="true"] .avatar { box-shadow: inset 0 0 0 2px var(--brand), inset 0 0 0 3.5px var(--surface); }
.topbar .menu__list:not(.inbox__panel) { overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .topbar .menu > button[aria-expanded="true"]::after { animation: none; } }

/* ---------- sistemsko obvestilo (pas nad vsebino) ---------- */
.notice-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center;
    max-width: 1080px; margin: -4px auto 20px; padding: 12px 12px 12px 14px;
    border-radius: var(--r-card); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
    background: linear-gradient(100deg, var(--brand-soft), var(--surface) 70%);
    box-shadow: var(--shadow-1); animation: notice-in 260ms var(--ease);
}
.notice-bar__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1); }
.notice-bar__text { display: grid; gap: 1px; min-width: 0; }
.notice-bar__text b { font-weight: 650; font-size: 14px; }
.notice-bar__text span { font-size: 13px; color: var(--text-2); }
.notice-bar__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; }
.notice-bar__actions .btn--primary { margin-right: auto; }
.notice-bar__actions form:last-child { margin-left: auto; }
.notice-bar__actions .btn--primary + form:last-child, .notice-bar__actions form + form:last-child { margin-left: 0; }
@media (min-width: 720px) {
    .notice-bar { grid-template-columns: auto 1fr auto; padding: 10px 10px 10px 14px; }
    .notice-bar__actions { grid-column: auto; }
    .notice-bar__actions .btn--primary { margin-right: 4px; }
}
/* telefon: kompaktna ena vrstica (ikona · naslov · dejanje · zapri), brez daljšega besedila */
@media (max-width: 719px) {
    .notice-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 6px 8px 10px; margin-bottom: 14px; }
    .notice-bar__icon { width: 30px; height: 30px; border-radius: 9px; }
    .notice-bar__icon .ico { width: 18px; height: 18px; }
    .notice-bar__text span { display: none; }
    .notice-bar__text b { font-size: 13.5px; line-height: 1.25; }
    .notice-bar__actions { grid-column: auto; gap: 2px; }
    .notice-bar__actions .btn--primary { margin: 0; }
    .notice-bar__actions form:has(input[value="snooze"]) { display: none; }
}
@keyframes notice-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .notice-bar { animation: none; } }

/* ---------- obvestila (toast): ikona po vrsti, naslov + besedilo, zapri, časovni trak ---------- */
.toasts { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; left: auto; right: 24px; transform: none; width: 400px; } }
body.auth .toasts { bottom: calc(var(--safe-b) + 16px); }
.toast {
    --tc: var(--ok); --tc-soft: var(--ok-soft);
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 12px 8px 13px 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; pointer-events: auto; touch-action: pan-y;
    background: var(--surface); color: var(--text);
    box-shadow: 0 22px 44px -18px rgb(10 14 30 / .38), 0 3px 10px -2px rgb(10 14 30 / .08);
    animation: toast-in 420ms var(--ease) both;
}
.toast--error { --tc: var(--danger); --tc-soft: var(--danger-soft); }
.toast--info { --tc: var(--brand); --tc-soft: var(--brand-soft); }
.toast__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tc-soft); color: var(--tc); }
.toast__ic svg { width: 18px; height: 18px; }
.toast--ok .toast__ic svg { animation: toast-check 520ms 120ms var(--ease) both; stroke-dasharray: 24; }
.toast__body { display: grid; gap: 1px; min-width: 0; }
.toast__title { font-size: 14.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; overflow-wrap: anywhere; }
.toast__text { font-size: 13.5px; line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; }
.toast__x { display: grid; place-items: center; align-self: start; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.toast__x svg { width: 16px; height: 16px; }
.toast__x:hover { background: var(--surface-3); color: var(--text); }
.toast--single .toast__x { align-self: center; }
.toast--act { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.toast__act { align-self: center; padding: 7px 10px; border: 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font: 650 13.5px/1 var(--font); white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.toast__act:hover { filter: brightness(.97); }
.toast__act:disabled { opacity: .5; cursor: default; }
.toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tc); opacity: .5; transform-origin: 0 50%; animation: toast-bar var(--dur, 4000ms) linear forwards; }
.toast:hover .toast__bar, .toast:focus-within .toast__bar, .toast.is-held .toast__bar { animation-play-state: paused; }
.toast.is-leaving { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity 220ms ease, transform 220ms var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@keyframes toast-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
:root[data-theme="dark"] .toast { background: var(--surface-2); border-color: var(--line-strong); box-shadow: 0 22px 44px -16px rgb(0 0 0 / .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--surface-2); border-color: var(--line-strong); box-shadow: 0 22px 44px -16px rgb(0 0 0 / .7); } }
@media (prefers-reduced-motion: reduce) {
    .toast { animation: toast-fade 200ms ease both; }
    .toast--ok .toast__ic svg { animation: none; }
    .toast.is-leaving { transform: none; }
}
@keyframes toast-fade { from { opacity: 0; } }

/* ---------- pomoč ---------- */
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.kbd { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrap { white-space: nowrap; } /* uporablja se v tabelah (datumi, zneski, številke računov) */
/* skrij samo na telefonu (na namizju ostane privzeti display elementa – tudi celice tabele) */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

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

/* ---------- prijava in registracija ---------- */
body.auth { background: var(--surface); }
.auth__grid { display: grid; min-height: 100dvh; grid-template-columns: 1fr; }
.auth__brand { display: none; }
.auth__main { display: flex; flex-direction: column; padding: 20px 20px calc(32px + var(--safe-b)); }
.auth__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8vh; }
.auth__logo-m img { height: 20px; width: auto; }
.auth__card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth__card h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth__lead { color: var(--muted); margin-bottom: 24px; }
.auth__card .stack { gap: 14px; }
.auth__card .field + .field { margin-top: 0; }
.auth__card .alert { margin-bottom: 20px; }
.auth__card a.small { color: var(--text-2); font-weight: 500; }
.auth__card a.small:hover { color: var(--brand); }
.auth__switch { margin-top: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.invite-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 6px 0 24px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--text); font-weight: 600; font-size: 14px; }
:root[data-theme="dark"] .auth__logo-m img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth__logo-m img { filter: brightness(0) invert(1); } }
/* napaka nad obrazcem (auth/_error.php) */
.auth-alert { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent); border-radius: 14px; animation: auth-shake 440ms var(--ease) both; }
.auth-alert > .ico { width: 22px; height: 22px; margin-top: 1px; }
.auth-alert b { display: block; font-size: 15px; color: var(--text); }
.auth-alert p { margin: 2px 0 0; line-height: 1.45; }
.auth-alert__act { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 600; color: var(--danger); text-decoration: none; }
.auth-alert__act:hover { text-decoration: underline; }
@keyframes auth-shake { 0% { transform: translateX(0); } 18% { transform: translateX(-7px); } 36% { transform: translateX(6px); } 54% { transform: translateX(-4px); } 72% { transform: translateX(2px); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .auth-alert { animation: none; } }

@media (min-width: 960px) {
    .auth__grid { grid-template-columns: minmax(400px, 46%) 1fr; }
    /* leva plošča: ORTI v telefonu, plavajoče kartice, sij in tloris igrišča */
    .auth__brand {
        position: sticky; top: 0; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px;
        overflow: hidden; isolation: isolate; padding: 36px 48px 44px; color: #fff;
        background: radial-gradient(120% 80% at 80% 0%, #1b2350 0%, var(--navy) 55%, #070a1a 100%);
    }
    .auth__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
    .auth__glow { position: absolute; width: 760px; height: 760px; right: -280px; top: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(240 80 29 / .38), rgb(240 80 29 / .1) 50%, transparent 72%); filter: blur(8px); animation: auth-glow 10s ease-in-out infinite alternate; }
    .auth__glow--b { right: auto; left: -360px; top: auto; bottom: -380px; width: 680px; height: 680px; background: radial-gradient(closest-side, rgb(64 92 255 / .26), transparent 70%); animation-delay: -5s; }
    .auth__court {
        position: absolute; left: -10%; right: -10%; bottom: -6%; height: 46%; opacity: .3;
        border: 2px solid rgb(255 255 255 / .12); border-radius: 4px; transform: perspective(700px) rotateX(58deg); transform-origin: 50% 100%;
        background:
            linear-gradient(rgb(255 255 255 / .12), rgb(255 255 255 / .12)) 50% 0 / 2px 100% no-repeat,
            linear-gradient(rgb(255 255 255 / .09), rgb(255 255 255 / .09)) 50% 22% / 62% 2px no-repeat,
            linear-gradient(rgb(255 255 255 / .09), rgb(255 255 255 / .09)) 50% 78% / 62% 2px no-repeat,
            linear-gradient(rgb(255 255 255 / .09), rgb(255 255 255 / .09)) 19% 50% / 2px 56% no-repeat,
            linear-gradient(rgb(255 255 255 / .09), rgb(255 255 255 / .09)) 81% 50% / 2px 56% no-repeat;
    }
    .auth__logo { align-self: start; }
    .auth__logo img { height: 24px; width: auto; filter: brightness(0) invert(1); }
    .auth__stage { display: grid; place-items: center; min-height: 0; }
    .auth__device { position: relative; zoom: .86; }
    .auth__phone { transform: perspective(1800px) rotateY(-14deg) rotateX(5deg) rotateZ(-1.5deg); box-shadow: 0 0 0 1px rgb(255 255 255 / .1) inset, 0 60px 110px -30px rgb(0 0 0 / .85), 0 0 140px -30px rgb(240 80 29 / .5); }
    /* plavajoče kartice (svetle, kot obvestila v aplikaciji) */
    .auth__float {
        position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 300px; padding: 12px 16px 12px 12px;
        border-radius: 18px; background: rgb(255 255 255 / .96); color: #121729; box-shadow: 0 24px 48px -18px rgb(0 0 0 / .65), 0 0 0 1px rgb(255 255 255 / .5) inset;
        backdrop-filter: blur(8px); animation: auth-float 7s ease-in-out infinite;
    }
    .auth__float b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
    .auth__float small { display: block; margin-top: 1px; font-size: 12.5px; color: #6b7386; }
    .auth__float--a { left: -128px; top: 34%; }
    .auth__float--b { right: -118px; top: 12%; animation-delay: -2.4s; }
    .auth__float--c { right: -96px; bottom: 14%; animation-delay: -4.6s; }
    .auth__fic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; }
    .auth__fic .ico { width: 20px; height: 20px; }
    .auth__fic--ok { background: #e7f6ec; color: #15803d; }
    .auth__fic--res { background: #fff0ea; color: var(--brand); }
    .auth__fic--mm { background: #eef0ff; color: #4f46e5; }
    .auth__pitch { position: relative; max-width: 480px; }
    .auth__claim { font-size: clamp(30px, 2.7vw, 42px); line-height: 1.06; font-weight: 680; letter-spacing: -.04em; text-wrap: balance; }
    .auth__sub { margin-top: 14px; color: rgb(255 255 255 / .72); font-size: 16px; max-width: 36ch; }
    @keyframes auth-float { 50% { transform: translateY(-8px); } }
    @keyframes auth-glow { to { transform: translate(-40px, 30px) scale(1.06); } }
    .auth__main { padding: 32px 48px; }
    .auth__top { justify-content: flex-end; margin-bottom: 0; }
    .auth__logo-m { display: none; }
    .auth__card { margin: auto; }
}
@media (min-width: 960px) and (max-height: 900px) { .auth__device { zoom: .74; } }
@media (min-width: 960px) and (max-height: 780px) { .auth__device { zoom: .64; } .auth__brand { padding-block: 28px 32px; } .auth__claim { font-size: clamp(26px, 2.3vw, 34px); } }
@media (min-width: 960px) and (max-height: 660px) { .auth__stage { display: none; } .auth__brand { grid-template-rows: auto 1fr auto; } }
@media (min-width: 960px) and (max-width: 1180px) { .auth__float--a { left: -70px; } .auth__float--b, .auth__float--c { right: -60px; } .auth__float { max-width: 240px; } }
@media (prefers-reduced-motion: reduce) { .auth__float, .auth__glow { animation: none; } }

/* ---------- seznam klubov ---------- */
.club-mark--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.club-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .club-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .club-grid { grid-template-columns: repeat(3, 1fr); } }
.club-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: var(--r-card);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
    transition: border-color var(--t-fast), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.club-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.club-card:active { transform: scale(.99); }
.club-card__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.club-card__body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-card__body span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.club-card__go { color: var(--faint); width: 18px; height: 18px; }
.search-bar { position: relative; margin-bottom: 16px; max-width: 520px; }
.search-bar .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-bar .input { padding-left: 38px; height: 44px; }

/* ---------- domača stran: naslednji termini ---------- */
.home-next { margin-bottom: 8px; }
.home-next__item { text-decoration: none; color: inherit; }
.home-next__date { display: grid; justify-items: center; width: 52px; flex: none; padding: 6px 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); line-height: 1.1; }
.home-next__date b { font-size: 20px; font-variant-numeric: tabular-nums; }
.home-next__date small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- spodnja vrstica z gumbom + (kot v ZR) ---------- */
.tabbar__fab { display: grid; place-items: center; text-decoration: none; }
.tabbar__fab > span {
    display: grid; place-items: center; width: 56px; height: 56px; margin-top: -22px; border-radius: 50%;
    background: var(--brand); color: var(--brand-ink);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand) 70%, transparent), 0 0 0 5px var(--bg);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.tabbar__fab .ico { width: 28px; height: 28px; stroke-width: 2.2; }
.tabbar__fab:active > span { transform: scale(.92); }
@media (prefers-reduced-motion: reduce) { .tabbar__fab:active > span { transform: none; } }

/* ---------- predogled kot značka (pas na vseh straneh kluba) ---------- */
.preview-bar {
    position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 8;
    display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; max-width: 1180px; margin: -8px auto 16px; padding: 10px 10px 10px 14px;
    border-radius: var(--r-ctl); background: var(--info); color: #fff; box-shadow: var(--shadow-2); font-size: 13.5px; font-weight: 550;
}
.preview-bar .ico { flex: none; }
.preview-bar__text { flex: 1 1 240px; min-width: 0; }
.preview-bar .select--sm { width: auto; min-width: 150px; background-color: #fff; color: #121729; }
.preview-bar .btn--dark { background: rgb(0 0 0 / .25); border-color: transparent; color: #fff; }
@media (max-width: 700px) {
    .preview-bar { position: static; margin: -4px 0 12px; }
    .preview-bar__form { flex: 1; }
    .preview-bar .select--sm { width: 100%; }
}
/* prijava kot član: pas v barvi opozorila (drugačen od predogleda), ime člana in pot nazaj */
.preview-bar--imp { background: #b4410f; }
.preview-bar--imp .avatar { flex: none; box-shadow: 0 0 0 2px rgb(255 255 255 / .7); }
.preview-bar--imp .preview-bar__text b { display: block; font-weight: 700; }
.preview-bar--imp .preview-bar__text small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
@media (max-width: 700px) { /* telefon: ne pripeto (ne prekrije glave koledarja), brez opisa */
    .preview-bar--imp { padding: 8px 8px 8px 10px; gap: 8px; }
    .preview-bar--imp .preview-bar__text { flex-basis: 150px; }
    .preview-bar--imp .preview-bar__text small { display: none; }
}
/* stalna oznaka v glavi (pasica na telefonu zdrsne iz pogleda, ko koledar podrsa do zdaj) */
.menu__me--imp .avatar, .topbar .menu__me--imp > .avatar, .topbar .menu__me--imp:hover > .avatar { box-shadow: inset 0 0 0 2.5px #b4410f, inset 0 0 0 4px var(--surface); }
/* okno »Prijavi se kot član« */
.imp-dlg { width: min(560px, calc(100vw - 24px)); }
.imp-dlg__lead { margin: 0 0 12px; }
.imp-dlg__search { position: relative; }
.imp-dlg__search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.imp-dlg__search .input { padding-left: 36px; }
.imp-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; min-height: 240px; align-content: start; }
.imp-list__note { padding: 18px 8px; color: var(--muted); font-size: 14px; }
.imp-list__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--text); cursor: pointer; }
.imp-list__btn:hover, .imp-list__btn:focus-visible { background: var(--surface-3); }
.imp-list__btn:disabled { opacity: .5; cursor: progress; }
.imp-list__who { display: grid; min-width: 0; }
.imp-list__who b { font-weight: 600; font-size: 14.5px; }
.imp-list__who small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- »Tvoja sezona«: izpostavljena kartica (Moje, Moja statistika) ---------- */
.season-cta {
    position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; color: #fff; text-decoration: none;
    background: radial-gradient(140% 140% at 0% 0%, #ff7a45, #f0501d 35%, #2a0d04 85%);
    box-shadow: 0 14px 30px -14px rgb(240 80 29 / .7), inset 0 0 0 1px rgb(255 255 255 / .12);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.season-cta::after { /* svetlobni prelet */
    content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .22) 50%, transparent 58%);
    transform: translateX(-70%); animation: season-shine 4.5s ease-in-out 1s infinite;
}
@keyframes season-shine { 0% { transform: translateX(-70%); } 30%, 100% { transform: translateX(70%); } }
.season-cta__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.season-cta__ic .ico { width: 26px; height: 26px; animation: season-twinkle 2.6s ease-in-out infinite; }
@keyframes season-twinkle { 50% { transform: scale(1.12) rotate(8deg); } }
.season-cta__txt { display: grid; gap: 2px; min-width: 0; }
.season-cta__txt small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.season-cta__txt b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.season-cta__txt span { font-size: 13px; color: rgb(255 255 255 / .82); }
.season-cta__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #f0501d; }
.season-cta__go .ico { width: 18px; height: 18px; }
@media (hover: hover) { .season-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgb(240 80 29 / .8), inset 0 0 0 1px rgb(255 255 255 / .18); } }
.season-cta:active { transform: scale(.99); }
@media (prefers-reduced-motion: reduce) { .season-cta, .season-cta::after, .season-cta__ic .ico { animation: none; transition: none; } .season-cta::after { display: none; } }


/* ---------- prehodi med stranmi v nameščeni aplikaciji (Safari 18.2+, Chrome 126+; Nenad, 11. 11. 2026) ----------
   Vsebina se mehko zamenja, glava in spodnji meni ostaneta na mestu (brez belega utripa). Samo v aplikaciji (v brskalniku ima
   Safari ob potegu nazaj svojo animacijo – bila bi dvojna) in brez zmanjšanega gibanja; nazaj/naprej brez prehoda (layouts/app.php › pagereveal). */
@media (display-mode: standalone) and (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    .topbar { view-transition-name: topbar; }
    .tabbar { view-transition-name: tabbar; }
}
::view-transition-group(topbar), ::view-transition-group(tabbar) { animation: none; }
::view-transition-old(topbar), ::view-transition-old(tabbar) { display: none; }
::view-transition-new(topbar), ::view-transition-new(tabbar) { animation: none; }
::view-transition-old(root) { animation: 120ms ease-out both orti-vt-out; }
::view-transition-new(root) { animation: 260ms cubic-bezier(.16, 1, .3, 1) both orti-vt-in; }
@keyframes orti-vt-out { to { opacity: 0; } }
@keyframes orti-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- »Naša podpora« (partials/support_card.php): čarovnik, Pregled, Pomoč, Odprite klub ---------- */
.sup-card { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface) 60%); box-shadow: var(--shadow-1); }
.sup-card__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sup-card__photo { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #ffd0bd)); }
.sup-card__photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.sup-card__id { display: grid; gap: 1px; min-width: 0; }
.sup-card__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.sup-card__id b { font-size: 15.5px; line-height: 1.25; }
.sup-card__role { font-size: 12.5px; color: var(--muted); }
.sup-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.sup-card__acts { display: grid; gap: 6px; }
.sup-card__act { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 550; text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast); }
.sup-card__act span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-card__act .ico { flex: none; color: var(--brand); }
.sup-card__act:hover { border-color: var(--line-strong); background: var(--surface-2); }
.sup-card__act--main { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.sup-card__act--main .ico { color: var(--brand-ink); }
.sup-card__act--main:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.sup-card--compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.sup-card--compact .sup-card__acts { grid-auto-flow: column; }
.sup-card--compact .sup-card__act span { display: none; }
.sup-card--compact .sup-card__act { min-width: 40px; justify-content: center; padding: 8px; }
@media (min-width: 560px) { .sup-card--compact .sup-card__act--main span { display: inline; } .sup-card--compact .sup-card__act--main { padding: 8px 14px; } }
@media (prefers-reduced-motion: reduce) { .sup-card__act { transition: none; } }

/* aplikaciji ORTI za Android (TWA, html.in-twa) in iPhone (html.in-ios) – obe html.in-app: česar Google Play in App Store v aplikaciji ne dovolita (nakup licence) in navodila za namestitev */
.in-app [data-web-only] { display: none !important; }
html:not(.in-app) [data-app-only] { display: none !important; }
html:not(.in-ios) [data-ios-app-only], .in-ios [data-android-app-only] { display: none !important; }

/* gumb »Prenesite iz Google Play« (partials/play_badge.php) – vedno črn, kot uradna značka */
.play-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 12px; border-radius: 10px; background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none; line-height: 1; transition: transform var(--t-fast, .15s) ease, box-shadow var(--t-fast, .15s) ease; }
.play-badge:hover { color: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.play-badge:active { transform: scale(.97); }
.play-badge:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.play-badge__logo { width: 26px; height: 26px; flex: none; }
.play-badge__txt { display: grid; gap: 3px; }
.play-badge__txt small { font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.play-badge__txt b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.play-badge--apple .play-badge__logo { width: 24px; height: 24px; margin-top: -3px; } /* App Store (partials/app_store_badge.php) */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .play-badge { transition: none; } .play-badge:active { transform: none; } }
