/* ========================================================
   PEARLBET CS2 ROULETTE ARENA & WINNER MODAL STYLES
   Pixel-perfect esports betting UI (No amateur emojis)
   ======================================================== */

.arena-wrapper {
  max-width: 1400px;
  width: 100%;
  margin: 40px auto 60px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================================================
   ROULETTE MAIN WIDGET BOX
   ======================================================== */
.roulette-widget-box {
  width: 100%;
  background: #11141e;
  border: 1px solid #1c2232;
  border-radius: 14px;
  padding: 22px 26px 18px 26px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.65);
  position: relative;
}

/* --- Widget Top Bar --- */
.widget-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Left: Last 10 Rounds */
.rounds-history-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-label {
  font-size: 11px;
  font-weight: 700;
  color: #657084;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.history-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-pill {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}

.round-pill.red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.round-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.round-pill.green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #10b981;
}

/* Center: Rolling In Status */
.rolling-status-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rolling-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #7b869b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.rolling-timer {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.rolling-timer span {
  font-size: 18px;
  color: #2dd4bf;
}

/* Right: Round ID & Provably Fair */
.round-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  font-weight: 600;
}

.round-id-text {
  color: #657084;
}

.provably-fair-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
}

.provably-fair-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========================================================
   CAROUSEL VIEWPORT & CENTER SELECTOR
   ======================================================== */
.roulette-viewport {
  width: 100%;
  height: 232px;
  position: relative;
  overflow: hidden;
  background: #0d1017;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Edge shadow fades */
.roulette-viewport::before,
.roulette-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.roulette-viewport::before {
  left: 0;
  background: linear-gradient(to right, #0d1017 15%, rgba(13, 16, 23, 0) 100%);
}

.roulette-viewport::after {
  right: 0;
  background: linear-gradient(to left, #0d1017 15%, rgba(13, 16, 23, 0) 100%);
}

/* Center Indicator Needle */
.center-needle-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

.needle-arrow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #2dd4bf;
  filter: drop-shadow(0 2px 6px rgba(45, 212, 191, 0.85));
}

.needle-arrow-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid #2dd4bf;
  filter: drop-shadow(0 -2px 6px rgba(45, 212, 191, 0.85));
}

.needle-line {
  width: 2px;
  height: 100%;
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf, 0 0 20px rgba(45, 212, 191, 0.7);
}

/* Moving Track */
.roulette-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
  padding: 0 16px;
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

/* Skin Card */
.skin-card {
  width: 216px;
  height: 198px;
  background: #141724;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-width: 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  user-select: none;
}

.card-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-condition {
  font-size: 9.5px;
  font-weight: 700;
  color: #657084;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-rarity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.card-image-wrap {
  width: 100%;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.skin-img {
  max-width: 160px;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.card-footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.weapon-title {
  font-size: 11px;
  font-weight: 600;
  color: #7b8599;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.skin-finish-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.skin-price-tag {
  font-size: 11px;
  font-weight: 700;
  color: #2dd4bf;
  margin-top: 2px;
}

/* Winning Card Highlight State */
.skin-card.is-winner {
  transform: scale(1.10);
  z-index: 15;
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.55), inset 0 0 15px rgba(45, 212, 191, 0.25);
  border-color: #2dd4bf !important;
}

.skin-card.is-winner .skin-img {
  transform: scale(1.12);
}

/* ========================================================
   WIDGET BOTTOM STATS & PROGRESS BAR
   ======================================================== */
.widget-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #717c91;
}

.round-progress-track {
  flex: 1;
  height: 3px;
  background: #191f2c;
  margin: 0 20px;
  border-radius: 2px;
  overflow: hidden;
}

.round-progress-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #10b981 0%, #2dd4bf 100%);
  border-radius: 2px;
}

.total-pool-text {
  color: #cbd5e1;
}

.total-pool-text strong {
  color: #fff;
}

/* ========================================================
   FREE SPIN ACTION BUTTON (Clean, Modern Casino Style)
   ======================================================== */
.spin-cta-container {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-free-spin {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
  border: 1px solid #5eead4;
  color: #032b27;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.6px;
  padding: 14px 40px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-free-spin:hover:not(:disabled) {
  background: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.55);
  transform: translateY(-2px);
}

.btn-free-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.spin-icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.6s linear;
}

.btn-free-spin.spinning .spin-icon-svg {
  animation: rotateSpin 0.8s infinite linear;
}

@keyframes rotateSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-badge-tag {
  background: rgba(3, 43, 39, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.spin-help-subtext {
  font-size: 12.5px;
  color: #657084;
}

/* ========================================================
   WINNING POPUP MODAL (Clean Victory Laurels, No Emojis)
   ======================================================== */
.claim-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.claim-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.claim-modal-card {
  background: #141723;
  border: 1px solid #283044;
  border-radius: 16px;
  max-width: 440px;
  width: 90%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(45, 212, 191, 0.15);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.claim-modal-overlay.open .claim-modal-card {
  transform: scale(1);
}

.modal-close-cross {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close-cross:hover {
  color: #fff;
}

.victory-crest-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(20, 23, 35, 0.8) 100%);
  border: 1px solid rgba(45, 212, 191, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.3);
}

.victory-crest-wrap svg {
  width: 28px;
  height: 28px;
  fill: #2dd4bf;
}

.win-badge-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.win-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.win-item-box {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, rgba(20, 23, 35, 0.6) 80%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.win-item-img {
  max-width: 220px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
  animation: floatSkin 3s ease-in-out infinite;
}

@keyframes floatSkin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.win-weapon-cat {
  font-size: 13px;
  font-weight: 600;
  color: #8c96a8;
  margin-top: 10px;
}

.win-skin-finish {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.win-price-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #1c2233;
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 800;
}

.btn-claim-prize {
  width: 100%;
  background: linear-gradient(135deg, #10dc5e 0%, #00c74d 100%);
  border: 1px solid #16e465;
  color: #062310;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 199, 77, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-claim-prize:hover {
  background: #1be76a;
  box-shadow: 0 6px 24px rgba(0, 199, 77, 0.5);
  transform: translateY(-1.5px);
}

.claim-disclaimer {
  font-size: 11px;
  color: #657084;
  margin-top: 12px;
}
