/* Join — web sign-up + "how to play" deck.
   One night-sky sheet in the site's tokens. While signing up, a fanned
   tarot deck turns beside the form; once in, six face-down cards are dealt
   and flip to teach the app, ending on the store. */

.join {
  --j-bg: radial-gradient(130% 90% at 0% 0%, #2c1b62 0%, #160f2c 48%, var(--ink-2) 100%);
  --j-hair: rgba(243, 201, 105, 0.32);
  --j-field: rgba(255, 244, 236, 0.06);
  --j-field-line: rgba(255, 244, 236, 0.22);
  --j-err: #ff8f7a;
  width: min(1040px, calc(100vw - 48px));
  height: min(700px, calc(100svh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 32px;
  color: var(--cream);
  background: var(--j-bg);
  box-shadow: 0 0 0 1px var(--j-hair), 0 40px 140px -24px rgba(139, 92, 246, 0.55);
  overflow: hidden;
}

.join[open] {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  animation: join-in 0.6s var(--ease-spring);
}

.join::backdrop {
  background: rgba(8, 6, 18, 0.74);
  backdrop-filter: blur(8px);
}

/* [hidden] must beat the display rules below (Apple button, notes, social row) */
.join [hidden] {
  display: none !important;
}

@keyframes join-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
  }
}

.join__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--cream);
  background: rgba(255, 244, 236, 0.08);
  transition: background-color 0.2s, transform 0.4s var(--ease-spring);
}

.join__close:hover {
  background: rgba(255, 244, 236, 0.16);
  transform: rotate(90deg);
}

/* ── stage: the deck that turns while you sign up ─────────────────── */

.join__stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 46%, rgba(255, 139, 110, 0.18), transparent 70%);
  border-right: 1px solid var(--line);
}

.join__wheel {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 118%;
  max-width: none;
  opacity: 0.32;
  translate: -50% -50%;
  animation: j-spin 90s linear infinite;
}

@keyframes j-spin {
  to {
    rotate: 360deg;
  }
}

.join__fan {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 46%;
  aspect-ratio: 0.58;
  translate: -50% -50%;
}

.join__fan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--j-hair), 0 24px 50px -12px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 120%;
  animation: j-fan 7s var(--ease-out) infinite;
}

.join__fan img:nth-child(1) {
  --r: -18deg;
}
.join__fan img:nth-child(2) {
  --r: 0deg;
  animation-delay: -0.15s;
}
.join__fan img:nth-child(3) {
  --r: 18deg;
  animation-delay: -0.3s;
}

/* cards gather into a deck, then fan out again — a slow shuffle */
@keyframes j-fan {
  0%,
  12% {
    transform: rotate(0deg);
  }
  30%,
  82% {
    transform: rotate(var(--r)) translateY(-4px);
  }
  100% {
    transform: rotate(0deg);
  }
}

.join__el {
  position: absolute;
  width: 15%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: j-bob 5s ease-in-out infinite;
}
.join__el--fire {
  left: 12%;
  top: 14%;
}
.join__el--water {
  right: 12%;
  top: 20%;
  animation-delay: -1.2s;
}
.join__el--earth {
  left: 16%;
  bottom: 20%;
  animation-delay: -2.4s;
}
.join__el--wind {
  right: 14%;
  bottom: 16%;
  animation-delay: -3.6s;
}

@keyframes j-bob {
  50% {
    transform: translateY(-10px) rotate(-6deg);
  }
}

.join__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0.8;
}

/* ── panel ────────────────────────────────────────────────────────── */

.join__panel {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.join__pane {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 100%;
  padding: 56px clamp(24px, 4.5vw, 56px) 40px;
}

.join__pane[hidden] {
  display: none;
}

.join__pane:not([hidden]) {
  animation: j-pane 0.5s var(--ease-out);
}

@keyframes j-pane {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

.join .eyebrow {
  justify-self: start;
}

.join__title:focus,
.join__title:focus-visible {
  outline: none;
  box-shadow: none;
}

.join__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  outline: none;
}

html[lang="th"] .join__title {
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.join__lede {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 16px;
}

.join__echo {
  color: var(--cream);
  word-break: break-all;
}

.join__social {
  display: grid;
  gap: 10px;
}

.sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.45s var(--ease-spring), opacity 0.2s, box-shadow 0.2s;
}

.sbtn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.sbtn--google {
  color: #1f1f1f;
  background: #fff;
}

.sbtn--apple {
  color: #fff;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.sbtn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.sbtn.is-busy {
  opacity: 0.7;
  cursor: progress;
}

@media (hover: hover) {
  .sbtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.45);
  }
}

.sbtn:not(:disabled):active {
  transform: scale(0.96);
}

.join__or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.join__or::before,
.join__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.join__row {
  display: flex;
  gap: 10px;
}

.join__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border: 1px solid var(--j-field-line);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 16px;
  color: var(--cream);
  background: var(--j-field);
  transition: border-color 0.2s, background-color 0.2s;
}

.join__input::placeholder {
  color: rgba(255, 244, 236, 0.4);
}

.join__input:focus {
  outline: none;
  border-color: var(--orange-2);
  background: rgba(255, 244, 236, 0.1);
}

.join__input[aria-invalid="true"] {
  border-color: var(--j-err);
}

.join__go {
  flex: none;
}

.join__go[aria-busy="true"] {
  color: transparent;
  pointer-events: none;
}

.join__go[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(14, 14, 14, 0.25);
  border-top-color: var(--ink);
  animation: j-spin 0.8s linear infinite;
}

.join__err {
  min-height: 0;
  margin: -6px 0 0;
  color: var(--j-err);
  font-size: 14px;
}

.join__err:empty {
  display: none;
}

.join__note {
  margin: -4px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  color: var(--gold-2);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.join__legal,
.join__hint {
  margin: 0;
  color: rgba(255, 244, 236, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.join__legal a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join__back {
  justify-self: start;
  margin-bottom: 6px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.join__back:hover {
  color: var(--cream);
}

/* six code cells driven by one real input (keeps paste + SMS/OS autofill) */
.join__code {
  display: grid;
  gap: 14px;
}

.otp {
  position: relative;
  height: 68px;
}

.otp__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  color: transparent;
  caret-color: transparent;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0;
  outline: none;
}

.otp__input::selection {
  background: transparent;
  color: transparent;
}

.otp__cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  height: 100%;
}

.otp__cells i {
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-style: normal;
  font-size: 30px;
  font-weight: 700;
  background: var(--j-field);
  box-shadow: inset 0 0 0 1px var(--j-field-line);
  transition: box-shadow 0.2s, transform 0.35s var(--ease-spring), background-color 0.2s;
}

.otp__cells i.is-filled {
  background: rgba(255, 244, 236, 0.1);
  transform: translateY(-2px);
}

.otp.is-focus .otp__cells i.is-cur {
  box-shadow: inset 0 0 0 2px var(--orange-2);
}

.otp.is-bad .otp__cells i {
  box-shadow: inset 0 0 0 1px var(--j-err);
  animation: j-shake 0.4s;
}

@keyframes j-shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.join__code .join__go {
  width: 100%;
}

.join__resend {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.join__resend button {
  padding: 6px 0;
  color: var(--orange-2);
  font-weight: 700;
}

.join__resend button:disabled {
  color: var(--muted);
  font-weight: 400;
  cursor: default;
}

/* ── learn: the dealt deck ────────────────────────────────────────── */

.join[data-step="learn"] {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 761px) {
  .join[data-step="learn"] {
    height: min(780px, calc(100svh - 40px));
  }
}

.join[data-step="learn"] .join__stage {
  display: none;
}

.join__learn {
  align-content: start;
  gap: 14px;
  padding: 44px 0 28px;
}

.learn__head {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 0 clamp(24px, 5vw, 64px);
  text-align: center;
}

.learn__head .eyebrow {
  justify-self: center;
}

.learn__head .join__lede {
  margin: 0;
}

.deck {
  --card-w: clamp(220px, 22vw, 262px);
  display: flex;
  gap: 22px;
  padding: 18px calc(50% - var(--card-w) / 2) 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: flex-start;
  flex: none;
  height: calc(var(--card-w) / 0.62 + 44px);
  scrollbar-width: none;
  outline: none;
  perspective: 1400px;
}

.deck::-webkit-scrollbar {
  display: none;
}

.lcard {
  flex: none;
  width: var(--card-w);
  height: calc(var(--card-w) / 0.62);
  scroll-snap-align: center;
  transition: transform 0.55s var(--ease-spring), opacity 0.4s;
  opacity: 0.5;
  transform: scale(0.9);
}

.lcard.is-active {
  opacity: 1;
  transform: scale(1);
}

.lcard__in {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 0.9s var(--ease-out);
}

.lcard.is-open .lcard__in {
  transform: rotateY(0deg);
}

.lcard__back,
.lcard__face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.lcard__back {
  transform: rotateY(180deg);
  box-shadow: 0 0 0 1px var(--j-hair), 0 24px 50px -16px rgba(0, 0, 0, 0.8);
}

.lcard__back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lcard__face {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 20px;
  background: linear-gradient(180deg, #241650 0%, #120c26 58%);
  box-shadow: 0 0 0 1px var(--j-hair), 0 30px 60px -18px rgba(139, 92, 246, 0.55);
}

/* tarot-style inner frame */
.lcard__face::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(243, 215, 122, 0.28);
  pointer-events: none;
}

.lcard__num {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-2);
}

.lcard h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

html[lang="th"] .lcard h3 {
  font-size: 19px;
  line-height: 1.3;
}

.lcard p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* deal: cards fly in from a stack, face down */
.join__learn.is-dealing .lcard {
  animation: j-deal 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i) * 0.09s);
}

@keyframes j-deal {
  from {
    opacity: 0;
    transform: translate(calc(var(--i) * -60px), 160px) rotate(-16deg) scale(0.8);
  }
}

.deck__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
}

.deck__arrow {
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--cream);
  background: rgba(255, 244, 236, 0.08);
  transition: background-color 0.2s, opacity 0.2s, transform 0.4s var(--ease-spring);
}

.deck__arrow--next {
  padding: 0 22px;
  color: var(--ink);
  background: var(--orange);
}

.deck__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.deck__arrow:not(:disabled):active {
  transform: scale(0.94);
}

.deck__dots {
  display: flex;
  gap: 8px;
}

.deck__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 244, 236, 0.25);
  transition: width 0.4s var(--ease-spring), background-color 0.2s;
}

.deck__dots button[aria-current="true"] {
  width: 26px;
  border-radius: 6px;
  background: var(--gold-2);
}

.join__skip {
  justify-self: center;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join__skip[hidden] {
  display: none;
}

/* ── card art (runs only on the open, active card) ────────────────── */

.art {
  position: relative;
  flex: none;
  height: 52%;
  margin: 0 -18px 6px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 55%, rgba(255, 139, 110, 0.22), transparent 70%);
}

.lcard:not(.is-active) .art *,
.lcard:not(.is-open) .art * {
  animation-play-state: paused !important;
}

/* I · elements around the wheel */
.art__wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  opacity: 0.55;
  translate: -50% -50%;
  animation: j-spin 40s linear infinite;
}

.art__el {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 19%;
  translate: -50% -50%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  animation: j-pop 3.2s var(--ease-spring) infinite;
  animation-delay: var(--d);
}

@keyframes j-pop {
  0%,
  100% {
    transform: scale(0.86);
  }
  20% {
    transform: scale(1.12) rotate(-8deg);
  }
  40% {
    transform: scale(1);
  }
}

/* II · two blurred strangers, a 200-second ring, then the reveal */
.art__who {
  position: absolute;
  bottom: -14%;
  width: 46%;
  filter: blur(7px) saturate(0.6);
  animation: j-reveal 8s ease-in-out infinite;
}
.art__who--a {
  left: 2%;
}
.art__who--b {
  right: 2%;
}

@keyframes j-reveal {
  0%,
  70% {
    filter: blur(7px) saturate(0.6);
  }
  80%,
  95% {
    filter: blur(0) saturate(1);
  }
  100% {
    filter: blur(7px) saturate(0.6);
  }
}

.art__timer {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 64px;
  translate: -50% 0;
  rotate: -90deg;
}

.art__timer circle {
  fill: rgba(14, 14, 14, 0.55);
  stroke: rgba(255, 244, 236, 0.18);
  stroke-width: 5;
}

.art__timer .art__timer-run {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  animation: j-timer 8s linear infinite;
}

@keyframes j-timer {
  0% {
    stroke-dashoffset: 0;
  }
  70%,
  100% {
    stroke-dashoffset: 163.4;
  }
}

.art__secs {
  position: absolute;
  left: 50%;
  top: calc(14% + 22px);
  translate: -50% 0;
  font-size: 13px;
}

.art__bubble {
  position: absolute;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  white-space: nowrap;
  animation: j-bubble 8s var(--ease-spring) infinite;
}
.art__bubble--a {
  left: 8%;
  top: 40%;
  border-bottom-left-radius: 4px;
  animation-delay: 0.8s;
}
.art__bubble--b {
  right: 8%;
  top: 56%;
  border-bottom-right-radius: 4px;
  color: var(--cream);
  background: var(--orange);
  animation-delay: 2.2s;
}

@keyframes j-bubble {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  6%,
  60% {
    opacity: 1;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* III · three cards turn over, a reward pops */
.art__tc {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 30%;
  aspect-ratio: 0.58;
  translate: -50% -50%;
  rotate: var(--r);
  transform-origin: 50% 140%;
  transform-style: preserve-3d;
  animation: j-turn 6s var(--ease-out) infinite;
  animation-delay: var(--d);
}

.art__tc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8);
}

.art__tc img:last-child {
  transform: rotateY(180deg);
}

@keyframes j-turn {
  0%,
  15% {
    transform: rotateY(0deg);
  }
  30%,
  85% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.art__reward {
  position: absolute;
  right: 10%;
  top: 12%;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--gold-2);
  box-shadow: 0 8px 20px -6px rgba(243, 215, 122, 0.8);
  animation: j-reward 6s var(--ease-spring) infinite;
}

@keyframes j-reward {
  0%,
  35% {
    opacity: 0;
    transform: translateY(12px) scale(0.6);
  }
  42%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* IV · two signs, a thread drawn between them */
.art__sign {
  position: absolute;
  top: 34%;
  width: 34%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  animation: j-bob 4s ease-in-out infinite;
}
.art__sign--a {
  left: 6%;
}
.art__sign--b {
  right: 6%;
  animation-delay: -2s;
}

.art__thread {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 20%;
  height: 44%;
  width: 60%;
  overflow: visible;
}

.art__thread path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 260;
  animation: j-draw 4s var(--ease-out) infinite;
}

@keyframes j-draw {
  0% {
    stroke-dashoffset: 260;
  }
  45%,
  100% {
    stroke-dashoffset: 0;
  }
}

.art__heart {
  position: absolute;
  left: 50%;
  top: 14%;
  translate: -50% 0;
  font-size: 26px;
  color: var(--orange);
  animation: j-beat 4s var(--ease-spring) infinite;
}

@keyframes j-beat {
  0%,
  40% {
    opacity: 0;
    transform: scale(0.3);
  }
  50%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    transform: scale(1.3);
  }
}

/* V · the real Date Quest screen, missions stamped off */
.art__phone {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 46%;
  translate: -50% 0;
  rotate: -6deg;
  padding: 4px;
  border-radius: 16px;
  background: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 34px -10px rgba(0, 0, 0, 0.8);
}

.art__phone img {
  border-radius: 12px;
}

.art__stamp {
  position: absolute;
  right: 6%;
  top: var(--y);
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: #34d399;
  rotate: 4deg;
  animation: j-stamp 6s var(--ease-spring) infinite;
  animation-delay: var(--d);
}

@keyframes j-stamp {
  0% {
    opacity: 0;
    transform: scale(1.8);
  }
  8%,
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}

/* VI · download */
.lcard--get .lcard__face {
  justify-content: center;
  padding-top: 18px;
  text-align: left;
}

.get__sun {
  width: 22%;
  margin: 0 auto 2px;
  animation: j-bob 4s ease-in-out infinite;
}

.lcard:not(.is-active) .get__sun {
  animation-play-state: paused;
}

.get__steps {
  display: grid;
  gap: 4px;
  margin: 2px 0 6px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.get__steps b {
  color: var(--cream);
}

.get__stores {
  display: grid;
  gap: 8px;
}

.get__stores .store {
  justify-content: center;
  height: 42px;
}

.get__qr {
  display: none;
}

/* ── responsive ───────────────────────────────────────────────────── */

@media (min-width: 900px) and (hover: hover) {
  .get__qr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
  }
  .get__qr .getapp__qr {
    flex: none;
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 8px;
    background: var(--cream);
  }
}

@media (max-width: 760px) {
  .join {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .join[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    animation-name: join-up;
  }

  @keyframes join-up {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
  }

  /* the deck shrinks to a band above the form */
  .join__stage {
    height: 30dvh;
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .join[open][data-step="learn"] {
    grid-template-rows: minmax(0, 1fr);
  }

  .join[data-step="code"] .join__stage {
    height: 18dvh;
    min-height: 120px;
  }

  .join__fan {
    width: 26%;
    top: 50%;
  }

  .join__wheel {
    width: 80%;
    top: 50%;
  }

  .join__el {
    width: 11%;
  }

  .join__cap {
    display: none;
  }

  .join__pane {
    align-content: start;
    padding: 26px 20px 32px;
    gap: 16px;
  }

  .join__row {
    flex-direction: column;
  }

  .join__input {
    flex: none;
    width: 100%;
  }

  .join__go {
    width: 100%;
  }

  .join__learn {
    padding: 40px 0 20px;
  }

  .deck {
    --card-w: min(72vw, 290px);
    gap: 14px;
  }

  .deck__nav {
    gap: 12px;
  }
}

@media (max-height: 560px) and (max-width: 760px) {
  .join[data-step="start"] .join__stage,
  .join[data-step="code"] .join__stage {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join__wheel,
  .join__fan img,
  .join__el,
  .art *,
  .get__sun {
    animation: none !important;
  }
  .join__fan img:nth-child(1) {
    transform: rotate(-18deg);
  }
  .join__fan img:nth-child(3) {
    transform: rotate(18deg);
  }
  .art__who {
    filter: none;
  }
  .art__tc {
    transform: rotateY(180deg);
  }
  .art__bubble,
  .art__reward,
  .art__stamp,
  .art__heart {
    opacity: 1;
  }
  .art__timer .art__timer-run {
    stroke-dashoffset: 60;
  }
  .art__thread path {
    stroke-dashoffset: 0;
  }
  .lcard__in {
    transition: none;
  }
}
