:root {
  --bg-left: #6b1cff;
  --bg-right: #1721a9;
  --text-main: #f4f7ff;
  --text-dim: rgba(229, 236, 255, 0.75);
  --magenta: #ba47ff;
  --cyan-strong: #00a7ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 42%, rgba(186, 71, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 42%, rgba(56, 215, 255, 0.16), transparent 30%),
    linear-gradient(90deg, #05031a 0%, var(--bg-left) 34%, var(--bg-right) 70%, #140120 100%);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.5) 18%, rgba(0, 0, 0, 0.18) 34%, transparent 52%),
    radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.5) 18%, rgba(0, 0, 0, 0.18) 34%, transparent 52%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.56) 18%, rgba(0, 0, 0, 0.2) 34%, transparent 52%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.56) 18%, rgba(0, 0, 0, 0.2) 34%, transparent 52%);
}

a,
button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
}

.landing-user-pill[hidden] {
  display: none;
}

.landing-user-pill {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: max-content;
  max-width: calc(100vw - 48px);
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 16, 40, 0.5);
  color: rgba(244, 247, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.landing-user-pill span {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  order: 1;
}

.landing-user-pill-action {
  appearance: none;
  flex: 0 0 auto;
  min-height: 30px;
  max-width: min(100%, 260px);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 255, 0.92);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  order: 2;
}

#landing-forget-me-button {
  order: 99;
}

.landing-user-pill-action:hover,
.landing-user-pill-action:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.landing-user-pill-action-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2764ff 0%, #675bff 58%, #9165ff 100%);
  box-shadow: 0 18px 40px rgba(39, 100, 255, 0.26);
}

.landing-user-pill-action-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #2764ff 0%, #675bff 58%, #9165ff 100%);
  border-color: transparent;
}

.landing-user-pill-action-primary:focus-visible {
  outline: 3px solid rgba(70, 113, 255, 0.3);
  outline-offset: 4px;
  background: linear-gradient(135deg, #2764ff 0%, #675bff 58%, #9165ff 100%);
  border-color: transparent;
}

.landing-user-pill-action:disabled {
  cursor: wait;
  opacity: 0.6;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.page::before {
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(181, 52, 255, 0.95), rgba(181, 52, 255, 0));
}

.page::after {
  right: -10%;
  top: 12%;
  background: radial-gradient(circle, rgba(0, 166, 255, 0.95), rgba(0, 166, 255, 0));
}

.hero-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  width: min(1360px, 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(24px, 4vw, 64px);
  overflow: visible;
}

.hero-backdrop {
  position: absolute;
  top: 50%;
  width: 30vw;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-backdrop-left {
  left: 2%;
  transform: translateY(-52%);
  background: radial-gradient(circle, rgba(181, 52, 255, 0.72), rgba(181, 52, 255, 0));
}

.hero-backdrop-right {
  right: 2%;
  transform: translateY(-52%);
  background: radial-gradient(circle, rgba(36, 185, 255, 0.7), rgba(36, 185, 255, 0));
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px) saturate(1.08);
  animation: hero-orb-float 7.2s ease-in-out infinite;
}

.hero-orb-a {
  top: 14%;
  left: 10%;
  width: 46px;
  height: 46px;
  background: radial-gradient(circle at 30% 30%, rgba(154, 243, 255, 0.98), rgba(39, 195, 255, 0.84) 56%, rgba(39, 195, 255, 0) 100%);
  box-shadow: 0 0 28px rgba(39, 195, 255, 0.3);
  animation-duration: 6.2s;
  animation-delay: -0.8s;
}

.hero-orb-b {
  top: 18%;
  right: 13%;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 32% 32%, rgba(233, 178, 255, 0.96), rgba(181, 52, 255, 0.82) 58%, rgba(181, 52, 255, 0) 100%);
  box-shadow: 0 0 30px rgba(181, 52, 255, 0.32);
  animation-duration: 7.8s;
  animation-delay: -2.4s;
}

.hero-orb-c {
  left: 31%;
  bottom: 16%;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 35% 35%, rgba(133, 243, 255, 0.94), rgba(62, 133, 255, 0.78) 62%, rgba(62, 133, 255, 0) 100%);
  box-shadow: 0 0 24px rgba(62, 133, 255, 0.24);
  animation-duration: 5.9s;
  animation-delay: -1.6s;
}

.hero-orb-d {
  right: 28%;
  bottom: 10%;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 30% 30%, rgba(165, 120, 255, 0.86), rgba(106, 28, 255, 0.54) 58%, rgba(106, 28, 255, 0) 100%);
  box-shadow: 0 0 36px rgba(122, 76, 255, 0.22);
  animation-duration: 8.6s;
  animation-delay: -3.1s;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(360px, 520px);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.hero-figure {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.figure-particles {
  position: absolute;
  inset: -8% -6% -4%;
  pointer-events: none;
  z-index: 0;
}

.figure-particle {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 201, 255, 0.95) 0%, rgba(189, 97, 255, 0.78) 45%, rgba(128, 39, 255, 0.14) 72%, rgba(128, 39, 255, 0) 100%);
  box-shadow:
    0 0 10px rgba(198, 112, 255, 0.55),
    0 0 22px rgba(132, 44, 255, 0.34);
  opacity: 0.72;
  filter: blur(0.4px);
  animation: figure-particle-float 8.6s ease-in-out infinite, figure-particle-twinkle 4.2s ease-in-out infinite;
}

.particle-1 {
  top: 12%;
  left: 12%;
  width: 12px;
  height: 12px;
  animation-duration: 7.2s, 3.4s;
  animation-delay: -0.8s, -1.6s;
}

.particle-2 {
  top: 20%;
  right: 14%;
  width: 16px;
  height: 16px;
  animation-duration: 8.8s, 4.6s;
  animation-delay: -2.1s, -0.7s;
}

.particle-3 {
  top: 40%;
  left: 2%;
  width: 10px;
  height: 10px;
  animation-duration: 6.9s, 3.1s;
  animation-delay: -3.4s, -2.4s;
}

.particle-4 {
  top: 54%;
  right: 4%;
  width: 20px;
  height: 20px;
  animation-duration: 10.4s, 5s;
  animation-delay: -4.2s, -1.8s;
}

.particle-5 {
  bottom: 24%;
  left: 10%;
  width: 14px;
  height: 14px;
  animation-duration: 7.8s, 3.8s;
  animation-delay: -1.3s, -2.8s;
}

.particle-6 {
  bottom: 10%;
  right: 18%;
  width: 9px;
  height: 9px;
  animation-duration: 6.4s, 2.9s;
  animation-delay: -2.8s, -1.1s;
}

.particle-7 {
  top: 30%;
  right: 24%;
  width: 7px;
  height: 7px;
  animation-duration: 5.8s, 2.7s;
  animation-delay: -1.9s, -0.4s;
}

.particle-8 {
  bottom: 34%;
  right: 10%;
  width: 13px;
  height: 13px;
  animation-duration: 9.6s, 4.8s;
  animation-delay: -5.1s, -2.2s;
}

.hero-figure img {
  width: auto;
  max-width: none;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero-figure-rotator {
  display: grid;
  place-items: center;
}

.hero-figure-rotator > img {
  grid-area: 1 / 1;
}

.hero-figure-image-main {
  opacity: 1;
}

.hero-figure-single {
  justify-self: start;
  justify-content: center;
}

.hero-figure-single img {
  width: auto;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

body.hero-assets-ready .hero-figure-single .hero-figure-image-main {
  animation: none;
}

.figure-glow {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 520px);
  text-align: left;
  padding: 28px 36px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(236, 242, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  position: relative;
  padding-bottom: 0.24em;
  background: linear-gradient(180deg, #7bf2ff 0%, #27c3ff 44%, #a34bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7bf2ff 0%, #27c3ff 44%, #a34bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  opacity: 1;
  filter: blur(12px) saturate(2) brightness(1) contrast(1.08);
  animation: title-glow-breathe 8s ease-in-out infinite;
}

.hero-description {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2764ff 0%, #675bff 58%, #9165ff 100%);
  box-shadow: 0 18px 40px rgba(39, 100, 255, 0.26);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.hero-cta::before {
  content: none;
}

.hero-cta:hover {
  filter: brightness(1.06);
}

.hero-cta:focus-visible {
  outline: 3px solid rgba(70, 113, 255, 0.3);
  outline-offset: 4px;
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(15, 20, 48, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(22, 30, 66, 0.5);
  outline: none;
}

@keyframes title-glow-breathe {
  0%,
  100% {
    opacity: 0.78;
  }

  50% {
    opacity: 1;
  }
}

@keyframes start-button-glow {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.88;
  }
}

@keyframes hero-orb-float {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -14px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes figure-particle-float {
  0% {
    transform: translate3d(0, 10px, 0) scale(0.92);
  }

  30% {
    transform: translate3d(10px, -8px, 0) scale(1);
  }

  60% {
    transform: translate3d(-8px, -22px, 0) scale(1.08);
  }

  100% {
    transform: translate3d(6px, -34px, 0) scale(0.9);
  }
}

@keyframes figure-particle-twinkle {
  0%,
  100% {
    opacity: 0.24;
    filter: blur(0.8px);
  }

  45% {
    opacity: 0.88;
    filter: blur(0);
  }

  70% {
    opacity: 0.56;
    filter: blur(0.3px);
  }
}

@media (max-width: 960px) {
  .landing-user-pill {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    justify-content: space-between;
  }

  .hero-shell {
    min-height: 100vh;
    padding: 28px 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    order: 2;
    max-width: 520px;
    margin: clamp(-128px, -18vw, -64px) auto 0;
    text-align: center;
    padding: 20px;
  }

  .eyebrow {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }

  .hero-figure {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-figure-single {
    order: 1;
    justify-self: center;
    justify-content: center;
    margin-top: 24px;
  }

  .hero-figure-single img {
    width: 100%;
    max-width: 100%;
  }

  .hero-backdrop-left,
  .hero-backdrop-right {
    width: 58vw;
  }

  .hero-orb-a {
    top: 10%;
    left: 6%;
    width: 30px;
    height: 30px;
  }

  .hero-orb-b {
    top: 14%;
    right: 8%;
    width: 40px;
    height: 40px;
  }

  .hero-orb-c {
    left: 14%;
    bottom: 30%;
    width: 24px;
    height: 24px;
  }

  .hero-orb-d {
    right: 10%;
    bottom: 18%;
    width: 48px;
    height: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-description {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 15px;
    justify-content: center;
  }

  .hero-cta {
    width: 100%;
    max-width: 260px;
  }

  .hero-secondary-cta {
    width: 100%;
    max-width: 260px;
  }
}

.flow-modal[hidden],
.ac2-modal-host[hidden] {
  display: none;
}

.embedded-scene[hidden] {
  display: none;
}

.embedded-scene {
  position: fixed;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(circle at top right, rgba(94, 80, 242, 0.38), transparent 34%),
    linear-gradient(180deg, #091123 0%, #060913 100%);
}

.embedded-scene-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.embedded-scene-canvas.is-dragging {
  cursor: grabbing;
}

.embedded-scene-back-button {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 247, 255, 0.98);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.embedded-scene-back-button:hover,
.embedded-scene-back-button:focus-visible {
  outline: none;
  opacity: 0.88;
}

.embedded-scene-back-button img {
  display: block;
  width: 44px;
  height: 44px;
}

.embedded-scene-hint {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 11;
  display: block;
  margin: 0;
  max-width: min(calc(100vw - 48px), 680px);
  color: rgba(244, 247, 255, 0.96);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  pointer-events: none;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.flow-modal,
.ac2-modal-host {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.flow-backdrop,
.ac2-host-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 28, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.flow-panel,
.ac2-host-panel {
  position: relative;
  z-index: 1;
}

.flow-modal {
  display: grid;
  place-items: center;
  padding: 24px;
}

.flow-panel {
  width: min(520px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 18, 52, 0.96), rgba(17, 9, 45, 0.96));
  box-shadow: 0 24px 80px rgba(2, 6, 22, 0.45);
  padding: 28px;
}

.flow-panel-compact {
  width: min(460px, 100%);
}

.flow-close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

.flow-header {
  display: grid;
  gap: 10px;
}

.flow-eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(197, 211, 255, 0.7);
}

.flow-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.06;
}

.flow-header p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.flow-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.flow-field span {
  font-size: 0.9rem;
  color: rgba(232, 238, 255, 0.92);
}

.flow-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(5, 11, 32, 0.88);
  color: var(--text-main);
  font: inherit;
}

.flow-field input[readonly] {
  opacity: 0.82;
}

.flow-field input:focus {
  outline: 2px solid rgba(0, 167, 255, 0.5);
  outline-offset: 2px;
}

.flow-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: rgba(229, 236, 255, 0.86);
}

.flow-status.is-error {
  color: #ffb4c4;
}

.flow-status.is-success {
  color: #8fffd8;
}

.flow-progress {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.flow-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-strong));
  box-shadow:
    0 0 18px rgba(181, 52, 255, 0.24),
    0 0 24px rgba(36, 185, 255, 0.18);
  transition: width 0.2s ease;
}

.flow-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(229, 236, 255, 0.78);
}

#download-complete-panel[hidden],
#verification-workflow[hidden],
#verification-progress[hidden],
.flow-actions[hidden] {
  display: none;
}

.flow-step-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 255, 216, 0.84);
}

.flow-step-note {
  margin: 0 0 14px;
  color: rgba(229, 236, 255, 0.78);
}

#verification-step-email[hidden],
#verification-step-code[hidden],
#verification-resend-row[hidden] {
  display: none;
}

#verification-resend-row {
  margin-top: 10px;
}

.flow-inline-action {
  display: flex;
  margin-top: 14px;
}

#verification-send-button,
#verification-resend-button,
#download-complete-play-button {
  min-height: 48px;
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#verification-send-button:hover,
#verification-send-button:focus-visible,
#verification-resend-button:hover,
#verification-resend-button:focus-visible,
#download-complete-play-button:hover,
#download-complete-play-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  outline: none;
}

#verification-send-button:disabled,
#verification-resend-button:disabled,
#download-complete-play-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

#verification-download-button,
#download-complete-download-button {
  width: 100%;
}

#verification-send-button {
  width: 100%;
  min-width: 0;
}

#verification-resend-button,
#download-complete-play-button {
  width: 100%;
  min-width: 0;
}

#verification-download-button:disabled,
#download-complete-download-button:disabled,
#download-complete-play-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  filter: grayscale(1);
  box-shadow: none;
}

#verification-download-button:disabled::before,
#download-complete-download-button:disabled::before,
#download-complete-play-button:disabled::before {
  opacity: 0.16;
}

#download-complete-download-button.is-secondary-look {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--text-main);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#download-complete-download-button.is-secondary-look::before {
  opacity: 0;
}

#download-complete-download-button.is-secondary-look:hover,
#download-complete-download-button.is-secondary-look:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
  outline: none;
}

#download-complete-play-button.is-primary-look {
  border: 0;
  background: linear-gradient(135deg, #2764ff 0%, #675bff 58%, #9165ff 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(39, 100, 255, 0.26);
  transition: filter 0.2s ease;
}

#download-complete-play-button.is-primary-look::before {
  content: none;
}

#download-complete-play-button.is-primary-look:hover {
  filter: brightness(1.06);
}

#download-complete-play-button.is-primary-look:focus-visible::before {
  content: none;
}

#download-complete-play-button.is-primary-look:focus-visible {
  outline: 3px solid rgba(70, 113, 255, 0.3);
  outline-offset: 4px;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.flow-primary,
.flow-secondary {
  appearance: none;
  cursor: pointer;
  border: 0;
}

.flow-secondary {
  text-decoration: none;
}

.ac2-modal-host {
  display: grid;
  place-items: center;
  padding: 32px;
}

.ac2-host-panel {
  width: min(1280px, calc(100vw - 64px));
  height: min(780px, calc(100vh - 64px));
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050814;
  box-shadow: 0 28px 90px rgba(3, 7, 22, 0.52);
}

.ac2-host-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050814;
}

@media (max-width: 960px) {
  .flow-modal {
    padding: 16px;
  }

  .flow-panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .flow-actions {
    flex-direction: column;
  }

  .flow-progress-meta {
    flex-direction: column;
    gap: 6px;
  }

  #verification-send-button,
  #verification-resend-button,
  .flow-primary,
  .flow-secondary {
    width: 100%;
    justify-content: center;
  }

  .ac2-modal-host {
    padding: 0;
  }

  .ac2-host-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .embedded-scene-hint {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    font-size: 0.9rem;
  }

  .embedded-scene-back-button {
    top: 16px;
    left: 16px;
    width: 56px;
    height: 56px;
  }

  .embedded-scene-back-button img {
    width: 38px;
    height: 38px;
  }

}
