/* ==========================================================
   Ljubljana RolePlay – stil strani
   Pisave: IBM Plex Sans (besedilo) + IBM Plex Mono (naslovi, kratice)
   ========================================================== */

/* ---------- Pisave (lokalno, brez zunanjih zahtev) ---------- */
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Osnovne vrednosti ---------- */
:root {
  /* ozadje: črna → gozdna zelena (iz prvotne strani) */
  --bg-a: #000000;
  --bg-b: #06180d;
  --bg-c: #0f3d1e;
  --bg-d: #1a6130;

  --leaf: #5ca33c;          /* barva logotipa */
  --leaf-soft: #8fd06a;     /* svetlejša različica za besedilo na temnem */
  --mint: #e3f4e6;          /* naslovi */
  --text: #e9f2ea;          /* besedilo */
  --muted: #b5cdb9;         /* sekundarno besedilo */
  --line: rgba(233, 242, 234, .14);
  --panel: rgba(2, 12, 6, .55);

  --signal: #f2b93b;        /* opozorila */
  --danger: #ff8a7a;
  --danger-bg: rgba(110, 22, 16, .42);

  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius: 12px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(90deg, var(--bg-a) 0%, var(--bg-b) 28%, var(--bg-c) 64%, var(--bg-d) 100%) fixed;
  background-color: var(--bg-b);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--mono); font-weight: 600; color: var(--mint); line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--leaf); color: #04120a; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav-wrap, main, .footer { position: relative; z-index: 1; }

.wrap { width: min(1080px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mint); color: #04120a; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- Navigacija ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(1080px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px;
  background: rgba(2, 10, 5, .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}
.brand { display: flex; align-items: center; flex: none; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a {
  display: block; padding: .45rem .85rem; border-radius: 999px;
  font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--muted);
  text-decoration: none; transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--mint); background: rgba(255, 255, 255, .07); }
.nav-links a[aria-current="true"] { color: #04120a; background: var(--leaf-soft); }
.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.search-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .55rem .45rem .8rem; border-radius: 999px;
  font: 500 .85rem var(--sans); color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  transition: background-color .15s;
}
.search-btn:hover { background: rgba(255, 255, 255, .13); }
kbd {
  font: 600 .72rem var(--mono); color: var(--muted);
  padding: .12rem .4rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .3);
}
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.07); cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s;
}
.btn.primary { background: var(--leaf); color: #04120a; }
.btn.primary:hover { background: var(--leaf-soft); }
.btn.ghost { color: var(--mint); border-color: rgba(227, 244, 230, .4); background: rgba(0, 0, 0, .18); }
.btn.ghost:hover { border-color: var(--mint); background: rgba(0, 0, 0, .35); }
.btn.big { font-size: 1.15rem; padding: 1rem 1.9rem; }
.btn.small { padding: .45rem 1rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -8%; top: 8%; width: 62%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(70, 160, 70, .30), transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 2rem; align-items: center; position: relative; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.9rem); letter-spacing: -.02em; margin-bottom: 1.4rem; }
.hero .lead { font-size: 1.2rem; }
.hero p { max-width: 58ch; }
.hero .thanks { color: var(--muted); font-style: italic; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(340px, 100%); filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .55)); }

/* Ena usklajena animacija ob nalaganju (hero) */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(26px) rotate(-7deg) scale(.94); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .17s; }
.hero-copy > :nth-child(3) { animation-delay: .27s; }
.hero-copy > :nth-child(4) { animation-delay: .37s; }
.hero-copy > :nth-child(5) { animation-delay: .47s; }
.hero-mark img { animation: settle .95s cubic-bezier(.2, .7, .2, 1) .2s both; }

/* ---------- Bloki ---------- */
.block { padding: 88px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1.6rem; letter-spacing: -.01em; }
.block h3 { font-size: 1.35rem; margin: 3.2rem 0 1rem; }
.block h3:first-of-type { margin-top: 1.6rem; }
.hint { color: var(--muted); max-width: 70ch; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.head-row h2 { margin: 0; }

/* Zakaj igrati */
.why { padding-top: 64px; }
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.why-list li { padding: .2rem 2rem .2rem 1.4rem; border-left: 1px solid var(--line); }
.why-list li:first-child { border-left: 0; padding-left: 0; }
.why-list h3 { margin: 0 0 .5rem; font-size: 1.2rem; color: var(--leaf-soft); }
.why-list p { margin: 0; color: var(--text); }

/* Galerija */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery li { overflow: hidden; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); aspect-ratio: 228 / 192; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery li:hover img { transform: scale(1.05); }

/* Ekipa */
.team { display: flex; flex-wrap: wrap; gap: 16px; }
.team li {
  display: grid; grid-template-columns: 84px auto; grid-template-rows: auto auto; column-gap: 18px; align-items: center;
  padding: 16px 28px 16px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.team img { grid-row: 1 / 3; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--leaf); object-fit: cover; }
.team .role { align-self: end; font: 600 .9rem var(--mono); color: var(--leaf-soft); }
.team .handle { align-self: start; font: 600 1.15rem var(--sans); color: var(--mint); }

/* ---------- Pravila ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .6rem; }
.chips a {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none;
  font: 500 .95rem var(--sans); color: var(--text); background: rgba(0, 0, 0, .22); transition: border-color .15s, background-color .15s;
}
.chips a:hover { border-color: var(--leaf-soft); background: rgba(92, 163, 60, .18); }

.rules > .idx {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0 2.4rem;
  padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.rules > .idx:last-child { border-bottom: 1px solid var(--line); }
.rules h4 { font-size: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.rules .abbr { font-size: 1.3rem; color: var(--leaf-soft); letter-spacing: .01em; }
.rules .full { font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--muted); }
.rules .full.solo { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: var(--leaf-soft); }
.rule-body { max-width: 72ch; }
.rule-body p { margin: 0; }
.rule-body ul { display: grid; gap: .5rem; }
.rule-body li { position: relative; padding-left: 1.3rem; }
.rule-body li::before { content: ""; position: absolute; left: .1rem; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--leaf); }
.rule-body .penalty { margin-top: 1rem; padding: .7rem 1rem; border-left: 3px solid var(--signal); background: rgba(242, 185, 59, .1); border-radius: 0 8px 8px 0; }
.rule-body .penalty strong { color: var(--signal); }

/* ---------- Ropi ---------- */
.rob-lead { margin-bottom: 2rem; }
.rob-lead p { margin: 0 0 .35rem; color: var(--text); font-size: 1.1rem; }
.rob-lead .warn {
  display: inline-block; margin-bottom: .9rem; padding: .55rem 1rem; border-radius: 10px;
  font: 600 clamp(1.05rem, 2.2vw, 1.4rem) var(--mono); color: var(--signal);
  background: rgba(242, 185, 59, .1); border: 1px solid rgba(242, 185, 59, .45);
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rob-table { width: 100%; border-collapse: collapse; min-width: 900px; font-size: .97rem; }
.rob-table th, .rob-table td { padding: .9rem .55rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rob-table thead th { font: 600 .82rem var(--sans); color: var(--muted); border-bottom: 1px solid rgba(233, 242, 234, .3); }
.rob-table tbody tr:last-child > * { border-bottom: 0; }
.rob-table tbody th { font-weight: 500; min-width: 11rem; }
.rob-table td:nth-child(2) .tag { white-space: normal; }
.rob-table .name { display: block; font: 600 .95rem var(--mono); color: var(--leaf-soft); }
.rob-table .sub { display: block; margin-top: .25rem; font-size: .85rem; color: var(--muted); }
.rob-table .num { text-align: center; white-space: nowrap; font: 600 1rem var(--mono); font-variant-numeric: tabular-nums; }
.rob-table thead .num { font: 600 .82rem var(--sans); }
.rob-table .none { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--leaf-soft); }
.tag.no { color: var(--danger); }
.tag.now { color: var(--signal); }
.tag.talk { color: var(--text); }

/* ---------- Družbena ---------- */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .25); }
.seg button { font: 500 .9rem var(--sans); color: var(--muted); background: none; border: 0; padding: .4rem .95rem; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--leaf-soft); color: #04120a; }
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.social li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.social .what { font-weight: 500; }
.social .note { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.social .amount { flex: none; font-size: .9rem; color: var(--muted); }
.social .amount b { font: 600 1.5rem var(--mono); color: var(--leaf-soft); margin-right: .25rem; font-variant-numeric: tabular-nums; }
.alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 2.4rem; }
.alert { padding: 1.1rem 1.3rem; background: var(--danger-bg); border: 1px solid rgba(255, 138, 122, .45); border-left: 4px solid var(--danger); border-radius: 10px; }
.alert h4 { color: var(--danger); margin-bottom: .5rem; font-size: 1.05rem; }
.alert p { margin: 0 0 .3rem; }
.alert .sanction { margin-top: .4rem; color: var(--muted); }
.alert b { color: #fff; }

/* ---------- Zakonik ---------- */
.law { margin-top: 1.2rem; }
.chapter + .chapter { margin-top: 3rem; }
.chapter h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.article {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .5rem 1rem;
  padding: 1rem .8rem; border-top: 1px solid var(--line); transition: background-color .15s;
}
.chapter .article:last-child { border-bottom: 1px solid var(--line); }
.article h4 { font: 600 1.02rem var(--sans); color: var(--mint); margin-bottom: .3rem; }
.article .num-art { font-family: var(--mono); color: var(--leaf-soft); margin-right: .5rem; white-space: nowrap; }
.article p { margin: 0; color: var(--text); max-width: 70ch; }
.article .reason { color: var(--muted); font-size: .97rem; }
.pick-col { padding-top: .2rem; }
.pick { width: 20px; height: 20px; accent-color: var(--leaf); cursor: pointer; margin: 0; }
.art-pen { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: .1rem; }
.art-pen .fine { font: 600 1.1rem var(--mono); color: var(--mint); font-variant-numeric: tabular-nums; }
.art-pen .zm { font: 500 .9rem var(--mono); color: var(--muted); }
.article.has-pen:hover { background: rgba(255, 255, 255, .04); }
.article:has(.pick:checked) { background: rgba(92, 163, 60, .18); }

/* Izračun kazni */
.calc {
  position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem;
  padding: .9rem 1.2rem; border-radius: 16px;
  background: rgba(2, 12, 6, .92); border: 1px solid var(--leaf); box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.calc[hidden] { display: none; }
.calc-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1.2rem; }
.calc-count { color: var(--muted); font-size: .92rem; }
.calc-total strong { font: 600 1.5rem var(--mono); color: var(--mint); font-variant-numeric: tabular-nums; }
.calc-total strong:last-child { color: var(--leaf-soft); }
.calc-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1rem; }
.field { display: grid; gap: .2rem; font-size: .8rem; color: var(--muted); }
.field[hidden] { display: none; }
.field input {
  width: 8.5rem; padding: .4rem .6rem; border-radius: 8px; font: 600 1rem var(--mono); color: var(--mint);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
}
.field input:focus-visible { outline-offset: 1px; }

/* ---------- Podpora, Discord ---------- */
.support { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.support .lead { font-size: 1.2rem; max-width: 46ch; }
.support strong { color: var(--mint); }
.how { padding: 1.4rem 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.how h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.how ol { counter-reset: s; display: grid; gap: .8rem; }
.how li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; align-items: baseline; }
.how li::before { content: counter(s); font: 600 1.05rem var(--mono); color: var(--leaf-soft); }
.discord { text-align: center; }
.discord p { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.6rem; }

.footer { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2.6rem 1rem 3rem; background: rgba(0, 0, 0, .5); border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.footer-name { font: 600 1rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-top: .5rem !important; }
.footer-credit { font-size: .9rem; color: var(--muted); }

/* ---------- Iskanje ---------- */
.palette[hidden] { display: none; }
.palette { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 12px 12px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(0, 4, 1, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.palette-panel {
  position: relative; width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column;
  background: #071a0e; border: 1px solid rgba(143, 208, 106, .45); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: hidden;
}
.palette-input { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; font: 500 1.1rem var(--sans); color: var(--mint); background: none; border: 0; outline: none; }
.palette-input input::placeholder { color: rgba(181, 205, 185, .65); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.esc { font: 600 .72rem var(--mono); color: var(--muted); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .45rem; cursor: pointer; }
.results { overflow-y: auto; padding: .4rem; }
.results li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .8rem; align-items: baseline; padding: .65rem .8rem; border-radius: 10px; cursor: pointer; }
.results li[aria-selected="true"] { background: rgba(92, 163, 60, .28); }
.results .sec { font: 600 .78rem var(--mono); color: var(--leaf-soft); }
.results .ttl { display: block; font-weight: 600; color: var(--mint); }
.results .snip { display: block; font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results mark { background: rgba(242, 185, 59, .35); color: inherit; border-radius: 3px; }
.results .empty { display: block; cursor: default; padding: 1rem; color: var(--muted); }
.results .tries { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.results .tries button { font: 500 .9rem var(--sans); color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.palette-foot { margin: 0; padding: .6rem 1rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Označitev najdenega elementa */
@keyframes flash { 0% { background-color: rgba(242, 185, 59, .45); } 100% { background-color: transparent; } }
.flash { animation: flash 2.2s ease-out; }
tr.flash { animation: none; }
tr.flash > * { animation: flash 2.2s ease-out; }

/* ---------- Odzivnost ---------- */
@media (max-width: 1000px) {
  .nav-links a { padding: .45rem .6rem; font-size: .8rem; }
  .search-label { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .menu-btn { display: block; }
  #kbdHint { display: none; }
  .nav-tools { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; padding: .6rem; border-radius: 20px;
    background: rgba(2, 10, 5, .94); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; font-size: .95rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark img { width: 120px; }
  .hero { align-items: flex-start; }
  .hero::before { width: 120%; right: -30%; top: 0; }
  .why-list { grid-template-columns: 1fr; gap: 1.6rem; }
  .why-list li, .why-list li:first-child { border-left: 0; padding: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .rules > .idx { grid-template-columns: 1fr; gap: .6rem; }
  .rules h4 { flex-direction: row; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
  .social, .alerts, .support { grid-template-columns: 1fr; }
  .support { gap: 2rem; }

  /* tabela ropov → kartice */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .rob-table { min-width: 0; }
  .rob-table thead { position: absolute; left: -9999px; }
  .rob-table, .rob-table tbody, .rob-table tr, .rob-table th, .rob-table td { display: block; }
  .rob-table tr { margin-bottom: 14px; padding: .4rem 1rem .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  .rob-table th, .rob-table td { border: 0 !important; padding: .4rem 0; }
  .rob-table td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .rob-table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: none; }
  .rob-table tbody th { padding-top: .6rem; }
  .rob-table tbody th::before { display: none; }
  .rob-table .num { text-align: right; }
}
@media (max-width: 560px) {
  .block { padding: 64px 0; }
  .article { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .art-pen { grid-column: 2; flex-direction: row; align-items: baseline; gap: .9rem; text-align: left; }
  .calc { bottom: 8px; padding: .7rem .9rem; }
  .field input { width: 7rem; }
  .team li { width: 100%; }
}

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