/* ==================== NOVOGODIŠNJI IZGLED (18.10.2026) ====================
   Uključuje se klasom html.kk-novogodisnje (js/sezona.js; prekidač u Postavkama,
   samo za administratora; zajedničko za sve je config/izgled.novogodisnji).
   Kad je isključen, ništa od ovoga se ne prikazuje niti troši.
   Sve što se kreće je transform/opacity (grafički čip): snijeg, sjaj lampica.
   Brzi režim i „smanji pokrete“ gase snijeg i treptanje. */

:root { --kk-pahulja: rgba(255, 255, 255, 0.92); --kk-pahulja-mala: rgba(255, 255, 255, 0.75); }
[data-theme="light"] { --kk-pahulja: rgba(132, 156, 192, 0.85); --kk-pahulja-mala: rgba(150, 172, 205, 0.7); }

/* ---------- Snijeg ---------- */
.kk-snijeg { display: none; pointer-events: none; overflow: hidden; }
html.kk-novogodisnje .kk-snijeg { display: block; }
.kk-snijeg-sajt { position: fixed; inset: 0; z-index: 998; }
.kk-snijeg-uvod { position: absolute; inset: 0; z-index: 0; }
/* Pahulje su POJEDINAČNI sitni elementi (40 na računaru, 24 na telefonu), ne
   slojevi preko cijelog ekrana: grafički čip u svakom kadru pomjera samo
   par desetina tačkica. Ranija verzija (3 sloja × cijeli ekran) je na
   telefonu primjetno obarala broj kadrova (prijava vlasnika 18.10.2026).
   Svaka pahulja: --l lijevo, --s veličina, --t trajanje pada, --d kašnjenje
   (negativno = već u letu kad se stranica otvori), --dx zanošenje, --o prozirnost. */
.kk-snijeg i {
    position: absolute;
    top: -8px;
    left: var(--l);
    width: var(--s); height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, var(--kk-pahulja) 0 58%, transparent 76%);
    opacity: var(--o);
    will-change: transform;
    animation: kkPahulja var(--t) linear var(--d) infinite;
}
@keyframes kkPahulja {
    from { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(calc(var(--dx) * 0.6), 52vh, 0); }
    to   { transform: translate3d(var(--dx), calc(100vh + 16px), 0); }
}
/* Jačina snijega (admin klizač, config/izgled.snijeg 0–10; <html data-snijeg>):
   stepen L prikazuje 8·L pahulja na računaru i ~4.8·L na telefonu; 5 = umjereno
   (40 / 24). Skrivene pahulje (display:none) ne troše ništa. */
html[data-snijeg="0"] .kk-snijeg i:nth-child(n+1) { display: none; }
html[data-snijeg="1"] .kk-snijeg i:nth-child(n+9) { display: none; }
html[data-snijeg="2"] .kk-snijeg i:nth-child(n+17) { display: none; }
html[data-snijeg="3"] .kk-snijeg i:nth-child(n+25) { display: none; }
html[data-snijeg="4"] .kk-snijeg i:nth-child(n+33) { display: none; }
html:not([data-snijeg]) .kk-snijeg i:nth-child(n+41), html[data-snijeg="5"] .kk-snijeg i:nth-child(n+41) { display: none; }
html[data-snijeg="6"] .kk-snijeg i:nth-child(n+49) { display: none; }
html[data-snijeg="7"] .kk-snijeg i:nth-child(n+57) { display: none; }
html[data-snijeg="8"] .kk-snijeg i:nth-child(n+65) { display: none; }
html[data-snijeg="9"] .kk-snijeg i:nth-child(n+73) { display: none; }
html[data-snijeg="10"] .kk-snijeg i:nth-child(n+81) { display: none; }
@media (max-width: 768px) {
    html[data-snijeg="0"] .kk-snijeg i:nth-child(n+1) { display: none; }
    html[data-snijeg="1"] .kk-snijeg i:nth-child(n+6) { display: none; }
    html[data-snijeg="2"] .kk-snijeg i:nth-child(n+11) { display: none; }
    html[data-snijeg="3"] .kk-snijeg i:nth-child(n+15) { display: none; }
    html[data-snijeg="4"] .kk-snijeg i:nth-child(n+20) { display: none; }
    html:not([data-snijeg]) .kk-snijeg i:nth-child(n+25), html[data-snijeg="5"] .kk-snijeg i:nth-child(n+25) { display: none; }
    html[data-snijeg="6"] .kk-snijeg i:nth-child(n+30) { display: none; }
    html[data-snijeg="7"] .kk-snijeg i:nth-child(n+35) { display: none; }
    html[data-snijeg="8"] .kk-snijeg i:nth-child(n+39) { display: none; }
    html[data-snijeg="9"] .kk-snijeg i:nth-child(n+44) { display: none; }
    html[data-snijeg="10"] .kk-snijeg i:nth-child(n+49) { display: none; }
}
/* Klizač u Postavkama */
.kk-snijeg-red { flex-wrap: wrap; cursor: default; }
.kk-snijeg-red input[type="range"] { flex: 1 1 100%; margin: 6px 0 2px; accent-color: var(--primary); height: 28px; cursor: pointer; }

/* ---------- Lampice duž zaglavlja ---------- */
.navbar > .kk-girlanda {
    display: none;
    position: absolute;
    left: 26px; right: 26px; bottom: -15px;
    height: 28px;
    pointer-events: none;
    z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2228%22 viewBox=%220 0 200 28%22%3E%3Cpath d=%22M0,5 Q25,15 50,5 T100,5 T150,5 T200,5%22 fill=%22none%22 stroke=%22%233a3324%22 stroke-width=%221.3%22/%3E%3Crect x=%2223.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%2225%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%23FF4D4D%22/%3E%3Cellipse cx=%2223.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3Crect x=%2273.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%2275%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%23FFC83D%22/%3E%3Cellipse cx=%2273.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3Crect x=%22123.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%22125%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%233DDC84%22/%3E%3Cellipse cx=%22123.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3Crect x=%22173.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%22175%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%234DB2FF%22/%3E%3Cellipse cx=%22173.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3C/svg%3E") repeat-x 0 0 / 200px 28px;
}
[data-theme="light"] .navbar > .kk-girlanda { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2228%22 viewBox=%220 0 200 28%22%3E%3Cpath d=%22M0,5 Q25,15 50,5 T100,5 T150,5 T200,5%22 fill=%22none%22 stroke=%22%239a8a6a%22 stroke-width=%221.3%22/%3E%3Crect x=%2223.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%2225%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%23FF4D4D%22/%3E%3Cellipse cx=%2223.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3Crect x=%2273.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%2275%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%23FFC83D%22/%3E%3Cellipse cx=%2273.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3Crect x=%22123.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%22125%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%233DDC84%22/%3E%3Cellipse cx=%22123.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3Crect x=%22173.0%22 y=%229%22 width=%224%22 height=%223.2%22 rx=%220.8%22 fill=%22%236b5a2e%22/%3E%3Cellipse cx=%22175%22 cy=%2217%22 rx=%223.4%22 ry=%225%22 fill=%22%234DB2FF%22/%3E%3Cellipse cx=%22173.9%22 cy=%2215%22 rx=%221%22 ry=%221.8%22 fill=%22rgba(255,255,255,0.65)%22/%3E%3C/svg%3E"); }
html.kk-novogodisnje .navbar > .kk-girlanda { display: block; }
.kk-girlanda i {
    position: absolute; inset: -6px 0;
    background-repeat: repeat-x;
    background-position: 0 6px;
    background-size: 200px 28px;
    will-change: opacity;
    animation: kkLampica 2.6s ease-in-out infinite alternate;
}
.kk-girlanda i:nth-child(1) { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2228%22 viewBox=%220 0 200 28%22%3E%3Cdefs%3E%3CradialGradient id=%22g0%22%3E%3Cstop offset=%220%22 stop-color=%22%23FF4D4D%22 stop-opacity=%220.85%22/%3E%3Cstop offset=%221%22 stop-color=%22%23FF4D4D%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3CradialGradient id=%22g2%22%3E%3Cstop offset=%220%22 stop-color=%22%233DDC84%22 stop-opacity=%220.85%22/%3E%3Cstop offset=%221%22 stop-color=%22%233DDC84%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx=%2225%22 cy=%2217%22 r=%2211%22 fill=%22url(%23g0)%22/%3E%3Ccircle cx=%22125%22 cy=%2217%22 r=%2211%22 fill=%22url(%23g2)%22/%3E%3C/svg%3E"); }
.kk-girlanda i:nth-child(2) { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2228%22 viewBox=%220 0 200 28%22%3E%3Cdefs%3E%3CradialGradient id=%22g1%22%3E%3Cstop offset=%220%22 stop-color=%22%23FFC83D%22 stop-opacity=%220.85%22/%3E%3Cstop offset=%221%22 stop-color=%22%23FFC83D%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3CradialGradient id=%22g3%22%3E%3Cstop offset=%220%22 stop-color=%22%234DB2FF%22 stop-opacity=%220.85%22/%3E%3Cstop offset=%221%22 stop-color=%22%234DB2FF%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx=%2275%22 cy=%2217%22 r=%2211%22 fill=%22url(%23g1)%22/%3E%3Ccircle cx=%22175%22 cy=%2217%22 r=%2211%22 fill=%22url(%23g3)%22/%3E%3C/svg%3E"); animation-delay: -1.3s; }
@keyframes kkLampica { from { opacity: 0.15; } to { opacity: 1; } }

/* ---------- Kapa na kočiji (logo u zaglavlju, podnožju i uvodu) ---------- */
.kk-kapa { display: none; }
html.kk-novogodisnje .kk-kapa { display: inline; }

/* ---------- Snježna kapa na zlatnom dugmetu „Dodaj oglas“ ---------- */
html.kk-novogodisnje .bottom-nav .bn-add-circle::before {
    /* Snijeg leži tačno na luku kruga: deblji na vrhu, tanji niz strane. */
    content: '';
    position: absolute;
    left: -2px; right: -2px; top: -5px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2234%22 height=%2218%22 viewBox=%220 0 34 18%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M2.40,16.56 L2.72,15.38 L3.05,14.43 L3.37,13.61 L3.70,12.88 L4.02,12.21 L4.35,11.60 L4.67,11.03 L5.00,10.49 L5.32,9.98 L5.64,9.50 L5.97,9.04 L6.29,8.61 L6.62,8.19 L6.94,7.79 L7.27,7.41 L7.59,7.04 L7.92,6.69 L8.24,6.36 L8.56,6.03 L8.89,5.73 L9.21,5.43 L9.54,5.15 L9.86,4.88 L10.19,4.62 L10.51,4.38 L10.84,4.14 L11.16,3.92 L11.48,3.72 L11.81,3.52 L12.13,3.34 L12.46,3.16 L12.78,3.00 L13.11,2.86 L13.43,2.72 L13.76,2.59 L14.08,2.48 L14.40,2.38 L14.73,2.29 L15.05,2.21 L15.38,2.15 L15.70,2.10 L16.03,2.05 L16.35,2.02 L16.68,2.01 L17.00,2.00 L17.32,2.01 L17.65,2.02 L17.97,2.05 L18.30,2.10 L18.62,2.15 L18.95,2.21 L19.27,2.29 L19.60,2.38 L19.92,2.48 L20.24,2.59 L20.57,2.72 L20.89,2.86 L21.22,3.00 L21.54,3.16 L21.87,3.34 L22.19,3.52 L22.52,3.72 L22.84,3.92 L23.16,4.14 L23.49,4.38 L23.81,4.62 L24.14,4.88 L24.46,5.15 L24.79,5.43 L25.11,5.73 L25.44,6.03 L25.76,6.36 L26.08,6.69 L26.41,7.04 L26.73,7.41 L27.06,7.79 L27.38,8.19 L27.71,8.61 L28.03,9.04 L28.36,9.50 L28.68,9.98 L29.00,10.49 L29.33,11.03 L29.65,11.60 L29.98,12.21 L30.30,12.88 L30.63,13.61 L30.95,14.43 L31.28,15.38 L31.60,16.56 L31.60,16.56 L31.28,15.39 L30.95,14.49 L30.63,13.73 L30.30,13.07 L29.98,12.48 L29.65,11.94 L29.33,11.46 L29.00,11.01 L28.68,10.59 L28.36,10.20 L28.03,9.84 L27.71,9.49 L27.38,9.17 L27.06,8.87 L26.73,8.59 L26.41,8.32 L26.08,8.06 L25.76,7.82 L25.44,8.30 L25.11,8.51 L24.79,8.50 L24.46,8.39 L24.14,8.17 L23.81,7.86 L23.49,7.39 L23.16,6.33 L22.84,6.18 L22.52,6.05 L22.19,5.93 L21.87,6.31 L21.54,7.26 L21.22,7.62 L20.89,7.78 L20.57,7.82 L20.24,7.74 L19.92,7.56 L19.60,7.25 L19.27,6.75 L18.95,5.72 L18.62,5.09 L18.30,5.06 L17.97,5.03 L17.65,5.01 L17.32,5.00 L17.00,6.45 L16.68,7.22 L16.35,7.66 L16.03,7.92 L15.70,8.05 L15.38,8.06 L15.05,7.95 L14.73,7.69 L14.40,7.22 L14.08,6.22 L13.76,5.36 L13.43,5.43 L13.11,5.51 L12.78,5.61 L12.46,6.49 L12.13,7.15 L11.81,7.55 L11.48,7.81 L11.16,7.98 L10.84,8.06 L10.51,8.04 L10.19,7.88 L9.86,7.34 L9.54,6.99 L9.21,7.18 L8.89,7.38 L8.56,7.60 L8.24,7.82 L7.92,8.06 L7.59,8.32 L7.27,8.59 L6.94,8.87 L6.62,9.17 L6.29,9.49 L5.97,9.84 L5.64,10.20 L5.32,10.59 L5.00,11.01 L4.67,11.46 L4.35,11.94 L4.02,12.48 L3.70,13.07 L3.37,13.73 L3.05,14.49 L2.72,15.39 L2.40,16.56 Z%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M9.54,5.95 L9.86,5.68 L10.19,5.42 L10.51,5.18 L10.84,4.94 L11.16,4.72 L11.48,4.52 L11.81,4.32 L12.13,4.14 L12.46,3.96 L12.78,3.80 L13.11,3.66 L13.43,3.52 L13.76,3.39 L14.08,3.28 L14.40,3.18 L14.73,3.09 L15.05,3.01 L15.38,2.95 L15.70,2.90 L16.03,2.85 L16.35,2.82 L16.68,2.81 L17.00,2.80 L17.32,2.81 L17.65,2.82 L17.97,2.85 L18.30,2.90 L18.62,2.95 L18.95,3.01 L19.27,3.09 L19.60,3.18 L19.92,3.28 L20.24,3.39 L20.57,3.52 L20.89,3.66 L21.22,3.80 L21.54,3.96 L21.87,4.14 L22.19,4.32 L22.52,4.52 L22.84,4.72 L23.16,4.94 L23.49,5.18 L23.81,5.42 L24.14,5.68 L24.46,5.95%22 fill=%22none%22 stroke=%22rgba(170,195,230,0.6)%22 stroke-width=%220.8%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
    pointer-events: none;
    z-index: 1;
    transform-origin: 50% 100%;
}

/* ---------- Snježna kapa na dugmetu „Objavi oglas“ (zaglavlje, računar) ---------- */
/* Dugme ima overflow:hidden (odsjaj u svijetloj temi prelazi preko njega),
   pa bi odsjeklo snijeg iznad sebe. clip + margina pušta 14 px oko dugmeta
   (snijeg stane), a odsjaj u mirovanju ostaje daleko van tih 14 px. */
html.kk-novogodisnje .nav-post-btn { position: relative; overflow: clip !important; overflow-clip-margin: 14px; }
html.kk-novogodisnje .nav-post-btn::before {
    /* Tri dijela: krajevi nacrtani TAČNO po zaobljenju dugmeta (poluprečnik
       21.8 px = pola visine), sredina se rasteže — snijeg prijanja uz dugme
       bez obzira na širinu. Najdeblji u sredini, tanji niz krajeve. */
    content: '';
    position: absolute;
    left: 0; right: 0; top: -12px;
    height: 30px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2221.8%22 height=%2230%22 viewBox=%220 0 21.8 30%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0.60,28.72 L0.95,27.41 L1.31,26.32 L1.66,25.38 L2.01,24.53 L2.37,23.76 L2.72,23.05 L3.07,22.39 L3.43,21.76 L3.78,21.18 L4.13,20.62 L4.49,20.09 L4.84,19.58 L5.19,19.09 L5.55,18.63 L5.90,18.18 L6.25,17.75 L6.61,17.33 L6.96,16.93 L7.31,16.54 L7.67,16.16 L8.02,15.79 L8.37,15.44 L8.73,15.09 L9.08,14.76 L9.43,14.44 L9.79,14.12 L10.14,13.82 L10.49,13.52 L10.85,13.23 L11.20,12.95 L11.55,12.67 L11.91,12.41 L12.26,12.15 L12.61,11.89 L12.97,11.65 L13.32,11.41 L13.67,11.18 L14.03,10.95 L14.38,10.73 L14.73,10.52 L15.09,10.31 L15.44,10.11 L15.79,9.91 L16.15,9.72 L16.50,9.53 L16.85,9.36 L17.21,9.18 L17.56,9.01 L17.91,8.85 L18.27,8.69 L18.62,8.54 L18.97,8.39 L19.33,8.25 L19.68,8.11 L20.03,7.98 L20.39,7.85 L20.74,7.73 L21.09,7.62 L21.45,7.51 L21.80,7.40 L21.80,12.00 L21.45,12.00 L21.09,12.01 L20.74,12.03 L20.39,12.05 L20.03,12.07 L19.68,12.10 L19.33,12.14 L18.97,12.18 L18.62,12.23 L18.27,13.56 L17.91,14.08 L17.56,14.41 L17.21,14.63 L16.85,14.77 L16.50,14.82 L16.15,14.80 L15.79,14.67 L15.44,14.39 L15.09,13.73 L14.73,13.18 L14.38,13.30 L14.03,13.43 L13.67,13.57 L13.32,13.72 L12.97,13.87 L12.61,14.03 L12.26,14.20 L11.91,14.37 L11.55,14.56 L11.20,14.75 L10.85,14.95 L10.49,15.16 L10.14,15.38 L9.79,15.61 L9.43,15.85 L9.08,16.10 L8.73,16.36 L8.37,16.63 L8.02,16.91 L7.67,17.20 L7.31,17.51 L6.96,17.83 L6.61,18.17 L6.25,18.52 L5.90,18.89 L5.55,19.27 L5.19,19.68 L4.84,20.10 L4.49,20.55 L4.13,21.03 L3.78,21.53 L3.43,22.07 L3.07,22.64 L2.72,23.26 L2.37,23.92 L2.01,24.65 L1.66,25.46 L1.31,26.37 L0.95,27.42 L0.60,28.72 Z%22 fill=%22%23ffffff%22/%3E%3C/svg%3E") left top / 21.8px 30px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2221.8%22 height=%2230%22 viewBox=%220 0 21.8 30%22 preserveAspectRatio=%22none%22%3E%3Cg transform=%22translate(21.8 0) scale(-1 1)%22%3E%3Cpath d=%22M0.60,28.72 L0.95,27.41 L1.31,26.32 L1.66,25.38 L2.01,24.53 L2.37,23.76 L2.72,23.05 L3.07,22.39 L3.43,21.76 L3.78,21.18 L4.13,20.62 L4.49,20.09 L4.84,19.58 L5.19,19.09 L5.55,18.63 L5.90,18.18 L6.25,17.75 L6.61,17.33 L6.96,16.93 L7.31,16.54 L7.67,16.16 L8.02,15.79 L8.37,15.44 L8.73,15.09 L9.08,14.76 L9.43,14.44 L9.79,14.12 L10.14,13.82 L10.49,13.52 L10.85,13.23 L11.20,12.95 L11.55,12.67 L11.91,12.41 L12.26,12.15 L12.61,11.89 L12.97,11.65 L13.32,11.41 L13.67,11.18 L14.03,10.95 L14.38,10.73 L14.73,10.52 L15.09,10.31 L15.44,10.11 L15.79,9.91 L16.15,9.72 L16.50,9.53 L16.85,9.36 L17.21,9.18 L17.56,9.01 L17.91,8.85 L18.27,8.69 L18.62,8.54 L18.97,8.39 L19.33,8.25 L19.68,8.11 L20.03,7.98 L20.39,7.85 L20.74,7.73 L21.09,7.62 L21.45,7.51 L21.80,7.40 L21.80,12.00 L21.45,12.00 L21.09,12.01 L20.74,12.03 L20.39,12.05 L20.03,12.07 L19.68,12.10 L19.33,12.14 L18.97,12.18 L18.62,12.23 L18.27,13.56 L17.91,14.08 L17.56,14.41 L17.21,14.63 L16.85,14.77 L16.50,14.82 L16.15,14.80 L15.79,14.67 L15.44,14.39 L15.09,13.73 L14.73,13.18 L14.38,13.30 L14.03,13.43 L13.67,13.57 L13.32,13.72 L12.97,13.87 L12.61,14.03 L12.26,14.20 L11.91,14.37 L11.55,14.56 L11.20,14.75 L10.85,14.95 L10.49,15.16 L10.14,15.38 L9.79,15.61 L9.43,15.85 L9.08,16.10 L8.73,16.36 L8.37,16.63 L8.02,16.91 L7.67,17.20 L7.31,17.51 L6.96,17.83 L6.61,18.17 L6.25,18.52 L5.90,18.89 L5.55,19.27 L5.19,19.68 L4.84,20.10 L4.49,20.55 L4.13,21.03 L3.78,21.53 L3.43,22.07 L3.07,22.64 L2.72,23.26 L2.37,23.92 L2.01,24.65 L1.66,25.46 L1.31,26.37 L0.95,27.42 L0.60,28.72 Z%22 fill=%22%23ffffff%22/%3E%3C/g%3E%3C/svg%3E") right top / 21.8px 30px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22124%22 height=%2230%22 viewBox=%220 0 124 30%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0.00,7.40 L0.78,7.37 L1.55,7.33 L2.33,7.29 L3.10,7.24 L3.88,7.19 L4.65,7.14 L5.42,7.08 L6.20,7.03 L6.97,6.97 L7.75,6.91 L8.53,6.85 L9.30,6.78 L10.07,6.72 L10.85,6.66 L11.62,6.59 L12.40,6.52 L13.18,6.46 L13.95,6.39 L14.72,6.32 L15.50,6.26 L16.27,6.19 L17.05,6.12 L17.82,6.05 L18.60,5.98 L19.38,5.92 L20.15,5.85 L20.93,5.78 L21.70,5.71 L22.48,5.64 L23.25,5.58 L24.02,5.51 L24.80,5.44 L25.57,5.38 L26.35,5.31 L27.12,5.25 L27.90,5.18 L28.68,5.12 L29.45,5.06 L30.23,5.00 L31.00,4.94 L31.77,4.88 L32.55,4.82 L33.33,4.76 L34.10,4.70 L34.88,4.65 L35.65,4.59 L36.42,4.54 L37.20,4.48 L37.98,4.43 L38.75,4.38 L39.52,4.33 L40.30,4.29 L41.08,4.24 L41.85,4.20 L42.62,4.15 L43.40,4.11 L44.17,4.07 L44.95,4.03 L45.73,3.99 L46.50,3.96 L47.27,3.92 L48.05,3.89 L48.83,3.86 L49.60,3.83 L50.38,3.80 L51.15,3.78 L51.92,3.75 L52.70,3.73 L53.48,3.71 L54.25,3.69 L55.02,3.67 L55.80,3.66 L56.58,3.64 L57.35,3.63 L58.12,3.62 L58.90,3.61 L59.67,3.61 L60.45,3.60 L61.23,3.60 L62.00,3.60 L62.77,3.60 L63.55,3.60 L64.33,3.61 L65.10,3.61 L65.88,3.62 L66.65,3.63 L67.42,3.64 L68.20,3.66 L68.97,3.67 L69.75,3.69 L70.53,3.71 L71.30,3.73 L72.08,3.75 L72.85,3.78 L73.62,3.80 L74.40,3.83 L75.17,3.86 L75.95,3.89 L76.72,3.92 L77.50,3.96 L78.28,3.99 L79.05,4.03 L79.83,4.07 L80.60,4.11 L81.38,4.15 L82.15,4.20 L82.92,4.24 L83.70,4.29 L84.47,4.33 L85.25,4.38 L86.03,4.43 L86.80,4.48 L87.58,4.54 L88.35,4.59 L89.12,4.65 L89.90,4.70 L90.67,4.76 L91.45,4.82 L92.22,4.88 L93.00,4.94 L93.78,5.00 L94.55,5.06 L95.33,5.12 L96.10,5.18 L96.88,5.25 L97.65,5.31 L98.42,5.38 L99.20,5.44 L99.97,5.51 L100.75,5.58 L101.53,5.64 L102.30,5.71 L103.08,5.78 L103.85,5.85 L104.62,5.92 L105.40,5.98 L106.17,6.05 L106.95,6.12 L107.72,6.19 L108.50,6.26 L109.28,6.32 L110.05,6.39 L110.83,6.46 L111.60,6.52 L112.38,6.59 L113.15,6.66 L113.92,6.72 L114.70,6.78 L115.47,6.85 L116.25,6.91 L117.03,6.97 L117.80,7.03 L118.58,7.08 L119.35,7.14 L120.12,7.19 L120.90,7.24 L121.67,7.29 L122.45,7.33 L123.22,7.37 L124.00,7.40 L124.00,12.00 L123.22,12.00 L122.45,12.00 L121.67,12.00 L120.90,12.00 L120.12,12.00 L119.35,12.59 L118.58,12.93 L117.80,13.05 L117.03,12.93 L116.25,12.59 L115.47,12.00 L114.70,12.00 L113.92,12.00 L113.15,12.00 L112.38,12.00 L111.60,12.00 L110.83,12.00 L110.05,12.00 L109.28,12.08 L108.50,13.33 L107.72,14.02 L106.95,14.38 L106.17,14.34 L105.40,13.91 L104.62,13.16 L103.85,12.00 L103.08,12.00 L102.30,12.00 L101.53,12.00 L100.75,12.00 L99.97,12.00 L99.20,12.00 L98.42,12.00 L97.65,12.00 L96.88,12.00 L96.10,12.00 L95.33,14.43 L94.55,15.79 L93.78,16.69 L93.00,17.00 L92.22,16.69 L91.45,15.79 L90.67,14.43 L89.90,12.00 L89.12,12.00 L88.35,12.00 L87.58,12.00 L86.80,12.00 L86.03,12.00 L85.25,12.00 L84.47,12.00 L83.70,12.00 L82.92,12.00 L82.15,14.00 L81.38,15.40 L80.60,16.42 L79.83,16.99 L79.05,17.05 L78.28,16.57 L77.50,15.63 L76.72,14.31 L75.95,12.00 L75.17,12.00 L74.40,12.00 L73.62,12.00 L72.85,12.00 L72.08,12.00 L71.30,12.00 L70.53,12.00 L69.75,12.00 L68.97,14.08 L68.20,16.87 L67.42,18.91 L66.65,20.30 L65.88,20.90 L65.10,20.64 L64.33,19.55 L63.55,17.76 L62.77,15.34 L62.00,12.00 L61.23,12.00 L60.45,12.00 L59.67,12.00 L58.90,12.00 L58.12,12.00 L57.35,12.00 L56.58,12.00 L55.80,12.00 L55.02,13.88 L54.25,15.33 L53.48,16.40 L52.70,17.05 L51.92,17.21 L51.15,16.85 L50.38,16.02 L49.60,14.80 L48.83,13.11 L48.05,12.00 L47.27,12.00 L46.50,12.00 L45.73,12.00 L44.95,12.00 L44.17,12.00 L43.40,12.00 L42.62,12.00 L41.85,12.00 L41.08,14.51 L40.30,16.19 L39.52,17.38 L38.75,17.98 L37.98,17.91 L37.20,17.18 L36.42,15.89 L35.65,14.11 L34.88,12.00 L34.10,12.00 L33.33,12.00 L32.55,12.00 L31.77,12.00 L31.00,12.00 L30.23,12.00 L29.45,12.00 L28.68,12.00 L27.90,12.00 L27.12,12.00 L26.35,12.37 L25.57,13.74 L24.80,14.60 L24.02,15.09 L23.25,15.14 L22.48,14.73 L21.70,13.94 L20.93,12.77 L20.15,12.00 L19.38,12.00 L18.60,12.00 L17.82,12.00 L17.05,12.00 L16.27,12.00 L15.50,12.00 L14.72,12.00 L13.95,12.00 L13.18,12.00 L12.40,12.00 L11.62,12.00 L10.85,12.29 L10.07,12.82 L9.30,13.15 L8.53,13.23 L7.75,13.04 L6.97,12.64 L6.20,12.00 L5.42,12.00 L4.65,12.00 L3.88,12.00 L3.10,12.00 L2.33,12.00 L1.55,12.00 L0.78,12.00 L0.00,12.00 Z%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M9.30,7.88 L10.07,7.82 L10.85,7.76 L11.62,7.69 L12.40,7.62 L13.18,7.56 L13.95,7.49 L14.72,7.42 L15.50,7.36 L16.27,7.29 L17.05,7.22 L17.82,7.15 L18.60,7.08 L19.38,7.02 L20.15,6.95 L20.93,6.88 L21.70,6.81 L22.48,6.74 L23.25,6.68 L24.02,6.61 L24.80,6.54 L25.57,6.48 L26.35,6.41 L27.12,6.35 L27.90,6.28 L28.68,6.22 L29.45,6.16 L30.23,6.10 L31.00,6.04 L31.77,5.98 L32.55,5.92 L33.33,5.86 L34.10,5.80 L34.88,5.75 L35.65,5.69 L36.42,5.64 L37.20,5.58 L37.98,5.53 L38.75,5.48 L39.52,5.43 L40.30,5.39 L41.08,5.34 L41.85,5.30 L42.62,5.25 L43.40,5.21 L44.17,5.17 L44.95,5.13 L45.73,5.09 L46.50,5.06 L47.27,5.02 L48.05,4.99 L48.83,4.96 L49.60,4.93 L50.38,4.90 L51.15,4.88 L51.92,4.85 L52.70,4.83 L53.48,4.81 L54.25,4.79 L55.02,4.77 L55.80,4.76 L56.58,4.74 L57.35,4.73 L58.12,4.72 L58.90,4.71 L59.67,4.71 L60.45,4.70 L61.23,4.70 L62.00,4.70 L62.77,4.70 L63.55,4.70 L64.33,4.71 L65.10,4.71 L65.88,4.72 L66.65,4.73 L67.42,4.74 L68.20,4.76 L68.97,4.77 L69.75,4.79 L70.53,4.81 L71.30,4.83 L72.08,4.85 L72.85,4.88 L73.62,4.90 L74.40,4.93 L75.17,4.96 L75.95,4.99 L76.72,5.02 L77.50,5.06 L78.28,5.09 L79.05,5.13 L79.83,5.17 L80.60,5.21 L81.38,5.25 L82.15,5.30 L82.92,5.34 L83.70,5.39 L84.47,5.43 L85.25,5.48 L86.03,5.53 L86.80,5.58 L87.58,5.64 L88.35,5.69 L89.12,5.75 L89.90,5.80 L90.67,5.86 L91.45,5.92 L92.22,5.98 L93.00,6.04 L93.78,6.10 L94.55,6.16 L95.33,6.22 L96.10,6.28 L96.88,6.35 L97.65,6.41 L98.42,6.48 L99.20,6.54 L99.97,6.61 L100.75,6.68 L101.53,6.74 L102.30,6.81 L103.08,6.88 L103.85,6.95 L104.62,7.02 L105.40,7.08 L106.17,7.15 L106.95,7.22 L107.72,7.29 L108.50,7.36 L109.28,7.42 L110.05,7.49 L110.83,7.56 L111.60,7.62 L112.38,7.69 L113.15,7.76 L113.92,7.82 L114.70,7.88%22 fill=%22none%22 stroke=%22rgba(170,195,230,0.6)%22 stroke-width=%221.1%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") 21.4px top / calc(100% - 42.8px) 30px no-repeat;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
    pointer-events: none;
    z-index: 1;
    transform-origin: 50% 100%;
}

/* Svijetla tema: bijeli snijeg na kremastoj pozadini treba blagu sivo-plavu ivicu. */
html.kk-novogodisnje[data-theme="light"] .nav-post-btn::before,
html.kk-novogodisnje[data-theme="light"] .bottom-nav .bn-add-circle::before {
    filter: drop-shadow(0 0 0.6px rgba(100, 125, 160, 0.9)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

/* ---------- Klik: dugme se protrese, snijeg otpadne, posle napada novi ----------
   js/sezona.js dodaje redom: kk-otresi (0.6 s) → kk-bez-snijega (4 s) →
   kk-snijeg-raste (1.4 s). Grudvice su posebni elementi (.kk-grudva). */
@keyframes kkTresi {
    0%   { transform: rotate(0deg); }
    14%  { transform: rotate(-7deg); }
    30%  { transform: rotate(6deg); }
    46%  { transform: rotate(-4.5deg); }
    62%  { transform: rotate(3deg); }
    78%  { transform: rotate(-1.5deg); }
    100% { transform: rotate(0deg); }
}
@keyframes kkTresiSiroko {   /* široko dugme: manji ugao, više pomak */
    0%   { transform: translateX(0) rotate(0deg); }
    15%  { transform: translateX(-4px) rotate(-2.4deg); }
    32%  { transform: translateX(4px) rotate(2deg); }
    48%  { transform: translateX(-3px) rotate(-1.4deg); }
    64%  { transform: translateX(2px) rotate(1deg); }
    80%  { transform: translateX(-1px) rotate(-0.4deg); }
    100% { transform: translateX(0) rotate(0deg); }
}
@keyframes kkSnijegOtpada {
    0%   { transform: translateY(0) rotate(0deg) scaleY(1); opacity: 1; }
    25%  { transform: translateY(1px) rotate(-2deg) scaleY(1); opacity: 1; }
    100% { transform: translateY(26px) rotate(5deg) scaleY(0.55); opacity: 0; }
}
@keyframes kkSnijegRaste {
    from { transform: translateY(-2px) scaleY(0.25); opacity: 0; }
    to   { transform: translateY(0) scaleY(1); opacity: 1; }
}
html.kk-novogodisnje .nav-post-btn.kk-otresi { animation: kkTresiSiroko 0.6s ease-in-out !important; }
html.kk-novogodisnje .bottom-nav .bn-item-add.kk-otresi .bn-add-circle { animation: kkTresi 0.6s ease-in-out; }
html.kk-novogodisnje .nav-post-btn.kk-otresi::before,
html.kk-novogodisnje .bottom-nav .bn-item-add.kk-otresi .bn-add-circle::before { animation: kkSnijegOtpada 0.6s cubic-bezier(0.5, 0, 0.9, 0.6) forwards; }
html.kk-novogodisnje .nav-post-btn.kk-bez-snijega::before,
html.kk-novogodisnje .bottom-nav .bn-item-add.kk-bez-snijega .bn-add-circle::before { opacity: 0; }
html.kk-novogodisnje .nav-post-btn.kk-snijeg-raste::before,
html.kk-novogodisnje .bottom-nav .bn-item-add.kk-snijeg-raste .bn-add-circle::before { animation: kkSnijegRaste 1.4s ease-out both; }
.kk-grudva {
    position: fixed;
    z-index: 100050;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 2px rgba(120, 145, 180, 0.6);
    pointer-events: none;
    will-change: transform, opacity;
    animation: kkGrudvaPada var(--t, 0.9s) cubic-bezier(0.45, 0, 0.9, 0.55) forwards;
}
@keyframes kkGrudvaPada {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    70%  { opacity: 1; }
    100% { transform: translate(var(--dx, 0px), var(--dy, 60px)) rotate(var(--r, 90deg)); opacity: 0; }
}

/* ---------- Čestitka na početnoj ---------- */
.kk-cestitka { display: none; }
html.kk-novogodisnje:not(.kk-cestitka-zatvorena) .kk-cestitka {
    display: flex;
    align-items: center;
    gap: 14px;
    /* Gore desno, odmah ispod gornjeg menija (sa otvorenom pretragom) —
       js/sezona.js mjeri meni i upisuje --kk-cest-top; 25.10.2026. Uleti
       ~1,5 s po otvaranju i stoji dok je korisnik ne zatvori na × (tada do
       kraja praznika). Obavještenja se dok stoji spuštaju ispod nje. */
    position: fixed;
    right: 20px;
    top: var(--kk-cest-top, calc(134px + env(safe-area-inset-top, 0px)));
    z-index: 9998;
    width: min(340px, calc(100vw - 40px));
    overflow: hidden;
    margin: 0;
    padding: 14px 44px 14px 16px;
    border-radius: 16px;
    cursor: default;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.65s cubic-bezier(0.34, 1.45, 0.5, 1);
    background:
        url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%2264%22 viewBox=%22-32 -32 64 64%22 fill=%22none%22 stroke=%22%23D4A017%22 stroke-opacity=%220.22%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Cg transform=%22rotate(0)%22%3E%3Cpath d=%22M0,0 V-28 M0,-18 l-6,-6 M0,-18 l6,-6 M0,-9 l-4,-4 M0,-9 l4,-4%22/%3E%3C/g%3E%3Cg transform=%22rotate(60)%22%3E%3Cpath d=%22M0,0 V-28 M0,-18 l-6,-6 M0,-18 l6,-6 M0,-9 l-4,-4 M0,-9 l4,-4%22/%3E%3C/g%3E%3Cg transform=%22rotate(120)%22%3E%3Cpath d=%22M0,0 V-28 M0,-18 l-6,-6 M0,-18 l6,-6 M0,-9 l-4,-4 M0,-9 l4,-4%22/%3E%3C/g%3E%3Cg transform=%22rotate(180)%22%3E%3Cpath d=%22M0,0 V-28 M0,-18 l-6,-6 M0,-18 l6,-6 M0,-9 l-4,-4 M0,-9 l4,-4%22/%3E%3C/g%3E%3Cg transform=%22rotate(240)%22%3E%3Cpath d=%22M0,0 V-28 M0,-18 l-6,-6 M0,-18 l6,-6 M0,-9 l-4,-4 M0,-9 l4,-4%22/%3E%3C/g%3E%3Cg transform=%22rotate(300)%22%3E%3Cpath d=%22M0,0 V-28 M0,-18 l-6,-6 M0,-18 l6,-6 M0,-9 l-4,-4 M0,-9 l4,-4%22/%3E%3C/g%3E%3C/svg%3E") no-repeat right -16px center / 120px 120px,
        linear-gradient(120deg, rgba(212, 160, 23, 0.16) 0%, rgba(214, 40, 40, 0.10) 60%, rgba(61, 220, 132, 0.06) 100%),
        var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.38);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.kk-novogodisnje[data-theme="light"]:not(.kk-cestitka-zatvorena) .kk-cestitka { box-shadow: 0 8px 22px rgba(120, 90, 20, 0.12); }
html.kk-novogodisnje .kk-cestitka.kk-iskocila { transform: translateX(0); }
/* Povlačenje prstom (js/sezona.js): pregledač ne smije da skroluje stranicu ispod. */
.kk-cestitka { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.kk-cestitka:active { cursor: grabbing; }
/* Pluta preko sadržaja — pozadina mora biti puna (var(--bg-card) je providna). */
html.kk-novogodisnje .kk-cestitka { background-color: #15151f; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.kk-novogodisnje[data-theme="light"] .kk-cestitka { background-color: #ffffff; }
/* Dok čestitka stoji, obavještenja izlaze ispod nje, a ne preko. */
html.kk-novogodisnje:not(.kk-cestitka-zatvorena) .toast-container { top: calc(var(--kk-cest-top, calc(134px + env(safe-area-inset-top, 0px))) + 118px); }
body.chat-fullscreen .kk-cestitka { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .kk-cestitka { transition: none; }
}
.kk-cestitka-ikona {
    flex: 0 0 44px; width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #FF6B6B, #C81E1E 60%, #8E1414);
    color: #FFD95A;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(200, 30, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.kk-cestitka-tekst { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kk-cestitka-tekst strong {
    font-size: 1.05rem; font-weight: 800; letter-spacing: 0.2px;
    background: linear-gradient(90deg, #F5D442, #D4A017 55%, #F5D442);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kk-cestitka-tekst span { font-size: 0.86rem; color: var(--text-muted); }
[data-theme="light"] .kk-cestitka-tekst strong { background-image: linear-gradient(90deg, #A8740A, #8B6914 55%, #B8860B); }
.kk-cestitka-x {
    position: absolute; top: 8px; right: 10px;
    width: 28px; height: 28px; border-radius: 50%;
    border: none; background: transparent; color: var(--text-muted);
    font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.kk-cestitka-x:hover { color: var(--text-bright); background: rgba(255, 255, 255, 0.06); }

/* ---------- Postavke: grupa samo za administratora ---------- */
#kk-post-sezona { display: none; }
#kk-post-sezona.kk-vidljivo { display: block; }

/* ---------- Brzi režim i „smanji pokrete“: bez snijega i treptanja ---------- */
html.kk-brzo .kk-snijeg { display: none !important; }
html.kk-brzo .kk-girlanda i { animation: none; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
    .kk-snijeg { display: none !important; }
    .kk-girlanda i { animation: none; opacity: 0.7; }
}
