:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --gold: #f4a261;
  --green: #2ecc71;
  --text: #e8e8e8;
  --text-dim: #a0a0a0;
  --border: rgba(233, 69, 96, 0.2);
  --card-bg: rgba(22, 33, 62, 0.6);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: rgba(26, 26, 46, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo svg {
  filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.4));
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--highlight) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.age-badge {
  background: linear-gradient(135deg, var(--highlight) 0%, #c23a4d 100%);
  border: 2px solid var(--highlight);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
  position: relative;
  overflow: hidden;
}

.age-badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  position: relative;
  z-index: 1;
}

.age-number {
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.age-text {
  font-size: 7px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.balance-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}

.balance-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Courier New', monospace;
}

.main-content {
  padding: 48px 0;
}

.hero-section {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(15, 52, 96, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-disclaimer {
  margin-top: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(244, 162, 97, 0.2) 100%);
  border: 3px solid var(--highlight);
  border-radius: 12px;
  padding: 16px 24px;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: var(--highlight);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  }
  50% {
    border-color: var(--gold);
    box-shadow: 0 4px 30px rgba(244, 162, 97, 0.5);
  }
}

.disclaimer-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 15px;
  color: var(--text);
  text-align: left;
  line-height: 1.5;
}

.disclaimer-text strong {
  color: var(--gold);
  font-weight: 800;
}

.quick-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-nav-link {
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quick-nav-link:hover {
  background: var(--highlight);
  border-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.games-section {
  margin-bottom: 64px;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
  font-weight: 700;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.games-grid.single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px var(--shadow);
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 50px rgba(233, 69, 96, 0.4);
  border-color: var(--highlight);
}

.game-card-header {
  padding: 20px 24px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(233, 69, 96, 0.15) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.game-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 15px rgba(233, 69, 96, 0.6));
  animation: float 3s ease-in-out infinite;
}

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

.game-card-title {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 6px;
}

.game-card-body {
  padding: 16px 24px;
}

.game-card-description {
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 14px;
}

.game-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 6px;
  border-left: 2px solid var(--highlight);
}

.feature-icon {
  font-size: 16px;
}

.game-card-footer {
  padding: 16px 24px 20px;
  text-align: center;
}

.btn-play {
  display: inline-block;
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--highlight) 0%, #c23a4d 100%);
  color: white;
  border: 2px solid var(--highlight);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(233, 69, 96, 0.6);
}

.trust-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 48px 32px;
  margin-bottom: 64px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.trust-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--text);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.trust-item {
  text-align: center;
  padding: 24px;
  background: rgba(233, 69, 96, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  border-color: var(--highlight);
  background: rgba(233, 69, 96, 0.1);
}

.trust-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.4));
}

.trust-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--gold);
}

.trust-item p {
  color: var(--text-dim);
  font-size: 14px;
}

.game-section {
  margin-bottom: 48px;
}

.game-title {
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.game-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.game-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15) 0%, rgba(244, 162, 97, 0.15) 100%);
  border: 2px solid var(--highlight);
  border-radius: 10px;
  padding: 12px 20px;
  margin: 0 auto 32px;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}

.game-disclaimer-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.game-disclaimer-text {
  font-size: 14px;
  color: var(--text);
  text-align: left;
}

.game-disclaimer-text strong {
  color: var(--gold);
  font-weight: 700;
}

.game-breadcrumb {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-dim);
}

.game-breadcrumb a {
  color: var(--highlight);
  text-decoration: none;
  transition: color 0.3s ease;
}

.game-breadcrumb a:hover {
  color: var(--gold);
}

.game-container {
  max-width: 900px;
  margin: 0 auto;
}

.joker-game-area {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px var(--shadow);
}

.joker-multiplier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.joker-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.6));
  animation: jokerSpin 3s ease-in-out infinite;
}

@keyframes jokerSpin {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.1); }
}

.multiplier-text {
  font-size: 64px;
  font-weight: 900;
  color: var(--highlight);
  text-shadow: 0 0 30px rgba(233, 69, 96, 0.8);
  font-family: 'Courier New', monospace;
}

.joker-status {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
  min-height: 28px;
}

.joker-chart {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.joker-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.bet-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bet-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.bet-input {
  width: 80px;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.bet-input:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
}

.bet-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--highlight) 0%, #c23a4d 100%);
  color: white;
  border: 2px solid var(--highlight);
  grid-column: 1 / -1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(233, 69, 96, 0.6);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-cashout {
  background: linear-gradient(135deg, var(--green) 0%, #27ae60 100%);
  color: white;
  border: 2px solid var(--green);
  grid-column: 1 / -1;
  animation: cashoutPulse 1s ease-in-out infinite;
}

@keyframes cashoutPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 30px rgba(46, 204, 113, 0.8);
    transform: scale(1.02);
  }
}

.btn-cashout:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px rgba(46, 204, 113, 0.9);
}

.joker-history {
  background: rgba(233, 69, 96, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.joker-history h3 {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: center;
}

.crash-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.crash-history-item {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(233, 69, 96, 0.1);
  color: var(--highlight);
  border: 1px solid var(--border);
}

.crash-history-item.rare {
  background: rgba(46, 204, 113, 0.2);
  color: var(--green);
  border-color: var(--green);
}

.crash-history-item.epic {
  background: rgba(244, 162, 97, 0.2);
  color: var(--gold);
  border-color: var(--gold);
}

.crash-history-item.legendary {
  background: rgba(233, 69, 96, 0.3);
  color: #ff6b8a;
  border-color: var(--highlight);
  animation: legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
  }
}

.game-info-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 48px;
  backdrop-filter: blur(10px);
}

.game-info-panel h3 {
  font-size: 28px;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(233, 69, 96, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  border-color: var(--highlight);
  background: rgba(233, 69, 96, 0.1);
}

.info-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--highlight);
  line-height: 1;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--gold);
}

.info-text p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer {
  background: rgba(26, 26, 46, 0.95);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
  backdrop-filter: blur(15px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--highlight);
}

.footer-section p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 8px;
}

.disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
}

.info-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 48px 32px;
  margin-bottom: 64px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.info-section h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--text);
}

.info-section h3 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--gold);
}

.info-section p {
  margin-bottom: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

.info-section ul {
  list-style-position: inside;
  margin-bottom: 16px;
  color: var(--text-dim);
}

.info-section ul li {
  margin-bottom: 8px;
}

.info-box {
  background: rgba(233, 69, 96, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.info-box h3 {
  color: var(--gold);
  margin-top: 0;
}

.info-box p {
  margin-bottom: 12px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .game-title {
    font-size: 32px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .joker-game-area {
    padding: 16px;
    min-height: 350px;
  }

  .joker-icon {
    font-size: 60px;
  }

  .multiplier-text {
    font-size: 48px;
  }

  .joker-status {
    font-size: 16px;
  }

  .joker-chart {
    height: 200px;
  }

  .joker-controls {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-cashout {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .header-right {
    gap: 6px;
  }

  .age-badge {
    padding: 3px 6px;
  }

  .age-number {
    font-size: 14px;
  }

  .age-text {
    font-size: 6px;
  }

  .balance-display {
    gap: 4px;
    padding: 8px 12px;
  }

  .balance-label {
    font-size: 12px;
  }

  .balance-amount {
    font-size: 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .disclaimer-badge {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    text-align: center;
  }

  .disclaimer-icon {
    font-size: 24px;
  }

  .disclaimer-text {
    font-size: 13px;
    text-align: center;
  }

  .game-disclaimer {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    text-align: center;
  }

  .game-disclaimer-icon {
    font-size: 20px;
  }

  .game-disclaimer-text {
    font-size: 12px;
    text-align: center;
  }

  .hero-section {
    padding: 40px 16px;
  }

  .quick-nav {
    gap: 8px;
  }

  .quick-nav-link {
    padding: 8px 16px;
    font-size: 12px;
  }

  .game-title {
    font-size: 28px;
  }

  .game-subtitle {
    font-size: 14px;
  }

  .joker-game-area {
    padding: 12px;
    min-height: 300px;
  }

  .joker-icon {
    font-size: 48px;
  }

  .multiplier-text {
    font-size: 36px;
  }

  .joker-status {
    font-size: 14px;
  }

  .joker-chart {
    height: 150px;
  }

  .bet-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.paylines-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}

.slots-game-area {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px var(--shadow);
}

.slots-machine {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.machine-frame {
  background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
  border: 3px solid var(--highlight);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(233, 69, 96, 0.3);
  overflow: hidden;
}

.machine-lights {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, var(--highlight) 0%, #c23a4d 100%);
  border-bottom: 2px solid var(--gold);
}

.light {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.light.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold);
}

.reel-container {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(26, 26, 46, 0.8) 100%);
  padding: 24px 16px;
}

.payline-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.payline-indicator.line-top {
  top: 50px;
}

.payline-indicator.line-middle {
  top: 98px;
}

.payline-indicator.line-bottom {
  top: 146px;
}

.payline-indicator.line-diagonal-down {
  top: 50%;
  height: 200px;
  width: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(25deg);
  transform-origin: center;
}

.payline-indicator.line-diagonal-up {
  top: 50%;
  height: 200px;
  width: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(-25deg);
  transform-origin: center;
}

.payline-indicator.active {
  background: rgba(244, 162, 97, 0.4);
  box-shadow: 0 0 10px rgba(244, 162, 97, 0.6);
}

.payline-indicator.winning {
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
  animation: paylineFlash 0.5s ease infinite;
}

@keyframes paylineFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.slots-reels {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.slot-reel {
  width: 110px;
  height: 288px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 4px 15px rgba(233, 69, 96, 0.4);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.symbol-slot {
  width: 110px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  user-select: none;
  filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.6));
}

.slot-reel.stopped {
  animation: reelBounce 0.3s ease;
}

.slot-reel.jackpot-glow {
  animation: jackpotGlow 0.5s ease infinite;
  border-color: var(--gold);
}

@keyframes reelBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes jackpotGlow {
  0%, 100% {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 162, 97, 0.8);
  }
  50% {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(244, 162, 97, 1);
  }
}


.reel-glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 15;
}

.game-status-area {
  margin-top: 16px;
  min-height: 80px;
}

.slots-status {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.slots-win-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(244, 162, 97, 0.8);
}

.slots-win-lines {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.slots-win-amount.win-animation {
  animation: winPulse 0.5s ease;
}

@keyframes winPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.slots-controls {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.controls-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.bet-presets {
  display: flex;
  gap: 6px;
  flex: 1;
}

.btn-bet-preset {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-bet-preset:hover:not(:disabled) {
  background: var(--highlight);
  border-color: var(--highlight);
  transform: translateY(-2px);
}

.btn-bet-preset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-spin {
  font-size: 18px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--highlight) 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 25px rgba(244, 162, 97, 0.5);
}

.btn-spin:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(244, 162, 97, 0.7);
}

.btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.slots-paytable {
  background: rgba(233, 69, 96, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 600px;
}

.slots-paytable h3 {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.paytable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.paytable-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.paytable-item:hover {
  transform: translateY(-2px);
  border-color: var(--highlight);
}

.paytable-item.jackpot {
  background: rgba(244, 162, 97, 0.2);
  border-color: var(--gold);
  grid-column: 1 / -1;
}

.paytable-item.legendary {
  background: rgba(233, 69, 96, 0.2);
  border-color: var(--highlight);
}

.paytable-item.epic {
  background: rgba(244, 162, 97, 0.15);
  border-color: var(--gold);
}

.paytable-item.rare {
  background: rgba(46, 204, 113, 0.15);
  border-color: var(--green);
}

.paytable-combo {
  font-size: 20px;
}

.paytable-payout {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 768px) {
  .game-header {
    padding: 10px 16px;
  }

  .slots-game-area {
    padding: 16px;
  }

  .reel-container {
    padding: 20px 12px;
  }

  .slots-reels {
    gap: 10px;
  }

  .slot-reel {
    width: 90px;
    height: 234px;
  }

  .symbol-slot {
    width: 90px;
    height: 78px;
    font-size: 42px;
  }

  .payline-indicator.line-top {
    top: 42px;
  }

  .payline-indicator.line-middle {
    top: 80px;
  }

  .payline-indicator.line-bottom {
    top: 118px;
  }

  .game-status-area {
    min-height: 70px;
  }

  .slots-status {
    font-size: 14px;
  }

  .slots-win-amount {
    font-size: 22px;
  }

  .slots-win-lines {
    font-size: 11px;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bet-input-group {
    width: 100%;
  }

  .bet-presets {
    width: 100%;
  }

  .paytable-grid {
    grid-template-columns: 1fr;
  }

  .paytable-item.jackpot {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .game-header {
    padding: 8px 12px;
    font-size: 13px;
  }

  .balance-amount {
    font-size: 16px;
  }

  .paylines-info {
    font-size: 12px;
  }

  .slots-game-area {
    padding: 12px;
  }

  .light {
    width: 12px;
    height: 12px;
  }

  .reel-container {
    padding: 16px 8px;
  }

  .slots-reels {
    gap: 8px;
  }

  .slot-reel {
    width: 75px;
    height: 195px;
  }

  .symbol-slot {
    width: 75px;
    height: 65px;
    font-size: 34px;
  }

  .payline-indicator.line-top {
    top: 35px;
  }

  .payline-indicator.line-middle {
    top: 67px;
  }

  .payline-indicator.line-bottom {
    top: 99px;
  }

  .game-status-area {
    min-height: 60px;
    margin-top: 12px;
  }

  .slots-status {
    font-size: 13px;
  }

  .slots-win-amount {
    font-size: 20px;
  }

  .slots-win-lines {
    font-size: 10px;
  }

  .bet-input {
    width: 70px;
    font-size: 14px;
  }

  .btn-bet-preset {
    padding: 8px 10px;
    font-size: 12px;
  }

  .btn-spin {
    font-size: 16px;
    padding: 12px 32px;
  }

  .paytable-combo {
    font-size: 16px;
  }

  .paytable-payout {
    font-size: 14px;
  }
}

.resources-section {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15) 0%, rgba(244, 162, 97, 0.15) 100%);
  border: 2px solid var(--highlight);
  border-radius: 20px;
  padding: 40px 32px;
  margin-top: 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(233, 69, 96, 0.3), inset 0 0 40px rgba(233, 69, 96, 0.1);
}

.resources-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 2px 15px rgba(244, 162, 97, 0.5);
}

.resources-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.resources-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(26, 26, 46, 0.8);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.resource-link:hover {
  transform: translateY(-4px);
  border-color: var(--highlight);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
  background: rgba(233, 69, 96, 0.15);
}

.resource-icon {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(244, 162, 97, 0.6));
}

.resource-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.resource-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.resource-desc {
  font-size: 14px;
  color: var(--text-dim);
  display: block;
}

@media (max-width: 768px) {
  .resources-section {
    padding: 32px 24px;
    margin-top: 40px;
  }

  .resources-title {
    font-size: 26px;
  }

  .resources-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .resources-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resource-link {
    padding: 20px 16px;
  }

  .resource-icon {
    font-size: 40px;
  }

  .resource-name {
    font-size: 18px;
  }

  .resource-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .resources-section {
    padding: 24px 16px;
    margin-top: 32px;
  }

  .resources-title {
    font-size: 22px;
  }

  .resources-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .resource-link {
    padding: 16px 12px;
  }

  .resource-icon {
    font-size: 36px;
  }

  .resource-name {
    font-size: 16px;
  }

  .resource-desc {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
