/* HexoQuest — slog (osnova: učilnica delavnica2) */
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/jetbrains-mono-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+1E00-1E9F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}

:root {
  --orange: #F28C28;
  --orange-d: #D9700F;
  --teal: #2FA4A9;
  --teal-d: #1D7E83;
  --cyan: #5EE6F0;
  --ink: #1E2A33;
  --ink-2: #4A5A68;
  --cream: #FAF6EE;
  --paper: #FFFFFF;
  --line: #1E2A33;
  --soft: #EFE7D8;
  --ok: #1F9D61;
  --sun: #FFC93C;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: rgba(30,42,51,.08); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); margin-inline: auto; }
.prose { width: min(760px, 100% - 32px); margin-inline: auto; }
.pad { padding-block: 56px; }
.pad-b { padding-bottom: 56px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.inline { display: inline; margin: 0; }

/* Gumbi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 850; font-size: 1rem; line-height: 1.2;
  color: var(--ink); background: var(--orange); border: 2px solid var(--line);
  border-radius: 12px; padding: 12px 20px; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: #F69A3E; color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { background: #D8D2C6; color: #6B7580; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-lg { font-size: 1.1rem; padding: 15px 26px; border-radius: 14px; }
.btn-sm { font-size: .9rem; padding: 7px 14px; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: var(--paper); }
.btn-ghost:hover { background: #fff8ec; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); color: #fff; }
.btn-danger { background: #fff; color: #B42318; border-color: #B42318; box-shadow: 3px 3px 0 #B42318; }
.btn-danger:hover { background: #FEECEB; color: #B42318; box-shadow: 4px 4px 0 #B42318; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }

.pill { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }
.eyebrow { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); margin-bottom: .6em; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 36em; }

/* Glava in noga */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, calc((100% - 1160px) / 2));
  background: rgba(250, 246, 238, .94); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; }
.brand strong { font-weight: 900; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 750; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--teal-d); }
.who { font-weight: 800; }
@media (max-width: 640px) {
  .nav > a:not(.btn):not(.who) { display: none; }
  .brand span { display: none; }
}

.flash { width: min(1160px, 100% - 32px); margin: 16px auto 0; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #E6F7EE; font-weight: 700; box-shadow: var(--shadow-sm); }
.flash-napaka { background: #FDECEC; }
.flash-info { background: #E6F4FF; }

.foot { border-top: 2px solid var(--line); background: var(--ink); color: #D6DEE5; margin-top: 0; }
.foot-in { width: min(1160px, 100% - 32px); margin: 0 auto; padding: 32px 0; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; font-size: .92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: start; justify-content: flex-end; }
.foot a { color: #fff; }
.version { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; font-size: .8rem; color: #93A3B1; border-top: 1px solid #34444F; padding-top: 12px; }
.version > span:nth-child(2) { flex: 1 1 420px; }
.version > a { font-family: var(--mono); margin-left: auto; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } }

/* Naslovnica */
.hero { border-bottom: 2px solid var(--line); background:
  radial-gradient(circle at 85% 30%, rgba(94,230,240,.35), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(242,140,40,.18), transparent 45%), var(--cream); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-block: 56px 40px; }
.hl { color: var(--orange-d); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 12px; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(300px, 70vw); animation: lebdi 4s ease-in-out infinite; }
.bubble-hero { position: absolute; top: 0; right: -10px; max-width: 220px; }
@keyframes lebdi { 50% { transform: translateY(-10px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { order: -1; }
  .hero-art img { width: 190px; }
  .bubble-hero { position: static; margin-top: 8px; }
}

.bubble {
  position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: 18px;
  padding: 12px 16px; box-shadow: var(--shadow-sm); font-size: .98rem; line-height: 1.5;
}

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }
.tab { font: inherit; font-weight: 850; padding: 10px 18px; border: 2px solid var(--line); background: var(--paper); border-radius: 99px; cursor: pointer; }
.tab.is-active { background: var(--ink); color: #fff; }
.tab:disabled { cursor: default; opacity: .75; }
.tab .pill { background: var(--orange); color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--c); border-radius: 14px 14px 0 0; border-bottom: 2px solid var(--line); }
.card h3 { margin-top: 12px; }
.card p { color: var(--ink-2); font-size: .97rem; flex: 1; }
.card-live { transition: transform .12s, box-shadow .12s; }
.card-live:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }
.card-badge { width: 88px; height: 88px; margin-top: 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.go { color: var(--orange-d); }
.card-soon { background: #F3EEE4; box-shadow: none; border-style: dashed; }
.card-soon .pill { align-self: flex-start; margin-top: 12px; }
.progress-mini { font-size: .88rem; color: var(--ink-2); }

.band { background: var(--soft); border-block: 2px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: k; }
.steps li { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.steps img { height: 140px; width: auto; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; margin-top: 3px; }
.faq details { border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 800; }
.faq details p { padding: 0 16px 12px; margin: 0; color: var(--ink-2); }

/* Sklop */
.sklop-hero { position: relative; border-bottom: 2px solid var(--line); background: var(--bg) center / cover no-repeat; }
.sklop-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,246,238,.97) 0%, rgba(250,246,238,.9) 50%, rgba(250,246,238,.35) 100%); }
.sklop-hero-in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 48px; }
.sklop-badge { width: 160px; filter: grayscale(1) opacity(.55); transition: filter .4s; }
.sklop-badge.is-earned { filter: none; animation: pop .6s ease; }
@media (max-width: 700px) { .sklop-badge { width: 100px; } .sklop-hero::before { background: rgba(250,246,238,.92); } }

.map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .map { grid-template-columns: repeat(2, 1fr); } }
.level { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 14px; text-align: center; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .1s, box-shadow .1s; }
.level:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.level-num { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); font-weight: 900; font-size: 1.35rem; background: var(--cream); }
.level.is-done .level-num { background: var(--teal); color: #fff; }
.level.is-next { outline: 3px dashed var(--orange); outline-offset: 4px; }
.level.is-next .level-num { background: var(--orange); }
.level-title { font-weight: 800; line-height: 1.25; }
.level-stars { font-size: 1.2rem; letter-spacing: 2px; color: #C9BFAE; }
.level-stars .on { color: var(--sun); text-shadow: 0 0 1px var(--ink); }
.map-summary { margin-top: 20px; font-weight: 800; }
.callout { display: flex; gap: 20px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 20px 24px; box-shadow: var(--shadow); }
.callout p { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .callout { flex-direction: column; text-align: center; } }

/* Obrazci */
.form-card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field .help { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.code-input { font-family: var(--mono); letter-spacing: .25em; text-transform: uppercase; font-size: 1.4rem !important; text-align: center; }
.pin-input { font-family: var(--mono); letter-spacing: .5em; font-size: 1.4rem !important; text-align: center; max-width: 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.err { background: #FDECEC; border: 2px solid #B42318; color: #7A1A12; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-weight: 700; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .form-split { grid-template-columns: 1fr; } }
.mascot-sm { width: 150px; }

/* Mentor */
.dash-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #E6DED0; white-space: nowrap; }
th { background: #F3EEE4; font-weight: 850; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.st { text-align: center; font-size: .9rem; color: #C9BFAE; }
td.st.z1, td.st.z2, td.st.z3 { color: var(--ink); font-weight: 800; }
td.st.z3 { background: #FFF3CC; }
td.st a { color: inherit; }
.code-big { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; letter-spacing: .18em; background: var(--ink); color: var(--cyan); padding: 4px 14px; border-radius: 10px; display: inline-block; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.notice { background: #FFF6D6; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.box { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.box h3 { margin-bottom: 4px; }
textarea { width: 100%; font: inherit; font-size: .95rem; padding: 12px; border: 2px solid var(--line); border-radius: 10px; min-height: 180px; }

/* Pravne strani */
.legal { padding-block: 48px 64px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .35em; }
.legal table { margin: 12px 0 20px; }
.legal .table-wrap { box-shadow: none; }
.legal td { white-space: normal; vertical-align: top; }
.updated { color: var(--ink-2); font-size: .9rem; }

/* Kartice za tisk */
.cards-print { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.cards-print .pc { border: 1.5px dashed #999; padding: 18px; display: flex; gap: 14px; align-items: center; page-break-inside: avoid; }
.cards-print .pc img { width: 70px; }
.cards-print .pc .code-big { font-size: 1.3rem; }
@media print {
  .top, .foot, .no-print, .flash { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .wrap { width: 100%; }
  .pad { padding: 0; }
}

/* ===================== IGRA ===================== */
.igra-body .foot { display: none; }
.igra-body main { height: calc(100dvh - var(--header-h)); display: flex; }
.game { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
.game-bar { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 2px solid var(--line); background: var(--paper); }
.back { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.2rem; background: var(--cream); flex: none; }
.back:hover { background: var(--orange); color: var(--ink); }
.game-title { min-width: 0; }
.game-title h1 { font-size: 1.3rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 6px; margin-left: auto; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.dot.is-done { background: var(--teal); }
.dot.is-now { background: var(--orange); transform: scale(1.25); }
.game-tabs { display: none; gap: 4px; }
.gtab { font: inherit; font-weight: 800; font-size: .9rem; padding: 6px 12px; border: 2px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; }
.gtab.is-active { background: var(--ink); color: #fff; }

.game-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 330px) 1fr minmax(320px, 36%); }
.pane { min-height: 0; min-width: 0; }
.pane-task { overflow-y: auto; padding: 18px; border-right: 2px solid var(--line); background: var(--cream); display: flex; flex-direction: column; gap: 4px; }
.pane-blocks { position: relative; }
.delo { position: absolute; inset: 0; }
.blockly-host { position: absolute; inset: 0; }
.pane-scroll { background: #F6F1E7; }
.pane-scroll .delo { overflow-y: auto; padding: 20px; }
.izhod { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.pane-preview { display: flex; flex-direction: column; border-left: 2px solid var(--line); background: var(--soft); padding: 14px; gap: 12px; overflow: hidden; }

.kodko { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.kodko img { width: 84px; height: auto; flex: none; }
.kodko .bubble { font-size: .95rem; }
.kodko .bubble::before { content: ''; position: absolute; left: -10px; top: 26px; width: 16px; height: 16px; background: var(--paper); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.h-sm { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 10px 0 6px; font-weight: 900; }
.goals { list-style: none; padding: 0; margin: 0 0 6px; }
.goals li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; font-size: .95rem; line-height: 1.4; transition: background .2s; }
.goals .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; margin-top: 1px; display: grid; place-items: center; font-size: .78rem; font-weight: 900; }
.goals li.is-ok { background: #E6F7EE; }
.goals li.is-ok .tick { background: var(--ok); color: #fff; animation: pop .35s ease; }
.goals li.is-ok .tick::after { content: '✓'; }
.goals-bonus li { border-style: dashed; }
.goals-bonus li.is-ok { background: #FFF3CC; }
.goals-bonus li.is-ok .tick { background: var(--sun); color: var(--ink); }
.goals-bonus li.is-ok .tick::after { content: '★'; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.hint-box { margin: 8px 0 14px; }
.hint { background: #FFF6D6; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .93rem; margin: 10px 0 0; }
.btn-done { width: 100%; margin-top: auto; }
.btn-done.is-ready { background: var(--teal); color: #fff; animation: utrip 1.6s ease-in-out infinite; }
.btn-done.is-ready:hover { background: var(--teal-d); color: #fff; }
@keyframes utrip { 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px rgba(47,164,169,.3); } }
#znova { align-self: center; margin-top: 10px; }
#stanje-shrani { text-align: center; min-height: 1.2em; margin: 4px 0 0; }

.browser { flex: 1; min-height: 200px; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--ink); }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #E5484D; }
.browser-bar > span:nth-child(2) { background: var(--sun); }
.browser-bar > span:nth-child(3) { background: #2FA36B; }
.browser-url { margin-left: 8px; flex: 1; background: #2E3D49; color: #D6DEE5; border-radius: 99px; padding: 2px 12px; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#predogled { flex: 1; width: 100%; border: 0; background: #fff; }
.code { background: var(--ink); color: #E6EDF3; border: 2px solid var(--line); border-radius: 12px; max-height: 42%; display: flex; flex-direction: column; }
.code summary { cursor: pointer; padding: 8px 12px; font-weight: 800; color: #fff; }
.code summary .muted { color: #93A3B1; }
.code pre { margin: 0; padding: 0 12px 12px; overflow: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.code code { background: none; padding: 0; font-size: inherit; }
.code .t { color: #FFB86B; }
.code .a { color: var(--cyan); }
.code .s { color: #A6E3A1; }

.modal { border: 2px solid var(--line); border-radius: 20px; padding: 20px 26px 22px; max-width: 520px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 8px 8px 0 var(--ink); text-align: center; background: var(--cream); color: var(--ink); }
.modal::backdrop { background: rgba(30, 42, 51, .55); }
.modal-mascot { width: 96px; margin: 0 auto -4px; display: block; }
.stars-big { font-size: 3rem; line-height: 1; margin: 6px 0 4px; }
.stars-big .star { display: inline-block; color: #C9BFAE; }
.stars-big .star.on { color: var(--sun); -webkit-text-stroke: 2px var(--ink); animation: pop .5s ease both; }
.learned { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 14px 0 18px; }
.learned h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-d); margin-bottom: 4px; }
.learned p { margin: 0; font-size: .97rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: sticky; bottom: -22px; margin: 0 -26px -22px; padding: 12px 16px 16px; background: var(--cream); border-top: 2px solid var(--soft); }

/* Blockly prilagoditve */
.blocklyToolboxDiv { border-right: 2px solid var(--line); }
.blocklyToolboxCategory { height: auto !important; padding: 10px 12px 10px 8px !important; margin-bottom: 2px; }
.blocklyToolboxCategoryLabel { font-family: var(--font) !important; font-weight: 800; font-size: .95rem !important; }

@media (max-width: 1100px) {
  .game-tabs { display: flex; }
  .dots { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .pane { display: none; }
  .pane.is-active { display: flex; }
  .pane-blocks.is-active { display: block; }
  .pane-task { border-right: 0; }
  .pane-preview { border-left: 0; }
  .game-bar { flex-wrap: wrap; }
  .game-tabs { margin-left: auto; }
}
@media (max-width: 520px) {
  .game-title h1 { font-size: 1.05rem; }
  .game-bar { gap: 10px; }
}

/* PIN je navadno besedilno polje (da ga brskalnik ne zamenja z geslom), prikazan s pikami */
.pin-input { -webkit-text-security: disc; text-security: disc; }
.pin-input::placeholder { -webkit-text-security: none; }

/* Ocena naloge */
.rate { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; margin: 0 0 16px; }
.rate h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-d); margin-bottom: 6px; }
.rate-row { border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.rate-row legend { float: left; font-weight: 800; font-size: .95rem; padding: 0; }
.rate-ends { grid-column: 2; display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-2); margin-top: -4px; }
.stars-in { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; grid-column: 2; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-in label { font-size: 1.9rem; line-height: 1; color: #D6CDBC; cursor: pointer; padding: 0 2px; transition: transform .1s, color .1s; -webkit-text-stroke: 1.5px var(--ink); }
.stars-in label:hover, .stars-in label:hover ~ label, .stars-in input:checked ~ label { color: var(--sun); }
.stars-in label:hover { transform: scale(1.15); }
.stars-in input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.rate-label { display: block; font-weight: 800; font-size: .95rem; margin: 6px 0 4px; }
.rate textarea { min-height: 70px; font-size: .92rem; }
.rate-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.rate.is-sent { background: #E6F7EE; }
@media (max-width: 480px) { .rate-row { grid-template-columns: 1fr; } .rate-ends, .stars-in { grid-column: 1; } }
.is-off { opacity: .55; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ===================== ADMIN ===================== */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.admin-nav a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 8px 14px; border-radius: 10px; border: 2px solid transparent; }
.admin-nav a:hover { border-color: var(--line); background: #fff; }
.admin-nav a.is-on { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.tile-link:hover { background: #FFF6D6; color: var(--ink); }
.tile-n { font-size: 2.1rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile-n small { font-size: .9rem; color: var(--ink-2); font-weight: 700; }
.tile-l { font-weight: 800; font-size: .92rem; }
.tile-s { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }

.bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 150px; margin-top: 10px; padding-top: 18px; border-bottom: 1.5px solid #8A94A6; background: linear-gradient(to bottom, #EFE7D8 1px, transparent 1px) 0 18px / 100% 100% no-repeat; }
.bars-max { position: absolute; top: 0; left: 0; font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.bar span { display: block; width: 100%; height: var(--h); min-height: 0; background: var(--teal); border-radius: 4px 4px 0 0; transition: background .1s; }
.bar:hover span, .bar:focus span { background: var(--teal-d); }
.bar:hover::after, .bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(var(--h) + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; z-index: 2; pointer-events: none; }
.bars-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-2); margin-top: 4px; }

.num-table td, .num-table th { font-variant-numeric: tabular-nums; }
.row-warn td { background: #FDECEC; }
.meter { display: inline-block; width: 60px; height: 8px; background: #EFE7D8; border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 4px; }
.meter span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters select, .filters input[type=text] { width: auto; font-size: .95rem; padding: 8px 12px; }
.comments { display: grid; gap: 12px; margin-bottom: 16px; }
.comment-wrap { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.comment { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.comment.is-new { border-left: 6px solid var(--orange); }
.comment header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.comment-meta { color: var(--ink-2); margin: 4px 0; }
.comment-meta strong { color: #B8860B; letter-spacing: 1px; }
.comment-text { margin: 6px 0 0; white-space: normal; }
a.tab { display: inline-block; }

/* Dnevnik sprememb */
.version a { color: #93A3B1; text-decoration: none; }
.version a:hover { color: #fff; text-decoration: underline; }
.cl-entry { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.cl-entry.is-current { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.cl-entry header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.cl-ver { font-family: var(--mono); font-weight: 700; font-size: 1.3rem; }
.cl-entry ul { margin: 6px 0 0; }
.cl-entry p { margin: 4px 0; }
.pill-soft { background: #E3DACA; color: var(--ink); }
.pill-now { background: var(--orange); color: var(--ink); }

/* ===================== SPLETNA VARNOST ===================== */
.vp-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 900; }
.vp-label strong { color: var(--ink); }
.vp-card { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.vp-warn { background: #FFF6D6; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 0; }

/* Geslo */
.pw-out { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; word-break: break-all; background: var(--ink); color: var(--cyan); border-radius: 10px; padding: 10px 14px; margin: 8px 0 12px; min-height: 2.4em; }
.pw-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pw-meter span { height: 12px; border-radius: 4px; background: #E7DECD; transition: background .25s; }
.pw-meter.m0 span:nth-child(-n+1) { background: #D64545; }
.pw-meter.m1 span:nth-child(-n+2) { background: #E9761A; }
.pw-meter.m2 span:nth-child(-n+3) { background: #E8B91A; }
.pw-meter.m3 span:nth-child(-n+4) { background: #4CAF6A; }
.pw-meter.m4 span { background: var(--ok); }
.pw-moc { font-weight: 900; margin: 8px 0 2px; }
.pw-cas { font-size: .95rem; }
.pw-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: .92rem; color: var(--ink-2); }
.pw-list li.ok { color: var(--ok); font-weight: 800; }

/* Pravila – scenariji */
.scen-list { display: grid; gap: 10px; }
.scen { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.scen.ok { background: #E6F7EE; }
.scen.bad { background: #FDECEC; }
.scen.skoraj { background: #FFF6D6; }
.scen-msg { background: #EEF3F6; border-radius: 12px 12px 12px 2px; padding: 8px 10px; margin-bottom: 6px; }
.scen-od { display: block; font-size: .75rem; font-weight: 900; color: var(--teal-d); }
.scen-act { margin-bottom: 4px; }
.chip { display: inline-block; background: var(--orange); border: 1.5px solid var(--line); border-radius: 99px; padding: 0 8px; font-size: .8rem; font-weight: 800; margin: 2px 2px 0 0; }
.scen-res { font-weight: 700; }

/* Zaporedje */
.seq { margin: 0; padding-left: 1.5em; display: grid; gap: 6px; }
.seq li { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.seq li small { display: block; font-weight: 600; color: #B42318; }
.seq li.bad { background: #FDECEC; }
.seq li.empty { list-style: none; margin-left: -1.5em; color: var(--ink-2); font-weight: 600; border-style: dashed; }
.seq-res .scen { margin-top: 4px; }

/* Profil */
.pf-card { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pf-head { display: flex; gap: 12px; align-items: center; padding: 14px; background: linear-gradient(135deg, #D8F3F4, #FFF1DE); border-bottom: 2px solid var(--line); }
.pf-ava { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--line); display: grid; place-items: center; font-size: 2rem; background: #FFE2C2; }
.pf-ava.avatar { background: #DDF6F7; }
.pf-name { font-weight: 900; font-size: 1.15rem; }
.pf-list { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 6px; font-size: .92rem; }
.pf-list li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; }
.pf-list li.ok { background: #E6F7EE; }
.pf-list li.bad { background: #FDECEC; }
.pf-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 14px 14px; }
.pf-posts div { background: #F3EEE4; border: 2px dashed #D64545; border-radius: 8px; padding: 14px 6px; text-align: center; font-size: .8rem; font-weight: 700; }
.pf-locked { margin: 0 14px 14px; padding: 18px; text-align: center; background: #E6F7EE; border-radius: 10px; font-weight: 800; }

/* E-pošta */
.mail { background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto; }
.mail-bar { background: var(--ink); color: #fff; padding: 8px 14px; font-weight: 800; font-size: .9rem; }
.mail-head { padding: 12px 16px; border-bottom: 1px solid #E6DED0; display: grid; gap: 4px; }
.mail-row { font-size: .95rem; }
.mail-k { display: inline-block; width: 64px; color: var(--ink-2); font-weight: 700; }
.mail-subj { font-weight: 800; font-size: 1.05rem; }
.mail-body { padding: 14px 16px; font-size: 1rem; }
.mail-body p { margin: 0 0 .8em; }
.mail-btn-wrap { text-align: center; }
.mail-att { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #D6CDBC; font-size: .95rem; }
.mail-sign { color: var(--ink-2); }
.em-part { position: relative; cursor: pointer; border-radius: 6px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; }
.em-part:hover, .em-part:focus-visible { background: #FFF3CC; outline-color: #E8B91A; }
.em-part.is-found { background: #FDECEC; outline: 2px solid #D64545; }
.em-part.is-found::after { content: attr(data-n); position: absolute; top: -10px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #D64545; color: #fff; font-size: .72rem; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--ink); }
.em-part.is-wrong { animation: shake .4s; background: #E6F7EE; }
.em-tip { position: absolute; left: 0; top: 100%; margin-top: 6px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 8px; border-radius: 6px; width: max-content; max-width: 260px; z-index: 5; }
.mail-btn { display: inline-block; background: #E5484D; color: #fff; font-weight: 900; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--line); }
.mail-btn:hover { background: #C93A3F; color: #fff; }
.em-help { text-align: center; margin-top: 12px; }
.found { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: .92rem; }
.found li { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.found li.empty { list-style: none; margin-left: -1.4em; border-style: dashed; color: var(--ink-2); }
.mono { font-family: var(--mono); font-weight: 500; }

/* Razvrsti */
.sort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sort-card { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.sort-txt { font-weight: 800; word-break: break-word; }
.sort-txt.mono { font-size: .92rem; }
.sort-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.sort-btn { flex: 1; font: inherit; font-weight: 800; font-size: .88rem; padding: 7px 8px; border: 2px solid var(--line); border-radius: 8px; background: var(--cream); cursor: pointer; }
.sort-btn:hover:not(:disabled) { background: #FFF3CC; }
.sort-btn:disabled { cursor: default; opacity: .45; }
.sort-btn.is-picked { opacity: 1; background: var(--teal); color: #fff; }
.sort-card.is-done { background: #E6F7EE; box-shadow: none; }
.sort-card.is-wrong { animation: shake .4s; border-color: #D64545; }
.sort-msg { font-size: .82rem; color: #B42318; font-weight: 700; min-height: 0; }
.sort-msg:empty { display: none; }

/* ===================== KIBERNETSKA VARNOST ===================== */
.cy-txt { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; background: #F3EEE4; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 4px 0; word-break: break-word; letter-spacing: .05em; }
.cy-out { background: var(--ink); color: var(--cyan); max-height: 320px; overflow-y: auto; }
.cy-out.is-goal { background: #0F5132; color: #B7F5D0; }
.cy-goal { background: #FFF6D6; }
.cy-arrow { text-align: center; font-weight: 900; color: var(--ink-2); margin: 2px 0; }
.cy-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; display: grid; gap: 2px; }
.cy-list li { display: flex; gap: 10px; }
.cy-list li span { display: inline-block; min-width: 2.2em; text-align: right; color: var(--orange); }
.cy-wheel { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin-top: 6px; font-family: var(--mono); font-size: .78rem; text-align: center; }
.cy-wheel span { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; }
.cy-wheel b { background: #F3EEE4; }
.cy-wheel i { font-style: normal; font-weight: 800; background: var(--ink); color: var(--cyan); }
.cy-form { display: grid; gap: 6px; }
.cy-form input { font-family: var(--mono); }

.term { flex: 1; min-height: 260px; background: #0E161C; color: #D6DEE5; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: .86rem; line-height: 1.55; overflow-y: auto; box-shadow: var(--shadow-sm); }
.term .pr { color: #7EE787; }
.term .cmd { color: #fff; font-weight: 700; }
.term .dir { color: #5EE6F0; font-weight: 700; }
.term .file { color: #D6DEE5; }
.term .err { color: #FF7B72; }
.term .txt { color: #FFD580; white-space: pre-wrap; }
.term .cur { animation: utrip-kurzor 1s steps(1) infinite; color: #7EE787; }
@keyframes utrip-kurzor { 50% { opacity: 0; } }
@media (max-width: 600px) { .cy-wheel { grid-template-columns: repeat(9, 1fr); } }

/* ===================== MREŽNA INFRASTRUKTURA ===================== */
.net { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.net-router { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 14px; width: max-content; margin: 0 auto; }
.net-router span { font-size: 1.6rem; }
.net-router code { display: block; background: none; color: var(--cyan); padding: 0; }
.net-bus { height: 18px; width: 4px; background: var(--ink); margin: 0 auto; }
.net-devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; border-top: 4px solid var(--ink); padding-top: 12px; }
.net-dev { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 8px 6px; font-size: .85rem; }
.net-dev .net-ico { font-size: 1.6rem; }
.net-dev code { font-size: .8rem; }
.net-dev small { color: var(--ink-2); font-size: .72rem; }
.net-dev em { font-style: normal; font-size: .75rem; font-weight: 800; color: #B42318; }
.net-dev em.g { color: var(--ok); }
.net-dev.ok { background: #E6F7EE; }
.net-dev.bad { background: #FDECEC; }
.net-dev.none { background: #F3EEE4; border-style: dashed; }

.map-net { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-sm); }
.map-net svg { width: 100%; height: auto; display: block; }
.map-net .ln { stroke: #C9BFAE; stroke-width: 5; stroke-linecap: round; }
.map-net .ln.on { stroke: var(--orange); stroke-width: 8; }
.map-net .ln.brk { stroke: #D64545; stroke-dasharray: 8 8; }
.map-net .ms { font: 700 12px var(--font); fill: var(--ink-2); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map-net .x { font: 900 18px var(--font); fill: #D64545; text-anchor: middle; }
.map-net .nd circle { fill: #F3EEE4; stroke: var(--ink); stroke-width: 3; }
.map-net .nd.on circle { fill: #FFE2C2; }
.map-net .nd.st circle { fill: #DDF6F7; }
.map-net .nd.ci circle { fill: #E6F7EE; stroke-width: 4; }
.map-net .ic { font-size: 20px; text-anchor: middle; }
.map-net .lb { font: 800 12px var(--font); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map-net .pkt { font-size: 22px; }

.ns-score { display: grid; gap: 6px; margin: 6px 0 10px; }
.ns-bar { height: 12px; background: #EFE7D8; border-radius: 99px; overflow: hidden; border: 2px solid var(--line); }
.ns-bar span { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.ns-list { background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.ns-list small { font-weight: 600; color: var(--ink-2); }

/* ---------- Python ---------- */
.izhod .code { flex: none; max-height: 38%; }
.code .k { color: #FF8FB1; font-weight: 700; }
.code .f { color: var(--cyan); }
.code .c { color: #7F8C98; font-style: italic; }
.py-run { display: flex; flex-direction: column; gap: 8px; }
.py-run-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.py-vhod { font-family: var(--mono); font-size: .85rem; border: 2px solid var(--line); border-radius: 8px; padding: 6px 8px; resize: vertical; width: 100%; box-sizing: border-box; }
.py-con { margin: 0; min-height: 70px; max-height: 220px; overflow: auto; background: #0F1720; color: #E6EDF3; border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: .85rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.py-con.err { color: #FFB4B4; }
.py-tests { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.py-tests li { border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #FBFBF8; }
.py-tests li.ok { border-color: #43A047; background: #EEF8EE; }
.py-tests li.bad { border-color: #E57373; background: #FFF1F1; }
.py-tests li.empty { color: var(--ink-2); }
.py-diff { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin-top: 6px; font-size: .82rem; align-items: start; }
.py-diff span { font-weight: 800; color: var(--ink-2); }
.py-diff pre { margin: 0; font-family: var(--mono); white-space: pre-wrap; word-break: break-word; background: #fff; border-radius: 6px; padding: 2px 6px; max-height: 120px; overflow: auto; }
.py-ed { flex: 1; min-height: 260px; display: flex; background: #0F1720; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.py-gut { flex: none; padding: 12px 8px 12px 10px; text-align: right; color: #5C6B78; font-family: var(--mono); font-size: .9rem; line-height: 1.55; white-space: pre; user-select: none; overflow: hidden; min-width: 2.2em; border-right: 1px solid #23313D; }
.py-ta { flex: 1; border: 0; outline: none; resize: none; background: transparent; color: #E6EDF3; caret-color: #FFD43B; font-family: var(--mono); font-size: .9rem; line-height: 1.55; padding: 12px; white-space: pre; overflow: auto; tab-size: 4; }
.py-ta:focus-visible { box-shadow: inset 0 0 0 2px #FFD43B; }
.py-help { margin: 6px 2px 0; }
.delo:has(.py-ed) { display: flex; flex-direction: column; padding: 12px; }
.py-ta, .py-gut, .py-con, .py-vhod, .py-diff pre, .code pre, code, pre { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.py-vhod { height: 64px; min-height: 44px; max-height: 160px; flex: none; }

/* ---------- Profil igralca ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.pf-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--soft); border: 3px solid var(--line); box-shadow: var(--shadow-sm); object-fit: contain; padding: 6px; }
.pf-who { flex: 1; min-width: 220px; }
.pf-who h1 { margin: 2px 0 4px; }
.pf-who .eyebrow { margin: 0; }
.pf-xp { height: 12px; background: var(--soft); border: 2px solid var(--line); border-radius: 99px; overflow: hidden; max-width: 380px; margin-top: 8px; }
.pf-xp-bar { height: 100%; background: var(--orange); border-radius: 99px; transition: width .6s ease; }
.pf-who #pf-xp-txt { margin: 6px 0 0; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pf-tile { background: #fff; border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.pf-tile .pf-ico { grid-row: span 2; font-size: 1.6rem; }
.pf-tile strong { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-tile span:last-child { font-size: .82rem; color: var(--ink-2); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-wide { grid-column: 1 / -1; }
.pf-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-card-head h2 { margin: 0; }
.pf-heat-svg { width: 100%; max-width: 760px; height: auto; display: block; }
.pf-ax { font: 700 9px var(--font); fill: var(--ink-2); }
.h0 { fill: #ECE6D8; background: #ECE6D8; } .h1 { fill: #BFE6E7; background: #BFE6E7; } .h2 { fill: #7CCACD; background: #7CCACD; } .h3 { fill: #2FA4A9; background: #2FA4A9; } .h4 { fill: #1D6E72; background: #1D6E72; }
.pf-heat-svg rect:hover { stroke: var(--ink); stroke-width: 1.5; }
.pf-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.pf-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.pf-card-head .pf-legend { margin: 0; gap: 4px 6px; flex-wrap: wrap; }
.pf-line-svg { width: 100%; height: auto; display: block; }
.pf-line-svg .pf-gl { stroke: #E7E0D2; stroke-width: 1; }
.pf-line-svg .pf-base { stroke: var(--ink-2); stroke-width: 1; }
.pf-line-svg .pf-path { fill: none; stroke: var(--orange-d); stroke-width: 2.5; stroke-linejoin: round; }
.pf-line-svg .pf-area { fill: var(--orange); opacity: .14; }
.pf-line-svg .pf-dot { fill: var(--orange-d); stroke: #fff; stroke-width: 2; }
.pf-line-svg .pf-cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.pf-empty { padding: 30px 0; text-align: center; }
.pf-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: .82rem; line-height: 1.4; padding: 6px 10px; border-radius: 8px; max-width: 260px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.pf-ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pf-ach li { border: 2px dashed #CFC6B4; border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; color: #8B8577; }
.pf-ach li > span:first-child { grid-row: span 2; font-size: 1.5rem; filter: grayscale(1); opacity: .45; }
.pf-ach li small { font-size: .75rem; line-height: 1.3; }
.pf-ach li.is-on { border: 2px solid var(--line); background: #FFF8E1; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.pf-ach li.is-on > span:first-child { filter: none; opacity: 1; }
.pf-grp { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 14px 0 6px; }
.pf-grp:first-child { margin-top: 0; }
.pf-row { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEE7DA; }
.pf-row:last-child { border-bottom: 0; }
.pf-badge { width: 52px; height: 52px; object-fit: contain; flex: none; }
.pf-badge.is-locked { filter: grayscale(1); opacity: .5; }
.pf-row-main { flex: 1; min-width: 0; }
.pf-row-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pf-row-top a { color: var(--ink); text-decoration: none; }
.pf-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 520px; }
.pf-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: .75rem; font-weight: 800; color: var(--ink); text-decoration: none; border: 1.5px solid transparent; }
.pf-cell:hover, .pf-cell:focus-visible { border-color: var(--ink); }
.z0 { background: #F3EEE3; color: #9C9585; } .z1 { background: #FFE9A8; } .z2 { background: #FFCF4D; } .z3 { background: #E8A10C; }
.pf-legend i.z0 { border: 1px solid #D8D0BF; }
.pf-recent { list-style: none; margin: 0; padding: 0; }
.pf-recent li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EEE7DA; }
.pf-recent li:last-child { border-bottom: 0; }
.pf-recent a { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.pf-recent a span { display: flex; flex-direction: column; min-width: 0; }
.pf-recent small { color: var(--ink-2); }
.pf-stars { color: #E8A10C; letter-spacing: 1px; white-space: nowrap; }
.pf-stars i { color: #D8D0BF; font-style: normal; }
@media (max-width: 760px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-avatar { width: 72px; height: 72px; }
  .pf-recent li > .small { display: none; }
}

/* ---------- Živi zaslon (projektor) ---------- */
.zaslon-body .top, .zaslon-body .foot, .zaslon-body .flash { display: none; }
.zaslon-body { background: var(--cream); }
.zs { min-height: 100vh; padding: clamp(12px, 1.6vw, 28px); display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 20px); font-size: clamp(14px, 1.05vw, 22px); background: var(--cream); }
.zs-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.zs-brand { display: flex; align-items: center; gap: 14px; }
.zs-brand img { width: 3.2em; height: 3.2em; }
.zs-brand h1 { margin: 0; font-size: 2em; line-height: 1.1; }
.zs-vstop { margin: 2px 0 0; font-size: 1.05em; }
.zs-koda { font-family: var(--mono); font-weight: 800; letter-spacing: .12em; background: var(--ink); color: var(--sun); padding: 2px 10px; border-radius: 8px; font-size: 1.3em; }
.zs-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.zs-live { font-weight: 800; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.zs-live i { width: .7em; height: .7em; border-radius: 50%; background: var(--ok); animation: zs-pulz 1.6s ease-in-out infinite; }
.zs-live.is-off { color: #B42318; } .zs-live.is-off i { background: #B42318; animation: none; }
@keyframes zs-pulz { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,157,97,.5); } 50% { box-shadow: 0 0 0 .4em rgba(31,157,97,0); } }
.zs-ura { font-weight: 900; font-size: 1.6em; font-variant-numeric: tabular-nums; }
.zs-ctrl { display: flex; gap: 6px; }
.zs-btn { font: inherit; font-size: .8em; font-weight: 800; padding: 6px 10px; border: 2px solid var(--line); background: #fff; border-radius: 99px; cursor: pointer; color: var(--ink); text-decoration: none; }
.zs-btn[aria-pressed="false"] { opacity: .5; }
.zs-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 18px); }
.zs-tile { background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: .7em 1em; display: flex; align-items: center; gap: .7em; }
.zs-ico { font-size: 2em; }
.zs-tile strong { font-size: 2.6em; line-height: 1; font-variant-numeric: tabular-nums; }
.zs-tile span:last-child { display: flex; flex-direction: column; font-weight: 750; color: var(--ink-2); line-height: 1.2; }
.zs-tile small { font-weight: 600; font-size: .8em; }
.zs-main { flex: 1; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(10px, 1.2vw, 20px); min-height: 0; }
.zs-panel { background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: .9em 1.1em; min-height: 0; }
.zs-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: .6em; color: var(--ink-2); font-size: .85em; }
.zs-panel-head h2 { margin: 0; font-size: 1.35em; color: var(--ink); }
.zs-side { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 20px); min-height: 0; }
.zs-ucenci { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: .6em; }
.zs-u { display: flex; gap: .6em; align-items: center; padding: .5em .6em; border-radius: 12px; border: 2px solid #EEE7DA; transition: border-color .3s, background .3s; }
.zs-u.is-aktiven { border-color: #9BD8B9; background: #F1FAF5; }
.zs-u.is-ne { opacity: .6; }
.zs-av { position: relative; flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; color: #fff; font-weight: 900; font-size: 1.1em; display: grid; place-items: center; border: 2px solid var(--line); }
.zs-dot { position: absolute; right: -3px; bottom: -3px; width: .8em; height: .8em; border-radius: 50%; border: 2px solid #fff; background: #B8B2A4; }
.is-aktiven .zs-dot { background: var(--ok); } .is-nedavno .zs-dot { background: var(--sun); }
.zs-u-main { flex: 1; min-width: 0; }
.zs-u-top { display: flex; justify-content: space-between; gap: 6px; }
.zs-u-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-u-zv { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zs-kaj { display: flex; align-items: center; gap: 4px; font-size: .78em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-kaj img { width: 1.3em; height: 1.3em; flex: none; }
.zs-kaj strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.zs-u-bar { height: 5px; background: #EEE7DA; border-radius: 99px; margin-top: 4px; overflow: hidden; }
.zs-u-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .6s; }
.zs-lb { list-style: none; margin: 0; padding: 0; }
.zs-lb li { display: flex; align-items: center; gap: .6em; padding: .35em 0; border-bottom: 1px solid #EEE7DA; font-size: 1.05em; }
.zs-lb li:last-child { border-bottom: 0; }
.zs-mesto { width: 1.6em; text-align: center; font-weight: 900; }
.zs-lb strong { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-lb-zv { font-weight: 900; font-variant-numeric: tabular-nums; }
.zs-feed-wrap { flex: 1; overflow: hidden; }
.zs-feed { list-style: none; margin: 0; padding: 0; }
.zs-feed li { display: flex; align-items: center; gap: .6em; padding: .4em 0; border-bottom: 1px solid #EEE7DA; font-size: .9em; animation: zs-in .5s ease; }
.zs-feed li img { width: 2em; height: 2em; flex: none; }
.zs-feed li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.zs-feed small { color: var(--ink-2); }
.zs-z { color: #E8A10C; white-space: nowrap; letter-spacing: 1px; } .zs-z i { color: #D8D0BF; font-style: normal; }
.zs-prazno { color: var(--ink-2); font-size: .95em; margin: .4em 0; list-style: none; border: 0 !important; }
.zs-polje { display: grid; grid-template-columns: repeat(auto-fit, minmax(22em, 1fr)); gap: .8em 1.6em; }
.zs-sk-ime { display: flex; align-items: center; gap: .5em; font-weight: 800; margin-bottom: .3em; }
.zs-sk-ime img { width: 1.8em; height: 1.8em; }
.zs-stolpci { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.zs-st { display: flex; flex-direction: column; align-items: center; font-size: .72em; color: var(--ink-2); }
.zs-st-bar { width: 100%; height: 3.6em; background: #F3EEE3; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.zs-st-bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; transition: height .6s; }
.zs-st b { color: var(--ink); font-variant-numeric: tabular-nums; }
.zs-toasts { position: fixed; right: clamp(12px, 2vw, 32px); bottom: clamp(12px, 2vw, 32px); display: flex; flex-direction: column; gap: 10px; z-index: 60; pointer-events: none; }
.zs-toast { display: flex; align-items: center; gap: .7em; background: var(--ink); color: #fff; padding: .8em 1.1em; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 1.1em; animation: zs-toast-in .5s cubic-bezier(.2,1.4,.4,1); max-width: 26em; }
.zs-toast.is-gold { background: linear-gradient(135deg, #2B2010, #4A3510); border: 2px solid var(--sun); }
.zs-toast-ico { font-size: 1.8em; }
.zs-toast .zs-z i { color: #6B6B6B; }
.zs-toast.is-out { opacity: 0; transform: translateX(30px); transition: all .6s; }
@keyframes zs-toast-in { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes zs-in { from { background: #FFF5D6; } to { background: transparent; } }
.zs-ver { position: fixed; left: 10px; bottom: 6px; margin: 0; font-size: 11px; color: #A59E8F; }
.zs:fullscreen { overflow: auto; }
@media (max-width: 900px) { .zs-main { grid-template-columns: 1fr; } .zs-kpi { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .zs-live i, .zs-toast, .zs-feed li { animation: none; } }

/* ---------- Dvoboj ---------- */
.dv-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.dv-hero h1 { margin: 0 0 6px; }
.dv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dv-cards h2 { margin: 0 0 4px; }
.dv-stopnja { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.dv-stopnja legend { font-weight: 800; margin-bottom: 6px; }
.dv-stopnja label { display: flex; gap: 10px; align-items: center; border: 2px solid #E2DACB; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.dv-stopnja label:has(input:checked) { border-color: var(--ink); background: #FFF8E1; }
.dv-stopnja span { display: flex; flex-direction: column; font-weight: 800; }
.dv-stopnja small { font-weight: 600; color: var(--ink-2); }
.dv { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; }
.dv-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 12px 18px; }
.dv-p { display: flex; flex-direction: column; min-width: 0; }
.dv-p-r { text-align: right; align-items: flex-end; }
.dv-ime { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dv-p.is-jaz .dv-ime { color: var(--teal-d); }
.dv-t { font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dv-t.is-pop { animation: dv-pop .5s ease; }
@keyframes dv-pop { 40% { transform: scale(1.3); color: var(--ok); } }
.dv-st { font-size: .8rem; color: var(--ink-2); min-height: 1.2em; }
.dv-mid { display: flex; flex-direction: column; align-items: center; }
.dv-vs { font-weight: 900; font-size: 1.4rem; color: var(--orange-d); }
.dv-krog { font-size: .8rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.dv-timer { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 12px 4px 18px; }
.dv-timer i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 99px; }
.dv-timer i.is-hurry { background: #E5484D; }
.dv-timer i.is-reveal { background: #C9C0AE; }
.dv-stage { min-height: 360px; }
.dv-wait, .dv-count, .dv-end { text-align: center; padding: 24px 0; }
.dv-koda { font-family: var(--mono); font-weight: 800; font-size: clamp(3rem, 12vw, 5.5rem); letter-spacing: .18em; background: var(--ink); color: var(--sun); display: inline-block; padding: 6px 24px 6px 36px; border-radius: 18px; box-shadow: var(--shadow); margin: 6px 0 14px; }
.dv-pike { font-weight: 800; color: var(--ink-2); }
.dv-pike span { animation: dv-pika 1.4s infinite; opacity: 0; }
.dv-pike span:nth-child(2) { animation-delay: .2s; } .dv-pike span:nth-child(3) { animation-delay: .4s; }
@keyframes dv-pika { 30%, 60% { opacity: 1; } }
.dv-count strong { display: block; font-size: 8rem; line-height: 1; color: var(--orange); animation: dv-pop .9s ease infinite; }
.dv-count p:first-child { font-size: 1.4rem; font-weight: 800; margin: 0; }
.dv-q { text-align: center; }
.dv-tema { display: inline-block; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; background: var(--soft); border-radius: 99px; padding: 3px 12px; }
.dv-q h2 { font-size: clamp(1.25rem, 3.2vw, 1.7rem); margin: 10px 0 12px; }
.dv-code { text-align: left; display: inline-block; min-width: min(100%, 360px); max-width: 100%; overflow-x: auto; background: #0F1720; color: #E6EDF3; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-family: var(--mono); font-size: .95rem; line-height: 1.5; }
.dv-code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.dv-odg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.dv-o { position: relative; font: inherit; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; color: var(--ink); min-height: 72px; transition: transform .1s; }
.dv-o b { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.dv-o span { word-break: break-word; }
.o0 b { background: #E0701A; } .o1 b { background: #3A7BD5; } .o2 b { background: #1F9D61; } .o3 b { background: #A55B80; }
.dv-o:not([disabled]):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.dv-o:not([disabled]):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.dv-o[disabled] { cursor: default; opacity: .55; }
.dv-o.is-moj { opacity: 1; background: #FFF8E1; outline: 3px solid var(--sun); }
.dv-o.is-ok { opacity: 1; background: #E7F6EE; border-color: var(--ok); outline: 3px solid var(--ok); }
.dv-o.is-bad { opacity: 1; background: #FDECEC; border-color: #E5484D; outline: 3px solid #E5484D; }
.dv-nas { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; border: 2px solid #fff; }
.dv-res { font-weight: 800; margin-top: 16px; font-size: 1.1rem; }
.dv-res.ok { color: var(--ok); } .dv-res.bad { color: #B42318; }
.dv-res strong { font-size: 1.4rem; }
.dv-end-ico { font-size: 5rem; line-height: 1; }
.dv-end.is-win .dv-end-ico { animation: dv-pop 1.2s ease 2; }
.dv-end h2 { margin: 8px 0; font-size: 1.8rem; }
.dv-end-score { font-size: 2rem; margin: 4px 0 18px; }
.dv-end-act { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dv-pregled { text-align: left; margin-top: 24px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.dv-pregled summary { font-weight: 800; cursor: pointer; }
.dv-pregled ol { padding-left: 20px; }
.dv-pregled li { margin: 10px 0; }
.dv-pregled li span { display: block; font-size: .9rem; color: var(--ink-2); }
.dv-pregled li.ok strong::after { content: ' ✓'; color: var(--ok); }
.dv-pregled .dv-code { display: block; margin: 6px 0; font-size: .85rem; }
@media (max-width: 700px) {
  .dv-cards, .dv-odg { grid-template-columns: 1fr; }
  .dv-hero { flex-direction: column; text-align: center; }
  .dv-o { min-height: 58px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .dv-count strong, .dv-t.is-pop, .dv-end-ico { animation: none !important; } }
.pf-head { padding: 18px 22px; border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); background: linear-gradient(120deg, #E4F5F5, #FFF6E6); }
.pf-heat-svg { max-width: 560px; }
.pf-line-svg { max-height: 260px; }
.pad-sm { padding-top: 0; padding-bottom: 8px; }
.dv-promo { display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 18px; padding: 16px 22px; box-shadow: 4px 4px 0 var(--orange); }
.dv-promo:hover { color: #fff; transform: translate(-1px, -1px); }
.dv-promo-ico { font-size: 2rem; }
.dv-promo span:nth-child(2) { flex: 1; }
.dv-promo .go { font-weight: 900; color: var(--sun); white-space: nowrap; }

/* ---------- Razredni kviz ---------- */
.kz-pasica { display: block; background: var(--orange); color: var(--ink); text-align: center; padding: 10px 16px; font-weight: 750; text-decoration: none; border-bottom: 2px solid var(--line); }
.kz-pasica span { font-weight: 900; text-decoration: underline; margin-left: 6px; }
.kz-nov { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.kz-nov summary { font-weight: 850; cursor: pointer; }
.kz-nov form { margin-top: 10px; }
.kz-opts { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.kz-opts label { display: flex; flex-direction: column; font-weight: 750; font-size: .9rem; gap: 4px; }
.kz-opts select { font: inherit; padding: 6px 8px; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.kz-teme { border: 0; padding: 0; margin: 8px 0 14px; }
.kz-teme legend { font-weight: 750; font-size: .9rem; margin-bottom: 4px; }
.kz-teme-sk { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.kz-teme label { font-size: .9rem; }
/* igralec */
.kz { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.kz-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 800; }
.kz-krog { color: #B8C4CE; font-size: .9rem; }
.kz-tocke { color: var(--sun); font-variant-numeric: tabular-nums; }
.kz .dv-timer { margin: 10px 2px 14px; }
.kz-stage { min-height: 60vh; }
.kz-msg { text-align: center; padding: 28px 0; }
.kz-msg h2 { margin: 8px 0; font-size: 1.7rem; }
.kz-big { font-size: 5rem; line-height: 1.1; }
.kz-pulse { animation: dv-pop 1s ease infinite; }
.kz-res.is-ok .kz-big, .kz-res.is-ok h2 { color: var(--ok); }
.kz-res.is-bad .kz-big, .kz-res.is-bad h2 { color: #B42318; }
.kz-plus { font-size: 2.2rem; font-weight: 900; margin: 6px 0; }
.kz-q { text-align: center; }
.kz-q h2 { font-size: 1.3rem; margin: 4px 0 12px; }
.kz-odg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kz-o { font: inherit; font-weight: 800; color: #fff; border: 0; border-radius: 14px; min-height: 110px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.25); text-align: center; font-size: 1rem; }
.kz-o b { font-size: 1.8rem; line-height: 1; }
.kz-o:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.kz-o[disabled] { opacity: .45; } .kz-o.is-moj { opacity: 1; outline: 4px solid var(--ink); }
.k0 { background: #E0484D; } .k1 { background: #2F6FD8; } .k2 { background: #D9A20B; } .k3 { background: #1F9D61; }
.kz-o-mini { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 18px; color: #fff; font-size: 3.2rem; }
/* vodja (projektor) */
.kzv { gap: clamp(8px, 1vw, 16px); }
.kzv-krog { font-weight: 900; font-size: 1.3em; }
.kzv-timer { height: .7em; margin: 0; }
.kzv-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.kzv-foot { display: flex; justify-content: space-between; align-items: center; font-size: 1.3em; min-height: 3em; }
.kzv-foot .btn { font-size: 1em; }
.kzv-lobby { text-align: center; }
.kzv-navodilo { font-size: 1.6em; margin: 0; }
.kzv-koda { font-size: clamp(4rem, 11vw, 9rem); }
.kzv-igralci { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; max-width: 90%; margin: .6em auto; }
.kzv-chip { font: inherit; font-weight: 800; font-size: 1.15em; padding: .35em .9em; border-radius: 99px; border: 2px solid var(--line); background: #fff; cursor: pointer; animation: zs-toast-in .4s cubic-bezier(.2,1.4,.4,1); }
.kzv-chip:hover { background: #FDECEC; text-decoration: line-through; }
.kzv-intro { text-align: center; }
.kzv-intro p { font-size: 2em; margin: 0; font-weight: 800; }
.kzv-intro strong { display: block; font-size: 10em; line-height: 1; color: var(--orange); animation: dv-pop 1s ease; }
.kzv-q { text-align: center; }
.kzv-q h2 { font-size: clamp(1.6rem, 3vw, 3.2rem); margin: .3em 0 .5em; }
.kzv-q .dv-code { font-size: 1.3em; }
.kzv-odg { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; text-align: left; }
.kzv-o { position: relative; display: flex; align-items: center; gap: .6em; color: #fff; border-radius: 16px; padding: .8em 1em; min-height: 3.6em; font-size: 1.6em; font-weight: 800; overflow: hidden; transition: opacity .4s; }
.kzv-o b { font-size: 1.2em; }
.kzv-o span { flex: 1; }
.kzv-o.is-dim { opacity: .35; }
.kzv-o.is-ok { outline: 6px solid var(--ink); }
.kzv-check { font-style: normal; font-size: 1.4em; }
.kzv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .5em; background: rgba(0,0,0,.18); }
.kzv-bar i { display: block; height: 100%; background: rgba(255,255,255,.85); transition: width .8s; }
.kzv-bar em { position: absolute; right: .5em; bottom: .5em; font-style: normal; font-size: .8em; background: rgba(0,0,0,.35); padding: 0 .4em; border-radius: 6px; }
.kzv-lb { max-width: 900px; width: 100%; margin: 0 auto; }
.kzv-lb h2 { text-align: center; font-size: 2.4em; margin: 0 0 .4em; }
.kzv-lb ol { list-style: none; padding: 0; margin: 0; }
.kzv-lb li { display: flex; align-items: center; gap: .8em; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .5em 1em; margin-bottom: .4em; font-size: 1.4em; animation: zs-toast-in .5s ease both; }
.kzv-lb li:nth-child(2) { animation-delay: .08s; } .kzv-lb li:nth-child(3) { animation-delay: .16s; } .kzv-lb li:nth-child(4) { animation-delay: .24s; } .kzv-lb li:nth-child(5) { animation-delay: .32s; }
.kzv-m { width: 1.6em; font-weight: 900; color: var(--ink-2); }
.kzv-lb strong { flex: 1; }
.kzv-lb .up { color: var(--ok); font-weight: 900; } .kzv-lb .down { color: #B42318; font-weight: 900; } .kzv-lb .same { color: #B8B2A4; }
.kzv-t { font-weight: 900; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.kzv-end { text-align: center; }
.kzv-end h2 { font-size: 2.6em; margin: 0 0 .3em; }
.kzv-oder { display: flex; justify-content: center; align-items: flex-end; gap: 1em; margin: .5em 0 1em; }
.kzv-st { width: min(14em, 28vw); display: flex; flex-direction: column; align-items: center; }
.kzv-oder-ime { font-weight: 900; font-size: 1.5em; }
.kzv-oder-t { font-weight: 800; color: var(--ink-2); margin-bottom: .3em; }
.kzv-stopnica { width: 100%; background: var(--sun); border: 2px solid var(--line); border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 3em; box-shadow: var(--shadow-sm); animation: kzv-dvig .9s cubic-bezier(.2,1.2,.4,1) both; transform-origin: bottom; }
.kzv-st.m1 .kzv-stopnica { height: 7em; font-size: 3.6em; height: 2.2em; }
.kzv-st.m2 .kzv-stopnica { height: 1.6em; background: #D8DEE4; animation-delay: .3s; }
.kzv-st.m3 .kzv-stopnica { height: 1.2em; background: #E6B98A; animation-delay: .6s; }
@keyframes kzv-dvig { from { transform: scaleY(0); } to { transform: none; } }
.kzv-ostali { display: inline-grid; grid-template-columns: repeat(3, auto); gap: .2em 2em; text-align: left; font-size: 1.1em; margin: 0 auto 1em; }
.kzv-ostali span { color: var(--ink-2); font-weight: 800; }
.kzv-end .dv-pregled { max-width: 900px; margin: 0 auto 1em; font-size: .9em; }
@media (max-width: 600px) { .kz-odg, .kzv-odg { grid-template-columns: 1fr; } .kz-o { min-height: 72px; flex-direction: row; } }

/* ---------- Javna lestvica ---------- */
.ls-head { display: flex; gap: 20px; align-items: center; margin-bottom: 10px; }
.ls-head h1 { margin: 0 0 6px; }
.ls-oder { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; max-width: 760px; margin: 10px auto 22px; }
.ls-st { background: #fff; border: 2px solid var(--line); border-radius: 18px 18px 6px 6px; box-shadow: var(--shadow-sm); text-align: center; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-st strong { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-st span:last-child { font-weight: 900; color: var(--ink-2); }
.ls-med { font-size: 2.4rem; line-height: 1.1; }
.ls-st.m1 { background: #FFF4C7; padding: 26px 10px; }
.ls-st.m1 .ls-med { font-size: 3.2rem; }
.ls-st.m2 { background: #EEF1F4; } .ls-st.m3 { background: #FBEBDD; }
.ls-st.is-jaz, .ls-list li.is-jaz { outline: 3px solid var(--teal); }
.ls-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.ls-list li { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #E5DDCE; border-radius: 12px; padding: 8px 14px; margin-bottom: 6px; }
.ls-m { width: 2em; font-weight: 900; color: var(--ink-2); }
.ls-list strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-zv { font-weight: 900; font-variant-numeric: tabular-nums; }
.ls-jaz { max-width: 760px; margin: 18px auto 0; text-align: center; }
@media (max-width: 560px) { .ls-head img { display: none; } .ls-oder { gap: 6px; } .ls-st strong { font-size: .95rem; } }
.dv-promo-2 { margin-top: 10px; background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--sun); }
.dv-promo-2:hover { color: var(--ink); }
.dv-promo-2 .go { color: var(--teal-d); }

/* ---------- Admin: obiski ---------- */
.hbar-table td:first-child { position: relative; }
.hbar { position: absolute; left: 0; top: 4px; bottom: 4px; width: var(--w); background: #E2F3F3; border-radius: 4px; }
.hbar-t { position: relative; }
.ure { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 110px; align-items: end; }
.ura { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ura i { display: block; width: 100%; height: var(--h); min-height: 1px; background: var(--teal); border-radius: 3px 3px 0 0; }
.ura span { font-size: .65rem; color: var(--ink-2); height: 1.2em; }

/* ---------- JavaScript ---------- */
.js-skrit { position: absolute; left: -10000px; top: 0; width: 480px; height: 360px; border: 0; visibility: hidden; }
.js-okno { width: 100%; height: 240px; border: 2px solid var(--line); border-radius: 10px; background: #fff; margin-top: 8px; }
.js-pred .py-run-head { margin-bottom: 0; }
.js-con { min-height: 44px; max-height: 140px; }
.js-html summary { cursor: pointer; }
.js-html .dv-code { display: block; margin: 8px 0 0; font-size: .8rem; white-space: pre-wrap; }
.py-navoljo { display: block; margin: 6px 0 0; font-size: .8rem; white-space: pre-wrap; }

/* ---------- Kodkova pustolovščina (svet) ---------- */
.sv-oder { background: #15130F; border: 2px solid #000; border-radius: 14px; padding: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.35); color: #E9DFC7; }
.sv-glava { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sv-stanje { font-weight: 800; font-size: .9rem; color: #CBBF9F; }
.sv-stanje.ok { color: #9BE37A; } .sv-stanje.bad { color: #FF9D80; }
.sv-gumb { background: #C9A227; color: #15130F; border-color: #000; }
.sv-gumb2 { background: #2A261F; color: #E9DFC7; border-color: #000; }
.sv-var { display: flex; gap: 4px; }
.sv-vb { font: inherit; font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; border: 1px solid #5C513D; background: #221F19; color: #CBBF9F; cursor: pointer; }
.sv-vb.is-on { background: #C9A227; color: #15130F; } .sv-vb.ok { border-color: #6FA35A; } .sv-vb.bad { border-color: #C96B4F; }
.sv-mreza { position: relative; display: grid; grid-template-columns: repeat(var(--sv-w), 1fr); aspect-ratio: var(--sv-w) / var(--sv-h); width: 100%; max-height: 52vh; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #0E0C09; }
.sv-p { position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35); }
.sv-p { background: linear-gradient(rgba(255,214,140,.08), rgba(255,214,140,.08)), url('../img/svet/tla.webp') center / cover; }
.sv-drevo, .sv-skala, .sv-voda { background: linear-gradient(rgba(8,10,6,.62), rgba(8,10,6,.62)), url('../img/svet/tla.webp') center / cover; }
.sv-p::before { content: ''; position: absolute; inset: -2%; background: center / contain no-repeat; pointer-events: none; }
.sv-skala::before { background-image: url('../img/svet/skala.webp'); }
.sv-drevo::before { background-image: url('../img/svet/drevo.webp'); inset: 2%; filter: brightness(.8); }
.sv-voda::before { background-image: url('../img/svet/voda.webp'); inset: 0; background-size: cover; }
.sv-vrata::before { background-image: url('../img/svet/vrata.webp'); transition: opacity .5s, transform .5s; }
.sv-vrata.sv-odprto::before { opacity: 0; transform: scaleX(.2); }
.sv-napis::before { background-image: url('../img/svet/napis.webp'); inset: 4%; }
.sv-napis.sv-bran::before { animation: dv-pop .5s; }
.sv-cilj::before { background-image: url('../img/svet/cilj.webp'); animation: sv-portal 3s linear infinite; }
@keyframes sv-portal { from { transform: rotate(0); filter: brightness(1); } 50% { filter: brightness(1.3); } to { transform: rotate(360deg); filter: brightness(1); } }
.sv-kristal { position: absolute; inset: 12% 22%; background: url('../img/svet/kristal.webp') center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(94,230,240,.8)); transition: transform .3s, opacity .3s; animation: sv-lebdi 2.4s ease-in-out infinite; }
.sv-kristal.sv-pobran { transform: translateY(-60%) scale(.3); opacity: 0; animation: none; }
.sv-senca { position: absolute; inset: -4%; background: url('../img/svet/senca.webp') center / contain no-repeat; animation: sv-lebdi 2s ease-in-out infinite; transition: opacity .5s, transform .5s; }
.sv-senca.sv-pregnana { opacity: 0; transform: scale(1.6); }
@keyframes sv-lebdi { 50% { transform: translateY(-6%); } }
.sv-zadet { animation: sv-tres .35s; }
@keyframes sv-tres { 25% { transform: translateX(-4%); } 75% { transform: translateX(4%); } }
.sv-kodko { position: absolute; width: calc(100% / var(--sv-w)); height: calc(100% / var(--sv-h)); background: url('../img/svet/kodko.webp') center / 118% no-repeat; filter: drop-shadow(0 4px 3px rgba(0,0,0,.75)); transition: left .24s linear, top .24s linear; z-index: 2; }
.sv-kodko.sv-brez { transition: none; }
.sv-kodko.sv-udarec { animation: sv-tres .35s; }
.sv-kodko.sv-zmaga { animation: dv-pop .8s ease 2; }
.sv-luc { position: absolute; width: calc(100% / var(--sv-w)); height: calc(100% / var(--sv-h)); border-radius: 50%; pointer-events: none; opacity: 0; z-index: 3; background: radial-gradient(circle, rgba(255,236,160,.95), rgba(255,200,80,.4) 45%, transparent 70%); }
.sv-luc.sv-blisk { animation: sv-blisk .5s ease-out; }
@keyframes sv-blisk { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(1.8); } }
.sv-legenda { margin-top: 6px; color: #CBBF9F; }
.sv-nap { margin-top: 8px; }
/* temna tema sklopa in nalog */
.sklop-hero.tema-temna { color: #F2E8D0; border-color: #000; }
.sklop-hero.tema-temna::before { background: linear-gradient(90deg, rgba(14,11,8,.95) 0%, rgba(14,11,8,.8) 50%, rgba(14,11,8,.25) 100%); }
.sklop-hero.tema-temna .eyebrow { color: #E6C25A; }
.sklop-hero.tema-temna a { color: #E6C25A; }
body.stran-temna { background: #1A1712; color: #E9DFC7; }
body.stran-temna .level { background: #241F17; border-color: #000; color: #E9DFC7; box-shadow: 4px 4px 0 #000; }
body.stran-temna .level-num { background: #5B4A2E; color: #F2E8D0; border-color: #000; }
body.stran-temna .level:hover { border-color: #C9A227; }
body.stran-temna .map-summary, body.stran-temna .pad h2 { color: #E9DFC7; }
body.stran-temna .level-stars span:not(.on) { color: #5C513D; }
body.svet-temna { background: #1A1712; }
body.svet-temna .game-bar { background: #221E17; color: #E9DFC7; border-color: #000; }
body.svet-temna .game-bar .muted, body.svet-temna .game-bar a { color: #CBBF9F; }
body.svet-temna .pane-task { background: #201C16; color: #E9DFC7; }
body.svet-temna .pane-task .h-sm { color: #B5A784; }
body.svet-temna .bubble { background: #F2E6C9; color: #2A2116; border-color: #000; }
body.svet-temna .modal { background: #221E17; color: #E9DFC7; border-color: #000; }
body.svet-temna .pane-preview { background: #1A1712; }
body.svet-temna .goals li { background: #2A251C; border-color: #4A402F; color: #E9DFC7; }
body.svet-temna .goals li.is-ok { background: #24331E; border-color: #6FA35A; }
body.svet-temna .hint { background: #2A251C; border-color: #6B5A3A; color: #F2E6C9; }
body.svet-temna .hint strong { color: #FFD98A; }
body.svet-temna .hint code { background: #3A3226; color: #FFE7B0; border: 1px solid #5A4C34; }
body.svet-temna #namig-gumb { background: #2A251C; color: #F2E6C9; border-color: #6B5A3A; }
.sv-promo { display: flex; align-items: center; gap: 16px; background: linear-gradient(110deg, #15130F, #3A2E1C); color: #F2E8D0; text-decoration: none; border-radius: 18px; padding: 14px 22px; box-shadow: 4px 4px 0 #6D4BC7; margin-bottom: 10px; }
.sv-promo:hover { color: #fff; transform: translate(-1px, -1px); }
.sv-promo img { width: 60px; height: 64px; object-fit: contain; }
.sv-promo span:nth-child(2) { flex: 1; }
.sv-promo strong { display: block; font-size: 1.15rem; color: #E6C25A; }
.sv-promo .go { font-weight: 900; color: #E6C25A; white-space: nowrap; }
body.stran-temna .level.is-done .level-num { background: #C9A227; color: #15130F; }
.sklop-hero.tema-temna .lead, .sklop-hero.tema-temna .small { color: #CBBF9F; }
body.svet-temna .pane-blocks { background: #1A1712; }
body.svet-temna .py-help { color: #B5A784; }
body.svet-temna .py-help code { background: #2A251C; color: #E9DFC7; }
.map-poglavje { grid-column: 1 / -1; margin: 18px 0 2px; font-size: 1.25rem; }
.map-poglavje:first-child { margin-top: 0; }
body.stran-temna .map-poglavje { color: #E6C25A; }
/* 2. poglavje: vas pod gradom */
.sv-vas .sv-p { background: linear-gradient(rgba(255,214,140,.05), rgba(255,214,140,.05)), url('../img/svet/tlak.webp') center / cover; }
.sv-vas .sv-luza { background: url('../img/svet/tlak-luza.webp') center / cover; }
.sv-vas .sv-blato, .sv-blato { background: url('../img/svet/blato.webp') center / cover; }
.sv-vas .sv-drevo, .sv-vas .sv-skala, .sv-vas .sv-voda, .sv-hisa, .sv-sodi, .sv-vodnjak, .sv-ograja, .sv-ognjisce, .sv-strazar, .sv-stolp, .sv-vas .sv-hisa, .sv-vas .sv-sodi, .sv-vas .sv-vodnjak, .sv-vas .sv-ograja, .sv-vas .sv-ognjisce, .sv-vas .sv-strazar, .sv-vas .sv-stolp { background: linear-gradient(rgba(8,10,6,.55), rgba(8,10,6,.55)), url('../img/svet/blato.webp') center / cover; }
.sv-hisa::before, .sv-sodi::before, .sv-vodnjak::before, .sv-ograja::before, .sv-ognjisce::before { inset: 0; background-size: cover; filter: brightness(.82); }
.sv-hisa::before { background-image: url('../img/svet/hisa-slama.webp'); }
.sv-hisa2::before { background-image: url('../img/svet/hisa-skrilj.webp'); }
.sv-sodi::before { background-image: url('../img/svet/sodi.webp'); }
.sv-vodnjak::before { background-image: url('../img/svet/vodnjak.webp'); }
.sv-ograja::before { background-image: url('../img/svet/ograja.webp'); }
.sv-ognjisce::before { background-image: url('../img/svet/ognjisce.webp'); }
.sv-strazar::before { background-image: url('../img/svet/strazar.webp'); inset: -6%; filter: drop-shadow(0 4px 3px rgba(0,0,0,.7)); animation: sv-dih 3s ease-in-out infinite; }
@keyframes sv-dih { 50% { transform: scale(1.04); } }
.sv-stolp::before, .sv-stolp::after { content: ''; position: absolute; inset: -8%; background: center / contain no-repeat; pointer-events: none; z-index: 1; }
.sv-stolp::before { background-image: url('../img/svet/stolp.webp'); filter: brightness(1.15) drop-shadow(0 3px 3px rgba(0,0,0,.8)); }
.sv-stolp:not(.sv-prizgan) { box-shadow: inset 0 0 0 2px rgba(94,230,240,.45); animation: sv-cakam 1.8s ease-in-out infinite; }
@keyframes sv-cakam { 50% { box-shadow: inset 0 0 0 2px rgba(94,230,240,.12); } }
.sv-stolp::before, .sv-stolp::after { inset: -12%; }
.sv-stolp::after { background-image: url('../img/svet/stolp-prizgan.webp'); opacity: 0; transition: opacity .5s; filter: drop-shadow(0 0 8px rgba(94,230,240,.7)); }
.sv-stolp.sv-prizgan::after { opacity: 1; animation: sv-signal 2.2s ease-in-out infinite; }
@keyframes sv-signal { 50% { filter: drop-shadow(0 0 16px rgba(94,230,240,1)); } }
body.svet-temna { background: linear-gradient(rgba(14,12,9,.86), rgba(14,12,9,.86)), url('../img/ozadje-vas.webp') center / cover fixed #1A1712; }
body.svet-temna .pane-preview { background: transparent; }
body.stran-temna .callout { background: #241F17; border-color: #000; color: #E9DFC7; box-shadow: 4px 4px 0 #000; }
body.stran-temna .callout h2 { color: #E6C25A; }
body.stran-temna .callout strong { color: #F2E8D0; }

/* Prva stran: kaj otrok pridobi */
.pr-lead { max-width: 760px; }
.pr-h { margin: 28px 0 12px; font-size: 1.2rem; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pr-k { position: relative; background: var(--paper); border: 2px solid var(--line); border-top: 6px solid var(--c); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.pr-k h4 { margin: 6px 0 6px; font-size: 1.05rem; }
.pr-k p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pr-ico { font-size: 1.6rem; line-height: 1; }
.pr-vescine { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.pr-vescine li { padding-left: 32px; position: relative; }
.pr-vescine li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; }
.pr-vescine strong { display: block; }
.pr-vescine span { color: var(--ink-2); font-size: .95rem; }
.pr-opomba { margin-top: 18px; max-width: 760px; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pr-grid, .pr-vescine { grid-template-columns: 1fr; } }

/* Omrežja 2: podomrežja */
.pm { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.pm-kontrole { display: flex; align-items: center; gap: 14px; justify-content: center; }
.pm-gumb { font-size: 1.4rem; width: 48px; height: 48px; padding: 0; }
.pm-predpona { text-align: center; min-width: 170px; }
.pm-predpona strong { display: block; font-size: 2.4rem; line-height: 1; color: var(--c, #5B6EE1); }
.pm-predpona span { font-size: 1.05rem; }
#pm-drsnik { width: 100%; accent-color: #5B6EE1; }
.pm-biti { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; font-size: .95rem; }
.pm-bit { display: inline-grid; place-items: center; width: 1.25em; height: 1.7em; border-radius: 4px; font-weight: 800; }
.pm-o { background: #5B6EE1; color: #fff; } .pm-n { background: #FFE2B8; color: #6A4300; }
.pm-okt { display: inline-flex; gap: 2px; align-items: flex-end; white-space: nowrap; }
.pm-pika { padding: 0 2px; font-weight: 900; }
.pm-biti { row-gap: 6px; }
.pm-leg { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 800; margin-right: 4px; }
.pm-tab { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.pm-tab th, .pm-tab td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pm-tab th { color: var(--ink-2); font-weight: 700; }
.pm-naprave { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-naprave li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.pm-naprave li.pm-da { background: #E6F7EE; border-color: #8BD3A8; }
.pm-naprave li.pm-ne { background: #FDECEC; border-color: #F0A5A5; }
.pm-st { font-size: .85rem; font-weight: 700; }
/* Pustolovščina: širši zemljevid */
@media (min-width: 1100px) { body.svet-temna .game-grid { grid-template-columns: minmax(260px, 300px) minmax(360px, 1fr) minmax(420px, 1.25fr); } }
body.svet-temna .sv-mreza { max-height: 64vh; }

/* Prva stran: vrtiljak posnetkov vaj */
.ps-glava { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ps-glava h2 { margin: 0; }
.ps-gumbi { display: flex; gap: 8px; }
.ps-gumb { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font: inherit; font-weight: 900; font-size: 1.05rem; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.ps-gumb:hover { background: #FFF1DE; }
.ps-oder { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: center; }
.ps-okno { position: relative; aspect-ratio: 1200 / 697; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: #1A1712; }
.ps-sl { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.ps-sl.is-on { opacity: 1; pointer-events: auto; }
.ps-sl img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.ps-opis h3 { margin: 10px 0 6px; font-size: 1.4rem; }
.ps-opis p { color: var(--ink-2); margin: 0 0 16px; }
.ps-pike { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.ps-pika { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; padding: 0; cursor: pointer; }
.ps-pika.is-on { background: var(--orange, #F28C28); width: 28px; border-radius: 99px; }
@media (max-width: 860px) { .ps-oder { grid-template-columns: 1fr; } .ps-gumbi .ps-gumb { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .ps-sl { transition: none; } }

/* Zabava: konfeti, obvestila, značke, garderoba */
.zb-konfeti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.zb-obvestila { position: fixed; right: 16px; bottom: 16px; z-index: 9998; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.zb-obvestilo { display: flex; gap: 10px; align-items: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--ink); font-weight: 700; animation: zb-noter .35s cubic-bezier(.2,1.4,.5,1); }
.zb-obvestilo code { background: #FFF1DE; padding: 1px 6px; border-radius: 6px; }
.zb-obvestilo.zb-gre { opacity: 0; transform: translateX(30px); transition: .35s; }
.zb-ik { font-size: 1.6rem; }
@keyframes zb-noter { from { opacity: 0; transform: translateY(20px) scale(.9); } }
.zb-znacka { position: fixed; inset: 0; z-index: 9997; display: grid; place-items: center; background: rgba(20, 24, 30, .72); animation: zb-fade .3s; padding: 16px; }
.zb-znacka.zb-gre { opacity: 0; transition: .3s; }
.zb-znacka-in { position: relative; text-align: center; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 28px 32px 24px; box-shadow: 8px 8px 0 var(--ink); max-width: 420px; overflow: hidden; }
.zb-znacka-in img, .zb-znacka-emo { position: relative; width: 180px; height: 180px; animation: zb-pop .8s cubic-bezier(.2,1.6,.4,1); }
.zb-znacka-emo { font-size: 130px; line-height: 180px; margin: 0 auto; }
.zb-zarki { position: absolute; left: 50%; top: 118px; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgba(242,140,40,.18) 0 10deg, transparent 10deg 20deg); animation: zb-vrti 12s linear infinite; }
.zb-znacka-nad { position: relative; margin: 10px 0 0; font-weight: 900; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.zb-znacka-in h2 { position: relative; margin: 4px 0 16px; }
.zb-znacka-in .btn { position: relative; }
@keyframes zb-fade { from { opacity: 0; } }
@keyframes zb-pop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes zb-vrti { to { transform: rotate(360deg); } }
.zb-ples { animation: zb-ples .7s ease-in-out 4; transform-origin: 50% 90%; }
@keyframes zb-ples { 25% { transform: rotate(-10deg) translateY(-8px); } 50% { transform: rotate(0) translateY(0); } 75% { transform: rotate(10deg) translateY(-8px); } }
.zb-cuk { animation: zb-cuk .3s; }
@keyframes zb-cuk { 50% { transform: scale(.9) rotate(-6deg); } }
.kodko-ovoj { position: relative; display: inline-block; line-height: 0; }
.ko-dod { position: absolute; line-height: 1; pointer-events: none; transform: translate(-50%, -78%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.ko-oci { transform: translate(-50%, -50%); }
.ko-ljubljencek { left: auto; top: auto; right: -14%; bottom: 2%; transform: none; animation: lebdi 3s ease-in-out infinite; }
.foot .foot-zabava { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: flex-start; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,.15); }
.foot-zabava .link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .zb-ples, .zb-zarki, .zb-znacka-in img, .ko-ljubljencek { animation: none; } }

/* Garderoba */
.gd-zv { font-size: 1.1rem; }
.gd-mreza { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; margin: 18px 0; }
.gd-oder { position: sticky; top: 90px; text-align: center; background: radial-gradient(circle at 50% 40%, #FFF1DE, #FFE2B8); border: 2px solid var(--ink); border-radius: 20px; padding: 40px 20px 18px; box-shadow: 5px 5px 0 var(--ink); }
.gd-oder img { width: 220px; height: auto; }
.gd-oder .btn { margin-top: 14px; }
.gd-vrsta { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.gd-p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); font: inherit; cursor: pointer; box-shadow: var(--shadow-sm, 2px 2px 0 var(--ink)); }
.gd-p:hover { border-color: var(--ink); }
.gd-p.is-on { border-color: var(--orange); background: #FFF1DE; box-shadow: 3px 3px 0 var(--orange); }
.gd-p.is-zaklenjen { opacity: .55; cursor: not-allowed; filter: grayscale(.8); }
.gd-ik { font-size: 2.2rem; line-height: 1.1; height: 2.6rem; display: grid; place-items: center; }
.gd-barva { display: inline-block; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#F28C28 0 50%, #2FA4A9 0); border: 2px solid var(--ink); }
.gd-ime { font-weight: 800; font-size: .9rem; text-align: center; }
.gd-pogoj { font-size: .78rem; color: var(--ink-2); }
@media (max-width: 760px) { .gd-mreza { grid-template-columns: 1fr; } .gd-oder { position: static; } }

/* Lov na zastavice */
.za-glava { display: flex; gap: 22px; align-items: center; }
.za-ikona { font-size: 5rem; animation: lebdi 3s ease-in-out infinite; }
.za-vnos { margin: 22px 0 10px; max-width: 620px; }
.za-vrstica { display: flex; gap: 10px; }
.za-vrstica input { flex: 1; font-size: 1.1rem; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; }
.za-sporocilo { min-height: 1.4em; font-weight: 700; }
.za-dobro { color: #1F8A4C; } .za-slabo { color: #C0392B; }
.za-stevec { font-size: 1.2rem; margin: 14px 0 8px; }
.za-seznam { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.za-seznam li { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.za-seznam li.is-ok { background: #E6F7EE; border-color: #8BD3A8; }
.za-n { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.za-st { font-size: 1.3rem; }
.za-namig { margin: 8px 0 0; color: var(--ink-2); }
.za-namig kbd, .za-namig code { background: #F1ECE2; border: 1px solid #D9CFBD; border-radius: 5px; padding: 0 5px; font-size: .9em; }
.za-nagrada { display: flex; gap: 18px; align-items: center; background: #1F2933; color: #E9F7EF; border-radius: 18px; padding: 18px 22px; margin: 18px 0; border: 2px solid #000; box-shadow: 5px 5px 0 #000; max-width: 820px; }
.za-nagrada a { color: #7FE3B0; } .za-nagrada h2 { margin: 0 0 4px; color: #7FE3B0; }
.za-znacka { font-size: 4rem; }

/* Kaj ve brskalnik */
.bk-glava { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.bk-mirno { display: inline-block; background: #E6F7EE; border: 2px solid #8BD3A8; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.bk-mreza { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 22px 0; }
.bk-k { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: 3px 3px 0 var(--ink); animation: zb-noter .4s both; }
.bk-k h3 { margin: 4px 0 2px; font-size: .9rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.bk-ik { font-size: 1.7rem; }
.bk-v { margin: 2px 0 6px; font-size: 1.15rem; font-weight: 900; word-break: break-word; }
.bk-r { margin: 0; font-size: .86rem; color: var(--ink-2); }
.bk-zivo h2 { margin-top: 28px; }
.bk-odtis { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; background: #1F2933; color: #E9F7EF; border: 2px solid #000; border-radius: 18px; padding: 20px 24px; box-shadow: 5px 5px 0 #000; margin: 26px 0; }
.bk-odtis h2 { color: #7FE3B0; margin-top: 0; }
.bk-koda { font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 900; color: #7FE3B0; background: #0F161D; padding: 16px; border-radius: 12px; text-align: center; letter-spacing: .06em; word-break: break-all; }
@media (max-width: 760px) { .bk-odtis { grid-template-columns: 1fr; } .bk-glava img { display: none; } }

/* Diploma */
.dp-vnos { display: flex; gap: 10px; max-width: 520px; margin: 12px 0 20px; }
.dp-vnos input { flex: 1; font: inherit; font-size: 1.1rem; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; }
.dp-list { width: min(1000px, calc(100% - 32px)); margin: 0 auto 48px; aspect-ratio: 297 / 210; background: #FFFDF7; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 3%; }
.dp-okvir { height: 100%; border: 6px double #C9A227; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 2% 4% 11%; background: radial-gradient(circle at 50% 30%, #FFF6DD, transparent 70%); }
.dp-znacka { position: absolute; top: 5%; right: 5%; width: 13%; height: auto; }
.dp-nad { margin: 0; letter-spacing: .25em; text-transform: uppercase; font-weight: 800; color: var(--teal); font-size: clamp(.7rem, 1.5vw, 1rem); }
.dp-naslov { margin: .1em 0; font-size: clamp(2rem, 7vw, 4.6rem); color: #8A6A14; font-family: Georgia, 'Times New Roman', serif; }
.dp-pod { margin: .2em 0; color: var(--ink-2); font-size: clamp(.8rem, 1.6vw, 1.1rem); }
.dp-ime { margin: .15em 0; font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 900; border-bottom: 2px solid var(--ink); padding: 0 .6em .1em; min-width: 50%; }
.dp-sklop { margin: .2em 0; font-size: clamp(1.1rem, 3vw, 2rem); font-weight: 900; color: var(--orange-d); }
.dp-zv { margin: .2em 0 0; font-weight: 800; color: #8A6A14; }
.dp-noga { position: absolute; bottom: 5%; left: 6%; right: 6%; display: flex; justify-content: space-between; align-items: end; }
.dp-noga div { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 4px; min-width: 24%; font-weight: 800; }
.dp-noga small { font-weight: 400; color: var(--ink-2); }
.dp-noga img { width: 11%; height: auto; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.diploma-body > *:not(main), body.diploma-body .dp-nadzor, .zb-obvestila, .zb-konfeti { display: none !important; }
  body.diploma-body { background: #fff; }
  .dp-list { width: 297mm; height: 210mm; margin: 0; border: 0; box-shadow: none; aspect-ratio: auto; }
}

/* Prva stran: izziv v 30 sekundah */
.iz-glava { max-width: 760px; }
.iz-mreza { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; margin-top: 16px; }
.iz-svet { background: #1A1712; border: 2px solid var(--ink); border-radius: 16px; padding: 12px; box-shadow: 6px 6px 0 var(--ink); }
.iz-zemljevid { max-height: none; }
.iz-plosca { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
.iz-ukazi { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.iz-ukaz, .iz-blok { font: inherit; font-weight: 800; color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .1s; }
.iz-ukaz:hover, .iz-blok:hover { transform: translateY(-1px); }
.iz-ukaz:active { transform: translateY(2px); box-shadow: none; }
.iz-u-desno { background: #7A5C2E; } .iz-u-prizgi { background: #2F7F86; }
.iz-program { list-style: none; counter-reset: k; padding: 10px; margin: 6px 0 12px; min-height: 64px; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.iz-program li { counter-increment: k; display: flex; align-items: center; gap: 8px; }
.iz-program li::before { content: counter(k) '.'; font-weight: 900; color: var(--ink-2); width: 1.4em; }
.iz-program li.iz-prazno::before { content: none; }
.iz-prazno { color: var(--ink-2); font-style: italic; }
.iz-blok span { opacity: .7; margin-left: 6px; }
.iz-blok.is-zdaj { outline: 3px solid #F5C518; outline-offset: 2px; }
.iz-gumbi { display: flex; gap: 8px; }
.iz-sporocilo { min-height: 1.5em; margin: 12px 0 8px; }
.iz-dobro { color: #1F7A45; } .iz-slabo { color: #A04A12; font-weight: 700; }
@media (max-width: 860px) { .iz-mreza { grid-template-columns: 1fr; } }

/* Prva stran: kotiček za radovedne */
.zb-kartice { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 14px; }
.zb-k { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; box-shadow: 4px 4px 0 var(--ink); color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.zb-k h3 { margin: 0 0 6px; }
.zb-k p { color: var(--ink-2); margin: 0 0 10px; }
.zb-link { transition: transform .15s; }
.zb-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.zb-link .go { margin-top: auto; font-weight: 900; color: var(--orange-d); }
.zb-temna { background: #1F2933; color: #E9F7EF; } .zb-temna p { color: #B9CAD6; } .zb-temna .go { color: #7FE3B0; }
.sk { grid-row: span 2; }
.sk-sifra, .sk-odsifra { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.sk-c { display: inline-grid; place-items: center; width: 1.7em; height: 2em; border-radius: 6px; background: #1F2933; color: #7FE3B0; font-weight: 900; font-size: 1.05rem; }
.sk-odsifra .sk-c { background: #FFF1DE; color: var(--ink); }
.sk-odsifra .sk-c.sk-ok { background: #E6F7EE; color: #1F7A45; animation: zb-pop .4s both; }
.sk-pr { width: .8em; }
.sk-kontrole { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.sk-zamik { font-weight: 800; min-width: 90px; text-align: center; } .sk-zamik strong { font-size: 1.6rem; display: block; }
.sk-bravo { font-weight: 800; color: #1F7A45; }
@media (max-width: 900px) { .zb-kartice { grid-template-columns: 1fr; } .sk { grid-row: auto; } }

/* Hekaj to stran */
.hk-odpri { position: fixed; left: 16px; bottom: 16px; z-index: 900; font: inherit; font-weight: 900; background: #1F2933; color: #7FE3B0; border: 2px solid #000; border-radius: 99px; padding: 10px 16px; box-shadow: 3px 3px 0 #000; cursor: pointer; }
.hk-odpri.is-on { background: var(--orange); color: #fff; }
.hk-plosca { position: fixed; left: 16px; bottom: 70px; z-index: 900; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px; box-shadow: 5px 5px 0 var(--ink); animation: zb-noter .25s; }
.hk-glava { display: flex; justify-content: space-between; align-items: center; }
.hk-x { background: none; border: 0; font-size: 1.1rem; cursor: pointer; }
.hk-blok { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; font-weight: 800; border-radius: 10px; padding: 7px 10px; margin: 6px 0; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.hk-blok input[type=text], .hk-blok input:not([type]), .hk-blok select { font: inherit; font-weight: 600; border: 0; border-radius: 6px; padding: 4px 6px; max-width: 160px; }
.hk-blok label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.hk-b1 { background: #9B59B6; } .hk-b2 { background: #2F7FD8; } .hk-b3 { background: #E0701A; } .hk-b4 { background: #1F9D61; } .hk-b5 { background: #D6336C; } .hk-b6 { background: #5B6EE1; }
.hk-gumbi { display: flex; gap: 8px; margin: 10px 0; }
.hk-koda pre { background: #1F2933; color: #7FE3B0; padding: 10px; border-radius: 10px; white-space: pre-wrap; font-size: .8rem; }
.hero-art img.hk-glava { animation: none; transform: rotate(180deg); }
.hero-art img.hk-velik { animation: none; transform: scale(1.35); }
.hero-art img.hk-mali { animation: none; transform: scale(.45); }
.hero-art img.hk-vrti { animation: hk-vrti 1.6s linear infinite; }
.hero-art img.hk-skace { animation: hk-skace .6s ease-in-out infinite; }
@keyframes hk-vrti { to { transform: rotate(360deg); } }
@keyframes hk-skace { 50% { transform: translateY(-40px); } }
body.hk-mavrica main { animation: hk-mavrica 3s linear infinite; }
@keyframes hk-mavrica { to { filter: hue-rotate(360deg); } }
body.hk-lebdi .card, body.hk-lebdi .zb-k, body.hk-lebdi .steps li, body.hk-lebdi .ps-okno, body.hk-lebdi h2 { animation: hk-lebdi 3s ease-in-out infinite; }
body.hk-lebdi .card:nth-child(2n), body.hk-lebdi .zb-k:nth-child(2n), body.hk-lebdi .steps li:nth-child(2n) { animation-delay: -1.5s; }
@keyframes hk-lebdi { 50% { transform: translateY(-18px) rotate(-2deg); } }
main.hk-potres { animation: hk-potres .6s; }
@keyframes hk-potres { 10%, 50%, 90% { transform: translate(-8px, 3px) rotate(-1deg); } 30%, 70% { transform: translate(8px, -3px) rotate(1deg); } }
@media (max-width: 600px) { .hk-odpri { padding: 8px 12px; font-size: .9rem; } }
.kodko .kodko-ovoj { flex: none; }
.modal .kodko-ovoj { display: block; width: 96px; margin: 0 auto -4px; }
.modal .kodko-ovoj .modal-mascot { margin: 0; }
.kodko:has(.ko-glava) { padding-top: 16px; }

/* Stran za mentorje */
.mp-hero { border-bottom: 2px solid var(--line); background: radial-gradient(circle at 85% 20%, #DDF3F3, transparent 50%), radial-gradient(circle at 10% 90%, #FFE9D2, transparent 45%); }
.mp-hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding-block: 52px 24px; }
.mp-kodko { justify-self: center; max-height: 360px; width: auto; animation: lebdi 4s ease-in-out infinite; }
.mp-znaki { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.mp-znaki li { background: var(--paper); border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: .9rem; }
.mp-stevilke { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 34px; }
.mp-stevilke div { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px; text-align: center; box-shadow: 4px 4px 0 var(--ink); }
.mp-stevilke strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--orange-d); }
.mp-stevilke span { color: var(--ink-2); font-weight: 700; }
.mp-koristi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.mp-k { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; box-shadow: 4px 4px 0 var(--ink); }
.mp-k span { font-size: 2rem; }
.mp-k h3 { margin: 6px 0; }
.mp-k p { margin: 0; color: var(--ink-2); }
.mp-vsebine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.mp-skupina { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
.mp-skupina h3 { margin: 0 0 8px; }
.mp-skupina ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mp-skupina a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 6px; border-radius: 10px; }
.mp-skupina a:hover { background: #FFF1DE; }
.mp-skupina a span { display: flex; flex-direction: column; line-height: 1.3; }
.mp-skupina small { color: var(--ink-2); }
.mp-sredina { text-align: center; margin-top: 22px; }
.mp-orodja { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; margin-top: 14px; }
.mp-orodja div { display: flex; gap: 10px; align-items: baseline; }
.mp-orodja span { font-size: 1.4rem; }
.mp-konec { display: flex; gap: 28px; align-items: center; justify-content: center; text-align: left; }
@media (max-width: 900px) { .mp-hero-in, .mp-koristi, .mp-vsebine, .mp-orodja { grid-template-columns: 1fr; } .mp-stevilke { grid-template-columns: repeat(2, 1fr); } .mp-kodko { max-height: 220px; } .mp-konec { flex-direction: column; text-align: center; } }
.mp-orodja div { display: block; position: relative; padding-left: 36px; }
.mp-orodja span { position: absolute; left: 0; top: -2px; }

/* Igra: Mreža doma */
.md-promo { background: linear-gradient(110deg, #123A3E, #2F7F86); box-shadow: 4px 4px 0 #F28C28; }
.md-promo .dv-promo-ico { font-size: 2rem; }
.game-grid:has(.hs) { grid-template-columns: minmax(250px, 290px) minmax(0, 1.9fr) minmax(280px, 1fr); }
.hs { display: flex; flex-direction: column; gap: 8px; padding: 8px; height: 100%; min-height: 0; }
.hs-orodja { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-orodje { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 5px 10px 5px 6px; font: inherit; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); text-align: left; }
.hs-orodje:disabled { opacity: .45; cursor: not-allowed; }
.hs-orodje.is-on { background: #FFF1DE; border-color: var(--orange); box-shadow: 2px 2px 0 var(--orange); }
.hs-orodje strong { display: block; font-size: .82rem; line-height: 1.15; }
.hs-orodje small { color: var(--ink-2); font-size: .74rem; }
.hs-oe { font-size: 1.5rem; }
.hs-kabel-info { cursor: default; border-style: dashed; box-shadow: none; }
.hs-pomoc { background: #EAF6F6; border: 2px solid #9ED3D5; border-radius: 10px; padding: 6px 10px; font-size: .88rem; font-weight: 600; }
.hs-oder { flex: 1; min-height: 340px; overflow: hidden; background: #E9E4D8; border: 2px solid var(--ink); border-radius: 12px; }
.hs-oder svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.hs-spodaj { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.hs-stikalo { display: flex; gap: 6px; align-items: center; font-weight: 800; cursor: pointer; }
.hs-soba { stroke: none; }
.hs-obris { fill: none; stroke: #2B2F33; stroke-width: 3; }
.hs-soba-ime { font: 700 13px var(--font); fill: #6B6F75; }
.hs-nad { font: 900 15px var(--font); fill: #2B2F33; }
.hs-stena { stroke-linecap: round; }
.hs-n { cursor: default; }
.hs-n.is-moja { cursor: grab; }
.hs-n.is-izbran circle { stroke-dasharray: 5 3; filter: drop-shadow(0 0 5px #F28C28); }
.hs-emo { font-size: 21px; text-anchor: middle; dominant-baseline: middle; transform: translateY(-7px); }
.hs-ime { font: 800 11px var(--font); text-anchor: middle; fill: #2B2F33; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.hs-hit { font: 900 11px var(--font); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.hs-port { fill: #fff; stroke: #5C6670; stroke-width: 2; cursor: crosshair; }
.hs-port:hover { fill: #FFE2B8; stroke: var(--orange); }
.hs-port.is-wan { fill: #F5C518; stroke: #8A6A00; }
.hs-port.is-zaseden { fill: #5C6670; }
.hs-port.is-wan.is-zaseden { fill: #C9A227; }
.hs-port.is-aktiven { fill: var(--orange); stroke: #000; r: 7; }
.hs-kabel { fill: none; stroke: #9AA3AB; stroke-width: 4; stroke-linecap: round; cursor: pointer; }
.hs-kabel.is-ziv { stroke: #2F7FD8; }
.hs-kabel.is-fiks { stroke-dasharray: 2 5; cursor: default; }
.hs-kabel.is-izbran { stroke: var(--orange); stroke-width: 6; }
.hs-kabel:hover:not(.is-fiks) { stroke-width: 6; }
.hs-m { font: 800 10px var(--font); text-anchor: middle; fill: #1D4E89; paint-order: stroke; stroke: #E9E4D8; stroke-width: 3px; pointer-events: none; }
.hs-vlecem { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 6 4; pointer-events: none; }
.hs-povzetek .hs-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.hs-stat div { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.hs-stat div.is-cez { border-color: #D64545; background: #FDECEC; }
.hs-stat strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.hs-stat span { font-size: .78rem; color: var(--ink-2); }
.hs-opoz { background: #FFF4E5; border: 2px solid #F0B46A; border-radius: 10px; padding: 8px 10px; font-size: .88rem; }
.hs-naprave { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hs-naprave li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: .86rem; }
.hs-naprave li.is-ok { background: #E6F7EE; border-color: #8BD3A8; }
.hs-naprave li.is-ne { background: #FFF6F2; border-color: #F0B8A5; }
.hs-ni { font-size: 1.4rem; }
.hs-razlog { display: block; color: #A0391B; font-weight: 700; }
.hs-legenda { margin-top: 12px; font-size: .86rem; }
.hs-legenda ul { padding-left: 18px; }
@media (max-width: 1100px) { .game-grid:has(.hs) { grid-template-columns: 1fr; } }
.hs-poh { text-anchor: middle; dominant-baseline: middle; opacity: .55; pointer-events: none; }
.hs-obris { stroke: #8C7B63; stroke-width: 1.5; }
.hs-zunanja { fill: none; stroke: #3B3F45; stroke-width: 12; pointer-events: none; }
.hs-okno { fill: #BFE6F5; stroke: #fff; stroke-width: 2; pointer-events: none; }
.hs-odprtina { fill: #E3C394; pointer-events: none; }
.hs-krilo { fill: rgba(255,255,255,.35); stroke: #8C6A3E; stroke-width: 1.5; stroke-dasharray: 3 3; pointer-events: none; }
.hs-soba-ime { fill: #5E5446; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 3px; }
.hs-zoom { display: inline-flex; gap: 4px; align-items: center; }
.hs-zoom button { font: inherit; font-weight: 800; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 3px 9px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.hs-zoom button:active { transform: translate(1px, 1px); box-shadow: none; }
#hs-svg.is-povecan { cursor: grab; }
#hs-svg.is-povecan:active { cursor: grabbing; }
body.hs-velik .pane-task { display: none; }
body.hs-velik .game-grid:has(.hs) { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }

/* ---------- HexoQuest: plačljivi del ---------- */
.pill-free { background: var(--teal); color: #fff; }
.level.is-locked { background: #F3EEE4; color: #6B7680; box-shadow: none; border-style: dashed; }
.level.is-locked .level-num { background: #E7DECD; font-size: 1.1rem; }
.level.is-locked:hover { transform: none; box-shadow: none; }
.upsell { border-color: var(--orange); background: #FFF6E8; }
.upsell .cta { margin: 10px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.lock-page .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.plan-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--r-sm, 12px); margin: 0 0 22px; background: #F3EEE4; }
.plan-box.plan-licenca { background: #E6F7EE; }
.plan-box.plan-preizkus { background: #FFF6D6; }
.role-pick { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.role-pick legend { font-weight: 800; margin-bottom: 6px; }
.role-pick .check { margin: 0; }

.pricing-head h1 { max-width: 760px; margin-inline: auto; }
.currency { display: inline-flex; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; background: var(--paper); }
.currency .cur { padding: 6px 16px; font-weight: 800; text-decoration: none; color: var(--ink); }
.currency .cur.is-on { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.plan h2 { margin: 0; }
.plan-featured { border-color: var(--orange); box-shadow: 6px 6px 0 var(--orange); }
.plan-badge { position: absolute; top: -12px; right: 18px; background: var(--orange); color: var(--ink); }
.plan-for { color: var(--ink-2, #44525E); margin: 4px 0 12px; }
.plan-price { margin: 0; }
.plan-price strong { font-size: 2.2rem; font-weight: 900; }
.plan .ticks { margin: 14px 0; flex: 1; }
.plan-cta { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.plan-cta .btn { text-align: center; }
.qty-form { display: flex; flex-direction: column; flex: 1; }
.qty-form label { font-weight: 800; margin-top: 10px; }
.qty-form select { width: 100%; margin-top: 6px; }
.qty-total { font-size: 1.1rem; margin: 10px 0 0; }

.blog-kartica { border-bottom: 2px solid #E7DECD; padding: 18px 0; }
.blog-kartica h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.blog-kartica h2 a { color: var(--ink); text-decoration: none; }
.blog-kartica h2 a:hover { color: var(--orange-d); }
.blog-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
