/* dp-home-tv.css — the homepage's TV Mode section (views/partials/home-lbe-tv.ejs), Nov 14 2026. */
.hl-tv { padding: 100px 0 90px; }
.hl-tv__head { text-align: center; }
.hl-tv__head .lp-sub { margin: 0 auto; max-width: 40em; font-size: clamp(16px, 1.4vw, 19px); text-wrap: pretty; }
/* The TV: a dark bezel with a soft glow of the screen's own violet behind it, on a slim stand. */
.hl-tv__screen { position: relative; max-width: 1040px; margin: 48px auto 0; perspective: 1600px; }
.hl-tv__bezel {
  position: relative; padding: clamp(6px, 1vw, 12px); border-radius: clamp(14px, 1.8vw, 22px);
  background: linear-gradient(180deg, #1d1530, #0b0714);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 90px -30px rgba(12, 2, 48, 0.85), 0 0 120px -10px rgba(140, 100, 255, 0.45);
  transform: rotateX(4deg); transform-origin: 50% 100%;
}
.hl-tv__video {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
  border-radius: clamp(8px, 1vw, 12px); background: #120634;
}
.hl-tv__stand {
  display: block; width: 22%; height: 14px; margin: 0 auto; border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #120c22, #2a2140);
}
.hl-tv__points {
  list-style: none; margin: 44px auto 0; padding: 0; max-width: 1040px;
  display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hl-tv__points li { padding: 20px 22px; border-radius: 22px; background: var(--lp-veil); border: 1px solid var(--lp-line); }
.hl-tv__points b { display: block; margin-bottom: 6px; font-family: var(--lp-display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.hl-tv__points li > span:last-child { display: block; color: var(--lp-ink-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 760px) {
  .hl-tv { padding: 64px 0 56px; }
  .hl-tv__screen { margin-top: 28px; }
  .hl-tv__bezel { transform: none; }
}

/* The value adds' big glyphs (the portal list's .hl-g__* style, larger). */
/* The icon hangs half over the card's top edge, centred, and the words centre under it (Aidan: "half hanged over the
   top of the panel instead of being in it, and were centered"). Its tile is opaque so the card's edge doesn't show
   through it. */
.hl-tv__points { margin-top: 96px; row-gap: 70px; }
.hl-tv__points li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 68px; }
.hl-tvg {
  position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 30px;
  background: linear-gradient(160deg, #8a6af6, #6f49f0); border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 34px -12px rgba(16, 4, 56, 0.55);
  opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.hl-tv__points li:nth-child(2) .hl-tvg { transition-delay: 0.1s; }
.hl-tv__points li:nth-child(3) .hl-tvg { transition-delay: 0.2s; }
.hl-tv__points.is-in .hl-tvg { opacity: 1; transform: translate(-50%, -50%); }
.hl-tvg svg { width: 74px; height: 74px; overflow: visible; }
.hl-tvg .hl-g__line { stroke-width: 3; }
/* See the game: the LIVE dot pulses, signal waves come in, the game's blocks bounce in turn */
.hl-tvg__live { fill: #ff3d57; transform-box: fill-box; transform-origin: 50% 50%; }
.hl-tv__points.is-in .hl-tvg__live { animation: hl-tvg-live 1.2s ease-in-out infinite; }
@keyframes hl-tvg-live { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
.hl-tvg__wave { opacity: 0; }
.hl-tv__points.is-in .hl-tvg__wave { animation: hl-tvg-wave 1.8s ease-out infinite; }
.hl-tv__points.is-in .hl-tvg__wave--2 { animation-delay: 0.3s; }
@keyframes hl-tvg-wave { 0% { opacity: 0; } 25% { opacity: 1; } 70%, 100% { opacity: 0; } }
.hl-tvg__cube { transform-box: fill-box; transform-origin: 50% 100%; }
.hl-tv__points.is-in .hl-tvg__cube { animation: hl-tvg-hop 1.8s cubic-bezier(0.3, 1.4, 0.5, 1) infinite; }
.hl-tv__points.is-in .hl-tvg__cube--2 { animation-delay: 0.2s; }
.hl-tv__points.is-in .hl-tvg__cube--3 { animation-delay: 0.4s; }
@keyframes hl-tvg-hop { 0%, 40%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(-9px) scale(0.92, 1.08); } 24% { transform: translateY(0) scale(1.12, 0.88); } }
/* See the score: the cup bounces, its star pops, confetti flies, +100 floats up */
.hl-tvg__cup { transform-box: fill-box; transform-origin: 50% 100%; }
.hl-tv__points.is-in .hl-tvg__cup { animation: hl-tvg-cup 2.4s cubic-bezier(0.3, 1.5, 0.5, 1) infinite; }
@keyframes hl-tvg-cup { 0%, 45%, 100% { transform: none; } 10% { transform: translateY(-5px) rotate(-6deg); } 22% { transform: translateY(0) rotate(4deg); } 32% { transform: rotate(0); } }
.hl-tvg__star { fill: #ffd84a; transform-box: fill-box; transform-origin: 50% 50%; }
.hl-tv__points.is-in .hl-tvg__star { animation: hl-tvg-star 2.4s ease-in-out infinite; }
@keyframes hl-tvg-star { 0%, 6% { transform: scale(0); } 16% { transform: scale(1.5) rotate(20deg); } 26%, 100% { transform: scale(1); } }
.hl-tvg__bit { fill: #ffd84a; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.hl-tvg__bit--2, .hl-tvg__bit--4 { fill: #7ef0e6; }
.hl-tvg__bit--3 { fill: #ff7ab6; }
.hl-tv__points.is-in .hl-tvg__bit { animation: hl-tvg-bit 2.4s ease-out infinite; }
.hl-tv__points.is-in .hl-tvg__bit--2 { animation-delay: 0.05s; }
.hl-tv__points.is-in .hl-tvg__bit--3 { animation-delay: 0.1s; }
.hl-tv__points.is-in .hl-tvg__bit--4 { animation-delay: 0.15s; }
@keyframes hl-tvg-bit { 0%, 8% { opacity: 0; transform: translate(0, 6px) scale(0.4) rotate(0); } 18% { opacity: 1; transform: translate(0, -4px) scale(1.1) rotate(90deg); } 45% { opacity: 0; transform: translate(0, 4px) scale(0.8) rotate(200deg); } 100% { opacity: 0; } }
.hl-tvg__plus { fill: #ffd84a; font: 800 9px var(--lp-display); opacity: 0; }
.hl-tv__points.is-in .hl-tvg__plus { animation: hl-tvg-plus 2.4s ease-out infinite; }
@keyframes hl-tvg-plus { 0%, 10% { opacity: 0; transform: translateY(4px); } 22% { opacity: 1; transform: translateY(0); } 50% { opacity: 1; } 70%, 100% { opacity: 0; transform: translateY(-6px); } }
/* Sell more tickets: the TV flips (like a card) into a ticket, whose star pops, then flips back */
.hl-tvg__flipa, .hl-tvg__flipb { transform-box: view-box; transform-origin: 32px 32px; }
.hl-tvg__flipb { transform: scaleX(0); }
.hl-tv__points.is-in .hl-tvg__flipa { animation: hl-tvg-fa 4s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
.hl-tv__points.is-in .hl-tvg__flipb { animation: hl-tvg-fb 4s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
@keyframes hl-tvg-fa { 0%, 30% { transform: scaleX(1); } 38%, 88% { transform: scaleX(0); } 96%, 100% { transform: scaleX(1); } }
@keyframes hl-tvg-fb { 0%, 38% { transform: scaleX(0); } 46% { transform: scaleX(1.12) rotate(-4deg); } 52%, 80% { transform: scaleX(1) rotate(-4deg); } 88%, 100% { transform: scaleX(0); } }
.hl-tvg__perf { stroke-dasharray: 2.5 3.5; stroke-width: 2.4; }
.hl-tvg__tstar { fill: #ffd84a; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.hl-tv__points.is-in .hl-tvg__tstar { animation: hl-tvg-tstar 4s ease-in-out infinite; }
@keyframes hl-tvg-tstar { 0%, 48% { transform: scale(0); } 56% { transform: scale(1.45) rotate(25deg); } 62%, 80% { transform: scale(1); } 86%, 100% { transform: scale(0); } }
@media (max-width: 760px) {
  .hl-tv__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; row-gap: 0; }
  .hl-tv__points li { padding: 0; border: 0; background: none; border-radius: 0; gap: 8px; }
  .hl-tvg { position: static; width: 64px; height: 64px; border-radius: 20px; transform: scale(0.6); }
  .hl-tv__points.is-in .hl-tvg { transform: none; }
  .hl-tvg svg { width: 44px; height: 44px; }
  .hl-tv__points b { margin: 2px 0 0; font-size: 14px; }
  .hl-tv__points li > span:last-child { font-size: 12.5px; line-height: 1.35; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-tvg { opacity: 1; transform: translate(-50%, -50%); transition: none; }
  .hl-tv__points.is-in .hl-tvg * { animation: none !important; }
  .hl-tvg__star, .hl-tvg__plus { opacity: 1; }
  .hl-tvg__flipb { transform: scaleX(0); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .hl-tvg { transform: none; } }
