/* ==========================================================================
   Puls grada – stilovi
   Načela: boje iz logotipa (crveno srce, tamnoplava), neutralne sive, ravna forumska lista,
   Inter, touch-mete ≥ 48 px, animacije samo transform/opacity (60 fps).
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-medium.woff") format("woff"); }
/* Poppins samo za naziv "Puls grada" (podskup velikih slova, ~5 KB) – kao u logotipu */
@font-face { font-family: "Puls Wordmark"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Puls Wordmark"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-bold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-semibold.woff") format("woff"); }

/* ---------- tokeni ---------- */
:root {
  /* Paleta iz logotipa: crveno srce + tamnoplava (tekst logotipa) na neutralnim sivima */
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --raised: #eef1f4;
  --line: #e1e5eb;
  --line-strong: #cdd4dd;
  --ink: #141a22;
  --ink-2: #3a4553;
  --muted: #66727f;
  --accent: #12294a;          /* tamnoplava iz logotipa (PULS GRADA) – gumbi, aktivna soba */
  --accent-hover: #1c3a64;
  --accent-ink: #ffffff;
  --accent-soft: #e7edf5;
  --own: #eef2f8;
  --brand: #d43a40;           /* crvena pulsa iz logotipa – puls, nove poruke */
  --brand-ink: #12294a;
  --danger: #b42a2f;
  --danger-soft: #fbeceb;
  --focus: #12294a;
  --scrim: rgb(14 20 28 / .44);
  --shadow-sheet: 0 -1px 0 var(--line), 0 -12px 32px rgb(14 20 28 / .10);
  /* avatari – prigušene nijanse, bez "dječjih" boja */
  --av-0: #dfe7f0; --av-0-ink: #33506e;
  --av-1: #e2ece6; --av-1-ink: #2f5b42;
  --av-2: #efe6dc; --av-2-ink: #6b4b2c;
  --av-3: #e9e3ef; --av-3-ink: #54426b;
  --av-4: #f0e2e2; --av-4-ink: #6e3b3b;
  --av-5: #e1ebec; --av-5-ink: #2f5a5e;
  --av-6: #ecebdf; --av-6-ink: #5b5631;
  --av-7: #e6e8eb; --av-7-ink: #444c55;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --bar-h: 56px;
  --tab-h: 48px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #10141a;
    --surface: #161b22;
    --raised: #1e252e;
    --line: #27303b;
    --line-strong: #34404d;
    --ink: #e8edf3;
    --ink-2: #c2cad4;
    --muted: #8a96a4;
    --accent: #b7c9e2;
    --accent-hover: #cfdcee;
    --accent-ink: #0d1a2e;
    --accent-soft: #1b2738;
    --own: #172030;
    --brand: #f0565b;
    --brand-ink: #e8edf3;
    --danger: #f0807b;
    --danger-soft: #2c1b1b;
    --focus: #b7c9e2;
    --scrim: rgb(0 0 0 / .6);
    --shadow-sheet: 0 -1px 0 var(--line), 0 -12px 32px rgb(0 0 0 / .4);
    --av-0: #22303d; --av-0-ink: #a9c1dc;
    --av-1: #213128; --av-1-ink: #a2c8b1;
    --av-2: #33291f; --av-2-ink: #d6b896;
    --av-3: #2b2533; --av-3-ink: #c4b3d8;
    --av-4: #352424; --av-4-ink: #dcaeae;
    --av-5: #1f3133; --av-5-ink: #a1c7ca;
    --av-6: #302f22; --av-6-ink: #d0c99c;
    --av-7: #262a2f; --av-7-ink: #b6bec8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --canvas: #10141a;
    --surface: #161b22;
    --raised: #1e252e;
    --line: #27303b;
    --line-strong: #34404d;
    --ink: #e8edf3;
    --ink-2: #c2cad4;
    --muted: #8a96a4;
    --accent: #b7c9e2;
    --accent-hover: #cfdcee;
    --accent-ink: #0d1a2e;
    --accent-soft: #1b2738;
    --own: #172030;
    --brand: #f0565b;
    --brand-ink: #e8edf3;
    --danger: #f0807b;
    --danger-soft: #2c1b1b;
    --focus: #b7c9e2;
    --scrim: rgb(0 0 0 / .6);
    --shadow-sheet: 0 -1px 0 var(--line), 0 -12px 32px rgb(0 0 0 / .4);
    --av-0: #22303d; --av-0-ink: #a9c1dc;
    --av-1: #213128; --av-1-ink: #a2c8b1;
    --av-2: #33291f; --av-2-ink: #d6b896;
    --av-3: #2b2533; --av-3-ink: #c4b3d8;
    --av-4: #352424; --av-4-ink: #dcaeae;
    --av-5: #1f3133; --av-5-ink: #a1c7ca;
    --av-6: #302f22; --av-6-ink: #d0c99c;
    --av-7: #262a2f; --av-7-ink: #b6bec8;
    color-scheme: dark;
  }

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font: 400 15px/1.47 var(--font);
  font-feature-settings: "calt", "kern";
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- raspored ---------- */
.shell { height: 100dvh; display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--canvas); }
.rail { display: none; }

/* ---------- znak i naslovna traka ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 48px; flex: none; }
.mark { width: 38px; height: auto; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name, .wordmark {
  font-family: "Puls Wordmark", var(--font); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--brand-ink); line-height: 1.15; white-space: nowrap;
}
.brand-name b, .wordmark b { font-weight: 700; }
.presence { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
/* Puls: crvena točka koja "otkucava" – jedini stalni pokret u sučelju */
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: beat 2.4s ease-out infinite; }
@keyframes beat { 0% { transform: scale(1); opacity: .5; } 55%, 100% { transform: scale(2.8); opacity: 0; } }

.bar {
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.bar-room { display: none; }
.bar-actions { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 0 1 auto; }
.me {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px 0 6px; border-radius: var(--r-md);
  max-width: 42vw; min-width: 0; color: var(--ink-2);
}
@media (hover: hover) { .me:hover { background: var(--raised); } }
.me-nick { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: var(--r-md);
  color: var(--muted); cursor: pointer; flex: none;
}
@media (hover: hover) { .icon-btn:hover { background: var(--raised); color: var(--ink); } }
.icon-btn-sm { width: 40px; height: 40px; }
.icon-btn-outline { border: 1px solid var(--line-strong); }
.link-btn { color: var(--accent); font-weight: 500; min-height: 40px; padding: 0 6px; }

/* ---------- avatari ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 600; letter-spacing: -.01em; user-select: none;
  background: var(--av-7); color: var(--av-7-ink);
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.hue-0 { background: var(--av-0); color: var(--av-0-ink); }
.hue-1 { background: var(--av-1); color: var(--av-1-ink); }
.hue-2 { background: var(--av-2); color: var(--av-2-ink); }
.hue-3 { background: var(--av-3); color: var(--av-3-ink); }
.hue-4 { background: var(--av-4); color: var(--av-4-ink); }
.hue-5 { background: var(--av-5); color: var(--av-5-ink); }
.hue-6 { background: var(--av-6); color: var(--av-6-ink); }
.hue-7 { background: var(--av-7); color: var(--av-7-ink); }
.avatar.is-me { background: var(--accent); color: var(--accent-ink); }
.avatar-art, .avatar-art.is-me { background: none; overflow: visible; }
.avatar-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.avatar-art.av-grey svg { filter: grayscale(1); opacity: .75; }
/* odabir avatara u profilu */
.av-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.av-pick button { border: 2px solid transparent; border-radius: 50%; padding: 2px; background: none; cursor: pointer; aspect-ratio: 1; }
.av-pick button svg { width: 100%; height: 100%; display: block; }
.av-pick button[aria-pressed="true"] { border-color: var(--accent); }
.av-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.av-note { font-size: 13px; color: var(--muted); margin: 0 0 4px; }

/* ---------- sobe (kartice) ---------- */
.tabs {
  display: flex; gap: 4px; padding: 0 max(8px, env(safe-area-inset-left));
  height: var(--tab-h); flex: none; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-snap-type: x proximity;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; display: flex; align-items: center; gap: 6px;
  height: var(--tab-h); padding: 0 10px; scroll-snap-align: start;
  color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap;
}
@media (hover: hover) { .tab:hover { color: var(--ink); } }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent);
}
.tab .i { width: 14px; height: 14px; }
.unread { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- status veze ---------- */
.net {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 12px;
  background: var(--raised); color: var(--ink-2); font-size: 13.5px; flex: none; border-bottom: 1px solid var(--line);
}
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- anketa ---------- */
.poll { background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.poll-head {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 16px; text-align: left;
}
.poll-label { font-size: 12.5px; font-weight: 600; color: var(--accent); flex: none; }
.poll-q { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-meta { font-size: 12.5px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.poll-head .i { color: var(--muted); transition: transform .2s var(--ease); }
.poll[data-open="true"] .poll-head .i { transform: rotate(180deg); }
.poll-body { padding: 0 16px 14px; display: grid; gap: 6px; }
.poll-head, .poll-body { max-width: 760px; margin: 0 auto; }
.poll[data-open="false"] .poll-body { display: none; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-align: left;
}
@media (hover: hover) { .poll-opt:hover:not(:disabled) { border-color: var(--line-strong); } }
.poll-opt:disabled { cursor: default; }
.poll-fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--raised);
  transition: transform .45s var(--ease);
}
.poll-opt.chosen { border-color: var(--accent); }
.poll-opt.chosen .poll-fill { background: var(--accent-soft); }
.poll-opt > span:not(.poll-fill) { position: relative; }
.poll-opt-label { font-weight: 500; }
.poll-pct { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.poll-opt.chosen .poll-pct { color: var(--accent); font-weight: 600; }
.poll-note { font-size: 12.5px; color: var(--muted); padding-top: 2px; }

/* ---------- poruke ---------- */
.feed { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.feed-inner { max-width: 760px; margin: 0 auto; padding: 8px 0 16px; }
.feed-top { display: flex; justify-content: center; padding: 8px 0 4px; }
.feed-top:empty { display: none; }
.list { display: flex; flex-direction: column; }

.day {
  display: flex; align-items: center; gap: 12px; margin: 16px 16px 6px; color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.msg {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px;
  padding: 8px 16px 6px; position: relative;
  content-visibility: auto; contain-intrinsic-size: auto 64px; /* preglednik ne crta poruke izvan ekrana */
}
@media (hover: hover) { .msg:hover { background: color-mix(in srgb, var(--raised) 55%, transparent); } }
.msg:focus-visible { outline-offset: -2px; border-radius: 0; }
.msg.own { background: var(--own); }
.msg.cont { padding-top: 1px; }
.msg.cont .msg-head { display: none; }
.msg-side { padding-top: 2px; }
.msg.cont .msg-side { visibility: hidden; height: 0; }
.msg-body { min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-bottom: 1px; }
.nick { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.own .nick { color: var(--accent); }
.tag { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.msg-head time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; margin-left: auto; padding-left: 8px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.msg-text a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.msg-photo {
  display: block; margin: 6px 0 2px; border-radius: var(--r-md); overflow: hidden; background: var(--raised);
  max-width: min(100%, 360px); cursor: zoom-in;
}
.msg-photo img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.msg-expired { font-size: 13px; color: var(--muted); margin-top: 2px; }
.msg-hidden { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; padding: 2px 0; }
.redacted {
  display: inline-block; width: 72px; height: 10px; border-radius: 3px; flex: none;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 14px); filter: blur(1.5px); opacity: .8;
}

.reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.react {
  position: relative; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface); font-size: 13px;
  font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.react::before { content: ""; position: absolute; inset: -9px -3px; } /* proširena touch meta na 48 px */
.react.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h2 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500;
}
@media (hover: hover) { .btn:hover { background: var(--raised); } }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-ghost { border-color: transparent; color: var(--accent); }

.jump {
  position: absolute; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--ink); color: var(--canvas);
  font-size: 13.5px; font-weight: 500; z-index: 5; animation: rise .2s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- traka obavijesti (nova verzija / instalacija) ---------- */
.banner {
  display: flex; align-items: center; gap: 10px; margin: 0 auto; width: 100%; max-width: 760px;
  padding: 6px 6px 6px 16px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; flex: none;
}
.banner span { flex: 1; min-width: 0; }

/* ---------- unos poruke ---------- */
.composer {
  flex: none; background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.composer-row { display: flex; align-items: flex-end; gap: 4px; max-width: 760px; margin: 0 auto; }
.composer textarea {
  flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 140px; margin: 2px 0;
  padding: 11px 14px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--canvas);
  color: var(--ink); line-height: 20px; outline: none;
}
.composer textarea:focus { border-color: var(--accent); background: var(--surface); }
.composer textarea::placeholder { color: var(--muted); }
.send {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-ink); transition: opacity .15s;
}
.send:disabled { opacity: .4; cursor: default; }
.send .i { width: 20px; height: 20px; }
.counter { max-width: 760px; margin: 2px auto 0; text-align: right; font-size: 12px; color: var(--muted); padding-right: 60px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); }
.preview { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); }
.preview img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }
.preview-info { flex: 1; font-size: 13px; color: var(--muted); }
.locked {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
  padding: 0 16px calc(env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.locked .i { width: 16px; height: 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: min(92vw, 440px); padding: 11px 16px; border-radius: var(--r-md);
  background: var(--ink); color: var(--canvas); font-size: 14px; z-index: 60; animation: rise .2s var(--ease);
}

/* ---------- prozori (bottom sheet na mobitelu) ---------- */
.sheet {
  border: 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); margin: auto auto 0; width: 100%; max-width: 520px;
  max-height: 86dvh; overflow-y: auto; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sheet);
}
.sheet[open] { animation: sheet-in .24s var(--ease); }
.sheet::backdrop { background: var(--scrim); animation: fade .2s; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet h2 { font-size: 18px; font-weight: 600; letter-spacing: -.012em; margin-bottom: 6px; }
.sheet-text { color: var(--ink-2); margin-bottom: 16px; }
.sheet-preview {
  color: var(--ink-2); font-size: 14px; padding: 0 4px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sheet-preview:empty { display: none; }
.sheet-list { display: flex; flex-direction: column; }
.sheet-item {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 8px; border-radius: var(--r-md);
  text-align: left; font-weight: 500;
}
@media (hover: hover) { .sheet-item:hover { background: var(--raised); } }
.sheet-item .i { color: var(--muted); }
.sheet-item-danger, .sheet-item-danger .i { color: var(--danger); }
.sheet-item:disabled { opacity: .45; cursor: default; }
.sheet-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.sheet-buttons .btn { flex: 1; }
.react-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.react-grid button {
  height: 56px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: 24px; line-height: 1;
}
.react-grid button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.react-grid button:active { transform: scale(.96); }

.field-row { display: flex; gap: 8px; }
.field {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink); outline: none;
}
.field:focus { border-color: var(--accent); background: var(--surface); }
.field-error { color: var(--danger); font-size: 13.5px; margin-top: 8px; }
.prose { color: var(--ink-2); }
.prose h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.prose ul, .steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.steps { margin-top: 8px; }

.viewer { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: rgb(0 0 0 / .94); }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: #000; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; color: #fff; background: rgb(255 255 255 / .12); }

.blocked { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.blocked-box { max-width: 380px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.blocked-box h2 { font-size: 18px; font-weight: 600; }
.blocked-box p { color: var(--ink-2); }
.blocked-link { font-size: 14px; color: var(--ink-2); text-underline-offset: 2px; }

/* ---------- širi ekrani: sobe u bočnoj traci ---------- */
@media (min-width: 900px) {
  .rail {
    display: flex; flex-direction: column; width: 264px; flex: none; padding: 12px 12px 16px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .rail .brand { padding: 0 8px; margin-bottom: 12px; }
  .rail-rooms { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
  .rail-room {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; text-align: left;
    padding: 10px 12px; border-radius: var(--r-md); color: var(--ink-2); min-height: 48px;
  }
  @media (hover: hover) { .rail-room:hover { background: var(--raised); } }
  .rail-room[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }
  .rail-room-name { font-weight: 500; display: flex; align-items: center; gap: 6px; }
  .rail-room-name .i { width: 14px; height: 14px; color: var(--muted); }
  .rail-room-desc { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail-room-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .rail-foot { font-size: 12px; color: var(--muted); padding: 0 8px; }
  .bar .brand { display: none; }
  .bar { padding-left: 20px; }
  .bar-room { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .bar-room-name { font-weight: 600; font-size: 16px; letter-spacing: -.011em; }
  .bar-room-desc { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs { display: none; }
  .sheet { margin: auto; border-radius: var(--r-lg); padding: 20px 20px 20px; }
  .sheet-handle { display: none; }
  .sheet[open] { animation: fade .16s; }
  .jump { bottom: 84px; }
}
.rail-room-count:empty { display: none; }
/* Najuži mobiteli: u zaglavlju samo avatar, nadimak je u izborniku */
@media (max-width: 360px) { .me-nick { display: none; } .me { padding: 0 10px; } }

/* Početni ekran (instalirana aplikacija). Vidljiv od prvog iscrtavanja; JS ga skriva čim se spoji,
   a ako JS zakaže, sam nestaje nakon 3 s. */
.splash { display: none; }
@media (display-mode: standalone) {
  .splash { display: grid; }
}
.standalone .splash { display: grid; }
.splash {
  position: fixed; inset: 0; z-index: 100; place-items: center; background: #fff; /* logo je na bijeloj podlozi i u tamnoj temi */
  animation: splash-out .35s ease 3s forwards;
}
.splash img { width: min(72vw, 300px); height: auto; }
.splash.done { animation: splash-out .3s ease forwards; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* Pravila: znak i naziv kao u logotipu */
.lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lockup .mark { width: 56px; }
.lockup-sub { display: block; font-family: "Puls Wordmark", var(--font); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .dot::after { animation: none; display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   v3 – teme, događaji, oglasi, karma i rangovi
   ========================================================================== */
:root {
  --gold: #8a6512; --gold-soft: #f6efdd;
  --ok: #2f6b45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --gold: #e2bf6e; --gold-soft: #2c2616; --ok: #8fcaa4; }
}
:root[data-theme="dark"] { --gold: #e2bf6e; --gold-soft: #2c2616; --ok: #8fcaa4; }

/* ---------- nadimak + rang u zaglavlju ---------- */
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-align: left; }
.me-rank { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-rank:empty { display: none; }

/* ---------- značke uz nadimak ---------- */
.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; flex: none;
  font-size: 11px; font-weight: 600; letter-spacing: .01em; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--ink-2); align-self: center;
}
.badge-domaci { border-color: var(--line-strong); color: var(--ink-2); }
.badge-kronicar { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge-legenda { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.badge-new { border-style: dashed; color: var(--muted); font-weight: 500; }
.badge-admin { background: #d9483c; border-color: transparent; color: #fff; }
.as-official { opacity: .45; filter: grayscale(1); }
.as-official[aria-pressed="true"] { opacity: 1; filter: none; box-shadow: inset 0 0 0 2px #d9483c; }
.composer.is-official textarea { box-shadow: inset 0 0 0 2px #d9483c; }
.nt-official { margin-top: 10px; }
.badge-mod { background: var(--accent-soft, #e7edf5); border-color: transparent; color: var(--accent, #12294a); }
.sheet-mod { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.sheet-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 4px 2px; }
.mod-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); min-height: 44px; }
.mod-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--danger); }
.sheet-buttons-wrap { flex-wrap: wrap; }
.md-options { display: contents; }
.nf-prefs { display: grid; gap: 6px; margin: 4px 0 8px; }
.nf-prefs small { color: var(--muted); font-size: 12.5px; }
.nf-prefs .mod-check input { accent-color: var(--accent, #12294a); }
.nf-foot { font-size: 12.5px; color: var(--muted); }
.badge-official { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.avatar-official { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.avatar-official img { width: 26px; height: auto; display: block; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }

/* ---------- razgovor | teme ---------- */
.subnav { flex: none; background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px max(12px, env(safe-area-inset-left)); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 760px; margin: 0 auto; padding: 3px; border-radius: 12px; background: var(--raised); }
.seg-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: 9px;
  color: var(--muted); font-weight: 500; font-size: 14px; position: relative;
}
.seg-btn .i { width: 18px; height: 18px; }
.seg-btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(14 20 28 / .08), 0 0 0 1px var(--line); }
.seg-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg-count:empty { display: none; }

/* ---------- traka otvorene teme ---------- */
.topic-bar {
  flex: none; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 4px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topic-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.topic-bar-room { font-size: 12px; color: var(--muted); }
.topic-bar-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- prikvačeno pravilo sobe ---------- */
.notice {
  flex: none; display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; font-size: 13.5px; color: var(--ink-2);
  background: var(--raised); border-bottom: 1px solid var(--line);
}
.notice .i { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.notice p { max-width: 720px; }
.notice-strict { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--danger); border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; margin-right: 8px; line-height: 18px; vertical-align: 1px; }

/* ---------- popis tema ---------- */
.topics { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.topics-inner { max-width: 760px; margin: 0 auto; padding: 4px 0 24px; }
.topic-list { display: flex; flex-direction: column; }
.topic {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--line); cursor: pointer; position: relative; width: 100%;
  content-visibility: auto; contain-intrinsic-size: auto 96px;
}
.topic.has-leaf { grid-template-columns: 52px 1fr auto; }
@media (hover: hover) { .topic:hover { background: color-mix(in srgb, var(--raised) 55%, transparent); } }
.topic-main { min-width: 0; display: grid; gap: 3px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.topic-tags:empty { display: none; }
.tg { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.tg .i { width: 14px; height: 14px; }
.tg-pin { color: var(--accent); font-weight: 600; }
.tg-type { color: var(--ink); font-weight: 600; }
.tg-closed { color: var(--muted); }
.tg-sep::before { content: "·"; margin-right: 6px; color: var(--line-strong); }
.topic-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.008em; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.topic.unseen .topic-title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 8px; vertical-align: 2px; }
.topic-preview { color: var(--ink-2); font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.topic-meta .who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.topic-meta .nick { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.topic-meta .badge { height: 16px; font-size: 10.5px; padding: 0 5px; }
.topic-meta .stats { white-space: nowrap; }
.topic-thumb { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; background: var(--raised); }
.topic.is-past { opacity: .62; }
.topic-renew { justify-self: start; margin-top: 6px; }

/* kalendarski listić */
.leaf {
  width: 52px; border-radius: var(--r-md); border: 1px solid var(--line-strong); overflow: hidden; text-align: center; background: var(--surface);
  display: grid;
}
.leaf-mon { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--brand); color: #fff; padding: 2px 0; }
.leaf-day { font-size: 20px; font-weight: 600; line-height: 1.2; padding: 3px 0 1px; font-variant-numeric: tabular-nums; }
.leaf-rel { font-size: 10.5px; color: var(--brand); font-weight: 600; padding-bottom: 3px; }
.leaf-rel:empty { display: none; }
.is-past .leaf-mon { background: var(--muted); }

/* filtri oglasnika */
.filters { display: grid; gap: 6px; padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; overflow: visible; padding: 0; margin-bottom: 4px; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; position: relative;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.chip::before { content: ""; position: absolute; inset: -6px 0; } /* touch meta 48 px */
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- gumb za novu temu ---------- */
.newtopic-bar {
  flex: none; display: grid; gap: 6px; justify-items: stretch; background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.newtopic-bar .btn { max-width: 760px; width: 100%; margin: 0 auto; }
.newtopic-bar .btn.is-locked { background: var(--raised); border-color: var(--line-strong); color: var(--ink-2); }
.newtopic-note { text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- otvorena tema: kartica na vrhu ---------- */
.topic-card { margin: 8px 16px 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 6px; }
.topic-card h1 { font-size: 18px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; overflow-wrap: anywhere; }
.topic-card .tc-line { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.topic-card .tc-line .i { width: 17px; height: 17px; color: var(--muted); }
.topic-card .tc-foot { font-size: 12.5px; color: var(--muted); }

.locked { gap: 10px; flex-wrap: wrap; text-align: center; }
.composer-row .icon-btn.is-locked { opacity: .45; }

/* ---------- profil ---------- */
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-id { flex: 1; min-width: 0; }
.pf-id h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pf-badges { display: flex; gap: 6px; }
.pf-karma { padding: 14px 16px; border-radius: var(--r-lg); background: var(--raised); display: grid; gap: 10px; }
.pf-karma-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pf-karma-num { color: var(--muted); font-size: 14px; }
.pf-karma-num b { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.pf-rank { font-weight: 600; color: var(--accent); }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.pf-next { font-size: 13.5px; color: var(--ink-2); }
.pf-h { font-size: 14px; font-weight: 600; margin: 20px 0 6px; }
.privs { list-style: none; margin: 0; padding: 0; display: grid; }
.privs li { display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.privs li:last-child { border-bottom: 0; }
.privs .i { width: 18px; height: 18px; color: var(--ok); }
.privs li.locked-priv { color: var(--muted); }
.privs li.locked-priv .i { color: var(--muted); }
.privs .need { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pf-details { border-top: 1px solid var(--line); margin-top: 12px; }
.pf-details summary { min-height: 48px; display: flex; align-items: center; font-weight: 500; cursor: pointer; list-style: none; }
.pf-details summary::-webkit-details-marker { display: none; }
.pf-details summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); }
.pf-details[open] summary::after { content: "–"; }
.pf-rules { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.ledger { list-style: none; margin: 0 0 8px; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger .lg-when { grid-column: 1; font-size: 12px; color: var(--muted); }
.ledger .lg-d { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger .plus { color: var(--ok); } .ledger .minus { color: var(--danger); }
.ledger-empty { color: var(--muted); font-size: 14px; padding: 4px 0 12px; }
.pf-actions { margin-top: 8px; }

/* ---------- prijenos profila ---------- */
.tr-step { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.tr-step h3 { font-size: 14px; font-weight: 600; }
.tr-step .field-row { width: 100%; }
.tr-code { display: grid; gap: 4px; justify-items: start; }
.tr-code .link-btn { padding: 0; }
.tr-code-text { font: 600 24px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ink); user-select: all; }
.tr-code-exp, .tr-foot, .tr-warn { font-size: 13px; color: var(--muted); }
.tr-warn { color: var(--danger); }
.tr-input { text-transform: uppercase; letter-spacing: .06em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- nova tema ---------- */
.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.lbl .opt { font-weight: 400; color: var(--muted); }
.field-area { width: 100%; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
#ntName { width: 100%; }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.nt-grid .field { width: 100%; }
.nt-photo { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.nt-photo .preview { width: 100%; margin: 0; }
.nt-photo .btn.is-locked { opacity: .55; }
.nt-rule { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 380px) { .nt-grid { grid-template-columns: 1fr; } }

/* obavijest o novom rangu */
.toast.toast-rank { background: var(--accent); color: var(--accent-ink); font-weight: 500; }

@media (min-width: 900px) {
  .subnav { padding: 8px 20px; }
  /* poravnato s tekstom tema/poruka u središnjem stupcu od 760 px */
  .seg { margin: 0 0 0 max(0px, calc((100% - 760px) / 2 + 16px)); max-width: 360px; }
  .topic-bar { padding: 0 12px 0 8px; }
  .rail-room-kind { font-size: 11px; color: var(--muted); }
}

/* ==========================================================================
   v4 – gradovi i reklame
   ========================================================================== */
.muted-inline { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ---------- početni ekran: odabir grada ---------- */
.picker {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: var(--canvas);
  display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.picker-box { width: 100%; max-width: 440px; display: grid; gap: 8px; }
.picker .lockup { margin-bottom: 20px; }
.picker .wordmark { font-size: 20px; }
.picker-title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.picker-text { color: var(--ink-2); margin-bottom: 16px; }
.city-list { display: grid; gap: 10px; }
.city {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; text-align: left;
  padding: 16px 16px 16px 18px; min-height: 76px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 1px 2px rgb(14 20 28 / .04);
}
@media (hover: hover) { .city:hover { border-color: var(--line-strong); } }
.city[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.city-name { font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.city-sub { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.city-online { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.city-online .i { width: 18px; height: 18px; color: var(--muted); transform: rotate(-90deg); }
.picker-foot { font-size: 13px; color: var(--muted); text-align: center; margin-top: 18px; }
.picker-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.picker-legal a, .pf-legal a, .rules-links a { color: inherit; text-underline-offset: 2px; }
.pf-legal { font-size: 13px; color: var(--muted); text-align: center; margin: 16px 0 4px; }
.rules-links { font-size: 13.5px; margin-top: 16px; }
.picker .btn-ghost { justify-self: center; }

/* ---------- reklame ---------- */
.promo-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.promo-bar {
  flex: none; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; min-height: 52px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.promo-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; color: var(--ink); text-decoration: none; max-width: 760px; margin: 0 auto; }
.promo-thumb { width: 36px; height: 36px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--raised); }
.promo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.promo-line { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-link .i { width: 18px; height: 18px; color: var(--muted); flex: none; margin-left: auto; transform: rotate(-90deg); }
.promo-close { color: var(--muted); }

.promo-card {
  display: grid; gap: 6px; margin: 12px 16px; padding: 14px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
@media (hover: hover) { a.promo-card:hover { border-color: var(--line-strong); } }
.promo-card img { width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: var(--r-md); background: var(--raised); }
.promo-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.promo-card p { font-size: 14px; color: var(--ink-2); }
.promo-domain { font-size: 12.5px; color: var(--accent); font-weight: 500; }

/* slogan iz logotipa */
.tagline { display: block; font-family: "Puls Wordmark", var(--font); font-weight: 500; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.picker .lockup .mark { width: 64px; }
