/* NAGA6D MY Portal — main.css v1.1 */

:root {
  --gold-light: #fce68e;
  --gold-mid: #e8c547;
  --gold-base: #d4aa3e;
  --gold-dark: #a67c28;
  --bg-deep: #1e0407;
  --bg-panel: rgba(30, 4, 7, 0.72);
  --bg-elevated: rgba(48, 8, 13, 0.78);
  --bg-hover: rgba(60, 10, 16, 0.88);
  --text: #fff6df;
  --text-muted: #d4c49a;
  --text-dim: #a89468;
  --border: rgba(255, 50, 50, 0.42);
  --border-strong: rgba(255, 90, 90, 0.72);
  --border-subtle: rgba(255, 80, 80, 0.16);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  --shadow-panel: 0 1px 0 rgba(255, 80, 80, 0.12) inset, 0 4px 22px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(10px);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --font-display: 'Oswald', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --header-h: 60px;
  --marquee-h: 32px;
  --dock-h: 64px;
  --sidebar-w: 220px;
  /* Wider portal (~125% of previous 960px) */
  --shell-max: 1200px;
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body.qsm-portal {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: #1e0407;
  background-image: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background layer — full brightness, no dark veil */
body.qsm-portal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #1e0407;
  background-image: url("../img/naga6d-main-bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  filter: brightness(1.55) contrast(1.08) saturate(1.15);
}

img { max-width: 100%; height: auto; display: block; }
video, iframe, svg { max-width: 100%; }
a { color: var(--gold-mid); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75em;
  letter-spacing: 0.025em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
button, input { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--gold-base); color: var(--bg-deep); padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.qsm-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(10px, 2vw, 14px);
}

.qsm-frame {
  width: min(var(--shell-max), 100%);
  max-width: var(--shell-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.qsm-header {
  width: 100%;
}

.qsm-center,
.qsm-portal,
.qsm-main {
  min-width: 0;
  max-width: 100%;
}

/* Float rails stay at viewport edges (outside the frame) */
.float-rail--left { left: 0; }
.float-rail--right { right: 0; left: auto; }

/* ── HEADER ── */
.qsm-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(22, 16, 10, 0.78) 0%, rgba(14, 10, 6, 0.68) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.qsm-header__bar { height: var(--header-h); }

.qsm-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.qsm-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity var(--ease);
}
.qsm-logo:hover { opacity: 0.88; }
.qsm-logo img { height: 38px; width: auto; }

.qsm-login {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.qsm-login__btn {
  min-width: 148px;
  padding: 10px 28px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

@media (min-width: 1100px) {
  .qsm-login__btn {
    min-width: 176px;
    padding: 11px 34px;
    font-size: 14px;
  }
}

.qsm-login__fields,
.qsm-login__field,
.qsm-login__input,
.qsm-login__actions {
  display: none !important;
}

.qsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.qsm-btn:hover { transform: translateY(-1px); }
.qsm-btn:active { transform: translateY(0); }

.qsm-btn--gold {
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold-mid) 35%, var(--gold-base) 70%, var(--gold-dark) 100%);
  color: var(--bg-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(212, 170, 62, 0.3);
}
.qsm-btn--gold:hover {
  color: var(--bg-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 4px 14px rgba(255, 55, 55, 0.38);
}

.qsm-btn--outline {
  background: rgba(212, 170, 62, 0.04);
  color: var(--gold-mid);
  border: 1px solid rgba(212, 170, 62, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.qsm-btn--outline:hover {
  background: rgba(212, 170, 62, 0.1);
  border-color: var(--gold-mid);
  color: var(--gold-light);
}

.qsm-btn--dark {
  background: rgba(10, 10, 10, 0.75);
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.qsm-btn--dark:hover {
  background: rgba(22, 22, 22, 0.9);
  border-color: var(--gold-mid);
  color: var(--gold-light);
}

.qsm-btn--block { display: flex; width: 100%; }
.qsm-btn--sm { padding: 5px 11px; font-size: 10.5px; letter-spacing: 0.06em; }
.qsm-btn--lg { padding: 11px 26px; font-size: 14px; }

.qsm-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 7px;
  transition: background var(--ease), border-color var(--ease);
}
.qsm-nav-toggle:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.qsm-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-mid);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── MARQUEE (shell-width, same as banner) ── */
.qsm-marquee-bar {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
}

.qsm-marquee {
  display: flex;
  align-items: center;
  height: var(--marquee-h);
  background: linear-gradient(90deg, rgba(32, 12, 12, 0.78) 0%, rgba(20, 15, 9, 0.7) 50%, rgba(32, 12, 12, 0.78) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}

.qsm-marquee__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  height: 100%;
}

.qsm-marquee__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.qsm-marquee__content {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: qsm-marquee-scroll 18s linear infinite;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.qsm-marquee__content span { flex-shrink: 0; }

@keyframes qsm-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 2-COLUMN PORTAL (left | center) ── */
.qsm-main { padding: 18px 0 36px; }

.qsm-portal__grid {
  display: grid;
  grid-template-columns: minmax(160px, var(--sidebar-w)) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
}

/* ── SIDEBARS ── */
.qsm-sidebar {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.qsm-side-label {
  padding: 10px 12px 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

.qsm-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qsm-side-nav--pills .qsm-side-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(10, 4, 4, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.qsm-side-nav--pills .qsm-side-nav__link:hover {
  background: rgba(48, 14, 14, 0.9);
  border-color: var(--gold-light);
  color: #fff;
  transform: translateX(2px);
}
.qsm-side-nav--pills .qsm-side-nav__link.is-active {
  background: linear-gradient(160deg, rgba(255, 90, 90, 0.22), rgba(180, 20, 20, 0.28));
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.qsm-side-nav--pills .qsm-side-nav__link.is-active .qsm-side-nav__icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 90, 90, 0.45));
}

/* Gold NAGA6D menu icons (mask + gold gradient) */
.qsm-side-nav__icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold-mid) 48%, var(--gold-dark) 100%);
  opacity: 0.95;
  transition: opacity var(--ease), filter var(--ease);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.qsm-side-nav__icon--home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2 3.5 10.5V21h6.2v-6.2h4.6V21h6.2V10.5L12 3.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2 3.5 10.5V21h6.2v-6.2h4.6V21h6.2V10.5L12 3.2z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--togel {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='9' r='3.2' fill='%23000'/%3E%3Ccircle cx='16.2' cy='8.2' r='2.6' fill='%23000'/%3E%3Ccircle cx='12.5' cy='16' r='3.6' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='9' r='3.2' fill='%23000'/%3E%3Ccircle cx='16.2' cy='8.2' r='2.6' fill='%23000'/%3E%3Ccircle cx='12.5' cy='16' r='3.6' fill='%23000'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--slots {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 3h12v3H6V3zm1 4h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm1.2 2.4v9.2h2.3V9.4H8.2zm3.5 0v9.2h2.3V9.4h-2.3zm3.5 0v9.2h2.3V9.4H15.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 3h12v3H6V3zm1 4h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm1.2 2.4v9.2h2.3V9.4H8.2zm3.5 0v9.2h2.3V9.4h-2.3zm3.5 0v9.2h2.3V9.4H15.2z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--sports {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.9 5.3-2.2 1.6.8 2.6-2.5-1.2-2.5 1.2.8-2.6-2.2-1.6h2.7L12 4.8l.9 2.5h2.999zM7.4 14.2c.7 2.1 2.5 3.6 4.6 4v-3.1c-1.2-.2-2.3-.8-3.1-1.7l-1.5.8zm9.2 0-1.5-.8c-.8.9-1.9 1.5-3.1 1.7v3.1c2.1-.4 3.9-1.9 4.6-4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.9 5.3-2.2 1.6.8 2.6-2.5-1.2-2.5 1.2.8-2.6-2.2-1.6h2.7L12 4.8l.9 2.5h2.999zM7.4 14.2c.7 2.1 2.5 3.6 4.6 4v-3.1c-1.2-.2-2.3-.8-3.1-1.7l-1.5.8zm9.2 0-1.5-.8c-.8.9-1.9 1.5-3.1 1.7v3.1c2.1-.4 3.9-1.9 4.6-4z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--casino {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C7.6 2 4 5.1 4 9c0 3.2 2.3 5.9 5.5 6.8L8 21h8l-1.5-5.2C17.7 14.9 20 12.2 20 9c0-3.9-3.6-7-8-7zm0 3.2c.9 0 1.6.7 1.6 1.6S12.9 8.4 12 8.4s-1.6-.7-1.6-1.6S11.1 5.2 12 5.2zM7.8 9.4c.7 0 1.3.6 1.3 1.3S8.5 12 7.8 12 6.5 11.4 6.5 10.7s.6-1.3 1.3-1.3zm8.4 0c.7 0 1.3.6 1.3 1.3s-.6 1.3-1.3 1.3-1.3-.6-1.3-1.3.6-1.3 1.3-1.3zM12 11.5c.9 0 1.6.7 1.6 1.6S12.9 14.7 12 14.7s-1.6-.7-1.6-1.6.7-1.6 1.6-1.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C7.6 2 4 5.1 4 9c0 3.2 2.3 5.9 5.5 6.8L8 21h8l-1.5-5.2C17.7 14.9 20 12.2 20 9c0-3.9-3.6-7-8-7zm0 3.2c.9 0 1.6.7 1.6 1.6S12.9 8.4 12 8.4s-1.6-.7-1.6-1.6S11.1 5.2 12 5.2zM7.8 9.4c.7 0 1.3.6 1.3 1.3S8.5 12 7.8 12 6.5 11.4 6.5 10.7s.6-1.3 1.3-1.3zm8.4 0c.7 0 1.3.6 1.3 1.3s-.6 1.3-1.3 1.3-1.3-.6-1.3-1.3.6-1.3 1.3-1.3zM12 11.5c.9 0 1.6.7 1.6 1.6S12.9 14.7 12 14.7s-1.6-.7-1.6-1.6.7-1.6 1.6-1.6z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--poker {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2c-2.4 2.5-5.8 4.1-5.8 7.3 0 2.1 1.6 3.5 3.3 3.5.9 0 1.6-.3 2.5-1.1.9.8 1.6 1.1 2.5 1.1 1.7 0 3.3-1.4 3.3-3.5 0-3.2-3.4-4.8-5.8-7.3zM9.7 15.4c-.8.4-1.4 1.1-1.4 2.1 0 1.4 1.2 2.6 3.7 2.6s3.7-1.2 3.7-2.6c0-1-.6-1.7-1.4-2.1-.7.5-1.5.8-2.3.8-.8 0-1.6-.3-2.3-.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2c-2.4 2.5-5.8 4.1-5.8 7.3 0 2.1 1.6 3.5 3.3 3.5.9 0 1.6-.3 2.5-1.1.9.8 1.6 1.1 2.5 1.1 1.7 0 3.3-1.4 3.3-3.5 0-3.2-3.4-4.8-5.8-7.3zM9.7 15.4c-.8.4-1.4 1.1-1.4 2.1 0 1.4 1.2 2.6 3.7 2.6s3.7-1.2 3.7-2.6c0-1-.6-1.7-1.4-2.1-.7.5-1.5.8-2.3.8-.8 0-1.6-.3-2.3-.8z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--arcade {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.2 9.2h9.6c2.4 0 4.4 1.9 4.4 4.3v1.7c0 1.8-1.1 3.3-2.7 3.9l-.6 1.3H6.1l-.6-1.3A4.2 4.2 0 0 1 2.8 15.2v-1.7c0-2.4 2-4.3 4.4-4.3zm2.1 2.4v1.4H7.9v1.6H6.5v-1.6H5.1v-1.4h1.4V10.2h1.4v1.4h1.4zm7.4-.2c.7 0 1.2.5 1.2 1.2s-.5 1.2-1.2 1.2-1.2-.5-1.2-1.2.5-1.2 1.2-1.2zm-2.4 2.6c.7 0 1.2.5 1.2 1.2s-.5 1.2-1.2 1.2-1.2-.5-1.2-1.2.5-1.2 1.2-1.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.2 9.2h9.6c2.4 0 4.4 1.9 4.4 4.3v1.7c0 1.8-1.1 3.3-2.7 3.9l-.6 1.3H6.1l-.6-1.3A4.2 4.2 0 0 1 2.8 15.2v-1.7c0-2.4 2-4.3 4.4-4.3zm2.1 2.4v1.4H7.9v1.6H6.5v-1.6H5.1v-1.4h1.4V10.2h1.4v1.4h1.4zm7.4-.2c.7 0 1.2.5 1.2 1.2s-.5 1.2-1.2 1.2-1.2-.5-1.2-1.2.5-1.2 1.2-1.2zm-2.4 2.6c.7 0 1.2.5 1.2 1.2s-.5 1.2-1.2 1.2-1.2-.5-1.2-1.2.5-1.2 1.2-1.2z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--hot-games {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.2 2.4c.2 3.1 1.5 4.6 3.4 6.2 1.7 1.4 3 3.1 3 5.4 0 3.6-2.8 6.4-6.6 6.4S6.4 17.6 6.4 14c0-2.1.8-3.7 2.1-5.3.4 1.7 1.3 2.8 2.5 3.5-.3-2.4.3-4.7 2.2-7.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.2 2.4c.2 3.1 1.5 4.6 3.4 6.2 1.7 1.4 3 3.1 3 5.4 0 3.6-2.8 6.4-6.6 6.4S6.4 17.6 6.4 14c0-2.1.8-3.7 2.1-5.3.4 1.7 1.3 2.8 2.5 3.5-.3-2.4.3-4.7 2.2-7.8z'/%3E%3C/svg%3E");
}
.qsm-side-nav__icon--promo {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2.6 13.6 7h4.7l-3.8 2.9 1.5 4.5L12 11.8 7.9 14.4 9.4 9.9 5.6 7h4.7L12 2.6zM4.5 16.2h15v1.8h-15v-1.8zm1.5 3h12v1.7h-12V19.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2.6 13.6 7h4.7l-3.8 2.9 1.5 4.5L12 11.8 7.9 14.4 9.4 9.9 5.6 7h4.7L12 2.6zM4.5 16.2h15v1.8h-15v-1.8zm1.5 3h12v1.7h-12V19.2z'/%3E%3C/svg%3E");
}

.qsm-info-box {
  border-top: 1px solid var(--border);
  padding: 0 0 12px;
}
.qsm-info-box p {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.qsm-info-box .qsm-btn { margin: 0 12px; width: calc(100% - 24px); }

/* Right rail */
.qsm-sidebar--right { position: sticky; top: calc(var(--header-h) + var(--marquee-h) + 12px); }
.qsm-right-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.qsm-right-btn { letter-spacing: 0.04em; }
.qsm-right-status {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-mid);
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 4, 4, 0.55);
}
.qsm-right-promo {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 4, 4, 0.6);
}
.qsm-right-promo--soft { background: rgba(32, 12, 12, 0.55); }
.qsm-right-promo__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.qsm-right-promo__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.qsm-right-cs {
  margin-top: 4px;
  padding-top: 12px;
  padding-bottom: 12px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.qsm-vip__list--right { margin: 4px 0 0; padding: 0; list-style: none; }
.qsm-vip__list--right li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12.5px;
}
.qsm-vip__list--right li:last-child a { border-bottom: none; }
.qsm-vip__list--right li a:hover { color: var(--gold-light); }
.qsm-vip__list--right .qsm-vip__icon {
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bg-deep);
  background: linear-gradient(160deg, var(--gold-light), var(--gold-base));
  border-radius: 4px;
  padding: 3px 4px;
}

.qsm-pengaduan {
  display: none;
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-mid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}
.qsm-pengaduan:hover { color: var(--gold-light); border-color: var(--border-strong); }
@media (min-width: 1101px) {
  .qsm-pengaduan { display: inline-flex; align-items: center; }
}

.qsm-side-cta {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
}

.qsm-side-clock {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}
.qsm-side-clock__label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.qsm-clock {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--gold-mid);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.qsm-sidebar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-mid);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #131313 100%);
  border-bottom: 1px solid var(--border);
}

/* ── HERO BANNERS (fixed slot — no height jump) ── */
.qsm-hero {
  position: relative;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: #050505;
  width: 100%;
  aspect-ratio: 1600 / 560;
}

.qsm-hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.qsm-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.45s ease, opacity 0.35s ease, visibility 0.45s;
  z-index: 0;
  pointer-events: none;
}
.qsm-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
  pointer-events: auto;
}
.qsm-hero__slide.is-exit {
  opacity: 0;
  visibility: visible;
  transform: translateX(-100%);
  z-index: 1;
  pointer-events: none;
}

.qsm-banner {
  display: block;
  width: 100%;
  height: 100%;
  background: #050505;
  line-height: 0;
}
.qsm-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.qsm-gold-panel {
  padding: 0;
  min-height: 210px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* Layered gold gradient backgrounds */
.qsm-gold-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(255, 90, 90, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(212, 170, 62, 0.1) 0%, transparent 55%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 14px,
      rgba(0, 0, 0, 0.03) 14px,
      rgba(0, 0, 0, 0.03) 28px
    );
  pointer-events: none;
  z-index: 1;
}

.qsm-gold-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.qsm-gold-panel--1 {
  background:
    linear-gradient(135deg, #0e0c06 0%, #1e1608 25%, #3a2c14 55%, #2a2010 80%, #0e0c06 100%);
}
.qsm-gold-panel--2 {
  background:
    linear-gradient(155deg, #0a0906 0%, #1a140a 30%, #4a3820 60%, #1e1810 85%, #0a0906 100%);
}
.qsm-gold-panel--3 {
  background:
    linear-gradient(125deg, #080706 0%, #16120a 25%, #342818 55%, #221a0e 80%, #080706 100%);
}

/* Dark glass content overlay */
.qsm-gold-panel__content {
  position: relative;
  z-index: 2;
  margin: 20px 24px;
  padding: 22px 26px;
  max-width: 520px;
  background: rgba(8, 8, 8, 0.62);
  border: 1px solid rgba(212, 170, 62, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.qsm-gold-panel__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--gold-light), var(--gold-base));
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.qsm-gold-panel__title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-light);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
  line-height: 1.15;
}
.qsm-gold-panel__desc {
  color: rgba(242, 242, 242, 0.72);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.qsm-gold-panel .qsm-btn { width: fit-content; }

.qsm-hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.qsm-hero__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
.qsm-hero__dots button.is-active {
  background: var(--gold-mid);
  border-color: var(--gold-light);
  transform: scale(1.25);
}

/* ── SECTION TITLES ── */
.qsm-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-mid);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── GIF ROW (NAGA6D branded banners) ── */
.qsm-gif-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.qsm-gif-row--single {
  grid-template-columns: 1fr;
}

.qsm-gif-card {
  position: relative;
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080604;
  box-shadow: var(--shadow-panel);
  transition: border-color var(--ease), transform var(--ease);
}
.qsm-gif-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.qsm-gif-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 350 / 171;
  object-fit: cover;
  background: #080604;
}
.qsm-gif-card--strip img {
  aspect-ratio: 842 / 112;
  object-fit: cover;
  object-position: center center;
}

/* ── CTA STRIP (DAFTAR SEKARANG JUGA — animated like QQSTAR brand GIF) ── */
.qsm-cta-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 22px);
  width: 100%;
  aspect-ratio: 842 / 112;
  min-height: 64px;
  padding: 0 clamp(12px, 3vw, 28px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid rgba(180, 20, 20, 0.55);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(160, 0, 0, 0.28);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.qsm-cta-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 70, 70, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(220, 30, 30, 0.42);
}
.qsm-cta-strip__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(90, 8, 8, 0.35) 0%, transparent 62%),
    repeating-linear-gradient(
      135deg,
      #141010 0 2px,
      #0c0a0a 2px 4px,
      #171212 4px 6px,
      #0a0808 6px 8px
    ),
    linear-gradient(180deg, #1a1010 0%, #0a0707 100%);
}
.qsm-cta-strip__bg::before,
.qsm-cta-strip__bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff2a2a 18%, #ffd36a 50%, #ff2a2a 82%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 40, 40, 0.85), 0 0 22px rgba(255, 80, 40, 0.45);
  animation: qsm-cta-neon 1.8s ease-in-out infinite;
}
.qsm-cta-strip__bg::before { top: 0; }
.qsm-cta-strip__bg::after { bottom: 0; animation-delay: 0.35s; }

.qsm-cta-strip__bars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.qsm-cta-strip__bars::before,
.qsm-cta-strip__bars::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: clamp(10px, 1.6vw, 16px);
  background: linear-gradient(180deg, #ff6b4a 0%, #c40808 45%, #7a0000 100%);
  box-shadow: 0 0 14px rgba(255, 40, 40, 0.7);
  transform: skewX(-18deg);
  animation: qsm-cta-bar-pulse 2.2s ease-in-out infinite;
}
.qsm-cta-strip__bars::before { left: 10px; }
.qsm-cta-strip__bars::after { right: 10px; transform: skewX(18deg); animation-delay: 0.4s; }

.qsm-cta-strip__shine {
  position: absolute;
  inset: -20% -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 230, 150, 0.38) 50%,
    rgba(255, 255, 255, 0.1) 56%,
    transparent 64%
  );
  transform: translateX(-55%);
  animation: qsm-cta-shine 2.8s ease-in-out infinite;
}

.qsm-cta-strip__badge {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: clamp(44px, 7vw, 72px);
  height: clamp(44px, 7vw, 72px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 230, 150, 0.35), transparent 55%),
    linear-gradient(160deg, #3a1010 0%, #120808 100%);
  border: 2px solid rgba(232, 197, 71, 0.85);
  box-shadow:
    0 0 0 2px rgba(90, 0, 0, 0.65),
    0 0 18px rgba(200, 20, 20, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: qsm-cta-badge 2.6s ease-in-out infinite;
}
.qsm-cta-strip__badge img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.qsm-cta-strip__text {
  position: relative;
  z-index: 3;
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.6vw, 2.35rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff6c8 0%, #ffe27a 28%, #e8c547 58%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #3a0a0a) drop-shadow(0 0 10px rgba(255, 200, 60, 0.35));
  animation: qsm-cta-text-glow 2.4s ease-in-out infinite;
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.qsm-cta-strip__text.is-swapping {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  filter: drop-shadow(0 2px 0 #3a0a0a);
}

@keyframes qsm-cta-shine {
  0%, 18% { transform: translateX(-55%); opacity: 0; }
  28% { opacity: 1; }
  55% { transform: translateX(55%); opacity: 1; }
  70%, 100% { transform: translateX(55%); opacity: 0; }
}
@keyframes qsm-cta-neon {
  0%, 100% { opacity: 0.72; filter: brightness(0.95); }
  50% { opacity: 1; filter: brightness(1.25); }
}
@keyframes qsm-cta-bar-pulse {
  0%, 100% { filter: brightness(0.9); box-shadow: 0 0 10px rgba(255, 40, 40, 0.45); }
  50% { filter: brightness(1.25); box-shadow: 0 0 18px rgba(255, 70, 40, 0.85); }
}
@keyframes qsm-cta-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes qsm-cta-text-glow {
  0%, 100% { filter: drop-shadow(0 2px 0 #3a0a0a) drop-shadow(0 0 8px rgba(255, 200, 60, 0.28)); }
  50% { filter: drop-shadow(0 2px 0 #3a0a0a) drop-shadow(0 0 16px rgba(255, 220, 100, 0.55)); }
}

@media (max-width: 640px) {
  .qsm-cta-strip {
    gap: 10px;
    min-height: 58px;
  }
  .qsm-cta-strip__bars::before,
  .qsm-cta-strip__bars::after {
    width: 8px;
  }
  .qsm-cta-strip__bars::before { left: 6px; }
  .qsm-cta-strip__bars::after { right: 6px; }
  .qsm-cta-strip__text {
    font-size: clamp(0.95rem, 5.2vw, 1.35rem);
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qsm-cta-strip__shine,
  .qsm-cta-strip__bg::before,
  .qsm-cta-strip__bg::after,
  .qsm-cta-strip__bars::before,
  .qsm-cta-strip__bars::after,
  .qsm-cta-strip__badge,
  .qsm-cta-strip__text {
    animation: none !important;
  }
}

/* ── UNIFIED RAIL (pools + payment, one black bar) ── */
.qsm-rail {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 90, 90, 0.05), transparent 28%),
    rgba(10, 4, 4, 0.88);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px rgba(180, 20, 20, 0.28);
  padding: 4px 0 8px;
  overflow: hidden;
}

/* ── POOLS (inside rail) ── */
.qsm-pools { margin-bottom: 0; }

.qsm-pools__hero { display: none; }

.qsm-pools__viewport {
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 0;
  box-shadow: none;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.qsm-pools__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 10px;
  padding: 0 12px;
  animation: qsm-pools-scroll 26s linear infinite;
}
.qsm-pools__viewport:hover .qsm-pools__track {
  animation-play-state: paused;
}

@keyframes qsm-pools-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.qsm-pools__item {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: var(--gold-light);
  transition: transform 0.35s ease;
}
.qsm-pools__item:hover {
  transform: translateY(-3px);
}
.qsm-pools__frame {
  display: block;
  border: 1px solid rgba(212, 170, 62, 0.55);
  border-radius: 10px;
  overflow: hidden;
  background: #120806;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 90, 90, 0.18);
  position: relative;
  aspect-ratio: 1 / 1;
}
.qsm-pools__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 90, 90, 0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: qsm-pools-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.qsm-pools__item:nth-child(2n) .qsm-pools__frame::after { animation-delay: 0.6s; }
.qsm-pools__item:nth-child(3n) .qsm-pools__frame::after { animation-delay: 1.2s; }
.qsm-pools__item:nth-child(4n) .qsm-pools__frame::after { animation-delay: 1.8s; }

@keyframes qsm-pools-shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.qsm-pools__item:hover .qsm-pools__frame {
  border-color: var(--gold-light);
}
.qsm-pools__item img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #0a0804;
}
.qsm-pools__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── BANKS / PAYMENT (inside same rail) ── */
.qsm-banks { margin-bottom: 0; }

.qsm-banks__viewport {
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 2px 0 6px;
  box-shadow: none;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.qsm-banks__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 14px;
  padding: 0 10px;
  animation: qsm-banks-scroll 34s linear infinite;
}
.qsm-banks__viewport:hover .qsm-banks__track {
  animation-play-state: paused;
}

@keyframes qsm-banks-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.qsm-banks__card {
  flex: 0 0 150px;
  display: block;
  text-decoration: none;
  color: var(--gold-light);
  transition: transform 0.35s ease;
}
.qsm-banks__card:hover {
  transform: translateY(-3px) scale(1.02);
}

.qsm-banks__frame {
  position: relative;
  display: block;
  width: 150px;
  height: 120px;
  aspect-ratio: auto;
  background: transparent;
  overflow: visible;
}

.qsm-banks__badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  pointer-events: none;
}

.qsm-banks__label {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 36%;
  bottom: 30%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 2px;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.5vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #ffe9a0;
  text-shadow:
    0 0 6px rgba(220, 48, 48, 0.55),
    0 1px 0 #000,
    0 2px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.qsm-banks__name,
.qsm-banks__grid,
.qsm-banks__item {
  display: none;
}

/* ── GAME GRIDS ── */
.qsm-games { margin-bottom: 22px; margin-top: 4px; }

.qsm-games__head {
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.qsm-games__head img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050505;
}

.qsm-games__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qsm-games__card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050505;
  transition: border-color var(--ease), transform var(--ease);
}
.qsm-games__card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.qsm-games__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── LEFT HASIL / VIP ── */
.qsm-sidebar--left .qsm-hasil {
  border-top: 1px solid var(--border);
  padding: 10px 10px 12px;
}
.qsm-sidebar--left .qsm-vip { border-top: 1px solid var(--border); }

/* ── LEGACY CATEGORY GRID ── */
.qsm-cat-grid { margin-bottom: 22px; }

.qsm-cat-grid__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qsm-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 14px 8px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow-panel);
  transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.qsm-cat-card:hover {
  border-color: rgba(212, 170, 62, 0.45);
  background: var(--bg-hover);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.qsm-cat-card img { opacity: 0.88; transition: opacity var(--ease); }
.qsm-cat-card:hover img { opacity: 1; }
.qsm-cat-card__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.qsm-cat-card__desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── ARTICLE SEO BLOCK ── */
.qsm-article {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-panel);
}
.qsm-article__head h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 14px;
  line-height: 1.2;
}
.qsm-article__lead {
  font-size: 15.5px;
  color: var(--text-muted);
  border-left: 3px solid var(--gold-base);
  padding-left: 16px;
  margin-bottom: 22px;
  line-height: 1.6;
}
.qsm-article__body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-mid);
  margin-top: 1.8em;
  padding-top: 0.5em;
  border-top: 1px solid var(--border-subtle);
  letter-spacing: 0.03em;
}
.qsm-article__body h2:first-child { border-top: none; margin-top: 0; }
.qsm-article__body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #ffb0b0;
  margin: 1.15rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.qsm-article__body a { text-decoration: underline; text-underline-offset: 2px; }
.qsm-article__body ol { padding-left: 1.2em; }
.qsm-article__body li { margin-bottom: 0.45em; }

.qsm-breadcrumb {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(20, 6, 6, 0.55);
  border: 1px solid var(--border-subtle);
}
.qsm-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--text-dim);
}
.qsm-breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: rgba(255, 120, 120, 0.45);
}
.qsm-breadcrumb__list a {
  color: var(--gold-mid);
  text-decoration: none;
}
.qsm-breadcrumb__list a:hover { color: var(--gold-light); }
.qsm-breadcrumb__list [aria-current="page"] { color: var(--text-muted); }

.qsm-article__cta {
  margin: 1.8em 0;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(212, 170, 62, 0.06), rgba(180, 20, 20, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.qsm-article__cta p { margin-bottom: 12px; color: var(--text-muted); }

/* FAQ */
.qsm-faq { margin-top: 12px; }
.qsm-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color var(--ease);
}
.qsm-faq__item:hover { border-color: rgba(212, 170, 62, 0.3); }
.qsm-faq__item summary {
  padding: 11px 15px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--ease), background var(--ease);
}
.qsm-faq__item summary:hover { background: var(--bg-hover); }
.qsm-faq__item summary::-webkit-details-marker { display: none; }
.qsm-faq__item summary::after {
  content: '+';
  color: var(--gold-mid);
  font-size: 17px;
  font-weight: 400;
  transition: transform var(--ease);
}
.qsm-faq__item[open] summary::after { content: '−'; }
.qsm-faq__item[open] summary {
  color: var(--gold-light);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(212, 170, 62, 0.04);
}
.qsm-faq__answer { padding: 12px 15px; }
.qsm-faq__answer p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── HASIL TERAKHIR (Mawartoto-style) ── */
.qsm-hasil { margin-bottom: 0; }

.qsm-hasil__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 0 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ff2a2a;
  text-shadow: 0 0 8px rgba(255, 40, 40, 0.35);
}
.qsm-hasil__title svg {
  flex-shrink: 0;
  color: #ff2a2a;
  filter: drop-shadow(0 0 4px rgba(255, 40, 40, 0.45));
}

.qsm-hasil__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 420px;
  overflow-y: auto;
}
.qsm-hasil__list::-webkit-scrollbar { width: 4px; }
.qsm-hasil__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.qsm-hasil__list::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 4px;
}

.qsm-hasil--mawar .qsm-hasil__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  margin: 0;
  background: rgba(8, 2, 2, 0.72);
  border: 1px solid rgba(255, 45, 45, 0.75);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 80, 80, 0.12);
  transition: border-color var(--ease), background var(--ease);
}
.qsm-hasil--mawar .qsm-hasil__item:hover {
  background: rgba(40, 8, 8, 0.85);
  border-color: #ff4d4d;
}
.qsm-hasil--mawar .qsm-hasil__name {
  min-width: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qsm-hasil--mawar .qsm-hasil__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff1f1f;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(255, 30, 30, 0.35);
}

/* VIP links */
.qsm-vip__list {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
}
.qsm-vip__list li {
  border-bottom: 1px solid var(--border-subtle);
}
.qsm-vip__list li:last-child { border-bottom: none; }
.qsm-vip__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 12.5px;
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
}
.qsm-vip__list a:hover {
  background: rgba(212, 170, 62, 0.06);
  color: var(--gold-light);
  padding-left: 16px;
}
.qsm-vip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  background: rgba(212, 170, 62, 0.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease);
}
.qsm-vip__list a:hover .qsm-vip__icon {
  background: rgba(212, 170, 62, 0.15);
  border-color: rgba(212, 170, 62, 0.35);
}

/* ── FLOAT RAILS (style naga6dz.org, warna template merah-emas) ── */
.float-rail {
  position: fixed;
  left: 0;
  top: 38%;
  z-index: 9100;
  display: flex;
  align-items: stretch;
  transform: translateY(-50%);
}
.float-rail__panel {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.55rem 0.42rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 60, 60, 0.45);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.float-rail__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  text-decoration: none !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.float-rail__btn svg { display: block; width: 22px; height: 22px; }
.float-rail__btn--tg { background: #2aabee; }
.float-rail__btn--wa { background: #25d366; }
.float-rail__btn--lc {
  background: linear-gradient(160deg, #ff8f8f 0%, #9c1a2b 42%, #38090f 78%, #9a0000 100%);
  color: #fff !important;
  box-shadow: 0 0 10px rgba(255, 60, 40, 0.35);
}
.float-rail__btn:hover { filter: brightness(1.1); transform: scale(1.06); }

.float-rail__toggle {
  width: 28px;
  flex: 0 0 28px;
  min-height: 168px;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #ff8f8f 0%, #9c1a2b 38%, #38090f 72%, #9a0000 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 2px 0 12px rgba(180, 0, 0, 0.35);
  transition: filter 0.2s ease;
}
.float-rail__toggle:hover { filter: brightness(1.08); color: #fff; }
.float-rail__toggle span { display: inline-block; line-height: 1; }

.float-rail.is-collapsed .float-rail__panel {
  transform: translateX(calc(-100% - 2px));
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
}
.float-rail.is-collapsed .float-rail__toggle {
  width: 28px;
  flex: 0 0 28px;
  min-height: 168px;
}
.float-rail.is-collapsed .float-rail__toggle span {
  display: inline-block;
  transform: rotate(180deg);
}

.float-rail--right { left: auto; right: 0; }
.float-rail--right .float-rail__panel {
  border-left: 1px solid rgba(255, 60, 60, 0.45);
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.float-rail--right .float-rail__toggle {
  border-radius: 10px 0 0 10px;
  min-height: 176px;
  box-shadow: -2px 0 12px rgba(180, 0, 0, 0.35);
}
.float-rail--right.is-collapsed .float-rail__panel {
  transform: translateX(calc(100% + 2px));
  left: auto;
  right: 0;
}
.float-rail--right.is-collapsed .float-rail__toggle {
  min-height: 176px;
  width: 28px;
}
.float-rail--right.is-collapsed .float-rail__toggle span { transform: rotate(180deg); }

.float-rail__panel--apk { padding: 0.5rem 0.45rem; gap: 0; }
.float-rail__apk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  color: #ff8f8f !important;
  width: 108px;
  transition: filter 0.2s ease;
}
.float-rail__apk:hover { filter: brightness(1.1); color: #ffb0b0 !important; }
.float-rail__apk-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  color: #ff5a5a;
  text-transform: uppercase;
}
.float-rail__apk-qr {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border: 2px solid #9c1a2b;
  border-radius: 6px;
  padding: 3px;
  box-sizing: border-box;
}
.float-rail__apk-hint {
  font-size: 0.58rem;
  color: #cfcfcf;
  text-align: center;
  line-height: 1.2;
}

/* ── FOOTER ── */
.qsm-footer {
  background: rgba(14, 10, 6, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
  padding: 24px 0 14px;
  margin-top: 24px;
}
.qsm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 28px;
  margin-bottom: 18px;
}
.qsm-footer__brand img { opacity: 0.85; }
.qsm-footer__brand p {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 10px;
  max-width: 360px;
  line-height: 1.55;
}
.qsm-footer__trust {
  margin-top: 8px !important;
  font-size: 11.5px !important;
  opacity: 0.85;
}
.qsm-footer__links h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.qsm-footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.qsm-footer__links li { margin-bottom: 5px; }
.qsm-footer__links a {
  font-size: 12.5px;
  color: var(--text-dim);
  transition: color var(--ease);
}
.qsm-footer__links a:hover { color: var(--gold-mid); }

.qsm-footer__bottom {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
}
.qsm-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.qsm-footer__bottom p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.qsm-footer__bottom strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* ── MOBILE DOCK ── */
.qsm-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9200;
  min-height: var(--dock-h);
  background:
    linear-gradient(180deg, rgba(48, 10, 10, 0.98) 0%, rgba(14, 4, 4, 0.98) 100%);
  border-top: 1px solid rgba(255, 70, 70, 0.55);
  box-shadow:
    0 -8px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 120, 120, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding: 0.2rem 0.15rem calc(0.2rem + env(safe-area-inset-bottom, 0px));
}

.qsm-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0c8c8 !important;
  text-decoration: none !important;
  padding: 0.2rem 0.1rem;
  border-radius: 10px;
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.qsm-dock__label {
  line-height: 1;
  white-space: nowrap;
}
.qsm-dock__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffb0b0;
}
.qsm-dock__icon svg {
  display: block;
  filter: drop-shadow(0 0 4px rgba(255, 60, 60, 0.25));
}
.qsm-dock__item:hover,
.qsm-dock__item:focus-visible {
  color: #fff !important;
  filter: brightness(1.12);
}
.qsm-dock__item:hover .qsm-dock__icon,
.qsm-dock__item:focus-visible .qsm-dock__icon {
  color: #ffd0d0;
}

/* Center CTA — elevated red pill */
.qsm-dock__item--cta {
  position: relative;
  color: #fff !important;
  margin-top: -14px;
}
.qsm-dock__item--cta .qsm-dock__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, #ff8f8f 0%, #9c1a2b 40%, #38090f 75%, #9a0000 100%);
  box-shadow:
    0 0 0 3px rgba(20, 4, 4, 0.95),
    0 0 0 5px rgba(255, 70, 70, 0.45),
    0 6px 18px rgba(180, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: qsm-dock-cta-glow 2.2s ease-in-out infinite;
}
.qsm-dock__item--cta .qsm-dock__label {
  margin-top: 1px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffb8b8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.qsm-dock__item--cta:hover .qsm-dock__icon,
.qsm-dock__item--cta:focus-visible .qsm-dock__icon {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Idle icon animations */
.qsm-dock__icon--home {
  animation: qsm-dock-bob 2.8s ease-in-out infinite;
}
.qsm-dock__icon--login .dock-path-head {
  transform-origin: 12px 8px;
  animation: qsm-dock-nod 3s ease-in-out infinite;
}
.qsm-dock__icon--daftar .dock-path-plus {
  transform-origin: 17px 11px;
  animation: qsm-dock-plus 1.6s ease-in-out infinite;
}
.qsm-dock__icon--cs {
  animation: qsm-dock-ring 2.6s ease-in-out infinite;
}
.qsm-dock__icon--apk .dock-path-arrow {
  animation: qsm-dock-download 1.8s ease-in-out infinite;
}

@keyframes qsm-dock-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes qsm-dock-nod {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes qsm-dock-plus {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.85; }
}
@keyframes qsm-dock-ring {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(0deg); }
}
@keyframes qsm-dock-download {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(2px); opacity: 0.75; }
}
@keyframes qsm-dock-cta-glow {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(20, 4, 4, 0.95),
      0 0 0 5px rgba(255, 70, 70, 0.4),
      0 6px 18px rgba(180, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(20, 4, 4, 0.95),
      0 0 0 7px rgba(255, 90, 90, 0.55),
      0 8px 22px rgba(255, 40, 40, 0.65),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qsm-dock__icon--home,
  .qsm-dock__icon--login .dock-path-head,
  .qsm-dock__icon--daftar .dock-path-plus,
  .qsm-dock__icon--cs,
  .qsm-dock__icon--apk .dock-path-arrow,
  .qsm-dock__item--cta .qsm-dock__icon {
    animation: none !important;
  }
}

/* ── INNER PAGES ── */
.qsm-page { padding: 24px 0 40px; }
.qsm-page__content {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 800px;
  box-shadow: var(--shadow-panel);
}
.qsm-post-card {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.qsm-post-card__title { font-size: 1.2rem; }
.qsm-post-card__title a { color: var(--gold-light); }
.qsm-post-card__meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.qsm-404__inner { text-align: center; max-width: 480px; margin: 0 auto; }
.qsm-404 h1 { font-size: 4rem; color: var(--gold-base); }
.qsm-404__actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  :root { --sidebar-w: 190px; }
  .float-rail__apk-qr { width: 96px; height: 96px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 170px; }
  .qsm-pengaduan { display: none !important; }
  .qsm-login__input { width: min(100px, 22vw); }
  .qsm-logo img { height: 34px; }
  .qsm-pools__item { flex-basis: 140px; }
  .qsm-banks__grid { grid-template-columns: repeat(4, 1fr); }
  .qsm-games__grid { grid-template-columns: repeat(3, 1fr); }
  .qsm-gif-row { gap: 8px; }
}

/* Tablet + mobile: single column, drawer nav */
@media (max-width: 980px) {
  :root {
    --header-h: 56px;
    --marquee-h: 30px;
  }

  .qsm-portal__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .qsm-sidebar--left {
    position: fixed;
    top: calc(var(--header-h) + var(--marquee-h));
    left: 0;
    bottom: var(--dock-h);
    width: min(300px, 86vw);
    max-width: 100%;
    z-index: 260;
    transform: translateX(-105%);
    transition: transform 0.25s ease, background 0.2s ease, filter 0.2s ease;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .qsm-sidebar--left.is-open {
    transform: translateX(0);
    /* Opaque solid — tidak tembus overlay gelap */
    background: #2c1212 !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: brightness(1.45) saturate(1.12) contrast(1.05);
    border-color: rgba(255, 120, 90, 0.7);
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.75);
    z-index: 280;
  }
  body.qsm-nav-open .qsm-sidebar--left.is-open .qsm-side-nav--pills .qsm-side-nav__link {
    background: rgba(48, 18, 18, 0.98);
    color: #ffe7c4;
    border-color: rgba(255, 140, 90, 0.55);
  }
  body.qsm-nav-open .qsm-sidebar--left.is-open .qsm-side-label,
  body.qsm-nav-open .qsm-sidebar--left.is-open .qsm-sidebar-title {
    color: #ffd28a;
  }

  /*
   * Overlay gelap di belakang menu.
   * .qsm-frame punya z-index:1 → trapping stacking context.
   * Lepas trap saat nav open supaya sidebar/header bisa di ATAS overlay.
   */
  body.qsm-nav-open .qsm-frame {
    z-index: auto;
  }
  body.qsm-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.68);
    pointer-events: auto;
  }
  /* Header + hamburger tetap di atas overlay supaya bisa ditutup */
  body.qsm-nav-open .qsm-header {
    z-index: 290;
    filter: none;
  }

  .qsm-nav-toggle { display: flex; margin-left: auto; }
  .qsm-login { display: none; }
  .qsm-dock { display: grid; }
  body.qsm-portal {
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .qsm-header__inner { gap: 10px; }
  .qsm-logo img { height: 32px; }

  .qsm-main { padding: 12px 0 28px; }
  .qsm-footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .float-rail {
    display: flex !important;
    top: auto;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    transform: none;
    z-index: 9100;
    max-height: calc(100vh - 90px);
    pointer-events: none;
  }
  .float-rail__panel,
  .float-rail__toggle { pointer-events: auto; }
  .float-rail__panel { padding: 0.45rem 0.36rem; gap: 0.36rem; }
  .float-rail__btn { width: 40px; height: 40px; }
  .float-rail__btn svg { width: 20px; height: 20px; }
  .float-rail__toggle,
  .float-rail.is-collapsed .float-rail__toggle {
    width: 26px;
    flex: 0 0 26px;
    min-height: 148px;
    font-size: 16px;
  }
  .float-rail--right .float-rail__toggle,
  .float-rail--right.is-collapsed .float-rail__toggle {
    min-height: 158px;
  }
  .float-rail__apk { width: 96px; gap: 0.3rem; }
  .float-rail__apk-label { font-size: 0.6rem; }
  .float-rail__apk-qr { width: 84px; height: 84px; }
  .float-rail__apk-hint { font-size: 0.55rem; }

  .qsm-gif-row { grid-template-columns: 1fr; }
  .qsm-pools__item { flex-basis: 120px; }
  .qsm-banks__grid { grid-template-columns: repeat(3, 1fr); }
  .qsm-games__grid { grid-template-columns: repeat(2, 1fr); }
  .qsm-games__head img { width: 100%; height: auto; }
  .qsm-article { padding: 16px 14px; }
  .qsm-article__head h1 { font-size: 1.25rem; }
  .qsm-gold-panel__content { margin: 16px; padding: 18px 20px; }

  body.qsm-portal::before {
    background-attachment: scroll;
    background-position: center top;
  }
}

@media (max-width: 640px) {
  .qsm-shell { padding: 0 10px; }
  .qsm-btn { padding: 7px 12px; font-size: 11px; }
  .qsm-marquee__label span { display: none; }
  .qsm-marquee__label { padding: 0 8px; }
  .qsm-banks__grid { grid-template-columns: repeat(2, 1fr); }
  .qsm-games__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qsm-article__head h1 { font-size: 1.15rem; }
  .qsm-section-title { font-size: 0.85rem; }
  .qsm-pools__track { animation-duration: 22s; }
}

@media (max-width: 480px) {
  .qsm-gold-panel { min-height: 190px; }
  .qsm-gold-panel__content { margin: 12px; padding: 16px; }
  .qsm-gold-panel__title { font-size: 1.15rem; }
  .qsm-logo img { height: 28px; }
  .qsm-dock__label { font-size: 0.52rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qsm-marquee__content { animation: none; }
  .qsm-hero__slide,
  .qsm-hero__slide.is-active,
  .qsm-hero__slide.is-exit {
    transition: none;
    transform: none;
  }
  .qsm-hero__slide { opacity: 0; visibility: hidden; position: absolute; }
  .qsm-hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }
  .qsm-pools__track { animation: none; }
  .qsm-banks__track,
  .qsm-banks__card,
  .qsm-banks__frame::after { animation: none; }
  html { scroll-behavior: auto; }
  .qsm-btn:hover,
  .qsm-cat-card:hover,
  .qsm-gif-card:hover,
  .qsm-games__card:hover { transform: none; }
}


/* ── Side action buttons ── */
.qsm-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 10px 10px;
}
.qsm-side-actions .qsm-btn {
  font-size: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 14px rgba(255, 40, 40, 0.35);
}
.qsm-side-cta {
  padding: 0 10px 12px;
}
.qsm-side-cta .qsm-btn--lg {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 0 18px rgba(255, 50, 50, 0.45);
}

/* Shiny red buttons / frames polish */
.qsm-btn--gold {
  background: linear-gradient(160deg, #ff9a9a 0%, #9c1a2b 35%, #38090f 70%, #9a0000 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  border: 1px solid rgba(255, 180, 180, 0.55);
  box-shadow: 0 0 16px rgba(255, 40, 40, 0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}
.qsm-btn--gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 22px rgba(255, 60, 60, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.qsm-btn--outline {
  border-color: var(--border-strong);
  color: var(--gold-light);
  box-shadow: 0 0 10px rgba(255, 40, 40, 0.2);
}
.qsm-side-nav--pills .qsm-side-nav__link {
  box-shadow: 0 0 10px rgba(255, 40, 40, 0.18);
}
.qsm-side-nav--pills .qsm-side-nav__link.is-active,
.qsm-side-nav--pills .qsm-side-nav__link:hover {
  box-shadow: 0 0 14px rgba(255, 50, 50, 0.35);
}
.qsm-pools__frame,
.qsm-banks__frame {
  border-color: var(--border-strong) !important;
  box-shadow: 0 0 12px rgba(255, 40, 40, 0.28), inset 0 0 0 1px rgba(255, 120, 120, 0.25);
}

/* Auth pills — Login / Daftar (mobile only, under banner) */
.qsm-auth-pills {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 8px;
  padding: 0 2px;
}
@media (max-width: 980px) {
  .qsm-auth-pills {
    display: flex !important;
  }
}
.qsm-auth-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  background:
    linear-gradient(180deg, #ff6a6a 0%, #38090f 38%, #9a0000 72%, #5a0000 100%);
  border: 1px solid rgba(255, 180, 120, 0.45);
  box-shadow:
    0 6px 18px rgba(140, 0, 0, 0.55),
    0 0 22px rgba(255, 60, 20, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -3px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.qsm-auth-pill--daftar {
  background:
    linear-gradient(180deg, #ff8f5a 0%, #9c1a2b 34%, #38090f 68%, #7a0000 100%);
  animation: qsm-auth-pill-pulse 2.4s ease-in-out infinite;
}
.qsm-auth-pill__fire {
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 55% at 20% 110%, rgba(255, 200, 40, 0.75) 0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 50% 120%, rgba(255, 80, 0, 0.85) 0%, transparent 58%),
    radial-gradient(ellipse 40% 55% at 80% 110%, rgba(255, 40, 0, 0.7) 0%, transparent 55%),
    linear-gradient(0deg, rgba(255, 120, 0, 0.35), transparent 45%);
  animation: qsm-auth-fire 1.6s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.qsm-auth-pill__shine {
  position: absolute;
  left: -40%;
  top: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: qsm-auth-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.qsm-auth-pill__embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.qsm-auth-pill__embers i {
  position: absolute;
  bottom: 8%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd76a;
  box-shadow: 0 0 6px 2px rgba(255, 140, 0, 0.9);
  opacity: 0;
  animation: qsm-auth-ember 2.4s ease-in infinite;
}
.qsm-auth-pill__embers i:nth-child(1) { left: 12%; animation-delay: 0s; }
.qsm-auth-pill__embers i:nth-child(2) { left: 28%; animation-delay: 0.35s; width: 3px; height: 3px; }
.qsm-auth-pill__embers i:nth-child(3) { left: 44%; animation-delay: 0.7s; }
.qsm-auth-pill__embers i:nth-child(4) { left: 58%; animation-delay: 0.2s; width: 5px; height: 5px; }
.qsm-auth-pill__embers i:nth-child(5) { left: 72%; animation-delay: 1s; width: 3px; height: 3px; }
.qsm-auth-pill__embers i:nth-child(6) { left: 86%; animation-delay: 0.55s; }
.qsm-auth-pill__icon,
.qsm-auth-pill__text {
  position: relative;
  z-index: 2;
}
.qsm-auth-pill__icon {
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 200, 80, 0.7));
  animation: qsm-auth-icon-bob 2s ease-in-out infinite;
}
.qsm-auth-pill__icon svg { display: block; }
.qsm-auth-pill__text {
  text-shadow:
    0 1px 0 rgba(80, 0, 0, 0.65),
    0 0 12px rgba(255, 160, 40, 0.55);
}
.qsm-auth-pill:hover,
.qsm-auth-pill:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  box-shadow:
    0 8px 24px rgba(160, 0, 0, 0.6),
    0 0 32px rgba(255, 80, 20, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
.qsm-auth-pill:active {
  transform: translateY(0) scale(0.99);
}

@keyframes qsm-auth-fire {
  0% { transform: translateY(8%) scaleX(1); opacity: 0.7; }
  100% { transform: translateY(-4%) scaleX(1.08); opacity: 1; }
}
@keyframes qsm-auth-shine {
  0%, 28% { left: -45%; opacity: 0; }
  40% { opacity: 1; }
  58%, 100% { left: 110%; opacity: 0; }
}
@keyframes qsm-auth-ember {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-38px) scale(0.3); opacity: 0; }
}
@keyframes qsm-auth-pill-pulse {
  0%, 100% {
    box-shadow:
      0 6px 18px rgba(140, 0, 0, 0.55),
      0 0 22px rgba(255, 60, 20, 0.35),
      inset 0 2px 0 rgba(255, 255, 255, 0.38),
      inset 0 -3px 8px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 8px 22px rgba(180, 0, 0, 0.65),
      0 0 34px rgba(255, 100, 20, 0.55),
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -3px 8px rgba(0, 0, 0, 0.3);
  }
}
@keyframes qsm-auth-icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (max-width: 480px) {
  .qsm-auth-pill {
    min-height: 44px;
    font-size: 1.05rem;
    padding: 11px 18px;
  }
  .qsm-auth-pill__icon svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .qsm-auth-pill__fire,
  .qsm-auth-pill__shine,
  .qsm-auth-pill__embers i,
  .qsm-auth-pill--daftar,
  .qsm-auth-pill__icon {
    animation: none !important;
  }
}

/* Compact live bola card (under banners) */
.qsm-livebola {
  margin: 8px 0 12px;
}
.qsm-livebola__card {
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 8, 8, 0.95), rgba(12, 4, 4, 0.98));
  box-shadow: 0 0 14px rgba(255, 40, 40, 0.28), inset 0 1px 0 rgba(255, 140, 140, 0.18);
}
.qsm-livebola__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px 4px;
}
.qsm-livebola__league {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qsm-livebola__cup {
  flex-shrink: 0;
  font-size: 13px;
  filter: drop-shadow(0 0 4px rgba(255, 60, 60, 0.55));
}
.qsm-livebola__when {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  white-space: nowrap;
}
.qsm-livebola__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 6px;
}
.qsm-livebola__team {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.qsm-livebola__team--home {
  justify-content: flex-end;
  flex-direction: row;
}
.qsm-livebola__team--away {
  justify-content: flex-start;
  flex-direction: row;
}
.qsm-livebola__flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.45), 0 1px 4px rgba(0,0,0,0.45);
  flex-shrink: 0;
}
.qsm-livebola__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qsm-livebola__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.qsm-livebola__vs-icon {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 50, 50, 0.65));
}
.qsm-livebola__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px 8px 12px;
  border-top: 1px solid var(--border-subtle);
}
.qsm-livebola__promo {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #7ad7ff;
  min-width: 0;
}
.qsm-livebola__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(160deg, #ff9a9a 0%, #9c1a2b 40%, #38090f 100%);
  border: 1px solid rgba(255, 180, 180, 0.55);
  box-shadow: 0 0 12px rgba(255, 40, 40, 0.4), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: filter var(--ease), box-shadow var(--ease);
}
.qsm-livebola__cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(255, 60, 60, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}

@media (max-width: 560px) {
  .qsm-livebola__name { font-size: 12px; }
  .qsm-livebola__promo { font-size: 10px; }
  .qsm-livebola__flag { width: 22px; height: 16px; }
  .qsm-livebola__vs { width: 28px; height: 28px; }
  .qsm-livebola__vs-icon { font-size: 18px; }
}

/* Red neon separator — full grid width */
.qsm-pay-sep {
  grid-column: 1 / -1;
  height: 3px;
  margin: 12px 0 24px;
  border: 0;
  border-radius: 2px;
  background: #ff1744;
  box-shadow:
    0 0 4px #ff1744,
    0 0 10px #ff1744,
    0 0 22px rgba(255, 23, 68, 0.9),
    0 0 40px rgba(255, 23, 68, 0.55),
    inset 0 0 6px rgba(255, 220, 220, 0.95);
  animation: qsm-neon-pulse 2.2s ease-in-out infinite;
}
@keyframes qsm-neon-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow:
      0 0 4px #ff1744,
      0 0 10px #ff1744,
      0 0 22px rgba(255, 23, 68, 0.9),
      0 0 40px rgba(255, 23, 68, 0.55),
      inset 0 0 6px rgba(255, 220, 220, 0.95);
  }
  50% {
    opacity: 0.88;
    box-shadow:
      0 0 8px #ff4569,
      0 0 18px #ff1744,
      0 0 36px rgba(255, 23, 68, 1),
      0 0 56px rgba(255, 23, 68, 0.7),
      inset 0 0 10px rgba(255, 240, 240, 1);
  }
}

/* Article full width — same as Hasil Terakhir column span */
.qsm-portal__grid > .qsm-article {
  grid-column: 1 / -1;
  min-width: 0;
}

/* Provider boards — slot + live casino (below neon separator) */
.qsm-prov {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px;
  min-width: 0;
}

.qsm-prov__block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050505;
}

.qsm-prov__head img {
  display: block;
  width: 100%;
  max-width: 398px;
  height: auto;
  object-fit: contain;
  background: #050505;
  border-bottom: 1px solid var(--border);
}

.qsm-prov__grid {
  display: grid;
  gap: 7px;
  padding: 7px;
}

/* Match Mawartoto: 4 columns desktop for slot + live */
.qsm-prov__grid--slot,
.qsm-prov__grid--live {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qsm-prov__card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 40, 40, 0.25);
  background: #0a0a0a;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.qsm-prov__card img {
  display: block;
  width: 100%;
  height: auto;
  /* Mawartoto tiles ~1090×530 */
  aspect-ratio: 1090 / 530;
  object-fit: cover;
}

.qsm-prov__card:hover {
  transform: perspective(900px) translateY(-3%) rotateX(12deg);
  border-color: rgba(255, 60, 60, 0.65);
  box-shadow: 0 18px 28px -10px rgba(0, 0, 0, 0.85);
}

@media (max-width: 900px) {
  .qsm-prov__grid--slot,
  .qsm-prov__grid--live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .qsm-prov { gap: 14px; margin-bottom: 18px; }
  .qsm-prov__grid { gap: 6px; padding: 6px; }
  .qsm-prov__grid--slot,
  .qsm-prov__grid--live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qsm-prov__card:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .qsm-prov__card:hover { transform: none; }
}

.qsm-livebola__league-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.45), 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Rainbow glowing border button */
.qsm-side-spotlight {
  padding: 4px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qsm-btn-beranda {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe8c8;
  background: linear-gradient(165deg, rgba(60, 18, 22, 0.95), rgba(18, 6, 10, 0.98));
  border: 1px solid rgba(255, 180, 90, 0.35);
  transition: filter 0.2s ease, border-color 0.2s ease;
}
.qsm-btn-beranda:hover {
  filter: brightness(1.12);
  border-color: rgba(255, 210, 120, 0.55);
  color: #fff4dc;
}
.qsm-btn-rainbow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  background: #0a0404;
  box-shadow: 0 0 18px rgba(255, 40, 40, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.qsm-btn-rainbow:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
}
.qsm-btn-rainbow__glow {
  position: absolute;
  inset: -60%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    #ff004c,
    #ffea00,
    #00ff88,
    #00c3ff,
    #b000ff,
    #ff004c
  );
  animation: qsm-rainbow-spin 2.2s linear infinite;
  filter: blur(0.2px);
}
.qsm-btn-rainbow::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 8px;
  background:
    linear-gradient(165deg, rgba(80, 10, 20, 0.95), rgba(12, 4, 8, 0.98) 55%, rgba(40, 6, 12, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.qsm-btn-rainbow__text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 80, 160, 0.65),
    0 0 18px rgba(0, 200, 255, 0.35),
    0 1px 0 #000;
  animation: qsm-rainbow-text 2.8s ease-in-out infinite;
}
@keyframes qsm-rainbow-spin {
  to { transform: rotate(360deg); }
}
@keyframes qsm-rainbow-text {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .qsm-pay-sep { animation: none; }
  .qsm-btn-rainbow__glow,
  .qsm-btn-rainbow__text { animation: none; }
  .qsm-fireleaves { display: none !important; }
}

/* ── Daun berapi melayang di tampilan ── */
.qsm-fireleaves {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  overflow: hidden;
}
.qsm-fireleaf {
  position: absolute;
  top: -12%;
  left: 0;
  width: 34px;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  filter:
    brightness(1.45) saturate(1.35) contrast(1.08)
    drop-shadow(0 0 8px rgba(255, 200, 60, 0.95))
    drop-shadow(0 0 16px rgba(255, 90, 0, 0.75))
    drop-shadow(0 0 28px rgba(255, 30, 0, 0.45));
  animation-name: qsm-fireleaf-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.qsm-fireleaf img,
.qsm-fireleaf svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}
@keyframes qsm-fireleaf-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.85);
  }
  6% { opacity: 1; }
  50% {
    opacity: 1;
    transform: translate3d(var(--drift, 24px), 55vh, 0) rotate(160deg) scale(1.08);
  }
  100% {
    opacity: 0.35;
    transform: translate3d(calc(var(--drift, 24px) * -0.6), 110vh, 0) rotate(340deg) scale(0.95);
  }
}
@media (max-width: 980px) {
  .qsm-fireleaf { width: 26px; }
}

/* ── Image click notice ── */
.qsm-img-notice[hidden] { display: none !important; }
.qsm-img-notice {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.qsm-img-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.qsm-img-notice__box {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 22px 20px 18px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(165deg, rgba(48, 10, 16, 0.98), rgba(12, 4, 8, 0.99));
  border: 1px solid rgba(255, 140, 90, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 80, 80, 0.12);
}
.qsm-img-notice__msg {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff2e6;
  text-shadow: 0 1px 0 #000;
}
.qsm-img-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.qsm-img-notice__actions .qsm-btn {
  min-width: 120px;
}

/* ── Welcome APK popup (3D cutout + motion) ── */
.qsm-welcome[hidden] { display: none !important; }
.qsm-welcome {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.qsm-welcome__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(120, 0, 0, 0.45) 0%, transparent 70%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.qsm-welcome__box {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 0.35rem 0.25rem 0.35rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  animation: qsm-welcome-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.qsm-welcome__close {
  position: absolute;
  top: 6px;
  right: 10px;
  left: auto;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: none;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.qsm-welcome__close:hover {
  background: transparent;
  transform: none;
  filter: none;
}
.qsm-welcome__link {
  position: relative;
  display: block;
  border-radius: 0;
  overflow: visible;
  text-decoration: none !important;
  animation: qsm-welcome-float 3.6s ease-in-out infinite;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 22px rgba(255, 50, 20, 0.45))
    drop-shadow(0 0 40px rgba(255, 140, 40, 0.22));
}
.qsm-welcome__link::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4%;
  height: 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 60, 20, 0.45) 0%, transparent 70%);
  filter: blur(12px);
  animation: qsm-welcome-glow 2.4s ease-in-out infinite;
  pointer-events: none;
}
.qsm-welcome__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
  animation: qsm-welcome-sway 5.2s ease-in-out infinite;
  transform-origin: 50% 60%;
}
.qsm-welcome__cta {
  display: none !important;
}
@keyframes qsm-welcome-in {
  from { opacity: 0; transform: scale(0.86) translateY(28px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes qsm-welcome-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes qsm-welcome-sway {
  0%, 100% { transform: rotate(-1.2deg) scale(1); }
  50% { transform: rotate(1.2deg) scale(1.015); }
}
@keyframes qsm-welcome-glow {
  0%, 100% { opacity: 0.55; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.12); }
}
@media (max-width: 480px) {
  .qsm-welcome { padding: 0.45rem; }
  .qsm-welcome__box { width: min(100%, 420px); padding: 0.25rem 0.1rem 0.25rem; }
  .qsm-welcome__close { top: 4px; right: 6px; left: auto; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .qsm-welcome__box,
  .qsm-welcome__link,
  .qsm-welcome__img,
  .qsm-welcome__link::before { animation: none !important; }
}

/* ── Cara Bermain / Rules ── */
.qsm-rules__visual {
  position: relative;
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.qsm-rules__banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.qsm-rules__host {
  display: none;
}
.qsm-rules__floats {
  display: none;
}
.qsm-rules__cs {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, #ff5a5a, #9a0000);
  box-shadow: 0 4px 14px rgba(180, 0, 0, 0.4);
}
.qsm-rules__cs:hover { filter: brightness(1.08); color: #fff !important; }
.qsm-rules__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 12px;
}
.qsm-rules__tab {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 70, 70, 0.45);
  border-radius: 6px;
  background: linear-gradient(180deg, #5a1010, #2a0606);
  color: #ffeaea;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.qsm-rules__tab:hover {
  border-color: rgba(255, 120, 120, 0.75);
  transform: translateY(-1px);
}
.qsm-rules__tab.is-active {
  background: linear-gradient(180deg, #ff5a5a, #c00000);
  border-color: #ff8f8f;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 60, 40, 0.35);
}
.qsm-rules__panel {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(18, 6, 6, 0.65);
  border: 1px solid var(--border-subtle);
}
.qsm-rules__panel.is-active { display: block; }
.qsm-rules__panel h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.qsm-rules__figure {
  margin: 12px 0 0;
}
.qsm-rules__figure img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@keyframes qsm-rules-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 640px) {
  .qsm-rules__tab { font-size: 0.62rem; padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .qsm-rules__floats img { animation: none !important; }
}

/* ── UPDATE NAGA6D: bintang kejora + pelangi + goyang tipis ── */
.qsm-update {
  position: relative;
  padding: 8px 4px 28px;
  overflow: hidden;
  border-radius: 14px;
}
.qsm-update__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(80, 20, 60, 0.45), transparent 60%),
    linear-gradient(180deg, rgba(12, 4, 18, 0.55), transparent 55%);
  overflow: hidden;
  border-radius: 14px;
}
.qsm-update__sky--article {
  height: 160px;
  inset: 0 0 auto 0;
  border-radius: 12px 12px 0 0;
}
.qsm-update__rainbow {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 18%;
  height: 72px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 60, 60, 0.55) 12%,
    rgba(255, 170, 40, 0.55) 28%,
    rgba(255, 230, 60, 0.5) 42%,
    rgba(60, 220, 120, 0.5) 56%,
    rgba(60, 160, 255, 0.55) 70%,
    rgba(170, 80, 255, 0.55) 84%,
    transparent 100%
  );
  filter: blur(10px);
  opacity: 0.72;
  transform: rotate(-6deg) scaleY(1.1);
  animation: qsm-update-rainbow 7s ease-in-out infinite;
}
.qsm-update__stars {
  position: absolute;
  inset: 0;
}
.qsm-update__star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff8d6;
  box-shadow: 0 0 6px 1px rgba(255, 230, 150, 0.9);
  animation: qsm-update-twinkle 2.8s ease-in-out infinite;
}
.qsm-update__star--1 { top: 12%; left: 8%; animation-delay: 0.1s; }
.qsm-update__star--2 { top: 22%; left: 18%; width: 2px; height: 2px; animation-delay: 0.4s; }
.qsm-update__star--3 { top: 8%; left: 32%; animation-delay: 0.7s; }
.qsm-update__star--4 { top: 28%; left: 44%; animation-delay: 1s; }
.qsm-update__star--5 { top: 14%; left: 58%; width: 4px; height: 4px; animation-delay: 0.2s; }
.qsm-update__star--6 { top: 34%; left: 70%; animation-delay: 1.3s; }
.qsm-update__star--7 { top: 10%; left: 82%; animation-delay: 0.55s; }
.qsm-update__star--8 { top: 40%; left: 12%; animation-delay: 1.6s; }
.qsm-update__star--9 { top: 48%; left: 26%; width: 2px; height: 2px; animation-delay: 0.9s; }
.qsm-update__star--10 { top: 18%; left: 90%; animation-delay: 1.1s; }
.qsm-update__star--11 { top: 55%; left: 50%; animation-delay: 0.35s; }
.qsm-update__star--12 { top: 42%; left: 88%; animation-delay: 1.8s; }
.qsm-update__star--13 { top: 60%; left: 6%; animation-delay: 0.65s; }
.qsm-update__star--14 { top: 6%; left: 48%; animation-delay: 1.4s; }
.qsm-update__star--15 { top: 50%; left: 62%; animation-delay: 0.15s; }
.qsm-update__star--16 { top: 30%; left: 4%; animation-delay: 2s; }
.qsm-update__star--17 { top: 16%; left: 72%; animation-delay: 0.8s; }
.qsm-update__star--18 { top: 58%; left: 78%; animation-delay: 1.2s; }

.qsm-update__shoot span {
  position: absolute;
  top: -10%;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff6c8 40%, #ffd36a);
  border-radius: 2px;
  opacity: 0;
  transform: rotate(28deg);
  animation: qsm-update-shoot 5.5s linear infinite;
  box-shadow: 0 0 8px rgba(255, 220, 140, 0.8);
}
.qsm-update__shoot span:nth-child(1) { left: 10%; animation-delay: 0s; }
.qsm-update__shoot span:nth-child(2) { left: 35%; animation-delay: 1.6s; width: 70px; }
.qsm-update__shoot span:nth-child(3) { left: 58%; animation-delay: 3.1s; width: 110px; }
.qsm-update__shoot span:nth-child(4) { left: 78%; animation-delay: 4.2s; width: 60px; }

.qsm-update__head,
.qsm-update__grid,
.qsm-update-article .qsm-article__head,
.qsm-update-article .qsm-article__body {
  position: relative;
  z-index: 1;
}
.qsm-update__banner-wrap {
  position: relative;
  z-index: 1;
  margin: 4px 10px 16px;
}
.qsm-update__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc86a;
}
.qsm-update__head {
  text-align: center;
  padding: 28px 16px 18px;
  max-width: 720px;
  margin: 0 auto;
}
.qsm-update__head h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  color: #fff4e4;
  text-shadow: 0 0 18px rgba(255, 120, 80, 0.35);
}
.qsm-update__lead {
  margin: 0;
  color: rgba(255, 236, 220, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}
.qsm-update__sway {
  animation: qsm-update-sway 4.8s ease-in-out infinite;
  animation-delay: var(--qsm-sway-delay, 0s);
  transform-origin: center center;
}
.qsm-update__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 10px 6px;
}
.qsm-update-card {
  position: relative;
  padding: 0;
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(48, 10, 16, 0.92), rgba(14, 4, 8, 0.96));
  border: 1px solid rgba(255, 120, 90, 0.28);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.qsm-update-card__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  color: transparent;
}
.qsm-update-card__rainbow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background: conic-gradient(
    from 180deg at 50% 120%,
    #ff3b5c,
    #ffb020,
    #ffe566,
    #3dff9a,
    #3db8ff,
    #b44dff,
    #ff3b5c
  );
  filter: blur(18px);
  animation: qsm-rainbow-spin 8s linear infinite;
  pointer-events: none;
}
.qsm-update-card__thumb {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #120608;
  text-decoration: none;
  pointer-events: none;
}
.qsm-update-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 400;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}
.qsm-update-card:hover .qsm-update-card__thumb img {
  transform: scale(1.03);
}
.qsm-update-card__body {
  position: relative;
  z-index: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  pointer-events: none;
}
.qsm-update-card__date,
.qsm-update-card__title,
.qsm-update-card__excerpt,
.qsm-update-card__more {
  position: relative;
  z-index: 1;
}
.qsm-update-card__title a,
.qsm-update-card__more {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.qsm-update-card__date {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: #ffb070;
  letter-spacing: 0.04em;
}
.qsm-update-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}
.qsm-update-card__title a {
  color: #fff2e4;
  text-decoration: none;
}
.qsm-update-card__title a:hover {
  color: #ffd090;
}
.qsm-update-card__excerpt {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 230, 215, 0.78);
}
.qsm-update-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc070;
  text-decoration: none;
}
.qsm-update-card__more:hover {
  color: #ffe0a8;
}
.qsm-update-article {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.qsm-update-article .qsm-article__head {
  padding-top: 28px;
}
.qsm-related {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 120, 90, 0.25);
}
.qsm-related h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffe0c0;
}
.qsm-related__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qsm-related__list a {
  color: #ffc070;
  text-decoration: none;
  font-size: 0.88rem;
}
.qsm-related__list a:hover { color: #ffe0a8; text-decoration: underline; }
@media (max-width: 900px) {
  .qsm-related__list { grid-template-columns: 1fr; }
}
.qsm-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 120, 0.45);
  color: #ffe0c0 !important;
  text-decoration: none !important;
  background: transparent;
}
.qsm-btn--ghost:hover {
  background: rgba(255, 120, 80, 0.12);
}

@keyframes qsm-update-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes qsm-update-shoot {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(28deg); }
  8% { opacity: 1; }
  35% { opacity: 0; transform: translate3d(220px, 180px, 0) rotate(28deg); }
  100% { opacity: 0; transform: translate3d(220px, 180px, 0) rotate(28deg); }
}
@keyframes qsm-update-rainbow {
  0%, 100% { opacity: 0.55; transform: rotate(-6deg) translateX(-2%) scaleY(1.05); }
  50% { opacity: 0.85; transform: rotate(-4deg) translateX(2%) scaleY(1.2); }
}
@keyframes qsm-update-sway {
  0%, 100% { transform: rotate(-0.55deg) translateY(0); }
  50% { transform: rotate(0.55deg) translateY(-3px); }
}

@media (max-width: 820px) {
  .qsm-update__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .qsm-update__rainbow,
  .qsm-update__star,
  .qsm-update__shoot span,
  .qsm-update__sway,
  .qsm-update-card__rainbow { animation: none !important; }
}

/* ── Boot / anti-iseng loading gate ── */
.qsm-boot__stage {
  position: relative;
  height: 150px;
  margin: 0 auto 1.1rem;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(40, 8, 14, 0.2) 0%, rgba(20, 4, 8, 0.65) 70%, rgba(8, 2, 4, 0.9) 100%);
  border: 1px solid rgba(255, 120, 80, 0.28);
  box-shadow: inset 0 -20px 40px rgba(255, 40, 20, 0.08);
}
.qsm-boot__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a227 15%, #ff6a3d 50%, #c9a227 85%, transparent);
  box-shadow: 0 0 12px rgba(255, 140, 60, 0.55);
  animation: qsm-boot-ground 1.1s linear infinite;
}
.qsm-boot__stars i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe9b0;
  box-shadow: 0 0 8px #ffd070;
  animation: qsm-boot-twinkle 2s ease-in-out infinite;
}
.qsm-boot__stars i:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.qsm-boot__stars i:nth-child(2) { top: 28%; left: 38%; width: 3px; height: 3px; animation-delay: .4s; }
.qsm-boot__stars i:nth-child(3) { top: 14%; left: 62%; animation-delay: .8s; }
.qsm-boot__stars i:nth-child(4) { top: 36%; left: 78%; animation-delay: .2s; }
.qsm-boot__stars i:nth-child(5) { top: 22%; left: 88%; width: 2px; height: 2px; animation-delay: 1.1s; }
.qsm-boot__stars i:nth-child(6) { top: 42%; left: 22%; animation-delay: .6s; }

.qsm-boot__animal {
  position: absolute;
  left: -30%;
  bottom: 28px;
  animation: qsm-boot-walk-x 2.8s linear infinite;
}
.qsm-boot__fox {
  position: relative;
  width: 92px;
  height: 58px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  animation: qsm-boot-bob 0.35s ease-in-out infinite;
}
.qsm-boot__fox-body {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 48px;
  height: 26px;
  border-radius: 40% 45% 40% 40%;
  background: linear-gradient(160deg, #ffb347, #e86a1a 55%, #b83a00);
}
.qsm-boot__fox-tail {
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 16px;
  border-radius: 60% 20% 50% 40%;
  background: linear-gradient(120deg, #ffd27a, #ff7a2a);
  transform-origin: right center;
  animation: qsm-boot-tail 0.35s ease-in-out infinite;
}
.qsm-boot__fox-head {
  position: absolute;
  right: 4px;
  top: 8px;
  width: 28px;
  height: 24px;
  border-radius: 46% 50% 40% 42%;
  background: linear-gradient(150deg, #ffc25c, #e45a10);
}
.qsm-boot__fox-ear {
  position: absolute;
  top: -10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #ff8a2a;
}
.qsm-boot__fox-ear--l { left: 2px; transform: rotate(-12deg); }
.qsm-boot__fox-ear--r { right: 2px; transform: rotate(12deg); }
.qsm-boot__fox-eye {
  position: absolute;
  top: 9px;
  right: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a0505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.qsm-boot__fox-snout {
  position: absolute;
  right: -4px;
  top: 12px;
  width: 12px;
  height: 8px;
  border-radius: 40%;
  background: #ffe0b0;
}
.qsm-boot__fox-snout::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 4px;
  height: 3px;
  border-radius: 50%;
  background: #2a0a0a;
}
.qsm-boot__fox-leg {
  position: absolute;
  bottom: 0;
  width: 7px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d45510, #7a2200);
  transform-origin: top center;
}
.qsm-boot__fox-leg--fl { left: 28px; animation: qsm-boot-leg 0.35s linear infinite; }
.qsm-boot__fox-leg--fr { left: 42px; animation: qsm-boot-leg 0.35s linear infinite .175s; }
.qsm-boot__fox-leg--bl { left: 54px; animation: qsm-boot-leg 0.35s linear infinite .175s; }
.qsm-boot__fox-leg--br { left: 66px; animation: qsm-boot-leg 0.35s linear infinite; }

.qsm-boot__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 160, 90, 0.28);
  overflow: hidden;
}
.qsm-boot__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9c1a2b, #ffb020 45%, #ffe566);
  box-shadow: 0 0 14px rgba(255, 120, 40, 0.65);
  transition: width 0.12s linear;
}
.qsm-boot__pct {
  margin: 10px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #ffd9a0;
}

@keyframes qsm-boot-walk-x {
  0% { left: -32%; }
  100% { left: 108%; }
}
@keyframes qsm-boot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes qsm-boot-leg {
  0%, 100% { transform: rotate(22deg); }
  50% { transform: rotate(-28deg); }
}
@keyframes qsm-boot-tail {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(14deg); }
}
@keyframes qsm-boot-ground {
  from { background-position: 0 0; }
  to { background-position: 80px 0; }
}
@keyframes qsm-boot-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .qsm-boot__animal,
  .qsm-boot__fox,
  .qsm-boot__fox-leg,
  .qsm-boot__fox-tail,
  .qsm-boot__stars i,
  .qsm-boot__ground { animation: none !important; }
  .qsm-boot__animal { left: 38%; }
}
