/* KAZVORA Velvet Ruby-Obsidian & Burnished Rose-Gold 1-DNA Auth (Archetype A5 — Banner-Hero Minimal), Ribbon, Dialogs, 19-Bank Footer & In-Place 4-Theme 3D Bottom Nav */

main#main,
section.account-shell,
#kazvora-member,
footer.site-footer {
  overflow-anchor: none;
}

.support-contact,
#support-window {
  display: none !important;
}

html[data-newca-route] section.account-shell {
  display: block !important;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-newca-route="login"] section.account-shell,
html[data-newca-route="register"] section.account-shell {
  max-width: 500px;
}

html[data-newca-route] .breadcrumbs {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* Member Status Ribbon */
.kv-member-ribbon {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 1.65px solid rgba(222,203,179, 0.42);
  border-radius: 12px;
  background: linear-gradient(150deg, #1b444d 0%, #10272e 70%, #173942 100%);
  color: #fff6e9;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
}

.kv-member-ribbon-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.kv-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  border: 1.65px solid rgba(222,203,179, 0.48);
  background: rgba(23,73,80, 0.36);
  color: #fff4df;
  font-weight: 700;
  font-size: 0.84rem;
}

.kv-member-bal {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #decbb3;
}

.kv-member-ribbon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.kv-ribbon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.34rem 0.72rem;
  border-radius: 8px;
  border: 1.65px solid rgba(222,203,179, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #fff6e9;
  font: 600 0.83rem/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.kv-ribbon-btn.is-primary {
  border-color: #fff4df;
  background: linear-gradient(180deg, #fff4df 0%, #decbb3 60%, #a59075 100%);
  color: #182e30;
  font-weight: 800;
}

.kv-ribbon-btn.is-secondary {
  border-color: rgba(222,203,179, 0.52);
  background: linear-gradient(160deg, #174950, #0f3338);
  color: #fff4df;
}

/* Shared Buttons & Status Banners */
.kv-account-submit,
.kv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1.65px solid rgba(222,203,179, 0.38);
  background: linear-gradient(160deg, #1b444d, #10272e);
  color: #fff6e9;
  font: 700 0.95rem/1.2 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.09s ease, filter 0.14s ease;
}

.kv-account-submit,
.kv-btn.is-primary {
  border-color: #fff4df;
  background: linear-gradient(180deg, #fff4df 0%, #decbb3 56%, #a59075 100%);
  color: #182e30;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 4px 0 #0f3338, 0 10px 22px rgba(0, 0, 0, 0.48);
}

.kv-btn.is-outline {
  border-color: rgba(222,203,179, 0.44);
  background: rgba(23,73,80, 0.2);
  color: #fff4df;
}

.kv-btn.is-danger {
  border-color: #f87171;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  color: #ffffff;
}

.kv-btn:disabled,
.kv-account-submit:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.kv-status-banner {
  margin: 0;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  border: 1.65px solid rgba(222,203,179, 0.32);
  background: rgba(23,57,66, 0.9);
  color: #fff6e9;
  font-size: 0.88rem;
  line-height: 1.45;
}

.kv-status-banner:empty { display: none; }
.kv-status-banner.is-error { border-color: #f87171; background: rgba(127, 29, 29, 0.45); color: #fecaca; }
.kv-status-banner.is-success { border-color: #4ade80; background: rgba(20, 83, 45, 0.48); color: #dcfce7; }

/* Archetype A5 — Banner-Hero Minimal (KAZVORA Velvet Ruby-Obsidian & Burnished Rose-Gold) */
.kv-a5-shell {
  width: 100%;
  margin: 0.35rem auto 1.25rem;
  border-radius: 18px;
  border: 1.65px solid rgba(222,203,179, 0.44);
  background: linear-gradient(175deg, #173942 0%, #10272e 62%, #10272e 100%);
  color: #fff6e9;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68);
}

.kv-a5-hero {
  position: relative;
  padding: 0.9rem 1.15rem 1.3rem;
  background:
    radial-gradient(ellipse 85% 68% at 50% 0%, rgba(23,73,80, 0.52) 0%, rgba(23,57,66, 0.88) 62%, #10272e 100%);
  border-bottom: 1.65px solid rgba(222,203,179, 0.32);
  display: grid;
  gap: 0.8rem;
}

.kv-a5-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kv-a5-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1.65px solid rgba(222,203,179, 0.38);
  background: rgba(16,39,46, 0.56);
  color: #fff4df;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.kv-a5-line {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 34px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: #06c755;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.kv-a5-line svg { width: 17px; height: 17px; }

.kv-a5-crest-wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.42rem;
}

.kv-a5-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kv-a5-logo {
  height: 44px;
  width: auto;
  max-width: 196px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.72));
}

.kv-a5-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.78rem;
  border-radius: 999px;
  border: 1.65px solid rgba(222,203,179, 0.46);
  background: rgba(23,73,80, 0.34);
  color: #fff4df;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kv-a5-crest-wrap h1 {
  margin: 0.15rem 0 0;
  font: 800 clamp(1.18rem, 3.8vw, 1.44rem)/1.25 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color: #fff4df;
}

.kv-a5-sub {
  margin: 0;
  max-width: 38ch;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ded9cd;
}

.kv-a5-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #10272e;
  border-bottom: 1.65px solid rgba(222,203,179, 0.22);
}

.kv-a5-tabs a {
  display: grid;
  place-items: center;
  min-height: 46px;
  font: 700 0.94rem/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color: #ded9cd;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.kv-a5-tabs a[aria-current="page"] {
  color: #fff4df;
  border-bottom-color: #decbb3;
  background: rgba(23,73,80, 0.22);
}

.kv-a5-body {
  padding: 1.25rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.95rem;
}

.kv-account-form,
.kv-a5-form {
  display: grid;
  gap: 0.9rem;
}

.kv-a5-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #decbb3;
  letter-spacing: 0.03em;
}

.kv-a5-divider::after {
  content: '';
  flex: 1;
  height: 1.65px;
  background: linear-gradient(90deg, rgba(222,203,179, 0.36), transparent);
}

.kv-account-field {
  display: grid;
  gap: 0.34rem;
}

.kv-account-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff6e9;
}

/* A5 Signature: Borderless Minimal Filled Inputs with 1.65px Rose-Gold Focus Ring */
.kv-account-field input,
.kv-account-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.62rem 0.92rem;
  border-radius: 11px;
  border: 1.65px solid transparent;
  background: #173942;
  color: #fff6e9;
  font: 16px/1.3 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.kv-account-field input::placeholder {
  color: #ded9cd;
}

.kv-account-field input:focus,
.kv-account-field select:focus {
  outline: none;
  border-color: #decbb3;
  background: #2a0e14;
  box-shadow: 0 0 0 3px rgba(222,203,179, 0.18);
}

.kv-field-hint {
  margin: 0;
  font-size: 0.79rem;
  color: #decbb3;
}

.kv-a5-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kv-a5-counter {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.14rem 0.54rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ded9cd;
}

.kv-a5-counter.is-complete {
  background: rgba(22, 163, 74, 0.34);
  color: #86efac;
}

.kv-a5-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kv-a5-phone-ic {
  position: absolute;
  left: 0.78rem;
  display: grid;
  place-items: center;
  color: #decbb3;
  pointer-events: none;
}

.kv-a5-phone-wrap input { padding-left: 2.5rem !important; }

.kv-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kv-pw-wrap input { padding-right: 2.85rem !important; }

.kv-pw-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #decbb3;
  cursor: pointer;
}

.kv-a5-bank-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.kv-a5-bank-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  border: 1.65px solid rgba(222,203,179, 0.48);
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
}

.kv-a5-bank-row select { flex: 1 1 auto; min-width: 0; }

.kv-a5-optional {
  border-radius: 11px;
  border: 1.65px dashed rgba(222,203,179, 0.28);
  background: rgba(16,39,46, 0.52);
  padding: 0.65rem 0.85rem;
}

.kv-a5-optional summary {
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  color: #ded9cd;
}

.kv-a5-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.72rem;
}

.kv-a5-submit { width: 100%; min-height: 50px; font-size: 1rem; margin-top: 0.15rem; }
.kv-a5-outline-cta { width: 100%; min-height: 46px; }

.kv-a5-trust {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1.65px solid rgba(222,203,179, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.kv-a5-trust li {
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(23,73,80, 0.24);
  border: 1.65px solid rgba(222,203,179, 0.3);
  color: #fff4df;
  font-size: 0.76rem;
  font-weight: 600;
}

.kv-account-switch { margin: 0; text-align: center; font-size: 0.88rem; color: #ded9cd; }
.kv-account-switch a { color: #decbb3; font-weight: 700; text-decoration: underline; }

.kv-captcha-box { display: grid; gap: 0.55rem; padding: 0.78rem; border: 1.65px solid rgba(222,203,179, 0.36); border-radius: 11px; background: rgba(16,39,46, 0.68); }
.kv-captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* Dialogs */
.kv-dialog {
  width: min(94vw, 480px);
  max-height: 88dvh;
  padding: 0;
  border: 1.65px solid rgba(222,203,179, 0.52);
  border-radius: 16px;
  background: linear-gradient(165deg, #270d14, #10272e);
  color: #fff6e9;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.kv-dialog::backdrop { background: rgba(8, 2, 4, 0.78); backdrop-filter: blur(4px); }
.kv-dialog-scroll { display: grid; gap: 0.8rem; padding: 1.15rem; overflow-y: auto; max-height: 86dvh; }
.kv-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.kv-dialog-pill { display: inline-flex; padding: 0.24rem 0.72rem; border-radius: 999px; background: rgba(23,73,80, 0.48); border: 1.65px solid rgba(222,203,179, 0.5); color: #fff4df; font-size: 0.78rem; font-weight: 700; }
.kv-dialog-pill.is-warn { background: rgba(185, 28, 28, 0.6); border-color: #f87171; color: #fee2e2; }
.kv-dialog-close { width: 34px; height: 34px; border-radius: 50%; border: 1.65px solid rgba(222,203,179, 0.38); background: rgba(255, 255, 255, 0.06); color: #fff4df; cursor: pointer; }
.kv-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 0.25rem; }

/* Floating Dock (Minigame FAB + LINE Float above Chat FAB) */
.kv-minigame-fab {
  position: fixed;
  right: 12px;
  bottom: 138px;
  z-index: 9050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.65px solid #decbb3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #1d080d;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.48), 0 10px 24px rgba(0, 0, 0, 0.58);
}

.kv-minigame-fab img { width: 100%; height: 100%; object-fit: cover; }

.kv-line-float {
  position: fixed;
  right: 12px;
  bottom: 80px;
  z-index: 9080;
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.kv-line-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.65px solid #86efac;
  background: linear-gradient(180deg, #06c755, #059b42);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.42), 0 10px 22px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.kv-line-popover {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1.65px solid rgba(222,203,179, 0.48);
  background: #1b090e;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.72);
}

.kv-line-popover img { width: 168px; height: 168px; border-radius: 10px; background: #ffffff; padding: 6px; }

@media (max-width: 900px) {
  .kv-minigame-fab { bottom: calc(206px + env(safe-area-inset-bottom, 0px)); }
  .kv-line-float { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
}

/* 19 Thai Bank Icons Strip in Footer */
.kv-bank-strip {
  width: 100%;
  margin: 0.9rem 0 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1.65px solid rgba(222,203,179, 0.28);
  background: rgba(16,39,46, 0.78);
  display: grid;
  gap: 0.65rem;
}

.kv-bank-strip-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #decbb3;
  text-align: center;
}

.kv-footer-bank-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kv-footer-bank-list li {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffffff;
  padding: 3px;
  border: 1.65px solid rgba(222,203,179, 0.44);
  display: grid;
  place-items: center;
}

.kv-footer-bank-list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 440px) {
  .kv-a5-hero { padding: 0.8rem 0.85rem 1.05rem; }
  .kv-a5-body { padding: 1rem 0.9rem 1.15rem; }
  .kv-a5-opt-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   KAZVORA EXECUTIVE THREE.JS PBR 3D MOBILE FOOTER DOCK (<nav class="bottom-nav">)
   4 Switchable 3D Themes via html[data-kv-footer-dock="a1|a2|g1|g2"]
   Piano Obsidian-Ruby Frosted Glass + Studio-Baked 3D PBR Medallions
   ===================================================================== */
nav.bottom-nav.kv-dock-3d,
nav.mobile-nav.kv-dock-3d {
  left: 10px !important;
  right: 10px !important;
  width: auto !important;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  overflow: visible !important;
  z-index: 9020;
  padding: 6px 8px 7px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(222,203,179, 0.42) !important;
  background: linear-gradient(180deg, rgba(23,57,66, 0.95) 0%, rgba(16,39,46, 0.98) 100%) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255,244,223, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.74),
    0 0 22px rgba(23,73,80, 0.22) !important;
}

nav.bottom-nav.kv-dock-3d > a.kv-dock-slot:not(.kv-dock-center),
nav.mobile-nav.kv-dock-3d > a.kv-dock-slot:not(.kv-dock-center) {
  position: relative;
  z-index: 1;
  min-height: 50px;
  padding: 2px 2px 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  color: #e4cbd1;
  text-decoration: none;
  border-radius: 14px;
  border: 0;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

nav.bottom-nav.kv-dock-3d > a.kv-dock-slot.is-active:not(.kv-dock-center),
nav.mobile-nav.kv-dock-3d > a.kv-dock-slot.is-active:not(.kv-dock-center) {
  color: #fff4df;
  background: radial-gradient(circle at 50% 80%, rgba(222,203,179, 0.2), transparent 72%);
}

nav.bottom-nav.kv-dock-3d > a.kv-dock-slot:active {
  transform: translateY(1px) scale(0.96);
}

.kv-dock-ic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.kv-dock-ic-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.68));
}

.kv-dock-txt {
  font-size: clamp(0.66rem, 2.5vw, 0.74rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

nav.bottom-nav.kv-dock-3d a.kv-dock-center,
nav.mobile-nav.kv-dock-3d a.kv-dock-center {
  position: relative;
  z-index: 5;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 2px 1px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.kv-dock-label {
  margin-top: 1px;
  font-size: clamp(0.68rem, 2.6vw, 0.78rem);
  font-weight: 800;
  color: #fff4df;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
  line-height: 1.15;
  white-space: nowrap;
}

.kv-pbr-stage {
  position: relative;
  margin-top: -30px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  perspective: 260px;
  will-change: transform;
  transition: transform 95ms cubic-bezier(0.22, 1.35, 0.36, 1), filter 95ms ease;
}

.kv-pbr-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.78));
  transition: transform 95ms ease, filter 95ms ease;
  pointer-events: none;
}

.kv-pbr-stage.is-a1 { animation: kvPbrFloat 3.3s ease-in-out infinite; }
.kv-pbr-stage.is-a2 { animation: kvPbrTilt 3.6s ease-in-out infinite; }
.kv-pbr-stage.is-g1 { animation: kvPbrSway 4.2s ease-in-out infinite; }
.kv-pbr-stage.is-g2 { animation: kvPbrFloat 3.5s ease-in-out infinite; }

nav.bottom-nav.kv-dock-3d a.kv-dock-center:active .kv-pbr-stage,
nav.mobile-nav.kv-dock-3d a.kv-dock-center:active .kv-pbr-stage {
  animation-play-state: paused;
  transform: translateY(3px) scale(0.94);
}

nav.bottom-nav.kv-dock-3d a.kv-dock-center:active .kv-pbr-img,
nav.mobile-nav.kv-dock-3d a.kv-dock-center:active .kv-pbr-img {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.84)) brightness(1.08);
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@keyframes kvPbrFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes kvPbrTilt {
  0%, 100% { transform: rotateX(5deg) translateY(0); }
  50% { transform: rotateX(-3deg) translateY(-3px); }
}

@keyframes kvPbrSway {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .kv-pbr-stage {
    animation: none !important;
  }
}

/* ==================== SECTION 25.5: 1280PX BOXED DESKTOP CONTAINER (KAZVORA) ==================== */
:root {
  --kv-box-max: 1280px;
}

.support-contact, #support-window, .support-fab {
  display: none !important;
}

html, body {
  overflow-x: clip !important;
}

header.topbar, main#main, footer.site-footer {
  width: 100%;
  max-width: var(--kv-box-max) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

@media (min-width: 1281px) {
  html, body {
    background-color: #09181d !important;
    background-image: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(222, 203, 179, 0.14) 0%, rgba(0, 0, 0, 0) 64%) !important;
  }
  header.topbar, main#main, footer.site-footer {
    border-inline: 1px solid rgba(222,203,179, 0.24) !important;
    box-shadow: 0 0 56px rgba(0, 0, 0, 0.72) !important;
  }
}

/* ==================== GUTTER-ANCHORED FABS (>= 1460px) ==================== */
@media (min-width: 1460px) {
  #kv-chat-fab,
  .np-chat-fab,
  #kv-minigame-fab,
  .kv-minigame-fab,
  #kv-line-float,
  .kv-line-float {
    right: calc(50% - 640px - 66px) !important;
  }
  #npChatPanel {
    right: calc(50% - 640px + 16px) !important;
  }
}

/* ==================== DISTINCT AUTH ARCHETYPE STYLES (A7) ==================== */
.kv-arch-a1 .kv-wiz-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.kv-arch-a1 .kv-wiz-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(222,203,179, 0.16);
  overflow: hidden;
}
.kv-arch-a1 .kv-wiz-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a6f78, #decbb3);
  transition: width 0.28s ease;
}
.kv-arch-a1 .kv-wiz-progress.is-step2 .kv-wiz-fill {
  width: 100%;
}
.kv-arch-a1 .kv-wiz-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #ded9cd;
}
.kv-arch-a1 .kv-wiz-labels span.is-active {
  color: #fff4df;
  font-weight: 700;
}
.kv-wiz-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
}

.kv-arch-a2 .kv-stepper-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.kv-arch-a2 .kv-stepper-bar li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(222,203,179, 0.24);
  background: rgba(16,39,46, 0.75);
  color: #ded9cd;
  font-size: 0.75rem;
  text-align: center;
}
.kv-arch-a2 .kv-stepper-bar li b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(222,203,179, 0.16);
  color: #fff4df;
  font-size: 0.8rem;
}
.kv-arch-a2 .kv-stepper-bar li.is-active {
  border-color: #decbb3;
  background: linear-gradient(145deg, rgba(23,73,80, 0.55), rgba(23,57,66, 0.92));
  color: #fff4df;
  font-weight: 700;
}
.kv-arch-a2 .kv-stepper-bar li.is-active b,
.kv-arch-a2 .kv-stepper-bar li.is-done b {
  background: #decbb3;
  color: #182e30;
}
.kv-step-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(222,203,179, 0.36);
  background: rgba(16,39,46, 0.82);
  color: #fff6e9;
  font-size: 0.86rem;
  margin-bottom: 10px;
}
.kv-step-summary strong {
  color: #fff4df;
}

.kv-arch-a4 .kv-a5-tabs {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(222,203,179, 0.28) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 14px !important;
}
.kv-arch-a4 .kv-a5-tabs a {
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  background: transparent !important;
  color: #ded9cd !important;
  box-shadow: none !important;
}
.kv-arch-a4 .kv-a5-tabs a[aria-current="page"] {
  border-bottom-color: #decbb3 !important;
  color: #fff4df !important;
}
.kv-a4-accordion {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.kv-a4-accordion details {
  border: 1px solid rgba(222,203,179, 0.28);
  border-radius: 10px;
  background: rgba(16,39,46, 0.72);
  padding: 9px 12px;
}
.kv-a4-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  color: #fff4df;
}
.kv-a4-accordion details p {
  margin: 7px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #ded9cd;
}

.kv-arch-a5 .kv-a5-banner-strip {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(222,203,179, 0.42);
}
.kv-arch-a5 .kv-a5-banner-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.kv-arch-a7 .kv-a5-tabs {
  border-radius: 999px !important;
  padding: 5px !important;
  background: rgba(16,39,46, 0.88) !important;
  border: 1px solid rgba(222,203,179, 0.36) !important;
}
.kv-arch-a7 .kv-a5-tabs a {
  border-radius: 999px !important;
}
.kv-arch-a7.kv-a5-shell {
  border-radius: 24px !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(222,203,179, 0.28) !important;
}

/* ==================== H16-Neon Dual-Helix Sand Dollar Teal — 60 FPS GPU-COMPOSITED TUBE OVERRIDE ==================== */
.kv-h19-card {
  contain: layout paint style;
}
.kv-h19-tube {
  background: rgba(16,39,46, 0.88) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}
.kv-h19-fill {
  background: linear-gradient(90deg, #2dd4bf 0%, #f5e1c3 65%, #fff4df 100%) !important;
  box-shadow: 0 0 10px rgba(222, 203, 179, 0.56) !important;
}
.kv-h19-pct {
  color: #fff4df !important;
}

/* ==================== STANDALONE MOBILE 3D DOCK FALLBACK (daochok / huatdi) ==================== */
nav.kv-mobile-dock.kv-dock-3d {
  display: none;
}
@media (max-width: 900px) {
  nav.kv-mobile-dock.kv-dock-3d {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9050 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: end !important;
    padding: 6px 6px 8px !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(222,203,179, 0.42) !important;
    background: linear-gradient(180deg, rgba(23,57,66, 0.96), rgba(16,39,46, 0.98)) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65) !important;
    overflow: visible !important;
  }
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Zero horizontal overflow safeguard on 390px mobile */
.kv-social-band,
.kv-art-section,
.kv-bank-strip {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip !important;
  box-sizing: border-box !important;
}
