/* SPINPANG 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,
#spinpang-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 */
.sp-member-ribbon {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 1.65px solid rgba(104,225,237, 0.42);
  border-radius: 12px;
  background: linear-gradient(150deg, #453068 0%, #211833 70%, #362652 100%);
  color: #f5eeff;
  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);
}

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

.sp-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  border: 1.65px solid rgba(104,225,237, 0.48);
  background: rgba(100,67,151, 0.36);
  color: #d8fbff;
  font-weight: 700;
  font-size: 0.84rem;
}

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

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

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

.sp-ribbon-btn.is-primary {
  border-color: #d8fbff;
  background: linear-gradient(180deg, #d8fbff 0%, #68e1ed 60%, #3dc6de 100%);
  color: #17132a;
  font-weight: 800;
}

.sp-ribbon-btn.is-secondary {
  border-color: rgba(104,225,237, 0.52);
  background: linear-gradient(160deg, #644397, #362652);
  color: #d8fbff;
}

/* Shared Buttons & Status Banners */
.sp-account-submit,
.sp-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(104,225,237, 0.38);
  background: linear-gradient(160deg, #453068, #211833);
  color: #f5eeff;
  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;
}

.sp-account-submit,
.sp-btn.is-primary {
  border-color: #d8fbff;
  background: linear-gradient(180deg, #d8fbff 0%, #68e1ed 56%, #3dc6de 100%);
  color: #17132a;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 4px 0 #362652, 0 10px 22px rgba(0, 0, 0, 0.48);
}

.sp-btn.is-outline {
  border-color: rgba(104,225,237, 0.44);
  background: rgba(100,67,151, 0.2);
  color: #d8fbff;
}

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

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

.sp-status-banner {
  margin: 0;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  border: 1.65px solid rgba(104,225,237, 0.32);
  background: rgba(54,38,82, 0.9);
  color: #f5eeff;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

/* Archetype A5 — Banner-Hero Minimal (SPINPANG Velvet Ruby-Obsidian & Burnished Rose-Gold) */
.sp-a5-shell {
  width: 100%;
  margin: 0.35rem auto 1.25rem;
  border-radius: 18px;
  border: 1.65px solid rgba(104,225,237, 0.44);
  background: linear-gradient(175deg, #362652 0%, #211833 62%, #211833 100%);
  color: #f5eeff;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68);
}

.sp-a5-hero {
  position: relative;
  padding: 0.9rem 1.15rem 1.3rem;
  background:
    radial-gradient(ellipse 85% 68% at 50% 0%, rgba(100,67,151, 0.52) 0%, rgba(54,38,82, 0.88) 62%, #211833 100%);
  border-bottom: 1.65px solid rgba(104,225,237, 0.32);
  display: grid;
  gap: 0.8rem;
}

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

.sp-a5-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1.65px solid rgba(104,225,237, 0.38);
  background: rgba(33,24,51, 0.56);
  color: #d8fbff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

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

.sp-a5-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.78rem;
  border-radius: 999px;
  border: 1.65px solid rgba(104,225,237, 0.46);
  background: rgba(100,67,151, 0.34);
  color: #d8fbff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sp-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: #d8fbff;
}

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

.sp-a5-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #211833;
  border-bottom: 1.65px solid rgba(104,225,237, 0.22);
}

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

.sp-a5-tabs a[aria-current="page"] {
  color: #d8fbff;
  border-bottom-color: #68e1ed;
  background: rgba(100,67,151, 0.22);
}

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

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

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

.sp-a5-divider::after {
  content: '';
  flex: 1;
  height: 1.65px;
  background: linear-gradient(90deg, rgba(104,225,237, 0.36), transparent);
}

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

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

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

.sp-account-field input::placeholder {
  color: #d6c8f0;
}

.sp-account-field input:focus,
.sp-account-field select:focus {
  outline: none;
  border-color: #68e1ed;
  background: #2a0e14;
  box-shadow: 0 0 0 3px rgba(104,225,237, 0.18);
}

.sp-field-hint {
  margin: 0;
  font-size: 0.79rem;
  color: #68e1ed;
}

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

.sp-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: #d6c8f0;
}

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

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

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

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

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

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

.sp-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: #68e1ed;
  cursor: pointer;
}

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

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

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

.sp-a5-optional {
  border-radius: 11px;
  border: 1.65px dashed rgba(104,225,237, 0.28);
  background: rgba(33,24,51, 0.52);
  padding: 0.65rem 0.85rem;
}

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

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

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

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

.sp-a5-trust li {
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(100,67,151, 0.24);
  border: 1.65px solid rgba(104,225,237, 0.3);
  color: #d8fbff;
  font-size: 0.76rem;
  font-weight: 600;
}

.sp-account-switch { margin: 0; text-align: center; font-size: 0.88rem; color: #d6c8f0; }
.sp-account-switch a { color: #68e1ed; font-weight: 700; text-decoration: underline; }

.sp-captcha-box { display: grid; gap: 0.55rem; padding: 0.78rem; border: 1.65px solid rgba(104,225,237, 0.36); border-radius: 11px; background: rgba(33,24,51, 0.68); }
.sp-captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* Dialogs */
.sp-dialog {
  width: min(94vw, 480px);
  max-height: 88dvh;
  padding: 0;
  border: 1.65px solid rgba(104,225,237, 0.52);
  border-radius: 16px;
  background: linear-gradient(165deg, #270d14, #211833);
  color: #f5eeff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

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

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

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

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

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

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

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

/* 19 Thai Bank Icons Strip in Footer */
.sp-bank-strip {
  width: 100%;
  margin: 0.9rem 0 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1.65px solid rgba(104,225,237, 0.28);
  background: rgba(33,24,51, 0.78);
  display: grid;
  gap: 0.65rem;
}

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

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

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

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

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

/* =====================================================================
   SPINPANG EXECUTIVE THREE.JS PBR 3D MOBILE FOOTER DOCK (<nav class="bottom-nav">)
   4 Switchable 3D Themes via html[data-sp-footer-dock="a1|a2|g1|g2"]
   Piano Obsidian-Ruby Frosted Glass + Studio-Baked 3D PBR Medallions
   ===================================================================== */
nav.bottom-nav.sp-dock-3d,
nav.mobile-nav.sp-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(104,225,237, 0.42) !important;
  background: linear-gradient(180deg, rgba(54,38,82, 0.95) 0%, rgba(33,24,51, 0.98) 100%) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(216,251,255, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.74),
    0 0 22px rgba(100,67,151, 0.22) !important;
}

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

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

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

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

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

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

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

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

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

.sp-pbr-stage.is-a1 { animation: spPbrFloat 3.3s ease-in-out infinite; }
.sp-pbr-stage.is-a2 { animation: spPbrTilt 3.6s ease-in-out infinite; }
.sp-pbr-stage.is-g1 { animation: spPbrSway 4.2s ease-in-out infinite; }
.sp-pbr-stage.is-g2 { animation: spPbrFloat 3.5s ease-in-out infinite; }

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

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

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

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

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

/* ==================== SECTION 25.5: 1280PX BOXED DESKTOP CONTAINER (SPINPANG) ==================== */
:root { --sp-box-max: 1280px; }
#k2s-bottom-bar, .k2s-bottom-bar, #support-chat, .support-contact, #support-window { display: none !important; }
html, body { overflow-x: clip !important; }
.header-section, #app, header.sp-standalone-bar, main.spinpang-cashier, footer.sp-standalone-footer, footer {
  width: 100%;
  max-width: var(--sp-box-max) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}
@media (min-width: 1281px) {
  html, body {
    background-color: #150f22 !important;
    background-image: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(104, 225, 237, 0.16) 0%, rgba(0,0,0,0) 64%) !important;
  }
  .header-section, #app, header.sp-standalone-bar, main.spinpang-cashier, footer.sp-standalone-footer, footer {
    border-inline: 1px solid rgba(104,225,237, 0.24) !important;
    box-shadow: 0 0 56px rgba(0, 0, 0, 0.72) !important;
  }
}
@media (min-width: 1460px) {
  #sp-chat-fab, .np-chat-fab, #sp-minigame-fab, .sp-minigame-fab, #sp-line-float, .sp-line-float {
    right: calc(50% - 640px - 66px) !important;
  }
  #npChatPanel { right: calc(50% - 640px + 16px) !important; }
}

#app .header-section, #app footer { max-width: 100% !important; border-inline: none !important; box-shadow: none !important; }
#k2s-bottom-bar, .bottom-menu-mobile, nav.bottom-nav, #contact-slide, .box-contact, #footer-main, .wrap-footer-float { display: none !important; }

.sp-standalone-bar {
  background: linear-gradient(110deg, #362652, #211833);
  border-bottom: 1px solid rgba(104,225,237, 0.34);
  padding: 10px 18px;
}
.sp-standalone-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-standalone-brand img { height: 38px; width: auto; display: block; object-fit: contain; }
.sp-standalone-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-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: #f5eeff; border: 1px solid rgba(104,225,237, 0.32);
  background: rgba(33,24,51, 0.6);
}
.sp-standalone-links a.is-gold {
  background: linear-gradient(180deg, #d8fbff, #68e1ed); color: #17132a; border-color: #d8fbff;
}
.sp-a2-stepper { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-a2-stepper li { padding: 7px 8px; border-radius: 10px; text-align: center; font-size: 0.72rem; font-weight: 700; border: 1px solid rgba(104,225,237, 0.28); background: rgba(33,24,51, 0.72); color: #d6c8f0; }
.sp-a2-stepper li.is-active { background: rgba(104,225,237, 0.22); color: #d8fbff; border-color: #68e1ed; }
.sp-a4-acc { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(104,225,237, 0.35); background: rgba(100,67,151, 0.24); margin-bottom: 12px; }
.sp-a4-acc summary { cursor: pointer; font-weight: 700; font-size: 0.84rem; color: #d8fbff; }
.sp-a4-acc p { margin: 6px 0 0; font-size: 0.78rem; line-height: 1.5; color: #d6c8f0; }
.sp-a5-hero-strip { margin-bottom: 12px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(104,225,237, 0.38); }
.sp-a5-hero-strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sp-a7-pill-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sp-a7-pill-bar span { padding: 5px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; border: 1px solid rgba(104,225,237, 0.32); background: rgba(33,24,51, 0.72); color: #d6c8f0; }
.sp-a7-pill-bar span.is-on { background: linear-gradient(135deg, #d8fbff, #68e1ed); color: #17132a; border-color: #d8fbff; }
.sp-h19-card { contain: layout paint style; }
.sp-h19-fill { background: linear-gradient(90deg, #a855f7 0%, #68e1ed 65%, #d8fbff 100%) !important; box-shadow: 0 0 10px rgba(104, 225, 237, 0.62) !important; }
.sp-h19-pct { color: #d8fbff !important; }
nav.sp-mobile-dock.sp-dock-3d { display: none; }
@media (max-width: 900px) {
  nav.sp-mobile-dock.sp-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(104,225,237, 0.42) !important;
    background: linear-gradient(180deg, rgba(54,38,82, 0.96), rgba(33,24,51, 0.98)) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65) !important; overflow: visible !important;
  }
  nav.sp-mobile-dock.sp-dock-3d .sp-dock-txt,
  nav.sp-mobile-dock.sp-dock-3d .sp-dock-label { color: #d8fbff !important; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
}
.sp-social-band, .sp-art-section, .sp-bank-strip { max-width: 100% !important; min-width: 0 !important; overflow-x: clip !important; box-sizing: border-box !important; }
