/* Kosmolab (ranije Planete) — putovanje kroz Sunčev sistem */

@font-face {
  font-family: 'League Gothic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/league-gothic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'League Gothic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/league-gothic-latin.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;
}

/* League Gothic nema ćirilicu; ćirilični naslovi idu Oswaldom (samo ćirilični deo fonta, 16 KB, sve debljine). */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(assets/fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'League Gothic', 'Arial Narrow', Impact, sans-serif;
  --edge: clamp(18px, 1.95vw, 28px);
  --top: clamp(18px, 3.1vh, 28px);
  --bg: #050505;
  --line: rgba(255, 255, 255, .42);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
  font-family: var(--ui);
  color: #fff;
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; }

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.space-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.css-space { display: none; }
/* Izmaglica atmosfere u trenutku ulaska u planetu (jačinu menja 3D scena). */
.entry-haze {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 130% 95% at 50% 24%, var(--haze, #fff) 0%, rgba(255, 255, 255, 0) 100%);
  background: radial-gradient(ellipse 130% 95% at 50% 24%, var(--haze, #fff) 0%, color-mix(in srgb, var(--haze, #fff) 45%, transparent) 50%, rgba(255, 255, 255, 0) 100%);
}
.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .38) 0, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .86) 100%);
}

/* ---------- Tlo planete (spuštanje skrolovanjem) ---------- */
.surface { position: absolute; inset: 0; z-index: 3; overflow: hidden; background: #000; opacity: 0; visibility: hidden; pointer-events: none; }
.surface.is-active { visibility: visible; }
.surface img, .surface video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.surface-backdrop { display: none; object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.15); transform: scale(1.12); }
.surface.is-band .surface-backdrop { display: block; }
.surface-photo { object-fit: cover; transform-origin: 50% 62%; will-change: transform; }
.surface.is-band .surface-photo { object-fit: contain; }
/* Snimak tla umesto fotografije (Mars) */
.surface .surface-video { display: none; object-fit: cover; transform-origin: 50% 62%; will-change: transform; }
.surface.has-video .surface-video { display: block; }
.surface.has-video .surface-photo { display: none; }
.surface.is-band .surface-video { object-fit: contain; }
/* telefon uspravno (main.js fitGround): slika u slobodnom prostoru iznad teksta, zatamnjenje samo ispod nje */
.surface.is-fit .surface-backdrop { display: block; }
.surface::after { transition: opacity .35s ease; }
/* ceo pogled na tlu (main.js setFullView): bez teksta, slika cela preko celog ekrana */
.experience.is-fullview :is(.planet-content, .planet-list, .header, .portal-wrap) { opacity: 0 !important; pointer-events: none !important; }
.experience.is-fullview .brand { opacity: 0; pointer-events: none; }
.experience.is-fullview .surface-backdrop { display: block; }
.experience.is-fullview .surface .surface-photo,
.experience.is-fullview .surface .surface-video { top: 0; height: 100%; object-fit: contain; }
.experience.is-fullview .surface::after { opacity: 0; }
.fullview-btn {
  position: absolute;
  z-index: 5;
  top: calc(var(--top) + 64px);
  right: var(--edge);
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.fullview-btn svg { width: 18px; height: 18px; }
.fullview-btn:hover { background: #fff; color: #000; }
.fullview-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.experience.is-landed:not(.is-fullview) .fullview-btn { display: flex; }
.fullview-hint { position: absolute; z-index: 6; left: 50%; bottom: 24px; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.fullview-hint.is-shown { opacity: 1; }
.surface.is-fit .surface-photo,
.surface.is-fit .surface-video {
  top: var(--fit-top, 0px);
  bottom: auto;
  height: var(--fit-h, 100%);
  object-fit: contain;
  transition: top .45s var(--ease-out), height .45s var(--ease-out);
}
.surface.is-fit::after {
  background: linear-gradient(rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) var(--fit-top, 0px),
    rgba(0, 0, 0, 0) calc(var(--fit-top, 0px) + var(--fit-h, 100%)), rgba(0, 0, 0, .7) calc(var(--fit-top, 0px) + var(--fit-h, 100%) + 40px), rgba(0, 0, 0, .86) 100%);
}
/* film koji se pušta jednom: posle kraja oštra fotografija poslednjeg kadra */
.surface.has-video.video-ended .surface-video { display: none; }
.surface.has-video.video-ended .surface-photo { display: block; }
.surface.no-ground {
  background: radial-gradient(ellipse 130% 95% at 50% 10%, var(--ground, #888) 0%, rgba(0, 0, 0, 0) 100%), #050505;
  background: radial-gradient(ellipse 130% 95% at 50% 10%, var(--ground, #888) 0%, color-mix(in srgb, var(--ground, #888) 35%, #050505) 48%, #050505 100%);
}
.surface.no-ground img { display: none; }
/* zatamnjenje pri vrhu (logo i meni) i pri dnu (naslov i opis), da ostanu čitljivi na svetloj fotografiji */
.surface::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .86) 100%);
  pointer-events: none;
}

/* ---------- Na tlu: raspored kao u originalu, ali bez prozora — tlo se vidi celo ---------- */
.experience.is-landed .portal-wrap { opacity: 0 !important; filter: blur(8px); pointer-events: none !important; }
.experience.is-landed .info,
.experience.is-landed .descent-hint { display: none; }
/* Opis mesta stoji gde su u svemiru podaci. */
.surface-caption {
  display: none;
  flex: 0 0 auto;
  width: min(447px, 34vw);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .5);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}
.experience.is-landed .surface-caption { display: block; }
.surface-text { margin: 0; font-size: 16px; line-height: 1.45; }
.surface-credit { margin: 10px 0 0; color: rgba(255, 255, 255, .7); font-size: 11.5px; line-height: 1.4; }
.surface-credit a { color: inherit; }
.surface-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ascend { padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: #000; font-size: 14px; text-shadow: none; cursor: pointer; }
.go-next {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 14px;
  text-shadow: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.go-next:hover { background: #fff; color: #000; }
.ascend:focus-visible, .go-next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.descent-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 2px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(8, 8, 10, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: background .2s ease, color .2s ease;
}
.descent-hint:hover { background: #fff; color: #000; }
.descent-hint:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hint-arrow { display: inline-block; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Dok se spuštamo, sve osim zaglavlja nestaje. */
.experience.is-descending .portal-wrap,
.experience.is-descending .planet-list,
.experience.is-descending .planet-content { opacity: 0 !important; filter: blur(8px); pointer-events: none !important; }

/* Nevidljivi okvir trenutne planete — 3D scena čita njegov položaj i veličinu. */
.planet-anchor {
  position: absolute;
  left: 44%;
  top: 45%;
  width: min(74vh, 52vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  visibility: hidden;
  pointer-events: none;
}

.chrome { position: absolute; z-index: 4; transition: opacity .45s ease, filter .45s ease; }
.experience.is-transitioning .chrome { opacity: 0; filter: blur(8px); pointer-events: none; }
.experience.is-transitioning .header,
.experience.is-transitioning .planet-list { opacity: 1; filter: none; }
.experience.is-transitioning .header { pointer-events: none; }
.experience.is-transitioning .header-actions { pointer-events: auto; }

/* ---------- Zaglavlje ---------- */
.header {
  left: var(--edge);
  right: var(--edge);
  top: var(--top);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}
.header-actions { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.nav {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav a { padding: 8px 19px; border-radius: 999px; color: #fff; font-size: 15px; line-height: 1; text-decoration: none; }
.nav a.active { background: #fff; color: #000; }
.menu { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #000; font-size: 15px; cursor: pointer; }
.pismo {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.fs-icon { display: none; width: 18px; height: 18px; }
.pismo button { height: 100%; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #fff; font: 13px/1 var(--ui); letter-spacing: .06em; cursor: pointer; }
.pismo button[aria-pressed="true"] { background: #fff; color: #000; }
.pismo button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Oswald ima viša velika slova (0,81 em) od League Gothic-a (0,735 em), pa se u ćirilici smanjuje na istu visinu slova. */
html[data-pismo="cir"] { --display: 'Oswald', 'League Gothic', 'Arial Narrow', Impact, sans-serif; --display-scale: .907; }
/* isti razmak između reda iznad i vrha slova kao u latinici (izmereno: bez ovoga slova zalaze 1–7 px u red iznad) */
html[data-pismo="cir"] .planet-content h1 { margin-top: .08em; }
html[data-pismo="cir"] :is(.brand-word, .planet-content h1, .about h2) { font-weight: 500; }
.nav a:focus-visible, .menu:focus-visible, .planet-item:focus-visible, .fun-next:focus-visible,
.about-close:focus-visible, .brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Logo (leti iz sredine u zaglavlje) ---------- */
.brand {
  position: fixed;
  z-index: 22;
  left: 50%;
  top: 44%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, -50%) scale(1.9);
  transition: left 2s var(--ease-expo), top 2s var(--ease-expo), transform 2s var(--ease-expo);
  will-change: left, top, transform;
}
.brand-mark { flex: none; width: 34px; height: 34px; }
.brand-word { padding-top: 2px; font-family: var(--display); font-size: calc(30px * var(--display-scale, 1)); line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.brand.is-docked { left: var(--edge); top: calc(var(--top) + 21px); transform: translate(0, -50%) scale(1); }
.brand.is-settled { z-index: 5; }

/* ---------- Učitavanje ---------- */
.preloader { position: absolute; inset: 0; z-index: 20; background: #000; transition: opacity 1.4s ease .2s; }
.preloader.is-done { opacity: 0; pointer-events: none; }
.preloader-note {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(44% + 64px);
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity .4s ease;
}
html:not([data-lang]) :is(.preloader-dedication, .preloader-note) { visibility: hidden; }
.preloader-dedication {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(44% + 62px);
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: .04em;
  text-align: center;
  transition: opacity .4s ease;
}
.preloader-dedication .dedication-all { display: block; margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.preloader-dedication + .preloader-note { top: calc(44% + 128px); }
/* nizak ekran (telefon položeno): posveta u jednom redu, da natpis ne udari u procenat */
@media (max-height: 480px) {
  .preloader-dedication .dedication-all { display: inline; margin: 0; font-size: inherit; }
  .preloader-dedication + .preloader-note { top: calc(44% + 100px); }
}
.preloader-vendor {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(clamp(22px, 3.1vh, 28px) + 88px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  letter-spacing: .03em;
  transition: opacity .4s ease;
}
.preloader-vendor .vendor-by { font-size: 12px; font-weight: 400; letter-spacing: .2em; opacity: 1; }
.preloader-vendor .vendor-name { color: rgba(255, 255, 255, .82); }
.preloader.is-done .preloader-note, .preloader.is-done .preloader-dedication, .preloader.is-done .preloader-vendor { opacity: 0; }
.preloader-count {
  position: fixed;
  z-index: 22;
  left: 50%;
  bottom: clamp(22px, 3.1vh, 28px);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.preloader-count > span:first-child { font-size: 64px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.preloader-count .percent { padding-bottom: 6px; font-size: 24px; font-weight: 300; }
.preloader-count.is-leaving { animation: preload-count-out .75s var(--ease-out) both; }

/* ---------- Spisak planeta ---------- */
.planet-list { left: var(--edge); top: 46%; display: flex; flex-direction: column; gap: 4px; transform: translateY(-50%); }
.planet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 2px 10px 2px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.planet-item:hover { color: #fff; }
.planet-item .pi-num { width: 18px; font-size: 11px; letter-spacing: .08em; opacity: .6; font-variant-numeric: tabular-nums; }
.planet-item.active { color: #fff; font-size: 18px; font-weight: 700; }
.planet-item.active .pi-num { display: none; }
.planet-item.active::before { content: ''; flex: none; width: 16px; height: 16px; margin-right: 2px; border-radius: 50%; background: #fff; }

/* ---------- Prozor ka sledećoj planeti ---------- */
.portal-wrap { right: clamp(28px, 6vw, 110px); top: max(calc(var(--top) + 74px), 13vh); width: min(300px, 22vw, 30vh); }
.portal-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 15px; white-space: nowrap; opacity: 0; }
.portal-heading strong { margin-left: 6px; font-size: 18px; }
.portal {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 320 / 350;
  padding: 0;
  border: 0;
  border-radius: 28% / 25.6%;
  background: transparent;
  cursor: pointer;
}
.portal:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.css-portal { display: none; }

/* ---------- Naslov i podaci ---------- */
.planet-content {
  left: clamp(24px, 3.6vw, 58px);
  right: clamp(24px, 3vw, 44px);
  bottom: clamp(18px, 3.2vh, 34px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  pointer-events: none;
}
.title-block { flex: 1 1 auto; min-width: 0; }
.planet-kicker { margin: 0 0 4px 2px; color: rgba(255, 255, 255, .82); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; }
.planet-content h1 {
  display: inline-block;
  margin: 0 0 -.045em;
  font-family: var(--display);
  font-size: calc(clamp(110px, 19vw, 290px) * var(--display-scale, 1));
  font-weight: 400;
  line-height: .8;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-.035em);
}
.info { flex: 0 0 auto; width: min(440px, 34vw); pointer-events: auto; }
.fun {
  margin: 0 0 14px;
  padding: 13px 16px 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 20px;
  background: rgba(8, 8, 10, .38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
}
.fun-label { display: block; margin-bottom: 5px; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.fun p { min-height: 2.84em; margin: 0; font-size: 15px; line-height: 1.42; transition: opacity .25s ease, transform .25s ease; }
.fun p.is-swapping { opacity: 0; transform: translateY(6px); }
.fun-next {
  margin-top: 9px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.fun-next:hover { background: #fff; color: #000; }
.info dl { margin: 0; font-size: 15px; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); opacity: 0; }
.fact:last-child { border-bottom: 0; }
.fact dt { font-weight: 700; }
.fact dd { margin: 0; }

/* ---------- O sajtu ---------- */
.about {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 24px;
  background: rgba(12, 12, 14, .94);
  color: #fff;
  touch-action: pan-y;
  user-select: text;
  -webkit-user-select: text;
}
.about::backdrop { background: rgba(0, 0, 0, .6); }
.about-inner { padding: 28px 30px 26px; }
.about h2 { margin: 0 0 8px; font-family: var(--display); font-size: calc(56px * var(--display-scale, 1)); font-weight: 400; line-height: .9; letter-spacing: .03em; text-transform: uppercase; }
.about-lead { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.about h3 { margin: 22px 0 8px; color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.about ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.about li + li { margin-top: 5px; }
.about a { color: #fff; }
.about kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; font: 13px/1.4 var(--ui); text-align: center; }
.about-close { height: 40px; margin-top: 24px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #000; cursor: pointer; }

/* ---------- BrAInLab Solutions (izrada): „Powered by“ dole desno, na učitavanju i u „O sajtu“ ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Znak je beo kao i znak „Kosmolab“; boje brenda (prelaz, cijan „AI“) se pale kad se na oznaku pokaže
   i u prozoru BrAInLab-a. „Powered by“ ide istim malim razmaknutim verzalom kao ostale oznake na sajtu. */
.vendor-mark { flex: none; width: 1.3em; height: 1.3em; }
.bl-mono { fill: currentColor; }
.bl-color { fill: url(#bl-grad); opacity: 0; transition: opacity .35s ease; }
.ai { transition: color .35s ease; }
.vendor-by { margin-right: .35em; font-size: .84em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
:is(.preloader-vendor, .vendor, .about-vendor) b { color: inherit; font-weight: 500; }
:is(.vendor:hover, .vendor:focus-visible, .about-vendor:hover, .vendor-dialog-brand) .bl-color { opacity: 1; }
:is(.vendor:hover, .vendor:focus-visible, .about-vendor:hover, .vendor-dialog-brand) .ai { color: #00c8ff; }
.vendor-dialog-brand b { color: #fff; font-weight: 600; }
.vendor {
  position: absolute;
  right: 0;
  top: calc(100% + 3px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .5);
  font: 12px/14px var(--ui);
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity .6s ease .6s, color .2s ease;
}
.intro-ready .vendor { opacity: 1; }
/* u traci znak ne sme da bude viši od reda: ispod sadržaja ima najmanje 18 px (niski ekrani) */
.vendor .vendor-mark { width: 1.2em; height: 1.2em; }
.vendor:hover { color: #fff; }
.vendor:focus-visible, .vendor-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.about-vendor { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; line-height: 1.5; }
.about-vendor .vendor-mark { width: 30px; height: 30px; }
.vendor-dialog {
  width: min(380px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 24px;
  background: rgba(12, 12, 14, .94);
  color: #fff;
}
.vendor-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.vendor-dialog-inner { padding: 24px 24px 20px; }
.vendor-dialog-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; letter-spacing: .01em; }
.vendor-dialog-brand .vendor-mark { width: 34px; height: 34px; }
.vendor-dialog-text { margin: 14px 0 0; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.5; }
.vendor-dialog-actions { display: flex; gap: 8px; margin-top: 20px; }
.vendor-dialog-actions button { flex: 1; height: 40px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: none; color: #fff; font: 15px var(--ui); cursor: pointer; }
.vendor-dialog-actions .vendor-yes { border-color: #fff; background: #fff; color: #000; }

/* ---------- Vaga i rođendan ---------- */
.fun-vaga { margin-left: 6px; }
.vaga-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.vaga-field { display: flex; flex-direction: column; gap: 6px; color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.vaga-field input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 17px var(--ui);
  letter-spacing: 0;
  text-transform: none;
  color-scheme: dark;
}
.vaga-field select {
  box-sizing: border-box;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 16px var(--ui);
  letter-spacing: 0;
  text-transform: none;
  color-scheme: dark;
  cursor: pointer;
}
.vaga-field select option { background: #141416; color: #fff; }
.vaga-born { display: grid; grid-template-columns: 1fr 1.7fr 1.3fr; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vaga-born legend { float: left; grid-column: 1 / -1; width: 100%; padding: 0; }
.vaga-field input:focus-visible, .vaga-field select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vaga-input { position: relative; display: flex; }
.vaga-input input { padding-right: 42px; }
.vaga-input > span { position: absolute; right: 14px; top: 50%; color: rgba(255, 255, 255, .6); font-size: 15px; letter-spacing: 0; text-transform: none; transform: translateY(-50%); pointer-events: none; }
.vaga-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.vaga-presets button { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: none; color: #fff; font: 13px var(--ui); cursor: pointer; }
.vaga-presets button:hover { background: #fff; color: #000; }
.vaga-presets button:focus-visible, .vaga-clear:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vaga-error { margin: 10px 0 0; color: #ffb4a8; font-size: 14px; }
.vaga-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.vaga-table th, .vaga-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; vertical-align: top; }
.vaga-table thead th { color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; vertical-align: bottom; }
.vaga-table tbody th { font-weight: 600; }
.vaga-table td small { display: block; color: rgba(255, 255, 255, .6); font-size: 12px; }
.vaga-table td:nth-child(2) { white-space: nowrap; }
.vaga-table tr.is-current { background: rgba(255, 255, 255, .1); }
.vaga-note { margin: 14px 0 0; color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.5; }
.vaga-actions { display: flex; align-items: center; gap: 16px; }
.vaga-clear { margin-top: 24px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .7); font: 14px var(--ui); text-decoration: underline; cursor: pointer; }

/* ---------- Kursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.custom-cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 1px; height: 1px; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.custom-cursor.is-visible { opacity: 1; }
body:not(.preload-complete) .custom-cursor { opacity: 0 !important; }
.cursor-dot, .cursor-orbit { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 12px; height: 12px; background: #fff; }
.cursor-orbit { width: 36px; height: 36px; border: 1px solid #fff; background: rgba(255, 255, 255, .4); transition: transform .3s var(--ease-out), background .3s ease; }
.custom-cursor.is-enter .cursor-orbit, .custom-cursor.is-grab .cursor-orbit { transform: translate(-50%, -50%) scale(1.16); }
.custom-cursor.is-grabbing .cursor-orbit { transform: translate(-50%, -50%) scale(.82); background: rgba(255, 255, 255, .6); }
.cursor-label {
  position: absolute;
  top: 26px;
  left: 0;
  font: 15px/1.2 var(--ui);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.custom-cursor.is-enter .cursor-label, .custom-cursor.is-grab .cursor-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Ulazne animacije ---------- */
body:not(.intro-ready) .header, body:not(.intro-ready) .planet-list { opacity: 0; }
.intro-ready .header { animation: reveal-down .9s var(--ease-out) .1s both; }
.intro-ready .planet-list { animation: reveal-side .9s var(--ease-out) .45s both; }
.content-revealing .planet-kicker { animation: fact-rise .7s var(--ease-out) .05s both; }
.content-revealing .descent-hint { animation: fact-rise .7s var(--ease-out) 1.25s both; }
.content-revealing h1 { animation: title-rise 1.05s var(--ease-expo) both; }
.content-revealing .fun { animation: fact-rise .72s var(--ease-out) .36s both; }
.content-revealing .fact { animation: fact-rise .72s var(--ease-out) both; }
.content-revealing .fact:nth-child(1) { animation-delay: .5s; }
.content-revealing .fact:nth-child(2) { animation-delay: .62s; }
.content-revealing .fact:nth-child(3) { animation-delay: .74s; }
.content-revealing .fact:nth-child(4) { animation-delay: .86s; }
.content-revealing .fact:nth-child(5) { animation-delay: .98s; }
.content-revealing .fact:nth-child(6) { animation-delay: 1.1s; }
.content-revealing .surface-caption { animation: fact-rise .72s var(--ease-out) .5s both; }
.mask-revealing .portal-heading { animation: portal-caption .85s var(--ease-out) both; }
.planet-list.is-switching .planet-item { animation: menu-row .58s var(--ease-out) both; }
.planet-list.is-switching .planet-item:nth-child(1) { animation-delay: .02s; }
.planet-list.is-switching .planet-item:nth-child(2) { animation-delay: .05s; }
.planet-list.is-switching .planet-item:nth-child(3) { animation-delay: .08s; }
.planet-list.is-switching .planet-item:nth-child(4) { animation-delay: .11s; }
.planet-list.is-switching .planet-item:nth-child(5) { animation-delay: .14s; }
.planet-list.is-switching .planet-item:nth-child(6) { animation-delay: .17s; }
.planet-list.is-switching .planet-item:nth-child(7) { animation-delay: .2s; }
.planet-list.is-switching .planet-item:nth-child(8) { animation-delay: .23s; }
.planet-list.is-switching .planet-item:nth-child(9) { animation-delay: .26s; }
.planet-list.is-switching .planet-item.active::before { animation: active-dot .55s var(--ease-out) .18s both; }

@keyframes preload-count-out { to { opacity: 0; filter: blur(7px); transform: translate(-50%, -34px); } }
@keyframes reveal-down { from { opacity: 0; filter: blur(8px); transform: translateY(-18px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes reveal-side { from { opacity: 0; filter: blur(8px); transform: translate(-20px, -50%); } to { opacity: 1; filter: blur(0); transform: translate(0, -50%); } }
@keyframes title-rise { from { opacity: 0; filter: blur(12px); transform: translate(-.035em, 42px); } to { opacity: 1; filter: blur(0); transform: translate(-.035em, 0); } }
@keyframes fact-rise { from { opacity: 0; filter: blur(7px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes portal-caption { from { opacity: 0; filter: blur(7px); transform: translateY(22px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes menu-row { from { opacity: .35; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes active-dot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* ---------- Bez 3D podrške: planete od CSS-a ---------- */
.no-webgl .space-canvas { display: none; }
.no-webgl .css-space {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background: radial-gradient(ellipse at 72% 18%, #10182b 0%, #050505 62%);
}
/* Krug seče mapu; mapa (dve kopije slike) klizi transformom, senka je sloj iznad. */
.css-planet {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  background-color: #777;
  transition: transform 1.2s var(--ease-expo), opacity .8s ease;
}
.css-planet-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  animation: css-spin 80s linear infinite;
  will-change: transform;
}
.css-planet::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 32%, rgba(255, 255, 255, .16) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .5) 70%, rgba(0, 0, 0, .9) 100%);
}
/* Sunce svetli samo: bez noćne strane, samo tamnije ka ivici diska, i sjaj oko njega. */
.css-planet.is-star { box-shadow: 0 0 5vmin 1vmin rgba(255, 170, 70, .55), 0 0 20vmin 5vmin rgba(255, 140, 40, .2); }
.css-planet.is-star::after { background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(110, 30, 0, .5) 100%); }
.no-webgl .css-portal {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: inherit;
  background: radial-gradient(ellipse at center, #182038 0%, #05060a 72%);
}
@keyframes css-spin { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.noscript { position: absolute; z-index: 30; left: 0; right: 0; top: 45%; text-align: center; }

/* ---------- Veliki ekrani (tabla, projektor) ---------- */
@media (min-width: 1800px) {
  .info { width: min(500px, 30vw); }
  .info dl { font-size: 17px; }
  .fact { grid-template-columns: 140px 1fr; }
  .fun p { font-size: 17px; }
  .planet-item { font-size: 18px; }
  .planet-item.active { font-size: 20px; }
}

@media (max-width: 1100px) {
  .nav a { padding: 8px 14px; }
}

@media (max-width: 900px) {
  .planet-item { min-height: 26px; font-size: 14px; }
  .planet-item.active { font-size: 16px; }
  .portal-wrap { width: min(240px, 26vw, 30vh); }
  .info { width: min(380px, 44vw); }
  .info dl { font-size: 14px; }
  .fact { grid-template-columns: 104px 1fr; gap: 12px; }
  .fun p { font-size: 14px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
  .nav { display: none; }
  .menu { height: 36px; padding: 0 15px; font-size: 13px; }
  .pismo { height: 36px; padding: 3px 4px; }
  .pismo button { padding: 0 8px; font-size: 12px; }
  /* na telefonu ceo ekran je samo ikonica, da tri dugmeta za jezik stanu pored logoa */
  #fullscreen { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; }
  #fullscreen[hidden] { display: none; }
  .fs-icon { display: block; }
  .fs-text { display: none; }
  .brand-word { font-size: calc(26px * var(--display-scale, 1)); }
  .brand-mark { width: 30px; height: 30px; }
  .brand.is-docked { top: calc(var(--top) + 18px); }
  .planet-anchor { left: 41%; top: 33%; width: min(78vw, 40vh); }
  .planet-list {
    left: 0;
    right: 0;
    top: calc(var(--top) + 48px);
    flex-direction: row;
    gap: 6px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    transform: none;
    touch-action: pan-x;
  }
  .planet-list::-webkit-scrollbar { display: none; }
  .planet-item { flex: none; min-height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; }
  .planet-item .pi-num { display: none; }
  .planet-item.active { background: #fff; color: #000; font-size: 13px; }
  .planet-item.active::before { display: none; }
  .intro-ready .planet-list { animation-name: reveal-down; }
  .portal-wrap { right: 14px; top: calc(33% + 3vh); width: min(118px, 30vw); transform: translateY(-50%); }
  .portal-heading { display: block; margin-bottom: 7px; font-size: 12px; line-height: 1.25; text-align: right; }
  .portal-heading > span { display: block; }
  .portal-heading strong { margin-left: 4px; font-size: 15px; }
  .planet-content { left: 16px; right: 16px; bottom: 14px; display: block; }
  .planet-kicker { font-size: 11px; }
  .planet-content h1 { margin-bottom: 8px; font-size: calc(clamp(84px, 25vw, 140px) * var(--display-scale, 1)); }
  .info { width: 100%; }
  .fun { margin-bottom: 8px; padding: 10px 13px; border-radius: 16px; }
  .fun p { min-height: 0; font-size: 13.5px; line-height: 1.38; }
  .fun-next { margin-top: 6px; padding: 4px 12px; font-size: 12px; }
  .info dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; font-size: 12.5px; }
  .fact { display: block; padding: 5px 0; }
  .fact:nth-last-child(-n + 2) { border-bottom: 0; }
  .fact dt { color: rgba(255, 255, 255, .7); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
  .about-inner { padding: 22px 20px 20px; }
  .about h2 { font-size: calc(46px * var(--display-scale, 1)); }
  .descent-hint { margin-bottom: 8px; padding: 5px 12px 5px 10px; font-size: 12px; }
  .surface-caption { width: 100%; padding-top: 9px; }
  .surface-text { font-size: 14px; }
  /* na tlu je naslov manji: red iznad već kaže „Na Marsu“, a slici treba mesto */
  .experience.is-landed .planet-content h1 { margin-bottom: 4px; font-size: calc(clamp(52px, 15vw, 76px) * var(--display-scale, 1)); }
  .experience.is-landed .surface-text { font-size: 13.5px; line-height: 1.4; }
  .experience.is-landed .surface-credit { margin-top: 6px; font-size: 10.5px; }
  .experience.is-landed .surface-actions { margin-top: 10px; }
  .experience.is-landed :is(.ascend, .go-next) { padding: 7px 14px; font-size: 13px; }
  .fullview-btn { top: calc(var(--fit-top, 110px) + 8px); right: 12px; width: 38px; height: 38px; }
  .vendor { display: none; }
  .vaga-form { grid-template-columns: 1fr; gap: 10px; }
  .vaga-table { font-size: 13px; }
  .vaga-table th, .vaga-table td { padding: 6px 4px; }
}

/* ---------- Niži ekrani (laptop 768 px, projektor) ---------- */
@media (max-height: 820px) and (min-width: 641px) {
  .fact { padding: 5px 0; }
  .fun { margin-bottom: 10px; padding: 10px 14px; }
  .fun p { min-height: 0; font-size: 14px; }
  .fun-next { margin-top: 6px; padding: 4px 12px; }
}

/* ---------- Kratak telefon ---------- */
@media (max-width: 640px) and (max-height: 700px) {
  .planet-anchor { top: 32%; width: min(70vw, 34vh); }
  .portal-wrap { top: calc(32% + 2vh); }
}

/* ---------- Nizak ekran (telefon položeno) ---------- */
@media (max-height: 520px) {
  .preloader-vendor { top: 18px; bottom: auto; }
}
@media (max-height: 520px) and (min-width: 641px) {
  .planet-anchor { top: 54%; width: min(76vh, 38vw); }
  .planet-list { display: none; }
  .portal-wrap { top: 64px; width: min(132px, 16vw, 34vh); }
  .portal-heading { margin-bottom: 5px; font-size: 12px; }
  .portal-heading strong { font-size: 14px; }
  .planet-kicker { display: none; }
  .planet-content h1 { font-size: calc(clamp(64px, 12vw, 120px) * var(--display-scale, 1)); }
  .info { width: min(400px, 46vw); }
  .fun { display: none; }
  .info dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; font-size: 12.5px; }
  .fact { display: block; padding: 3px 0; }
  .fact:nth-last-child(-n + 2) { border-bottom: 0; }
  .fact dt { color: rgba(255, 255, 255, .7); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
}

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