/* ============================================================
   Fuelvember on the home page: the section that stands in for the
   comment generator while the campaign runs. Loaded on the front
   page only. Theme tokens (main.css) with the same fallbacks the
   game uses.
   ============================================================ */

.fvh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.fvh h2 span {
  background: var(--grad, linear-gradient(120deg, #E056FD 0%, #E530B5 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fvh-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.fvh-points li {
  padding: .45rem .8rem;
  border: 1px solid var(--hairline, #E7D8F2);
  border-radius: 999px;
  background: var(--surface, #FFFFFF);
  font-size: .92rem;
  font-weight: 700;
}

.fvh .fvh-cta {
  animation: fvh-pulse 1.6s ease-in-out infinite;
}

.fvh-fine {
  margin: .6rem 0 0;
  font-size: .85rem;
  color: var(--muted, #7C6B94);
}

/* ---------------- the scene ---------------- */

.fvh-scene {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 360 / 420;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 0 0 5px var(--ink, #1E1233), 0 30px 60px -22px #1E123366, 0 18px 46px -14px #9B23D455;
  text-decoration: none;
  transition: transform .2s ease;
}

.fvh-scene:hover {
  transform: translateY(-3px) rotate(-.4deg);
}

.fvh-scene:focus-visible {
  outline: 3px solid #25F4EE;
  outline-offset: 6px;
}

.fvh-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fvh-meter {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: .3rem .9rem;
  border-radius: 999px;
  background: #1E1233D9;
  color: #FFFFFF;
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
}

.fvh-meter b {
  display: inline-block;
  min-width: 2.6em;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: right;
  background: linear-gradient(120deg, #FFE45C, #FF7AD9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fvh-meter b.is-bump {
  animation: fvh-bump .35s ease-out;
}

.fvh-play {
  position: absolute;
  right: 14px;
  bottom: 54px;
  padding: .45rem .95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE45C, #FFB547);
  box-shadow: 0 0 0 3px #E530B5;
  color: #1E1233;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Moving parts. Plain transforms, so the browser keeps them off the main thread. */
.fvh-tower {
  animation: fvh-scroll 3.6s linear infinite;
}

.fvh-t2 { animation-delay: -1.2s; }
.fvh-t3 { animation-delay: -2.4s; }

.fvh-bird {
  animation: fvh-bob 1.2s ease-in-out infinite;
}

.fvh-flame {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: fvh-flicker .16s ease-in-out infinite alternate;
}

.fvh-pop {
  opacity: 0;
  animation: fvh-pop 1.2s ease-out infinite;
}

.fvh-sticker {
  animation: fvh-wobble 2.4s ease-in-out infinite;
}

.fvh-lanes {
  animation: fvh-lanes .33s linear infinite;
}

.fvh-clouds {
  animation: fvh-clouds 22s linear infinite;
}

@keyframes fvh-scroll {
  from { transform: translateX(380px); }
  to { transform: translateX(-60px); }
}

@keyframes fvh-bob {
  0%, 100% { transform: translateY(14px); }
  50% { transform: translateY(-14px); }
}

@keyframes fvh-flicker {
  from { transform: scaleX(.78); }
  to { transform: scaleX(1.18); }
}

@keyframes fvh-pop {
  0%, 14% { opacity: 0; transform: translateY(6px); }
  24% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 0; transform: translateY(-30px); }
}

@keyframes fvh-wobble {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.07); }
}

@keyframes fvh-lanes {
  to { transform: translateX(-40px); }
}

@keyframes fvh-clouds {
  to { transform: translateX(-360px); }
}

@keyframes fvh-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 24px -10px #E530B5; }
  50% { transform: scale(1.04); box-shadow: 0 14px 30px -8px #E530B5; }
}

@keyframes fvh-bump {
  0% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (max-width: 860px) {
  .fvh-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fvh-scene {
    max-width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fvh .fvh-cta,
  .fvh-tower,
  .fvh-bird,
  .fvh-flame,
  .fvh-pop,
  .fvh-sticker,
  .fvh-lanes,
  .fvh-clouds,
  .fvh-meter b.is-bump {
    animation: none;
  }

  .fvh-pop {
    opacity: 1;
  }

  .fvh-t1 { transform: translateX(200px); }
  .fvh-t2 { transform: translateX(330px); }
  .fvh-t3 { transform: translateX(-20px); }
}
