/* =====================================================================
   Escape room (soba pobega) - frontend igralca. Mobile-first.
   Atmosfera: nocni grad, zlati poudarki, stirje elementi.
   ===================================================================== */

:root {
  /* SVETLA (bela) tema - znamka PMB bordo na beli podlagi */
  --bg:      #ffffff;
  --bg2:     #faf5f2;
  --bg3:     #ffffff;
  --panel:   rgba(20,12,12,.035);
  --panel2:  rgba(20,12,12,.06);
  --line:    rgba(150,26,31,.18);
  --gold:    #b62b32;
  --gold2:   #961a1f;
  --ink:     #2b2422;
  --muted:   rgba(43,36,34,.64);
  --muted2:  rgba(43,36,34,.42);
  --ok:      #1f9d6b;
  --err:     #d23b3b;
  --water:   #4aa6e0;
  --fire:    #ec7a3c;
  --earth:   #b08a4e;
  --air:     #c4d2ec;
  --r:       16px;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }

.er-body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg3);
  min-height: 100vh; min-height: 100dvh;
  overscroll-behavior: none;
}

/* =====================================================================
   APP + scene  (full-screen povsod, BREZ okvirja telefona)
   ===================================================================== */
.er-app {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(130% 90% at 50% -6%, #fdf3f1 0%, #ffffff 55%, #ffffff 100%);
  isolation: isolate;
}

.er-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .55s var(--ease), visibility .5s;
}
.er-scene.is-active { opacity: 1; visibility: visible; transform: none; }

/* =====================================================================
   Preklop jezika - animirani zastavici
   ===================================================================== */
/* Jezik = kompakten tekstovni preklop (SL / EN). Diskreten, ne moteč.
   Skrit med nalaganjem (splash) IN med samo igro (jezik je takrat ze izbran). */
.er-lang {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px;
  z-index: 40; display: flex; gap: 2px;
  background: rgba(20,12,12,.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
  transition: opacity .4s var(--ease);
}
.er-app[data-scene="splash"] .er-lang,
.er-app[data-scene="game"] .er-lang { opacity: 0; pointer-events: none; }

.er-lang-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.er-lang-btn:hover { color: var(--ink); }
.er-lang-btn.is-active {
  background: #fff; color: var(--gold2);
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}

/* =====================================================================
   Tipografija + skupni elementi
   ===================================================================== */
.er-h2 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: 26px; line-height: 1.2; margin: 0 0 10px; font-weight: 600;
  letter-spacing: .2px;
}
.er-lead { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

.er-card {
  width: 100%; max-width: 420px; margin: auto;
  background: #ffffff; border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 18px 50px rgba(150,26,31,.10), 0 2px 10px rgba(0,0,0,.05);
}
.er-center { text-align: center; }
.er-center .er-lead { margin-left: auto; margin-right: auto; max-width: 340px; }

/* gumbi */
.er-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; border: 0; cursor: pointer; font-size: 16px; font-weight: 600;
  padding: 15px 20px; border-radius: 14px; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .25s, filter .2s, opacity .2s;
  font-family: inherit;
}
.er-btn:active { transform: scale(.975); }
.er-btn[disabled] { opacity: .55; cursor: default; }
.er-btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #b8333a 0%, var(--gold2) 100%);
  box-shadow: 0 10px 26px rgba(150,26,31,.30), inset 0 1px 0 rgba(255,255,255,.5);
}
.er-btn-primary:hover { filter: brightness(1.04); box-shadow: 0 14px 32px rgba(150,26,31,.42), inset 0 1px 0 rgba(255,255,255,.5); }
.er-btn-ghost {
  color: var(--ink); background: var(--panel2); border: 1px solid var(--line);
}
.er-btn-ghost:hover { background: rgba(255,255,255,.1); }

.er-link {
  background: none; border: 0; color: var(--gold); cursor: pointer;
  font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
  padding: 0;
}
.er-link:hover { color: var(--gold2); }

/* =====================================================================
   SCENA: splash / nalaganje - BELA podlaga, velik PMB logo se "polni" od
   spodaj navzgor s PRAVIMI barvami (siv napis + rdec zavihek), nato naziv
   igre, nato cel splash zafejda v temni uvod.
   ===================================================================== */
.er-splash { justify-content: center; align-items: center; padding: 30px 26px; background: transparent; }

/* ozadje loaderja = samostojna plast (zdaj belo).
   KASNEJE: v .er-splash-bg-fill damo sliko (background-image) in na .er-splash
   dodamo razred .is-bgfill -> slika se "fila" od spodaj navzgor (mehanizem spodaj). */
.er-splash-bg { position: absolute; inset: 0; z-index: 0; background: #ffffff; overflow: hidden; }
.er-splash-bg-fill {
  position: absolute; inset: 0; background: center / cover no-repeat;
  clip-path: inset(100% 0 0 0);          /* privzeto skrito (ni slike) */
}
.er-splash.is-bgfill .er-splash-bg-fill { animation: erFill 2.3s var(--ease) .2s forwards; }

.er-splash-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; width: 100%;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.er-splash.is-leaving .er-splash-inner { opacity: 0; transform: translateY(-8px); }

/* velik logo; obe plasti uporabita PRAVI barvni SVG (contain) */
.er-logo { position: relative; width: min(86%, 640px); aspect-ratio: 324.2453 / 76.957; }
/* rahla bela prosojna podlaga za logo (boljsi kontrast na temnem splashu) */
.er-logo::before {
  content: ""; position: absolute; inset: -16px -30px; z-index: -1;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px; backdrop-filter: blur(5px); box-shadow: 0 8px 34px rgba(0,0,0,.2);
}
.er-logo i {
  position: absolute; inset: 0;
  background: center / contain no-repeat url(pmb.svg);   /* samostojen logo v assets/ (deluje tudi na poddomeni) */
}
.er-logo-ghost { filter: grayscale(1); opacity: .15; }            /* "prazen" obris */
.er-logo-fill {
  clip-path: inset(0 100% 0 0);                                   /* polni se od LEVE proti DESNI */
  animation: erFillLR 2.3s var(--ease) .2s forwards;
}
@keyframes erFill   { to { clip-path: inset(0 0 0 0); } }   /* (rezerva, bottom-up - ozadje) */
@keyframes erFillLR { to { clip-path: inset(0 0 0 0); } }   /* logo: levo -> desno */

/* pod logom: med nalaganjem %, ko je polno pa naziv igre (cross-fade v istem mestu) */
.er-splash-status { position: relative; display: grid; place-items: center; min-height: 40px; width: 100%; }
.er-splash-pct, .er-splash-title { grid-area: 1 / 1; margin: 0; text-align: center; transition: opacity .5s var(--ease); }
.er-splash-pct {
  color: #961a1f; font-weight: 700; font-size: 18px; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.er-splash.is-named .er-splash-pct { opacity: 0; }
.er-splash-title {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(20px, 4.6vw, 30px); line-height: 1.3; color: #2b2422; max-width: 460px;
  opacity: 0;
}
.er-splash.is-named .er-splash-title { opacity: .95; }

/* =====================================================================
   SCENA: uvod / naslovnica
   ===================================================================== */
.er-intro { justify-content: flex-end; padding: 0; }
.er-intro-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0e1524; }
.er-media-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* CELA slika, fitana po Y osi (polna visina, nic obrezano); prazen prostor ob straneh je temen */
.er-media-img { background-size: auto 100%; background-repeat: no-repeat; background-position: center top; }
@keyframes erKen { from { transform: scale(1.12); } to { transform: scale(1); } }

/* uvodni video zapolni zaslon (portretni klip); slika ostane fitana po Y osi */
.er-intro-media video.er-media-el { object-fit: cover; }
/* "se napolni": medij se razkrije od spodaj navzgor + iz sivine v barvo (isti obcutek kot splash "grad se barva") */
.er-media-fill { animation: erMediaFill 1.9s var(--ease) both; will-change: clip-path, filter, transform; }
@keyframes erMediaFill {
  0%   { clip-path: inset(100% 0 0 0); filter: grayscale(.85) brightness(.6) contrast(1.04); transform: scale(1.12); }
  55%  { filter: grayscale(.3) brightness(.9) contrast(1.02); }
  100% { clip-path: inset(0 0 0 0);   filter: grayscale(0) brightness(1);    transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .er-media-fill { animation: none; }
}

.er-intro-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 60% at 50% 18%, rgba(8,11,24,0) 0%, rgba(8,11,24,.2) 55%, rgba(8,11,24,.86) 100%),
    linear-gradient(to top, var(--bg3) 4%, rgba(14,19,38,.5) 38%, rgba(14,19,38,.1) 72%);
}

.er-cover {
  position: relative; z-index: 2; text-align: center;
  padding: 0 26px calc(46px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}
.er-intro.is-revealed .er-cover { opacity: 1; transform: none; }
.er-kicker {
  text-transform: uppercase; letter-spacing: 3px; font-size: 11px;
  color: #fff; margin: 0 0 14px; font-weight: 700; line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,.85);
}
.er-title {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(26px, 7.4vw, 36px); line-height: 1.1; margin: 0 0 14px; font-weight: 600;
  text-shadow: 0 2px 30px rgba(0,0,0,.7); overflow-wrap: break-word;
}
.er-cover { color: #fff; }
.er-title { color: #fff; }
.er-slogan {
  color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.55;
  margin: 0 auto 22px; max-width: 340px; font-style: italic; text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
/* "Kako se igra" - 3 jasni koraki, da je vstop v igro samoumeven */
.er-how {
  list-style: none; margin: 0 auto 26px; padding: 14px 16px; max-width: 340px;
  text-align: left; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; backdrop-filter: blur(6px);
}
.er-how li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.92);
  padding: 7px 0;
}
.er-how li + li { border-top: 1px solid rgba(255,255,255,.1); }
.er-how-n {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #c0323a, var(--gold2)); box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
/* vstopni gumb "utripa" kot beacon, da pritegne pogled */
.er-start { max-width: 320px; margin: 0 auto; position: relative; animation: erBeaconGlow 2.2s ease-in-out infinite; }
.er-start::after {
  content: ""; position: absolute; inset: -2px; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(224,69,76,.55); animation: erBeacon 2.2s ease-out infinite;
}
@keyframes erBeacon {
  0%   { box-shadow: 0 0 0 0 rgba(224,69,76,.55); }
  70%  { box-shadow: 0 0 0 17px rgba(224,69,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,69,76,0); }
}
@keyframes erBeaconGlow {
  0%,100% { box-shadow: 0 10px 26px rgba(150,26,31,.30), inset 0 1px 0 rgba(255,255,255,.5); }
  50%     { box-shadow: 0 12px 30px rgba(150,26,31,.5), 0 0 22px rgba(224,69,76,.38), inset 0 1px 0 rgba(255,255,255,.5); }
}

.er-skip {
  position: absolute; z-index: 3; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18); color: var(--muted);
  font: inherit; font-size: 12px; letter-spacing: .5px; padding: 7px 16px; border-radius: 30px;
  cursor: pointer; backdrop-filter: blur(4px); transition: opacity .4s;
}
.er-intro.is-revealed .er-skip { opacity: 0; pointer-events: none; }

/* CSS nadomestna animacija uvoda (ce ni medija): grad + stirje elementi */
.er-media-css { background: radial-gradient(120% 90% at 50% 0%, #232c63 0%, var(--bg) 55%, #060912 100%); }
.er-castle {
  position: absolute; left: 50%; bottom: 30%; width: 230px; height: 150px; transform: translateX(-50%);
  background:
    linear-gradient(#140e0f,#140e0f) 50% 100% / 200px 70px no-repeat;
  filter: drop-shadow(0 0 30px rgba(0,0,0,.6));
  opacity: .9;
}
.er-castle::before {
  content: ""; position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%);
  width: 36px; height: 90px; background: #140e0f;
  box-shadow: -64px 18px 0 -4px #140e0f, 64px 18px 0 -4px #140e0f;
}
.er-castle::after {
  content: ""; position: absolute; left: 50%; bottom: 130px; transform: translateX(-50%);
  width: 7px; height: 26px; background: var(--gold);
  box-shadow: 0 0 12px 3px rgba(226,69,76,.7);
  clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
}
.er-orbs i {
  position: absolute; top: 26%; left: 50%; width: 13px; height: 13px; border-radius: 50%;
  animation: erFloat 6s ease-in-out infinite;
}
.er-orbs .el-water { background: var(--water); box-shadow: 0 0 16px 4px var(--water); margin-left: -88px; animation-delay: 0s; }
.er-orbs .el-fire  { background: var(--fire);  box-shadow: 0 0 16px 4px var(--fire);  margin-left: -30px; animation-delay: .8s; top: 20%; }
.er-orbs .el-earth { background: var(--earth); box-shadow: 0 0 16px 4px var(--earth); margin-left: 30px;  animation-delay: 1.6s; top: 22%; }
.er-orbs .el-air   { background: var(--air);   box-shadow: 0 0 16px 4px var(--air);   margin-left: 86px;  animation-delay: 2.4s; }
@keyframes erFloat { 0%,100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(-14px); opacity: 1; } }

/* =====================================================================
   SCENA: prijava
   ===================================================================== */
.er-field { margin-bottom: 16px; }
.er-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; letter-spacing: .3px; }

/* spol + letnica v eni vrsti */
.er-row2 { display: flex; gap: 12px; align-items: flex-start; }
.er-row2 .er-field { margin-bottom: 8px; }
.er-field--gender { flex: 0 0 122px; }
.er-field--year { flex: 1 1 auto; min-width: 0; }
.er-seg-icon { padding: 0; height: 50px; display: flex; align-items: center; justify-content: center; }
.er-gico { width: 26px; height: 26px; display: block; }
.er-field--year .er-select { height: 50px; }

/* letnica = dropdown (min 16 let); custom puscica, izgled kot input */
.er-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23961a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.er-select.is-valid   { border-color: rgba(31,157,107,.6); }
.er-select.is-invalid { border-color: rgba(210,59,59,.6); }

/* e-posta / Google se odpreta SELE po privolitvi (GDPR) */
.er-auth {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s var(--ease);
}
.er-auth.is-on { max-height: 560px; opacity: 1; }
.er-auth .er-field:first-child { margin-top: 14px; }
.er-authbox .er-submit { margin-top: 16px; }
.er-authbox .er-btn-google { margin-top: 0; }

.er-seg { display: flex; gap: 8px; }
.er-seg-btn {
  flex: 1; padding: 13px 6px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 14px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.er-seg-btn:hover { background: var(--panel2); }
.er-seg-btn.is-on {
  background: linear-gradient(180deg, rgba(226,69,76,.22), rgba(226,69,76,.12));
  border-color: var(--gold); color: var(--gold); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(226,69,76,.4);
}

.er-input-wrap { position: relative; }
.er-input {
  width: 100%; padding: 14px 42px 14px 15px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.er-input::placeholder { color: var(--muted2); }
.er-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,69,76,.15); }
.er-check { position: absolute; right: 13px; top: 50%; transform: translateY(-50%) scale(.4); width: 22px; height: 22px; opacity: 0; transition: opacity .25s, transform .25s var(--ease); }
.er-check::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.er-input-wrap.is-valid .er-check { opacity: 1; transform: translateY(-50%) scale(1); }
.er-input-wrap.is-valid .er-input { border-color: rgba(70,211,154,.6); }
.er-input-wrap.is-invalid .er-input { border-color: rgba(255,111,111,.6); }

.er-err { color: var(--err); font-size: 13px; margin: 7px 2px 0; min-height: 0; }
.er-err:empty { display: none; }
.er-err-top { text-align: center; margin-top: 12px; }

.er-btn-google {
  background: #fff; color: #2c2c2c; border: 1px solid rgba(20,12,12,.16);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  font-size: 15px; margin-top: 4px;
}
.er-btn-google:hover { background: #fafafa; }
.er-demo { font-style: normal; font-size: 12px; color: #888; font-weight: 500; }
.er-g-icon {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background:
    conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0 100%);
  -webkit-mask: radial-gradient(circle 4.5px at 50% 50%, transparent 98%, #000 100%);
          mask: radial-gradient(circle 4.5px at 50% 50%, transparent 98%, #000 100%);
  position: relative;
}

.er-or {
  display: flex; align-items: center; text-align: center; gap: 12px;
  color: var(--muted2); font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  margin: 18px 0;
}
.er-or::before, .er-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.er-gdpr { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 6px 0 2px; }
.er-gdpr input { position: absolute; opacity: 0; width: 0; height: 0; }
.er-gdpr-box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  border: 1px solid var(--line); background: var(--panel); position: relative; transition: all .2s;
}
.er-gdpr input:checked + .er-gdpr-box {
  background: linear-gradient(180deg, #c0323a, var(--gold)); border-color: var(--gold);
}
.er-gdpr input:checked + .er-gdpr-box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.er-gdpr input:focus-visible + .er-gdpr-box { box-shadow: 0 0 0 3px rgba(226,69,76,.3); }
.er-gdpr-box { margin-top: 0; }
.er-gdpr-text { font-size: 13.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.er-gdpr-text .er-link { font-size: 13.5px; }
.er-submit { margin-top: 16px; }

/* =====================================================================
   SCENA: cakanje na potrditev maila
   ===================================================================== */
.er-envelope {
  width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(226,69,76,.16), rgba(226,69,76,.05));
  border: 1px solid var(--line); position: relative;
  animation: erPulse 2.6s ease-in-out infinite;
}
.er-envelope::before, .er-envelope::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: 26px; height: 26px;
  border: 2px solid var(--gold); border-radius: 4px;
}
.er-envelope::after { background: linear-gradient(135deg, transparent 48%, var(--gold) 48% 52%, transparent 52%), linear-gradient(-135deg, transparent 48%, var(--gold) 48% 52%, transparent 52%); border: 0; top: 26px; height: 16px; }
@keyframes erPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(226,69,76,.0); } 50% { box-shadow: 0 0 0 10px rgba(226,69,76,.06); } }

.er-email-show {
  font-weight: 600; color: var(--gold); font-size: 15px; word-break: break-all;
  margin: -4px 0 18px;
}
.er-waiting { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.er-waiting-txt { margin-left: 4px; }
.er-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .35; animation: erBlink 1.2s infinite; }
.er-dot:nth-child(2) { animation-delay: .2s; } .er-dot:nth-child(3) { animation-delay: .4s; }
@keyframes erBlink { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.er-wait-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; align-items: center; }
.er-sep { color: var(--muted2); }
.er-note { margin-top: 12px; color: var(--ok); font-size: 13px; }

/* =====================================================================
   SCENA: igra
   ===================================================================== */
/* game scena = FLEX STOLPEC: crta | glava | telo(scroll) | vrstica(dno).
   Visina = visina aplikacije (100dvh), zato je dno res na dnu vidnega zaslona. */
.er-game-scene {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: 0; overflow: hidden;
}

/* zgornja tanka crta napredka (koliko do konca) */
.er-top-progress {
  flex: none; height: 5px; background: rgba(20,12,12,.07);
  margin-top: env(safe-area-inset-top);
}
.er-top-progress-bar {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold));
  transition: width .5s var(--ease);
}

.er-game-top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: #ffffff; border-bottom: 1px solid var(--line);
}
.er-game-title {
  font-family: Georgia, serif; font-size: 14px; color: var(--muted); font-weight: 600;
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.er-game-meta { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
/* varovalo proti vodoravnemu prelivu na ozkih zaslonih */
.er-game-scene, .er-game-top, .er-game-body, .er-tabbar, .er-top-progress { max-width: 100%; }
.er-game-top { min-width: 0; }
.er-game-timer { display: inline-flex; align-items: center; gap: 5px; color: var(--gold2); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.er-clock { width: 15px; height: 15px; }
.er-game-count { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }

.er-game-body {
  flex: 1 1 auto; min-height: 0; width: 100%;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px;
}
.er-game-body > * { max-width: 460px; margin-left: auto; margin-right: auto; }
.er-step-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px;
  box-shadow: 0 14px 40px rgba(150,26,31,.08), 0 2px 8px rgba(0,0,0,.04);
}

/* spodnja vrstica (meni) - naravno pripeta na dno flex stolpca */
.er-tabbar {
  flex: none;
  display: flex; background: #ffffff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(0,0,0,.05);
}
.er-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 8px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600;
  transition: color .2s var(--ease);
}
.er-tab svg { width: 23px; height: 23px; }
.er-tab:hover { color: var(--ink); }
.er-tab.is-active { color: var(--gold2); }
.er-tab.is-active svg { filter: drop-shadow(0 1px 3px rgba(150,26,31,.25)); }
.er-tab-badge { position: relative; }
.er-el {
  display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 30px; margin-bottom: 14px; font-weight: 700;
  border: 1px solid currentColor;
}
.er-el-voda  { color: var(--water); } .er-el-water { color: var(--water); }
.er-el-ogenj { color: var(--fire); }  .er-el-fire  { color: var(--fire); }
.er-el-zemlja{ color: var(--earth); } .er-el-earth { color: var(--earth); }
.er-el-zrak  { color: var(--air); }   .er-el-air   { color: var(--air); }
.er-step-title { font-family: Georgia, serif; font-size: 23px; line-height: 1.22; margin: 0 0 12px; font-weight: 600; }
.er-step-instr { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

/* "Odprta igra" - zacasni zaslon po potrditvi maila */
.er-opened-ico {
  width: 72px; height: 72px; margin: 4px auto 18px; border-radius: 50%;
  background: rgba(31,157,107,.12); border: 1px solid rgba(31,157,107,.5); position: relative;
}
.er-opened-ico::after {
  content: ""; position: absolute; left: 26px; top: 19px; width: 13px; height: 26px;
  border: solid var(--ok); border-width: 0 4px 4px 0; transform: rotate(45deg);
}
.er-interaction {
  border: 1px dashed var(--line); border-radius: 14px; padding: 22px 18px; text-align: center;
  color: var(--muted2); font-size: 14px; line-height: 1.5; background: rgba(150,26,31,.035);
  margin-bottom: 18px;
}
.er-step-trigger {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: var(--gold2);
  background: rgba(150,26,31,.07); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 30px; margin-bottom: 14px;
}
.er-hints { margin-bottom: 18px; }
.er-hint-list { margin-top: 10px; padding: 12px 14px; background: rgba(150,26,31,.04); border-radius: 12px; border: 1px solid var(--line); }
.er-hint-list p { margin: 0 0 8px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.er-hint-list p:last-child { margin-bottom: 0; }

/* panel: Napredek (seznam nalog) */
.er-prog-list { list-style: none; margin: 14px 0 0; padding: 0; }
.er-prog-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid rgba(20,12,12,.07); font-size: 15px; color: var(--ink);
}
.er-prog-item:last-child { border-bottom: 0; }
.er-prog-ico {
  width: 26px; height: 26px; flex: none; border-radius: 50%; position: relative;
  border: 1.5px solid var(--line);
}
.er-prog-item.is-done .er-prog-ico { background: var(--ok); border-color: var(--ok); }
.er-prog-item.is-done .er-prog-ico::after {
  content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.er-prog-item.is-current .er-prog-ico { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(150,26,31,.14); }
.er-prog-item.is-current { font-weight: 700; }
.er-prog-item.is-locked { color: var(--muted2); }
.er-prog-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-prog-time { font-size: 12.5px; color: var(--gold2); font-weight: 700; font-variant-numeric: tabular-nums; }
.er-prog-num { font-size: 12px; color: var(--muted2); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

/* glava panela z desnim stevcem (Napredek) */
.er-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.er-panel-head .er-panel-title { margin: 0; }
.er-panel-timer { display: inline-flex; align-items: center; gap: 5px; color: var(--gold2); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.er-panel-timer .er-clock { width: 16px; height: 16px; }

/* panel: Vec (meni) */
.er-more-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid rgba(20,12,12,.07);
}
.er-more-row:last-child { border-bottom: 0; }
.er-more-label { font-size: 15px; color: var(--ink); font-weight: 600; }
.er-more-seg { display: flex; gap: 4px; background: rgba(20,12,12,.05); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.er-more-seg button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
  color: var(--muted); padding: 5px 12px; border-radius: 999px;
}
.er-more-seg button.is-active { background: #fff; color: var(--gold2); box-shadow: 0 1px 4px rgba(0,0,0,.14); }

.er-panel-title { font-family: Georgia, serif; font-size: 20px; margin: 0 0 4px; font-weight: 600; }

.er-demo-badge {
  display: inline-block; background: rgba(226,69,76,.14); color: var(--gold);
  border: 1px solid var(--line); border-radius: 30px; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px; margin: 0 auto 14px; font-weight: 700;
}
.er-game-body .er-demo-badge { display: table; }

/* =====================================================================
   SCENA: zakljucek
   ===================================================================== */
.er-trophy { width: 84px; height: 84px; margin: 0 auto 18px; position: relative; }
.er-trophy::before {
  content: ""; position: absolute; left: 18px; top: 8px; width: 48px; height: 42px;
  background: linear-gradient(180deg, #c0323a, var(--gold2)); border-radius: 0 0 26px 26px;
  box-shadow: 0 0 26px rgba(226,69,76,.5);
}
.er-trophy::after {
  content: ""; position: absolute; left: 36px; bottom: 6px; width: 12px; height: 22px;
  background: var(--gold2); border-radius: 3px;
  box-shadow: -16px 30px 0 -4px var(--gold2), 16px 30px 0 -4px var(--gold2), 0 12px 0 0 var(--gold2);
}
.er-end-text { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 4px 0 22px; white-space: pre-line; }
.er-end-scene .er-btn { max-width: 240px; margin: 0 auto; }

/* =====================================================================
   Modali
   ===================================================================== */
.er-modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(5,7,15,.72); backdrop-filter: blur(4px);
  animation: erFade .25s ease;
}
.er-modal-overlay[hidden] { display: none; }
@keyframes erFade { from { opacity: 0; } to { opacity: 1; } }
.er-modal {
  width: 100%; max-width: 380px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 22px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: erPop .3s var(--ease);
}
@keyframes erPop { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.er-modal-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(20,12,12,.06); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.er-modal-x:hover { background: rgba(20,12,12,.12); }
.er-modal-h { font-family: Georgia, serif; font-size: 20px; margin: 4px 40px 12px 0; }
.er-modal-p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 20px; }

.er-google-modal { max-width: 360px; }
.er-google-head { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); margin: 2px 0 18px; font-weight: 600; }
.er-google-acc {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  margin-bottom: 10px; color: var(--ink); font: inherit; transition: background .2s;
}
.er-google-acc:hover { background: var(--panel2); }
.er-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--c, #777);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 17px;
}
.er-acc-meta { display: flex; flex-direction: column; line-height: 1.3; }
.er-acc-meta b { font-size: 15px; font-weight: 600; }
.er-acc-meta small { color: var(--muted); font-size: 13px; }

/* =====================================================================
   verify.php ikoni
   ===================================================================== */
.er-verify-ok, .er-verify-bad { width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; position: relative; }
.er-verify-ok { background: rgba(70,211,154,.14); border: 1px solid rgba(70,211,154,.5); }
.er-verify-ok::after { content: ""; position: absolute; left: 28px; top: 20px; width: 14px; height: 28px; border: solid var(--ok); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.er-verify-bad { background: rgba(255,111,111,.12); border: 1px solid rgba(255,111,111,.5); }
.er-verify-bad::before, .er-verify-bad::after { content: ""; position: absolute; left: 38px; top: 22px; width: 4px; height: 34px; background: var(--err); border-radius: 3px; }
.er-verify-bad::before { transform: rotate(45deg); } .er-verify-bad::after { transform: rotate(-45deg); }

.er-empty .er-h2 { margin-top: 8px; }

/* DEV vstop (samo razvoj) - hiter John Doe brez maila */
.er-dev {
  position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  background: #1f2330; color: #fff; border: 0; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .3px; padding: 9px 13px;
  opacity: .82; box-shadow: 0 5px 16px rgba(0,0,0,.3);
  transition: opacity .2s;
}
.er-dev:hover { opacity: 1; }
.er-app[data-scene="game"] .er-dev,
.er-app[data-scene="end"] .er-dev { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .1ms !important; }
}

/* =====================================================================
   NALOGE - prave interakcije (mobile-first): slika, vpis, izbira simbola,
   zaporedje, kamera, feedback, tockovanje, namigi, gumb Simuliraj.
   ===================================================================== */

/* glava naloge: sprozilec + element + tocke */
.er-step-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.er-step-pts { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--gold2); background: rgba(150,26,31,.08); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.er-el { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: #fff; }
.er-el-voda { background: var(--water); } .er-el-ogenj { background: var(--fire); }
.er-el-zemlja { background: var(--earth); } .er-el-zrak { background: #7f93b8; }

/* foto prostora */
.er-task-photo { margin: 2px 0 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); box-shadow: 0 8px 24px rgba(20,12,12,.08); }
.er-task-photo img { display: block; width: 100%; height: auto; max-height: 42vh; object-fit: cover; }

/* vpis odgovora */
.er-answer { margin: 6px 0 4px; }
.er-answer-input { width: 100%; text-align: center; font-size: 20px; font-weight: 600; letter-spacing: .04em;
  padding: 15px 16px; min-height: 56px; border-radius: 14px; }
.er-inter-hint { margin: 2px 0 12px; font-size: 14px; color: var(--muted); }

/* simboli elementov (SVG) */
.er-sym path { fill: none; stroke: var(--sc); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.er-sym circle { fill: var(--sc); }

/* izbira simbola (puzzle) */
.er-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.er-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  padding: 16px 10px; min-height: 96px; border-radius: 16px; background: #fff; border: 2px solid var(--line);
  color: var(--ink); font-weight: 800; font-size: 13px; letter-spacing: .06em; transition: all .18s var(--ease); }
.er-choice:active { transform: scale(.97); }
.er-choice.is-sel { border-color: var(--gold2); background: rgba(150,26,31,.06); box-shadow: 0 6px 18px rgba(150,26,31,.14); }

/* zaporedje (sequence) */
.er-seq-slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; padding: 10px; margin-bottom: 12px;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--panel); align-items: center; }
.er-seq-slot { font-weight: 800; font-size: 14px; color: var(--gold2); background: rgba(150,26,31,.07);
  padding: 6px 12px; border-radius: 999px; }
.er-seq-empty { color: var(--muted2); font-size: 20px; letter-spacing: .1em; padding-left: 6px; }
.er-seq-pool { display: flex; flex-wrap: wrap; gap: 10px; }
.er-seq-chip { cursor: pointer; font-weight: 800; font-size: 15px; padding: 12px 18px; min-height: 48px;
  border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--ink); transition: all .16s var(--ease); }
.er-seq-chip:active { transform: scale(.96); }
.er-seq-chip.is-used { opacity: .32; pointer-events: none; }
.er-seq-reset { display: inline-block; margin-top: 10px; }

/* kamera (ZIVA slika + potrditev) */
.er-camera { position: relative; margin: 4px 0 6px; border-radius: var(--r); overflow: hidden;
  background: #0c0f16; aspect-ratio: 3 / 4; max-height: 44vh; min-height: 200px; }
.er-camera-fallback { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .35s var(--ease); }
.er-camera-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0c0f16;
  opacity: 0; transition: opacity .4s var(--ease); }
.er-camera.er-cam-live .er-camera-vid { opacity: 1; }             /* ziva kamera prekrije fotografijo */
.er-camera.er-cam-live .er-camera-fallback { opacity: 0; }
/* voglji okvirja (prekrivalo nad sliko) */
.er-camera-frame { position: absolute; inset: 0; pointer-events: none; }
.er-corner { position: absolute; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.92); filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.er-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.er-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.er-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.er-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.er-camera-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 84%;
  background: rgba(0,0,0,.52); color: #fff; padding: 8px 14px; border-radius: 20px; font-size: 13px; line-height: 1.35;
  text-align: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* dokler ziva kamera ni pripravljena (ali ni na voljo), fotografija subtilno "diha" */
.er-camera:not(.er-cam-live) .er-camera-fallback { animation: erPhotoFloat 12s ease-in-out infinite; }

/* feedback (pravilno / napacno) */
.er-feedback { min-height: 20px; margin: 12px 0 0; font-size: 15px; font-weight: 700; text-align: center; }
.er-feedback.is-ok { color: var(--ok); } .er-feedback.is-bad { color: var(--err); }
.er-shake { animation: erShake .4s var(--ease); }
@keyframes erShake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)} 50%{transform:translateX(-6px)} }

/* gumb Preveri je er-btn-primary; gumb Simuliraj = testni (crtkan, nevpadljiv) */
.er-solve { width: 100%; margin-top: 14px; }
.er-btn-sim { width: 100%; margin-top: 10px; background: transparent; color: var(--muted);
  border: 1px dashed var(--muted2); font-size: 13px; font-weight: 600; padding: 11px; }
.er-btn-sim:active { background: var(--panel); }

/* zgodba */
.er-story-toggle { display: inline-block; margin-top: 12px; }
.er-story { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted);
  border-left: 3px solid var(--gold); padding: 6px 0 6px 12px; background: var(--panel); border-radius: 0 8px 8px 0; }

/* namigi (postopno) */
.er-hint-item { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.er-hint-n { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--gold2); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.er-hint-note { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.er-hint-more { width: 100%; }

/* tocke v glavi + na koncu */
.er-game-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--gold2); }
.er-game-score .er-star { width: 16px; height: 16px; color: #e6b800; }
.er-end-score { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 16px; font-weight: 800; font-size: 20px; color: var(--gold2); }
.er-end-score .er-star { width: 24px; height: 24px; color: #e6b800; }

/* UVRSTITEV (konec igre): medalja + "N. mesto med M raziskovalci" */
.er-end-rank { margin: 2px auto 20px; max-width: 340px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.er-end-rank.is-in { opacity: 1; transform: none; }
.er-rank-label { display: block; font: 700 11px/1 Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.er-rank-medal { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; }
.er-rank-disc { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 34%, #f4d072, #c9a227 62%, #a8841c);
  box-shadow: 0 8px 22px rgba(160,120,20,.42), inset 0 2px 4px rgba(255,255,255,.55), inset 0 -6px 12px rgba(120,86,10,.4);
  border: 3px solid rgba(255,255,255,.5); }
.er-rank-num { font: 800 34px/1 Georgia, serif; color: #4a3400; }
.er-rank-of { font: 700 12px/1 Arial, sans-serif; color: rgba(74,52,0,.66); margin-top: 2px; }
.er-rank-ribbon { position: absolute; left: 50%; bottom: -8px; width: 0; height: 0; transform: translateX(-50%);
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 20px solid #961a1f; z-index: -1; }
.er-rank-medal.is-m2 .er-rank-disc { background: radial-gradient(circle at 50% 34%, #f4f6f8, #c3ccd5 60%, #9aa4ae); }
.er-rank-medal.is-m2 .er-rank-num, .er-rank-medal.is-m2 .er-rank-of { color: #37414a; }
.er-rank-medal.is-m3 .er-rank-disc { background: radial-gradient(circle at 50% 34%, #eab27f, #c07a44 60%, #9c5c30); }
.er-rank-medal.is-m3 .er-rank-num, .er-rank-medal.is-m3 .er-rank-of { color: #3f2410; }
.er-rank-medal.is-mx .er-rank-disc { background: radial-gradient(circle at 50% 34%, #fff, #e7ddd0 60%, #cdbfae); border-color: rgba(150,26,31,.28); }
.er-rank-medal.is-mx .er-rank-num, .er-rank-medal.is-mx .er-rank-of { color: #7a1418; }
.er-rank-line { font: 600 15px/1.5 Arial, sans-serif; color: var(--ink); margin: 0; }
.er-rank-top { font: 800 13.5px/1.4 Arial, sans-serif; color: #961a1f; margin: 7px 0 0; }

/* mobilno: izbire lahko ostanejo 2 stolpca; le zelo ozko -> vecji tap */
@media (max-width: 360px) { .er-choice { min-height: 88px; } .er-answer-input { font-size: 18px; } }

/* izbira: slikovne moznosti */
.er-choice-img { width: 100%; height: 90px; border-radius: 10px; background-size: cover; background-position: center; display: block; }
.er-choice-has-img { padding: 8px; min-height: 0; }
.er-choice-has-img span { font-size: 12px; margin-top: 4px; }

/* puzzle - premescanje ploscic (tapni dve za zamenjavo) */
.er-puzzle {
  display: grid; grid-template-columns: repeat(var(--pc, 3), 1fr); gap: 4px;
  width: 100%; max-width: 340px; margin: 4px auto 2px; aspect-ratio: 1 / 1;
  border-radius: var(--r); overflow: hidden; background: var(--panel);
  box-shadow: 0 10px 30px rgba(20,12,12,.1);
}
.er-ptile {
  border: 0; padding: 0; cursor: pointer; background-repeat: no-repeat; border-radius: 5px;
  aspect-ratio: 1 / 1; transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.er-ptile.is-sel { box-shadow: 0 0 0 3px var(--gold2); transform: scale(.92); position: relative; z-index: 1; }

/* input kot "koda" - vrsta kvadratkov (escape-room kljucavnica) */
.er-code { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.er-code-box {
  width: 54px; height: 64px; text-align: center; font-size: 27px; font-weight: 800;
  font-family: Georgia, serif; color: var(--ink); background: #fff; caret-color: var(--gold2);
  border: 2px solid var(--line); border-radius: 13px; text-transform: uppercase; padding: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease);
}
.er-code-box:focus { outline: none; border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(150,26,31,.14); transform: translateY(-1px); }
@media (max-width: 400px) { .er-code-box { width: 46px; height: 58px; font-size: 23px; gap: 8px; } }

/* =====================================================================
   APP-LIKE nadgradnja: sim-ikona, skrita spodnja vrstica + FAB, prehod, vstop
   ===================================================================== */

/* Simuliraj = majhna ikona v glavi (samo dev/test) */
.er-sim-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(31,157,107,.4); background: rgba(31,157,107,.10); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; margin-left: 3px;
  transition: transform .12s var(--ease), background .2s;
}
.er-sim-icon svg { width: 17px; height: 17px; }
.er-sim-icon:hover { background: rgba(31,157,107,.22); }
.er-sim-icon:active { transform: scale(.88); }

/* telo naj ima prostor za plavajoco ikono spodaj */
.er-game-scene .er-game-body { padding-bottom: 96px; }

/* spodnja vrstica = SKRITA (zdrsne od spodaj); odpre jo FAB */
.er-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.er-tabbar.is-open { transform: translateY(0); }

/* plavajoca ikona (FAB) spodaj desno - odpre/zapre meni */
.er-menu-fab {
  position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(180deg, #b8333a 0%, var(--gold2) 100%); color: #fff;
  box-shadow: 0 10px 26px rgba(150,26,31,.42), inset 0 1px 0 rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease), bottom .3s var(--ease), box-shadow .2s;
}
.er-menu-fab:active { transform: scale(.92); }
.er-menu-fab.is-open { bottom: calc(82px + env(safe-area-inset-bottom)); }
.er-fab-ico { width: 26px; height: 26px; position: absolute; transition: opacity .2s, transform .28s var(--ease); }
.er-fab-close { opacity: 0; transform: rotate(-90deg); }
.er-menu-fab.is-open .er-fab-menu { opacity: 0; transform: rotate(90deg); }
.er-menu-fab.is-open .er-fab-close { opacity: 1; transform: rotate(0); }
/* diskreten pulz, da uporabnik opazi gumb (ugasne, ko je odprt) */
.er-menu-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(150,26,31,.5); animation: erFabPulse 2.6s ease-out infinite; }
.er-menu-fab.is-open::after { animation: none; }
@keyframes erFabPulse { 0% { box-shadow: 0 0 0 0 rgba(150,26,31,.45); } 70% { box-shadow: 0 0 0 15px rgba(150,26,31,0); } 100% { box-shadow: 0 0 0 0 rgba(150,26,31,0); } }

/* FAB namigov (levo spodaj) - namigi vedno na dosegu, zrcalno meniju */
.er-hint-fab {
  position: absolute; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(180deg, #fff 0%, #fdf6ec 100%); color: #b8333a;
  box-shadow: 0 8px 22px rgba(30,20,16,.28), inset 0 0 0 1.5px rgba(184,51,58,.28);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease), opacity .25s var(--ease);
}
.er-hint-fab svg { width: 25px; height: 25px; }
.er-hint-fab:active { transform: scale(.92); }
.er-hint-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.er-hint-fab.er-hint-fab-off { color: #b7a9a0; box-shadow: 0 8px 22px rgba(30,20,16,.2), inset 0 0 0 1.5px rgba(120,110,100,.22); }
.er-hint-fab-badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: #b8333a; color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* vstopni countdown (Jon/Jane Doe / obrazec -> igra) */
.er-enter { position: absolute; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 30%, #2a1416 0%, #140a0c 60%, #0a0506 100%);
  opacity: 0; transition: opacity .3s var(--ease); }
.er-enter.is-on { opacity: 1; }
.er-enter-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.er-enter-ring { position: absolute; top: -14px; left: 50%; width: 116px; height: 116px; margin-left: -58px; border-radius: 50%;
  border: 2px solid rgba(240,193,75,.28); border-top-color: #f0c14b; animation: erSpin 1s linear infinite; }
.er-enter-num { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 46px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #b8333a, #961a1f); box-shadow: 0 12px 30px rgba(150,26,31,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.er-enter-num.is-pop { animation: erEnterPop .5s var(--ease); }
.er-enter-num.is-go { background: linear-gradient(180deg, #3aa657, #1f7d3a); }
.er-enter-txt { color: rgba(255,255,255,.9); font-size: 15px; letter-spacing: .04em; }
@keyframes erSpin { to { transform: rotate(360deg); } }
@keyframes erEnterPop { 0% { transform: scale(.5); opacity: .2; } 55% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* uvodni pozdrav: pas stirih simbolov v znacki */
.er-start-badge { width: auto; padding: 0 14px; border-radius: 22px; gap: 3px; }
.er-start-badge .er-sym { width: 22px; height: 22px; }

/* prehodna animacija med koraki */
.er-transition {
  position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; visibility: hidden; background: #fff;
}
.er-transition.is-playing { visibility: visible; animation: erTransFade .56s var(--ease) forwards; }
.er-transition-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; }
.er-transition.is-playing .er-transition-inner { animation: erTransPop .56s var(--ease) forwards; }
.er-transition-sym .er-sym { width: 92px; height: 92px; }
.er-transition-name { font-family: Georgia, serif; font-size: 21px; font-weight: 700; color: var(--ink); text-align: center; padding: 0 24px; }
.er-transition[data-el="voda"]   .er-transition-name { color: var(--water); }
.er-transition[data-el="ogenj"]  .er-transition-name { color: var(--fire); }
.er-transition[data-el="zemlja"] .er-transition-name { color: var(--earth); }
.er-transition[data-el="zrak"]   .er-transition-name { color: #6f83a8; }
.er-transition[data-el="fin"]    .er-transition-name { color: var(--gold2); }
@keyframes erTransFade { 0% { opacity: 0; } 22% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes erTransPop { 0% { transform: scale(.7); opacity: 0; } 28% { opacity: 1; } 55% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.06); opacity: 0; } }

/* vstop kartice (subtilno) */
.er-step-card { animation: erCardIn .4s var(--ease); }
@keyframes erCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Simuliraj / preskoči = VIDEN utripajoč pill zgoraj desno (samo dev/test), ne odreže se */
.er-sim-icon {
  position: absolute; top: calc(52px + env(safe-area-inset-top)); right: 12px; z-index: 46;
  width: auto; height: auto; margin: 0; padding: 8px 13px 8px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--gold); background: #fff; color: var(--gold2);
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
  box-shadow: 0 6px 18px rgba(150,26,31,.22); animation: erFabPulse 2.8s ease-out infinite;
}
.er-sim-icon svg { width: 15px; height: 15px; }
.er-sim-icon:hover { background: #fff5f4; }
.er-sim-icon:active { transform: scale(.94); animation: none; }

/* =====================================================================
   CELOZASLONSKI TEMATSKI PREHOD po elementu (WOW "igra" moment)
   ===================================================================== */
.er-transition.is-playing { visibility: visible; animation: erTransFade .95s var(--ease) forwards; }
.er-transition.is-playing .er-transition-inner { animation: erTransPop .95s var(--ease) forwards; }
@keyframes erTransFade { 0% { opacity: 0; } 16% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes erTransPop { 0% { transform: scale(.72); opacity: 0; } 24% { opacity: 1; } 55% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }

/* animirana tematska podlaga (element) */
.er-transition::before { content: ""; position: absolute; inset: 0; opacity: 0; }
.er-transition.is-playing::before { animation: erTransBgIn .95s var(--ease) forwards; }
@keyframes erTransBgIn { 0% { opacity: 0; } 18% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; } }

.er-transition[data-el="voda"]::before {
  background:
    repeating-linear-gradient(94deg, rgba(255,255,255,0) 0 44px, rgba(255,255,255,.22) 44px 52px),
    linear-gradient(180deg, #6fb7e6 0%, #2f7fc4 100%);
  background-size: 130px 100%, 100% 100%;
  animation: erTransBgIn .95s var(--ease) forwards, erWater 1.3s linear infinite;
}
@keyframes erWater { to { background-position: -130px 0, 0 0; } }

.er-transition[data-el="ogenj"]::before {
  background: radial-gradient(95% 75% at 50% 108%, #ffd591 0%, #f0803a 28%, #b8371a 62%, #5a1608 100%);
  animation: erTransBgIn .95s var(--ease) forwards, erFlicker .16s ease-in-out infinite alternate;
}
@keyframes erFlicker { from { filter: brightness(1); } to { filter: brightness(1.2); } }

.er-transition[data-el="zemlja"]::before {
  background: radial-gradient(105% 82% at 50% 12%, #ddc79c 0%, #a9884f 52%, #6d5327 100%);
  animation: erTransBgIn .95s var(--ease) forwards;
}

.er-transition[data-el="zrak"]::before {
  background:
    radial-gradient(38% 26% at 22% 40%, rgba(255,255,255,.95), transparent 62%),
    radial-gradient(44% 30% at 72% 58%, rgba(255,255,255,.9), transparent 62%),
    linear-gradient(180deg, #9fbbdc 0%, #5f7ba8 100%);
  background-size: 220% 100%, 220% 100%, 100% 100%;
  animation: erTransBgIn .95s var(--ease) forwards, erClouds 6s linear infinite;
}
@keyframes erClouds { to { background-position: 80px 0, -80px 0, 0 0; } }

.er-transition[data-el="fin"]::before {
  background: radial-gradient(72% 62% at 50% 45%, #fff3c4 0%, #f0c14b 38%, #b8863b 78%, #7a5a24 100%);
  animation: erTransBgIn .95s var(--ease) forwards, erFlicker .3s ease-in-out infinite alternate;
}

/* simbol na beli kroglici (bere se na vsaki podlagi) + ime v beli s senco */
.er-transition-sym { width: 128px; height: 128px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 50px rgba(0,0,0,.28); }
.er-transition-sym .er-sym { width: 78px; height: 78px; }
.er-transition-name { color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.4); font-size: 24px; }

/* =====================================================================
   SPLASH: animirano zgodovinsko ozadje (grad) za logotipom - WOW ob nalaganju
   ===================================================================== */
.er-splash-bg { background: #fff; overflow: hidden; }
.er-splash-bg::before {
  content: ""; position: absolute; inset: -8%;
  background: url("../../0admin/sites/igra/uploads/er_splash.jpg?v=2") center 30% / cover no-repeat;
  animation: erKenBurns 20s ease-in-out infinite alternate; will-change: transform;
}
.er-splash-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(118% 92% at 50% 40%, rgba(255,255,255,.46) 0%, rgba(255,255,255,.8) 60%, rgba(255,255,255,.97) 100%);
}
@keyframes erKenBurns { from { transform: scale(1.05) translateY(0); } to { transform: scale(1.19) translateY(-2%); } }

/* =====================================================================
   ROADMAP (Napredek kot potovanje/zemljevid)
   ===================================================================== */
.er-road { position: relative; padding: 4px 0 2px 4px; }
.er-road-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.er-road-item::before { content: ""; position: absolute; left: 18.5px; top: -6px; bottom: -6px; width: 3px; background: var(--line); z-index: 0; }
.er-road-item:first-child::before { top: 50%; }
.er-road-item:last-child::before { bottom: 50%; }
.er-road-node { position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  background: #fff; border: 3px solid var(--line); color: var(--muted2); }
.er-road-node svg { width: 20px; height: 20px; }
.er-road-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.er-road-name { font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-road-el { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted2); }
.er-road-time { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.er-road-item.is-done .er-road-node { background: var(--ok); border-color: var(--ok); color: #fff; }
.er-road-item.is-done::before { background: var(--ok); }
.er-road-item.is-current .er-road-node { border-color: var(--gold2); color: var(--gold2); animation: erRoadPulse 1.8s ease-out infinite; }
.er-road-item.is-current .er-road-name { color: var(--gold2); }
@keyframes erRoadPulse { 0% { box-shadow: 0 0 0 0 rgba(150,26,31,.4); } 70% { box-shadow: 0 0 0 10px rgba(150,26,31,0); } 100% { box-shadow: 0 0 0 0 rgba(150,26,31,0); } }
.er-road-item.is-locked .er-road-node { opacity: .5; }
.er-road-item.is-locked .er-road-name { color: var(--muted2); }

/* =====================================================================
   ZANIMIVOST ("Ali si vedel?") - premium temni toast z zlatim naslovom
   ===================================================================== */
.er-fact-toast {
  position: absolute; left: 14px; right: 14px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 55;
  background: linear-gradient(180deg, #2c1618, #1a0d0f); color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 13px 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 4px; max-width: 520px; margin: 0 auto;
  transform: translateY(150%); opacity: 0; transition: transform .42s var(--ease), opacity .42s var(--ease);
}
.er-fact-toast.is-in { transform: translateY(0); opacity: 1; }
.er-fact-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f0c14b; }
.er-fact-text { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.92); }

/* =====================================================================
   SPLASH: slika gradu se POLNI od spodaj navzgor (fill) + faint ghost
   ===================================================================== */
.er-splash-bg::before { opacity: .13; filter: grayscale(1); }
.er-splash-bg-fill {
  background: url("../../0admin/sites/igra/uploads/er_splash.jpg?v=2") center 30% / cover no-repeat;
  opacity: .62; clip-path: inset(100% 0 0 0);
}
.er-splash.is-bgfill .er-splash-bg-fill { animation: erFill 2.5s var(--ease) .15s forwards; }
.er-splash-bg::after {
  background: radial-gradient(72% 56% at 50% 42%, rgba(255,255,255,.86) 0%, rgba(255,255,255,.55) 52%, rgba(255,255,255,.32) 100%);
}

/* slick vstop kartice = zdrs z desne (občutek premika naprej po poti) */
@keyframes erCardIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   TREASURE MAP (Napredek + prehod med koraki)
   ===================================================================== */
.er-map { width: 100%; display: flex; justify-content: center; }
.er-map-svg { display: block; overflow: visible; }
.er-map-full {
  background: radial-gradient(120% 80% at 50% 0%, #f8f0dd, #efe2c4);
  border: 1px solid rgba(150,110,50,.28); border-radius: 16px; padding: 16px 6px; margin-top: 4px;
  box-shadow: inset 0 2px 22px rgba(120,90,40,.12);
}
.er-map-full .er-map-svg { width: 100%; max-width: 330px; height: auto; }

.er-map-trail { stroke: rgba(110,80,40,.4); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.er-map-trail-done { stroke: var(--gold2); stroke-width: 4.5; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.er-map-core { fill: #fff; stroke: rgba(110,80,40,.45); stroke-width: 2.5; }
.er-map-num { fill: var(--muted); font: 800 13px system-ui, sans-serif; }
.er-map-check { stroke: #fff; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.er-map-dot.is-done .er-map-core { fill: var(--dc); stroke: var(--dc); }
.er-map-dot.is-current .er-map-core { fill: #fff; stroke: var(--dc); stroke-width: 3.5; animation: erMapPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.er-map-dot.is-current .er-map-num { fill: var(--dc); }
@keyframes erMapPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.er-map-dot.is-locked .er-map-core { opacity: .5; }
.er-map-dot.is-locked .er-map-num { opacity: .5; }
.er-map-pin { fill: var(--gold2); stroke: #fff; stroke-width: 1.5; }
.er-map-pin-dot { fill: #fff; }
.er-map-traveler { filter: drop-shadow(0 3px 4px rgba(0,0,0,.32)); }

/* prehod: zemljevid na pergamentni kartici, ~celozaslonsko, ~1.35s */
.er-transition.is-playing { visibility: visible; animation: erTransFade 1.35s var(--ease) forwards; }
.er-transition.is-playing .er-transition-inner { animation: erMapIn 1.35s var(--ease) forwards; }
@keyframes erTransFade { 0% { opacity: 0; } 9% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes erMapIn { 0% { transform: scale(.86); opacity: 0; } 12% { opacity: 1; } 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.02); opacity: 0; } }
.er-map-trans { display: block; width: -moz-fit-content; width: fit-content; margin: 0 auto;
  background: rgba(249,242,226,.96); border-radius: 22px; padding: 16px 22px; box-shadow: 0 22px 66px rgba(0,0,0,.34); }
.er-map-trans .er-map-svg { height: 62vh; max-height: 540px; width: auto; }
.er-transition-name { color: #7a5a24 !important; text-shadow: none; font-size: 20px; font-weight: 800; margin-top: 12px; }

/* izbira: BESEDILNE moznosti = ozek stolpec manjsih gumbov (ne veliki kvadrati) */
.er-choices-list { grid-template-columns: 1fr; gap: 8px; }
.er-choice-text { min-height: 0; padding: 14px 16px; flex-direction: row; }
.er-choice-text .er-choice-txt { font-size: 15.5px; font-weight: 700; color: var(--ink); }
/* SIMBOL brez imena = kompaktna kartica, simbol centriran (prava prepoznava) */
.er-choice-sym { min-height: 90px; }

/* SPLASH: grad se "barva" (sivo -> polna barva + rahel zoom), drugacen mehanizem kot logo */
.er-splash-bg::before { display: none; }
.er-splash-bg-fill {
  background: url("../../0admin/sites/igra/uploads/er_splash.jpg?v=2") center 32% / cover no-repeat;
  clip-path: none; opacity: 1;
  filter: grayscale(1) brightness(1.22) contrast(.82) sepia(.15); transform: scale(1.14);
}
.er-splash.is-bgfill .er-splash-bg-fill { animation: erCastlePaint 2.8s var(--ease) .1s forwards; }
@keyframes erCastlePaint {
  0%   { filter: grayscale(1) brightness(1.25) contrast(.8) sepia(.22); transform: scale(1.14); }
  60%  { filter: grayscale(.32) brightness(1.06) contrast(.95) sepia(.06); }
  100% { filter: grayscale(0) brightness(1) contrast(1) sepia(0); transform: scale(1.04); }
}
.er-splash-bg::after { background: radial-gradient(76% 58% at 50% 42%, rgba(255,255,255,.82) 0%, rgba(255,255,255,.5) 52%, rgba(255,255,255,.24) 100%); }

/* prehod-map malenkost manjsi */
.er-map-trans .er-map-svg { height: 56vh; max-height: 500px; }

/* slika naloge nezno "diha"/lebdi (strip oживi) */
.er-task-photo { overflow: hidden; }
.er-task-photo img { animation: erPhotoFloat 8s ease-in-out infinite; }
@keyframes erPhotoFloat { 0%, 100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.055) translateY(-5px); } }

/* =====================================================================
   AFTER-BRIEF: filmska "muzejska tabla" po reseni nalogi (nauk/odkritje)
   ===================================================================== */
.er-brief { position: absolute; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 22px;
  background: rgba(18,9,11,.52); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .38s var(--ease); }
.er-brief.is-in { opacity: 1; }
.er-brief-card { width: 100%; max-width: 380px; background: linear-gradient(180deg, #2b1719, #17090b); color: #fff; position: relative; overflow: hidden;
  border: 1px solid rgba(240,193,75,.28); border-radius: 22px; padding: 26px 22px 18px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); transform: translateY(18px) scale(.95); transition: transform .42s var(--ease); }
.er-brief.is-in .er-brief-card { transform: none; }
.er-brief-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bc, #f0c14b); }
.er-brief[data-el="voda"] .er-brief-card { --bc: #4aa6e0; } .er-brief[data-el="ogenj"] .er-brief-card { --bc: #ec7a3c; }
.er-brief[data-el="zemlja"] .er-brief-card { --bc: #b08a4e; } .er-brief[data-el="zrak"] .er-brief-card { --bc: #7f93b8; }
.er-brief-badge { width: 66px; height: 66px; margin: 4px auto 12px; border-radius: 50%; background: rgba(255,255,255,.96);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.er-brief-badge .er-sym { width: 40px; height: 40px; } .er-brief-badge .er-star { width: 40px; height: 40px; color: #f0c14b; }
.er-brief-tag { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #f0c14b; }
.er-brief-title { font-family: Georgia, serif; font-size: 21px; font-weight: 700; margin: 6px 0 10px; color: #fff; }
.er-brief-text { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.9); margin: 0 0 20px; }
.er-brief-next { width: auto; min-width: 150px; margin: 0 auto; }
.er-brief-bar { height: 3px; background: rgba(255,255,255,.14); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.er-brief-bar i { display: block; height: 100%; width: 100%; background: var(--bc, #f0c14b); transform-origin: left; animation: erBriefBar 5.6s linear forwards; }
@keyframes erBriefBar { to { transform: scaleX(0); } }

/* =====================================================================
   SPLASH: vignette + drseci zarni simboli elementov (bolj filmsko)
   ===================================================================== */
.er-splash::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 54%, rgba(28,14,16,.32) 100%); }
.er-splash-elems { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.er-splash-el { position: absolute; opacity: 0; animation: erElIn 1.1s var(--ease) forwards, erElDrift 9s ease-in-out infinite; }
.er-splash-el .er-sym { width: 46px; height: 46px; filter: drop-shadow(0 3px 12px rgba(0,0,0,.18)); }
.er-splash-el.p1 { top: 15%; left: 11%; animation-delay: .3s, .3s; }
.er-splash-el.p2 { top: 19%; right: 11%; animation-delay: .6s, .6s; }
.er-splash-el.p3 { bottom: 20%; left: 13%; animation-delay: .9s, .9s; }
.er-splash-el.p4 { bottom: 15%; right: 13%; animation-delay: 1.2s, 1.2s; }
@keyframes erElIn { to { opacity: .82; } }
@keyframes erElDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* kompas na zemljevidu */
.er-map-comp-ring { fill: none; stroke: rgba(110,80,40,.5); stroke-width: 2; }
.er-map-comp-needle { fill: var(--gold2); }
.er-map-comp-n { fill: rgba(110,80,40,.7); font: 800 10px system-ui, sans-serif; }

/* SPLASH refinement: grad bolj ZIVO barvit, kino vignette, mehak sij za logotipom */
.er-splash-bg::after {
  background:
    radial-gradient(70% 46% at 50% 42%, rgba(255,255,255,.62) 0%, rgba(255,255,255,.18) 42%, transparent 62%),
    radial-gradient(125% 105% at 50% 44%, transparent 46%, rgba(26,13,15,.42) 100%);
}
.er-splash-inner { position: relative; }
.er-splash-inner::before {
  content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 128%; height: 62%; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 58% at 50% 50%, rgba(255,255,255,.72) 0%, transparent 72%);
}

/* =====================================================================
   UVOD PRENOVA: pocasnejsi logo, udaren naslov, dramaticno ozadje, DEV skrit, zvok prompt
   ===================================================================== */
/* 1) logo se polni pocasneje; naslov bolj udaren */
.er-logo-fill { animation: erFillLR 3.5s var(--ease) .3s forwards !important; }
.er-splash-title { font-family: Georgia, serif; font-weight: 800; font-size: clamp(23px, 6.4vw, 34px); letter-spacing: .3px; color: var(--gold2); text-shadow: 0 3px 20px rgba(0,0,0,.22); line-height: 1.15; padding: 0 18px; }
.er-splash.is-named .er-splash-title { animation: erTitlePunch .8s var(--ease); }
@keyframes erTitlePunch { 0% { opacity: 0; transform: translateY(12px) scale(.92); letter-spacing: 5px; } 100% { opacity: 1; transform: none; letter-spacing: .3px; } }

/* 2) dramaticno, temnejse "kaoticno" ozadje gradu (grad v stiski, ki ga resis) */
@keyframes erCastlePaint {
  0%   { filter: grayscale(1) brightness(1.08) contrast(.9) sepia(.22); transform: scale(1.17); }
  55%  { filter: grayscale(.28) brightness(.84) contrast(1.22) saturate(1.05) sepia(.08); }
  100% { filter: grayscale(0) brightness(.76) contrast(1.34) saturate(1.22) sepia(.04); transform: scale(1.06); }
}
.er-splash-bg::after {
  background:
    radial-gradient(64% 42% at 50% 40%, rgba(255,255,255,.5) 0%, rgba(255,255,255,.1) 40%, transparent 60%),
    radial-gradient(130% 112% at 50% 36%, transparent 30%, rgba(70,10,14,.52) 74%, rgba(18,3,5,.82) 100%);
}

/* 3) DEV gumb skrit na splashu/uvodu (pokaze se sele od obrazca naprej) */
.er-app[data-scene="splash"] .er-dev, .er-app[data-scene="intro"] .er-dev { display: none !important; }

/* 11) "Tapni za zvok" poziv na splashu */
.er-splash-sound { position: absolute; left: 50%; bottom: 11%; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: rgba(150,26,31,.94); color: #fff; border: 0; font-family: inherit; font-size: 13px; font-weight: 800;
  box-shadow: 0 10px 28px rgba(150,26,31,.45); animation: erSoundPulse 1.5s ease-in-out infinite; }
.er-splash-sound svg { width: 18px; height: 18px; }
.er-splash-sound.is-hidden { display: none; }
@keyframes erSoundPulse { 0%,100% { transform: translateX(-50%) scale(1); box-shadow: 0 10px 28px rgba(150,26,31,.45); } 50% { transform: translateX(-50%) scale(1.07); box-shadow: 0 12px 34px rgba(150,26,31,.6); } }

/* #10 dev gumb "na zadnjo" (levo zgoraj; viden le na nalogah 2-11) */
.er-skip-last { position: absolute; top: calc(52px + env(safe-area-inset-top)); left: 12px; z-index: 46;
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px 8px 10px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed var(--muted2); background: #fff; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 800; }
.er-skip-last svg { width: 14px; height: 14px; }
.er-skip-last.is-hidden { display: none; }
.er-skip-last:active { transform: scale(.94); }

/* #5 kazen namiga */
.er-hint-item { align-items: center; }
.er-hint-body { flex: 1; min-width: 0; }
.er-hint-cost { flex: none; font-size: 12px; font-weight: 800; color: var(--err); background: rgba(210,59,59,.1); padding: 3px 9px; border-radius: 999px; }

/* #9 epicen konec: strip, slogan, konfeti */
.er-end-scene { overflow: hidden; }
.er-end-comic { margin: 8px auto 2px; max-width: 250px; }
.er-end-comic img { width: 100%; height: auto; display: block; animation: erPhotoFloat 8s ease-in-out infinite; }
.er-end-slogan { font-family: Georgia, serif; font-weight: 800; font-size: clamp(22px, 6vw, 30px); letter-spacing: 1px; color: var(--gold2); margin: 4px 0 12px; text-shadow: 0 2px 12px rgba(150,26,31,.16); animation: erSloganIn .9s var(--ease); }
@keyframes erSloganIn { 0% { opacity: 0; transform: scale(.8); letter-spacing: 8px; } 100% { opacity: 1; transform: none; letter-spacing: 1px; } }
.er-confetti { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.er-confetti i { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; opacity: .95; animation: erConfetti linear forwards; }
@keyframes erConfetti { 0% { transform: translateY(-20px) rotate(0); opacity: 1; } 100% { transform: translateY(112vh) rotate(760deg); opacity: .9; } }

/* =====================================================================
   AKTIVACIJSKA VRATA (sprozilec) + FX ob aktivaciji
   ===================================================================== */
/* Celozaslonska aktivacija: fotografija lokacije cez cel zaslon + tancica + poziv */
.er-game-body.er-body-full { padding: 0; }
.er-game-body.er-body-full > * { max-width: none; margin: 0; }
.er-activate-full {
  position: relative; min-height: 100%; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center; background-color: #1a1113;
  animation: erActFade .5s var(--ease);
}
@keyframes erActFade { from { opacity: 0; } to { opacity: 1; } }
.er-activate-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18,10,11,.28) 0%, rgba(18,10,11,.12) 32%, rgba(18,10,11,.72) 74%, rgba(14,8,9,.96) 100%);
}
.er-activate-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 28px 22px calc(96px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center;
}
.er-activate-station {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}
.er-activate-pin {
  position: relative; width: 84px; height: 84px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #c0323a, var(--gold2)); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.er-activate-pin svg { width: 42px; height: 42px; color: #fff; position: relative; z-index: 2; }
.er-pin-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
  animation: erPinPulse 1.8s ease-out infinite;
}
@keyframes erPinPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.er-activate-title {
  font-family: var(--serif, Georgia, serif); font-size: 26px; line-height: 1.15; font-weight: 700;
  color: #fff; margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.er-activate-instr {
  font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); margin: 0 0 22px;
  max-width: 340px; text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.er-activate-full .er-activate-btn {
  width: 100%; max-width: 360px; font-size: 16px; padding: 15px 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.er-activate-sub { font-size: 13px; color: rgba(255,255,255,.72); margin: 14px 0 0; max-width: 320px; }
/* elementna barvna tancica ob dnu */
.er-activate-full.el-voda   .er-activate-veil { background: linear-gradient(180deg, rgba(18,10,11,.24) 0%, rgba(18,10,11,.12) 30%, rgba(12,42,66,.7) 76%, rgba(8,26,42,.96) 100%); }
.er-activate-full.el-ogenj  .er-activate-veil { background: linear-gradient(180deg, rgba(18,10,11,.24) 0%, rgba(18,10,11,.12) 30%, rgba(74,30,14,.72) 76%, rgba(46,16,8,.96) 100%); }
.er-activate-full.el-zemlja .er-activate-veil { background: linear-gradient(180deg, rgba(18,10,11,.24) 0%, rgba(18,10,11,.12) 30%, rgba(58,44,22,.72) 76%, rgba(34,26,12,.96) 100%); }
.er-activate-full.el-zrak   .er-activate-veil { background: linear-gradient(180deg, rgba(18,10,11,.2) 0%, rgba(18,10,11,.1) 30%, rgba(40,52,74,.68) 76%, rgba(22,30,46,.95) 100%); }

.er-fx { position: absolute; inset: 0; z-index: 65; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .28s var(--ease); }
.er-fx.is-on { opacity: 1; }
.er-fx-sym { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); z-index: 2; }
.er-fx-sym .er-sym { width: 90px; height: 90px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.3)); }
.er-fx.is-on .er-fx-sym { animation: erFxSym 1.35s var(--ease); }
@keyframes erFxSym { 0% { transform: translate(-50%,-50%) scale(.5); opacity: 0; } 30% { opacity: 1; } 70% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.18); opacity: 0; } }
/* VODA dramaticno dvigovanje + valovi */
.er-fx[data-el="voda"] .er-fx-layer { position: absolute; inset: 0; transform: translateY(100%);
  background: linear-gradient(180deg, rgba(63,134,198,0) 0%, rgba(47,127,196,.9) 42%, #164a7e 100%); }
.er-fx[data-el="voda"].is-on .er-fx-layer { animation: erWaterRise 1.35s cubic-bezier(.3,.72,.28,1) forwards; }
@keyframes erWaterRise { 0% { transform: translateY(100%); } 42% { transform: translateY(6%); } 62% { transform: translateY(13%); } 100% { transform: translateY(-3%); } }
.er-fx[data-el="voda"] .er-fx-layer2 { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; transform: translateY(100%);
  background: repeating-linear-gradient(93deg, rgba(255,255,255,0) 0 36px, rgba(255,255,255,.2) 36px 42px), rgba(255,255,255,.05); }
.er-fx[data-el="voda"].is-on .er-fx-layer2 { animation: erWaterRise2 1.35s cubic-bezier(.3,.72,.28,1) forwards, erWater 1s linear infinite; }
@keyframes erWaterRise2 { 0% { transform: translateY(100%); } 100% { transform: translateY(18%); } }
/* ostali elementi - barvni blisk */
.er-fx[data-el="ogenj"] .er-fx-layer { position: absolute; inset: 0; opacity: 0; background: radial-gradient(95% 72% at 50% 112%, #ffd591, #e5602b 40%, #7a1e0c 100%); }
.er-fx[data-el="zemlja"] .er-fx-layer { position: absolute; inset: 0; opacity: 0; background: radial-gradient(95% 82% at 50% 18%, #ddc79c, #6d5327 100%); }
.er-fx[data-el="zrak"] .er-fx-layer { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #cfe3f5, #7f93b8); }
.er-fx[data-el="fin"] .er-fx-layer { position: absolute; inset: 0; opacity: 0; background: radial-gradient(72% 62% at 50% 45%, #fff3c4, #b8863b 100%); }
.er-fx[data-el="ogenj"].is-on .er-fx-layer, .er-fx[data-el="zemlja"].is-on .er-fx-layer, .er-fx[data-el="zrak"].is-on .er-fx-layer, .er-fx[data-el="fin"].is-on .er-fx-layer { animation: erFxWash 1.35s var(--ease); }
@keyframes erFxWash { 0% { opacity: 0; } 32% { opacity: .92; } 68% { opacity: .92; } 100% { opacity: 0; } }

/* Ognjeni intro ("intro1") je zacasno odstranjen - koda shranjena v _claude/igra/intro1_ogenj_koda.txt */

/* =====================================================================
   UVOD v2: naslov crka-po-crko (bel/velik/dramaticen), zareci elementi, ogenj/dim
   ===================================================================== */
/* z-index sloji splasha */
.er-splash-bg { z-index: 0; }
.er-splash-drama { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.er-splash::after { z-index: 2; }
.er-splash-elems { z-index: 3; }
.er-splash-inner { z-index: 4; }

/* ogenj (spodaj, utripa) + dim (drseci) - "pogorel/kaos" */
.er-drama-ember { position: absolute; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(96% 52% at 50% 116%, rgba(255,150,45,.62) 0%, rgba(230,85,25,.32) 30%, transparent 60%);
  animation: erEmber .18s ease-in-out infinite alternate; }
@keyframes erEmber { from { opacity: .58; } to { opacity: 1; } }
.er-drama-smoke { position: absolute; inset: -14%;
  background: radial-gradient(42% 30% at 22% 26%, rgba(12,6,8,.55), transparent 60%), radial-gradient(46% 34% at 78% 68%, rgba(12,5,7,.6), transparent 62%);
  animation: erSmoke 13s ease-in-out infinite alternate; }
@keyframes erSmoke { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(5%,-4%) scale(1.1); } }

/* naslov = BEL, velik, dramaticen, crka po crko; logo sij le pri logu (zgoraj) */
.er-splash-inner::before { top: 40% !important; height: 44% !important; }
.er-splash-title { color: #fff !important; font-weight: 800; font-size: clamp(26px, 7.6vw, 40px); line-height: 1.12; padding: 0 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,.55), 0 6px 32px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.85); }
.er-splash.is-named .er-splash-title { animation: none; }
.er-tchar { display: inline-block; opacity: 0; transform: translateY(16px) scale(.88); animation: erChar .5s var(--ease) forwards; }
@keyframes erChar { to { opacity: 1; transform: none; } }

/* elementi vecji + zareci + bolj dinamicni */
.er-splash-el { opacity: 0; animation: erElIn 1s var(--ease) forwards, erElDrift 7s ease-in-out infinite; }
.er-splash-el .er-sym { width: 64px; height: 64px; }
.er-splash-el.el-voda .er-sym { filter: drop-shadow(0 0 15px rgba(74,166,224,.95)); }
.er-splash-el.el-ogenj .er-sym { filter: drop-shadow(0 0 16px rgba(236,122,60,1)); }
.er-splash-el.el-zemlja .er-sym { filter: drop-shadow(0 0 13px rgba(201,180,0,.85)); }
.er-splash-el.el-zrak .er-sym { filter: drop-shadow(0 0 14px rgba(160,180,215,.9)); }
@keyframes erElIn { to { opacity: .95; } }
@keyframes erElDrift { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-13px) scale(1.09); } }

/* #5 razkritje ob vseh namigih */
.er-hint-reveal { font-size: 14px; font-weight: 800; color: var(--gold2); text-align: center; margin: 10px 0 0; animation: erRevealPulse 1s ease-in-out infinite; }
@keyframes erRevealPulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }

/* =====================================================================
   #6 KONEC: animirana Viteska (zlati zarki + elementi se zberejo okoli)
   ===================================================================== */
.er-end-hero { position: relative; width: 172px; height: 172px; margin: 6px auto 10px; }
.er-end-hero-img { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center;
  border: 3px solid #f0c14b; box-shadow: 0 10px 34px rgba(0,0,0,.3); animation: erHeroZoom 8s ease-in-out infinite alternate; }
@keyframes erHeroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.er-end-rays { position: absolute; inset: -42%; z-index: -1; border-radius: 50%; animation: erRays 20s linear infinite;
  background: conic-gradient(from 0deg, rgba(240,193,75,.4), transparent 11%, rgba(240,193,75,.32) 25%, transparent 36%, rgba(240,193,75,.4) 50%, transparent 61%, rgba(240,193,75,.32) 75%, transparent 86%, rgba(240,193,75,.4) 100%); }
@keyframes erRays { to { transform: rotate(360deg); } }
.er-end-orbits { position: absolute; inset: 0; }
.er-orbit { position: absolute; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; opacity: 0; animation: erOrbitIn .6s var(--ease) forwards; }
.er-orbit .er-sym { width: 24px; height: 24px; }
.er-orbit.o1 { top: -16px; left: 50%; margin-left: -21px; animation-delay: .25s; }
.er-orbit.o2 { right: -16px; top: 50%; margin-top: -21px; animation-delay: .45s; }
.er-orbit.o3 { bottom: -16px; left: 50%; margin-left: -21px; animation-delay: .65s; }
.er-orbit.o4 { left: -16px; top: 50%; margin-top: -21px; animation-delay: .85s; }
@keyframes erOrbitIn { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: 1; transform: scale(1); } }

/* =====================================================================
   UVOD v3: naslov cele besede + dramaticni znaki; elementi se zapeljejo od sredine
   ===================================================================== */
/* naslov: brez preloma SREDI besede (cela beseda = enota) */
.er-splash-title { word-break: keep-all; overflow-wrap: normal; hyphens: none; }
.er-tword { display: inline-block; white-space: nowrap; }
.er-tspace { display: inline; white-space: normal; }
.er-tchar { display: inline-block; opacity: 0; transform: translateY(-26px) scale(1.5); filter: blur(4px); animation: erChar .55s var(--ease) forwards; }
@keyframes erChar { 55% { opacity: 1; } 100% { opacity: 1; transform: none; filter: blur(0); } }

/* elementi se ZAPELJEJO: majhni na sredini -> veliki -> na mesto v ogel, nato obstanejo */
.er-splash-el { left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important;
  margin-left: -32px; margin-top: -32px; opacity: 0; animation: erElFly 1.7s var(--ease) forwards !important; }
.er-splash-el.p1 { --tx: -33vw; --ty: -31vh; animation-delay: .15s !important; }
.er-splash-el.p2 { --tx: 33vw; --ty: -27vh; animation-delay: .32s !important; }
.er-splash-el.p3 { --tx: -33vw; --ty: 27vh; animation-delay: .49s !important; }
.er-splash-el.p4 { --tx: 33vw; --ty: 23vh; animation-delay: .66s !important; }
@keyframes erElFly {
  0%   { opacity: 0; transform: translate(0,0) scale(.15); }
  22%  { opacity: 1; transform: translate(0,0) scale(1.7); }
  50%  { opacity: 1; transform: translate(0,0) scale(1.45); }
  100% { opacity: .95; transform: translate(var(--tx), var(--ty)) scale(1); }
}

/* zanesljivi px odmiki do oglov (vw/vh v translate ni povsod ok) */
.er-splash-el.p1 { --tx: -138px; --ty: -258px; }
.er-splash-el.p2 { --tx: 138px; --ty: -220px; }
.er-splash-el.p3 { --tx: -138px; --ty: 240px; }
.er-splash-el.p4 { --tx: 138px; --ty: 205px; }

/* =====================================================================
   FAZA 2 - dodelave predstavitve (2026-07-09)
   ===================================================================== */
/* 1) SPLASH slika: FIT (oba stebra + kip desno vidni) + zabrisano polnilo v ozadju (app feel) */
.er-splash-bg::before {
  display: block !important; content: ""; position: absolute; inset: -6%;
  background: url("../../0admin/sites/igra/uploads/er_splash.jpg?v=2") center / cover no-repeat;
  filter: blur(24px) brightness(.42) saturate(1.15); transform: scale(1.14); opacity: 1;
}
.er-splash-bg-fill {
  background: url("../../0admin/sites/igra/uploads/er_splash.jpg?v=2") center 46% / contain no-repeat !important;
}
@keyframes erCastlePaint {
  0%   { filter: grayscale(.9) brightness(1.02) contrast(.94) sepia(.16); transform: scale(1.07); }
  55%  { filter: grayscale(.25) brightness(.96) contrast(1.1) saturate(1.05); }
  100% { filter: grayscale(0) brightness(.94) contrast(1.14) saturate(1.12); transform: scale(1); }
}
/* veil bolj prosojen, da se slika lepo vidi, a logo/naslov ostaneta berljiva */
.er-splash-bg::after {
  background:
    radial-gradient(56% 38% at 50% 40%, rgba(255,255,255,.32) 0%, transparent 60%),
    radial-gradient(135% 118% at 50% 40%, transparent 40%, rgba(18,8,10,.58) 100%) !important;
}

/* 2) ODSTOTEK: bel + ~30% vecji */
.er-splash-pct { color: #fff !important; font-size: 24px !important; text-shadow: 0 2px 12px rgba(0,0,0,.65); }

/* 4/5) ELEMENTI: vecji + po prihodu v ogel "zivijo" (element-znacilno gibanje) */
.er-splash-el .er-sym { width: 76px !important; height: 76px !important; }
.er-splash-el { animation: erElFly 1.7s var(--ease) forwards, erElAlive 4.2s ease-in-out infinite !important; }
.er-splash-el.p1 { animation-delay: .15s, 2.0s !important; }
.er-splash-el.p2 { animation-delay: .32s, 2.2s !important; }
.er-splash-el.p3 { animation-delay: .49s, 2.4s !important; }
.er-splash-el.p4 { animation-delay: .66s, 2.6s !important; }
@keyframes erElAlive {
  0%,100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(0deg); }
  50%     { transform: translate(calc(var(--tx) + 7px), calc(var(--ty) - 13px)) scale(1.12) rotate(3deg); }
}
/* ritem po pomenu: ogenj hitro trepeta, zrak pocasi lebdi, voda zibi, zemlja trdno */
.er-splash-el.el-ogenj { animation-duration: 1.7s, 2.4s !important; }
.er-splash-el.el-zrak  { animation-duration: 1.7s, 6.2s !important; }
.er-splash-el.el-voda  { animation-duration: 1.7s, 4.6s !important; }
.er-splash-el.el-zemlja{ animation-duration: 1.7s, 7s !important; }

/* 7) KAMERA fallback (npr. vodnjak) MOCNO zabrisan - "komaj se vidi" (prava kamera prepozna cilj) */
.er-camera-fallback { filter: blur(16px) brightness(.82) saturate(1.05); transform: scale(1.1); }
.er-camera.er-cam-live .er-camera-fallback { filter: none; transform: none; }

/* 6) VSTOPNI COUNTDOWN - umetniski: stevilka drsi 3(zgoraj)->2(sredina)->1(spodaj), spodaj TOP dejstvo */
.er-enter-num { position: absolute; left: 50%; transform: translateX(-50%); font-family: Georgia, serif; font-weight: 800;
  color: #fff; line-height: 1; text-shadow: 0 8px 46px rgba(150,26,31,.78), 0 2px 10px rgba(0,0,0,.6);
  transition: top .55s var(--ease), font-size .55s var(--ease); }
.er-enter-num.pos-3 { top: 14%; font-size: 116px; }
.er-enter-num.pos-2 { top: 36%; font-size: 132px; }
.er-enter-num.pos-1 { top: 54%; font-size: 152px; }
.er-enter-num.pos-go { top: 39%; font-size: 104px; color: #7dffab; text-shadow: 0 8px 44px rgba(40,180,90,.55); }
.er-enter-num.is-pop { animation: erEnterNumPop .5s var(--ease); }
@keyframes erEnterNumPop { 0% { transform: translateX(-50%) scale(.6); opacity: .3; } 55% { transform: translateX(-50%) scale(1.14); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
.er-enter-fact { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); width: 88%; max-width: 380px; text-align: center; }
.er-enter-fact.is-in { animation: erFactIn .55s var(--ease); }
.er-enter-fact-k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #f0c14b; margin-bottom: 9px; }
.er-enter-fact-t { display: block; font-family: Georgia, serif; font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.96); }
@keyframes erFactIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }

/* 9) SLICK potrditev pravilnega odgovora (zelena kljukica se nariše + koda utripne) */
.er-interaction { position: relative; }
.er-correct-burst { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.er-correct-burst svg { width: 98px; height: 98px; filter: drop-shadow(0 8px 24px rgba(40,170,90,.45)); }
.er-cb-ring { fill: rgba(40,180,100,.16); stroke: #28b46a; stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; }
.er-cb-check { fill: none; stroke: #28b46a; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; }
.er-correct-burst.is-on { animation: erCbFade 1s var(--ease) forwards; }
.er-correct-burst.is-on .er-cb-ring { animation: erCbDraw .5s var(--ease) forwards; }
.er-correct-burst.is-on .er-cb-check { animation: erCbDraw .4s var(--ease) .28s forwards; }
@keyframes erCbDraw { to { stroke-dashoffset: 0; } }
@keyframes erCbFade { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
.er-code.is-correct .er-code-box { border-color: #28b46a !important; background: rgba(40,180,100,.12); animation: erCodeOk .5s var(--ease); }
@keyframes erCodeOk { 0% { transform: scale(1); } 40% { transform: scale(1.13); } 100% { transform: scale(1); } }

/* 3/5) UVOD: slika se SESTAVI iz vodoravnih trakov (izmenicno L/D) - app-like reveal */
.er-assemble { position: absolute; inset: 0; overflow: hidden; background: #0e1524; }
.er-astrip { position: absolute; left: 0; width: 100%; overflow: hidden; opacity: 0; will-change: transform, opacity; animation: erStripIn .72s var(--ease) both; }
.er-astrip.from-l { transform: translateX(-16%) scale(1.05); }
.er-astrip.from-r { transform: translateX(16%) scale(1.05); }
.er-astrip-img { position: absolute; left: 0; width: 100%; background-position: center; background-size: cover; }
@keyframes erStripIn { to { opacity: 1; transform: translateX(0) scale(1); } }

/* 5) UVOD: 4 elementi se "vozijo" po robovih (od vogalov) */
.er-intro-elems { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.er-iel { position: absolute; opacity: .82; }
.er-iel .er-sym { width: 34px !important; height: 34px !important; }
.er-iel.el-voda .er-sym { filter: drop-shadow(0 0 10px rgba(74,166,224,.9)); }
.er-iel.el-ogenj .er-sym { filter: drop-shadow(0 0 11px rgba(236,122,60,.95)); }
.er-iel.el-zemlja .er-sym { filter: drop-shadow(0 0 9px rgba(201,180,0,.85)); }
.er-iel.el-zrak .er-sym { filter: drop-shadow(0 0 10px rgba(160,180,215,.9)); }
.er-iel.e1 { top: 4%; left: 2%; animation: erIelTop 10s ease-in-out infinite; }
.er-iel.e2 { top: 8%; right: 2%; animation: erIelRight 11s ease-in-out infinite; }
.er-iel.e3 { bottom: 4%; right: 2%; animation: erIelBottom 10.5s ease-in-out infinite; }
.er-iel.e4 { bottom: 8%; left: 2%; animation: erIelLeft 12s ease-in-out infinite; }
@keyframes erIelTop { 0%,100% { transform: translateX(0) scale(1); } 50% { transform: translateX(80vw) scale(1.16); } }
@keyframes erIelRight { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(72vh) scale(1.16); } }
@keyframes erIelBottom { 0%,100% { transform: translateX(0) scale(1); } 50% { transform: translateX(-80vw) scale(1.16); } }
@keyframes erIelLeft { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-72vh) scale(1.16); } }

@media (prefers-reduced-motion: reduce) {
  .er-astrip { opacity: 1 !important; transform: none !important; animation: none !important; }
  .er-iel { animation: none !important; }
}

/* 10a) PECAT (afterBrief): element se "vzge" - stamp + obroc + blisk */
.er-seal { position: relative; width: 92px; height: 92px; margin: 2px auto 12px; display: flex; align-items: center; justify-content: center; }
.er-seal-sym { position: relative; z-index: 2; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(0,0,0,.42); animation: erSealStamp .6s var(--ease) both; }
.er-seal-sym .er-sym { width: 46px; height: 46px; }
.er-seal-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bc, #f0c14b); opacity: 0; animation: erSealRing 1s var(--ease) .15s forwards; }
.er-seal-flash { position: absolute; inset: -30px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--bc, #f0c14b) 0%, transparent 62%); opacity: 0; animation: erSealFlash .85s var(--ease) forwards; }
@keyframes erSealStamp { 0% { transform: scale(1.7); opacity: 0; } 55% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
@keyframes erSealRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
@keyframes erSealFlash { 0% { opacity: 0; } 30% { opacity: .55; } 100% { opacity: 0; } }

/* 10) prehod med koraki: pecat elementa (namesto zemljevida) */
.er-trans-seal { width: 118px; height: 118px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.96);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 44px rgba(0,0,0,.4); animation: erSealStamp .55s var(--ease) both; }
.er-trans-seal .er-sym { width: 76px; height: 76px; }

/* 10b) VOZEL / VEZ (napredek) - stiri niti se spletajo */
.er-knot { width: 210px; height: 210px; margin: 6px auto 2px; }
.er-knot-svg { width: 100%; height: 100%; overflow: visible; }
.er-knot-ghost { fill: none; stroke-width: 7; opacity: .13; stroke-linecap: round; }
.er-knot-strand { fill: none; stroke-width: 7; stroke-linecap: round; opacity: .95; filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); transition: stroke-dasharray .6s var(--ease); }
.er-knot-core { fill: #fff; stroke: var(--gold2); stroke-width: 2; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); transition: r .6s var(--ease); }
.er-knot-pct { fill: #7a2a2f; font: 800 15px Georgia, serif; }
.er-knot-cap { text-align: center; font-size: 13px; color: var(--muted); font-style: italic; margin: 2px 0 14px; }
.er-stationlist { list-style: none; margin: 0; padding: 0; }
.er-stn { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-bottom: 1px solid rgba(0,0,0,.06); }
.er-stn-dot { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: #cfc7c0; }
.er-stn.is-done .er-stn-dot { background: var(--dc); }
.er-stn.is-current .er-stn-dot { background: #961a1f; animation: erPulseDot 1.6s ease-in-out infinite; }
@keyframes erPulseDot { 0%,100% { box-shadow: 0 0 0 3px rgba(150,26,31,.18); } 50% { box-shadow: 0 0 0 7px rgba(150,26,31,.04); } }
.er-stn-name { flex: 1; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.er-stn.is-locked { opacity: .7; } .er-stn.is-locked .er-stn-name { color: #b7aca4; font-weight: 500; }
.er-stn-el { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dc); }

/* 5b) robni elementi BOLJ VPADLJIVI */
.er-iel { opacity: .95; }
.er-iel .er-sym { width: 48px !important; height: 48px !important; }
.er-iel.e1 { animation-duration: 7.5s; }
.er-iel.e2 { animation-duration: 8s; }
.er-iel.e3 { animation-duration: 7.8s; }
.er-iel.e4 { animation-duration: 8.6s; }

/* ================= AR KAMERA: skeniranje + zaklep prekrivala na prepoznan pecat ================= */
.er-camera { position: relative; }
/* skeniranje: drseca crta + utripajoc okvir */
.er-cam-scanning .er-camera-frame { animation: erScanPulse 1.4s ease-in-out infinite; }
.er-cam-scanning::after { content: ""; position: absolute; left: 8%; right: 8%; height: 2px; top: 12%;
  background: linear-gradient(90deg, transparent, #7ad0ff, transparent); box-shadow: 0 0 12px #4aa6e0;
  animation: erScanSweep 2.1s ease-in-out infinite; z-index: 4; pointer-events: none; }
@keyframes erScanSweep { 0% { top: 12%; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { top: 88%; opacity: 0; } }
@keyframes erScanPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
/* AR zaklep na cilj (obroc + oglati oznaki + simbol elementa) */
.er-ar-lock { position: absolute; transform: translate(-50%,-50%) scale(.4); z-index: 6; pointer-events: none; --ac: #4aa6e0; opacity: 0; animation: erArSnap .45s var(--ease) forwards; }
.er-ar-lock.el-voda { --ac: #4aa6e0; } .er-ar-lock.el-ogenj { --ac: #ec7a3c; }
.er-ar-lock.el-zemlja { --ac: #c9a227; } .er-ar-lock.el-zrak { --ac: #8fa3c4; }
@keyframes erArSnap { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); } 60% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.er-ar-ring { position: absolute; inset: 12%; border-radius: 50%; border: 2px solid var(--ac); box-shadow: 0 0 18px var(--ac), inset 0 0 14px rgba(255,255,255,.25); animation: erArRing 1.6s ease-in-out infinite; }
@keyframes erArRing { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
.er-ar-c { position: absolute; width: 22px; height: 22px; border: 3px solid var(--ac); }
.er-ar-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.er-ar-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.er-ar-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.er-ar-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.er-ar-sym { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.96); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.er-ar-sym .er-sym { width: 30px; height: 30px; }
.er-ar-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 7; background: rgba(20,10,12,.82); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; padding: 9px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; opacity: 0; animation: erArLabel .5s var(--ease) .25s forwards; }
@keyframes erArLabel { 0% { opacity: 0; transform: translateX(-50%) translateY(8px); } 100% { opacity: 1; transform: translateX(-50%) translateY(0); } }
.er-cam-locked .er-camera-frame, .er-cam-locked::after { display: none; }

/* ================= PREHOD MED KORAKI: 4 elementi POCASI kroziijo v krog ================= */
.er-trans-stage { position: relative; width: 220px; height: 220px; margin: 0 auto 16px; }
.er-trans-orbit { position: absolute; inset: 0; animation: erTransSpin 6s linear infinite; }
.er-trans-ring { position: absolute; inset: 22px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.32); }
.er-trans-el { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.32);
  animation: erTransSpinRev 6s linear infinite; }
.er-trans-el .er-sym { width: 32px; height: 32px; }
.er-trans-el.o1 { top: 0; left: 50%; margin-left: -27px; }
.er-trans-el.o2 { right: 0; top: 50%; margin-top: -27px; }
.er-trans-el.o3 { bottom: 0; left: 50%; margin-left: -27px; }
.er-trans-el.o4 { left: 0; top: 50%; margin-top: -27px; }
.er-trans-el.is-active { background: #fff; box-shadow: 0 0 0 3px #f0c14b, 0 8px 24px rgba(0,0,0,.4); }
.er-trans-core { position: absolute; left: 50%; top: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px;
  border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.42); animation: erTransCorePulse 2.4s ease-in-out infinite; }
.er-trans-core .er-sym { width: 46px; height: 46px; }
@keyframes erTransSpin { to { transform: rotate(360deg); } }
@keyframes erTransSpinRev { to { transform: rotate(-360deg); } }
@keyframes erTransCorePulse { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: scale(1.06); } }

/* #1 VSTOPNI NALAGALNIK v2 - elegantno, berljivo (brez stevilk/kljukice) */
.er-enter2 { flex-direction: column; padding: 0 26px; }
.er-e2-emblem { position: relative; width: 116px; height: 116px; margin-bottom: 30px; }
.er-e2-ring { position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(240,193,75,.22); border-top-color: rgba(240,193,75,.85); animation: erSpin 3.4s linear infinite; }
.er-e2-el { position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -15px; }
.er-e2-el .er-sym { width: 30px; height: 30px; }
.er-e2-el.p1 { transform: translate(0,-44px); }
.er-e2-el.p2 { transform: translate(44px,0); }
.er-e2-el.p3 { transform: translate(0,44px); }
.er-e2-el.p4 { transform: translate(-44px,0); }
.er-e2-el.el-voda .er-sym { filter: drop-shadow(0 0 9px rgba(74,166,224,.95)); }
.er-e2-el.el-ogenj .er-sym { filter: drop-shadow(0 0 10px rgba(236,122,60,1)); }
.er-e2-el.el-zemlja .er-sym { filter: drop-shadow(0 0 8px rgba(201,180,0,.9)); }
.er-e2-el.el-zrak .er-sym { filter: drop-shadow(0 0 9px rgba(160,180,215,.95)); }
.er-e2-kicker { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #f0c14b; margin-bottom: 14px; }
.er-e2-fact { font-family: Georgia, serif; font-size: 20px; line-height: 1.5; color: #fff; text-align: center; max-width: 340px; margin: 0; min-height: 96px; opacity: 0; }
.er-e2-fact.is-in { animation: erFactIn2 .6s var(--ease) forwards; }
@keyframes erFactIn2 { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }
.er-e2-bar { position: absolute; left: 12%; right: 12%; bottom: 13%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.er-e2-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#c9a23a,#f0c14b); border-radius: 3px; }
.er-e2-skip { position: absolute; bottom: 6.8%; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .03em; }

/* #3 WOW PREHOD med koraki: temna podlaga + zarni prasek + pecat priileti + ime */
.er-transition.is-playing { animation: erTransFade 1.3s var(--ease) forwards !important;
  background: radial-gradient(circle at 50% 42%, rgba(30,15,17,.9) 0%, rgba(10,5,7,.97) 100%) !important; }
.er-transition-inner { gap: 14px; }
.er-transition.is-playing .er-transition-inner { animation: none !important; opacity: 1 !important; }
.er-trans-rays { position: absolute; width: 360px; height: 360px; left: 50%; top: 42%; margin: -180px 0 0 -180px; z-index: -1; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, rgba(240,193,75,.55), transparent 12%, rgba(240,193,75,.42) 25%, transparent 38%, rgba(240,193,75,.55) 50%, transparent 62%, rgba(240,193,75,.42) 75%, transparent 88%, rgba(240,193,75,.55) 100%);
  animation: erTransRays 1.3s var(--ease) forwards; }
@keyframes erTransRays { 0% { opacity: 0; transform: rotate(-40deg) scale(.5); } 42% { opacity: .95; } 100% { opacity: 0; transform: rotate(34deg) scale(1.3); } }
.er-trans-seal { animation: erTransSealIn .72s cubic-bezier(.2,.85,.25,1) both !important; box-shadow: 0 22px 64px rgba(0,0,0,.55), 0 0 0 7px rgba(255,255,255,.1); }
@keyframes erTransSealIn { 0% { opacity: 0; transform: scale(0) rotate(-140deg); } 58% { opacity: 1; transform: scale(1.14) rotate(9deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.er-transition-name { color: #fff !important; text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.5); font-size: 23px !important; font-weight: 800; animation: erTransNameIn .5s var(--ease) .34s both; }
@keyframes erTransNameIn { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }

/* #4 RAZISCI GRAD (po zakljucku): celozaslonska galerija slik + zanimivosti */
.er-explore { position: absolute; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.er-explore.is-on { opacity: 1; transform: none; }
.er-explore-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px;
  padding-top: calc(16px + env(safe-area-inset-top)); border-bottom: 1px solid #eee3da; background: #fff; }
.er-explore-h { font-family: Georgia, serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.er-explore-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2ece6; color: #7a2a2f; font-size: 22px; line-height: 1; cursor: pointer; }
.er-explore-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
.er-explore-lead { font-size: 14px; color: var(--muted, #8a8079); line-height: 1.55; margin: 0 0 16px; text-align: center; }
.er-expl-card { background: #fff; border: 1px solid #eee3da; border-radius: 16px; overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(40,20,15,.07); opacity: 0; animation: erExplIn .5s var(--ease) both; }
@keyframes erExplIn { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
.er-expl-img { height: 182px; background-size: cover; background-position: center; }
.er-expl-body { padding: 14px 16px 16px; }
.er-expl-title { font-family: Georgia, serif; font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 7px; }
.er-expl-fact { font-size: 14px; line-height: 1.6; color: #4b423d; margin: 0; }
.er-explore-back { width: 100%; margin-top: 4px; }

/* =====================================================================
   DOSTOPNOST (a11y): gumb "Aa" + panel + vecji tekst / visok kontrast
   (razreda a11y-big / a11y-contrast na #er-app; blok je NA KONCU, da premaga kaskado)
   ===================================================================== */
.er-a11y-btn { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 68px; z-index: 41;
  min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20,12,12,.05); color: var(--ink); font: 800 15px/1 Georgia, serif; letter-spacing: .5px; cursor: pointer; }
.er-a11y-btn:hover { background: rgba(150,26,31,.1); }
.er-app[data-scene="splash"] .er-a11y-btn,
.er-app[data-scene="game"] .er-a11y-btn { display: none; }

.er-a11y-panel { position: absolute; top: calc(54px + env(safe-area-inset-top)); right: 14px; z-index: 60;
  width: 226px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 8px;
  box-shadow: 0 18px 44px rgba(40,20,15,.24); animation: erA11yIn .18s var(--ease); }
@keyframes erA11yIn { 0% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
.er-a11y-h { display: block; font: 800 11px/1 Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 2px 2px 6px; }
.er-a11y-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px;
  background: none; border: 0; padding: 10px 4px; cursor: pointer; font: 700 14.5px/1.2 Arial, sans-serif; color: var(--ink); }
.er-a11y-lab { text-align: left; }
.er-a11y-sw { position: relative; flex: 0 0 42px; width: 42px; height: 23px; border-radius: 999px; background: #cdbfae; transition: background .18s; }
.er-a11y-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.32); transition: transform .18s; }
.er-a11y-row.is-on .er-a11y-sw { background: #961a1f; }
.er-a11y-row.is-on .er-a11y-sw::after { transform: translateX(19px); }
.er-link.is-on { color: #961a1f; font-weight: 800; }

/* VECJI TEKST */
.er-app.a11y-big .er-step-instr,
.er-app.a11y-big .er-activate-instr,
.er-app.a11y-big .er-lead,
.er-app.a11y-big .er-end-text,
.er-app.a11y-big .er-rank-line,
.er-app.a11y-big .er-hint-body,
.er-app.a11y-big .er-hint-item,
.er-app.a11y-big .er-hint-note,
.er-app.a11y-big .er-more-label { font-size: 18px; line-height: 1.62; }
.er-app.a11y-big .er-step-title,
.er-app.a11y-big .er-activate-title,
.er-app.a11y-big .er-panel-title,
.er-app.a11y-big .er-h2 { font-size: 25px; line-height: 1.22; }
.er-app.a11y-big .er-btn { font-size: 18px; padding: 17px 24px; }
.er-app.a11y-big .er-choice-text { font-size: 17px; }
.er-app.a11y-big .er-choices-list .er-choice-text { font-size: 16.5px; }
.er-app.a11y-big .er-answer-input { font-size: 20px; }
.er-app.a11y-big .er-code-box { font-size: 24px; }

/* VISOK KONTRAST: potemni pomozno besedilo (var --muted) + okrepi obrobe */
.er-app.a11y-contrast { --muted: #241d1b; --line: rgba(122,20,24,.55); }
.er-app.a11y-contrast .er-step-instr,
.er-app.a11y-contrast .er-activate-instr,
.er-app.a11y-contrast .er-lead,
.er-app.a11y-contrast .er-end-text,
.er-app.a11y-contrast .er-rank-line,
.er-app.a11y-contrast .er-hint-body,
.er-app.a11y-contrast .er-expl-fact { color: #17110f; }
.er-app.a11y-contrast .er-step-card,
.er-app.a11y-contrast .er-card { border: 2px solid #2b2422; }
.er-app.a11y-contrast .er-btn-ghost { border-width: 2px; border-color: #2b2422; color: #17110f; }
.er-app.a11y-contrast .er-choice,
.er-app.a11y-contrast .er-code-box,
.er-app.a11y-contrast .er-answer-input { border-width: 2px; border-color: #7a1418; }
.er-app.a11y-contrast .er-step-trigger { color: #7a1418; }

/* =====================================================================
   UX popravki 2026-08-07 (feedback z zivega testa na telefonu)
   ===================================================================== */

/* 1) Zgornje kontrole (Aa + jezik) v skupnem flex sklopu -> nikoli se ne prekrivajo */
.er-topctrl { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 41;
  display: flex; align-items: center; gap: 8px; }
.er-topctrl .er-lang { position: static; top: auto; right: auto; }
.er-topctrl .er-a11y-btn { position: static; top: auto; right: auto; display: inline-flex; align-items: center; justify-content: center; }
/* skrit na splashu (tik pred vstopom) in v igri (glava ima svoje kontrole) */
.er-app[data-scene="splash"] .er-topctrl { opacity: 0; pointer-events: none; }
.er-app[data-scene="game"] .er-topctrl { display: none; }

/* 2) Glava igre = kompaktna, BREZ naslova, meta desno + manjsi tekst */
.er-app .er-game-top { padding: 7px 15px; justify-content: flex-end; }
.er-app .er-game-meta { gap: 13px; }
.er-app .er-game-timer { font-size: 12.5px; }
.er-app .er-game-count { font-size: 12px; }
.er-app .er-game-score { font-size: 13px; }
.er-app .er-game-score .er-star { width: 15px; height: 15px; }

/* 3) FAB ikoni (namig + meni) manjsi */
.er-menu-fab { width: 48px; height: 48px; }
.er-menu-fab .er-fab-ico { width: 22px; height: 22px; }
.er-hint-fab { width: 46px; height: 46px; }
.er-hint-fab svg { width: 22px; height: 22px; }
.er-hint-fab-badge { transform: scale(.9); }

/* 4) Intro plavajoci elementi = stran od zgornjih kontrol (ne prekrivajo Aa/jezik) */
.er-iel.e1 { top: 16%; }
.er-iel.e2 { top: 17%; }

/* 5) Zakljucek = minimalisticen, pregleden (brez podvojenega besedila) */
.er-end-scene .er-end-slogan { margin: 6px 0 14px; }
.er-end-scene .er-end-score { margin: 4px 0 12px; }
.er-end-lead { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 2px 0 20px; }
.er-end-scene .er-btn { width: 100%; }
.er-end-scene .er-btn + .er-btn { margin-top: 10px; }
