/* ===== Linkuj.pl – wygląd: ciemny pasek, ranking linków, żółty marker ===== */
:root {
    --bg: #f7f5f0; --bg-soft: #efece4; --card: #ffffff; --text: #17171c; --muted: #5d5d68; --line: #e0dccf;
    --input-bg: #ffffff; --primary: #d4a017; --primary-dark: #8a6508; --hl: #f6dc82;
    --tag-bg: #fbf0d2; --tag-text: #6e5006; --shadow: 0 2px 0 rgba(23,23,28,.06); --shadow-hover: 0 6px 18px rgba(23,23,28,.12);
    --radius: 10px; --grad: #d4a017;
}
:root[data-theme="dark"] {
    --bg: #131318; --bg-soft: #1a1a21; --card: #1d1d25; --text: #f1efe8; --muted: #a3a3b0; --line: #2d2d38;
    --input-bg: #1d1d25; --tag-bg: #3a2e10; --tag-text: #f0d27a; --hl: #f2b705;
}
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, Arial, sans-serif; }
.wrapx { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nagłówek */
.hd { position: sticky; top: 0; z-index: 50; }
.hd .bar1 { background: #17171c; color: #fff; }
.hd .bar1-in { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.hd .logo { color: #fff; flex: none; display: block; }
.hd .logo .logo-svg { height: 38px; width: auto; display: block; }
.hd .bar-search { flex: 1; display: flex; max-width: 560px; }
.hd .bar-search input { flex: 1; min-width: 0; border: 2px solid #3a3a46; border-right: 0; background: #23232c; color: #fff; padding: 9px 14px; border-radius: 8px 0 0 8px; font-size: 1rem; }
.hd .bar-search input::placeholder { color: #9a9aa8; }
.hd .bar-search input:focus { outline: none; border-color: var(--hl); }
.hd .bar-search button { border: 0; background: #f6dc82; color: #17171c; font-weight: 700; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer; }
.hd .bar-add { background: var(--primary); color: #17171c; font-weight: 700; padding: 10px 16px; border-radius: 8px; white-space: nowrap; text-decoration: none; }
.hd .bar-add:hover { background: #e8b730; color:#17171c; text-decoration: none; }
.hd .top-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hd .fs-switch { display: inline-flex; gap: 2px; background: #23232c; padding: 3px; border-radius: 8px; }
.hd .fs-switch button { background: transparent; border: 0; color: #bbb; font-weight: 700; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; line-height: 1; }
.hd .fs-switch .f1 { font-size: .8rem; } .hd .fs-switch .f2 { font-size: 1rem; } .hd .fs-switch .f3 { font-size: 1.2rem; }
.hd .fs-switch button[aria-pressed="true"] { background: #f6dc82; color: #17171c; }
.hd .theme-toggle { background: #23232c; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.hd .menu-btn { display: none; background: #23232c; color: #fff; border: 0; font-size: 1.3rem; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.hd .bar2 { background: var(--card); border-bottom: 2px solid #17171c; }
.hd .bar2-in { display: flex; flex-wrap: wrap; gap: 2px; overflow: visible; }
.hd .bar2 a.lnk { padding: 11px 14px; color: var(--text); font-weight: 600; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; text-decoration: none; }
.hd .bar2 a.lnk:hover { background: var(--bg-soft); }
.hd .bar2 a.lnk.on { border-bottom-color: var(--primary); }

/* hero */
.lk-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.lk-hero-in { display: grid; grid-template-columns: 1fr 260px; gap: 40px; padding-top: 44px; padding-bottom: 44px; align-items: center; }
.lk-kicker { font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--primary); margin: 0 0 8px; font-weight: 700; }
.lk-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.02em; }
.lk-hero h1 mark { background: var(--hl); color: #17171c; padding: 0 .15em; border-radius: 4px; }
.lk-lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 0 20px; }
.lk-quick { display: flex; max-width: 560px; border: 2px solid #17171c; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 4px 4px 0 #17171c; }
.lk-quick input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font-size: 1.05rem; font-family: ui-monospace, Menlo, Consolas, monospace; background: transparent; color: var(--text); }
.lk-quick input:focus { outline: none; }
.lk-quick button { border: 0; background: var(--primary); color: #17171c; font-weight: 700; padding: 0 22px; cursor: pointer; font-size: 1rem; }
.lk-quick button:hover { background: #e8b730; }
.lk-hint { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.lk-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.lk-nums div { background: var(--card); border: 2px solid #17171c; border-radius: 10px; padding: 12px 14px; }
.lk-nums dt { font-size: 1.8rem; font-weight: 800; line-height: 1; font-family: ui-monospace, Menlo, Consolas, monospace; }
.lk-nums dd { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

/* kolumny */
.lk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 32px; padding-bottom: 40px; }
.lk-sec { margin-bottom: 34px; }
.lk-sec-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #17171c; margin-bottom: 4px; padding-bottom: 6px; }
.lk-sec-h h2 { margin: 0; font-size: 1.3rem; }
.lk-sec-h a { font-size: .9rem; font-weight: 600; }

/* wiersz linku */
.lr-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.lr { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lr-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #17171c; color: #f6dc82; font-weight: 800; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.lr-list.plain .lr-n { background: transparent; color: var(--primary); width: 14px; font-size: 1.4rem; }
.lr-main { min-width: 0; }
.lr-t { font-size: 1.12rem; font-weight: 700; color: var(--text); text-decoration: none; }
.lr-t:hover { color: var(--primary); text-decoration: underline; }
.lr-h { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; color: var(--primary-dark); text-decoration: none; margin: 2px 0 4px; overflow-wrap: anywhere; }
:root[data-theme="dark"] .lr-h { color: #f0c75e; }
.lr-h:hover { text-decoration: underline; }
.lr-h.art { color: var(--muted); }
.lr-d { margin: 0 0 6px; color: var(--muted); font-size: .96rem; }
.lr-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); }
.lr-m a { color: var(--muted); font-weight: 600; }
.lr-m a:hover { color: var(--primary); }

/* panel boczny */
.lk-box { background: var(--card); border: 2px solid #17171c; border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.lk-box h2 { font-size: 1.05rem; margin: 0 0 10px; }
.lk-cats, .lk-arts, .lk-tags { list-style: none; margin: 0; padding: 0; }
.lk-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-cats a { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .88rem; color: var(--text); text-decoration: none; font-weight: 600; }
.lk-cats a:hover { background: var(--hl); color: #17171c; border-color: #17171c; }
.lk-cats small { color: var(--muted); }
.lk-arts li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.lk-arts li:last-child { border-bottom: 0; }
.lk-arts a { font-weight: 600; color: var(--text); }
.lk-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.lk-rules { background: var(--hl); border-color: #17171c; color: #17171c; }
:root[data-theme="dark"] .lk-rules { background: #f2b705; }
.lk-rules a { color: #17171c; font-weight: 700; text-decoration: underline; }
.lk-rules ol { margin: 0 0 8px; padding-left: 20px; }
.lk-rules li { margin-bottom: 6px; }
.empty-note { color: var(--muted); padding: 14px 0; }

/* pasek zachęty */
.cta-band { background: #17171c; color: #fff; padding: 40px 0; border-top: 6px solid var(--primary); }
.cta-band h2 { color: #f6dc82; }
.cta-band .cta-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band .btn-pill { background: var(--primary); color: #17171c; border-radius: 8px; box-shadow: none; }
.cta-band .btn-pill.ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.fab { background: var(--primary); color: #17171c; border-radius: 8px; box-shadow: 4px 4px 0 #17171c; }

/* stopka */
.site-foot { background: #0e0e12; color: #c9c9d3; padding: 44px 0 0; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h2 { color: #f6dc82; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, Menlo, Consolas, monospace; margin: 0 0 12px; }
.site-foot nav a { display: block; color: #c9c9d3; padding: 3px 0; text-decoration: none; }
.site-foot nav a:hover { color: #fff; text-decoration: underline; }
.site-foot .foot-logo { color: #fff; margin-bottom: 10px; }
.site-foot .foot-logo .logo-svg { height: 34px; width: auto; }
.site-foot .foot-claim p { margin: 0; font-size: .92rem; max-width: 340px; }
.site-foot .foot-bottom { margin-top: 32px; padding: 16px 20px; border-top: 1px solid #2a2a33; font-size: .85rem; color: #8b8b98; }

/* podstrony: lekki akcent */
a { color: var(--primary-dark); }
:root[data-theme="dark"] a { color: #f0c75e; }
.btn-pill.solid { background: var(--primary); color: #17171c; box-shadow: 3px 3px 0 #17171c; border-radius: 8px; }
.entry-card, .card { border-radius: 10px; }
h1, h2 { letter-spacing: -.01em; }

@media (max-width: 900px) {
    .lk-hero-in, .lk-cols { grid-template-columns: 1fr; }
    .lk-nums { grid-template-columns: repeat(4, 1fr); }
    .site-foot .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .hd .bar1-in { flex-wrap: wrap; }
    .hd .bar-search { order: 5; flex: 1 1 100%; max-width: none; }
    .hd .bar-add { display: none; }
    .hd .menu-btn { display: block; }
    .hd .fs-switch { display: none; }
    .hd .bar2 { display: none; }
    .hd.open .bar2 { display: block; }
    .hd.open .bar2-in { flex-direction: column; }
    .lk-nums { grid-template-columns: 1fr 1fr; }
    .lk-quick button { padding: 0 14px; }
    .site-foot .foot-grid { grid-template-columns: 1fr; }
}

.lk-kicker { color: var(--primary-dark); }
.lr-n { color: #f6dc82; }
.lr-list.plain .lr-n { color: var(--primary); }
button.primary, .btn.primary, input[type=submit] { color: #17171c; }
.lk-right { background: none; border: 0; padding: 0; box-shadow: none; }

/* przyciski na złotym tle: zawsze ciemny napis (także w trybie nocnym) */
a.bar-add, a.btn-pill.solid, a.fab, .cta-band a.btn-pill:not(.ghost), a.btn-pill.submit, button.btn-pill.solid,
:root[data-theme="dark"] a.bar-add, :root[data-theme="dark"] a.btn-pill.solid, :root[data-theme="dark"] a.fab,
:root[data-theme="dark"] .cta-band a.btn-pill:not(.ghost) { color: #17171c !important; }
.cta-band a.btn-pill.ghost, :root[data-theme="dark"] .cta-band a.btn-pill.ghost { color: #fff !important; }
.btn-pill.solid, .btn-pill.submit, a.btn-pill.solid { background: var(--primary); }
:root[data-theme="dark"] .lk-kicker { color: #f0c75e; }

/* formularz szybkiego dodawania: prostokątny przycisk wpasowany w ramkę */
.lk-quick input, .lk-quick button { border-radius: 0 !important; box-shadow: none !important; margin: 0; align-self: stretch; }
.lk-quick input { border: 0 !important; background: transparent !important; }
.lk-quick button { border: 0 !important; border-left: 2px solid #17171c !important; color: #17171c !important; }
.badge-top { background: #17171c; color: #f6dc82; }

/* ===== efekty wizualne (wyłączane przy „ogranicz animacje” w systemie) ===== */
.lk-hero { position: relative; overflow: hidden; }
.lk-hero::before, .lk-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.lk-hero::before { width: 360px; height: 360px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(212,160,23,.35), transparent 70%); animation: lk-float 9s ease-in-out infinite; }
.lk-hero::after { width: 260px; height: 260px; left: 38%; bottom: -140px; background: radial-gradient(circle, rgba(246,220,130,.45), transparent 70%); animation: lk-float 12s ease-in-out infinite reverse; }
.lk-hero-in { position: relative; z-index: 1; }
@keyframes lk-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px, 18px); } }

/* żółty marker „rysuje się” pod słowem Odkrywaj */
.lk-hero h1 mark { background: linear-gradient(var(--hl), var(--hl)) no-repeat left center / 0% 100%; animation: lk-mark .9s .35s ease-out forwards; }
@keyframes lk-mark { to { background-size: 100% 100%; } }

/* wejście elementów hero */
.lk-hero .lk-kicker, .lk-hero h1, .lk-hero .lk-lead, .lk-hero .lk-quick, .lk-hero .lk-hint { animation: lk-up .6s ease-out both; }
.lk-hero h1 { animation-delay: .08s; } .lk-hero .lk-lead { animation-delay: .16s; } .lk-hero .lk-quick { animation-delay: .24s; } .lk-hero .lk-hint { animation-delay: .32s; }
.lk-nums div { animation: lk-pop .5s cubic-bezier(.3,1.5,.5,1) both; }
.lk-nums div:nth-child(2) { animation-delay: .1s; } .lk-nums div:nth-child(3) { animation-delay: .2s; } .lk-nums div:nth-child(4) { animation-delay: .3s; }
@keyframes lk-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lk-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* pole „dodaj link”: poświata po kliknięciu */
.lk-quick { transition: box-shadow .2s, transform .2s; }
.lk-quick:focus-within { box-shadow: 6px 6px 0 var(--primary); transform: translate(-2px,-2px); }

/* złote przyciski: błysk przesuwający się po najechaniu */
.hd .bar-add, .lk-quick button, .cta-band .btn-pill, a.btn-pill.solid, .fab { position: relative; overflow: hidden; }
.hd .bar-add::after, .lk-quick button::after, .cta-band .btn-pill:not(.ghost)::after, a.btn-pill.solid::after, .fab::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); pointer-events: none; }
.hd .bar-add:hover::after, .lk-quick button:hover::after, .cta-band .btn-pill:hover::after, a.btn-pill.solid:hover::after, .fab:hover::after { animation: lk-shine .7s ease; }
@keyframes lk-shine { to { left: 130%; } }
.fab { animation: lk-bob 3.2s ease-in-out infinite; }
@keyframes lk-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* wiersze rankingu */
.lr { transition: background .2s, transform .2s, padding .2s; border-radius: 8px; }
.lr:hover { background: rgba(212,160,23,.1); transform: translateX(4px); padding-left: 8px; }
.lr-n { transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s; }
.lr:hover .lr-n { transform: rotate(-8deg) scale(1.12); }
.lr-list:not(.plain) .lr:nth-child(1) .lr-n { background: linear-gradient(135deg, #f6dc82, #d4a017); color: #17171c; box-shadow: 0 0 0 3px rgba(212,160,23,.35); }
.lr-h { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .25s; text-decoration: none !important; }
.lr-h:hover { background-size: 100% 1px; }

/* pojawianie się sekcji przy przewijaniu (klasa js-on dodawana skryptem) */
.js-on .lk-sec, .js-on .lk-box { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-on .lk-sec.in, .js-on .lk-box.in { opacity: 1; transform: none; }

/* karty wpisów i plakietka pozycjonowania */
.entry-card { transition: transform .2s, box-shadow .2s; }
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(23,23,28,.14); }
.badge-top { animation: lk-pulse 2.4s ease-in-out infinite; }
@keyframes lk-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,.55); } 50% { box-shadow: 0 0 0 6px rgba(212,160,23,0); } }

/* kategorie: złote wypełnienie od lewej */
.lk-cats a { transition: transform .15s, background .2s, border-color .2s; }
.lk-cats a:hover { transform: translateY(-2px) rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
    .lk-hero::before, .lk-hero::after, .fab, .badge-top, .lk-hero .lk-kicker, .lk-hero h1, .lk-hero .lk-lead, .lk-hero .lk-quick, .lk-hero .lk-hint, .lk-nums div { animation: none !important; }
    .lk-hero h1 mark { animation: none; background-size: 100% 100%; }
    .js-on .lk-sec, .js-on .lk-box { opacity: 1; transform: none; transition: none; }
    .lr:hover, .entry-card:hover { transform: none; }
}

/* ikony kategorii (jednokolorowe SVG) */
.cico { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .4em; flex: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cico-e { display: inline-block; width: auto; height: auto; line-height: 1; vertical-align: baseline; }
.lk-cats a, .lr-m a, .entry-meta .tag, .cat-list a { display: inline-flex; align-items: center; }
.lk-cats a .cico { color: var(--primary-dark); }
:root[data-theme="dark"] .lk-cats a .cico { color: #f0c75e; }
.lk-cats a:hover .cico, .lr-m a:hover .cico, .entry-meta .tag:hover .cico { transform: rotate(-12deg) scale(1.2); }
.lr-m .cico { width: 1em; height: 1em; margin-right: .3em; color: var(--primary-dark); }
:root[data-theme="dark"] .lr-m .cico { color: #f0c75e; }
.entry-meta .tag .cico { width: 1em; height: 1em; margin-right: .3em; }

/* „Podlinkuj nas”: plakietka, odznaki, blok na stronie głównej */
.badge-backlink { background: #fff3c4; color: #5c4400; border: 1px solid #d4a017; }
:root[data-theme="dark"] .badge-backlink { background: #3a2e10; color: #f6dc82; }
.bl-item { margin: 14px 0; }
.bl-preview { margin: 6px 0; padding: 12px; background: repeating-conic-gradient(#ececec 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; display: inline-block; }
.bl-item textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.lk-give { background: linear-gradient(135deg, #17171c, #2a2410); color: #fff; }
.lk-give h2 { color: #f6dc82; }
.lk-give p { color: #e6e1d0; margin: 0 0 10px; }
.lk-give .btn-pill { margin-top: 4px; }

/* baner ze zdjęciem pod nagłówkiem strony głównej */
.lk-banner { position: relative; margin: 28px 0 0; border: 2px solid #17171c; border-radius: 14px; overflow: hidden; box-shadow: 5px 5px 0 #17171c; background: #efece4; }
.lk-banner img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: 50% 40%; transition: transform .8s ease; }
.lk-banner:hover img { transform: scale(1.04); }
:root[data-theme="dark"] .lk-banner img { filter: brightness(.78) contrast(1.05); }
.lk-banner figcaption { position: absolute; left: 18px; bottom: 16px; max-width: min(460px, calc(100% - 36px)); background: rgba(23,23,28,.88); color: #fff; padding: 12px 16px; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(4px); }
.lk-banner figcaption b { color: #f6dc82; font-size: 1.1rem; }
.lk-banner figcaption span { font-size: .92rem; color: #e6e1d0; }
.lk-banner figcaption a { color: #f6dc82 !important; font-weight: 700; margin-top: 2px; }
@media (max-width: 760px) { .lk-banner img { height: 190px; } .lk-banner figcaption { position: static; max-width: none; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .lk-banner img { transition: none; } .lk-banner:hover img { transform: none; } }
.inf-status { text-align: center; color: var(--muted); padding: 18px 0; font-weight: 600; }

/* newsletter */
.nl-cats { border: 0; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.nl-cats legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.nl-cat span { display: inline-flex; align-items: center; }
.lk-nl { border-color: var(--primary); }
.lk-nl p { margin: 0 0 10px; color: var(--muted); }

/* linki do mediów społecznościowych */
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 2px solid #17171c; border-radius: 999px; background: var(--card); color: var(--text); font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.social-list a:hover { background: var(--hl); color: #17171c; transform: translateY(-2px); }
.soc-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #17171c; color: #f6dc82; font-size: .85rem; font-weight: 800; }

/* Kategorie w prawej kolumnie: lista w jednej kolumnie, bez "jajek", z odstępami */
.lk-cats { display: block; }
.lk-cats li { border-bottom: 1px solid var(--line); }
.lk-cats li:last-child { border-bottom: 0; }
.lk-cats a { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; background: transparent; border: 0; border-radius: 0; padding: 11px 6px; font-size: .95rem; }
.lk-cats a small { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lk-cats a:hover { background: var(--bg-soft); color: var(--text); border-color: transparent; transform: none; padding-left: 12px; }
.lk-cats a { transition: padding .15s, background .2s; }

/* Kiedy dodano wpis */
.lr-when { color: var(--muted); }
.lr-when.fresh { background: var(--hl); color: #17171c; font-weight: 700; padding: 0 8px; }

.lk-nums dd small { display: block; font-size: .72rem; opacity: .8; }

/* "Dodaj link": stała zakładka przy prawej krawędzi, w pionie na środku, niezależna od przewijania */
a.fab { position: fixed; right: 0; left: auto; bottom: auto; top: 50%; transform: translateY(-50%); animation: none; z-index: 40;
  writing-mode: vertical-rl; white-space: nowrap;
  padding: 18px 10px; border-radius: 8px 0 0 8px; box-shadow: -3px 3px 0 #17171c; }
a.fab:hover { transform: translateY(-50%) translateX(-3px); }
a.fab span[aria-hidden] { display: inline-block; margin-bottom: 6px; }
@media (max-width: 600px) { a.fab { padding: 14px 8px; font-size: .9rem; } }

/* Zielona tarcza SSL */
.ssl-ok { display: inline-flex; align-items: center; gap: 3px; color: #1e9a4c; font-weight: 700; font-size: .8rem; }
.ssl-ok svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-theme="dark"] .ssl-ok { color: #3ddc84; }

/* Schowek */
.sch-btn { background: none; border: 0; padding: 0 4px; margin-left: 4px; cursor: pointer; font-size: 1.1em; line-height: 1; color: var(--muted); vertical-align: middle; transition: transform .15s, color .15s; }
.sch-btn:hover { color: var(--primary); transform: scale(1.25); }
.sch-btn[aria-pressed="true"] { color: #d4a017; }
.sch-n { display: inline-block; margin-left: 4px; background: var(--hl); color: #17171c; font-size: .75rem; font-weight: 800; padding: 0 7px; border-radius: 0; }
.sch-list { list-style: none; padding: 0; margin: 0 0 1rem; }

.sch-ttl { padding: 14px 16px; margin: 0 0 1rem; }
.sch-ttl select { margin: 6px 0; width: auto; min-width: 12em; max-width: 100%; }
.sch-ttl p { margin: 6px 0 0; }

/* Zachęta do klikania, losowy wpis */
.lr-visit { display: inline-block; margin-left: 6px; font-family: inherit; font-size: .75rem; font-weight: 700; background: var(--hl); color: #17171c; padding: 0 7px; text-decoration: none !important; }
.lr-h:hover .lr-visit { background: var(--primary); }
.nudge { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.lk-rand p { margin: .4rem 0; }

/* Statystyki w złotym kielichu */
.lk-nums { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); justify-items: center; gap: 4px; }
.lk-nums div { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 230'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23ffe27a'/><stop offset='.45' stop-color='%23e8b923'/><stop offset='1' stop-color='%23b8860b'/></linearGradient><linearGradient id='h' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f6d453'/><stop offset='1' stop-color='%23a97a08'/></linearGradient></defs><path d='M42 34 C6 34 6 98 52 104' fill='none' stroke='url(%23h)' stroke-width='9' stroke-linecap='round'/><path d='M158 34 C194 34 194 98 148 104' fill='none' stroke='url(%23h)' stroke-width='9' stroke-linecap='round'/><path d='M36 18 H164 V84 C164 134 132 162 100 162 C68 162 36 134 36 84 Z' fill='url(%23g)' stroke='%237a5a05' stroke-width='3' stroke-linejoin='round'/><path d='M36 18 H164' stroke='%23fff3b0' stroke-width='5' stroke-linecap='round'/><path d='M50 34 V82 C50 118 70 142 92 150' fill='none' stroke='%23fff6c4' stroke-opacity='.55' stroke-width='6' stroke-linecap='round'/><path d='M90 162 H110 L113 196 H87 Z' fill='url(%23h)' stroke='%237a5a05' stroke-width='3' stroke-linejoin='round'/><rect x='86' y='176' width='28' height='7' rx='3' fill='%23ffe27a' stroke='%237a5a05' stroke-width='2'/><path d='M58 214 C58 202 70 196 84 196 H116 C130 196 142 202 142 214 V220 H58 Z' fill='url(%23g)' stroke='%237a5a05' stroke-width='3' stroke-linejoin='round'/></svg>") center / contain no-repeat; border: 0; border-radius: 0;
  width: 100%; max-width: 230px; aspect-ratio: 200 / 230; padding: 9.5% 22% 0; box-sizing: border-box; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center; filter: drop-shadow(0 6px 10px rgba(122,90,5,.28)); }
.lk-nums div > * { position: relative; top: -9%; }
.lk-nums dt { font-size: clamp(1.7rem, 4.5vw, 2.3rem); color: #3b2a00; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.lk-nums dd { margin: 4px 0 0; color: #5a4100; font-size: .74rem; font-weight: 700; line-height: 1.2; }
.lk-nums dd small { display: block; font-size: .66rem; font-weight: 600; opacity: .85; margin-top: 2px; }
@media (max-width: 900px) { .lk-nums { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (max-width: 600px) { .lk-nums { grid-template-columns: 1fr 1fr; } }

/* Pieczęć: złoty okrąg z rogami dookoła (klasa seal na .lk-nums w index.php) */
.lk-nums.seal div { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23ffe27a'/><stop offset='.5' stop-color='%23e8b923'/><stop offset='1' stop-color='%23b8860b'/></linearGradient></defs><polygon points='100.0,4.0 109.4,16.5 121.4,6.4 127.7,20.7 141.7,13.5 144.7,28.9 159.9,24.9 159.4,40.6 175.1,40.1 171.1,55.3 186.5,58.3 179.3,72.3 193.6,78.6 183.5,90.6 196.0,100.0 183.5,109.4 193.6,121.4 179.3,127.7 186.5,141.7 171.1,144.7 175.1,159.9 159.4,159.4 159.9,175.1 144.7,171.1 141.7,186.5 127.7,179.3 121.4,193.6 109.4,183.5 100.0,196.0 90.6,183.5 78.6,193.6 72.3,179.3 58.3,186.5 55.3,171.1 40.1,175.1 40.6,159.4 24.9,159.9 28.9,144.7 13.5,141.7 20.7,127.7 6.4,121.4 16.5,109.4 4.0,100.0 16.5,90.6 6.4,78.6 20.7,72.3 13.5,58.3 28.9,55.3 24.9,40.1 40.6,40.6 40.1,24.9 55.3,28.9 58.3,13.5 72.3,20.7 78.6,6.4 90.6,16.5' fill='url(%23g)' stroke='%237a5a05' stroke-width='2.5' stroke-linejoin='round'/><circle cx='100' cy='100' r='72' fill='none' stroke='%237a5a05' stroke-width='2.5'/><circle cx='100' cy='100' r='66' fill='none' stroke='%23fff3b0' stroke-width='2' stroke-dasharray='2 5' stroke-linecap='round'/></svg>"); aspect-ratio: 1 / 1; padding: 20%; max-width: 220px; }
.lk-nums.seal div > * { top: 0; }
.lk-nums.seal dd { font-size: .72rem; }

/* Podpowiedzi kategorii */
.cat-sugg { margin: 0 0 12px; }
.cat-sugg-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-sugg-btn { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); padding: 6px 12px; font-weight: 600; cursor: pointer; border-radius: 0; }
.cat-sugg-btn:hover, .cat-sugg-btn.on { background: var(--hl); border-color: #17171c; color: #17171c; }

.sch-btn.sch-lbl { margin: 0; padding: 14px 22px; display: inline-flex; align-items: center; gap: 6px; border: 2px solid #17171c; background: var(--card); font-weight: 700; cursor: pointer; font-size: 1rem; color: var(--text); vertical-align: baseline; }
.sch-btn.sch-lbl:hover { transform: none; color: var(--text); background: var(--bg-soft); }
.sch-btn.sch-lbl[aria-pressed="true"] { background: var(--hl); color: #17171c; border-color: #17171c; }

/* menu w jednym rzędzie także na węższych ekranach */
@media (min-width: 901px) and (max-width: 1240px) { .hd .bar2 a.lnk { padding: 11px 8px; font-size: .9rem; } }

/* Licznik osób online */
.online-now { white-space: nowrap; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 3px; box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: online-pulse 2s infinite; vertical-align: middle; }
@keyframes online-pulse { 70% { box-shadow: 0 0 0 7px rgba(46,204,113,0); } 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }

/* Dwie ostatnio dodane strony z miniaturami */
.lk-fresh { margin-top: 26px; }
.fresh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fresh-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--card); border: 2px solid #17171c; border-radius: 0; padding: 10px; text-decoration: none; color: var(--text); box-shadow: 4px 4px 0 #17171c; transition: transform .15s, box-shadow .15s; }
.fresh-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #17171c; }
.fresh-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.fresh-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; font-weight: 800; color: var(--primary-dark); background: linear-gradient(135deg, #fff3b0, #e8b923); }
.fresh-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fresh-t { font-weight: 800; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.fresh-m { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
:root[data-theme="dark"] .fresh-m { color: #f0c75e; }
@media (max-width: 760px) { .fresh-grid { grid-template-columns: 1fr; } .fresh-img { aspect-ratio: 16 / 7; } }

/* Formularz szybkiego dodania linku na stronie głównej: pole i przycisk jako dwa osobne elementy (bez efektu „papierosa”) */
.lk-quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; max-width: 600px; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.lk-quick:focus-within { box-shadow: none; transform: none; }
.lk-quick input { flex: 1 1 260px; border: 2px solid #17171c !important; border-radius: 12px !important; background: var(--card) !important; box-shadow: 4px 4px 0 #17171c !important; padding: 14px 18px; }
.lk-quick input:focus { box-shadow: 4px 4px 0 var(--primary) !important; }
.lk-quick button { flex: 0 0 auto; border: 2px solid #17171c !important; border-radius: 12px !important; box-shadow: 4px 4px 0 #17171c !important; padding: 14px 26px; }
.lk-quick button:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #17171c !important; }
@media (max-width: 520px) { .lk-quick button { flex: 1 1 100%; } }

/* Ostatnio podlinkowane: 2 mniejsze karty z większym odstępem */
.fresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fresh-img { aspect-ratio: 16 / 8; }
@media (max-width: 760px) { .fresh-grid { grid-template-columns: 1fr; gap: 22px; } }
