/* SUPER AI Scatter Finder — experimental Mobile gimmick
   Namespace: .gsp-ai-scatter-*
   Default: do not load unless GSP_AI_SCATTER_FINDER_ENABLED === true
*/

.gsp-ai-scatter-fab {
  position: fixed;
  left: 16px;
  bottom: 78px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: grab;
  z-index: 9500;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 60, 40, 0.35), transparent 55%),
    #120000;
  box-shadow:
    0 0 0 2px rgba(255, 40, 40, 0.85),
    0 0 22px rgba(255, 20, 20, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: gspAiScatterFabPulse 1.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.gsp-ai-scatter-fab.is-dragging {
  cursor: grabbing;
  animation: none;
  transition: none;
  box-shadow:
    0 0 0 3px rgba(255, 70, 40, 1),
    0 0 34px rgba(255, 30, 20, 0.9),
    0 14px 28px rgba(0, 0, 0, 0.6);
}
.gsp-ai-scatter-fab.is-snap {
  transition: left 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), top 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.gsp-ai-scatter-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gsp-ai-scatter-fab .gsp-ai-scatter-badge {
  display: none !important;
}
.gsp-ai-scatter-fab.is-hidden {
  display: none !important;
}
@keyframes gspAiScatterFabPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(255, 40, 40, 0.85), 0 0 18px rgba(255, 20, 20, 0.45), 0 10px 24px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 70, 40, 1), 0 0 30px rgba(255, 30, 20, 0.8), 0 10px 24px rgba(0, 0, 0, 0.55);
  }
}

.gsp-ai-scatter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(180, 0, 0, 0.35), transparent 50%),
    rgba(0, 0, 0, 0.88);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
}
.gsp-ai-scatter-overlay.is-open {
  display: flex;
}
.gsp-ai-scatter-overlay.is-pre {
  z-index: 9800;
}
.gsp-ai-scatter-embers {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gsp-ai-scatter-ember {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a2a;
  box-shadow: 0 0 8px #ff3b2f;
  opacity: 0.7;
  animation: gspAiScatterRise 3.2s linear infinite;
}
@keyframes gspAiScatterRise {
  0% { transform: translateY(20px); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

.gsp-ai-scatter-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(55, 8, 8, 0.96), rgba(12, 0, 0, 0.96));
  border: 2px solid rgba(255, 50, 40, 0.75);
  box-shadow:
    0 0 0 1px rgba(255, 180, 40, 0.18) inset,
    0 0 40px rgba(255, 20, 20, 0.35),
    0 20px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.gsp-ai-scatter-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 70, 50, 0.35);
  pointer-events: none;
}

.gsp-ai-scatter-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.gsp-ai-scatter-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gsp-ai-scatter-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 70, 40, 0.7);
  box-shadow: 0 0 12px rgba(255, 30, 20, 0.45);
  object-fit: cover;
}
.gsp-ai-scatter-brand .gsp-ai-scatter-title {
  font-weight: 900;
  letter-spacing: 0.04em;
  font-style: italic;
  line-height: 1;
}
.gsp-ai-scatter-brand .gsp-ai-scatter-s { color: #e8eef8; }
.gsp-ai-scatter-brand .gsp-ai-scatter-a {
  color: #ff3b2f;
  text-shadow: 0 0 12px rgba(255, 30, 20, 0.8);
}
.gsp-ai-scatter-live {
  font-size: 10px;
  font-weight: 800;
  background: #ff1a1a;
  color: #fff;
  border-radius: 4px;
  padding: 4px 7px;
  letter-spacing: 0.06em;
}

.gsp-ai-scatter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #3a0a0a, #160000);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  box-shadow: 0 0 0 1px rgba(255, 60, 40, 0.9), 0 0 16px rgba(255, 30, 20, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.gsp-ai-scatter-btn.is-gold {
  color: #1a0a00;
  background: linear-gradient(180deg, #ffe27a, #ffb000);
  box-shadow: 0 0 0 1px #ffd24a, 0 0 18px rgba(255, 180, 0, 0.35);
}
.gsp-ai-scatter-btn.is-full { width: 100%; }
.gsp-ai-scatter-btn.is-small {
  min-height: 34px;
  font-size: 11px;
  padding: 0 14px;
}

.gsp-ai-scatter-guest { text-align: center; padding: 8px 4px 14px; }
.gsp-ai-scatter-guest h3 {
  margin: 0 0 8px;
  color: #ffd24a;
  font-size: 18px;
  min-height: 24px;
}
.gsp-ai-scatter-guest p {
  margin: 0 0 16px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.45;
  min-height: 56px;
}
.gsp-ai-scatter-guest p[data-role="gate-body"] {
  white-space: pre-wrap;
  text-align: left;
}
.gsp-ai-scatter-guest .gsp-ai-scatter-btn {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gsp-ai-scatter-guest .gsp-ai-scatter-btn.is-ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gsp-ai-scatter-type::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #ffd24a;
  box-shadow: 0 0 8px rgba(255, 180, 0, 0.7);
  animation: gspAiScatterCaret 0.7s steps(1) infinite;
}
.gsp-ai-scatter-type.is-done::after { display: none; }
@keyframes gspAiScatterCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.gsp-ai-scatter-scan { text-align: center; padding: 8px 4px 4px; }
.gsp-ai-scatter-scan h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-style: italic;
  color: #ff3b2f;
  text-shadow: 0 0 18px rgba(255, 30, 20, 0.7);
}
.gsp-ai-scatter-member-id {
  margin: 0 0 8px;
  font-size: 12px;
  color: #ffd24a;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(255, 180, 0, 0.35);
}
.gsp-ai-scatter-member-id b {
  color: #fff;
  font-size: 13px;
}
.gsp-ai-scatter-balances {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 74, 0.28);
  background: rgba(0, 0, 0, 0.35);
  text-align: left;
}
.gsp-ai-scatter-balances.is-show { display: block; }
.gsp-ai-scatter-balances-title {
  font-size: 11px;
  color: #ffd24a;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.gsp-ai-scatter-balances-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #ddd;
}
.gsp-ai-scatter-balances-row b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.gsp-ai-scatter-bal-total {
  color: #ffd24a;
  font-weight: 700;
}
.gsp-ai-scatter-bal-total b {
  color: #ffe9a0;
}
.gsp-ai-scatter-bal-utama {
  color: #ffc978;
  font-weight: 600;
}
.gsp-ai-scatter-bal-utama b {
  color: #ffe0b0;
}
.gsp-ai-scatter-balances.is-compact {
  margin: 0 0 10px;
  padding: 8px 10px;
}
.gsp-ai-scatter-balances.is-compact .gsp-ai-scatter-balances-title {
  margin-bottom: 6px;
}
.gsp-ai-scatter-scan-sub {
  margin: 0 0 14px;
  font-size: 12px;
  color: #ccc;
  min-height: 18px;
}
.gsp-ai-scatter-radar {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  position: relative;
  border: 2px solid rgba(255, 50, 40, 0.55);
  background:
    radial-gradient(circle, rgba(255, 40, 30, 0.18), transparent 60%),
    repeating-radial-gradient(circle, transparent 0 12px, rgba(255, 60, 40, 0.15) 12px 13px);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 20, 20, 0.35) inset;
}
.gsp-ai-scatter-radar::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 60, 40, 0.65) 100%);
  animation: gspAiScatterSpin 1.1s linear infinite;
}
@keyframes gspAiScatterSpin { to { transform: rotate(360deg); } }
.gsp-ai-scatter-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.gsp-ai-scatter-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff3b2f, #ffd24a);
  box-shadow: 0 0 12px rgba(255, 60, 40, 0.7);
  transition: width 0.2s linear;
}
.gsp-ai-scatter-log {
  text-align: left;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: #ffb4a8;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 60, 40, 0.25);
  border-radius: 10px;
  padding: 10px;
  min-height: 78px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.gsp-ai-scatter-results-head { text-align: center; margin-bottom: 10px; }
.gsp-ai-scatter-results-head h3 {
  margin: 0;
  font-size: 22px;
  color: #ffd24a;
  text-shadow: 0 2px 0 #5a3000, 0 0 18px rgba(255, 180, 0, 0.35);
  min-height: 1.2em;
}
.gsp-ai-scatter-results-head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ccc;
  min-height: 1.2em;
}
.gsp-ai-scatter-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.gsp-ai-scatter-filters.is-dimmed {
  opacity: 0.35;
  pointer-events: none;
}
.gsp-ai-scatter-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 70, 40, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}
.gsp-ai-scatter-chip.is-active {
  background: linear-gradient(180deg, #5a1010, #2a0505);
  border-color: #ffd24a;
  color: #ffd24a;
}
.gsp-ai-scatter-cards { display: grid; gap: 8px; }
.gsp-ai-scatter-card {
  display: grid;
  grid-template-columns: 28px 58px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 70, 40, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 180, 40, 0.08) inset;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}
.gsp-ai-scatter-card.is-show {
  animation: gspAiScatterCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gsp-ai-scatter-card.is-instant {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes gspAiScatterCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gsp-ai-scatter-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(180deg, #ffd24a, #ff8a00);
  color: #2a1000;
}
.gsp-ai-scatter-card img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 80, 40, 0.45);
  background: #1a0505;
}
.gsp-ai-scatter-meta strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  min-height: 1.2em;
}
.gsp-ai-scatter-meta span {
  display: block;
  font-size: 10px;
  color: #bbb;
  margin-top: 2px;
}
.gsp-ai-scatter-meta .gsp-ai-scatter-valid {
  color: #ffd24a;
  margin-top: 4px;
}
.gsp-ai-scatter-score { text-align: right; min-width: 58px; }
.gsp-ai-scatter-score b {
  display: block;
  font-size: 16px;
  color: #ff3b2f;
  text-shadow: 0 0 10px rgba(255, 30, 20, 0.6);
}
.gsp-ai-scatter-score small {
  font-size: 9px;
  color: #ccc;
  letter-spacing: 0.08em;
}
.gsp-ai-scatter-pick-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.gsp-ai-scatter-success { text-align: center; padding: 8px 4px 4px; }
.gsp-ai-scatter-brand-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}
.gsp-ai-scatter-brand-mini img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 70, 40, 0.7);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255, 40, 20, 0.5);
}
.gsp-ai-scatter-welcome {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
  color: #ffe27a;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255, 180, 0, 0.35);
}
.gsp-ai-scatter-mid {
  display: none;
}
.gsp-ai-scatter-freespin-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px auto 12px;
  width: 100%;
  min-height: 92px;
  padding: 4px 8px;
  transform: scale(0.25);
  opacity: 0;
  filter: blur(8px);
}
.gsp-ai-scatter-freespin-hero.is-play {
  animation:
    gspAiScatterXPop 1.15s cubic-bezier(0.12, 1.35, 0.3, 1) forwards,
    gspAiScatterXShake 0.55s ease-in-out 0.55s 2;
}
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-burst {
  animation: gspAiScatterBurst 1s ease-out 0.15s forwards;
}
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-burst-delay {
  animation-delay: 0.35s;
}
.gsp-ai-scatter-fs-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 80, 40, 0.35);
}
.gsp-ai-scatter-fs-word {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0;
  font-size: clamp(34px, 11vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(
    100deg,
    #fff3b0 0%,
    #ffd24a 18%,
    #ff4a1a 42%,
    #ffd24a 58%,
    #fff 72%,
    #ff1a1a 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 18px rgba(255, 40, 20, 0.9));
}
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-fs-word {
  animation:
    gspAiScatterFsShine 1.4s linear infinite,
    gspAiScatterNPulse 0.9s ease-in-out infinite alternate,
    gspAiScatterFsFlicker 2.2s ease-in-out infinite;
}
.gsp-ai-scatter-fs-word::after {
  content: "";
  position: absolute;
  left: -10%;
  top: -20%;
  width: 30%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg) translateX(-120%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-fs-word::after {
  animation: gspAiScatterFsSweep 1.8s ease-in-out 0.4s infinite;
}
.gsp-ai-scatter-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe27a;
  box-shadow: 0 0 10px #ffd24a, 0 0 18px #ff3a1a;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-spark-1 { left: 18%; top: 62%; animation: gspAiScatterSpark 1.2s ease-out 0.35s infinite; }
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-spark-2 { left: 78%; top: 55%; animation: gspAiScatterSpark 1.2s ease-out 0.55s infinite; }
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-spark-3 { left: 50%; top: 38%; animation: gspAiScatterSpark 1.2s ease-out 0.75s infinite; }
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-spark-4 { left: 32%; top: 78%; animation: gspAiScatterSpark 1.15s ease-out 0.9s infinite; }
.gsp-ai-scatter-freespin-hero.is-play .gsp-ai-scatter-spark-5 { left: 68%; top: 80%; animation: gspAiScatterSpark 1.15s ease-out 1.05s infinite; }
@keyframes gspAiScatterFsShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@keyframes gspAiScatterFsSweep {
  0% { transform: skewX(-18deg) translateX(-160%); opacity: 0; }
  15% { opacity: 0.9; }
  45% { transform: skewX(-18deg) translateX(320%); opacity: 0.15; }
  100% { transform: skewX(-18deg) translateX(320%); opacity: 0; }
}
@keyframes gspAiScatterFsFlicker {
  0%, 100% { filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 16px rgba(255, 40, 20, 0.85)); }
  40% { filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 28px rgba(255, 220, 80, 1)); }
  55% { filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 10px rgba(255, 30, 20, 0.55)); }
  70% { filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 32px rgba(255, 60, 20, 1)); }
}
@keyframes gspAiScatterSpark {
  0% { transform: scale(0.2) translateY(8px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.4) translateY(-18px); opacity: 0; }
}
.gsp-ai-scatter-x7000 {
  display: none !important;
}
.gsp-ai-scatter-burst {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.95) 0%, rgba(255, 40, 20, 0.55) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.gsp-ai-scatter-x {
  display: none;
}
.gsp-ai-scatter-n {
  display: none;
}
@keyframes gspAiScatterXPop {
  0% { transform: scale(0.2) translateY(28px); opacity: 0; filter: blur(10px); }
  45% { transform: scale(1.28) translateY(-6px); opacity: 1; filter: blur(0); }
  70% { transform: scale(0.94) translateY(2px); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes gspAiScatterXShake {
  0%, 100% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-4px) scale(1.02); }
  50% { transform: translateX(4px) scale(1.03); }
  75% { transform: translateX(-2px) scale(1.01); }
}
@keyframes gspAiScatterBurst {
  0% { transform: scale(0.4); opacity: 0.95; }
  100% { transform: scale(14); opacity: 0; }
}
@keyframes gspAiScatterXGlow {
  from { filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.45)); }
  to { filter: drop-shadow(0 0 20px rgba(255, 220, 100, 1)); }
}
@keyframes gspAiScatterNPulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 12px rgba(255, 30, 20, 0.6));
  }
  to {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 0 #2a0000) drop-shadow(0 0 28px rgba(255, 40, 20, 1));
  }
}
.gsp-ai-scatter-game {
  margin: 0 0 14px;
  font-size: 12px;
  color: #ddd;
  line-height: 1.4;
}
.gsp-ai-scatter-game b { color: #ffd24a; }

@media (max-width: 360px) {
  .gsp-ai-scatter-fab {
    left: 12px;
    bottom: 72px;
    width: 64px;
    height: 64px;
  }
}
