
    body {
      background: #f7f1e7;
      color: #2f241c;
    }

    .story-wrap {
      max-width: 820px;
      position: relative;
    }

    .story-card {
      background: #fffaf2;
      border: 1px solid #ead9bf;
      border-radius: 1.5rem;
      box-shadow: 0 0.75rem 2rem rgba(75, 50, 25, 0.08);
    }

    #startScreen {
      background: #fffaf2;
    }

    .story-badge {
      background: #efe1c8;
      color: #4a3322;
    }

    .parent-note,
    .scene-copy,
    .closing-note {
      background: #f4ead8;
      border-radius: 1rem;
    }

    .start-cover {
      display: none;
    }

    .hero-cover {
      position: relative;
      width: 100%;
      background: #08141b;
    }

    .hero-img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 1.5rem 1.5rem 0 0;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    }

    .btn-hero-ghost {
      background: transparent;
      border: 1.5px solid rgba(255,255,255,0.45);
      color: rgba(255,255,255,0.75);
      font-size: 0.9rem;
    }

    .btn-hero-ghost:hover,
    .btn-hero-ghost:focus {
      background: rgba(255,255,255,0.12);
      border-color: rgba(255,255,255,0.7);
      color: #fff;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      text-align: center;
      padding: 2rem 1.5rem 2.5rem;
    }

    .hero-overlay .story-badge {
      display: none;
    }

    .hero-overlay h1 {
      display: none;
    }

    .hero-overlay .lead {
      display: none;
    }

    .hero-cta {
      position: absolute;
      left: 0;
      right: 0;
      bottom: clamp(1.25rem, 3vw, 2.25rem);
      /* display: flex; */
      /* justify-content: center; */
      /* padding-inline: 1rem; */
      z-index: 2;
    }

    .hero-pill {
      position: absolute;
      top: clamp(7.75rem, 2.5vw, 10.25rem);
      bottom: auto;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      display: inline-block;
      padding: 0.35rem 0.85rem;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: #fffaf2;
      background: rgba(20, 12, 6, 0.55);
      border: 1px solid rgba(255, 250, 242, 0.35);
      border-radius: 999px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      white-space: nowrap;
      max-width: calc(100% - 2rem);
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-width: 575.98px) {
      .hero-pill {
        top: auto;
        bottom: clamp(16.5rem, 18vw, 10rem);
      }
    }

    @media (max-width: 420px) {
      .hero-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
      }
    }

    .btn-hero {
      background: #8b572f;
      border-color: #8b572f;
      color: #fff;
      font-weight: 600;
      box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.35);
    }

    .btn-hero:hover,
    .btn-hero:focus {
      background: #744625;
      border-color: #744625;
      color: #fff;
    }

    .scene-image {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3; /* stabilan okvir bez obzira na dimenzije pojedine slike */
      object-fit: cover;
      object-position: center center;
      border-radius: 1.5rem 1.5rem 0 0;
      background: #f1e5d2;
      display: block;
    }

    .scene-nav {
      background: linear-gradient(180deg, #fffaf2 0%, #fbf3e3 100%);
      border-top: 1px solid #ead9bf;
      padding: 1.1rem 1.5rem 1.25rem;
      border-radius: 0 0 1.5rem 1.5rem;
    }

    .scene-nav-buttons {
      max-width: 460px;
      margin-inline: auto;
    }

    /* Elegantni okrugli gumbi za prev/next */
    .scene-nav .btn-story-outline {
      width: 48px;
      height: 48px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #fffaf2;
      border: 1px solid #d8c4a3;
      color: #7a4e2d;
      font-size: 1.15rem;
      box-shadow: 0 0.25rem 0.6rem rgba(75, 50, 25, 0.08);
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    }

    .scene-nav .btn-story-outline:hover,
    .scene-nav .btn-story-outline:focus-visible {
      background: #f4ead8;
      border-color: #7a4e2d;
      color: #5e3b21;
      transform: translateY(-1px);
      box-shadow: 0 0.5rem 1rem rgba(75, 50, 25, 0.14);
      outline: none;
    }

    .scene-nav .btn-story-outline:disabled,
    .scene-nav .btn-story-outline.disabled {
      opacity: 0.4;
      transform: none;
      box-shadow: none;
    }

    #playPauseBtn {
      width: 60px;
      height: 60px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      padding: 0;
      background: #7a4e2d;
      border: 0;
      color: #fff;
      box-shadow:
        0 0.6rem 1.4rem rgba(122, 78, 45, 0.32),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
      transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

    #playPauseBtn:hover,
    #playPauseBtn:focus-visible {
      background: #654025;
      transform: translateY(-1px) scale(1.03);
      box-shadow:
        0 0.75rem 1.6rem rgba(122, 78, 45, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
      outline: none;
    }

    #playPauseBtn:active {
      transform: translateY(0) scale(0.98);
    }

    .progress-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #e6d3b3;
      display: inline-block;
      transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
    }

    .progress-dot.active {
      background: #7a4e2d;
      width: 22px;
      border-radius: 999px;
    }

    .btn-story {
      background: #7a4e2d;
      border-color: #7a4e2d;
      color: #fff;
    }

    .btn-story:hover,
    .btn-story:focus {
      background: #654025;
      border-color: #654025;
      color: #fff;
    }

    .btn-story-outline {
      background: #ead9bf;
      border-color: #ead9bf;
      color: #3b291d;
    }

    .btn-story-outline:hover,
    .btn-story-outline:focus {
      background: #ddc7a5;
      border-color: #ddc7a5;
      color: #3b291d;
    }

    .quote-mark {
      border-left: 4px solid #7a4e2d;
    }

    #storyScreen {
      transition: none;
      overflow: hidden;
    }

    #sceneContent {
      will-change: transform, opacity;
    }

    @keyframes slideInRight {
      from { transform: translateX(60px); opacity: 0; }
      to   { transform: translateX(0);   opacity: 1; }
    }

    @keyframes slideInLeft {
      from { transform: translateX(-60px); opacity: 0; }
      to   { transform: translateX(0);    opacity: 1; }
    }

    @keyframes slideOutLeft {
      from { transform: translateX(0);    opacity: 1; }
      to   { transform: translateX(-60px); opacity: 0; }
    }

    @keyframes slideOutRight {
      from { transform: translateX(0);  opacity: 1; }
      to   { transform: translateX(60px); opacity: 0; }
    }

    #sceneContent.slide-out-left  { animation: slideOutLeft  0.28s ease forwards; }
    #sceneContent.slide-out-right { animation: slideOutRight 0.28s ease forwards; }
    #sceneContent.slide-in-right  { animation: slideInRight  0.32s ease forwards; }
    #sceneContent.slide-in-left   { animation: slideInLeft   0.32s ease forwards; }

    /* ============================================================
       DESKTOP / LAPTOP SPLIT LAYOUT za aktivnu scenu
       Slika lijevo, tekst desno, navigacija stalno vidljiva na dnu.
       ============================================================ */
    @media (min-width: 992px) {
      main:has(#storyScreen:not(.d-none)) .story-wrap {
        max-width: 1180px;
      }

      #storyScreen {
        display: flex;
        flex-direction: column;
        /* Cijela kartica priče stane u viewport (uz mjesto za header/back btn). */
        height: calc(100vh - 9rem);
        min-height: 560px;
        max-height: 880px;
      }

      #sceneContent {
        flex: 1 1 auto;
        min-height: 0; /* da grid djeca smiju biti niža od sadržaja */
        display: grid;
        grid-template-columns: minmax(0, 60%) minmax(0, 40%);
        grid-template-rows: minmax(0, 1fr); /* zaključaj visinu reda na raspoloživi prostor */
      }

      #sceneContent .scene-image {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        min-width: 0;
        min-height: 0;
        /* object-fit: contain; */
        object-position: center center;
        background: #f1e5d2;
        border-radius: 1.5rem 0 0 0;
        aspect-ratio: auto; /* poništi mobilni aspect-ratio na desktopu */
      }

      #sceneContent .scene-body {
        min-height: 0;
        overflow: hidden; /* skrol se događa unutar #sceneText, ne na cijelom panelu */
        padding: 2rem 2.25rem !important;
        background: #fffaf2;
        border-left: 1px solid #ead9bf;
        border-radius: 0 1.5rem 0 0;
        display: flex;
        flex-direction: column;
      }

      /* Tekstualni blok ispunjava preostali prostor desnog panela
         i sam skrola ako tekst premaši visinu — pozadina ostaje cijela. */
      #sceneContent .scene-body #sceneText {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        margin-bottom: 0 !important;
      }

      /* Topli "panel priče" — meka unutrašnja sjena za dubinu, ne hladan UI */
      #sceneContent .scene-body .scene-copy {
        background: #f4ead8;
      }

      #storyScreen .scene-nav {
        flex: 0 0 auto;
      }
    }

    @media (min-width: 1280px) {
      #storyScreen {
        height: calc(100vh - 10rem);
        max-height: 920px;
      }

      #sceneContent .scene-body {
        padding: 2.5rem 2.75rem !important;
      }
    }

/* Share & Contact block styles — warm Moji Korijeni treatment */
.share-contact-block {
  background: #fffaf2;
  border: 1px solid #ead9bf;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0.6rem 1.6rem rgba(75,50,25,0.06);
}
.share-contact-badge {
  display: inline-block;
  background: #efe1c8;
  color: #4a3322;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}
.share-card, .lead-card {
  background: #fffaf2;
  border-radius: 0.75rem;
  border: 1px solid #eedfc6;
  padding: 1rem;
}
.share-contact-small { color: #5b422e; font-size: 0.95rem; }

/* Base Korijeni buttons — soft, brown-outline, pill */
.mk-btn {
  background: transparent;
  border: 1.5px solid #8b5a2b;
  color: #6b4128;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(75,50,25,0.04);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.mk-btn:hover,
.mk-btn:focus {
  background: #f4ead8;
  transform: translateY(-1px);
}
.mk-btn-pill { padding-left: 1rem; padding-right: 1rem; }
.mk-btn-primary {
  background: #7a4e2d;
  color: #fff;
  border-color: #7a4e2d;
}
.mk-btn-primary:hover { background: #654025; border-color: #654025; }

/* small icon accents: use brand colors only for icons */
.mk-icon { font-size: 1.05rem; vertical-align: text-bottom; }
.mk-icon-wha { color: #25D366; opacity: 0.95; }
.mk-icon-fb  { color: #1877F2; opacity: 0.95; }

.email-lead-form .form-control { border-radius: 0.5rem; }
.lead-consent .form-check-input { margin-top: 0.3rem; }
.contact-divider { color: #7a4e2d; font-weight: 600; }
.lead-thanks { color: #37523d; background: #f3fbf3; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid #d8efe0; }

@media (max-width: 767.98px) {
  .share-contact-block { padding: 0.75rem; }
  .share-card, .lead-card { padding: 0.75rem; }
  .mk-btn { width: 100%; }
  .mk-btn + .mk-btn { margin-top: 0.5rem; }
}

    /* Mobitel i tablet (do desktop splita na 992px):
       fiksna navigacija na dnu viewporta, edge-to-edge slika i tekst ispod. */
    @media (max-width: 991.98px) {
      /* Edge-to-edge story screen */
      main:has(#storyScreen:not(.d-none)) {
        padding: 0 !important;
      }

      /* Povratni gumb ne smije biti zaljepljen za rub kad je main edge-to-edge */
      main:has(#storyScreen:not(.d-none)) .story-wrap > .back-bar {
        padding: 0.75rem 0.75rem 0;
      }

      #storyScreen {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        margin: 0;
        padding-bottom: 120px; /* space for fixed bottom nav */
      }

      #storyScreen .scene-image {
        border-radius: 0;
      }

      #storyScreen .scene-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
        border-top: 1px solid #ead9bf;
        border-bottom: 0;
        box-shadow: 0 -0.5rem 1.25rem rgba(75, 50, 25, 0.12);
        background: #fffaf2;
        z-index: 20;
      }

      #storyScreen .scene-nav #progress {
        margin-bottom: 0.5rem !important;
      }
    }

    @media (max-width: 576px) {
      .story-card {
        border-radius: 1.15rem;
      }

      .hero-cta {
        bottom: 1rem;
      }

      .btn-hero {
        font-size: 1rem;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
      }

      #storyScreen #playPauseBtn {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
      }

      #storyScreen .scene-body {
        padding: 1.25rem 1rem !important;
      }
    }
  .activity-card {
  background: #f4ead8;
  border: 1px solid #ead9bf;
  border-radius: 1.25rem;
}

.bojanka-preview {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid #ead9bf;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bojanka-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.bojanka-portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.bojanka-landscape {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.quiz-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(75, 50, 25, 0.08);
}

.btn-quiz {
  background: #fffaf2;
  border: 1px solid #dfc9a8;
  color: #3b291d;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  font-size: 1.05rem;
}

.btn-quiz:hover,
.btn-quiz:focus {
  background: #f0dfc3;
  border-color: #cfae7d;
  color: #2f241c;
}

.btn-quiz.is-correct {
  background: #dfeecf;
  border-color: #9bbd71;
  color: #294014;
}

.btn-quiz.is-wrong {
  background: #f4d6cf;
  border-color: #d3988a;
  color: #5e2a20;
}

.quiz-feedback {
  min-height: 1.75rem;
  font-weight: 600;
}

.quiz-feedback.correct {
  color: #466a24;
}

.quiz-feedback.wrong {
  color: #8b4332;
}

/* DIGITALNA BOJANKA */
.activity-card {
  background: #f4ead8;
  border: 1px solid #ead9bf;
  border-radius: 1.25rem;
}

.color {
  max-width: 560px;
  margin-inline: auto;
}

.color {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #fffaf2;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #cfb58f, 0 4px 10px rgba(75, 50, 25, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color:hover,
.color:focus {
  transform: translateY(-2px);
}

.color.active {
  box-shadow: 0 0 0 4px #7a4e2d, 0 5px 14px rgba(75, 50, 25, 0.22);
}

.color-red    { background: #d94b3d; }
.color-orange { background: #f29a2e; }
.color-yellow { background: #f4cf4a; }
.color-green  { background: #69a84f; }
.color-blue   { background: #4f8ecf; }
.color-brown  { background: #8b5a2b; }
.color-beige  { background: #ead7b7; }
.color-black  { background: #000000; }
.color-gray   { background: #808080; }

.svgbox {
  background: #fffaf2;
  border: 1px solid #ead9bf;
  border-radius: 20px;
  overflow: hidden;
}
object {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1402/1122;
}

#svgbox > svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1402/1122;
}

.digital-coloring-wrap {
  background: #fffaf2;
  border: 1px solid #ead9bf;
  border-radius: 1.25rem;
  padding: 1rem;
  overflow: hidden;
}

.digital-coloring-svg {
  display: block;
  width: 100%;
  height: min(70vw, 560px);
  border: 0;
}

@media (max-width: 576px) {
  .color {
    width: 42px;
    height: 42px;
  }

  .digital-coloring-svg {
    height: 78vw;
  }
}

/* ====== FULLSCREEN BOJANKA ====== */
.coloring-fs {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: #fffaf2;
  display: flex;
  flex-direction: column;
}

.coloring-fs.d-none { display: none !important; }

.coloring-fs-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.coloring-fs-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.coloring-fs-stage object,
.coloring-fs-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
}

.coloring-fs-palette {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #f4ead8;
  border-top: 1px solid #ead9bf;
}

.coloring-fs-palette .color {
  width: 44px;
  height: 44px;
}

@media (orientation: landscape) and (max-height: 500px) {
  .coloring-fs-palette .color {
    width: 36px;
    height: 36px;
  }
  .coloring-fs-palette {
    padding: 0.4rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom));
    gap: 0.4rem;
  }
}

/* ====== SIGNAL BLOK (povratna informacija) ====== */
.signal-block {
  background: linear-gradient(135deg, #fff4dd 0%, #f4ead8 100%);
  border: 1px solid #e3c98f;
  border-radius: 1.5rem;
  box-shadow: 0 0.75rem 2rem rgba(75, 50, 25, 0.08);
}

.signal-badge {
  background: #7a4e2d;
  color: #fffaf2;
}

.signal-choice {
  background: #fffaf2;
  border: 2px solid #ead9bf;
  border-radius: 1.1rem;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  color: #3b291d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.signal-choice:hover,
.signal-choice:focus-visible {
  transform: translateY(-3px);
  border-color: #c79a5a;
  box-shadow: 0 0.6rem 1.4rem rgba(75, 50, 25, 0.16);
  outline: none;
}

.signal-choice.is-selected {
  background: #f0dfc3;
  border-color: #7a4e2d;
  box-shadow: 0 0.5rem 1.2rem rgba(122, 78, 45, 0.22);
}

.signal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f4ead8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #7a4e2d;
  margin-bottom: 0.25rem;
}

.signal-choice.is-selected .signal-icon {
  background: #7a4e2d;
  color: #fffaf2;
}

.signal-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

.signal-sub {
  font-size: 0.85rem;
  color: #6b5340;
  line-height: 1.3;
}

.signal-thanks {
  font-weight: 600;
  color: #466a24;
  font-size: 1.05rem;
}

/* ====== CONTINUE LINK ====== */
.continue-hint {
  margin-top: 1.5rem;
}

.continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #7a4e2d;
  background: transparent;
  border: 1px solid rgba(122, 78, 45, 0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.continue-link:hover,
.continue-link:focus-visible {
  background: rgba(122, 78, 45, 0.08);
  border-color: rgba(122, 78, 45, 0.5);
  color: #5e3b21;
  outline: none;
}

.continue-arrow {
  font-size: 1.25rem;
  line-height: 1;
  animation: continueBob 1.8s ease-in-out infinite;
}

.continue-link:hover .continue-arrow,
.continue-link:focus-visible .continue-arrow {
  animation-duration: 1.1s;
}

@keyframes continueBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .continue-arrow { animation: none; }
}

/* ====== BACK BAR (Povratak na početnu) ====== */
.back-bar {
  margin-bottom: 1rem;
  position: relative;
}

.back-toggle {
  display: none; /* skriveno na desktopu */
}

.back-link {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 991.98px) {
  .back-bar {
    /* Toggle "lebdi" gore lijevo nad herojem, ne zauzima vlastiti red */
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 30;
    margin-bottom: 0;
    display: block;
  }

  .back-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 250, 242, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 0;
    color: #4a3322;
    font-size: 1rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.12);
    transition: background 0.18s ease, transform 0.18s ease;
  }

  .back-toggle:hover,
  .back-toggle:focus-visible {
    background: rgba(255, 250, 242, 0.95);
    outline: none;
  }

  .back-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }
  .back-toggle i {
    transition: transform 0.2s ease;
  }

  .back-link {
    /* Skriven dok se ne otvori; pojavi se kao mali "popover" ispod gumba */
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem !important;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.9rem;
    background: #fffaf2;
    border: 1px solid #ead9bf;
    box-shadow: 0 0.6rem 1.4rem rgba(75, 50, 25, 0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
  }

  .back-link .h5 {
    font-size: 0.9rem !important;
  }

  .back-bar.is-open .back-link {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Kad je back-bar absolute nad herojem, ne treba poseban padding na wrapperu */
  main:has(#storyScreen:not(.d-none)) .story-wrap > .back-bar {
    padding: 0;
  }
}
