:root {
  --rtpx-public-button-hover-lift: -1px;
  --rtpx-public-button-hover-brightness: 1.07;
  --rtpx-public-button-active-scale: .982;
  --rtpx-public-button-focus: color-mix(in srgb,var(--rtpx-button-accent,var(--accent,#ab0102)) 72%,white 10%);
  --rtpx-public-button-transition: background-color .14s ease,border-color .14s ease,color .14s ease,opacity .09s ease,transform .09s ease,filter .14s ease;
}

@media (hover:hover) and (pointer:fine) {
  body:not(.admin-page) .game-pola-close:hover {
    border-color: rgba(255,255,255,.18);
    background: transparent;
    filter: none;
    opacity: .88;
  }
}

@media (prefers-reduced-motion:reduce) {
  body:not(.admin-page) :where(button,a,[role="button"]):is(:hover,:active) {
    transform: none;
    filter: none;
  }
}

/* Adaptive public paint profile for constrained runtimes. */
@media (max-width:1024px),(pointer:coarse) {
  body:not(.admin-page) {
    --rtpx-glass-filter-control: none;
    --rtpx-glass-filter-panel: none;
    --rtpx-glass-filter-compact: none;
    --header-glass-filter-mobile: none;
    --header-menu-filter: none;
    background-attachment: scroll;
  }
}

html.is-mobile-low-end-runtime body:not(.admin-page),
html.is-low-end-runtime body:not(.admin-page),
html.is-save-data-runtime body:not(.admin-page) {
  --rtpx-glass-filter-control: none;
  --rtpx-glass-filter-panel: none;
  --rtpx-glass-filter-compact: none;
  --header-glass-filter: none;
  --header-glass-filter-mobile: none;
  --header-menu-filter: none;
  background-attachment: scroll;
}

html.is-rtpx-vertical-scrolling body:not(.admin-page) :where(.site-header,.global-header,.jackpot-header) {
  will-change: auto;
}

/* Tema Situs UI v7.0.12: Audio Wave Visualizer tanpa outer ring, white-only, dan beat-reactive. */
.rtpx-sound-control {
  --rtpx-wave-color: #fff;
  --rtpx-sound-surface: var(--theme-container-bg,var(--theme-surface,#ffffff));
  --rtpx-sound-surface-rgb: var(--theme-container-bg-rgb,var(--theme-surface-rgb,255,255,255));
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 9990;
  width: 58px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  outline: 0;
  border-radius: 17px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0)),
    rgba(var(--rtpx-sound-surface-rgb),.94);
  box-shadow:
    0 12px 28px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  backdrop-filter: blur(12px) saturate(118%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease,box-shadow .2s ease,opacity .18s ease,filter .18s ease,background-color .18s ease;
}
.rtpx-sound-control:hover {
  transform: translateY(-2px);
  filter: brightness(1.045);
  box-shadow:
    0 16px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.rtpx-sound-control:active { transform: translateY(0) scale(.96); }
.rtpx-sound-control:focus-visible {
  transform: translateY(-1px) scale(1.025);
  filter: brightness(1.09);
  box-shadow:
    0 16px 34px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.24);
}
.rtpx-sound-control .audio-wave {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  pointer-events: none;
}
.rtpx-sound-control .audio-wave span {
  display: block;
  width: 4px;
  flex: 0 0 4px;
  height: 100%;
  border-radius: 50px;
  background: var(--rtpx-wave-color);
  opacity: .72;
  transform: translateY(var(--rtpx-wave-shift,0px)) scaleY(var(--rtpx-wave-level,.5));
  transform-origin: 50% 50%;
  transition: transform 48ms linear,opacity .16s ease,filter .16s ease;
  will-change: transform;
}
.rtpx-sound-control .audio-wave span:nth-child(1) { height: 40%; }
.rtpx-sound-control .audio-wave span:nth-child(2) { height: 70%; }
.rtpx-sound-control .audio-wave span:nth-child(3) { height: 100%; }
.rtpx-sound-control .audio-wave span:nth-child(4) { height: 60%; }
.rtpx-sound-control .audio-wave span:nth-child(5) { height: 50%; }
.rtpx-sound-control[data-state="playing"] {
  box-shadow:
    0 16px 34px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.19);
}
.rtpx-sound-control[data-state="playing"] .audio-wave span {
  opacity: 1;
  background: var(--rtpx-wave-color);
  filter: drop-shadow(0 0 3px rgba(255,255,255,.24));
}
.rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span {
  animation: rtpxAudioWaveOn 1.04s cubic-bezier(.37,0,.26,1) infinite;
}
.rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span:nth-child(1) { animation-duration: .72s; animation-delay: -.19s; }
.rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span:nth-child(2) { animation-duration: .94s; animation-delay: -.43s; }
.rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span:nth-child(3) { animation-duration: .66s; animation-delay: -.31s; }
.rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span:nth-child(4) { animation-duration: .83s; animation-delay: -.57s; }
.rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span:nth-child(5) { animation-duration: 1.08s; animation-delay: -.71s; }
.rtpx-sound-control[data-state="playing"][data-wave-mode="reactive"] .audio-wave span {
  animation: none;
  transform: translateY(var(--rtpx-wave-shift,0px)) scaleY(var(--rtpx-wave-level,.5));
}
.rtpx-sound-control[data-state="paused"] .audio-wave span,
.rtpx-sound-control[data-state="disabled"] .audio-wave span {
  animation: rtpxAudioWaveOff .28s ease-out both;
  background: var(--rtpx-wave-color);
  opacity: .46;
  filter: none;
}
.rtpx-sound-control[data-state="blocked"] {
  animation: rtpxSoundAttention 1.35s ease-in-out 2;
}
.rtpx-sound-control[data-state="blocked"] .audio-wave span {
  animation: rtpxAudioWaveStandby 1.18s ease-in-out infinite;
  background: var(--rtpx-wave-color);
  opacity: .66;
}
.rtpx-sound-control[data-state="blocked"] .audio-wave span:nth-child(even) { animation-delay: -.42s; }
.rtpx-sound-control[data-state="loading"] { cursor: progress; opacity: .88; }
.rtpx-sound-control[data-state="loading"] .audio-wave span {
  animation: rtpxAudioWaveLoading .72s ease-in-out infinite alternate;
}
.rtpx-sound-control[data-state="loading"] .audio-wave span:nth-child(2),
.rtpx-sound-control[data-state="loading"] .audio-wave span:nth-child(4) { animation-delay: -.26s; }
.rtpx-sound-control[data-state="error"] { opacity: .58; filter: saturate(.55); }
.rtpx-sound-control[data-state="error"] .audio-wave span { animation: none; transform: scaleY(.34); }
@keyframes rtpxAudioWaveOn {
  0%,100% { transform: translateY(.2px) scaleY(.28); }
  18% { transform: translateY(-.35px) scaleY(.86); }
  34% { transform: translateY(.25px) scaleY(.44); }
  52% { transform: translateY(-.55px) scaleY(1.06); }
  69% { transform: translateY(.18px) scaleY(.56); }
  84% { transform: translateY(-.3px) scaleY(.92); }
}
@keyframes rtpxAudioWaveOff {
  0% { transform: scaleY(.78); }
  100% { transform: scaleY(.36); }
}
@keyframes rtpxAudioWaveStandby {
  0%,100% { transform: scaleY(.34); opacity: .56; }
  48% { transform: scaleY(.56); opacity: .72; }
}
@keyframes rtpxAudioWaveLoading {
  from { transform: scaleY(.22); opacity: .42; }
  to { transform: scaleY(.78); opacity: .9; }
}
@keyframes rtpxSoundAttention {
  0%,100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.045); filter: brightness(1.08); }
}
@media (max-width:640px) {
  .rtpx-sound-control {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 54px;
    height: 48px;
    border-radius: 16px;
  }
  .rtpx-sound-control .audio-wave { width: 31px; height: 25px; gap: 2.7px; }
  .rtpx-sound-control .audio-wave span { width: 3.7px; flex-basis: 3.7px; }
}
@media (prefers-reduced-motion:reduce) {
  .rtpx-sound-control { transition: none; }
  .rtpx-sound-control[data-state="blocked"],
  .rtpx-sound-control[data-state="blocked"] .audio-wave span,
  .rtpx-sound-control[data-state="loading"] .audio-wave span,
  .rtpx-sound-control[data-state="playing"][data-wave-mode="ambient"] .audio-wave span,
  .rtpx-sound-control[data-state="paused"] .audio-wave span,
  .rtpx-sound-control[data-state="disabled"] .audio-wave span { animation: none; }
  .rtpx-sound-control .audio-wave span { transition: none; transform: scaleY(var(--rtpx-wave-level,.42)); }
}
@media print { .rtpx-sound-control { display: none !important; } }
