/* dp-home-portal.css — "Everything is in your QR Portal" (views/partials/home-lbe-portal-phone.ejs), Nov 14 2026:
 * a player's phone on the live session (the real page is brand purple, public/portal/session-join.css), the DreamBand
 * filming in front of it, and the phone turning sideways for the live headset view. The loop is dp-home-portal.js;
 * it sets .is-up / .is-rec / .is-saved on the band, .is-land on the stage and moves .hl-ps__in. */

.hl-stage { position: relative; justify-self: center; width: 100%; max-width: 560px; height: 680px; }

/* ── the phone ── */
.hl-stage .hl-phone {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 624px; margin: -312px 0 0 -150px; padding: 10px;
  border-radius: 46px; background: #0d0620;
  box-shadow: 0 40px 80px var(--lp-shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  transform: rotate(-3deg); transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1);
}
.hl-stage.is-land .hl-phone { transform: rotate(-90deg) scale(0.8); }
.hl-stage .hl-phone__screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden; padding: 0;
  background: #6a40f0; color: #fff; font-family: var(--lp-body);
}

/* ── the session page ── */
.hl-ps { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity 0.4s ease; }
.hl-stage.is-land .hl-ps { opacity: 0; }
.hl-ps__top { flex: none; display: flex; align-items: center; gap: 8px; padding: 16px 14px 8px; }
.hl-ps__top b { flex: 1 1 auto; text-align: center; font: 800 15px/1 var(--lp-display); }
.hl-ps__round { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.hl-ps__round svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hl-ps__scroll { position: relative; flex: 1 1 auto; overflow: hidden; }
.hl-ps__in { padding: 4px 14px 40px; transition: transform 1s cubic-bezier(0.65, 0, 0.25, 1); will-change: transform; }

.hl-ps__hero { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #2a1670; }
.hl-ps__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-ps__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(20, 6, 70, 0.8)); }
.hl-ps__hero .hl-ps__logo { inset: auto 18% 8% 18%; width: 64%; height: 46%; object-fit: contain; object-position: 50% 100%; z-index: 1; }
.hl-ps__clock { margin: 12px 0 0; font: 800 38px/0.95 var(--lp-display); letter-spacing: -0.02em; }
.hl-ps__clock span { font-variant-numeric: tabular-nums; }
.hl-ps__clock small { font: 600 14px var(--lp-body); color: rgba(255, 255, 255, 0.7); letter-spacing: 0; }
.hl-ps__line { display: block; height: 5px; margin: 9px 0 0; border-radius: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.hl-ps__line span { display: block; width: 12%; height: 100%; border-radius: 3px; background: #fff; }
.hl-ps__who { display: flex; align-items: center; margin: 9px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.hl-ps__who img { width: 20px; height: 20px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px #6a40f0; }
.hl-ps__who img:last-of-type { margin-right: 7px; }

.hl-ps__h { margin: 20px 0 8px; font: 800 16px/1 var(--lp-display); }
.hl-ps__k { margin: 14px 0 2px; font: 800 12px/1.2 var(--lp-display); letter-spacing: 0.01em; }
.hl-ps__k span { font: 600 12px var(--lp-body); color: rgba(255, 255, 255, 0.65); }

/* Videos: the portal's 9:16 clip tiles (.pp-clip). A new clip slides in at the front of the row. */
.hl-ps__reel { display: flex; gap: 8px; margin: 0 -14px; padding: 0 14px; overflow: hidden; }
.hl-ps__clip {
  position: relative; flex: none; width: 92px; aspect-ratio: 9 / 16; border-radius: 13px; overflow: hidden; background: #1c0d55;
  transition: width 0.6s cubic-bezier(0.3, 1.3, 0.5, 1), margin 0.6s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.4s ease;
}
.hl-ps__clip img, .hl-ps__clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-ps__clip::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)); }
.hl-ps__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1.5px #fff; }
.hl-ps__play::before { content: ''; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.hl-ps__clip em, .hl-ps__clip small { position: absolute; z-index: 1; bottom: 6px; font-style: normal; font-size: 9px; font-weight: 700; }
.hl-ps__clip em { right: 6px; padding: 1px 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); }
.hl-ps__clip small { left: 7px; color: rgba(255, 255, 255, 0.85); }
.hl-ps__clip--new { width: 0; margin-right: -8px; opacity: 0; box-shadow: inset 0 0 0 2px #fff; }
.hl-ps__clip--new small { color: #fff; }
.hl-stage.is-clip .hl-ps__clip--new { width: 92px; margin-right: 0; opacity: 1; }

/* The scoreboard: session-view.js rows. On the live board each row is placed by the loop (--y), so a player who
   overtakes slides up past the others; the leader's row lights up and their face gets the gold ring. */
.hl-ps__rows { list-style: none; margin: 0; padding: 0; }
.hl-ps__rows li { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.hl-ps__rows li > span:first-child { width: 9px; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.hl-ps__rows img { flex: none; width: 26px; height: 26px; border-radius: 50%; transition: box-shadow 0.3s ease; }
.hl-ps__rows b { flex: 1 1 auto; min-width: 0; font-weight: 700; line-height: 1.15; }
.hl-ps__rows b small { display: block; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.62); }
.hl-ps__rows em { font: 800 14px var(--lp-display); font-style: normal; font-variant-numeric: tabular-nums; }
.hl-ps__board { position: relative; height: 176px; margin-top: 4px; }
.hl-ps__board li {
  position: absolute; left: -8px; right: -8px; top: 0; height: 40px; box-sizing: border-box; padding: 0 8px; border-radius: 12px;
  transform: translateY(var(--y, 0px)); transition: transform 0.6s cubic-bezier(0.3, 1.25, 0.45, 1), background 0.3s ease;
}
.hl-ps__board li:nth-child(2) { --y: 44px; } .hl-ps__board li:nth-child(3) { --y: 88px; } .hl-ps__board li:nth-child(4) { --y: 132px; }
.hl-ps__board li.is-1 { background: rgba(255, 255, 255, 0.16); }
.hl-ps__board li.is-1 img { box-shadow: 0 0 0 2px #ffd84a; }
.hl-ps__board li.is-1 > span:first-child { color: #ffd84a; }
.hl-ps__board li.is-up { z-index: 1; }
.hl-ps__bump {
  position: absolute; right: 8px; top: -4px; font: 800 11px var(--lp-display); font-style: normal; color: #ffd84a;
  opacity: 0; transform: translateY(6px); pointer-events: none;
}
.hl-ps__bump.is-on { animation: hl-ps-bump 1s ease-out; }
@keyframes hl-ps-bump { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Badges: a 3-column grid; earned ones pop in. */
.hl-ps__badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.hl-ps__badges span { display: block; padding: 8px 4px 9px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); }
.hl-ps__badges svg { display: block; width: 46px; height: 46px; margin: 0 auto 4px; }
.hl-ps__badges b { display: block; font-size: 10px; line-height: 1.15; }
.hl-ps__badges small { display: block; font-size: 9px; color: rgba(255, 255, 255, 0.62); }
.hl-ps__badges span { opacity: 0; transform: scale(0.3); }
.hl-ps__badges span.is-on { animation: hl-ps-badge 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
/* A badge as it's earned: a notice drops in under the top bar, the badge spins in on it, then it rises away. */
.hl-ps__toast {
  position: absolute; z-index: 4; left: 10px; right: 10px; top: 52px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); color: #1b0b4a;
  box-shadow: 0 14px 30px -10px rgba(16, 4, 56, 0.6); font-size: 12px; line-height: 1.25;
  opacity: 0; transform: translateY(-120%) scale(0.95); pointer-events: none;
}
.hl-ps__toast b { font-weight: 800; }
.hl-ps__toast [data-what] { font-weight: 800; color: #6a40f0; }
.hl-ps__toast-art { flex: none; width: 36px; height: 36px; }
.hl-ps__toast-art svg { display: block; width: 100%; height: 100%; }
.hl-ps__toast.is-on { animation: hl-ps-toast 2.4s cubic-bezier(0.3, 1.3, 0.5, 1) forwards; }
.hl-ps__toast.is-on .hl-ps__toast-art { animation: hl-ps-toast-art 0.8s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s backwards; }
@keyframes hl-ps-toast { 0% { opacity: 0; transform: translateY(-120%) scale(0.95); } 14% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-40%) scale(0.97); } }
@keyframes hl-ps-toast-art { 0% { transform: scale(0.2) rotate(-90deg); } 100% { transform: none; } }
.hl-stage.is-land .hl-ps__toast { display: none; }
/* The row of whoever just earned one glows for a moment. */
.hl-ps__board li.is-earned { animation: hl-ps-earned 1.2s ease-out; }
@keyframes hl-ps-earned { 0% { background: rgba(255, 216, 74, 0.45); } 100% { background: transparent; } }
.hl-ps__board li.is-1.is-earned { animation-name: hl-ps-earned1; }
@keyframes hl-ps-earned1 { 0% { background: rgba(255, 216, 74, 0.45); } 100% { background: rgba(255, 255, 255, 0.16); } }
@keyframes hl-ps-badge { 0% { transform: scale(0.3) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.hl-ps__more { margin: 10px 0 0; text-align: center; font-size: 11px; color: rgba(255, 255, 255, 0.7); }

/* ── "See my view": upright inside the sideways phone (the screen is 280 x 604; the layer is 604 x 280 turned back) ── */
.hl-live {
  position: absolute; left: 50%; top: 50%; width: 604px; height: 280px; margin: -140px 0 0 -302px;
  transform: rotate(90deg); background: #000; opacity: 0; transition: opacity 0.4s ease;
}
.hl-stage.is-land .hl-live { opacity: 1; transition-delay: 0.45s; }
.hl-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-live__pill {
  position: absolute; left: 44px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: #ff3d57; font: 800 12px/1 var(--lp-display); letter-spacing: 0.04em;
}
.hl-live__pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: hl-live-blink 1s steps(2) infinite; }
@keyframes hl-live-blink { 50% { opacity: 0.2; } }
.hl-live__who {
  position: absolute; left: 44px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px;
  border-radius: 999px; background: rgba(0, 0, 0, 0.55); font-size: 13px; font-weight: 700;
}
.hl-live__who img { width: 24px; height: 24px; border-radius: 50%; }

/* ── the DreamBand: comes up in front of the phone's lower left and films ── */
.hl-band {
  position: absolute; z-index: 3; left: -6%; bottom: 4%; width: 54%; max-width: 290px; pointer-events: none;
  opacity: 0; transform: translateY(46%) rotate(14deg) scale(0.86);
  transition: transform 0.8s cubic-bezier(0.25, 1.25, 0.4, 1), opacity 0.35s ease;
  filter: drop-shadow(0 26px 34px rgba(12, 2, 48, 0.55));
}
.hl-band.is-up { opacity: 1; transform: translateY(0) rotate(-8deg) scale(1); }
.hl-band img { display: block; width: 100%; height: auto; }
/* The face ellipse, measured on dreamband.webp (972 x 882): centre (489.5, 328.5), radii 286 x 245, -3deg. */
.hl-band__face {
  position: absolute; left: 20.94%; top: 9.47%; width: 58.85%; height: 55.56%; border-radius: 50%; overflow: hidden;
  transform: rotate(-3deg); background: #1b0f2e;
}
.hl-band__face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.hl-band.is-rec .hl-band__face video { opacity: 1; }
.hl-band__rec {
  position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font: 800 11px/1 var(--lp-display); color: #fff;
  opacity: 0; transition: opacity 0.25s ease; white-space: nowrap;
}
.hl-band__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3d57; animation: hl-live-blink 1s steps(2) infinite; }
.hl-band__rec b { font-weight: 700; font-variant-numeric: tabular-nums; }
.hl-band.is-rec .hl-band__rec { opacity: 1; }
.hl-band__saved {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(106, 64, 240, 0.55);
  opacity: 0; transform: scale(0.6); transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.hl-band__saved svg { width: 34%; height: 34%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hl-band.is-saved .hl-band__saved { opacity: 1; transform: none; }

/* The list's new first glyph: a record dot that pulses. */
.hl-g__recdot { fill: #ff3d57; transform-box: fill-box; transform-origin: 50% 50%; }
.hl-list.is-in .hl-g__recdot { animation: hl-g-rec 1.6s ease-in-out infinite; }
@keyframes hl-g-rec { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.72); opacity: 0.55; } }

/* ── phones and tablets: the stage on top, smaller, then the words and the list in two columns ── */
@media (max-width: 899px) {
  .hl-portal .hl-portal__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; max-width: 560px; }
  .hl-portal .hl-stage { grid-column: 1; grid-row: 1; zoom: 0.62; }
  .hl-portal .hl-portal__copy { display: block; grid-column: 1; grid-row: 2; text-align: center; }
  .hl-portal .hl-portal__copy .hl-h2 { margin: 20px 0 12px; }
  .hl-portal .hl-portal__copy .lp-sub { margin: 0 auto; }
  .hl-portal .hl-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 6px; margin-top: 22px; }
  .hl-portal .hl-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hl-portal .hl-portal__copy .lp-cta-row { justify-content: center; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-stage .hl-phone, .hl-ps__in, .hl-band, .hl-ps__clip { transition: none; }
  .hl-ps__badges span.is-on, .hl-ps__toast.is-on, .hl-list.is-in .hl-g__recdot, .hl-live__pill i, .hl-band__rec i { animation: none; }
  .hl-ps__badges span { opacity: 1; transform: none; }
  .hl-ps__board li { transition: none; }
}
