/* ============================================================
   PER-GAME SETTINGS PANEL STYLES — 2026-04-18 (v2 polished)
   Matches the jawlah-style right sidebar look.
   RTL-safe, overflow-safe, mobile-ready.
   ============================================================ */

.pgs-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.pgs-wrap *, .pgs-wrap *::before, .pgs-wrap *::after { box-sizing: border-box; }

.pgs-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(124,58,237,0.08), transparent);
}
.pgs-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.pgs-header-title i { color: var(--gold, #E8B730); }
.pgs-header-hint {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.pgs-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}
.pgs-body::-webkit-scrollbar { width: 6px; }
.pgs-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}

.pgs-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pgs-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.35;
  /* Bidi-safe: isolate embedded numbers/latin */
  unicode-bidi: plaintext;
}
.pgs-hint {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  unicode-bidi: plaintext;
}

/* ----- SLIDER ----- */
.pgs-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  /* In RTL keep natural order: value-chip first, slider second. */
}
.pgs-slider {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
  /* Keep slider direction consistent regardless of page dir */
  direction: ltr;
}
.pgs-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.pgs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold, #E8B730);
  box-shadow: 0 0 0 3px rgba(232,183,48,0.18);
  cursor: pointer;
  transition: transform 0.15s;
  margin-top: -5.5px;
}
.pgs-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.pgs-slider::-moz-range-track {
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.pgs-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold, #E8B730);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(232,183,48,0.18);
}
.pgs-slider-val {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold, #E8B730);
  background: rgba(232,183,48,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(232,183,48,0.2);
  direction: ltr; /* show numbers left-to-right */
}

/* ----- NUMBER / TEXT ----- */
.pgs-number, .pgs-text {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.pgs-number:focus, .pgs-text:focus {
  border-color: rgba(232,183,48,0.5);
  background: rgba(255,255,255,0.06);
}

/* ----- TOGGLE (RTL-safe, overflow-safe) ----- */
.pgs-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  align-self: flex-start;
}
.pgs-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pgs-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
  overflow: hidden; /* keep the knob from escaping visually */
}
.pgs-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.pgs-toggle input:checked + .pgs-toggle-slider {
  background: linear-gradient(90deg, var(--gold, #E8B730), #F5D261);
}
.pgs-toggle input:checked + .pgs-toggle-slider::before {
  transform: translateX(20px);
}
/* RTL: because we force direction:ltr on the slider, behavior is identical */
.pgs-toggle-slider { direction: ltr; }

/* ----- Toggle row: label on one side, toggle on the other ----- */
.pgs-item-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pgs-item-toggle .pgs-label { flex: 1; }

/* ----- SELECT ----- */
.pgs-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' opacity='0.55'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 10px center;
  padding-right: 34px;
}
html[dir="rtl"] .pgs-select,
[dir="rtl"] .pgs-select {
  background-position: left 10px center;
  padding-right: 12px;
  padding-left: 34px;
}
.pgs-select:focus {
  border-color: rgba(232,183,48,0.5);
  background-color: rgba(255,255,255,0.06);
}
.pgs-select option { background: #1a1530; color: #fff; }

/* ----- RADIO ----- */
.pgs-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pgs-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  user-select: none;
}
.pgs-radio:hover { background: rgba(255,255,255,0.06); }
.pgs-radio.active {
  background: rgba(232,183,48,0.08);
  border-color: rgba(232,183,48,0.35);
  color: #fff;
}
.pgs-radio input[type="radio"] {
  accent-color: var(--gold, #E8B730);
  cursor: pointer;
  margin: 0;
  flex: 0 0 auto;
}

/* ----- CHIPS ----- */
.pgs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pgs-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.pgs-chip:hover { background: rgba(255,255,255,0.08); color: #fff; }
.pgs-chip.active {
  background: linear-gradient(135deg, rgba(232,183,48,0.2), rgba(232,183,48,0.08));
  border-color: rgba(232,183,48,0.5);
  color: var(--gold, #E8B730);
  font-weight: 700;
}

/* ----- DIFFICULTY CARDS ----- */
.pgs-diff-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pgs-diff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.15s;
  color: rgba(255,255,255,0.8);
  min-height: 62px;
  font-family: inherit;
  text-align: center;
}
.pgs-diff-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.pgs-diff-card.active {
  background: linear-gradient(135deg, rgba(232,183,48,0.15), rgba(124,58,237,0.1));
  border-color: rgba(232,183,48,0.4);
  color: var(--gold, #E8B730);
  box-shadow: 0 4px 12px rgba(232,183,48,0.12);
}
.pgs-diff-icon {
  display: inline-flex;
  font-size: 1.05rem;
  color: var(--gold, #E8B730);
  line-height: 1;
}
.pgs-diff-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ----- INFO BOX ----- */
.pgs-info-box {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  align-items: flex-start;
}
.pgs-info-box i {
  color: #A78BFA;
  font-size: 1.1rem;
  margin-top: 2px;
  flex: 0 0 auto;
}
.pgs-info-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}
.pgs-info-hint {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ----- FOOTER ----- */
.pgs-footer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
  flex: 0 0 auto;
}
.pgs-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pgs-btn i { flex: 0 0 auto; }
.pgs-btn-reset {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}
.pgs-btn-reset:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.pgs-btn-apply {
  background: linear-gradient(135deg, var(--gold, #E8B730), #F5D261);
  color: #1a1530;
  box-shadow: 0 4px 14px rgba(232,183,48,0.28);
}
.pgs-btn-apply:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232,183,48,0.38);
}
.pgs-btn-apply:active,
.pgs-btn-reset:active { transform: translateY(0); }

/* Hide the old, generic settings scaffolding that earlier scripts
   might inject. The jawlah-settings-panel now holds our pgs panel. */
#jawlah-settings-panel > .jawlah-settings-list,
#jawlah-settings-panel > .jawlah-btn-reset {
  display: none !important;
}

/* ----- Small-screen tuning ----- */
@media (max-width: 1100px) {
  .pgs-body { padding: 10px; gap: 14px; }
  .pgs-diff-cards { gap: 6px; }
  .pgs-diff-card { min-height: 56px; padding: 8px 4px; }
  .pgs-diff-name { font-size: 0.75rem; }
}

/* ============================================================
   PROFESSIONAL SPIN WHEEL — 2026-04-18 v3
   Redesigned wheel UI with gradient segments, 3D hub, glow,
   animated pointer, winner card, and polished sidebar cards.
   ============================================================ */

.spwheel-pro-wrap {
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
  color: #fff;
}
.spwheel-pro-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .spwheel-pro-grid { grid-template-columns: 1fr; }
}

.spwheel-pro-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(124,58,237,0.18), transparent 65%),
    linear-gradient(180deg, rgba(23,16,51,0.9), rgba(10,4,34,0.9));
  border: 1px solid rgba(232,183,48,0.18);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.spwheel-pro-stage {
  position: relative;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pointer at the top */
.spwheel-pro-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(232,183,48,0.55));
  animation: spwheel-bob 2.2s ease-in-out infinite;
}
@keyframes spwheel-bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-3px); }
}
.spwheel-pro-pointer-glow {
  position: absolute;
  top: 14px; left: 50%;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,183,48,0.65), transparent 70%);
  transform: translateX(-50%);
  filter: blur(4px);
  pointer-events: none;
  animation: spwheel-glow 2s ease-in-out infinite alternate;
}
@keyframes spwheel-glow {
  from { opacity: 0.4; }
  to   { opacity: 0.9; }
}

/* Wheel disc */
.spwheel-pro-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform-origin: 50% 50%;
  box-shadow:
    0 0 0 6px rgba(0,0,0,0.35),
    0 0 40px rgba(232,183,48,0.25),
    0 20px 60px rgba(0,0,0,0.55),
    inset 0 0 50px rgba(0,0,0,0.45);
}
.spwheel-pro-disc canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Central hub button */
.spwheel-pro-hub {
  position: absolute;
  top: 50%; left: 50%;
  width: 112px; height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  background:
    radial-gradient(circle at 30% 30%, #fff7cf, #E8B730 45%, #8a5a00 100%);
  box-shadow:
    0 0 0 5px rgba(23,16,51,0.9),
    0 0 0 9px rgba(232,183,48,0.6),
    0 10px 30px rgba(0,0,0,0.65),
    inset 0 -6px 18px rgba(0,0,0,0.35),
    inset 0 6px 18px rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.spwheel-pro-hub:hover:not(.disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    0 0 0 5px rgba(23,16,51,0.9),
    0 0 0 10px rgba(255,222,120,0.85),
    0 12px 40px rgba(232,183,48,0.5),
    inset 0 -6px 18px rgba(0,0,0,0.35),
    inset 0 6px 18px rgba(255,255,255,0.4);
}
.spwheel-pro-hub:active:not(.disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}
.spwheel-pro-hub.disabled { cursor: not-allowed; opacity: 0.7; }
.spwheel-pro-hub-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #3c1f00;
  font-weight: 900;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(255,255,255,0.45);
}
.spwheel-pro-hub-label { letter-spacing: 1px; }

/* Spin CTA button */
.spwheel-pro-btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.spwheel-pro-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: #2a1800;
  cursor: pointer;
  background: linear-gradient(135deg, #fff1b8 0%, #E8B730 60%, #c28d00 100%);
  box-shadow:
    0 10px 24px rgba(232,183,48,0.45),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 0 rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.spwheel-pro-cta:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(232,183,48,0.55),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
.spwheel-pro-cta:active:not(.disabled) { transform: translateY(0); }
.spwheel-pro-cta.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.3);
}
.spwheel-pro-cta-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: spwheel-shine 3s ease-in-out infinite;
}
@keyframes spwheel-shine {
  0%, 60% { left: -100%; }
  100%    { left: 150%; }
}

.spwheel-pro-cta-sec {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.15s ease;
}
.spwheel-pro-cta-sec:hover {
  background: rgba(239,68,68,0.3);
  color: #fff;
  border-color: rgba(239,68,68,0.5);
}

.spwheel-pro-hint {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Winner display slot */
.spwheel-pro-winner-slot { width: 100%; max-width: 420px; }
.spwheel-pro-winner {
  padding: 22px 18px;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(232,183,48,0.3), transparent 65%),
    linear-gradient(180deg, rgba(60,31,0,0.8), rgba(23,16,51,0.9));
  border: 2px solid rgba(232,183,48,0.5);
  box-shadow:
    0 12px 40px rgba(232,183,48,0.35),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: spwheel-winner-in 0.6s cubic-bezier(.34,1.56,.64,1);
}
@keyframes spwheel-winner-in {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.spwheel-pro-winner-crown {
  font-size: 2.5rem;
  line-height: 1;
  animation: spwheel-crown 1.5s ease-in-out infinite;
}
@keyframes spwheel-crown {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%     { transform: translateY(-4px) rotate(5deg); }
}
.spwheel-pro-winner-label {
  color: var(--benrati, #E8B730);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 6px 0 10px;
}
.spwheel-pro-winner-avatar-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.spwheel-pro-winner-avatar,
.spwheel-pro-winner-avatar-ph {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--benrati, #E8B730);
  box-shadow: 0 0 20px rgba(232,183,48,0.6);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B5CF6, #E8B730);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}
.spwheel-pro-winner-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.spwheel-pro-winner-plat {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Side panel cards */
.spwheel-pro-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spwheel-pro-card {
  background: rgba(23,16,51,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(6px);
}
.spwheel-pro-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spwheel-pro-card-head i {
  color: var(--benrati, #E8B730);
  font-size: 0.95rem;
}
.spwheel-pro-card-head h3 {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.spwheel-pro-count {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}

/* Input row */
.spwheel-pro-input-row {
  display: flex;
  gap: 6px;
}
.spwheel-pro-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.spwheel-pro-input:focus {
  border-color: rgba(232,183,48,0.6);
  box-shadow: 0 0 0 3px rgba(232,183,48,0.15);
}
.spwheel-pro-input-btn {
  width: 42px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #E8B730, #c28d00);
  color: #2a1800;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.1s, box-shadow 0.1s;
}
.spwheel-pro-input-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,183,48,0.4);
}

.spwheel-pro-chat-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.spwheel-pro-chat-hint b {
  color: var(--benrati, #E8B730);
  font-weight: 700;
}
.spwheel-pro-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #53FC18;
  box-shadow: 0 0 0 0 rgba(83,252,24, 0.7);
  animation: spwheel-pulse 1.6s infinite;
}
@keyframes spwheel-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(83,252,24,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(83,252,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(83,252,24,0); }
}

/* Participants list */
.spwheel-pro-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
.spwheel-pro-list::-webkit-scrollbar { width: 5px; }
.spwheel-pro-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.spwheel-pro-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255,255,255,0.4);
}
.spwheel-pro-empty i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  opacity: 0.5;
}
.spwheel-pro-empty p { margin: 0; font-size: 0.82rem; }

.spwheel-pro-pitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.spwheel-pro-pitem:hover {
  background: rgba(255,255,255,0.06);
}
.spwheel-pro-pcolor {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.spwheel-pro-avatar,
.spwheel-pro-avatar-ph {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}
.spwheel-pro-pname {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  color: #fff;
}
.spwheel-pro-plat {
  flex: 0 0 auto;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}
.spwheel-pro-plat.twitch {
  color: #a78bfa;
  background: rgba(145,70,255,0.15);
}
.spwheel-pro-plat.kick {
  color: #53FC18;
  background: rgba(83,252,24,0.12);
  font-weight: 900;
}
.spwheel-pro-plat.chat {
  color: #60A5FA;
  background: rgba(59,130,246,0.12);
}
.spwheel-pro-rm {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.15s ease;
}
.spwheel-pro-rm:hover {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* History */
.spwheel-pro-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.spwheel-pro-hitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
}
.spwheel-pro-hitem:first-child {
  background: linear-gradient(90deg, rgba(232,183,48,0.18), rgba(232,183,48,0.05));
  border: 1px solid rgba(232,183,48,0.3);
}
.spwheel-pro-hrank {
  font-weight: 800;
  color: var(--benrati, #E8B730);
  flex: 0 0 auto;
  min-width: 28px;
}
.spwheel-pro-hname {
  flex: 1 1 auto;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spwheel-pro-htime {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}

/* Confetti */
.spwheel-pro-confetti {
  position: fixed;
  top: -20px;
  z-index: 9999;
  pointer-events: none;
  animation: spwheel-confetti-fall linear forwards;
}
@keyframes spwheel-confetti-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to   { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Disable the old in-game settings card from spin-wheel.js
   since we now control settings via the right sidebar. */
.spwheel-pro-wrap ~ .glass-card { display: none; }

/* RTL polish */
[dir="rtl"] .spwheel-pro-cta-shine { left: auto; right: -100%; animation-name: spwheel-shine-rtl; }
@keyframes spwheel-shine-rtl {
  0%, 60% { right: -100%; }
  100%    { right: 150%; }
}

@media (max-width: 700px) {
  .spwheel-pro-stage { width: min(420px, 92vw); height: min(420px, 92vw); }
  .spwheel-pro-hub { width: 88px; height: 88px; }
  .spwheel-pro-hub-label { font-size: 1.1rem; }
  .spwheel-pro-cta { padding: 12px 22px; font-size: 0.95rem; }
  .spwheel-pro-winner-name { font-size: 1.4rem; }
}
