/* dmnknd.com turnuva-page-loading (tpl-loading) — HQ boot splash uyarlaması */

/* Splash süresince layout izolasyonu: scrollbar / kök rem / arka plan mount sıçraması */
html:has(#hq-boot-splash),
html:has(#hq-boot-splash) body {
  overflow: hidden !important;
  scrollbar-gutter: stable;
  scrollbar-width: none;
}

html:has(#hq-boot-splash)::-webkit-scrollbar,
html:has(#hq-boot-splash) body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#hq-boot-splash {
  --hq-boot-accent: #c9a96e;
  --hq-boot-accent-soft: rgba(201, 169, 110, 0.12);
  --hq-boot-accent-mid: rgba(201, 169, 110, 0.22);
  --hq-boot-accent-light: #e8d4a8;
  --hq-boot-border-accent: rgba(201, 169, 110, 0.16);
  --hq-boot-text: rgba(255, 255, 255, 0.92);
  --hq-boot-muted: rgba(226, 232, 240, 0.58);

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
  background: #090a0e;
  color: var(--hq-boot-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: auto;
  text-size-adjust: 100%;
  user-select: none;
  contain: layout style paint;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

#hq-boot-splash,
#hq-boot-splash * {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

#hq-boot-splash.hq-boot-splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hq-boot-splash__intro {
  flex: 0 0 auto;
  text-align: center;
  width: 352px;
  max-width: calc(100vw - 64px);
  min-height: 214px;
  padding: 36px 24px 32px;
  background: linear-gradient(165deg, rgba(24, 22, 18, 0.96) 0%, rgba(12, 11, 9, 0.98) 100%);
  border: 1px solid var(--hq-boot-border-accent);
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hq-boot-splash__spinner-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  flex-shrink: 0;
}

.hq-boot-splash__spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--hq-boot-accent);
  border-right-color: var(--hq-boot-accent-mid);
  animation: hq-boot-spin 1.1s linear infinite;
}

.hq-boot-splash__spinner::before,
.hq-boot-splash__spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.hq-boot-splash__spinner::before {
  inset: 7px;
  border-top-color: var(--hq-boot-accent-light);
  border-left-color: var(--hq-boot-accent-soft);
  animation: hq-boot-spin 1.6s linear infinite reverse;
}

.hq-boot-splash__spinner::after {
  inset: 14px;
  border-top-color: var(--hq-boot-accent);
  border-right-color: var(--hq-boot-accent-soft);
  animation: hq-boot-spin 2s linear infinite;
}

.hq-boot-splash__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 40px;
  margin: 0;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.35));
}

.hq-boot-splash__logo-fallback {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--hq-boot-accent-light);
}

.hq-boot-splash__spinner-wrap--fallback .hq-boot-splash__logo {
  display: none;
}

.hq-boot-splash__spinner-wrap--fallback .hq-boot-splash__logo-fallback {
  display: block;
}

.hq-boot-splash__label {
  margin: 0 0 8px;
  padding: 0;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 20px !important;
  color: var(--hq-boot-text);
  letter-spacing: 0.32px;
}

.hq-boot-splash__hint {
  margin: 0;
  padding: 0;
  font-size: 13.5px !important;
  line-height: 19.5px !important;
  color: var(--hq-boot-muted);
}

@keyframes hq-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hq-boot-splash__spinner,
  .hq-boot-splash__spinner::before,
  .hq-boot-splash__spinner::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hq-boot-splash__intro {
    width: 320px;
    max-width: calc(100vw - 48px);
    min-height: 200px;
    padding: 28px 18px 24px;
  }
}
