:root {
  --stage-width: 1441px;
  --stage-height: 2561px;
  --stage-left: 0px;
  --stage-top: 0px;
  --stage-scale-x: 1;
  --stage-scale-y: 1;
  --blue: #17368f;
  --gold: #f8b612;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #101a48;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

.mobile-app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #101a48;
}

.screen-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stage-width);
  height: var(--stage-height);
  overflow: hidden;
  background: #fff;
  transform: translate(var(--stage-left), var(--stage-top)) scale(var(--stage-scale-x), var(--stage-scale-y));
  transform-origin: top left;
}

.screen-image,
.layout-image,
.png-layer {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
}

.add-mode {
  mix-blend-mode: screen;
}

@supports (mix-blend-mode: plus-lighter) {
  .add-mode {
    mix-blend-mode: plus-lighter;
  }
}

.screen-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.camera-video,
.camera-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 160ms linear;
  transform: scaleX(-1);
}

.choice-camera-video {
  transform: none;
}

.environment-camera-video {
  transform: none;
}

.choice-camera-video,
.choice-camera-fallback {
  border-radius: 72px;
  overflow: hidden;
}

.camera-ready .camera-video.is-ready {
  opacity: 1;
}

.camera-kit-mode .camera-video.camera-kit-source {
  z-index: 0;
  opacity: 0.015 !important;
}

.camera-ready .camera-video.virtual-background-source.is-ready {
  opacity: 0;
}

.camera-kit-ready .camera-video.camera-kit-source.is-ready {
  opacity: 0.015;
}

.camera-kit-raw-fallback.camera-kit-mode .camera-video.camera-kit-source {
  z-index: 2;
  opacity: 1 !important;
}

.camera-kit-raw-fallback .camera-fallback {
  display: none;
}

.camera-kit-raw-fallback [data-layer="camera-kit"] {
  opacity: 0;
}

.camera-kit-lens-visible.camera-kit-raw-fallback [data-layer="camera-kit"] {
  opacity: 1;
}

.camera-kit-lens-visible.camera-kit-raw-fallback.camera-kit-mode .camera-video.camera-kit-source {
  z-index: 0;
  opacity: 0.015 !important;
}

.camera-fallback {
  z-index: 0;
  background:
    linear-gradient(rgba(112, 112, 112, 0.64), rgba(112, 112, 112, 0.64)),
    linear-gradient(170deg, #bfc4c9 0%, #979b9f 55%, #797d80 100%);
}

.choice-camera-tint {
  border-radius: 82px;
  background: rgba(40, 40, 40, 0.36);
}

.game-camera-tint {
  background: rgba(2, 5, 25, 0.22);
}

.virtual-background-layer {
  overflow: hidden;
  background: #101a48;
}

.camera-kit-layer {
  overflow: hidden;
  background: #101a48;
  pointer-events: none;
}

.virtual-person-layer {
  overflow: hidden;
  pointer-events: none;
}

.virtual-background-canvas,
.virtual-person-canvas,
.camera-kit-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: calc(var(--stage-width) * 0.072);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.game-logo .logo-gold {
  color: var(--gold);
}

.game-logo .logo-white {
  color: #fff;
  margin-left: 0.18em;
}

.game-logo .logo-dot {
  color: var(--gold);
}

.game-logo-light {
  text-shadow: none;
}

.game-logo-light .logo-gold {
  color: var(--blue);
}

.game-logo-light .logo-white {
  color: #252525;
}

.game-copy,
.game-steps,
.game-glow-copy {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.landing-copy {
  font-size: calc(var(--stage-width) * 0.041);
  letter-spacing: 0.12em;
  line-height: 1.38;
}

.html-layer.game-copy {
  color: #fff;
}

.landing-footer-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--stage-width) * 0.018);
  color: var(--gold);
  font-size: calc(var(--stage-width) * 0.03);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.landing-footer-slogan::before,
.landing-footer-slogan::after {
  content: "";
  flex: 1 1 0;
  height: calc(var(--stage-width) * 0.006);
  max-width: calc(var(--stage-width) * 0.105);
  background: currentColor;
}

.html-layer.landing-footer-slogan {
  color: var(--gold);
}

.sync-permission-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: calc(var(--stage-width) * 0.02);
  align-items: start;
  color: #fff;
  font-size: calc(var(--stage-width) * 0.039);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-align: left;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.html-layer.sync-permission-copy {
  color: #fff;
}

.game-steps {
  color: var(--blue);
  font-size: calc(var(--stage-width) * 0.023);
}

.game-glow-copy {
  color: #fff;
  font-size: calc(var(--stage-width) * 0.054);
  text-shadow:
    0 0 calc(var(--stage-width) * 0.011) rgba(248, 182, 18, 1),
    0 0 calc(var(--stage-width) * 0.026) rgba(248, 182, 18, 0.86);
}

.charge-meter {
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
}

.meter-ring {
  position: relative;
  width: 438px;
  height: 438px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 16px rgba(248, 182, 18, 0.48));
}

.meter-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.meter-number {
  position: relative;
  z-index: 3;
  margin-top: 66px;
  color: var(--gold);
  font-size: 86px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 14px rgba(248, 182, 18, 0.85);
}

.meter-number small {
  margin-left: 4px;
  color: #fff;
  font-size: 32px;
}

.catch-game-layer {
  overflow: hidden;
  pointer-events: none;
}

.falling-coin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 260px;
  height: 260px;
  object-fit: fill;
  filter: none;
  pointer-events: none;
  will-change: transform;
}

.falling-coin.is-caught {
  z-index: 3;
  animation: coin-caught-spin 500ms ease-out forwards;
}

.catch-score-pop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 192px;
  height: 106px;
  display: grid;
  place-items: center;
  color: #ffc400;
  font-size: 86px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(255, 196, 0, 1),
    0 0 38px rgba(255, 196, 0, 0.9),
    0 0 58px rgba(255, 196, 0, 0.72);
  pointer-events: none;
  transform: translate3d(var(--score-x), var(--score-y), 0);
  animation: catch-score-fade-up 850ms ease-out forwards;
  will-change: transform, opacity;
}

.game-countdown {
  display: grid;
  place-items: center;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--gold);
  font-size: 360px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 22px rgba(248, 182, 18, 1), 0 0 42px rgba(248, 182, 18, 0.85);
  box-shadow: 0 0 34px rgba(248, 182, 18, 0.9);
}

.game-finish-dim {
  background: rgba(0, 0, 0, 0.42);
}

.frame-sequence {
  object-fit: fill;
}

.game-coin {
  filter: drop-shadow(0 0 calc(var(--stage-width) * 0.014) rgba(248, 182, 18, 0.86));
  animation: coin-float 1.05s ease-in-out infinite alternate;
}

.game-coin-late {
  animation-delay: 0.18s;
}

.game-coin-slow {
  animation-delay: 0.34s;
}

[data-layer="game-genie"] {
  will-change: left;
}

@keyframes coin-float {
  from {
    transform: translateY(-1.2%);
  }
  to {
    transform: translateY(1.4%) scale(1.04);
  }
}

@keyframes coin-caught-spin {
  0% {
    opacity: 1;
    transform: translate3d(var(--caught-x), var(--caught-y), 0) rotate(0deg) scale(1);
  }
  58% {
    opacity: 1;
    transform: translate3d(var(--caught-x), var(--caught-y), 0) rotate(235deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--caught-x), var(--caught-y), 0) rotate(430deg) scale(0.35);
    filter: none;
  }
}

@keyframes catch-score-fade-up {
  0% {
    opacity: 0;
    transform: translate3d(var(--score-x), var(--score-y), 0) translateY(10px);
  }
  15% {
    opacity: 1;
    transform: translate3d(var(--score-x), var(--score-y), 0);
  }
  72% {
    opacity: 1;
    transform: translate3d(var(--score-x), var(--score-y), 0) translateY(-34px);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--score-x), var(--score-y), 0) translateY(-72px);
  }
}

.countdown-dim,
.modal-dim {
  background: rgba(0, 0, 0, 0.44);
}

.countdown-number {
  filter: drop-shadow(0 0 calc(var(--stage-width) * 0.022) rgba(248, 182, 18, 0.88));
}

.countdown-loader {
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: calc(var(--stage-width) * 0.074);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 calc(var(--stage-width) * 0.014) rgba(248, 182, 18, 0.95),
    0 0 calc(var(--stage-width) * 0.034) rgba(248, 182, 18, 0.72);
}

.camera-kit-countdown-waiting .countdown-loader {
  display: flex;
}

.countdown-sequence {
  position: absolute;
}

.countdown-step {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: opacity;
}

.camera-kit-countdown-waiting .countdown-step {
  animation-play-state: paused;
  opacity: 0;
}

.countdown-step-3 {
  animation: countdown-three-two-one-3 3s linear forwards;
}

.countdown-step-2 {
  animation: countdown-three-two-one-2 3s linear forwards;
}

.countdown-step-1 {
  animation: countdown-three-two-one-1 3s linear forwards;
}

@keyframes countdown-three-two-one-3 {
  0%,
  32.9% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

@keyframes countdown-three-two-one-2 {
  0%,
  32.9%,
  66.9%,
  100% {
    opacity: 0;
  }
  33%,
  66.8% {
    opacity: 1;
  }
}

@keyframes countdown-three-two-one-1 {
  0%,
  66.9% {
    opacity: 0;
  }
  67%,
  100% {
    opacity: 1;
  }
}

.game-ui-layer {
  pointer-events: auto;
}

.html-layer.catch-game-layer {
  pointer-events: none;
}

.reward-buttons {
  display: flex;
  flex-direction: column;
  gap: calc(var(--stage-width) * 0.03);
}

.game-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.game-image-button img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.game-prize-button,
.game-replay-button {
  width: 100%;
  min-height: 150px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: calc(var(--stage-width) * 0.056);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 calc(var(--stage-width) * 0.011) 0 rgba(50, 66, 152, 0.9);
}

.game-prize-button {
  background: #e95d92;
}

.game-prize-button.disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #777;
  box-shadow: 0 calc(var(--stage-width) * 0.008) 0 rgba(70, 70, 70, 0.8);
}

.game-replay-button,
.modal-close-button {
  background: #f8a314;
}

.modal-close-wrap {
  display: grid;
  place-items: center;
}

.modal-close-button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modal-close-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.quiz-scan-corners {
  animation: quiz-scan-pulse 1.2s ease-in-out infinite alternate;
}

.quiz-scan-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px 34px;
  border-radius: 999px;
  color: #fff;
  background: #f8a314;
  font-size: calc(var(--stage-width) * 0.062);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 calc(var(--stage-width) * 0.004) 0 rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 0 calc(var(--stage-width) * 0.014) rgba(248, 182, 18, 0.58));
}

.quiz-scan-status::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: 0;
  height: 0;
  border-left: 72px solid transparent;
  border-right: 72px solid transparent;
  border-top: 92px solid #f8a314;
  transform: translateX(-50%);
}

.is-found .quiz-scan-status {
  background: #324298;
  filter: drop-shadow(0 0 calc(var(--stage-width) * 0.018) rgba(248, 182, 18, 0.9));
}

.is-found .quiz-scan-status::after {
  border-top-color: #324298;
}

.quiz-found-panel {
  border-radius: 82px;
  background:
    radial-gradient(circle at 50% 87%, rgba(88, 206, 255, 0.8), transparent 20%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.98), rgba(232, 235, 246, 0.9) 50%, rgba(202, 213, 238, 0.74) 100%),
    linear-gradient(180deg, #f6f7fb 0%, #f8f8f8 46%, #d7e8ff 100%);
  overflow: hidden;
}

.quiz-found-light {
  opacity: 0.72;
}

.quiz-found-particles {
  opacity: 0.92;
}

.quiz-title-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--stage-width) * 0.018);
  color: #202020;
  font-size: calc(var(--stage-width) * 0.13);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 8px 0 rgba(255, 255, 255, 0.35), 0 0 18px rgba(255, 255, 255, 0.7);
}

.quiz-title-all-blue {
  color: #324298;
}

.quiz-title-all-black {
  color: #242424;
}

.quiz-title-found {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: calc(var(--stage-width) * 0.072);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: calc(var(--stage-width) * 0.006) #f3b516;
  paint-order: stroke fill;
  text-shadow:
    0 0 calc(var(--stage-width) * 0.012) rgba(255, 255, 255, 0.9),
    0 0 calc(var(--stage-width) * 0.022) rgba(243, 181, 22, 0.96),
    0 0 calc(var(--stage-width) * 0.04) rgba(243, 181, 22, 0.8),
    0 calc(var(--stage-width) * 0.006) 0 rgba(82, 54, 0, 0.38);
}

.quiz-title-genie-3d {
  object-fit: contain;
  filter:
    drop-shadow(0 calc(var(--stage-width) * 0.014) calc(var(--stage-width) * 0.028) rgba(28, 44, 112, 0.24))
    drop-shadow(0 0 calc(var(--stage-width) * 0.03) rgba(88, 206, 255, 0.34));
}

@keyframes quiz-scan-pulse {
  from {
    opacity: 0.82;
    filter: drop-shadow(0 0 calc(var(--stage-width) * 0.012) rgba(248, 182, 18, 0.62));
  }
  to {
    opacity: 1;
    filter: drop-shadow(0 0 calc(var(--stage-width) * 0.024) rgba(248, 182, 18, 0.9));
  }
}

.result-stage {
  --result-y-shift: 2.2%;
  background: #324298;
}

.result-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #324298;
}

.result-bg-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.result-card-image {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(12.9% + var(--result-y-shift));
  width: 66%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(16, 26, 72, 0.22);
  user-select: none;
  -webkit-user-drag: none;
  transform: translateX(-50%);
}

.save-hint {
  position: absolute;
  z-index: 3;
  left: 11.8%;
  right: 11.8%;
  top: calc(64.7% + var(--result-y-shift));
  color: var(--blue);
  text-shadow: none;
  font-size: calc(var(--stage-width) * 0.043);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.result-action {
  position: absolute;
  z-index: 5;
  left: 20.95%;
  width: 58.08%;
  height: 4.69%;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  box-shadow: 0 12px 0 rgba(50, 66, 152, 0.34);
  font-size: 50px;
  font-weight: 950;
  line-height: 1;
}

.result-share {
  top: calc(69.6% + var(--result-y-shift));
}

.result-home {
  top: calc(76% + var(--result-y-shift));
  border: 6px solid var(--blue);
  color: var(--blue);
  background: #fff;
  box-shadow: 0 12px 0 rgba(248, 182, 18, 0.9);
}

.result-popup-stage .result-card-image {
  filter: brightness(0.45);
}

.result-popup-dim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.32);
}

.result-popup-image {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 21%;
  width: 78%;
  height: auto;
  transform: translateX(-50%);
  user-select: none;
  -webkit-user-drag: none;
}

.result-popup-confirm {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 21%;
  width: 78%;
  height: auto;
  aspect-ratio: 929 / 951;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.png-layer {
  object-fit: fill;
  pointer-events: none;
}

.html-layer,
.option-button {
  position: absolute;
}

.html-layer {
  color: #050505;
  letter-spacing: 0;
  pointer-events: none;
}

.html-layer.game-ui-layer {
  pointer-events: auto;
}

.html-layer.game-ui-layer.catch-game-layer {
  pointer-events: none;
}

.question-q {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 178px;
  font-weight: 950;
  line-height: 0.9;
}

.question-index {
  font-size: 58px;
  font-weight: 950;
  line-height: 1;
}

.question-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 62px;
  font-weight: 950;
  line-height: 1.2;
  text-align: left;
}

.question-title.lines-3 {
  font-size: 58px;
  line-height: 1.18;
}

.option-button {
  z-index: 4;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.option-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot,
.layout-hitbox {
  position: absolute;
  z-index: 4;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  border-radius: 6px;
}

.hotspot:focus,
.layout-hitbox:focus,
.option-button:focus {
  outline: none;
}

.debug .hotspot,
.debug .layout-hitbox,
.debug .option-button {
  border: 2px solid rgba(248, 182, 18, 0.95);
  background: rgba(248, 182, 18, 0.14);
  color: #101a48;
}

.debug .hotspot::after,
.debug .layout-hitbox::after,
.debug .option-button::after {
  content: attr(data-label);
  position: absolute;
  left: 4px;
  top: 4px;
  max-width: calc(100% - 8px);
  padding: 2px 4px;
  border-radius: 4px;
  color: #101a48;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.layout-image {
  z-index: 3;
  object-fit: fill;
  pointer-events: none;
}

.code-readout {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: calc(var(--stage-width) * 0.075);
  font-weight: 950;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.nav-overlay {
  position: fixed;
  z-index: 20;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  justify-content: space-between;
  pointer-events: none;
}

.debug .nav-overlay {
  display: flex;
}

.nav-overlay button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 26, 72, 0.76);
  font-size: 22px;
  font-weight: 900;
  pointer-events: auto;
}

.debug-label {
  position: fixed;
  z-index: 21;
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  display: none;
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(16, 26, 72, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.debug .debug-label {
  display: block;
}

.camera-kit-debug {
  position: fixed;
  z-index: 21;
  left: max(12px, env(safe-area-inset-left));
  top: calc(max(12px, env(safe-area-inset-top)) + 36px);
  display: none;
  max-width: min(92vw, 760px);
  padding: 6px 8px;
  border-radius: 6px;
  color: #99ffcc;
  background: rgba(0, 0, 0, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
}

.debug .camera-kit-debug.is-visible {
  display: block;
}

.ar-scanner {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #111a48;
}

.ar-overlay-stage {
  background: transparent;
  pointer-events: none;
}

.ar-camera-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 9, 35, 0.16);
}

.ar-scene-host,
.ar-scene-host a-scene,
.ar-scene-host canvas,
.ar-scene-host video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.ar-scene-host {
  inset: auto !important;
  left: var(--stage-left) !important;
  top: var(--stage-top) !important;
  width: calc(var(--stage-width) * var(--stage-scale-x)) !important;
  height: calc(var(--stage-height) * var(--stage-scale-y)) !important;
  overflow: hidden;
  background: #111a48;
  z-index: 1;
}

.ar-fallback-video {
  position: absolute;
  left: var(--stage-left);
  top: var(--stage-top);
  z-index: 0;
  width: calc(var(--stage-width) * var(--stage-scale-x));
  height: calc(var(--stage-height) * var(--stage-scale-y));
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms linear;
}

.ar-fallback-video.is-ready {
  opacity: 1;
}

.ar-overlay-stage {
  z-index: 2;
}

.ar-scene-host a-scene,
.ar-scene-host canvas,
.ar-scene-host video {
  inset: 0 !important;
}

.ar-scene-host canvas,
.ar-scene-host video {
  object-fit: cover !important;
}

.mindar-ui-overlay,
.mindar-ui-loading,
.mindar-ui-scanning,
.mindar-ui-error,
.a-enter-vr,
.a-enter-ar {
  display: none !important;
}

.ar-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(16, 26, 72, 0.28);
  pointer-events: none;
}

.ar-shell {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(100vw, calc(100dvh * 9 / 16));
  height: min(100dvh, calc(100vw * 16 / 9));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ar-logo {
  position: absolute;
  left: 50%;
  top: 5.2%;
  width: 35%;
  transform: translateX(-50%);
}

.ar-card-frame {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 14%;
  bottom: 11%;
  border: 9px solid #324298;
  border-radius: 8%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.ar-target-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54%;
  max-height: 42%;
  object-fit: contain;
  opacity: 0.22;
  transform: translate(-50%, -50%);
  filter: saturate(0.8);
}

.ar-corners {
  position: absolute;
  inset: 17% 19%;
}

.ar-corners span {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  border-color: #fff;
  filter: drop-shadow(0 0 12px #f8b612) drop-shadow(0 0 18px #f8b612);
}

.ar-corners span:nth-child(1) {
  left: 0;
  top: 0;
  border-top: 8px solid;
  border-left: 8px solid;
  border-radius: 18px 0 0 0;
}

.ar-corners span:nth-child(2) {
  right: 0;
  top: 0;
  border-top: 8px solid;
  border-right: 8px solid;
  border-radius: 0 18px 0 0;
}

.ar-corners span:nth-child(3) {
  left: 0;
  bottom: 0;
  border-left: 8px solid;
  border-bottom: 8px solid;
  border-radius: 0 0 0 18px;
}

.ar-corners span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right: 8px solid;
  border-bottom: 8px solid;
  border-radius: 0 0 18px 0;
}

.ar-status {
  position: absolute;
  left: 50%;
  bottom: 19%;
  width: 62%;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: #f6a313;
  box-shadow: 0 12px 0 rgba(50, 66, 152, 0.35), 0 0 22px rgba(248, 182, 18, 0.65);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  transform: translateX(-50%);
}

.is-found .ar-status {
  color: #fff;
  background: #324298;
  box-shadow: 0 12px 0 #f8b612, 0 0 28px rgba(248, 182, 18, 0.85);
}

.has-error .ar-status {
  background: #2f344c;
  box-shadow: 0 12px 0 rgba(248, 182, 18, 0.75);
}

.ar-overlay-stage .ar-status {
  display: none;
  bottom: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: calc(var(--stage-width) * 0.052);
  transform: none;
}

.ar-overlay-stage.is-found .ar-status,
.ar-overlay-stage.has-error .ar-status {
  background: transparent;
  box-shadow: none;
}

.ar-slogan {
  position: absolute;
  left: 50%;
  bottom: 4.4%;
  width: 88%;
  transform: translateX(-50%);
}

.ar-back {
  position: fixed;
  z-index: 4;
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 26, 72, 0.7);
  font-size: 28px;
  font-weight: 950;
  display: none;
}
