/* —— Oyun seçici sayfa —— */
.game-selector-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(22, 119, 255, 0.2);
  background: #1e2739;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow:
    0 24px 56px -32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-selector-panel::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 70% at 80% 0%, rgba(22, 119, 255, 0.11), transparent 55%);
}

.game-selector-panel > * {
  position: relative;
  z-index: 1;
}

.game-selector__provider-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.game-selector__provider-select {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.24);
  background: rgba(0, 0, 0, 0.32);
  color: #f1f5f9;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.game-selector__provider-select:focus {
  border-color: rgba(22, 119, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.16);
}

/* Rulet sahnesi */
.game-selector__reel-wrap {
  position: relative;
  margin-top: 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 119, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 17, 29, 0.95) 0%, rgba(15, 24, 40, 0.98) 100%);
  overflow: hidden;
  min-height: 14rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -24px 48px -24px rgba(0, 0, 0, 0.5);
}

.game-selector__reel-wrap::before,
.game-selector__reel-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

.game-selector__reel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 17, 29, 0.95) 0%, transparent 100%);
}

.game-selector__reel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 17, 29, 0.95) 0%, transparent 100%);
}

.game-selector__pointer {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-top: 0.65rem solid var(--site-accent-bright, #69b1ff);
  filter: drop-shadow(0 0 8px rgba(22, 119, 255, 0.65));
}

.game-selector__pointer-line {
  position: absolute;
  top: 1.1rem;
  bottom: 0.75rem;
  left: 50%;
  z-index: 4;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.95) 0%,
    rgba(22, 119, 255, 0.35) 45%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(22, 119, 255, 0.35);
  pointer-events: none;
}

.game-selector__reel-viewport {
  position: relative;
  overflow: hidden;
  padding: 2.15rem 0 1.35rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.game-selector__reel-track {
  display: flex;
  gap: var(--gs-gap, 12px);
  will-change: transform;
}

.game-selector__card {
  flex: 0 0 var(--gs-card-w, 168px);
  width: var(--gs-card-w, 168px);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: #181f2e;
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.85);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.game-selector__card--winner {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow:
    0 0 0 1px rgba(22, 119, 255, 0.4),
    0 16px 36px -14px rgba(22, 119, 255, 0.45);
  transform: scale(1.02);
}

.game-selector__card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1a2233;
}

.game-selector__card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(145deg, rgba(22, 119, 255, 0.12) 0%, rgba(15, 24, 40, 0.95) 100%);
}

.game-selector__card-title {
  display: block;
  padding: 0.5rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%);
  border-top: 1px solid rgba(22, 119, 255, 0.18);
}

.game-selector__spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.35rem;
  letter-spacing: 0.06em;
}

.game-selector__spin:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.game-selector__state {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.game-selector__state--error {
  color: #fca5a5;
}

/* —— Kazanan oyun modal —— */
/* Sidebar (40/60) ve auth (140) üstünde; z-[139] build’de yoktu */
#game-selector-modal-root,
#game-selector-modal.game-selector-modal {
  z-index: 150;
}

.game-selector-modal__glow {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(22, 119, 255, 0.22), transparent 70%);
}

.game-selector-modal__panel {
  animation: gs-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gs-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gs-modal-hero {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 380px) {
  .gs-modal-hero {
    grid-template-columns: minmax(0, 9.5rem) 1fr;
    align-items: center;
    gap: 1.15rem;
  }
}

.gs-modal-hero__frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 9.5rem;
  border-radius: 1rem;
  padding: 3px;
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.55), rgba(22, 119, 255, 0.15) 40%, rgba(22, 119, 255, 0.35));
  box-shadow:
    0 20px 40px -20px rgba(22, 119, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.gs-modal-hero__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0.85rem;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%, transparent 100%);
  pointer-events: none;
}

.gs-modal-hero__img,
.gs-modal-hero__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.85rem;
  object-fit: cover;
}

.gs-modal-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a2740 0%, #0c121c 100%);
}

.gs-modal-hero__placeholder span {
  font-size: 2.5rem;
  opacity: 0.45;
}

.gs-modal-hero__title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.gs-modal-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.gs-modal-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gs-modal-chip--provider {
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.14);
  color: var(--site-accent-bright, #69b1ff);
}

.gs-modal-chip--rtp {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #cbd5e1;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.gs-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.gs-modal-actions__btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* gs-modal-actions__btn--primary → css/site-buttons.css */

.gs-modal-sponsors {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(22, 119, 255, 0.2);
  animation: gs-sponsors-in 0.35s ease;
}

.game-selector-modal--sponsors .gs-modal-sponsors {
  display: block;
}

@keyframes gs-sponsors-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gs-modal-sponsors__title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-accent-bright, #69b1ff);
}

.gs-modal-sponsors__lead {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.gs-modal-sponsors__empty {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.gs-modal-sponsors__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.gs-modal-sponsor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(22, 119, 255, 0.22);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(22, 119, 255, 0.06) 100%);
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gs-modal-sponsor:hover {
  border-color: rgba(22, 119, 255, 0.45);
  background: linear-gradient(90deg, rgba(22, 119, 255, 0.1) 0%, rgba(22, 119, 255, 0.04) 100%);
  box-shadow: 0 10px 24px -16px rgba(22, 119, 255, 0.35);
  transform: translateX(2px);
}

.gs-modal-sponsor__logo-wrap {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.gs-modal-sponsor__logo {
  max-height: 1.75rem;
  max-width: 2.25rem;
  object-fit: contain;
}

.gs-modal-sponsor__initial {
  font-size: 1rem;
  font-weight: 800;
  color: var(--site-accent-bright, #69b1ff);
}

.gs-modal-sponsor__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.gs-modal-sponsor__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f1f5f9;
}

.gs-modal-sponsor__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--site-accent-bright, #69b1ff);
}

/* Light theme */
[data-theme="light"] .game-selector-panel {
  background: #fff;
  border-color: rgba(22, 119, 255, 0.2);
}

[data-theme="light"] .game-selector__reel-wrap {
  background: linear-gradient(180deg, #eef3fa 0%, #e8eef6 100%);
}

[data-theme="light"] .game-selector__reel-wrap::before {
  background: linear-gradient(90deg, #eef3fa 0%, transparent 100%);
}

[data-theme="light"] .game-selector__reel-wrap::after {
  background: linear-gradient(270deg, #eef3fa 0%, transparent 100%);
}

[data-theme="light"] .game-selector__card {
  background: #fff;
}

[data-theme="light"] .game-selector-modal__panel {
  background: #fff;
}

[data-theme="light"] .gs-modal-sponsor {
  background: rgba(238, 243, 250, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .game-selector-modal__panel,
  .gs-modal-sponsors {
    animation: none;
  }
}
