/* ── Font ────────────────────────────────────────────── */
/* Font loaded via Google Fonts: Bebas Neue */

/* ── Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #e3b333;
  font-family: Arial, Helvetica, sans-serif;
}

/* ── Intro Section ───────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3b333;
  z-index: 10;
  transition: opacity 0.5s ease;
}

#intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#skip-btn {
  display: none;
}

/* ── Landing Section ─────────────────────────────────── */
#landing {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #c8a84e;
  z-index: 5;
}

.landing-wrap{
  position: relative;
  width: 100%;
  transform: translateZ(0);
  min-height: 100vh;              /* umjesto 100% */
  display: flex;
  flex-direction: column;
  align-items: center;

  background-image: url("assets/images/background.jpg");
  background-repeat: no-repeat;   /* da se ne tile-a */
  background-position: center;    /* centriraj */
  background-size: cover;         /* popuni ekran bez “krzanja” */
}

/* ── Landing Logo ─────────────────────────────────────── */
.landing-logo {
    max-width: 360px;
    position: relative;
    display: block;
    width: clamp(280px, 38vw, 620px);
    height: auto;
    margin: 0 auto;
    z-index: 3;
    pointer-events: none;
    padding: 50px 0px 20px;
}

/* ── Landing Yellow Box ──────────────────────────────── */
.landing-box {
  position: relative;
  width: 62%;
  max-width: 820px;
  margin-top: 1.5vw;
  padding: 40px 30px 80px;
  background: linear-gradient(-64deg,#c6911f 0%,#f7de50 100% );
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(100, 70, 20, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2;
}

/* ── Landing Intro Text ──────────────────────────────── */
.landing-intro-text {
  width: 100%;
  text-align: center;
}

.landing-intro-text p {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #4a3220;
    margin: 0;
    text-transform: uppercase;
}

.intro-bordo {
  color: #7a331e;
}

.intro-red {
  color: #9f3617;
}

/* ── Landing Text (Kako učestvovati) ─────────────────── */
.landing-text {
  width: 100%;
  text-align: center;
}

.landing-text__title {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #7a331e;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.landing-text__main {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #7a331e;
    margin: 0 0 18px 0;
    text-transform: uppercase;
}

.landing-text__sub {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #7a331e;
  margin: 0;
  text-transform: uppercase;
}

.landing-text__link {
    color: #9f3617;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-text__link:hover {
  color: #5a2010;
}

/* ── Landing Prizes ──────────────────────────────────── */
.landing-prizes {
  width: 100%;
}

.landing-prize-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Landing Video ───────────────────────────────────── */
.landing-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 40px;
  background: linear-gradient(135deg, #f2d96a 0%, #ecd058 50%, #e8c94c 100%);
  padding: 8px 120px;
  overflow: visible;
}

.landing-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin-top: -50px;
  margin-bottom: -30px;
}

.landing-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.landing-video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.landing-video-play.hidden-play {
  opacity: 0;
  pointer-events: none;
}

/* ── Landing CTA Button ──────────────────────────────── */
.landing-start-btn {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-bottom: 60px;
  z-index: 5;
}

.landing-start-btn:hover {
  transform: scale(1.05);
}

.landing-btn-img {
  max-width: 220px;
  display: block;
  width: clamp(200px, 22vw, 360px);
  height: auto;
}

/* ── Landing Footer ─────────────────────────────────── */
.landing-footer {
    margin-top: 20px;
    margin-left: auto;
    width: 100%;
    max-width: 780px;
    background: none;
    padding: 16px 0 8px;
    box-sizing: border-box;
    margin-right: auto;
}

.landing-footer .footer-row {
  justify-content: space-between;
  gap: 4px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.footer-row > * {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
}

.footer-row > :nth-child(3) {
  padding-left: 90px;
}

.footer-row > :nth-child(4) {
  text-align: center;
  justify-content: center;
  position: relative;
  margin-right: 10px;
}

.footer-row > :nth-child(5) {
  margin-left: 10px;
}

.footer-row > :nth-child(4)::after {
 display: none;
}

.footer-row > * {
  white-space: nowrap;
}

.footer-row a {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: #7a331e;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-row a:hover {
  color: #5a2010;
}

.footer-sep {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 14px;
  color: #7a331e;
  user-select: none;
}

.footer-sep-wide {
  width: 12px;
  font-size: 0;
}

.footer-brand-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.footer-podravka-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.footer-brand {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #7a331e;
  letter-spacing: 0.8px;
}

.footer-podravka-logo {
  height: 24px;
  width: auto;
  display: block;
}

.footer-brand-sub {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 6px;
  font-weight: 400;
  color: #7a331e;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-left: 22px;
}

.footer-social {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.footer-social a {
  color: #7a331e;
  display: inline-flex;
  align-items: center;
  font-size: 0;
}

.footer-social a:hover {
  color: #5a2010;
}

.footer-copy {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #7a331e;
  text-transform: uppercase;
}
/* ── Winners list ───────────────────────────────────── */
.winners {
  width: 100%;
  margin: 10px 0 0;
}

.winners-title {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a331e;
  margin: 6px 0 12px;
}

.winners-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.winner-item {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7a331e;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(122, 51, 30, 0.25);
  border-radius: 12px;
  text-align: left;
}

/* Mobile: jedna ispod druge */
@media (max-width: 768px) {
  .winners-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .winner-item {
    font-size: 18px;
    padding: 10px 12px;
  }
}
/* ── Game Section ────────────────────────────────────── */
#game {
  position: relative;
  width: 100%;
  height: 100%;
  background: url('assets/images/izazovi.png') center / cover no-repeat;
}

/* ── Game Logos ──────────────────────────────────────── */
.game-logo {
    max-width: 360px;
    position: relative;
    display: block;
    width: clamp(280px, 38vw, 620px);
    height: auto;
    margin: 0 auto;
    z-index: 15;
    pointer-events: none;
    padding: 50px 0px 50px;
}

/* ── Game Footer (challenge screens — separate from landing footer) ── */
.game-footer {
    margin-top: 20px;
    max-width: 780px;
    position: relative;
    bottom: 0;
    width: 100%;
    background: none;
    padding: 8px 40px;
    box-sizing: border-box;
    z-index: 15;
    margin-left: auto;
    margin-right: auto;
}

.game-footer .footer-row {
  justify-content: space-between;
  gap: 4px 0;
}


/* ── Challenge Screens (shared wrapper) ──────────────── */
#challenge1,
#challenge2,
#challenge3,
#thank-you {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Game Yellow Box (shared by all challenges) ───────── */
.game-box {
  position: relative;
  width: 62%;
  max-width: 820px;
  padding: 50px 48px 60px;
  background: linear-gradient(-64deg,#c6911f 0%,#f7de50 100% );
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(100, 70, 20, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  overflow: visible;
}

.game-box--wide {
  width: 62%;
  max-width: 820px;
  min-height: 420px;
  padding: 50px 48px 60px;
}

/* ── NAZAD button (shared style for all challenges) ───── */
.game-back-btn {
  position: absolute;
  top: -40px;
  left: 20px;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: #7a331e;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.game-back-btn:hover {
  opacity: 0.7;
}

/* ── Challenge 1: NAZAD button (legacy, keep for JS) ──── */
.c1-back-btn {
    height: 40px;
    display: block !important;
    margin-bottom: 20px;
    position: absolute;
    top: 6px;
    left: 6px;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #7a331e;
    background: none;
    border: 2px solid #7a331e;
    border-radius: 28px;
    padding: 4px 14px;
    cursor: pointer;
    z-index: 20;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.c1-back-btn:hover {
  background: rgba(122, 51, 30, 0.15);
}

/* ── Content Container (sits inside yellow box) ────── */
.challenge-content {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding: 0;
    width: 100%;
}

/* ── Challenge Heading ────────────────────────────────── */
.challenge-heading {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7a331e;
  text-align: center;
  margin-bottom: 8px;
}

/* ── Recipe Card Stack ────────────────────────────────── */
.recipe-stack {
  display: flex;
  justify-content: center;
  align-items: center;
}

.recipe-card {
  position: relative;
  width: 130px;
  height: 140px;
  border: 3px solid #d6a63a;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8c95a 0%, #c99a2e 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* overlap: all cards except the first shift left */
.recipe-card + .recipe-card {
  margin-left: -22px;
}

/* z-index: fan out from center (card 3 = highest) */
.recipe-card:nth-child(1) { z-index: 1; }
.recipe-card:nth-child(2) { z-index: 2; }
.recipe-card:nth-child(3) { z-index: 5; transform: scale(1.08); }
.recipe-card:nth-child(4) { z-index: 2; }
.recipe-card:nth-child(5) { z-index: 1; }

/* hover: card pops out */
.recipe-card:hover {
  transform: scale(1.18) translateY(-12px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 10;
}
.recipe-card:nth-child(3):hover {
  transform: scale(1.24) translateY(-12px);
}

/* inner shine highlight */
.recipe-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 3;
}

.recipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* hover overlay with recipe title */
.recipe-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.recipe-card:hover .recipe-card__overlay,
.recipe-card--selected .recipe-card__overlay {
  opacity: 1;
}

.recipe-card--selected {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.recipe-card__title {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  -webkit-font-smoothing: antialiased;
}

/* ── Responsive: reduce overlap on small screens ─────── */
@media (max-width: 600px) {
  .recipe-card {
    width: 90px;
    height: 100px;
    border-width: 3px;
    border-radius: 16px;
  }

  .recipe-card + .recipe-card {
    margin-left: -18px;
  }

  .recipe-card img {
    border-radius: 13px;
  }

  .recipe-card::after {
    border-radius: 13px;
  }
}

/* ── Start / CTA Button ──────────────────────────────── */
.start-btn.cta-badge {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.2s ease;
}

.start-btn.cta-badge:hover {
  transform: scale(1.05);
}

.start-btn-img {
  display: block;
  width: clamp(160px, 16vw, 280px);
  height: auto;
      max-width: 180px;
}

/* ── Challenge 2 ─────────────────────────────────────── */

/* ── Challenge 2: NAZAD button ────────────────────────── */
.c2-back-btn  {
    height: 40px;
    display: block !important;
    margin-bottom: 20px;
    position: absolute;
    top: 6px;
    left: 6px;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #7a331e;
    background: none;
    border: 2px solid #7a331e;
    border-radius: 28px;
    padding: 4px 14px;
    cursor: pointer;
    z-index: 20;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.c2-back-btn:hover {
  background: rgba(122, 51, 30, 0.15);
}

/* ── Challenge 2: Left text block (static) ───────────── */
.c2-left-text {
  position: absolute;
  top: 18%;
  left: 3%;
  width: 24%;
  bottom: 2%;
  z-index: 5;
  padding: 0 8px;
  display: flex;
  align-items: flex-start;
}

.c2-left-text p {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #7a331e;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}
.c2-highlight {
  color: #8b1a1a;
}

/* ── Challenge 2: Gift box (kutija) ─────────────────── */
.c2-kutija {
  position: absolute;
  top: -12%;
  left: 20%;
  transform: rotate(18deg);
  width: 100px;
  height: auto;
  z-index: 14;
  pointer-events: none;
}

.c2-kutija--shaking {
  animation: kutijaShake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes kutijaShake {
  0%   { transform: rotate(18deg) scale(1); }
  10%  { transform: rotate(24deg) scale(1.08); }
  20%  { transform: rotate(12deg) scale(1.06); }
  30%  { transform: rotate(22deg) scale(1.04); }
  40%  { transform: rotate(14deg) scale(1.02); }
  50%  { transform: rotate(20deg) scale(1); }
  100% { transform: rotate(18deg) scale(1); }
}

/* ── Challenge 2: Blur ingredients before START ─────── */
.c2-scatter--blurred .c2-scatter-item {
  filter: blur(8px);
  pointer-events: none;
}

/* ── Challenge 2: Scatter area (center) ──────────────── */
.c2-scatter {
  position: absolute;
  top: 5%;
  left: 27%;
  width: 44%;
  height: 85%;
  z-index: 6;
  background:
    linear-gradient(to right, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.18) 1px, transparent 1px),
    rgba(160, 120, 40, 0.15);
  background-size: 50px 50px, 50px 50px, 100% 100%;
  border-radius: 16px;
}

.c2-scatter-item {
  position: absolute;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg)) skewX(var(--skew, 0deg));
  transition: transform 0.2s ease, filter 0.2s ease;
  background: transparent;
  opacity: 0;
}

/* Fly animation only triggers after START is clicked */
.c2-scatter--flying .c2-scatter-item {
  animation: flyFromBox 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--pop-delay, 0s);
}

@keyframes flyFromBox {
  0% {
    opacity: 0;
    left: var(--box-x, 10%);
    top: var(--box-y, 0%);
    transform: rotate(0deg) scale(0.2);
  }
  15% {
    opacity: 1;
    transform: rotate(calc(var(--rot, 0deg) * 0.3)) scale(0.5);
  }
  50% {
    left: var(--final-x, 30%);
    top: var(--final-y, 30%);
    transform: rotate(calc(var(--rot, 0deg) + 15deg)) skewX(var(--skew, 0deg)) scale(1.15);
  }
  70% {
    transform: rotate(calc(var(--rot, 0deg) - 5deg)) skewX(var(--skew, 0deg)) scale(0.95);
  }
  85% {
    transform: rotate(calc(var(--rot, 0deg) + 2deg)) skewX(var(--skew, 0deg)) scale(1.04);
  }
  100% {
    opacity: 1;
    left: var(--final-x, 30%);
    top: var(--final-y, 30%);
    transform: rotate(var(--rot, 0deg)) skewX(var(--skew, 0deg)) scale(1);
  }
}

.c2-scatter-item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.c2-scatter-item:hover {
  transform: rotate(var(--rot, 0deg)) skewX(0deg) scale(1.15);
  z-index: 10;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.3));
}

.c2-scatter-item--clicked {
  pointer-events: none;
}

.c2-scatter-item--correct img {
  filter: drop-shadow(0 0 6px #2e7d32) drop-shadow(0 0 3px #2e7d32);
}

.c2-scatter-item--wrong img {
  filter: drop-shadow(0 0 8px #c0392b) drop-shadow(0 0 4px #c0392b) drop-shadow(0 0 2px #e74c3c);
}

/* ── Challenge 2: Right panel (recipe info) ──────────── */
.c2-right-panel {
  position: absolute;
  top: 5%;
  right: 2%;
  width: 24%;
  bottom: 2%;
  padding: 8px 12px;
  z-index: 5;
}


.c2-recipe-title {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a331e;
    line-height: 1;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #a07828;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

.c2-ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c2-ingredient-list li {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #7a331e;
    line-height: 1;
    padding: 4px 0;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.c2-ingredient-list li.c2-ing-correct {
  color: #2e7d32;
}

.c2-ingredient-list li.c2-ing-wrong {
  color: #c0392b;
}

/* ── Challenge 2: START button ───────────────────────── */
.c2-start-btn {
  position: absolute;
  top: 45%;
  left: 48%;
  transform: translate(-50%, -50%);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 15;
  transition: transform 0.2s ease;
}

.c2-start-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.c2-start-img {
  display: block;
  width: clamp(100px, 10vw, 160px);
  height: auto;
}

/* ── Challenge 2: Timer Overlay (circular progress) ──── */
.c2-timer {
  position: absolute;
  bottom: 10%;
  right: 30%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
}

.c2-timer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.c2-timer-ring__bg {
  fill: #fae8c0;
  stroke: #e0c9a0;
  stroke-width: 6;
}

.c2-timer-ring__progress {
  fill: none;
  stroke: #c0392b;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 263.89;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

#c2-timer-num {
  position: relative;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #7a2e2a;
  line-height: 1;
  z-index: 2;
  -webkit-font-smoothing: antialiased;
}

/* ── Challenge 2: Time's Up Popup ─────────────────────── */
.c2-popup {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: popup-fade-in 0.4s ease;
}

@keyframes popup-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popup-scale-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.c2-popup-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(170deg, #f5e6a3 0%, #e8c84a 40%, #d4a832 100%);
  border: 4px solid #c49a2a;
  border-radius: 24px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  max-width: 420px;
  width: 85%;
  animation: popup-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.c2-popup-title {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b1a1a;
  margin: 0 0 14px 0;
  line-height: 1.1;
}

.c2-popup-text {
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: #4a3220;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.c2-popup-btn {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(180deg, #e74c3c 0%, #b71c1c 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c2-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.c2-popup-btn:active {
  transform: translateY(0);
}

/* ── Challenge 3 ─────────────────────────────────────── */

/* ── Challenge 3: NAZAD button ────────────────────────── */
.c3-back-btn  {
    height: 40px;
    display: block !important;
    margin-bottom: 20px;
    position: absolute;
    top: 6px;
    left: 6px;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #7a331e;
    background: none;
    border: 2px solid #7a331e;
    border-radius: 28px;
    padding: 4px 14px;
    cursor: pointer;
    z-index: 20;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.c3-back-btn:hover {
  background: rgba(122, 51, 30, 0.15);
}

/* ── Challenge 3: Form ───────────────────────────────── */
.c3-form {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  padding: 0;
  box-sizing: border-box;
}

.c3-title {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a331e;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 6px;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
}

.c3-row {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.c3-row--last {
  align-items: flex-end;
}

.c3-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.c3-field-half {
  flex: 1;
}

.c3-row-inner {
  display: flex;
  gap: 12px;
}

.c3-field--inner-big {
  flex: 1.4;
}

.c3-field--inner-small {
  flex: 0.6;
}

.c3-label {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7a331e;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.c3-input {
  width: 100%;
  padding: 8px 10px;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: #4a3220;
  background: #d4a82a;
  border: none;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.c3-input:focus {
  background: #c99b1f;
}

.c3-submit {
  display: block;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
  align-self: flex-end;
}

.c3-submit-img {
  top: 4px;
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ── Screen Transitions ─────────────────────────────── */
.screen-fade-out {
  animation: screenOut 0.4s ease forwards;
}

.screen-fade-in {
  animation: screenIn 0.45s ease forwards;
}

@keyframes screenOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.97); }
}

@keyframes screenIn {
  0%   { opacity: 0; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Mobile Styles ────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Landing ─────────────────────────────────────── */
  #landing {
    background-color: #c8a84e;
  }

  .landing-wrap {
    background: url('assets/images/mobile_dolcela.png') center top / cover no-repeat fixed;
    min-height: 100%;
    padding-bottom: 4vw;
  }

  /* Logo */
  .landing-logo {
    width: 68vw;
    max-width: 420px;
    margin-top: 3vw;
  }

  /* Yellow box */
  .landing-box {
    width: 92vw;
    margin-top: 2vw;
    padding: 4vw 4vw 5vw;
    border-radius: 4vw;
    gap: 3vw;
  }

  /* Intro text */
  .landing-intro-text {
    width: 96%;
  }

  .landing-intro-text p {
    font-size: 18px;
  }

  /* "Kako učestvovati" */
  .landing-text {
    width: 96%;
  }

  .landing-text__title {
    font-size: 24px;
    letter-spacing: 0.5px;
    margin-bottom: 1.5vw;
  }

  .landing-text__main {
    font-size: 18px;
    letter-spacing: 0.2px;
    line-height: 1.4;
    margin-bottom: 1.5vw;
  }

  .landing-text__sub {
    font-size: 18px;
  }

  /* Prizes box */
  .landing-prizes {
    width: 100%;
    padding: 2vw 2vw;
    border-radius: 3vw;
  }

  .landing-prize-img {
    max-width: 100%;
  }

  /* Video box */
  .landing-video-wrap {
    width: 100%;
    padding: 2vw 8vw;
    border-radius: 3vw;
  }

  .landing-video {
    margin-top: -4vw;
    margin-bottom: -3vw;
    border-radius: 2.5vw;
  }

  /* CTA button */
  .landing-start-btn {
    margin-bottom: 2vw;
  }

  .landing-btn-img {
        margin: 30px;
        max-width: 200px;
    }

  /* Footer */
  .landing-footer {
    width: 92vw;
    padding: 2vw 2vw 3vw;
  }

  .ty-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 92vw;
    padding: 2vw 2vw 3vw;
  }

  .footer-row a {
    font-size: 1.8vw !important;
    letter-spacing: 0.2px !important;
  }

  .footer-row > :nth-child(3) {
    padding-left: 3vw !important;
  }

  .footer-row > :nth-child(4) {
    margin-right: 1vw !important;
  }

  .footer-row > :nth-child(5) {
    margin-left: 1vw !important;
  }

  .footer-row > :nth-child(4)::after {
    right: 1vw;
  }

  .footer-brand {
    font-size: 1.8vw !important;
  }

  .footer-brand-sub {
    font-size: 0.9vw !important;
    margin-left: 2vw !important;
    letter-spacing: 0.3px !important;
  }

  .footer-podravka-logo {
    height: 3.5vw !important;
  }

  .footer-copy {
    font-size: 1.2vw !important;
  }

  .footer-social {
    gap: 1.5vw !important;
  }

  .footer-social a svg {
    width: 2.5vw !important;
    height: 2.5vw !important;
  }

  /* ── Game Section (mobile flex column) ──────────── */
  #game {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: url('assets/images/mobile_dolcela.png') center top / cover no-repeat fixed;
  }

  /* Logo → order 1, challenges → order 2, footer → order 3 */
  .game-logo {
    width: 68vw;
    max-width: 420px;
    margin-top: 3vw;
    order: 1;
  }

  .game-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 92vw;
    padding: 1vw 2vw 2vw;
    order: 3;
    margin-top: auto;
  }

  /* ── Challenge Screens (shared mobile) ───────────── */
  #challenge1,
  #challenge2,
  #challenge3,
  #thank-you {
    position: relative;
    inset: unset;
    width: 100%;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: visible;
    padding-top: 1vw;
    padding-bottom: 1vw;
    order: 2;
  }

  /* ── Game box: yellow box like desktop ─────────────── */
  .game-box,
  .game-box--wide {
    background: linear-gradient(180deg, #e6c040 0%, #ddb838 30%, #d5b030 70%, #d0aa2c 100%);
    box-shadow: 0 8px 32px rgba(100, 70, 20, 0.18);
    border-radius: 4vw;
    width: 92vw;
    margin-top: 0;
    padding: 4vw 4vw 5vw;
  }

  .game-box--wide {
    min-height: 150vw;
  }

  /* ── NAZAD buttons — inside flow, top of box ─────── */
  .c1-back-btn,
  .c2-back-btn,
  .c3-back-btn {
    position: relative;
    top: auto;
    left: auto;
    font-size: 3.5vw;
    padding: 1.5vw 3.5vw;
    width: auto;
    height: auto;
    align-self: flex-start;
    margin-bottom: 1vw;
  }

  /* ── Challenge 1 ──────────────────────────────────── */
  .challenge-content {
    padding: 0;
    gap: 2vw;
    width: 100%;
  }

    .challenge-heading {
        font-size: 24px;
        font-weight: 100;
        letter-spacing: 0.4px;
        margin: 20px 0px;
        max-width: 90%;
    }

  .recipe-stack {
    flex-direction: column;
    width: 82vw;
    gap: 1.8vw;
  }

  .recipe-card {
    width: 100%;
    height: 16vw;
    border-width: 2px;
    border-radius: 3vw;
  }

  .recipe-card + .recipe-card {
    margin-left: 0;
  }

  .recipe-card:nth-child(3) {
    transform: none;
  }

  .recipe-card:hover {
    transform: scale(1.03);
  }

  .recipe-card:nth-child(3):hover {
    transform: scale(1.03);
  }

  .recipe-card img {
    border-radius: 3vw;
  }

  .recipe-card::after {
    border-radius: 3vw;
  }

      .recipe-card__title {
        font-size: 20px;
        letter-spacing: 0;
        font-weight: 100;
    }

  .recipe-card__overlay {
    border-radius: 2.5vw;
    padding: 2px;
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
  }

  .start-btn.cta-badge {
    margin-top: 1.5vw;
  }

  .start-btn-img {
    width: 45vw;
    max-width: 260px;
  }

  /* ── Challenge 2 ──────────────────────────────────── */
  .c2-back-btn {
    position: absolute;
    top: 2vw;
    left: 3vw;
    font-size: 3.5vw;
    padding: 1.5vw 3.5vw;
    z-index: 20;
  }

  .c2-left-text {
        top: 13vw;
        left: 0%;
        width: 100%;
        bottom: auto;
        text-align: center;
        padding: 0px 30px;
        z-index: 15;
        pointer-events: none;
    }

  .c2-left-text p {
        font-size: 14px;
        line-height: 1.2;
        letter-spacing: 0.4px;
    }

  .c2-kutija {
    top: 30vw;
    left: 2%;
    width: 15vw;
    z-index: 4; /* always below text (z-index: 5) */
  }

  .c2-kutija--shaking {
    animation: kutijaShakeMobile 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }

  @keyframes kutijaShakeMobile {
    0%   { transform: rotate(10deg) scale(1); }
    10%  { transform: rotate(16deg) scale(1.1); }
    20%  { transform: rotate(4deg) scale(1.07); }
    30%  { transform: rotate(14deg) scale(1.04); }
    40%  { transform: rotate(6deg) scale(1.02); }
    50%  { transform: rotate(12deg) scale(1); }
    100% { transform: rotate(10deg) scale(1); }
  }

  .c2-scatter {
    top: 38vw;
    left: 5%;
    width: 90%;
    height: 72vw;
    background:
      linear-gradient(to right, rgba(255,255,255,0.15) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.15) 1px, transparent 1px),
      rgba(160, 120, 40, 0.12);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    border-radius: 3vw;
  }

  .c2-scatter-item {
    width: 13vw !important;
  }

  .c2-right-panel {
    top: auto;
    bottom: 3vw;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    min-height: auto;
    text-align: center;
    padding: 2vw 3vw;
  }

        .c2-recipe-title {
        letter-spacing: 0;
        font-weight: 100;
        font-size: 20px;
        margin: 0 auto 1vw auto;
        padding-bottom: 1vw;
        width: 100%;
        text-align: center;
        border-bottom-width: 2px;
    }

      .c2-ingredient-list {
        margin-top: 6px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3vw 2.5vw;
    }

  .c2-ingredient-list li {
    font-size: 18px;
    padding: 0;
  }

  .c2-start-btn {
    top: 72vw;
    left: 48%;
    z-index: 15;
  }

  .c2-start-img {
    width: 25vw;
    max-width: 140px;
  }

  .c2-timer {
    top: 95vw;
    bottom: auto;
    left: 78%;
    width: 11vw;
    height: 11vw;
  }

  #c2-timer-num {
    font-size: 4vw;
  }

  /* ── Mobile: Time's Up Popup ───────────────────────── */
  .c2-popup-box {
    padding: 5vw 4vw;
    max-width: 80vw;
    border-radius: 4vw;
    border-width: 2px;
  }

  .c2-popup-title {
    font-size: 6vw;
    letter-spacing: 1px;
    margin-bottom: 2vw;
  }

  .c2-popup-text {
    font-size: 3vw;
    margin-bottom: 3vw;
  }

  .c2-popup-btn {
    padding: 2vw 6vw;
    font-size: 4vw;
    letter-spacing: 1px;
    border-radius: 2vw;
  }

  /* ── Challenge 3 ──────────────────────────────────── */
  .c3-form {
    width: 100%;
    margin-top: 0;
    gap: 2.5vw;
    padding: 0 2vw;
  }

      .c3-title {
        font-size: 20px;
        letter-spacing: 0.4px;
        max-width: 92%;
        margin-bottom: 1vw;
        line-height: 1.3;
    }

  .c3-row {
    flex-direction: column;
    gap: 2vw;
  }

  .c3-row--last {
    flex-direction: column;
    align-items: stretch;
  }

  .c3-row-inner {
    flex-direction: column;
    gap: 2vw;
  }

  .c3-label {
    font-size: 16px;
    margin-bottom: 0.5vw;
  }

  .c3-input {
    padding: 1.5vw 2vw;
    font-size: 3.2vw;
    border-radius: 1.5vw;
  }

  .c3-submit {
    align-self: center;
    width: 100%;
  }

  .c3-submit-img {
    width: 100%;
    border-radius: 5px;
  }

  /* ── Mobile: Thank You ─────────────────────────────── */
  #thank-you .game-box {
    padding: 8vw 5vw 10vw;
    gap: 3vw;
    margin-top: 15vw;
  }

  #thank-you .ty-logo {
    display: none;
  }

  #thank-you .ty-footer {
    display: none;
  }

  /* ── Thank You (mobile) — scale down entire block ── */
  .ty-content {
    width: 100%;
    max-width: none;
    transform: none;
    gap: 3vw;
  }

  .ty-heading {
    font-size: 7vw;
    letter-spacing: 2px;
  }

  .ty-subtext {
    font-size: 3.4vw;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  .ty-recipe-card {
    padding: 3vw;
    border-radius: 3vw;
    gap: 2vw;
  }

  .ty-recipe-img {
    width: 50vw;
    height: 32vw;
    border-radius: 2.5vw;
  }

  .ty-recipe-title {
    font-size: 4vw;
    letter-spacing: 1px;
  }

  .ty-recipe-link {
    font-size: 3vw;
    padding: 2vw 4vw;
  }

  .ty-share-label {
    font-size: 3vw;
    margin-top: 2vw;
  }

  .ty-share-buttons {
    gap: 3vw;
  }

  .ty-share-btn span {
    display: none;
  }

  .ty-share-btn {
    border-radius: 50%;
    min-width: 0;
    padding: 2.5vw;
  }

  .ty-share-btn svg {
    width: 5vw;
    height: 5vw;
  }

  .ty-home-btn {
    font-size: 3.5vw;
    padding: 2.5vw 6vw;
    letter-spacing: 1px;
    border-radius: 2vw;
    margin-top: 2vw;
  }
}

/* ── Thank You Screen ────────────────────────────────── */

.ty-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 10;
  text-align: center;
  width: 100%;
}

.ty-heading {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 30px;
  font-weight: normal;
  text-transform: uppercase;
  color: #7a331e;
  line-height: 1;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.ty-subtext {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  color: #7a331e;
  line-height: 1.3;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.ty-recipe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #d6a63a;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.ty-recipe-img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #d6a63a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.ty-recipe-title {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    color: #7a331e;
    line-height: 1.1;
    -webkit-font-smoothing: antialiased;
}

.ty-recipe-link {
  display: inline-block;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #c0392b 0%, #962d22 100%);
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(150, 45, 34, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.ty-recipe-link:hover {
  transform: scale(1.05);
  box-shadow: 0 7px 20px rgba(150, 45, 34, 0.4);
}

/* ── Thank You: Share Section ───────────────────────── */
.ty-share-label {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a331e;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.ty-share-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.ty-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.ty-share-btn svg {
  width: 14px;
  height: 14px;
}

.ty-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ty-share-fb {
  background: #1877F2;
}

.ty-share-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ty-share-wa {
  background: #25D366;
}

.ty-home-btn {
    margin-top: 20px;
    background: none !important;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7a331e;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #7a331e;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.ty-home-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

/* ── Utility ─────────────────────────────────────────── */
.hidden {
  display: none !important;
}
a#ty-share-ig {
    display: none !important;
}