/* KWAWIN 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,
#kwawin-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 */
.kw-member-ribbon {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 1.65px solid rgba(119,197,173, 0.42);
  border-radius: 12px;
  background: linear-gradient(150deg, #243e4c 0%, #182630 70%, #1e3542 100%);
  color: #f3fbf8;
  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);
}

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

.kw-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  border: 1.65px solid rgba(119,197,173, 0.48);
  background: rgba(22,96,87, 0.36);
  color: #d7f7ec;
  font-weight: 700;
  font-size: 0.84rem;
}

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

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

.kw-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(119,197,173, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #f3fbf8;
  font: 600 0.83rem/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.kw-ribbon-btn.is-primary {
  border-color: #d7f7ec;
  background: linear-gradient(180deg, #d7f7ec 0%, #77c5ad 60%, #489882 100%);
  color: #122127;
  font-weight: 800;
}

.kw-ribbon-btn.is-secondary {
  border-color: rgba(119,197,173, 0.52);
  background: linear-gradient(160deg, #166057, #10443e);
  color: #d7f7ec;
}

/* Shared Buttons & Status Banners */
.kw-account-submit,
.kw-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(119,197,173, 0.38);
  background: linear-gradient(160deg, #243e4c, #182630);
  color: #f3fbf8;
  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;
}

.kw-account-submit,
.kw-btn.is-primary {
  border-color: #d7f7ec;
  background: linear-gradient(180deg, #d7f7ec 0%, #77c5ad 56%, #489882 100%);
  color: #122127;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 4px 0 #10443e, 0 10px 22px rgba(0, 0, 0, 0.48);
}

.kw-btn.is-outline {
  border-color: rgba(119,197,173, 0.44);
  background: rgba(22,96,87, 0.2);
  color: #d7f7ec;
}

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

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

.kw-status-banner {
  margin: 0;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  border: 1.65px solid rgba(119,197,173, 0.32);
  background: rgba(30,53,66, 0.9);
  color: #f3fbf8;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

/* Archetype A5 — Banner-Hero Minimal (KWAWIN Velvet Ruby-Obsidian & Burnished Rose-Gold) */
.kw-a5-shell {
  width: 100%;
  margin: 0.35rem auto 1.25rem;
  border-radius: 18px;
  border: 1.65px solid rgba(119,197,173, 0.44);
  background: linear-gradient(175deg, #1e3542 0%, #182630 62%, #182630 100%);
  color: #f3fbf8;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68);
}

.kw-a5-hero {
  position: relative;
  padding: 0.9rem 1.15rem 1.3rem;
  background:
    radial-gradient(ellipse 85% 68% at 50% 0%, rgba(22,96,87, 0.52) 0%, rgba(30,53,66, 0.88) 62%, #182630 100%);
  border-bottom: 1.65px solid rgba(119,197,173, 0.32);
  display: grid;
  gap: 0.8rem;
}

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

.kw-a5-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1.65px solid rgba(119,197,173, 0.38);
  background: rgba(24,38,48, 0.56);
  color: #d7f7ec;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.kw-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;
}

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

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

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

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

.kw-a5-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.78rem;
  border-radius: 999px;
  border: 1.65px solid rgba(119,197,173, 0.46);
  background: rgba(22,96,87, 0.34);
  color: #d7f7ec;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kw-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: #d7f7ec;
}

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

.kw-a5-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #182630;
  border-bottom: 1.65px solid rgba(119,197,173, 0.22);
}

.kw-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: #c5dfd7;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.kw-a5-tabs a[aria-current="page"] {
  color: #d7f7ec;
  border-bottom-color: #77c5ad;
  background: rgba(22,96,87, 0.22);
}

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

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

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

.kw-a5-divider::after {
  content: '';
  flex: 1;
  height: 1.65px;
  background: linear-gradient(90deg, rgba(119,197,173, 0.36), transparent);
}

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

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

/* A5 Signature: Borderless Minimal Filled Inputs with 1.65px Rose-Gold Focus Ring */
.kw-account-field input,
.kw-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: #1e3542;
  color: #f3fbf8;
  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;
}

.kw-account-field input::placeholder {
  color: #c5dfd7;
}

.kw-account-field input:focus,
.kw-account-field select:focus {
  outline: none;
  border-color: #77c5ad;
  background: #2a0e14;
  box-shadow: 0 0 0 3px rgba(119,197,173, 0.18);
}

.kw-field-hint {
  margin: 0;
  font-size: 0.79rem;
  color: #77c5ad;
}

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

.kw-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: #c5dfd7;
}

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

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

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

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

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

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

.kw-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: #77c5ad;
  cursor: pointer;
}

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

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

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

.kw-a5-optional {
  border-radius: 11px;
  border: 1.65px dashed rgba(119,197,173, 0.28);
  background: rgba(24,38,48, 0.52);
  padding: 0.65rem 0.85rem;
}

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

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

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

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

.kw-a5-trust li {
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(22,96,87, 0.24);
  border: 1.65px solid rgba(119,197,173, 0.3);
  color: #d7f7ec;
  font-size: 0.76rem;
  font-weight: 600;
}

.kw-account-switch { margin: 0; text-align: center; font-size: 0.88rem; color: #c5dfd7; }
.kw-account-switch a { color: #77c5ad; font-weight: 700; text-decoration: underline; }

.kw-captcha-box { display: grid; gap: 0.55rem; padding: 0.78rem; border: 1.65px solid rgba(119,197,173, 0.36); border-radius: 11px; background: rgba(24,38,48, 0.68); }
.kw-captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* Dialogs */
.kw-dialog {
  width: min(94vw, 480px);
  max-height: 88dvh;
  padding: 0;
  border: 1.65px solid rgba(119,197,173, 0.52);
  border-radius: 16px;
  background: linear-gradient(165deg, #270d14, #182630);
  color: #f3fbf8;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.kw-dialog::backdrop { background: rgba(8, 2, 4, 0.78); backdrop-filter: blur(4px); }
.kw-dialog-scroll { display: grid; gap: 0.8rem; padding: 1.15rem; overflow-y: auto; max-height: 86dvh; }
.kw-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.kw-dialog-pill { display: inline-flex; padding: 0.24rem 0.72rem; border-radius: 999px; background: rgba(22,96,87, 0.48); border: 1.65px solid rgba(119,197,173, 0.5); color: #d7f7ec; font-size: 0.78rem; font-weight: 700; }
.kw-dialog-pill.is-warn { background: rgba(185, 28, 28, 0.6); border-color: #f87171; color: #fee2e2; }
.kw-dialog-close { width: 34px; height: 34px; border-radius: 50%; border: 1.65px solid rgba(119,197,173, 0.38); background: rgba(255, 255, 255, 0.06); color: #d7f7ec; cursor: pointer; }
.kw-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) */
.kw-minigame-fab {
  position: fixed;
  right: 12px;
  bottom: 138px;
  z-index: 9050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.65px solid #77c5ad;
  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);
}

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

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

.kw-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;
}

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

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

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

/* 19 Thai Bank Icons Strip in Footer */
.kw-bank-strip {
  width: 100%;
  margin: 0.9rem 0 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1.65px solid rgba(119,197,173, 0.28);
  background: rgba(24,38,48, 0.78);
  display: grid;
  gap: 0.65rem;
}

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

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

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

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

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

/* =====================================================================
   KWAWIN EXECUTIVE THREE.JS PBR 3D MOBILE FOOTER DOCK (<nav class="bottom-nav">)
   4 Switchable 3D Themes via html[data-kw-footer-dock="a1|a2|g1|g2"]
   Piano Obsidian-Ruby Frosted Glass + Studio-Baked 3D PBR Medallions
   ===================================================================== */
nav.bottom-nav.kw-dock-3d,
nav.mobile-nav.kw-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(119,197,173, 0.42) !important;
  background: linear-gradient(180deg, rgba(30,53,66, 0.95) 0%, rgba(24,38,48, 0.98) 100%) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(215,247,236, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.74),
    0 0 22px rgba(22,96,87, 0.22) !important;
}

nav.bottom-nav.kw-dock-3d > a.kw-dock-slot:not(.kw-dock-center),
nav.mobile-nav.kw-dock-3d > a.kw-dock-slot:not(.kw-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.kw-dock-3d > a.kw-dock-slot.is-active:not(.kw-dock-center),
nav.mobile-nav.kw-dock-3d > a.kw-dock-slot.is-active:not(.kw-dock-center) {
  color: #d7f7ec;
  background: radial-gradient(circle at 50% 80%, rgba(119,197,173, 0.2), transparent 72%);
}

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

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

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

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

nav.bottom-nav.kw-dock-3d a.kw-dock-center,
nav.mobile-nav.kw-dock-3d a.kw-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;
}

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

.kw-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;
}

.kw-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;
}

.kw-pbr-stage.is-a1 { animation: kwPbrFloat 3.3s ease-in-out infinite; }
.kw-pbr-stage.is-a2 { animation: kwPbrTilt 3.6s ease-in-out infinite; }
.kw-pbr-stage.is-g1 { animation: kwPbrSway 4.2s ease-in-out infinite; }
.kw-pbr-stage.is-g2 { animation: kwPbrFloat 3.5s ease-in-out infinite; }

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

nav.bottom-nav.kw-dock-3d a.kw-dock-center:active .kw-pbr-img,
nav.mobile-nav.kw-dock-3d a.kw-dock-center:active .kw-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 kwPbrFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

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

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

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

/* ==================== SECTION 25.5: 1280PX BOXED DESKTOP CONTAINER (KWAWIN) ==================== */
:root { --kw-box-max: 1280px; }
#support-chat, .support-contact, #support-window, a[href*="/app-download-page"], nav.dock { display: none !important; }
html, body { overflow-x: clip !important; }
header.top, nav.category-strip, main#content, footer.footer {
  width: 100%;
  max-width: var(--kw-box-max) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}
@media (min-width: 1281px) {
  html, body {
    background-color: #111a21 !important;
    background-image: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(119, 197, 173, 0.14) 0%, rgba(0,0,0,0) 64%) !important;
  }
  header.top, nav.category-strip, main#content, footer.footer {
    border-inline: 1px solid rgba(119,197,173, 0.24) !important;
    box-shadow: 0 0 56px rgba(0, 0, 0, 0.72) !important;
  }
}
@media (min-width: 1460px) {
  #kw-chat-fab, .np-chat-fab, #kw-minigame-fab, .kw-minigame-fab, #kw-line-float, .kw-line-float {
    right: calc(50% - 640px - 66px) !important;
  }
  #npChatPanel { right: calc(50% - 640px + 16px) !important; }
}
.kw-standalone-bar {
  background: linear-gradient(110deg, #1e3542, #182630);
  border-bottom: 1px solid rgba(119,197,173, 0.34);
  padding: 10px 18px;
}
.kw-standalone-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.kw-standalone-brand img { height: 38px; width: auto; display: block; object-fit: contain; }
.kw-standalone-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kw-standalone-links a {
  padding: 7px 13px; border-radius: 999px; font: 700 0.85rem/1 "Noto Sans Thai", system-ui, sans-serif;
  text-decoration: none; color: #f3fbf8; border: 1px solid rgba(119,197,173, 0.32);
  background: rgba(24,38,48, 0.6);
}
.kw-standalone-links a.is-gold {
  background: linear-gradient(180deg, #d7f7ec, #77c5ad); color: #122127; border-color: #d7f7ec;
}
.kw-arch-a1 .kw-wiz-progress { display: grid; gap: 8px; margin-bottom: 14px; }
.kw-arch-a1 .kw-wiz-track { height: 7px; border-radius: 999px; background: rgba(119,197,173, 0.18); overflow: hidden; }
.kw-arch-a1 .kw-wiz-fill { height: 100%; width: 50%; border-radius: 999px; background: linear-gradient(90deg, #24786d, #77c5ad); transition: width 0.28s ease; }
.kw-arch-a1 .kw-wiz-progress.is-step2 .kw-wiz-fill { width: 100%; }
.kw-arch-a1 .kw-wiz-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: #c5dfd7; }
.kw-arch-a1 .kw-wiz-labels span.is-active { color: #d7f7ec; font-weight: 700; }
.kw-wiz-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 8px; }
.kw-a3-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kw-a3-steps span { padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid rgba(119,197,173, 0.34); background: rgba(24,38,48, 0.7); color: #c5dfd7; }
.kw-a3-steps span.is-active { background: rgba(119,197,173, 0.2); color: #d7f7ec; border-color: #77c5ad; }
.kw-a6-rules { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(119,197,173, 0.38); background: linear-gradient(145deg, rgba(22,96,87, 0.38), rgba(24,38,48, 0.88)); margin-bottom: 12px; }
.kw-a6-rules strong { display: block; color: #d7f7ec; font-size: 0.88rem; margin-bottom: 6px; }
.kw-a6-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #c5dfd7; font-size: 0.8rem; line-height: 1.45; }
.kw-h19-card { contain: layout paint style; }
.kw-h19-fill { background: linear-gradient(90deg, #38bdf8 0%, #8cdbbf 65%, #d7f7ec 100%) !important; box-shadow: 0 0 10px rgba(119, 197, 173, 0.56) !important; }
.kw-h19-pct { color: #d7f7ec !important; }
nav.kw-mobile-dock.kw-dock-3d { display: none; }
@media (max-width: 900px) {
  nav.kw-mobile-dock.kw-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(119,197,173, 0.42) !important;
    background: linear-gradient(180deg, rgba(30,53,66, 0.96), rgba(24,38,48, 0.98)) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65) !important; overflow: visible !important;
  }
  nav.kw-mobile-dock.kw-dock-3d .kw-dock-txt,
  nav.kw-mobile-dock.kw-dock-3d .kw-dock-label { color: #d7f7ec !important; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
}
.kw-social-band, .kw-art-section, .kw-bank-strip { max-width: 100% !important; min-width: 0 !important; overflow-x: clip !important; box-sizing: border-box !important; }
