html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at top,
      rgba(80, 0, 120, 0.95) 0%,
      rgba(35, 0, 55, 0.82) 35%,
      rgba(8, 0, 12, 0.96) 75%,
      #050505 100%
    );
  background-attachment: fixed;
  color: #ffd700;
  font-family: Arial, sans-serif;
  text-align: center;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

h1 {
  margin: 18px 0 12px;
  font-size: 72px;
  color: #ffd700;
  text-shadow:
    0 0 12px #ff00ff,
    0 0 26px #ffd700;
}

button,
select,
input {
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid #ff00ff;
  background: #111;
  color: #ffd700;
  font-size: 16px;
  box-shadow: 0 0 10px #ff00ff;
  box-sizing: border-box;
}

button {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 16px #ff00ff,
    0 0 28px #ffd700;
}

.profile-menu-wrapper {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
}

.profile-avatar-button {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff00ff;
  background: #111;
  box-shadow:
    0 0 16px #ff00ff,
    0 0 28px rgba(255, 215, 0, 0.4);
}

.profile-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-menu {
  position: absolute;
  top: 90px;
  right: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(35, 0, 50, 0.96),
      rgba(5, 5, 5, 0.95)
    );
  border: 2px solid #ff00ff;
  box-shadow: 0 0 18px #ff00ff;
}

.profile-menu a {
  text-decoration: none;
}

.coins-display {
  margin: 42px 0 18px;
  font-size: 24px;
  color: #00ffd5;
  text-shadow:
    0 0 10px #00ffd5,
    0 0 22px #00ffd5,
    0 0 36px #ff00ff;
}

#coins {
  font-weight: bold;
  color: #00ffd5;
}

#game {
  width: 100%;
}

.main-game-layout {
  display: grid;
  grid-template-columns: 320px 820px 320px;
  gap: 36px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  margin: 26px auto 80px;
}

.slot-center {
  width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-panel {
  width: 320px;
  height: 600px;
  min-height: 600px;
  padding: 26px;
  border-radius: 30px;
  box-sizing: border-box;
  background:
    linear-gradient(
      180deg,
      rgba(38, 0, 58, 0.98),
      rgba(8, 0, 16, 0.94)
    );
  border: 2px solid #ffd700;
  box-shadow:
    0 0 22px #ff00ff,
    inset 0 0 22px rgba(255, 0, 255, 0.12),
    0 0 46px rgba(255, 215, 0, 0.22);
}

.side-panel h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 30px;
  color: #ffd700;
  text-shadow:
    0 0 12px #ff00ff,
    0 0 22px #ffd700;
}

#leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
}

#leaderboard li {
  margin: 10px 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 0, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffd700;
  text-shadow: 0 0 8px #ff00ff;
}

.live-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow: hidden;
}

.feed-item {
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 0, 255, 0.16),
      rgba(0, 255, 213, 0.06)
    );
  border: 1px solid #ff00ff;
  color: #00ffd5;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.45);
  animation: feedSlideIn 0.35s ease;
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.jackpot-display {
  margin: 0 0 18px;
  padding: 12px 28px;
  border-radius: 999px;
  width: fit-content;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid #ffd700;
  font-size: 30px;
  color: #ffd700;
  box-shadow:
    0 0 16px #ff00ff,
    0 0 36px rgba(255, 215, 0, 0.35);
  text-shadow:
    0 0 12px #ff00ff,
    0 0 22px #ffd700;
}

.slot-machine {
  width: fit-content;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(
      180deg,
      rgba(30, 0, 45, 0.98),
      rgba(8, 8, 8, 0.96)
    );
  border: 3px solid #ffd700;
  box-shadow:
    0 0 28px #ff00ff,
    0 0 60px rgba(255, 215, 0, 0.28);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 135px);
  grid-template-rows: repeat(3, 135px);
  gap: 14px;
}

.slot {
  width: 135px;
  height: 135px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 64px;
  border-radius: 18px;
  background: #111;
  border: 2px solid #ffd700;
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(255, 215, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.slot.win {
  animation: winPulse 0.8s infinite alternate;
}

.slot.wild {
  background: radial-gradient(circle, #ffffff 0%, #cfcfcf 100%);
  box-shadow:
    0 0 18px #00ffd5,
    0 0 45px #00ffd5;
}

.slot.scatter {
  background: linear-gradient(180deg, #00ffd5, #00443a);
  color: #111;
  box-shadow:
    0 0 20px #00ffd5,
    0 0 45px #00ffd5,
    inset 0 0 15px #fff;
}

.slot.line-win {
  outline: 4px solid #00ffd5;
}

@keyframes winPulse {
  from {
    transform: scale(1);
    box-shadow: 0 0 12px #ff00ff;
  }

  to {
    transform: scale(1.05);
    box-shadow:
      0 0 24px #ff00ff,
      0 0 42px #ffd700;
  }
}

.bet-controls,
.auto-spin-controls,
.bonus-controls {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auto-spin-status {
  margin-top: 12px;
  color: #00ffd5;
  text-shadow: 0 0 10px #00ffd5;
}

#result {
  margin-top: 20px;
  font-size: 34px;
  color: #ffd700;
  text-shadow: 0 0 12px #ff00ff;
}

.win-details {
  margin-top: -8px;
  padding: 14px 18px;
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.48);
  border: 2px solid #ffd700;
  box-shadow:
    0 0 14px #ff00ff,
    0 0 26px rgba(255, 215, 0, 0.28);
  box-sizing: border-box;
}

.win-detail-line {
  margin: 6px 0;
  color: #ffd700;
}

.settings-overlay,
.jackpot-overlay,
.free-spin-summary {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 999999;
}

.settings-box {
  position: relative;
  width: min(96vw, 1800px);
  height: min(88vh, 1100px);
  padding: 26px;
  border-radius: 34px;
  background:
    linear-gradient(
      180deg,
      rgba(35, 0, 50, 0.98),
      rgba(5, 5, 5, 0.96)
    );
  border: 3px solid #ffd700;
  box-shadow:
    0 0 30px #ff00ff,
    0 0 70px rgba(255, 215, 0, 0.35);
  overflow: hidden;
  box-sizing: border-box;
}

.settings-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.settings-layout {
  display: grid;
  grid-template-columns:
    minmax(360px, 420px)
    minmax(760px, 1fr)
    minmax(320px, 380px);
  gap: clamp(24px, 2vw, 42px);
  height: calc(100% - 70px);
  margin-top: 20px;
  align-items: stretch;
}

.settings-left,
.settings-middle,
.settings-right {
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(25, 0, 35, 0.95),
      rgba(5, 5, 5, 0.9)
    );
  border: 2px solid rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 18px #ff00ff;
}

.settings-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.settings-middle {
  overflow: hidden;
  min-width: 0;
}

.settings-right {
  overflow: hidden;
}

.settings-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffd700;
  box-shadow:
    0 0 22px #ff00ff,
    0 0 38px rgba(255, 215, 0, 0.45);
  margin-bottom: 20px;
}

.displayname-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.displayname-row input,
.displayname-row button {
  width: 100%;
}

.title-select-box {
  width: 100%;
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(20, 20, 20, 0.96),
      rgba(45, 0, 60, 0.82)
    );
  border: 2px solid #ffd700;
  box-shadow: 0 0 16px #ff00ff;
}

.profile-stats {
  height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  text-align: left;
  scrollbar-width: none;
}

.profile-stats::-webkit-scrollbar {
  display: none;
}

.settings-section-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 42px;
  color: #ffd700;
  text-shadow: 0 0 16px #ff00ff;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100% - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: none;
}

.achievements-list::-webkit-scrollbar {
  display: none;
}

.achievement-category-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.achievement-section-title {
  font-size: 28px;
  font-weight: bold;
  text-align: left;
  color: #ffd700;
  text-shadow: 0 0 10px #ff00ff;
}

.achievement-card {
  padding: 18px;
  border-radius: 22px;
  text-align: left;
  background:
    linear-gradient(
      145deg,
      rgba(25, 25, 25, 0.96),
      rgba(45, 0, 60, 0.82)
    );
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.achievement-card:hover {
  transform: translateY(-2px);
}

.achievement-card.unlocked {
  border: 2px solid #ffd700;
  box-shadow:
    0 0 16px #ff00ff,
    0 0 30px rgba(255, 215, 0, 0.28);
}

.achievement-card.locked {
  opacity: 0.45;
  filter: grayscale(0.7);
}

.achievement-name {
  font-size: 26px;
  font-weight: bold;
  color: #ffd700;
}

.achievement-requirement,
.achievement-reward {
  margin-top: 10px;
  font-size: 16px;
  color: #ffffff;
}

.achievement-progress {
  margin-top: 14px;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.achievement-progress-fill {
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #ff00ff,
      #ffd700,
      #00ffd5
    );
  box-shadow:
    0 0 12px #ff00ff,
    0 0 20px #ffd700;
}

.achievement-progress-text {
  margin-top: 8px;
  font-size: 14px;
  color: #00ffd5;
}

.achievement-card.rarity-common.unlocked {
  border-color: #aaa;
}

.achievement-card.rarity-rare.unlocked {
  border-color: #00aaff;
  box-shadow: 0 0 16px #00aaff;
}

.achievement-card.rarity-epic.unlocked {
  border-color: #b000ff;
  box-shadow: 0 0 18px #b000ff;
}

.achievement-card.rarity-legendary.unlocked {
  border-color: #ffd700;
  box-shadow:
    0 0 20px #ffd700,
    0 0 34px #ff00ff;
}

.achievement-card.rarity-mythic.unlocked {
  border-color: #ff004c;
  box-shadow:
    0 0 22px #ff004c,
    0 0 40px #ff00ff,
    0 0 56px #ffd700;
}

.big-win {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  z-index: 999999;
}

.big-win-text {
  font-size: 92px;
  color: #ffd700;
  text-shadow:
    0 0 25px #ff00ff,
    0 0 45px #ffd700;
}

.big-win-amount {
  margin-top: 20px;
  font-size: 64px;
  color: #00ffd5;
  text-shadow: 0 0 20px #00ffd5;
}

.jackpot-box,
.free-spin-summary-box,
.achievement-popup-content {
  width: 620px;
  padding: 42px;
  border-radius: 34px;
  background:
    linear-gradient(
      180deg,
      #240030,
      #050505
    );
  border: 3px solid #ffd700;
  box-shadow:
    0 0 36px #ff00ff,
    0 0 72px rgba(255, 215, 0, 0.42);
}

.achievement-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9999999;
}

.achievement-popup.hidden {
  display: none;
}

.achievement-popup-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffd700;
}

.achievement-popup-name {
  margin-top: 18px;
  font-size: 54px;
  color: #00ffd5;
  text-shadow: 0 0 18px #00ffd5;
}

.achievement-popup-reward {
  margin-top: 18px;
  font-size: 24px;
  color: #ffffff;
}

@media (max-width: 900px) {
  .main-game-layout {
    grid-template-columns: 1fr;
    max-width: 96vw;
  }

  .slot-center {
    width: 100%;
  }

  .side-panel {
    width: 100%;
    height: auto;
    min-height: 360px;
  }

  .slot-grid {
    grid-template-columns: repeat(5, 17vw);
    grid-template-rows: repeat(3, 17vw);
  }

  .slot {
    width: 17vw;
    height: 17vw;
    font-size: 9vw;
  }

  .settings-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .settings-box {
    height: 94vh;
  }
}

.slot.spinning {
  animation: reelSpin 0.18s linear infinite;
  filter: blur(1.2px);
  opacity: 0.75;
}

.slot.reel-stop {
  animation: reelStopBounce 0.28s ease;
}

@keyframes reelSpin {
  0% {
    transform: translateY(-8px) scale(0.96);
  }

  50% {
    transform: translateY(8px) scale(1.02);
  }

  100% {
    transform: translateY(-8px) scale(0.96);
  }
}

@keyframes reelStopBounce {
  0% {
    transform: translateY(-18px) scale(0.96);
  }

  60% {
    transform: translateY(6px) scale(1.04);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* PANEL HOVER */

.side-panel,
.slot-machine,
.settings-left,
.settings-middle,
.settings-right {

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.side-panel:hover,
.slot-machine:hover,
.settings-left:hover,
.settings-middle:hover,
.settings-right:hover {

  transform: translateY(-4px);

  box-shadow:
    0 0 28px #ff00ff,
    0 0 56px rgba(255,215,0,0.22);

  border-color: #ff00ff;
}

/* BUTTON POLISH */

button {

  position: relative;

  overflow: hidden;
}

button::before {

  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.22),
      transparent
    );

  transition: left 0.45s ease;
}

button:hover::before {
  left: 120%;
}

/* SLOT HOVER */

.slot {

  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.slot:hover {

  transform: scale(1.04);

  border-color: #ff00ff;

  box-shadow:
    0 0 18px #ff00ff,
    0 0 36px #ffd700;
}

/* LEADERBOARD SPECIAL */

#leaderboard li {

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#leaderboard li:hover {

  transform: translateX(6px);

  background:
    rgba(255,0,255,0.18);

  box-shadow:
    0 0 14px #ff00ff;
}

/* LIVE FEED PREMIUM */

.feed-item {

  position: relative;

  overflow: hidden;
}

.feed-item::after {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.06),
      transparent
    );

  transform: translateX(-100%);

  animation: feedShine 3s linear infinite;
}

@keyframes feedShine {

  to {
    transform: translateX(100%);
  }
}

/* ACHIEVEMENT HOVER */

.achievement-card {

  position: relative;

  overflow: hidden;
}

.achievement-card::before {

  content: "";

  position: absolute;

  inset: -2px;

  background:
    linear-gradient(
      130deg,
      transparent,
      rgba(255,255,255,0.08),
      transparent
    );

  opacity: 0;

  transition: opacity 0.25s ease;
}

.achievement-card:hover::before {
  opacity: 1;
}

.achievement-card:hover {

  transform:
    translateY(-4px)
    scale(1.01);
}

/* JACKPOT PULSE */

.jackpot-display {

  animation:
    jackpotPulse 3s ease-in-out infinite;
}

@keyframes jackpotPulse {

  0% {

    box-shadow:
      0 0 16px #ff00ff,
      0 0 36px rgba(255,215,0,0.35);
  }

  50% {

    box-shadow:
      0 0 24px #ff00ff,
      0 0 52px rgba(255,215,0,0.55);
  }

  100% {

    box-shadow:
      0 0 16px #ff00ff,
      0 0 36px rgba(255,215,0,0.35);
  }
}

.leaderboard-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.leaderboard-rank {
  font-size: 24px;
  min-width: 42px;
}

.leaderboard-name {
  font-weight: bold;
  color: #ffd700;
}

.leaderboard-title {
  margin-top: 2px;
  font-size: 12px;
  color: #00ffd5;
  text-shadow: 0 0 8px #00ffd5;
}

.leaderboard-coins {
  font-weight: bold;
  color: #00ffd5;
  text-align: right;
  white-space: nowrap;
}

.rank-1 {
  border-color: #ffd700 !important;
  box-shadow: 0 0 18px #ffd700 !important;
}

.rank-2 {
  border-color: #c0c0c0 !important;
  box-shadow: 0 0 14px #c0c0c0 !important;
}

.rank-3 {
  border-color: #cd7f32 !important;
  box-shadow: 0 0 14px #cd7f32 !important;
}

.feed-tag {
  font-size: 13px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 8px #ff00ff;
}

.feed-message {
  margin-top: 6px;
  color: #00ffd5;
}

.feed-time {
  margin-top: 6px;
  font-size: 12px;
  color: #aaa;
}

.feed-bigwin {
  border-color: #00ffd5;
  box-shadow:
    0 0 12px #00ffd5,
    0 0 22px rgba(255, 0, 255, 0.35);
}

.feed-jackpot {
  border-color: #ffd700;
  background:
    linear-gradient(
      90deg,
      rgba(255, 215, 0, 0.18),
      rgba(255, 0, 255, 0.14)
    );
  box-shadow:
    0 0 18px #ffd700,
    0 0 32px #ff00ff;
}

/* BETTER LEADERBOARD */

#leaderboard li {
  min-height: 58px;
  padding: 10px 12px;
}

.leaderboard-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.leaderboard-left {
  min-width: 0;
}

.leaderboard-name {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-title {
  font-size: 11px;
  opacity: 0.9;
}

.leaderboard-coins {
  font-size: 14px;
  align-self: center;
}

/* BETTER LIVE FEED */

.feed-item {
  padding: 12px;
  text-align: left;
}

.feed-tag {
  font-size: 12px;
  letter-spacing: 0.5px;
}

.feed-message {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.feed-time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* PANEL BALANCE */

.side-panel {
  padding: 22px;
}

.side-panel h2 {
  font-size: 28px;
}

.live-feed {
  max-height: 500px;
}

/* RANK CLEANUP */

.leaderboard-rank {
  min-width: 34px;
  font-size: 20px;
}

.side-panel {
  overflow: hidden;
}

#leaderboard {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

#leaderboard::-webkit-scrollbar {
  display: none;
}

#leaderboard li {
  min-height: 50px;
  padding: 8px 10px;
}

.feed-item {
  padding: 12px 14px 16px;
}

.feed-message {
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.feed-time {
  display: block;
  margin-top: 8px;
  padding-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.feed-item {
  padding: 12px 14px 18px !important;
}

.feed-message {
  margin-top: 6px;
  margin-bottom: 8px;
  line-height: 1.45;
  padding-bottom: 2px;
}

.feed-time {
  display: block !important;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65) !important;
}

.feed-item {
  padding: 14px 16px 20px !important;
}

.feed-message {
  margin-top: 6px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.feed-time {
  display: block !important;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65) !important;
}

.feed-item {
  min-height: 66px;
  padding: 12px 14px !important;

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: left;
  box-sizing: border-box;
}

.feed-tag {
  font-size: 12px;
  line-height: 1.1;
}

.feed-message {
  margin-top: 5px;
  margin-bottom: 0;
  padding-bottom: 0;

  font-size: 14px;
  line-height: 1.25;
}

.feed-time {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* BIG WIN OVERLAY */

.big-win-overlay {

  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    rgba(0,0,0,0.45);

  backdrop-filter: blur(6px);

  z-index: 9999;

  animation: bigWinFade 0.25s ease;
}

.big-win-content {

  text-align: center;

  animation:
    bigWinPop 0.45s ease;

  pointer-events: none;
}

.big-win-title {

  font-size: 72px;
  font-weight: bold;

  color: #ffd700;

  text-shadow:
    0 0 12px #ff00ff,
    0 0 32px #ffd700,
    0 0 64px #ff00ff;

  animation:
    bigWinPulse 1s ease-in-out infinite;
}

.big-win-amount {

  margin-top: 18px;

  font-size: 54px;
  font-weight: bold;

  color: #00ffd5;

  text-shadow:
    0 0 14px #00ffd5,
    0 0 32px #00ffd5;
}

.hidden {
  display: none !important;
}

/* COINS */

#flyingCoins {

  position: fixed;
  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: 9998;
}

.coin-particle {

  position: absolute;

  font-size: 28px;

  animation:
    flyCoin 1.6s linear forwards;
}

@keyframes flyCoin {

  0% {

    transform:
      translateY(0)
      rotate(0deg)
      scale(0.7);

    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {

    transform:
      translateY(100vh)
      rotate(720deg)
      scale(1.2);

    opacity: 0;
  }
}

/* ANIMATIONS */

@keyframes bigWinFade {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes bigWinPop {

  0% {

    transform:
      scale(0.5);

    opacity: 0;
  }

  100% {

    transform:
      scale(1);

    opacity: 1;
  }
}

@keyframes bigWinPulse {

  0% {

    transform: scale(1);

    text-shadow:
      0 0 12px #ff00ff,
      0 0 32px #ffd700;
  }

  50% {

    transform: scale(1.04);

    text-shadow:
      0 0 18px #ff00ff,
      0 0 56px #ffd700;
  }

  100% {

    transform: scale(1);

    text-shadow:
      0 0 12px #ff00ff,
      0 0 32px #ffd700;
  }
}

.jackpot-overlay {
  backdrop-filter: blur(8px);
  animation: jackpotFlash 0.45s ease;
}

.jackpot-box {
  text-align: center;
  animation:
    jackpotPop 0.5s ease,
    jackpotGlow 1.2s ease-in-out infinite;
}

.jackpot-box h2 {
  font-size: 72px;
  color: #ffd700;
  text-shadow:
    0 0 18px #ff00ff,
    0 0 42px #ffd700,
    0 0 80px #ff00ff;
}

#jackpotWinText {
  font-size: 36px;
  color: #00ffd5;
  text-shadow:
    0 0 16px #00ffd5,
    0 0 36px #ff00ff;
}

.jackpot-shake {
  animation: jackpotScreenShake 0.55s ease;
}

@keyframes jackpotFlash {
  0% {
    background: rgba(255, 215, 0, 0.75);
  }

  100% {
    background: rgba(0, 0, 0, 0.82);
  }
}

@keyframes jackpotPop {
  0% {
    transform: scale(0.4) rotate(-4deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.08) rotate(2deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes jackpotGlow {
  0% {
    box-shadow:
      0 0 36px #ff00ff,
      0 0 72px rgba(255, 215, 0, 0.42);
  }

  50% {
    box-shadow:
      0 0 55px #ffd700,
      0 0 110px #ff00ff,
      0 0 160px rgba(255, 215, 0, 0.75);
  }

  100% {
    box-shadow:
      0 0 36px #ff00ff,
      0 0 72px rgba(255, 215, 0, 0.42);
  }
}

@keyframes jackpotScreenShake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-8px, 5px); }
  30% { transform: translate(7px, -6px); }
  45% { transform: translate(-6px, -4px); }
  60% { transform: translate(6px, 5px); }
  75% { transform: translate(-4px, 3px); }
  100% { transform: translate(0, 0); }
}

.lootbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  overflow: hidden;
}

.lootbox-light {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.55), transparent 70%);
  animation: lootLightPulse 1s ease-in-out infinite;
}

.lootbox-chest {
  position: relative;
  font-size: 120px;
  animation: lootChestIn 0.45s ease, lootChestIdle 0.7s ease-in-out infinite;
  z-index: 2;
}

.lootbox-chest.opening {
  animation: lootChestShake 0.55s ease;
}

.lootbox-reward {
  position: absolute;
  z-index: 3;
  padding: 32px 44px;
  border-radius: 28px;
  border: 3px solid #ffd700;
  background: linear-gradient(180deg, #260030, #050505);
  box-shadow:
    0 0 35px #ff00ff,
    0 0 75px rgba(255, 215, 0, 0.55);
  animation: rewardReveal 0.55s ease;
}

.lootbox-rarity {
  font-size: 42px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 18px #ff00ff;
}

.lootbox-reward-text {
  margin-top: 14px;
  font-size: 24px;
  color: #00ffd5;
  text-shadow: 0 0 14px #00ffd5;
}

.lootbox-reward.mythic {
  border-color: #ff004c;
  box-shadow:
    0 0 35px #ff004c,
    0 0 70px #ff00ff,
    0 0 110px #ffd700;
}

@keyframes lootChestIn {
  from {
    transform: translateY(-160px) scale(0.6);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes lootChestIdle {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes lootChestShake {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-8deg) scale(1.08); }
  40% { transform: rotate(8deg) scale(1.12); }
  60% { transform: rotate(-6deg) scale(1.1); }
  80% { transform: rotate(6deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes lootLightPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes rewardReveal {
  from {
    opacity: 0;
    transform: scale(0.55) translateY(40px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lootbox-card {
  position: absolute;
  z-index: 4;
  width: 340px;
  height: 460px;
  perspective: 1000px;
  cursor: pointer;
}

.lootbox-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.lootbox-card.revealed .lootbox-card-inner {
  transform: rotateY(180deg);
}

.lootbox-card-front,
.lootbox-card-back {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  backface-visibility: hidden;
  overflow: hidden;

  border: 3px solid #ffd700;
  background: linear-gradient(180deg, #260030, #050505);

  box-shadow:
    0 0 30px #ff00ff,
    0 0 70px rgba(255,215,0,0.45);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lootbox-card-back {
  transform: rotateY(180deg);
}

.lootbox-card-shimmer {
  position: absolute;
  inset: -40%;
  opacity: 0.75;
  animation: cardShimmer 1.6s linear infinite;
}

.lootbox-card-shimmer.common {
  background: conic-gradient(transparent, #aaa, transparent);
}

.lootbox-card-shimmer.rare {
  background: conic-gradient(transparent, #00aaff, transparent);
}

.lootbox-card-shimmer.epic {
  background: conic-gradient(transparent, #b000ff, transparent);
}

.lootbox-card-shimmer.legendary {
  background: conic-gradient(transparent, #ffd700, transparent);
}

.lootbox-card-shimmer.mythic {
  background: conic-gradient(transparent, #ff004c, #ff00ff, #ffd700, transparent);
}

.lootbox-card-question {
  position: relative;
  z-index: 2;
  font-size: 140px;
  font-weight: bold;
  color: #ffd700;
  text-shadow:
    0 0 18px #ff00ff,
    0 0 45px #ffd700;
}

.lootbox-card-hint,
.lootbox-continue {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: #00ffd5;
  text-shadow: 0 0 12px #00ffd5;
}

.lootbox-card-back .lootbox-rarity {
  font-size: 42px;
  font-weight: bold;
}

.lootbox-card-back .lootbox-reward-text {
  margin-top: 20px;
  font-size: 30px;
  color: #00ffd5;
  text-shadow: 0 0 16px #00ffd5;
}

@keyframes cardShimmer {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.lootbox-continue {
  position: absolute;
  bottom: 8vh;
  z-index: 5;

  font-size: 22px;
  color: #00ffd5;

  text-shadow:
    0 0 12px #00ffd5,
    0 0 24px #ff00ff;

  animation: continueFadeIn 0.6s ease;
}

@keyframes continueFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lootbox-card-back {
  transform: rotateY(180deg);

  position: relative;
  overflow: hidden;

  .lootbox-card.mythic .lootbox-card-back::before {
  content: "";

  position: absolute;
  inset: -30%;

  background:
    linear-gradient(
      45deg,
      #ff0000,
      #ff9900,
      #ffee00,
      #00ff66,
      #00ffff,
      #0066ff,
      #aa00ff,
      #ff0099
    );

  opacity: 0.35;

  animation:
    holoRotate 4s linear infinite;

  mix-blend-mode: screen;
}

@keyframes holoRotate {
  from {
    transform: rotate(0deg) scale(1.2);
  }

  to {
    transform: rotate(360deg) scale(1.2);
  }
}
}

.lootbox-card-inner {
  transform-style: preserve-3d;
}

.lootbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  background:
    radial-gradient(circle at center,
      rgba(255,0,255,0.18),
      rgba(0,0,0,0.92));

  backdrop-filter: blur(8px);

  overflow: hidden;
}

.lootbox-overlay::before {
  content: "";

  position: absolute;
  width: 900px;
  height: 900px;

  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0));

  animation: spotlightPulse 2s ease-in-out infinite;
}

@keyframes spotlightPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
}

.screen-shake {
  animation: screenShake 0.45s ease;
}

@keyframes screenShake {
  0% { transform: translate(0px, 0px); }
  15% { transform: translate(-8px, 5px); }
  30% { transform: translate(7px, -4px); }
  45% { transform: translate(-6px, 4px); }
  60% { transform: translate(5px, -3px); }
  75% { transform: translate(-3px, 2px); }
  100% { transform: translate(0px, 0px); }
}

.screen-shake-mythic {
  animation: mythicShake 1.2s ease;
}

@keyframes mythicShake {
  0% { transform: scale(1) translate(0px, 0px); }

  10% { transform: scale(1.02) translate(-12px, 8px); }
  20% { transform: scale(1.04) translate(10px, -7px); }
  30% { transform: scale(1.06) translate(-14px, 10px); }
  40% { transform: scale(1.08) translate(14px, -10px); }

  50% {
    transform: scale(1.12);
    filter:
      brightness(1.35)
      saturate(1.5);
  }

  60% { transform: scale(1.08) translate(-12px, 7px); }
  70% { transform: scale(1.05) translate(11px, -6px); }
  80% { transform: scale(1.03) translate(-8px, 5px); }

  100% {
    transform: scale(1) translate(0px, 0px);
    filter:
      brightness(1)
      saturate(1);
  }
}

.lootbox-card-front,
.lootbox-card-back {
  justify-content: center;
  gap: 18px;
  padding: 34px;
  box-sizing: border-box;
}

.lootbox-card-back .lootbox-rarity {
  font-size: 46px;
  text-align: center;
  z-index: 2;
}

.lootbox-card-back .lootbox-reward-text {
  font-size: 34px;
  text-align: center;
  z-index: 2;
}

.lootbox-card.revealed .lootbox-card-inner {
  transform: rotateY(180deg);
}

.lootbox-continue {
  bottom: 6vh;
}

.lootbox-card {
  width: 360px;
  height: 500px;
  position: relative;
}

.lootbox-card-front,
.lootbox-card-back {
  width: 100%;
  height: 100%;
}

.lootbox-card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.admin-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(60, 0, 80, 0.9),
      rgba(5, 5, 5, 0.95)
    );

  border: 2px solid #ff00ff;

  box-shadow:
    0 0 18px #ff00ff,
    inset 0 0 16px rgba(255, 0, 255, 0.18);
}

.admin-panel input,
.admin-panel button {
  width: 100%;
  margin-top: 10px;
}

.admin-panel hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid rgba(255, 215, 0, 0.35);
}

#adminStatus {
  margin-top: 12px;
  color: #00ffd5;
  text-shadow: 0 0 10px #00ffd5;
}

.admin-overlay-box {
  max-width: 720px;
  height: auto;
  min-height: 640px;
}

.admin-panel-large {
  max-width: 520px;
  margin: 30px auto 0;
}

.big-win-overlay,
.big-win {
  position: fixed;
  inset: 0;
  z-index: 9000;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

.big-win-content,
.big-win-text,
.big-win-amount {
  transform: translateY(-20px);
}

#flyingCoins {
  z-index: 1 !important;
}

.coin-particle {
  z-index: 1 !important;
  opacity: 0.45;
}

h1,
.profile-menu-wrapper,
.main-game-layout,
.slot-center,
.side-panel,
.slot-machine,
.jackpot-display,
.bet-controls,
.auto-spin-controls,
.bonus-controls,
#result,
.win-details {
  position: relative;
  z-index: 5;
}

.big-win {
  background:
    radial-gradient(circle at center, rgba(255, 0, 255, 0.18), rgba(0, 0, 0, 0.58));
  backdrop-filter: blur(3px);
}

.big-win-text {
  animation: winTitleSlam 0.55s ease, winTitlePulse 0.9s ease-in-out infinite;
}

.big-win-amount {
  animation: winAmountRise 0.65s ease;
}

.big-win.big-tier {
  --win-main: #ffd700;
  --win-second: #00ffd5;
}

.big-win.mega-tier {
  --win-main: #ff4d00;
  --win-second: #ffd700;
  animation: megaFlash 0.35s ease;
}

.big-win.fat-tier {
  --win-main: #ff00ff;
  --win-second: #00ffd5;
  animation: fatFlash 0.5s ease, fatShake 0.75s ease;
}

.big-win.big-tier .big-win-text,
.big-win.mega-tier .big-win-text,
.big-win.fat-tier .big-win-text {
  color: var(--win-main);
  text-shadow:
    0 0 18px var(--win-main),
    0 0 44px var(--win-second),
    0 0 86px #ff00ff;
}

.big-win.big-tier .big-win-amount,
.big-win.mega-tier .big-win-amount,
.big-win.fat-tier .big-win-amount {
  color: var(--win-second);
  text-shadow:
    0 0 18px var(--win-second),
    0 0 46px var(--win-main);
}

@keyframes winTitleSlam {
  0% {
    transform: translateY(-120px) scale(0.4) rotate(-8deg);
    opacity: 0;
  }

  65% {
    transform: translateY(8px) scale(1.18) rotate(2deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px) scale(1) rotate(0);
  }
}

@keyframes winTitlePulse {
  0%, 100% {
    transform: translateY(-20px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.06);
  }
}

@keyframes winAmountRise {
  from {
    transform: translateY(70px) scale(0.6);
    opacity: 0;
  }

  to {
    transform: translateY(-20px) scale(1);
    opacity: 1;
  }
}

@keyframes megaFlash {
  0% {
    background: rgba(255, 215, 0, 0.45);
  }

  100% {
    background:
      radial-gradient(circle at center, rgba(255, 0, 255, 0.18), rgba(0, 0, 0, 0.58));
  }
}

@keyframes fatFlash {
  0% {
    background: rgba(255, 255, 255, 0.75);
  }

  40% {
    background: rgba(255, 0, 255, 0.55);
  }

  100% {
    background:
      radial-gradient(circle at center, rgba(255, 0, 255, 0.18), rgba(0, 0, 0, 0.58));
  }
}

@keyframes fatShake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-10px, 6px); }
  30% { transform: translate(8px, -6px); }
  45% { transform: translate(-7px, -5px); }
  60% { transform: translate(7px, 5px); }
  100% { transform: translate(0, 0); }
}

.profile-menu-wrapper {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 10000 !important;
}

.feed-big {
  border-color: #00ffd5;
  box-shadow:
    0 0 12px rgba(0, 255, 213, 0.45),
    inset 0 0 14px rgba(0, 255, 213, 0.12);
}

.feed-mega {
  border-color: #ff7a00;
  box-shadow:
    0 0 14px rgba(255, 122, 0, 0.65),
    inset 0 0 18px rgba(255, 122, 0, 0.18);
}

.feed-fat {
  border-color: #ff00ff;
  box-shadow:
    0 0 18px rgba(255, 0, 255, 0.75),
    0 0 32px rgba(255, 215, 0, 0.35),
    inset 0 0 22px rgba(255, 0, 255, 0.22);
}

.win-details {
  cursor: pointer;
  overflow: hidden;
}

.win-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  font-weight: 700;
  color: #ffd700;
}

.win-details-toggle {
  font-size: 13px;
  color: #00ffd5;
  text-shadow: 0 0 10px #00ffd5;
}

.win-details-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease;
}

.win-details.expanded .win-details-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 12px;
}

.main-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  margin-top: 18px;
}

.spin-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spin-controls select {
  min-width: 120px;
}

.spin-button {
  min-width: 180px;
  height: 58px;

  border-radius: 18px;

  font-size: 22px;
  font-weight: 800;

  background:
    linear-gradient(
      135deg,
      #ffcc00,
      #ff00ff
    );

  color: white;

  border: 2px solid #ffd700;

  box-shadow:
    0 0 18px #ff00ff,
    0 0 36px rgba(255,215,0,0.35);

  animation: spinPulse 2s infinite;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.spin-button:hover {
  transform: scale(1.05);

  box-shadow:
    0 0 24px #ff00ff,
    0 0 52px rgba(255,215,0,0.55);
}

@keyframes spinPulse {
  0%,100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.auto-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,0,255,0.12),
      rgba(0,0,0,0.35)
    );

  border: 2px solid rgba(255,0,255,0.4);

  box-shadow:
    0 0 18px rgba(255,0,255,0.22),
    inset 0 0 16px rgba(255,255,255,0.04);
}

.auto-divider {
  width: 2px;
  height: 32px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      #ff00ff,
      transparent
    );

  margin: 0 6px;
}

.bonus-controls {
  display: flex;
  gap: 20px;

  justify-content: center;

  margin-top: 24px;
}

.bonus-card {
  width: 220px;

  padding: 18px;

  border-radius: 22px;

  cursor: pointer;

  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(255,0,255,0.16),
      rgba(0,0,0,0.45)
    );

  border: 2px solid #ff00ff;

  box-shadow:
    0 0 18px rgba(255,0,255,0.35),
    inset 0 0 14px rgba(255,255,255,0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.bonus-card:hover {
  transform: translateY(-4px) scale(1.03);

  box-shadow:
    0 0 26px rgba(255,0,255,0.55),
    0 0 52px rgba(255,215,0,0.22);
}

.bonus-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.bonus-title {
  font-size: 22px;
  font-weight: 800;

  color: #ffd700;

  text-shadow:
    0 0 12px #ffd700;
}

.bonus-subtitle {
  margin-top: 6px;

  font-size: 15px;

  color: #00ffd5;

  text-shadow:
    0 0 12px #00ffd5;
}

.auto-spin-pill {
  min-width: 92px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 0 12px;

  border-radius: 14px;

  color: #00ffd5;
  font-weight: 800;

  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(0, 255, 213, 0.75);

  box-shadow:
    0 0 14px rgba(0, 255, 213, 0.45),
    inset 0 0 12px rgba(0, 255, 213, 0.12);
}

.bonus-controls {
  margin-top: 18px;
  gap: 14px;
}

.bonus-card {
  width: 170px !important;

  min-height: unset !important;
  height: auto !important;

  padding: 14px 16px !important;
}

.bonus-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.bonus-title {
  font-size: 17px;
}

.bonus-subtitle {
  font-size: 13px;
}

#turboButton {
  transition:
    all 0.2s ease,
    box-shadow 0.25s ease;
}

#turboButton.active {
  color: #fff5b8;

  border-color: #ffcc00;

  background:
    linear-gradient(
      135deg,
      rgba(255,180,0,0.18),
      rgba(255,120,0,0.12)
    );

  box-shadow:
    0 0 14px rgba(255,200,0,0.55),
    0 0 28px rgba(255,140,0,0.35),
    inset 0 0 10px rgba(255,220,120,0.22);

  text-shadow:
    0 0 10px #ffcc00,
    0 0 18px #ff9900;
}

.free-spins-won-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;

  background:
    radial-gradient(circle at center,
      rgba(0, 255, 213, 0.16),
      rgba(0, 0, 0, 0.45));
}

.free-spins-won-box {
  padding: 44px 70px;

  border-radius: 34px;

  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(60, 0, 90, 0.95),
      rgba(0, 0, 0, 0.92)
    );

  border: 3px solid #00ffd5;

  box-shadow:
    0 0 22px #00ffd5,
    0 0 58px rgba(255, 0, 255, 0.65),
    inset 0 0 28px rgba(0, 255, 213, 0.16);

  animation: freeSpinPop 0.55s ease, freeSpinPulse 0.9s ease-in-out infinite;
}

.free-spins-won-title {
  font-size: 58px;
  font-weight: 900;

  color: #ffd700;

  text-shadow:
    0 0 18px #ffd700,
    0 0 44px #ff00ff;
}

.free-spins-won-amount {
  margin-top: 10px;

  font-size: 72px;
  font-weight: 900;

  color: #00ffd5;

  text-shadow:
    0 0 20px #00ffd5,
    0 0 52px #00ffd5;
}

.free-spins-won-subtitle {
  margin-top: 8px;

  font-size: 24px;
  font-weight: 800;

  color: white;

  text-shadow:
    0 0 14px #ff00ff;
}

@keyframes freeSpinPop {
  0% {
    transform: scale(0.45) rotate(-6deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.12) rotate(2deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes freeSpinPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

.online-players {
  animation: onlineGlowPulse 2.4s ease-in-out infinite;
}

.online-players {
  margin-top: 16px;

  min-width: 220px;
  padding: 12px 22px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(0,255,140,0.14),
      rgba(0,255,255,0.08)
    );

  border: 2px solid rgba(0,255,140,0.65);

  box-shadow:
    0 0 16px rgba(0,255,140,0.35),
    0 0 32px rgba(0,255,255,0.18),
    inset 0 0 12px rgba(0,255,140,0.12);

  color: #8dffb2;

  font-size: 18px;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-shadow:
    0 0 10px rgba(0,255,140,0.8);

  animation: onlineGlowPulse 2.2s ease-in-out infinite;
}

.online-players::before {
  content: "";

  width: 12px;
  height: 12px;

  border-radius: 999px;

  background: #57ff9f;

  box-shadow:
    0 0 12px #57ff9f,
    0 0 24px rgba(87,255,159,0.9);
}

.feed-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lootbox-overlay {
  background:
    radial-gradient(circle at center,
      rgba(255, 0, 255, 0.22),
      rgba(0, 0, 0, 0.78));
  backdrop-filter: blur(5px);
}

.lootbox-light {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(255, 215, 0, 0.28),
      rgba(255, 0, 255, 0.18),
      transparent 68%);

  animation: lootboxLightPulse 1.6s ease-in-out infinite;
}

.lootbox-chest {
  position: relative;
  z-index: 2;

  font-size: 118px;

  filter:
    drop-shadow(0 0 18px #ffd700)
    drop-shadow(0 0 42px #ff00ff);
}

.lootbox-drop-in {
  animation: lootboxDropIn 0.55s cubic-bezier(.18,.89,.32,1.28);
}

.lootbox-shake {
  animation: lootboxShake 0.18s ease-in-out infinite;
}

.lootbox-chest.opening {
  animation: lootboxOpenPop 0.45s ease forwards;
}

.lootbox-card {
  z-index: 4;
}

.lootbox-rise {
  animation: lootboxCardRise 0.75s cubic-bezier(.2,.9,.25,1.25);
}

.lootbox-card-front,
.lootbox-card-back {
  box-shadow:
    0 0 24px rgba(255, 0, 255, 0.75),
    0 0 58px rgba(255, 215, 0, 0.32),
    inset 0 0 22px rgba(255, 255, 255, 0.06);
}

.lootbox-card-shimmer {
  animation:
    lootboxShimmerSweep 1.15s linear infinite,
    lootboxRarityPulse 1.8s ease-in-out infinite;
}

@keyframes lootboxDropIn {
  0% {
    transform: translateY(-220px) scale(0.4) rotate(-14deg);
    opacity: 0;
  }

  70% {
    transform: translateY(14px) scale(1.14) rotate(4deg);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes lootboxShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-6px, 2px) rotate(-5deg); }
  50% { transform: translate(5px, -2px) rotate(4deg); }
  75% { transform: translate(-3px, -1px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes lootboxOpenPop {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  60% {
    transform: scale(1.35);
    opacity: 1;
  }

  100% {
    transform: scale(0.75);
    opacity: 0;
  }
}

@keyframes lootboxCardRise {
  0% {
    transform: translateY(160px) scale(0.55) rotate(-8deg);
    opacity: 0;
  }

  70% {
    transform: translateY(-18px) scale(1.08) rotate(2deg);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
    opacity: 1;
  }
}

  .lootbox-card.lootbox-rise,
  .lootbox-card.lootbox-card-ready {
    transform: translateY(0) scale(1) rotate(0);
}

@keyframes lootboxLightPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes lootboxShimmerSweep {
  0% {
    transform: translateX(-140%) skewX(-18deg);
  }

  100% {
    transform: translateX(140%) skewX(-18deg);
  }
}

@keyframes lootboxRarityPulse {
  0%, 100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

#lootboxOverlay .lootbox-card {
  position: absolute !important;
  left: 50%;
  top: 50%;

  width: 360px;
  height: 500px;

  transform: translate(-50%, -50%);
  z-index: 4;
  perspective: 1000px;
  cursor: pointer;
}

#lootboxOverlay .lootbox-card.lootbox-rise {
  animation: lootboxCardRiseCentered 0.75s cubic-bezier(.2,.9,.25,1.25) forwards;
}

#lootboxOverlay .lootbox-card.lootbox-card-ready {
  transform: translate(-50%, -50%);
}

@keyframes lootboxCardRiseCentered {
  0% {
    transform: translate(-50%, calc(-50% + 160px)) scale(0.55) rotate(-8deg);
    opacity: 0;
  }

  70% {
    transform: translate(-50%, calc(-50% - 18px)) scale(1.08) rotate(2deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0);
    opacity: 1;
  }
}

.common-bg {
  background:
    radial-gradient(circle at center,
      rgba(255,255,255,0.08),
      rgba(0,0,0,0.82));
}

.rare-bg {
  background:
    radial-gradient(circle at center,
      rgba(0,255,255,0.18),
      rgba(0,0,0,0.84));
}

.epic-bg {
  background:
    radial-gradient(circle at center,
      rgba(180,0,255,0.22),
      rgba(0,0,0,0.86));
}

.legendary-bg {
  background:
    radial-gradient(circle at center,
      rgba(255,180,0,0.28),
      rgba(0,0,0,0.88));
}

.mythic-bg {
  background:
    radial-gradient(circle at center,
      rgba(255,0,255,0.32),
      rgba(0,0,0,0.92));
}

.mythic-flash::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(circle,
      rgba(255,0,255,0.45),
      transparent 70%);

  pointer-events: none;
  z-index: 99999;

  animation: mythicFlash 0.85s ease-out;
}

@keyframes mythicFlash {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.loot-particle {
  position: fixed;

  width: 10px;
  height: 10px;

  border-radius: 50%;
  pointer-events: none;

  z-index: 99999;

  box-shadow:
    0 0 12px currentColor,
    0 0 24px currentColor;

  animation: lootParticleFly 1.4s ease-out forwards;
}

@keyframes lootParticleFly {
  0% {
    transform: translate(0,0) scale(0.4);
    opacity: 1;
  }

  100% {
    transform:
      translate(var(--x), var(--y))
      scale(1.4);

    opacity: 0;
  }
}

.jackpot-screen-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999999;

  background:
    radial-gradient(circle,
      rgba(255, 215, 0, 0.55),
      rgba(255, 0, 255, 0.28),
      transparent 72%);

  animation: jackpotScreenFlash 1.2s ease-out forwards;
}

@keyframes jackpotScreenFlash {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.jackpot-box {
  animation:
    jackpotPop 0.5s ease,
    jackpotGlow 0.9s ease-in-out infinite,
    jackpotBoxPulse 1.2s ease-in-out infinite;
}

@keyframes jackpotBoxPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

.slot.spinning {
  animation: reelSpinJuicy 0.14s linear infinite;
  filter:
    blur(1.8px)
    brightness(1.25);
  opacity: 0.78;
}

.slot.reel-stop {
  animation: reelStopJuicy 0.42s cubic-bezier(.2,.9,.2,1.25);
}

.slot.reel-snap {
  box-shadow:
    0 0 18px rgba(255, 215, 0, 0.7),
    0 0 34px rgba(255, 0, 255, 0.4),
    inset 0 0 14px rgba(255, 255, 255, 0.12);
}

@keyframes reelSpinJuicy {
  0% {
    transform: translateY(-12px) scale(0.96);
  }

  50% {
    transform: translateY(12px) scale(1.03);
  }

  100% {
    transform: translateY(-12px) scale(0.96);
  }
}

@keyframes reelStopJuicy {
  0% {
    transform: translateY(-28px) scale(0.94);
  }

  55% {
    transform: translateY(10px) scale(1.06);
  }

  78% {
    transform: translateY(-4px) scale(0.99);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.chat-panel {
  margin-top: 18px;
  width: 320px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(20, 0, 30, 0.9);
  border: 2px solid #ff00ff;
  box-shadow: 0 0 18px #ff00ff;
}

.chat-panel h2 {
  margin: 0 0 12px;
  color: #ffd700;
}

.chat-messages {
  height: 180px;
  overflow-y: auto;
  text-align: left;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
}

.chat-message {
  margin-bottom: 8px;
  font-size: 14px;
  color: #fff;
}

.chat-user {
  color: #ffd700;
  font-weight: 800;
}

.chat-text {
  color: #00ffd5;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chat-input-row input {
  flex: 1;
  min-width: 0;
}

.chat-input-row button {
  padding: 10px 12px;
}

.chat-big {
  border-left: 3px solid #00ffd5;
  padding-left: 8px;
  text-shadow: 0 0 8px rgba(0,255,213,0.65);
}

.chat-mega {
  border-left: 3px solid #ff7a00;
  padding-left: 8px;
  text-shadow: 0 0 8px rgba(255,122,0,0.75);
}

.chat-fat {
  border-left: 3px solid #ff00ff;
  padding-left: 8px;
  text-shadow:
    0 0 8px rgba(255,0,255,0.8),
    0 0 14px rgba(255,215,0,0.45);
}

.chat-jackpot {
  border-left: 3px solid #ffd700;
  padding-left: 8px;
  background: rgba(255,215,0,0.08);
  box-shadow: inset 0 0 12px rgba(255,215,0,0.18);
}

.chat-mythic {
  border-left: 3px solid #ff00ff;
  padding-left: 8px;
  background:
    linear-gradient(
      90deg,
      rgba(255,0,255,0.12),
      rgba(0,255,255,0.08)
    );
}

.chat-legendary {
  border-left: 3px solid #ffd700;
  padding-left: 8px;
}

.chat-role-player {
  color: #ffd700;
}

.chat-role-vip {
  color: #00ffd5;
  text-shadow:
    0 0 8px #00ffd5,
    0 0 14px rgba(0, 255, 213, 0.65);
}

.chat-role-mod {
  color: #57ff9f;
  text-shadow:
    0 0 8px #57ff9f,
    0 0 16px rgba(87, 255, 159, 0.65);
}

.chat-role-admin {
  color: #ff4d4d;
  text-shadow:
    0 0 8px #ff4d4d,
    0 0 18px rgba(255, 0, 0, 0.75);
}

.chat-role-whale {
  color: #4da6ff;
  text-shadow:
    0 0 8px #4da6ff,
    0 0 18px rgba(77, 166, 255, 0.75);
}

.chat-role-lucky {
  color: #ffd700;
  text-shadow:
    0 0 8px #ffd700,
    0 0 18px rgba(255, 215, 0, 0.75);
}

.chat-role-mythic {
  color: #ff00ff;
  text-shadow:
    0 0 8px #ff00ff,
    0 0 16px #00ffd5,
    0 0 26px rgba(255, 0, 255, 0.8);
}

.chat-emote {
  height: 28px;
  max-width: 90px;
  vertical-align: middle;
  object-fit: contain;
  margin: 0 2px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 42px;
    margin-top: 18px;
  }

  .coins-display {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .jackpot-display {
    font-size: 20px;
    padding: 10px 18px;
    margin-bottom: 14px;
  }

  .main-game-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;

    max-width: 100vw;
    margin: 16px auto 40px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .slot-center {
    width: 100%;
    order: 1;
  }

  .leaderboard-panel {
    order: 2;
  }

  .feed-wrapper {
    order: 3;
  }

  .slot-machine {
    width: 100%;
    max-width: 96vw;
    padding: 10px;
    border-radius: 22px;
    box-sizing: border-box;
  }

  .slot-grid {
    grid-template-columns: repeat(5, 17vw);
    grid-template-rows: repeat(3, 17vw);
    gap: 7px;
    justify-content: center;
  }

  .slot {
    width: 17vw;
    height: 17vw;
    font-size: 9vw;
    border-radius: 12px;
  }

  .spin-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .spin-button {
    min-width: 150px;
    height: 52px;
    font-size: 19px;
  }

  .spin-controls select {
    min-width: 120px;
    height: 52px;
  }

  .auto-controls-bar {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 96vw;
    gap: 8px;
    padding: 10px;
  }

  .auto-controls-bar button {
    min-width: 58px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .auto-divider {
    display: none;
  }

  .auto-spin-pill {
    min-width: 70px;
  }

  .bonus-controls {
    flex-wrap: wrap;
    gap: 12px;
  }

  .bonus-card {
    width: 145px !important;
    padding: 12px 10px !important;
  }

  .bonus-title {
    font-size: 15px;
  }

  .bonus-subtitle {
    font-size: 12px;
  }

  #result {
    font-size: 24px;
    margin-top: 14px;
  }

  .win-details {
    max-width: 92vw;
    font-size: 13px;
  }

  .side-panel {
    width: 94vw;
    height: auto;
    min-height: unset;
    padding: 18px;
    border-radius: 24px;
  }

  .side-panel h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  #leaderboard,
  .live-feed {
    max-height: 360px;
  }

  .chat-panel {
    width: 94vw;
    box-sizing: border-box;
  }

  .chat-input-row {
    flex-direction: column;
  }

  .chat-input-row input,
  .chat-input-row button {
    width: 100%;
  }

  .profile-avatar-button {
    width: 54px;
    height: 54px;
  }

  .profile-menu {
    top: 66px;
    right: 0;
  }
}

.site-logo {
  width: min(520px, 82vw);
  height: auto;

  display: block;

  margin: 10px auto 4px;

  filter:
    drop-shadow(0 0 14px #ff00ff)
    drop-shadow(0 0 26px rgba(255, 215, 0, 0.45));
}

.top-casino-bar {
  position: relative;

  width: 100%;
  height: 92px;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  margin-bottom: 60px;

  overflow: visible;
}

.top-bar-glow {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 215, 0, 0.18),
      transparent 45%
    );

  pointer-events: none;
}

.site-logo {
  position: relative;
  z-index: 5;

  width: min(270px, 48vw);
  height: auto;

  margin-top: -6px;

  filter:
    drop-shadow(0 0 12px #ff00ff)
    drop-shadow(0 0 22px rgba(255, 215, 0, 0.5));
}

.top-casino-bar::before {
  content: "";

  position: absolute;
  top: 22px;
  left: 0;

  width: 100%;
  height: 64px;

  background:
    linear-gradient(
      180deg,
      rgba(85, 0, 120, 0.95),
      rgba(50, 0, 80, 0.92)
    );

  border-top: 2px solid rgba(255, 0, 255, 0.75);

  box-shadow:
    0 0 24px rgba(255, 0, 255, 0.45),
    inset 0 0 18px rgba(255, 255, 255, 0.04);

  z-index: 1;
}

.top-casino-bar::after {
  content: "";

  position: absolute;

  top: 22px;
  left: 50%;

  transform: translateX(-50%);

  width: 420px;
  height: 92px;

  background:
    linear-gradient(
      180deg,
      rgba(85, 0, 120, 1),
      rgba(50, 0, 80, 0.96)
    );

  border:
    2px solid rgba(255, 0, 255, 0.7);

  border-top: none;

  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;

  box-shadow:
    0 0 26px rgba(255, 0, 255, 0.42),
    inset 0 0 20px rgba(255, 215, 0, 0.06);

  z-index: 2;
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.leaderboard-info {
  min-width: 0;
  flex: 1;
}

.leaderboard-coins {
  font-size: 13px;
  font-weight: 900;
  color: #00ffd5;
  white-space: nowrap;
}

.leaderboard-left {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.leaderboard-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.leaderboard-name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-coins {
  font-size: 13px;
  font-weight: 900;
  color: #00ffd5;
  white-space: nowrap;
}

.leaderboard-title {
  font-size: 11px;
  line-height: 1.05;
}