/* ==========================================================================
   Components – reusable across the coming-soon page and the future platform
   ========================================================================== */

/* ---- Sprites in HTML ------------------------------------------------------
   <span data-sprite="name"> renders an SVG sized in "UI pixels" (--u).
   --u inherits, so a parent can size the sprites inside it (default 3px). */
[data-sprite] { display: inline-block; line-height: 0; }
[data-sprite] > svg,
.assign__icon > svg,
.answer-media__icon > svg {
  width: calc(var(--sw) * var(--u, 3px));
  height: calc(var(--sh) * var(--u, 3px));
}

/* Pixel notch: stepped corners, the core 8-bit shape of the UI. */
.px-notch {
  --n: var(--px);
  clip-path: polygon(
    0 calc(var(--n) * 2), var(--n) calc(var(--n) * 2), var(--n) var(--n), calc(var(--n) * 2) var(--n), calc(var(--n) * 2) 0,
    calc(100% - var(--n) * 2) 0, calc(100% - var(--n) * 2) var(--n), calc(100% - var(--n)) var(--n), calc(100% - var(--n)) calc(var(--n) * 2), 100% calc(var(--n) * 2),
    100% calc(100% - var(--n) * 2), calc(100% - var(--n)) calc(100% - var(--n) * 2), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n) * 2) calc(100% - var(--n)), calc(100% - var(--n) * 2) 100%,
    calc(var(--n) * 2) 100%, calc(var(--n) * 2) calc(100% - var(--n)), var(--n) calc(100% - var(--n)), var(--n) calc(100% - var(--n) * 2), 0 calc(100% - var(--n) * 2)
  );
}

/* Single-step pixel corners – the classic 8-bit box. Set --n per component. */
.px-corners,
.chip--pixel,
.eyebrow__no,
.btn,
.code-input__cell,
.field__input,
.field__dice,
.join__found,
.assign__icon,
.assign__letter,
.assign__points,
.assign__shutter,
.phone-demo__tab,
.how__node,
.known__check,
.pack__box,
.panel__steps li > span,
.board-pin__label,
.speech,
.toast {
  clip-path: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
}

/* ---- Logo ----------------------------------------------------------------- */

.logo {
  --logo-size: 19px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--logo-size);
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.logo__mark {
  position: relative;
  display: block;
  width: 1.45em;
  height: 1.45em;
  flex: none;
}
.logo__mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 0.5em rgba(47, 107, 255, 0.45));
}
.logo__word {
  display: inline-flex;
  font-weight: 600;
  font-size: 0.86em;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
}
.logo__char { display: inline-block; }

.logo--intro { --logo-size: clamp(30px, 5.4vw, 54px); }
.logo--sm { --logo-size: 16px; }

a.logo .logo__mark svg { transition: transform var(--dur-m) var(--ease-out), filter var(--dur-m) var(--ease-out); }
a.logo:hover .logo__mark svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 0.8em rgba(92, 143, 255, 0.8));
}

/* ---- Chips & eyebrows ---------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.9em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(10, 26, 74, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip--pixel {
  --n: 2px;
  border: 0;
  border-radius: 0;
  padding: 0.62em 1.05em;
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--q-blue-200);
  background:
    linear-gradient(var(--q-navy-900), var(--q-navy-900)) padding-box,
    linear-gradient(90deg, rgba(92, 143, 255, 0.55), rgba(92, 143, 255, 0.15)) border-box;
  border: 2px solid transparent;
}
.chip__icon { --u: 2px; animation: spin-step 4s steps(4) infinite; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--q-blue-300);
}
.eyebrow__no {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  height: 2.4em;
  padding-inline: 0.4em;
  color: var(--q-white);
  background: var(--q-blue-500);
  box-shadow: 0 0 24px var(--glow-soft);
  --n: 3px;
}

.muted { color: var(--text-dim); }

/* ---- Live dot ------------------------------------------------------------ */

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--q-blue-400);
  box-shadow: 0 0 10px var(--q-blue-400);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--q-blue-400);
  opacity: 0;
  animation: live-ring 2.4s var(--ease-out) infinite;
}

/* ---- Speech bubble (world) ---------------------------------------------- */

.speech {
  --n: 3px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  padding: 8px 12px 9px;
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--q-navy-900);
  background: var(--q-white);
  pointer-events: none;
  opacity: 0;
  translate: -50% calc(-100% + 6px);
  transition: opacity 200ms steps(2), translate 400ms var(--ease-out);
  filter: drop-shadow(0 8px 24px rgba(47, 107, 255, 0.5));
}
.speech.is-on { opacity: 1; translate: -50% -100%; }

/* ---- Toast ---------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 440px);
  translate: -50% 0;
  pointer-events: none;
}
.toast {
  --n: 3px;
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--q-white);
  background: var(--q-navy-800);
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.35);
  opacity: 0;
  translate: 0 14px;
  transition: opacity 300ms steps(3), translate 600ms var(--ease-out);
}
.toast--good { background: var(--q-blue-500); box-shadow: none; }
.toast.is-on { opacity: 1; translate: 0 0; }

.confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  pointer-events: none;
  image-rendering: pixelated;
}

/* ==========================================================================
   Platform components (start page, quest pages, join flow)
   ========================================================================== */

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  --n: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 52px;
  padding: 0 24px;
  font: 600 0.9375rem/1 var(--font-sans);
  letter-spacing: -0.005em;
  color: var(--q-white);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--q-blue-400), var(--q-blue-500) 55%, var(--q-blue-600));
  border: 0;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 -3px 0 rgba(10, 26, 74, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
  transition: translate 450ms var(--ease-out), filter 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
/* Pixel shine that sweeps across on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 36%;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 4px, transparent 4px 8px);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}
.btn:hover { translate: 0 -2px; filter: brightness(1.08); }
.btn:hover::after { animation: shine 700ms steps(9) forwards; }
.btn:active { translate: 0 1px; box-shadow: inset 0 3px 0 rgba(10, 26, 74, 0.45); }
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--q-white), inset 0 -3px 0 rgba(10, 26, 74, 0.45);
}

.btn--ghost {
  background: rgba(20, 42, 118, 0.35);
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.3);
}
.btn--ghost:hover { background: rgba(28, 58, 150, 0.5); filter: none; }
.btn--ghost:active { box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.5); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { height: 60px; padding: 0 34px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn:disabled { cursor: default; }
.btn.is-busy { color: transparent; pointer-events: none; }
.btn.is-busy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--q-white);
  box-shadow: -12px 0 var(--q-white), 12px 0 var(--q-white);
  animation: busy 0.9s steps(3) infinite;
}
.btn--danger { color: #ffc2c7; }
.btn--danger[data-confirm] { background: rgba(255, 154, 162, 0.16); box-shadow: inset 0 0 0 2px var(--danger); color: var(--q-white); }

/* ---- Code input ----------------------------------------------------------- */

.code-input {
  position: relative;
  display: inline-block;
}
.code-input__field {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  font-size: 16px; /* no zoom on iOS */
  color: transparent;
  caret-color: transparent;
  background: transparent;
  border: 0;
  opacity: 0;
  cursor: text;
}
.code-input__cells { display: flex; gap: 8px; }
.code-input__cell {
  --n: 2px;
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  font: 400 1.25rem/1 var(--font-pixel);
  color: var(--q-white);
  background: rgba(4, 12, 38, 0.85);
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.2);
  transition: box-shadow 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.code-input__cell.is-filled {
  background: rgba(20, 42, 118, 0.7);
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.45);
}
.code-input__cell.is-active {
  box-shadow: inset 0 0 0 2px var(--q-blue-400), inset 0 0 18px rgba(47, 107, 255, 0.35);
}
.code-input__cell.is-active:not(.is-filled)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  background: var(--q-blue-300);
  animation: blink 1s steps(1) infinite;
}
.code-input.is-error .code-input__cell { box-shadow: inset 0 0 0 2px var(--danger); }

/* ---- Form fields ---------------------------------------------------------- */

.field { display: grid; gap: 8px; }
.field__label,
.join-panel__label {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--q-blue-200);
}
.field__row { display: flex; gap: 8px; }
.field__input {
  --n: 2px;
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  font: 500 1rem var(--font-sans);
  color: var(--text);
  background: rgba(4, 12, 38, 0.85);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.2);
  transition: box-shadow 220ms var(--ease-out);
}
.field__input::placeholder { color: var(--text-dim); }
.field__input:focus,
.field__input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--q-blue-400), inset 0 0 18px rgba(47, 107, 255, 0.25);
}
.field__dice {
  --n: 2px;
  --u: 3px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  background: rgba(20, 42, 118, 0.55);
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.3);
  transition: background-color 220ms var(--ease-out);
}
.field__dice:hover { background: rgba(47, 107, 255, 0.45); }
.field__dice:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--q-white); }

/* ---- Meta pills ----------------------------------------------------------- */

.meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.meta li {
  --u: 1.6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(10, 26, 74, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.meta--center { justify-content: center; }

/* ---- Join sheet ----------------------------------------------------------- */

.join {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  overflow: visible;
}
.join::backdrop {
  background: rgba(2, 7, 22, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.join__frame {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px 24px 24px;
  border-radius: 24px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(47, 107, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1d58, #060f30);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -30px rgba(47, 107, 255, 0.55), inset 0 1px 0 rgba(185, 209, 255, 0.16);
}
.join__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.join__progress { display: flex; flex: 1; gap: 4px; }
.join__progress span {
  flex: 1;
  height: 6px;
  background: rgba(141, 180, 255, 0.16);
  transition: background-color 400ms steps(3), box-shadow 400ms var(--ease-out);
}
.join__progress span.is-done {
  background: var(--q-blue-400);
  box-shadow: 0 0 10px rgba(92, 143, 255, 0.6);
}
.join__demo {
  padding: 5px 8px;
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--q-blue-200);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.join__close {
  --u: 2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 200ms, rotate 300ms steps(2);
}
.join__close:hover { opacity: 1; rotate: 90deg; }

.join__body { overflow: hidden; margin: -6px; padding: 6px; }
.join__step { display: grid; gap: 14px; }
.join__kicker {
  display: flex;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--q-blue-300);
}
.join__found {
  --n: 2px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--q-white);
  background: var(--q-blue-500);
}
.join__title {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.join__text { font-size: 0.9375rem; color: var(--text-muted); }
.join__error,
.join-panel__error { font-size: 0.875rem; color: var(--danger); }
.join__error:empty,
.join-panel__error:empty { display: none; }
.join__actions { display: grid; gap: 10px; margin-top: 8px; }
.join .code-input { width: 100%; margin-top: 6px; }
.join .code-input__cells { justify-content: space-between; }
.join .code-input__cell { flex: 1; width: auto; max-width: 58px; height: 60px; }

.join__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 0;
}
.join__meta div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(4, 12, 38, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.join__meta dt {
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.join__meta dd { margin: 5px 0 0; font-size: 0.9375rem; font-weight: 600; }

.join__lobby { justify-items: center; text-align: center; }
.join__party {
  --u: 6px;
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  width: 100%;
}
.join__party svg { filter: drop-shadow(0 0 18px rgba(92, 143, 255, 0.6)); animation: float 3s var(--ease-in-out) infinite; }
.join__party i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--q-white);
  box-shadow: 0 0 8px rgba(185, 209, 255, 0.9);
  animation: party 2.4s var(--ease-out) infinite;
}
.join__party i:nth-child(2) { left: 30%; top: 60%; }
.join__party i:nth-child(3) { left: 66%; top: 30%; animation-delay: 0.8s; }
.join__party i:nth-child(4) { left: 40%; top: 18%; animation-delay: 1.6s; }
.join__waiting {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.join__waiting span {
  width: 7px;
  height: 7px;
  background: var(--q-blue-400);
  animation: wait-dot 1.2s steps(1) infinite;
}
.join__waiting span:nth-child(2) { animation-delay: 0.2s; }
.join__waiting span:nth-child(3) { animation-delay: 0.4s; }
.join__waiting em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.join__note {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

@media (max-width: 560px) {
  .join {
    width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
  }
  .join__frame {
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- Assignment preview -------------------------------------------------- */

.assign {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 42, 118, 0.42), rgba(8, 20, 58, 0.55));
  border: 1px solid var(--line);
}
.assign__stop {
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.assign__head { display: flex; align-items: center; gap: 12px; }
.assign__icon {
  --n: 3px;
  --u: 2.2px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: radial-gradient(circle at 50% 35%, rgba(47, 107, 255, 0.3), transparent 70%), var(--q-navy-900);
  box-shadow: inset 0 0 0 2px rgba(141, 180, 255, 0.18);
}
.assign__icon .px-alt { animation: blink 1s steps(1) infinite; }
.assign__type { font-size: 0.9375rem; font-weight: 600; }
.assign__points {
  --n: 2px;
  margin-left: auto;
  padding: 6px 8px;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--q-white);
  background: rgba(47, 107, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(92, 143, 255, 0.55);
}
.assign__prompt {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.assign__options { display: grid; gap: 8px; }
.assign__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.9375rem;
  border-radius: 10px;
  background: rgba(4, 12, 38, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.assign__letter {
  --n: 2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--q-blue-200);
  background: rgba(47, 107, 255, 0.18);
}
.assign__option.is-picked {
  background: rgba(47, 107, 255, 0.16);
  box-shadow: inset 0 0 0 2px var(--q-blue-400);
}
.assign__option.is-picked .assign__letter { color: var(--q-white); background: var(--q-blue-500); }
.assign__answer {
  min-height: 78px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  border-radius: 10px;
  background: rgba(4, 12, 38, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.assign__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--q-blue-300);
  animation: blink 1s steps(1) infinite;
}
.assign__media { display: grid; gap: 10px; }
.assign__viewfinder {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(rgba(141, 180, 255, 0.08) 1px, transparent 1px) 0 0 / 33.34% 33.34%,
    linear-gradient(90deg, rgba(141, 180, 255, 0.08) 1px, transparent 1px) 0 0 / 33.34% 33.34%,
    radial-gradient(circle at 50% 62%, rgba(47, 107, 255, 0.4), transparent 60%),
    linear-gradient(180deg, #0a1a4a, #040c26);
}
.assign__viewfinder i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--q-white);
  opacity: 0.85;
}
.assign__viewfinder i:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.assign__viewfinder i:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.assign__viewfinder i:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.assign__viewfinder i:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.assign__focus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  translate: -50% -50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  animation: focus-pulse 2.2s var(--ease-in-out) infinite;
}
.assign__rec {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--q-white);
}
.assign__rec b {
  width: 7px;
  height: 7px;
  background: var(--q-white);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: blink 1s steps(1) infinite;
}
.assign__shutter {
  --n: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--q-white);
  background: linear-gradient(180deg, var(--q-blue-400), var(--q-blue-500));
}
.assign__shutter::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--q-white);
}
.assign--video .assign__shutter::before { background: var(--q-white); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }

.assign--compact { gap: 10px; padding: 14px; border-radius: 16px; }
.assign--compact .assign__icon { --u: 1.8px; width: 34px; height: 34px; }
.assign--compact .assign__prompt { font-size: 0.9375rem; }
.assign--compact .assign__option { padding: 7px 10px; font-size: 0.8125rem; }
.assign--compact .assign__letter { width: 20px; height: 20px; }
.assign--compact .assign__answer { min-height: 58px; font-size: 0.8125rem; }
.assign--compact .assign__viewfinder { aspect-ratio: 16 / 9; }
.assign--compact .assign__shutter { height: 40px; }

/* ---- Phone ---------------------------------------------------------------- */

.phone-demo { display: grid; justify-items: center; gap: 20px; }
.phone {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 19;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1d3478, #0a1535 42%, #050c26);
  box-shadow:
    0 0 0 1px rgba(141, 180, 255, 0.28),
    inset 0 0 0 1px rgba(185, 209, 255, 0.12),
    0 60px 120px -40px rgba(47, 107, 255, 0.65);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 24px;
  margin-left: -43px;
  border-radius: 12px;
  background: #000;
}
.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 14px 13px 16px;
  overflow: hidden;
  border-radius: 36px;
  background: radial-gradient(90% 40% at 50% 0%, rgba(47, 107, 255, 0.18), transparent 70%), var(--q-ink);
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 14px 8px;
  font: 600 0.75rem var(--font-sans);
}
.phone__battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--q-white);
  border-radius: 3px;
  opacity: 0.9;
}
.phone__battery::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  background: var(--q-white);
  border-radius: 1px;
}
.phone__app-top { display: flex; align-items: center; gap: 8px; }
.phone__mark { --u: 1.3px; }
.phone__stop {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  text-transform: uppercase;
}
.phone__score {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.phone__score b { font-weight: 400; color: var(--q-white); }
.phone__progress { display: flex; gap: 3px; }
.phone__progress i { flex: 1; height: 5px; background: rgba(141, 180, 255, 0.16); }
.phone__progress i.is-done { background: var(--q-blue-400); }
.phone__progress i.is-now { background: var(--q-white); animation: blink 1.2s steps(1) infinite; }
.phone__map {
  position: relative;
  flex: none;
  height: 104px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--q-navy-950);
  box-shadow: inset 0 0 0 1px var(--line);
}
.phone__map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone__route { fill: none; stroke: var(--q-blue-300); stroke-width: 1; stroke-dasharray: 1 1; opacity: 0.6; }
.phone__route--done { stroke: var(--q-white); stroke-dasharray: none; opacity: 1; }
.phone__pin { animation: bob-step 1s steps(1) infinite; }
.phone__me { fill: var(--q-white); }
.phone__card { flex: 1; min-height: 0; }
.phone__card .assign { height: auto; }

.phone-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.phone-demo__tab {
  --n: 2px;
  padding: 9px 12px;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}
.phone-demo__tab:hover { color: var(--q-white); background: rgba(47, 107, 255, 0.18); }
.phone-demo__tab[aria-pressed="true"] { color: var(--q-white); background: var(--q-blue-500); box-shadow: none; }
.phone-demo__tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--q-white); }

/* ---- Snow ----------------------------------------------------------------- */

.snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.join__lobby .join__actions { width: 100%; }
