:root {
  --aubergine: #240943;
  --aubergine-deep: #18032f;
  --purple: #9f3eff;
  --lime: #afc701;
  --lime-shadow: #8ea40b;
  --action: #f34f48;
  --action-shadow: #bd3733;
  --white: #fff;
  --muted: #6e6d75;
  --ink: #2e3a59;
  --body-font: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  --display-font: "Unbounded", "Arial Black", sans-serif;
  --shell-max-width: 1024px;
  --side-pad: clamp(16px, 5vw, 40px);
  --top-safe: env(safe-area-inset-top, 0px);
  --bottom-safe: env(safe-area-inset-bottom, 0px);
  --nav-height: clamp(88px, 12dvh, 112px);
  --dance-controls-height: clamp(124px, 17dvh, 164px);
}

* {
  box-sizing: border-box;
}

.svg-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(159, 62, 255, 0.22), transparent 35%),
    #0b0315;
  color: var(--white);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid #c3ff00;
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  width: min(100vw, var(--shell-max-width));
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--aubergine);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--aubergine);
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.screen.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.screen[hidden] {
  display: none;
}

.art-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.art-layer img {
  position: absolute;
  display: block;
  max-width: none;
}

.custom-background {
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: calc(68px + var(--top-safe));
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + var(--top-safe)) var(--side-pad) 16px;
}

.topbar-logo {
  display: block;
  width: clamp(98px, 14vw, 126px);
  height: auto;
  flex: none;
  filter: brightness(0) invert(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-action,
.currency {
  display: flex;
  height: clamp(36px, 5.2vw, 44px);
  align-items: center;
  justify-content: center;
  border: 1.5px solid #4e4e4e;
  border-radius: 20px;
  background: rgba(36, 9, 67, 0.1);
  backdrop-filter: blur(4px);
}

.round-action {
  width: clamp(36px, 5.2vw, 44px);
  padding: clamp(8px, 1.4vw, 11px);
  cursor: pointer;
}

.round-action img {
  width: clamp(18px, 2.8vw, 22px);
  height: clamp(18px, 2.8vw, 22px);
}

.round-action.is-muted {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  opacity: 1;
}

.round-action.is-muted img {
  width: 100%;
  height: 100%;
}

.currency {
  gap: 6px;
  padding: 4px 10px;
}

.currency img {
  width: clamp(18px, 2.8vw, 24px);
  height: clamp(18px, 2.8vw, 24px);
  object-fit: contain;
}

.currency strong {
  font-family: var(--display-font);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 700;
}

.big-button {
  position: relative;
  display: flex;
  height: clamp(64px, 9.5vh, 78px);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--action);
  box-shadow: inset 0 -6px 0 var(--action-shadow);
  cursor: pointer;
  font-family: var(--display-font);
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 120ms ease,
    filter 120ms ease;
}

.big-button:hover {
  filter: brightness(1.07);
}

.big-button:active {
  transform: translateY(4px);
  box-shadow: inset 0 -2px 0 var(--action-shadow);
}

.big-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.45) brightness(0.7);
}

.bottom-nav {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: calc(var(--nav-height) + var(--bottom-safe));
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(14px, 2.4vh, 20px) var(--side-pad)
    calc(18px + var(--bottom-safe));
  border-radius: 30px 30px 0 0;
  background: var(--aubergine);
}

.nav-item {
  display: flex;
  width: clamp(76px, 20vw, 118px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: clamp(11px, 2.2vw, 14px);
  font-weight: 500;
  line-height: 1;
}

.nav-item.is-active {
  color: var(--action);
  font-weight: 700;
}

.nav-icon {
  display: block;
  width: clamp(22px, 4vw, 28px);
  height: clamp(22px, 4vw, 28px);
}

.nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-icon.has-custom-icon {
  background: currentColor;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

.nav-icon.has-custom-icon svg {
  visibility: hidden;
}

/* Home */

.screen--home {
  background: var(--aubergine);
}

.home-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-scene {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-copy {
  position: absolute;
  z-index: 2;
  top: clamp(92px, 14dvh, 152px);
  right: var(--side-pad);
  left: var(--side-pad);
  text-align: center;
}

.home-copy h1,
.awards-heading h1,
.tickets-heading {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(34px, 8.8vw, 56px);
  font-weight: 900;
  line-height: 1.22;
  white-space: pre-line;
  text-transform: uppercase;
}

.home-copy p {
  max-width: 640px;
  margin: 5px auto 0;
  color: #f2efe9;
  font-size: clamp(15px, 3.5vw, 21px);
  line-height: 1.25;
  opacity: 0.9;
}

.home-ritual-panel {
  position: absolute;
  z-index: 3;
  right: max(var(--side-pad), calc((100% - 520px) / 2));
  bottom: calc(var(--nav-height) + var(--bottom-safe) + clamp(26px, 5dvh, 52px));
  left: max(var(--side-pad), calc((100% - 520px) / 2));
}

.home-ritual {
  width: 100%;
}

.home-ritual.is-practice-mode {
  background: #85838a;
  box-shadow: inset 0 -6px 0 #626067;
  color: #f4f4f5;
  font-size: calc(clamp(18px, 4.8vw, 24px) - 2px);
}

.home-ritual.is-practice-mode:hover {
  filter: brightness(1.08);
}

.home-ritual.is-practice-mode:active {
  box-shadow: inset 0 -2px 0 #626067;
}

/* Awards */

.screen--awards {
  overflow: hidden;
}

.scroll-surface {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scroll-surface::-webkit-scrollbar {
  display: none;
}

.art-layer--awards {
  position: absolute;
  width: 100%;
  height: clamp(820px, 110dvh, 1120px);
}

.awards-backdrop {
  top: -30.36%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.awards-scene {
  top: clamp(-74px, -7dvh, -42px);
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.art-layer--awards::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 9, 35, 0.7) 14.2%, transparent 32.4%);
  content: "";
  z-index: 5;
}

.awards-heading {
  position: absolute;
  z-index: 2;
  top: calc(var(--top-safe) + clamp(72px, 10dvh, 112px));
  right: var(--side-pad);
  left: var(--side-pad);
  text-align: center;
}

.awards-heading h1 {
  font-weight: 700;
}

.awards-heading p {
  max-width: 640px;
  margin: 5px auto 0;
  font-size: clamp(15px, 3.5vw, 20px);
  line-height: 1.25;
}

.awards-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(360px, 48dvh, 530px);
  min-height: 720px;
  padding: clamp(52px, 8dvh, 76px) var(--side-pad)
    calc(var(--nav-height) + var(--bottom-safe) + 34px);
  background: linear-gradient(to bottom, transparent 0, rgba(36, 9, 67, 0.94) 120px, var(--aubergine) 260px);
}

.chest-button {
  width: 100%;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  font-size: clamp(17px, 4vw, 22px);
}

.chest-button-label {
  line-height: 1.12;
  text-align: center;
  white-space: pre-line;
}

.button-price {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 28px;
  background: var(--white);
  color: var(--action);
}

.button-price img {
  width: 23px;
  height: 23px;
}

.button-price strong {
  font-family: var(--display-font);
  font-size: 19px;
}

.awards-content h2 {
  margin: 24px 0 8px;
  font-size: 14px;
  line-height: 1.2;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.8vw, 14px);
}

.reward-grid article {
  position: relative;
  display: flex;
  min-height: clamp(130px, 21vw, 174px);
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: var(--aubergine);
  font-family: "Lexend Deca", var(--body-font);
  font-size: clamp(11px, 2.1vw, 14px);
  font-weight: 700;
  line-height: 1.25;
}

.reward-grid article.is-next {
  border-color: rgba(243, 79, 72, 0.92);
  box-shadow:
    inset 0 0 22px rgba(243, 79, 72, 0.12),
    0 0 0 1px rgba(243, 79, 72, 0.15);
}

.reward-grid article.is-received {
  border-color: rgba(159, 62, 255, 0.45);
  background: #34105b;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    background 140ms ease;
}

.reward-grid article.is-received:hover {
  border-color: rgba(243, 79, 72, 0.72);
  background: #43136f;
}

.reward-grid article.is-received:active {
  transform: scale(0.98);
}

.reward-grid article.is-received:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}

.reward-number {
  color: rgba(255, 255, 255, 0.24);
  font-family: var(--display-font);
  font-size: 24px;
  line-height: 1;
}

.reward-card-image {
  position: absolute;
  top: 12px;
  right: 8px;
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: 0.34;
}

.reward-grid article > strong {
  position: relative;
  z-index: 1;
}

.reward-grid article small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.reward-grid article.is-next small {
  color: var(--action);
}

.reward-grid article.is-received small {
  color: #b87cff;
}

/* Tickets */

.screen--tickets {
  background:
    radial-gradient(circle at 50% 18%, rgba(159, 62, 255, 0.26), transparent 36%),
    linear-gradient(180deg, #17052e 0%, var(--aubergine) 62%, #19052f 100%);
}

.art-layer--tickets::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 2, 31, 0.18), rgba(24, 3, 47, 0.7)),
    radial-gradient(circle at 18% 30%, rgba(243, 79, 72, 0.14), transparent 24%),
    radial-gradient(circle at 83% 58%, rgba(106, 233, 255, 0.09), transparent 22%);
  content: "";
}

.tickets-scroll {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    calc(var(--top-safe) + clamp(78px, 10dvh, 104px))
    max(var(--side-pad), calc((100% - 700px) / 2))
    calc(var(--nav-height) + var(--bottom-safe) + 34px);
  scrollbar-width: none;
}

.tickets-scroll::-webkit-scrollbar {
  display: none;
}

.tickets-scroll::before {
  position: absolute;
  top: calc(var(--top-safe) + 104px);
  left: 50%;
  width: min(82vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 79, 72, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(159, 62, 255, 0.035),
    0 0 0 74px rgba(106, 233, 255, 0.018);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.tickets-glow {
  top: -12dvh;
  left: 50%;
  width: max(980px, 140vw);
  height: max(980px, 140vw);
  opacity: 0.56;
  transform: translateX(-50%);
}

.tickets-heading {
  position: relative;
  z-index: 3;
  font-size: clamp(34px, 8vw, 54px);
  text-align: center;
}

.tickets-heading::after {
  display: block;
  width: 58px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: var(--action);
  box-shadow: 0 0 20px rgba(243, 79, 72, 0.65);
  content: "";
}

.conference-card {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin: clamp(24px, 4dvh, 36px) auto 0;
  overflow: hidden;
  border-radius: clamp(16px, 2.4vw, 26px);
  background:
    linear-gradient(112.109deg, rgba(101, 30, 101, 0.5) 5.101%, rgba(101, 30, 101, 0) 98.435%),
    #1d0637;
  box-shadow: 0 24px 54px rgba(6, 0, 17, 0.38);
  color: var(--white);
}

.conference-card__decoration {
  position: absolute;
  z-index: 1;
  right: -14.2%;
  bottom: -27.7%;
  width: 77.7%;
  height: 158.4%;
  transform: rotate(-90deg);
}

.conference-card__mushroom {
  position: absolute;
  z-index: 2;
  top: 3.012%;
  left: 39.46%;
  width: 60.54%;
  height: 122.89%;
  object-fit: fill;
  transform: rotate(180deg) scaleY(-1);
}

.conference-card__location {
  position: absolute;
  z-index: 3;
  top: 9.04%;
  left: 12.02%;
  color: #fff;
  font-size: clamp(5.25px, 1.58vw, 11px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.conference-card__date {
  position: absolute;
  z-index: 3;
  top: 11.2%;
  left: 4.52%;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: clamp(20.97px, 6.32vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.conference-card__date::after {
  position: absolute;
  top: 0.47em;
  left: 1.2em;
  width: 1.275em;
  height: 0.1em;
  background: #fff;
  content: "";
}

.conference-card h2 {
  position: absolute;
  z-index: 3;
  right: 4.52%;
  bottom: 8%;
  left: 4.52%;
  margin: 0;
  color: #f5f5f5;
  font-family: var(--body-font);
  font-size: clamp(21.21px, 6.39vw, 44px);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.tickets-content {
  position: relative;
  z-index: 3;
  margin-top: clamp(18px, 3dvh, 28px);
}

.tickets-content > .big-button {
  width: 100%;
  gap: 14px;
  box-shadow:
    inset 0 -6px 0 var(--action-shadow),
    0 18px 34px rgba(243, 79, 72, 0.2);
}

.ticket-cta-arrow {
  font-family: var(--body-font);
  font-size: 30px;
  line-height: 0;
  transition: transform 140ms ease;
}

.tickets-content > .big-button:hover .ticket-cta-arrow {
  transform: translateX(5px);
}

.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.benefits article {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 88px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.07), transparent 70%),
    rgba(36, 9, 67, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.benefit-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(243, 79, 72, 0.38);
  border-radius: 16px;
  background: rgba(243, 79, 72, 0.14);
}

.benefit-icon img {
  width: 26px;
  height: 26px;
  filter: none;
}

.benefits h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(13px, 2.8vw, 17px);
  line-height: 1.2;
  text-transform: uppercase;
}

.benefits p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(11px, 2.1vw, 13px);
  line-height: 1.3;
}

/* Dance */

.screen--dance {
  --dance-lane-inset: var(--side-pad);
  --dance-target-size: clamp(64px, 21vw, 92px);
  --ritual-anchor-x: 50%;
  --ritual-anchor-y: 51.5%;

  background: var(--aubergine);
}

.dance-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.dance-lanes {
  position: absolute;
  z-index: 5;
  top: 0;
  right: var(--dance-lane-inset);
  left: var(--dance-lane-inset);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  height: calc(100% - var(--dance-controls-height) + 4px);
  opacity: 0.1;
}

.dance-lanes i {
  width: 21px;
  justify-self: center;
  background: #d9d9d9;
}

.dance-score {
  position: absolute;
  z-index: 2;
  top: calc(var(--top-safe) + clamp(54px, 7dvh, 78px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.dance-score img {
  width: clamp(24px, 4vw, 30px);
  height: clamp(24px, 4vw, 30px);
}

.dance-score strong {
  color: #f2efe9;
  font-family: var(--display-font);
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 800;
}

.dance-score span {
  margin-left: -4px;
  color: rgba(242, 239, 233, 0.66);
  font-size: 10px;
}

.dance-character {
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: calc(
    var(--dance-controls-height) + clamp(18px, 3dvh, 34px) + var(--dance-target-size) +
      clamp(8px, 1.5dvh, 16px)
  );
  left: var(--ritual-anchor-x);
  display: grid;
  width: clamp(140px, 40vw, 230px);
  height: clamp(200px, 36dvh, 280px);
  place-items: end center;
  pointer-events: none;
  transform: translateX(-50%);
}

.dance-character img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 100%;
}

.dance-character.is-triggered img {
  filter: drop-shadow(0 0 18px rgba(195, 255, 0, 0.45));
}

.dance-exit {
  position: absolute;
  z-index: 8;
  top: calc(var(--top-safe) + 16px);
  left: var(--side-pad);
  display: grid;
  width: clamp(36px, 5.2vw, 44px);
  height: clamp(36px, 5.2vw, 44px);
  place-items: center;
  border: 1.5px solid #4e4e4e;
  border-radius: 50%;
  background: rgba(36, 9, 67, 0.66);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dance-timer {
  position: absolute;
  z-index: 2;
  top: calc(var(--top-safe) + clamp(88px, 11dvh, 122px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(36, 9, 67, 0.72);
  transform: translateX(-50%);
  font-family: "Lexend Deca", var(--body-font);
  font-size: 11px;
}

.dance-timer small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
}

.falling-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 28px;
  background: var(--aubergine);
}

.falling-arrow img {
  width: 50px;
  height: 52px;
}

.falling-arrow--up {
  top: 12%;
  left: 11%;
}

.falling-arrow--left {
  top: 26%;
  left: 32%;
}

.falling-arrow--down {
  top: 38%;
  left: 54%;
}

.falling-arrow--right {
  top: -2%;
  left: 76%;
}

.screen--dance.is-playing .falling-arrows {
  display: none;
}

.game-notes {
  position: absolute;
  z-index: 2;
  inset: 0 0 var(--dance-controls-height);
  overflow: hidden;
  pointer-events: none;
}

.game-note {
  position: absolute;
  top: -70px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 28px;
  background: var(--aubergine);
  transform: translateX(-50%);
  animation: note-fall 3.8s linear forwards;
  will-change: top;
}

.game-note img {
  width: 50px;
  height: 52px;
}

.game-note.is-hit {
  opacity: 0;
  transform: translateX(-50%) scale(1.35);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

@keyframes note-fall {
  from {
    top: -70px;
  }
  to {
    top: calc(100% + 30px);
  }
}

.hit-feedback {
  position: absolute;
  z-index: 4;
  top: auto;
  bottom: calc(var(--dance-controls-height) + clamp(84px, 13dvh, 118px));
  right: 0;
  left: 0;
  color: #c3ff00;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 16px currentColor;
  text-transform: uppercase;
  transform: translateY(8px);
}

.hit-feedback.is-visible {
  animation: feedback-pop 520ms ease;
}

@keyframes feedback-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1);
  }
}

.dance-targets {
  position: absolute;
  z-index: 2;
  top: auto;
  right: var(--dance-lane-inset);
  bottom: calc(var(--dance-controls-height) + clamp(18px, 3dvh, 34px));
  left: var(--dance-lane-inset);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
}

.dance-targets i {
  width: min(100%, var(--dance-target-size));
  aspect-ratio: 1;
  justify-self: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  transition:
    background 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.dance-targets i.is-hit {
  border-color: #c3ff00;
  background: rgba(195, 255, 0, 0.28);
  box-shadow: 0 0 28px #c3ff00;
  transform: scale(0.92);
}

.dance-controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  height: calc(var(--dance-controls-height) + var(--bottom-safe));
  align-items: flex-start;
  padding: clamp(22px, 3.5dvh, 34px) var(--dance-lane-inset)
    calc(18px + var(--bottom-safe));
  border-radius: 30px 30px 0 0;
  background: var(--aubergine);
}

.dance-controls button {
  display: grid;
  width: 100%;
  max-width: 92px;
  aspect-ratio: 1;
  height: auto;
  justify-self: center;
  place-items: center;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
    transform 100ms ease,
    background 100ms ease;
}

.dance-controls button:active,
.dance-controls button.is-pressed {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.92);
}

.dance-controls img {
  width: clamp(46px, 11vw, 66px);
  height: clamp(48px, 11.5vw, 68px);
}

.round-overlay,
.reward-reveal,
.email-capture,
.welcome-consent,
.sound-choice {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 2, 24, 0.72);
  backdrop-filter: blur(9px);
}

.round-overlay[hidden],
.reward-reveal[hidden],
.email-capture[hidden],
.welcome-consent[hidden],
.sound-choice[hidden] {
  display: none;
}

.round-card,
.reward-reveal__card,
.email-capture__card,
.welcome-consent__card,
.sound-choice__card {
  width: min(100%, 520px);
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(159, 62, 255, 0.28), transparent 42%),
    var(--aubergine);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.round-kicker,
.reward-reveal__eyebrow {
  color: var(--action);
  font-family: "Lexend Deca", var(--body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.round-card h2,
.reward-reveal__card h2,
.email-capture__card h2,
.welcome-consent__card h2,
.sound-choice__card h2 {
  margin: 10px 0 8px;
  font-family: var(--display-font);
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
}

.round-card p,
.reward-reveal__card p,
.email-capture__card > p,
.welcome-consent__card > p,
.sound-choice__card > p {
  margin: 0 auto 20px;
  max-width: 390px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.round-card .big-button,
.reward-reveal__card .big-button,
.email-capture__card .big-button,
.welcome-consent__card .big-button,
.sound-choice__card .big-button {
  width: 100%;
  height: 62px;
  font-size: 17px;
}

.text-button {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-size: 12px;
}

.reward-reveal {
  z-index: 90;
}

.email-capture {
  z-index: 95;
}

.welcome-consent {
  z-index: 140;
  overflow-y: auto;
  background: rgba(12, 2, 24, 0.88);
}

.sound-choice {
  z-index: 145;
  background: rgba(12, 2, 24, 0.88);
}

.sound-choice__card {
  padding: 30px 24px 24px;
  animation: reward-in 360ms cubic-bezier(0.2, 0.9, 0.2, 1.12);
}

.sound-choice__icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid rgba(195, 255, 0, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, #9f3eff, #571a83);
  box-shadow: 0 14px 36px rgba(159, 62, 255, 0.28);
}

.sound-choice__icon[hidden] {
  display: none;
}

.sound-choice__icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sound-choice__muted {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font: 600 13px/1.3 var(--body-font);
}

.sound-choice button:focus-visible {
  outline: none;
}

.sound-choice__muted:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.email-capture__card {
  width: min(100%, 520px);
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(159, 62, 255, 0.28), transparent 42%),
    var(--aubergine);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.email-capture__card h2 {
  text-align: center;
}

.email-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.email-field > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.email-field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  caret-color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.email-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.42);
}

.email-field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(159, 62, 255, 0.16);
}

.email-field input:-webkit-autofill,
.email-field input:-webkit-autofill:hover,
.email-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow:
    0 0 0 1000px #2f0d4d inset,
    0 0 0 3px rgba(159, 62, 255, 0.16);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.35;
}

.consent-field input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--lime);
}

.email-error {
  min-height: 26px;
  color: #ff8eaa;
  font-size: 10px;
}

.reward-reveal__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.reward-action {
  margin-bottom: 10px;
  color: var(--white);
  text-decoration: none;
}

.reward-action:visited,
.reward-action:hover,
.reward-action:active {
  color: var(--white);
}

.reward-code {
  display: grid;
  width: 100%;
  gap: 6px;
  margin: -6px 0 12px;
  padding: 13px 16px;
  border: 1px solid rgba(243, 79, 72, 0.5);
  border-radius: 14px;
  background: rgba(243, 79, 72, 0.12);
  text-align: center;
}

.reward-code[hidden],
.reward-validity[hidden] {
  display: none;
}

.reward-code span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reward-code strong {
  color: var(--white);
  font-family: var(--display-font);
  font-size: clamp(18px, 4.5vw, 24px);
  overflow-wrap: anywhere;
}

.reward-reveal__card .reward-validity {
  margin: -2px auto 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.reward-reveal__card {
  animation: reward-in 420ms cubic-bezier(0.2, 0.9, 0.2, 1.15);
}

.reward-reveal__card > img {
  display: block;
  width: min(100%, 260px);
  height: clamp(118px, 19dvh, 158px);
  margin: 12px auto 0;
  object-fit: contain;
}

.welcome-consent__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(22px, 4vw, 32px);
  text-align: center;
}

.welcome-consent__card > img {
  width: clamp(92px, 20vw, 134px);
  height: clamp(104px, 20dvh, 154px);
  margin: -8px auto 8px;
  object-fit: contain;
}

.welcome-consent__card > img[hidden] {
  display: none;
}

.welcome-consent__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.welcome-consent__check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--lime);
}

.privacy-link {
  align-self: flex-start;
  margin: 0 0 16px 41px;
  color: #c3ff00;
  font-size: 11px;
}

.welcome-consent__card .big-button {
  margin-top: 8px;
}

.loading-screen {
  position: absolute;
  z-index: 200;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: var(--side-pad) var(--side-pad)
    calc(clamp(42px, 8dvh, 78px) + var(--bottom-safe));
  background: var(--aubergine);
  opacity: 1;
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

.loading-screen.is-complete {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.loading-art::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(20, 2, 38, 0.9) 100%);
  content: "";
}

.loading-art img {
  position: absolute;
  display: block;
}

.loading-default {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.loading-content {
  position: relative;
  z-index: 10;
  display: grid;
  width: min(100%, 520px);
  gap: 10px;
  margin: 0 auto;
}

.loading-content strong {
  font-family: var(--display-font);
  font-size: clamp(16px, 4vw, 22px);
  text-transform: uppercase;
}

.loading-content > span {
  color: rgba(255, 255, 255, 0.64);
  font-family: "Lexend Deca", var(--body-font);
  font-size: 11px;
  text-align: right;
}

.loading-progress {
  height: 12px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 2, 24, 0.62);
}

.loading-progress i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #c3ff00);
  box-shadow: 0 0 14px rgba(195, 255, 0, 0.45);
  transition: width 260ms ease;
}

@keyframes reward-in {
  from {
    opacity: 0;
    transform: scale(0.75) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.toast {
  position: absolute;
  z-index: 100;
  right: 20px;
  bottom: 108px;
  left: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(12, 2, 24, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-height: 760px) {
  .app-shell {
    min-height: 100dvh;
  }

  .home-copy {
    top: 88px;
  }

  .home-copy h1,
  .awards-heading h1,
  .tickets-heading {
    font-size: 32px;
  }

  .home-ritual-panel {
    bottom: 126px;
  }

  .tickets-scroll {
    padding-top: calc(var(--top-safe) + 70px);
  }

  .conference-card {
    margin-top: 18px;
  }

  .tickets-content {
    margin-top: 16px;
  }

  .benefits {
    gap: 6px;
    margin-top: 16px;
  }

  .benefits article {
    min-height: 78px;
    padding: 15px 18px;
  }

  .welcome-consent {
    place-items: center;
    padding-block: 14px;
  }

  .welcome-consent__card > img {
    width: 76px;
    height: 82px;
  }

  .welcome-consent__card > p {
    margin-bottom: 12px;
  }

  .dance-character {
    width: clamp(130px, 38vw, 210px);
    height: clamp(190px, 34dvh, 250px);
  }
}

@media (min-width: 560px) {
  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen--dance {
    --dance-lane-inset: max(var(--side-pad), calc((100% - 620px) / 2));
  }
}

@media (min-width: 800px) {
  .awards-content {
    padding-right: max(var(--side-pad), calc((100% - 900px) / 2));
    padding-left: max(var(--side-pad), calc((100% - 900px) / 2));
  }

  .reward-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits article {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
  }

  .bottom-nav {
    padding-right: max(var(--side-pad), calc((100% - 760px) / 2));
    padding-left: max(var(--side-pad), calc((100% - 760px) / 2));
  }
}

@media (max-width: 359px) {
  .home-copy h1 {
    font-size: 30px;
  }

  .home-copy p {
    font-size: 14px;
  }

  .big-button {
    font-size: 17px;
  }

  .home-ritual-panel {
    right: 24px;
    left: 24px;
  }

  .screen--dance {
    --dance-lane-inset: 18px;
  }

  .dance-controls button {
    max-width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
