/* ==========================================================================
   QuickQ landing page — editable layer
   --------------------------------------------------------------------------
   1. Design tokens (change brand colors / rhythm here)
   2. Small fixes that make the captured markup usable as a static page
   3. Interactive states (promo bar, mobile menu, marquee, game carousel)
   The original compiled CSS stays untouched in vendor.css.
   ========================================================================== */

:root {
  --q-blue: #2171ff;
  --q-blue-soft: #4b8dff;
  --q-bg: #011022;
  --q-bg-deep: #000b17;
  --q-ink: #ffffff;
  --q-muted: rgba(255, 255, 255, 0.72);
  --q-line: rgba(255, 255, 255, 0.14);
  --q-radius-pill: 999px;
  --q-container: 1920px;
  --q-section-space: clamp(64px, 7vw, 120px);
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  background: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* Smooth anchor navigation when the original Nuxt scroll library is absent. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* The page is captured from a live app; remove the tiny hydration artifact. */
.nuxt-loading-indicator {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Header / hero
   -------------------------------------------------------------------------- */
#galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#home video {
  pointer-events: none;
}

/* Keep the hero promo pill above the video but below the header. */
[data-promo-bar] {
  min-height: 88px;
}

[data-promo-bar].is-hidden {
  display: none !important;
}

[data-promo-bar] .close {
  transition: opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */
[data-mobile-menu] {
  display: none;
}

[data-mobile-menu].is-open {
  display: block !important;
}

[data-mobile-menu] [data-mobile-overlay] {
  opacity: 0;
  transition: opacity 0.25s ease;
}

[data-mobile-menu].is-open [data-mobile-overlay] {
  opacity: 1;
}

[data-mobile-menu] [data-mobile-panel] {
  translate: 0 !important;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-mobile-menu].is-open [data-mobile-panel] {
  transform: translateX(0);
}

[data-menu-toggle].is-open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

[data-menu-toggle].is-open span:nth-child(2) {
  opacity: 0;
}

[data-menu-toggle].is-open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */
.bg-black.font-bold {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Marquee rows (payment logos / testimonials)
   The live site moves every .marquee copy with the same transform.
   -------------------------------------------------------------------------- */
.vue3-marquee.horizontal {
  overflow: hidden !important;
}

.vue3-marquee.horizontal .marquee {
  will-change: transform;
}

.vue3-marquee.horizontal .transparent-overlay {
  pointer-events: none;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .vue3-marquee.horizontal .marquee {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Game screenshot carousel
   -------------------------------------------------------------------------- */
[data-game-carousel] .game-slide {
  translate: none !important;
  scale: 1 !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease, box-shadow 0.4s ease;
}

[data-game-carousel] .game-slide.is-center {
  z-index: 30 !important;
  width: 100% !important;
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
  cursor: default;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

[data-game-carousel] .game-slide.is-right {
  z-index: 10 !important;
  width: 75.45% !important;
  transform: translateX(70%) scale(0.9) !important;
  opacity: 0.7 !important;
  cursor: pointer;
}

[data-game-carousel] .game-slide.is-left {
  z-index: 10 !important;
  width: 75.45% !important;
  transform: translateX(-70%) scale(0.9) !important;
  opacity: 0.7 !important;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   FAQ — the captured markup uses daisyUI radio based collapses.
   These rules make the open state unambiguous in a plain static page.
   -------------------------------------------------------------------------- */
.collapse {
  position: relative;
}

.collapse > input[type="radio"] {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 57px;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  margin: 0;
}

.collapse > input[type="radio"]:checked ~ .collapse-content,
.collapse:has(> input[type="radio"]:checked) > .collapse-content {
  display: block;
}

.collapse-title {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Support dialog
   -------------------------------------------------------------------------- */
.support-modal[hidden] {
  display: none;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.support-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid rgba(64, 128, 255, 0.35);
  border-radius: 20px;
  background: linear-gradient(160deg, #041d47 0%, #001021 70%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #fff;
}

.support-card__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--q-blue-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.support-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.support-card p {
  margin: 0;
  color: var(--q-muted);
  font-size: 14px;
  line-height: 1.75;
}

.support-card__mail {
  display: inline-flex;
  margin: 18px 0 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(75, 141, 255, 0.55);
  text-underline-offset: 5px;
}

.support-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.support-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--q-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.support-card__button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
}

.support-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.back-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.has-scrolled .back-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* CTA hooks created by the static build. */
[data-cta] {
  cursor: pointer;
}

::selection {
  background: var(--q-blue);
  color: #fff;
}

/* Keep the fixed countdown readable against light image areas. */
[data-promo-bar] > div {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

/* --------------------------------------------------------------------------
   Small-screen refinements
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [data-promo-bar] {
    display: none !important;
  }

  #galaxy {
    height: 100%;
  }

  .back-top {
    display: none !important;
  }
}

/* The captured page stores entrance-animation start states inline. Make the
   map, streaming and game copy visible without the Nuxt animation controller. */
[data-section="streaming"] .absolute.inset-0.z-10 > div {
  transform: none !important;
}

#map-section .top > div,
[data-section="gaming"] .title,
[data-section="gaming"] .desc {
  opacity: 1 !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Mobile art direction for the landing page
   Desktop remains a byte-for-byte match; these rules replace the parts of
   the desktop art direction that do not adapt gracefully to 390px.
   -------------------------------------------------------------------------- */
.mobile-hero-bg {
  display: none;
}

@media (max-width: 767px) {
  #home .h-screen {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 390 / 605;
  }

  #home video,
  #home #galaxy {
    display: none !important;
  }

  .mobile-hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
  }

  #home .left {
    width: 100% !important;
    height: 100% !important;
    padding: 74px 20px 0 24px !important;
    justify-content: flex-start !important;
  }

  #home .left > div,
  #home .left .transition-opacity {
    width: 100% !important;
  }

  #home .left .pb-\[4vw\] {
    padding-bottom: 0 !important;
  }

  #home .left .h2 {
    width: min(312px, calc(100vw - 44px)) !important;
    font-size: clamp(32px, 10.25vw, 40px) !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
  }

  #home .left .space-y-10 > * + * {
    margin-top: 12px !important;
  }

  #home .left .h2 + div {
    max-width: 312px;
    font-size: 13px !important;
    line-height: 1.8 !important;
    white-space: normal !important;
  }

  /* Map */
  #map-section {
    height: auto !important;
    aspect-ratio: auto !important;
  }

  #map-section [data-section="global-map"] {
    display: block !important;
    width: 91.666% !important;
    margin: 0 auto !important;
    padding: 34px 0 6px !important;
  }

  #map-section .top {
    padding: 0 !important;
  }

  #map-section .top > .h2 {
    margin-bottom: 8px;
  }

  #map-section .top > div:nth-child(2) {
    max-width: 320px;
    font-size: 12px !important;
    line-height: 1.7 !important;
  }

  #map-section [class*="text-[clamp"] {
    font-size: 27px !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  #map-section .top + div {
    margin-top: 8px !important;
  }

  /* Streaming */
  [data-section="streaming"] {
    height: 420px !important;
    min-height: 420px !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
  }

  [data-section="streaming"] > div:first-child {
    transform: scale(1.35) !important;
  }

  [data-section="streaming"] .absolute.inset-0.z-10 > div {
    width: 86% !important;
  }

  [data-section="streaming"] .text-center.text-white.flex.flex-col {
    width: 100% !important;
    font-size: 23px !important;
    line-height: 1.45 !important;
  }

  [data-section="streaming"] .text-center.text-white.flex.flex-col > div {
    width: 100% !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  [data-section="streaming"] .pt-30 {
    padding-top: 24px !important;
  }

  /* Subscription */
  #subscription {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 300px !important;
    aspect-ratio: auto !important;
    background-image: none !important;
  }

  #subscription::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 300px;
    pointer-events: none;
    background: url("../_nuxt/subs_bg.ChI0s3MG.webp") center bottom / contain no-repeat;
  }

  #subscription > div {
    position: relative;
    z-index: 1;
  }

  #subscription > div,
  #subscription > div > div {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  #subscription > div > div {
    display: block !important;
    padding: 34px 20px 0 !important;
    background-image: none !important;
    background-color: transparent !important;
  }

  #subscription .left {
    width: 100% !important;
    padding: 0 !important;
  }

  #subscription [class*="text-[clamp"] {
    font-size: 30px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    padding-left: 0 !important;
  }

  #subscription .left ul {
    margin-top: 16px !important;
  }

  #subscription .left li {
    margin-bottom: 8px !important;
  }

  #subscription .right {
    display: none !important;
  }

  #subscription .left .data {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
  }

  #subscription .left .data > .desc {
    width: 100% !important;
    flex-basis: auto !important;
    white-space: normal !important;
  }

  #subscription .left .data > .mt-\[clamp\(40\.00px\,2\.604vw\,50px\)\] {
    margin-top: 18px !important;
  }

  #subscription .left .data > .absolute,
  #subscription .left .data > .absolute > button {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 160px !important;
    margin-top: 8px !important;
    transform: none !important;
    translate: 0 0 !important;
  }

  #subscription .left .data > .absolute > button {
    height: 42px !important;
    margin-top: 0 !important;
  }

  #subscription .left .data > .absolute button > span > div {
    height: 38px !important;
    padding: 0 14px !important;
    gap: 6px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  /* Game carousel: show one strong frame on phones */
  [data-section="gaming"] {
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 34px 0 10px !important;
  }

  [data-section="gaming"] .card {
    height: auto !important;
    margin-top: 24px !important;
    min-height: 0 !important;
  }

  [data-section="gaming"] .game-slide.is-left,
  [data-section="gaming"] .game-slide.is-right {
    display: none !important;
  }

  [data-section="gaming"] .game-slide.is-center {
    position: relative !important;
    width: 100% !important;
    transform: none !important;
  }

  [data-section="gaming"] .title,
  [data-section="gaming"] h2 {
    font-size: 30px !important;
    line-height: 1.3 !important;
  }

  [data-section="gaming"] .card p {
    font-size: 11px !important;
    line-height: 1.5 !important;
    padding: 0 10px 8px;
  }

  /* IP / ecommerce */
  [data-section="ip-masking"] {
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 40px 0 26px !important;
  }

  [data-section="ip-masking"] .content {
    margin-top: 12px;
  }

  [data-section="ip-masking"] .title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  [data-section="ip-masking"] .desc {
    font-size: 12px !important;
    line-height: 1.6 !important;
    padding: 8px 16px 18px !important;
    text-align: center !important;
  }

  /* Advantages */
  [data-section="advantages"] {
    height: auto !important;
    aspect-ratio: auto !important;
    margin-top: 14px !important;
    padding: 36px 0 26px !important;
  }

  [data-section="advantages"] .dotseffect > .title {
    font-size: 30px !important;
    line-height: 1.3 !important;
  }

  [data-section="advantages"] .item .title {
    max-width: 100% !important;
    overflow: hidden;
    font-size: 10px !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis;
    white-space: nowrap !important;
  }

  /* Payment */
  [data-section="payments"] {
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 38px 0 26px !important;
  }

  [data-section="payments"] .title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  [data-section="payments"] .desc {
    font-size: 11px !important;
    line-height: 1.6 !important;
    padding: 8px 16px 12px !important;
    text-align: center !important;
  }

  [data-section="payments"] .card {
    padding-top: 4px !important;
  }

  /* FAQ heading a little larger */
  #faq .title {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }
}


/* Payment logos without a source should not expose their alt text. */
img[alt="支付方式"]:not([src]),
img[alt="支付方式"][src=""] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Accessibility / SEO structure added by the optimization pass
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #2171ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

h1.h2 {
  margin: 0;
}

/* Keyboard users can open the desktop download menu without hover. */
nav .group:focus-within > div:last-child {
  opacity: 1 !important;
  pointer-events: auto !important;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 3px;
}
