/* 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: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.kv-ribbon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 36px;
  padding: 0.34rem 0.45rem;
  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.81rem/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  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 (Animated 3D Claw-Machine 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: 2px solid #e5c27a;
  overflow: visible;
  display: grid;
  place-items: center;
  background: #0b2328;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.52), 0 0 18px rgba(229, 194, 122, 0.56), 0 10px 24px rgba(0, 0, 0, 0.58);
  animation: kvClawBounce 2.6s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.kv-minigame-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(229, 194, 122, 0.72);
  background: radial-gradient(circle, rgba(229, 194, 122, 0.34) 0%, rgba(23, 73, 80, 0.28) 56%, transparent 74%);
  pointer-events: none;
  z-index: -1;
  animation: kvClawHalo 2.2s ease-in-out infinite;
}

.kv-minigame-fab:hover {
  transform: translateY(-4px) scale(1.09);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.48), 0 0 26px rgba(255, 244, 223, 0.88), 0 12px 28px rgba(0, 0, 0, 0.65);
}

.kv-minigame-fab:active {
  transform: scale(0.95);
}

.kv-mg-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

.kv-mg-disc::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -80%;
  width: 55%;
  height: 180%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 246, 224, 0.82) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(24deg);
  pointer-events: none;
  animation: kvClawSheen 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kv-minigame-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.kv-mg-sparkle {
  position: absolute;
  top: -3px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0%, #f3d285 48%, #174950 100%);
  box-shadow: 0 0 10px #f3d285, 0 0 16px rgba(229, 194, 122, 0.9);
  pointer-events: none;
  animation: kvClawSparkle 1.8s ease-in-out infinite;
}

@keyframes kvClawBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-5px) rotate(3deg) scale(1.045); }
}

@keyframes kvClawHalo {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.16); opacity: 0.96; }
}

@keyframes kvClawSheen {
  0%, 18% { transform: translateX(0) rotate(24deg); opacity: 0; }
  36% { opacity: 1; }
  62% { transform: translateX(310%) rotate(24deg); opacity: 0; }
  100% { transform: translateX(310%) rotate(24deg); opacity: 0; }
}

@keyframes kvClawSparkle {
  0%, 100% { transform: scale(0.72); opacity: 0.72; }
  50% { transform: scale(1.26); opacity: 1; }
}

.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: #10272e;
  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 {
    width: 44px;
    height: 44px;
    right: 8px !important;
    bottom: calc(198px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .kv-line-float {
    right: 8px !important;
    bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .kv-line-circle {
    width: 44px;
    height: 44px;
  }
}

/* 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 4 BESPOKE ANIMATED RESORT-LUXURY TEAL & CHAMPAGNE FOOTER DOCKS
   Switchable via Backoffice footer_dock_style or ?footer_dock=a1|a2|g1|g2
   a1 = F039 Architectural Teal-Sand Pill Tray + M01 Dual-Ring Champagne Aura
   a2 = F049 Double-Bevel Resort Vault + M02 Emerald-Gold Pendulum Octagon
   g1 = F070 Smoked Lagoon Glass Capsule + M03 Liquid Pearl Levitation
   g2 = F089 Art-Deco Chevron Executive Bar + M12 Champagne Spotlight Fan
   ===================================================================== */
nav.bottom-nav.kv-dock-3d,
nav.mobile-nav.kv-dock-3d,
nav.kv-mobile-dock.kv-dock-3d {
  display: none;
}

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

  nav.bottom-nav.kv-dock-3d,
  nav.mobile-nav.kv-dock-3d,
  nav.kv-mobile-dock.kv-dock-3d {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !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;
    gap: 2px !important;
    padding: 6px 8px 8px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    isolation: isolate;
  }

  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),
  nav.kv-mobile-dock.kv-dock-3d > a.kv-dock-slot:not(.kv-dock-center) {
    position: relative;
    z-index: 2;
    min-height: 48px;
    padding: 4px 2px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #ded9cd;
    text-decoration: none;
    border-radius: 12px;
    border: 0;
    background: transparent;
    transition: color 0.16s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  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),
  nav.kv-mobile-dock.kv-dock-3d > a.kv-dock-slot.is-active:not(.kv-dock-center) {
    color: #fff4df;
  }

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

  .kv-dock-ic {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  }

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

  .kv-dock-center .kv-dock-label {
    font-size: clamp(0.68rem, 2.6vw, 0.76rem);
    font-weight: 800;
    color: #fff4df !important;
    text-shadow: 0 1px 4px rgba(6, 18, 22, 0.95) !important;
    line-height: 1.15;
    white-space: nowrap;
  }

  .kv-medallion-stage {
    position: relative;
    margin-top: -26px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    pointer-events: none;
    will-change: transform;
  }

  .kv-medallion-svg {
    position: relative;
    z-index: 4;
    display: block;
  }

  /* ---------- STYLE A1: F039 ARCHITECTURAL PILL TRAY + M01 DUAL-RING CHAMPAGNE AURA ---------- */
  nav.kv-dock-a1::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 73, 80, 0.96) 0%, rgba(11, 35, 40, 0.99) 100%);
    border: 1.5px solid rgba(229, 194, 122, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.34), 0 14px 34px rgba(0, 0, 0, 0.78);
  }

  nav.kv-dock-a1::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 2px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #e5c27a, #fff4df, #e5c27a, transparent);
  }

  .kv-medallion-stage.is-a1 {
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.72));
    animation: kvDockM01Lift 2.7s ease-in-out infinite;
  }

  .kv-medallion-stage.is-a1 .kv-medallion-aura {
    position: absolute;
    inset: -7px;
    z-index: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(229, 194, 122, 0.1), rgba(255, 244, 223, 0.95) 22%, rgba(45, 212, 191, 0.55) 55%, rgba(229, 194, 122, 0.1));
    filter: blur(5px);
    animation: kvDockM01Aura 3.2s linear infinite;
  }

  .kv-medallion-stage.is-a1 .kv-medallion-plinth {
    position: absolute;
    inset: 3px 0 -3px 0;
    z-index: 1;
    border-radius: 16px 16px 24px 24px;
    background: linear-gradient(180deg, #967028, #4a340b);
  }

  .kv-medallion-stage.is-a1 .kv-medallion-badge {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px 16px 24px 24px;
    border: 1.5px solid #fff4df;
    display: grid;
    place-items: center;
    color: #0c2429;
    background: linear-gradient(145deg, #fff9ea 0%, #e5c27a 42%, #b88b3d 100%);
  }

  .kv-medallion-stage.is-a1 .kv-medallion-sheen {
    position: absolute;
    top: -40%;
    left: -80%;
    width: 58%;
    height: 190%;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
    transform: rotate(28deg);
    animation: kvDockM01Sheen 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .kv-medallion-stage.is-a1 .kv-medallion-spark { display: none; }

  /* ---------- STYLE A2: F049 DOUBLE-BEVEL RESORT VAULT + M02 EMERALD-GOLD PENDULUM OCTAGON ---------- */
  nav.kv-dock-a2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
    background: linear-gradient(180deg, #1b525a 0%, #0d2b31 100%);
    box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.3), 0 14px 32px rgba(0, 0, 0, 0.78);
  }

  nav.kv-dock-a2::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(229, 194, 122, 0.36);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  }

  .kv-medallion-stage.is-a2 {
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.76));
    animation: kvDockM02Pendulum 2.9s ease-in-out infinite;
  }

  .kv-medallion-stage.is-a2 .kv-medallion-aura {
    position: absolute;
    inset: -6px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 194, 122, 0.62) 0%, rgba(45, 212, 191, 0.28) 55%, transparent 74%);
    animation: kvDockM02Pulse 2.4s ease-in-out infinite;
  }

  .kv-medallion-stage.is-a2 .kv-medallion-plinth {
    position: absolute;
    inset: 3px 0 -3px 0;
    z-index: 1;
    background: linear-gradient(180deg, #8a621c, #3d2805);
    clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
  }

  .kv-medallion-stage.is-a2 .kv-medallion-badge {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #0c2429;
    background: linear-gradient(145deg, #fff6d9 0%, #e5c27a 44%, #c2923c 100%);
    clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
  }

  .kv-medallion-stage.is-a2 .kv-medallion-sheen {
    position: absolute;
    top: -35%;
    left: -75%;
    width: 50%;
    height: 180%;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), transparent);
    transform: rotate(22deg);
    animation: kvDockM01Sheen 2.9s ease-in-out infinite;
  }

  .kv-medallion-stage.is-a2 .kv-medallion-spark { display: none; }

  /* ---------- STYLE G1: F070 SMOKED LAGOON GLASS CAPSULE + M03 LIQUID PEARL LEVITATION ---------- */
  nav.kv-dock-g1::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(23, 73, 80, 0.72) 0%, rgba(11, 31, 36, 0.92) 100%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255, 244, 223, 0.34);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 14px 36px rgba(0, 0, 0, 0.74);
  }

  nav.kv-dock-g1::after { display: none; }

  .kv-medallion-stage.is-g1 {
    width: 54px;
    height: 46px;
    margin-top: -24px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.72));
    animation: kvDockM03Float 2.4s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g1 .kv-medallion-aura {
    position: absolute;
    inset: -7px;
    z-index: 0;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(222, 203, 179, 0.6) 0%, rgba(45, 212, 191, 0.36) 55%, transparent 75%);
    animation: kvDockM02Pulse 2.4s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g1 .kv-medallion-plinth {
    position: absolute;
    inset: 4px 1px -3px 1px;
    z-index: 1;
    border-radius: 16px;
    background: linear-gradient(180deg, #8e6e36, #423010);
  }

  .kv-medallion-stage.is-g1 .kv-medallion-badge {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 1.5px solid #fff4df;
    display: grid;
    place-items: center;
    color: #0c2429;
    background: linear-gradient(135deg, #fff9ec 0%, #decbb3 44%, #e5c27a 100%);
  }

  .kv-medallion-stage.is-g1 .kv-medallion-sheen {
    position: absolute;
    top: -35%;
    left: -75%;
    width: 55%;
    height: 180%;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
    transform: rotate(24deg);
    animation: kvDockM01Sheen 2.5s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g1 .kv-medallion-spark { display: none; }

  /* ---------- STYLE G2: F089 ART-DECO CHEVRON BAR + M12 CHAMPAGNE SPOTLIGHT FAN ---------- */
  nav.kv-dock-g2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(0 12px, 14% 0, 86% 0, 100% 12px, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #163d44 0%, #091c21 100%);
    box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.32), 0 14px 36px rgba(0, 0, 0, 0.82);
  }

  nav.kv-dock-g2::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 0;
    height: 2px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.25), #fff4df 45%, #e5c27a 60%, rgba(45, 212, 191, 0.25));
  }

  .kv-medallion-stage.is-g2 {
    filter: drop-shadow(0 7px 15px rgba(0, 0, 0, 0.78));
    animation: kvDockM12Sway 3.0s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g2 .kv-medallion-aura {
    position: absolute;
    inset: -6px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 244, 223, 0.58) 0%, rgba(229, 194, 122, 0.35) 55%, transparent 74%);
    animation: kvDockM02Pulse 2.5s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g2 .kv-medallion-plinth {
    position: absolute;
    inset: 3px 0 -3px 0;
    z-index: 1;
    background: linear-gradient(180deg, #8c6a2b, #3a2909);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }

  .kv-medallion-stage.is-g2 .kv-medallion-badge {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #0b2026;
    background: linear-gradient(145deg, #ffffff 0%, #fff4df 34%, #e5c27a 74%, #b88b3d 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }

  .kv-medallion-stage.is-g2 .kv-medallion-sheen {
    position: absolute;
    left: -15%;
    right: -15%;
    top: -30%;
    height: 26%;
    z-index: 3;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92), transparent);
    animation: kvDockM12Sweep 2.4s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g2 .kv-medallion-spark {
    position: absolute;
    width: 11px;
    height: 11px;
    z-index: 6;
    background: #fffbe6;
    clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
    filter: drop-shadow(0 0 6px #e5c27a);
  }

  .kv-medallion-stage.is-g2 .kv-medallion-spark.is-s1 {
    top: -4px;
    right: 0;
    animation: kvDockM12Spark 1.8s ease-in-out infinite;
  }

  .kv-medallion-stage.is-g2 .kv-medallion-spark.is-s2 {
    bottom: 0;
    left: -2px;
    animation: kvDockM12Spark 1.8s ease-in-out 0.9s infinite;
  }

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

@keyframes kvDockM01Lift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.045); }
}

@keyframes kvDockM01Aura {
  0% { transform: rotate(0deg) scale(0.96); opacity: 0.72; }
  50% { transform: rotate(180deg) scale(1.08); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.96); opacity: 0.72; }
}

@keyframes kvDockM01Sheen {
  0%, 15% { transform: translateX(0) rotate(28deg); opacity: 0; }
  35% { opacity: 1; }
  65% { transform: translateX(320%) rotate(28deg); opacity: 0; }
  100% { transform: translateX(320%) rotate(28deg); opacity: 0; }
}

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

@keyframes kvDockM02Pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.16); opacity: 0.96; }
}

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

@keyframes kvDockM12Sway {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes kvDockM12Sweep {
  0%, 15% { transform: translateY(0); opacity: 0; }
  38% { opacity: 1; }
  75% { transform: translateY(420%); opacity: 0; }
  100% { transform: translateY(420%); opacity: 0; }
}

@keyframes kvDockM12Spark {
  0%, 100% { transform: scale(0.35) rotate(0deg); opacity: 0.25; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
}

/* ==================== 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 HEADER BUTTONS & GUEST REGISTER CTA BLINK-BEACON (SECTION 25.15) ==================== */
header.topbar .member-actions a.button.red {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff4df !important;
  border: 1px solid rgba(222, 203, 179, 0.52) !important;
}

header.topbar .member-actions a.button.gold {
  background: linear-gradient(180deg, #fff4df 0%, #e5c27a 56%, #b88b3d 100%) !important;
  color: #0c2429 !important;
  border: 1.5px solid #fff4df !important;
  font-weight: 800 !important;
}

html:not([data-kv-member="authenticated"]) header.topbar .member-actions a.button.gold,
html:not([data-kv-member="authenticated"]) .kv-reg-cta-pulse,
html:not([data-kv-member="authenticated"]) a.kv-act-btn.is-gold {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  animation: kvRegBlinkBeacon 1.9s ease-in-out infinite !important;
  will-change: transform, filter, box-shadow;
}

html:not([data-kv-member="authenticated"]) header.topbar .member-actions a.button.gold::after,
html:not([data-kv-member="authenticated"]) .kv-reg-cta-pulse::after,
html:not([data-kv-member="authenticated"]) a.kv-act-btn.is-gold::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -65%;
  width: 46%;
  height: 175%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 251, 232, 0.82) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(22deg);
  animation: kvRegSheen 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes kvRegBlinkBeacon {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(229, 194, 122, 0.44), 0 0 0 0 rgba(255, 244, 223, 0.55);
  }
  50% {
    filter: brightness(1.24);
    transform: scale(1.032);
    box-shadow: 0 6px 24px rgba(229, 194, 122, 0.9), 0 0 18px rgba(255, 244, 223, 0.88), 0 0 0 4px rgba(229, 194, 122, 0.28);
  }
}

@keyframes kvRegSheen {
  0%, 18% { transform: translateX(0) rotate(22deg); opacity: 0; }
  38% { opacity: 1; }
  66% { transform: translateX(360%) rotate(22deg); opacity: 0; }
  100% { transform: translateX(360%) rotate(22deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kv-minigame-fab,
  .kv-minigame-fab::before,
  .kv-mg-disc::after,
  .kv-mg-sparkle,
  .kv-medallion-stage,
  .kv-medallion-aura,
  .kv-medallion-sheen,
  .kv-medallion-spark,
  html:not([data-kv-member="authenticated"]) header.topbar .member-actions a.button.gold,
  html:not([data-kv-member="authenticated"]) header.topbar .member-actions a.button.gold::after,
  html:not([data-kv-member="authenticated"]) .kv-reg-cta-pulse,
  html:not([data-kv-member="authenticated"]) .kv-reg-cta-pulse::after,
  html:not([data-kv-member="authenticated"]) a.kv-act-btn.is-gold,
  html:not([data-kv-member="authenticated"]) a.kv-act-btn.is-gold::after {
    animation: none !important;
  }
}

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