/* Instant Prize Boost — fire theme (light + dark) */

:root {
  --boost-fire-1: #ff5c00;
  --boost-fire-2: #ff9500;
  --boost-fire-3: #ffd54a;
  --boost-ember: rgba(255, 92, 0, 0.42);
  --boost-ember-soft: rgba(255, 149, 0, 0.18);
  --boost-surface: linear-gradient(135deg, rgba(58, 14, 0, 0.94) 0%, rgba(120, 38, 0, 0.88) 45%, rgba(180, 62, 0, 0.9) 100%);
  --boost-text: #fff8f0;
  --boost-text-muted: rgba(255, 248, 240, 0.82);
  --boost-border: rgba(255, 180, 60, 0.55);
  --boost-glow: rgba(255, 100, 0, 0.55);
}

.light-theme {
  --boost-surface: linear-gradient(135deg, #ff4d00 0%, #ff7300 34%, #ff9a1f 62%, #ffc14d 100%);
  --boost-text: #fff9f4;
  --boost-text-muted: rgba(255, 249, 244, 0.9);
  --boost-border: rgba(255, 210, 100, 0.7);
  --boost-ember: rgba(255, 90, 0, 0.48);
  --boost-ember-soft: rgba(255, 120, 0, 0.32);
  --boost-glow: rgba(255, 80, 0, 0.55);
}

/* ── Competition cards (home + listings) ── */

.competition-card--boosted:hover,
.competition-card--boosted.touch-active,
.dark-theme .competition-card--boosted:hover,
.dark-theme .competition-card--boosted.touch-active,
.light-theme .competition-card--boosted:hover,
.light-theme .competition-card--boosted.touch-active {
  border-color: transparent !important;
  box-shadow: 0 12px 36px var(--boost-ember) !important;
}

.competition-card--boosted:hover::before,
.competition-card--boosted.touch-active::before,
.dark-theme .competition-card--boosted:hover::before,
.dark-theme .competition-card--boosted.touch-active::before,
.light-theme .competition-card--boosted:hover::before,
.light-theme .competition-card--boosted.touch-active::before {
  display: block !important;
}

.prize-boost-card-banner {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.1rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--boost-surface);
  border: 1.5px solid var(--boost-border);
  color: var(--boost-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  overflow: hidden;
  box-shadow:
    0 4px 18px var(--boost-glow),
    0 0 24px var(--boost-ember-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: boostBannerPulse 2.4s ease-in-out infinite;
}

.prize-boost-card-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 120, 0.22), transparent);
  transform: translateX(-100%);
  animation: boostShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.prize-boost-card-banner__flame {
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 160, 0, 0.9));
  animation: boostFlameFlicker 1.2s ease-in-out infinite alternate;
}

.prize-boost-card-banner__text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ── Detail page hero strip ── */

.prize-boost-hero {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--boost-border);
  background: var(--boost-surface);
  box-shadow: 0 8px 32px var(--boost-ember-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prize-boost-hero__glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 120, 0, 0.45), transparent 62%);
  pointer-events: none;
  animation: boostHeroGlow 3s ease-in-out infinite alternate;
}

.prize-boost-hero__content {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1.1rem;
  color: var(--boost-text);
}

.prize-boost-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.prize-boost-hero__flames {
  font-size: 1.35rem;
  line-height: 1;
  animation: boostFlameFlicker 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.85));
}

.prize-boost-hero__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prize-boost-hero__subtitle {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--boost-text-muted);
}

.prize-boost-countdown {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--boost-border);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 20px var(--boost-ember-soft), inset 0 1px 0 rgba(255, 200, 100, 0.12);
  animation: boostCountdownPulse 2s ease-in-out infinite;
}

.light-theme .prize-boost-countdown {
  background: rgba(70, 18, 0, 0.28);
  border-color: rgba(255, 220, 140, 0.55);
  box-shadow: 0 0 22px rgba(255, 140, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.prize-boost-countdown__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--boost-text);
  white-space: nowrap;
}

.prize-boost-countdown__units {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.prize-boost-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.1rem;
}

.prize-boost-countdown__value {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--boost-fire-3);
  text-shadow: 0 0 10px var(--boost-glow), 0 0 20px var(--boost-ember);
}

.light-theme .prize-boost-countdown__value {
  color: #fff4c8;
  text-shadow: 0 0 14px rgba(255, 200, 80, 0.95), 0 2px 4px rgba(80, 20, 0, 0.3);
}

.prize-boost-countdown__name {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--boost-text-muted);
  margin-top: 0.1rem;
}

.prize-boost-countdown__colon {
  font-size: 1rem;
  font-weight: 800;
  color: var(--boost-fire-2);
  opacity: 0.85;
  padding-bottom: 0.65rem;
  animation: boostColonBlink 1s step-end infinite;
}

.prize-boost-countdown--ended .prize-boost-countdown__value,
.prize-boost-countdown--ended .prize-boost-countdown__colon {
  animation: none;
  opacity: 0.5;
}

.prize-boost-countdown--ended {
  animation: none;
}

@keyframes boostCountdownPulse {
  0%, 100% { box-shadow: 0 0 16px var(--boost-ember-soft), inset 0 1px 0 rgba(255, 200, 100, 0.1); }
  50% { box-shadow: 0 0 24px var(--boost-ember), inset 0 1px 0 rgba(255, 220, 120, 0.2); }
}

@keyframes boostColonBlink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.25; }
}

.prize-boost-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--boost-text);
  background: var(--boost-surface);
  border: 1px solid var(--boost-border);
  box-shadow: 0 2px 12px var(--boost-ember-soft);
  vertical-align: middle;
}

.product-title-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  flex: 1;
  min-width: 0;
}

.product-title-inline .competition-title {
  flex: 0 1 auto;
  margin: 0;
}

.product-title-inline .prize-boost-detail-pill {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.prize-boost-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fff8f0;
  background: linear-gradient(135deg, var(--boost-fire-1), var(--boost-fire-2));
  box-shadow: 0 0 12px var(--boost-glow);
}

/* ── Fire border (competition cards + boosted instant prizes) ── */

@property --boost-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.competition-card--boosted,
.product__prize--boosted {
  position: relative;
  border-color: transparent !important;
  box-shadow: 0 6px 24px var(--boost-ember-soft);
  animation: boostPrizeGlow 2.4s ease-in-out infinite;
  isolation: isolate;
}

.competition-card--boosted::before,
.product__prize--boosted::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(
    from var(--boost-border-angle),
    #ff1a00 0deg,
    #ff5c00 52deg,
    #ffcc00 108deg,
    #fff8d0 142deg,
    #ff9500 198deg,
    #ff3300 268deg,
    #ffd54a 318deg,
    #ff1a00 360deg
  );
  animation:
    boostBorderRotate 2.6s linear infinite,
    boostBorderFlicker 1.4s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.competition-card--boosted::after,
.product__prize--boosted::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 120, 0, 0.35), transparent 68%);
  opacity: 0.55;
  animation: boostBorderEmber 2.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.prize-card--boosted .prize-card__head {
  background: linear-gradient(90deg, rgba(255, 92, 0, 0.08), transparent 55%);
}

.prize-card--boosted {
  position: relative;
  overflow: hidden;
}

.prize-card__title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prize-boost-value {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.prize-boost-value__was {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  text-decoration: line-through;
  opacity: 0.85;
}

.light-theme .prize-boost-value__was {
  color: rgba(92, 34, 0, 0.6);
}

.prize-boost-value__now {
  font-size: 1rem;
  font-weight: 800;
  color: var(--boost-fire-2);
  text-shadow: 0 0 12px var(--boost-ember);
}

.light-theme .prize-boost-value__now {
  color: #e85d00;
  text-shadow: 0 0 10px rgba(255, 120, 0, 0.4);
  font-size: 1.05rem;
}

.prize-boost-flame-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8f0;
  background: linear-gradient(135deg, var(--boost-fire-1), var(--boost-fire-2));
  box-shadow: 0 0 10px var(--boost-glow);
}

.prize-boost-flame-tag__icon {
  font-size: 0.72rem;
  line-height: 1;
}

/* ── Animations ── */

@keyframes boostBannerPulse {
  0%, 100% {
    box-shadow:
      0 4px 16px var(--boost-glow),
      0 0 20px var(--boost-ember-soft),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 6px 22px rgba(255, 120, 0, 0.65),
      0 0 30px var(--boost-ember),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

@keyframes boostShimmer {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(120%); }
}

@keyframes boostFlameFlicker {
  0% { transform: scale(1) translateY(0); opacity: 0.92; }
  100% { transform: scale(1.08) translateY(-1px); opacity: 1; }
}

@keyframes boostHeroGlow {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes boostPrizeGlow {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(255, 100, 0, 0.22),
      0 6px 22px var(--boost-ember-soft);
  }
  50% {
    box-shadow:
      0 0 22px rgba(255, 120, 0, 0.42),
      0 10px 32px var(--boost-ember);
  }
}

@keyframes boostBorderRotate {
  to { --boost-border-angle: 360deg; }
}

@keyframes boostBorderFlicker {
  0% { opacity: 0.9; filter: brightness(0.95) saturate(1.05); }
  100% { opacity: 1; filter: brightness(1.12) saturate(1.2); }
}

@keyframes boostBorderEmber {
  0% { opacity: 0.35; transform: scale(0.98); }
  100% { opacity: 0.7; transform: scale(1.02); }
}

/* ── Light theme: richer fire (detail hero + boosted prizes) ── */

.light-theme .prize-boost-hero {
  border-width: 2px;
  background: linear-gradient(135deg, #ff4d00 0%, #ff6600 38%, #e85d00 72%, #c44a00 100%);
  box-shadow:
    0 12px 40px rgba(255, 90, 0, 0.42),
    0 0 0 1px rgba(255, 200, 100, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.light-theme .prize-boost-hero__glow {
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 140, 0, 0.45), transparent 62%);
}

.light-theme .prize-boost-hero__title {
  text-shadow: 0 2px 10px rgba(100, 25, 0, 0.4);
}

.light-theme .prize-boost-hero__subtitle {
  color: var(--boost-text);
  text-shadow: 0 1px 4px rgba(80, 20, 0, 0.25);
}

.light-theme .prize-boost-countdown__colon {
  color: #ffe8a8;
  text-shadow: 0 0 8px rgba(255, 180, 60, 0.6);
}

.light-theme .prize-boost-card-banner {
  box-shadow:
    0 6px 24px rgba(255, 90, 0, 0.5),
    0 0 32px rgba(255, 140, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.light-theme .prize-boost-card-banner__text {
  text-shadow: 0 1px 3px rgba(80, 20, 0, 0.35);
}

.light-theme .product__prize--boosted {
  box-shadow:
    0 8px 30px rgba(255, 100, 0, 0.38),
    0 4px 14px rgba(255, 120, 0, 0.22);
}

.light-theme .product__prize--boosted::after {
  opacity: 0.75;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 130, 0, 0.5), transparent 68%);
}

.light-theme .prize-card--boosted .prize-card__head {
  background: linear-gradient(90deg, rgba(255, 120, 0, 0.2) 0%, rgba(255, 180, 60, 0.1) 50%, transparent 100%);
}

.light-theme .prize-boost-flame-tag {
  box-shadow: 0 0 14px rgba(255, 90, 0, 0.55);
}

.light-theme .prize-boost-tab-pill {
  box-shadow: 0 0 16px rgba(255, 90, 0, 0.5);
}

@media (min-width: 768px) {
  .prize-boost-hero__subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .prize-boost-card-banner {
    font-size: 0.65rem;
    padding: 0.32rem 0.7rem;
    bottom: 0.5rem;
    max-width: calc(100% - 0.85rem);
  }

  .prize-boost-hero__badge {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .prize-boost-hero__subtitle {
    text-align: center;
  }

  .prize-boost-hero__title {
    font-size: 0.92rem;
  }

  .prize-boost-countdown {
    width: 100%;
    justify-content: center;
  }

  .prize-boost-countdown__value {
    font-size: 0.92rem;
  }
}
