*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --accent-gold: #ffd700;
  --accent-gold-dark: #cc9900;
  --accent-red: #e63946;
  --accent-green: #2ecc71;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b8;
  --text-muted: #6c6c80;
  --border-color: #2a2a3e;
  --border-gold: rgba(255, 215, 0, 0.3);
  --gradient-gold: linear-gradient(135deg, #ffd700, #f0a500);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
  --gradient-card: linear-gradient(145deg, #1a1a2e, #16213e);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ffea80;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ===== HEADER ===== */
header {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.balance-display .coin {
  font-size: 0.75rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 80px 24px 24px;
  transition: right var(--transition);
  z-index: 1000;
  overflow-y: auto;
}

nav.open {
  right: 0;
}

nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.938rem;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.08);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 768px) {
  .header-inner {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: none;
  }

  nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
  }

  nav a {
    padding: 8px 14px;
    font-size: 0.813rem;
  }

  .nav-overlay {
    display: none;
  }
}

/* ===== MAIN ===== */
main {
  flex: 1;
}

.page-section {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .page-section {
    padding: 80px 0;
  }
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px 60px;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.85) 0%, rgba(26, 26, 46, 0.9) 100%),
    url('/social.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, -2%) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.hero h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.063rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.125rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.938rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #0a0a0f;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
  color: #0a0a0f;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.813rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.063rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.063rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.game-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.game-card-image.slot-bg {
  background: linear-gradient(135deg, #1a1a2e, #2a1a3e, #1a1a2e);
}

.game-card-image.wheel-bg {
  background: linear-gradient(135deg, #1a2a1e, #1a1a2e, #2a1a1e);
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-size: 1.063rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-card-body p {
  font-size: 0.813rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.game-card-body .btn {
  width: 100%;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.813rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.875rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0a0a0f;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== TRUST SECTION ===== */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 0.813rem;
  color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-dark);
  text-align: center;
  padding: 60px 16px;
}

.cta-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 2.5rem;
  }
}

/* ===== 18+ BADGE & DISCLAIMER ===== */
.age-18-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.age-18-badge .num {
  background: var(--accent-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.688rem;
}

.disclaimer-bar {
  background: rgba(255, 215, 0, 0.04);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: center;
}

.disclaimer-bar p {
  font-size: 0.688rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 16px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.813rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.688rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== RESPONSIBLE GAMING PAGE ===== */
.rg-hero {
  text-align: center;
  padding: 60px 16px;
  background: var(--gradient-dark);
}

.rg-hero h1 {
  font-size: 2rem;
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.rg-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.rg-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .rg-resources {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rg-resources {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rg-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.rg-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.rg-card p {
  font-size: 0.813rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rg-tips {
  list-style: none;
  margin-top: 24px;
}

.rg-tips li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.938rem;
  color: var(--text-secondary);
}

.rg-tips li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-form {
  max-width: 600px;
  margin: 32px auto 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.813rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.938rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b0b0b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.form-success h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== CONTENT PAGES (About, Terms, Privacy) ===== */
.content-page {
  padding: 60px 0;
}

.content-page h1 {
  font-size: 2rem;
  font-family: var(--font-display);
  margin-bottom: 24px;
}

.content-page h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--accent-gold);
}

.content-page h3 {
  font-size: 1.063rem;
  margin: 24px 0 8px;
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 0.938rem;
}

.content-page ul,
.content-page ol {
  color: var(--text-secondary);
  margin: 0 0 16px 20px;
  font-size: 0.938rem;
  line-height: 1.7;
}

.content-page li {
  margin-bottom: 8px;
}

.content-page .last-updated {
  font-size: 0.813rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
}

/* ===== GAME LOBBY ===== */
.lobby-hero {
  text-align: center;
  padding: 40px 16px;
  background: var(--gradient-dark);
}

.lobby-hero h1 {
  font-size: 1.75rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.lobby-hero p {
  color: var(--text-secondary);
  font-size: 0.938rem;
}

.games-lobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .games-lobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-lobby-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== SLOT MACHINE ===== */
.slot-page {
  padding: 20px 0;
}

.slot-container {
  max-width: 600px;
  margin: 0 auto;
}

.slot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.slot-controls .btn {
  min-width: 120px;
}

.bet-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
}

.bet-control button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.bet-control button:hover {
  background: var(--accent-gold);
  color: #0a0a0f;
}

.bet-control .bet-value {
  min-width: 60px;
  text-align: center;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.938rem;
}

.win-display {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  min-height: 48px;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transition: var(--transition);
}

.win-display.big-win {
  animation: winPulse 0.5s ease-in-out 3;
}

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

.slot-machine {
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  aspect-ratio: 5 / 3;
}

@media (min-width: 400px) {
  .slot-reels {
    gap: 8px;
  }
}

.reel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
}

.reel-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-out;
}

.reel.spinning .reel-inner {
  animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-33.33%); }
}

.reel.stop-1 .reel-inner {
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.reel.stop-2 .reel-inner {
  transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.reel.stop-3 .reel-inner {
  transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.reel.stop-4 .reel-inner {
  transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.reel.stop-5 .reel-inner {
  transition: transform 0.7s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.slot-symbol {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 400px) {
  .slot-symbol {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .slot-symbol {
    font-size: 2.25rem;
  }
}

.slot-symbol.win-highlight {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent-gold);
  animation: symbolWin 0.5s ease-in-out infinite alternate;
}

@keyframes symbolWin {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Paylines */
.paylines-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.payline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.payline-dot.active {
  background: var(--accent-gold);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* Win Lines Overlay */
.win-lines-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.win-line {
  position: absolute;
  height: 3px;
  background: rgba(255, 215, 0, 0.2);
  left: 0;
  right: 0;
}

.win-line.line-1 { top: 16.67%; }
.win-line.line-2 { top: 50%; transform: translateY(-50%); }
.win-line.line-3 { top: 83.33%; }

.payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-top: 12px;
}

.payout-table th,
.payout-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.payout-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.688rem;
  letter-spacing: 0.5px;
}

.payout-table td {
  color: var(--text-secondary);
}

.payout-table .sym {
  font-size: 1rem;
}

/* ===== WHEEL OF FORTUNE ===== */
.wheel-page {
  padding: 20px 0;
}

.wheel-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.wheel-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}

@media (min-width: 400px) {
  .wheel-wrapper {
    width: 340px;
    height: 340px;
  }
}

@media (min-width: 768px) {
  .wheel-wrapper {
    width: 400px;
    height: 400px;
  }
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  background: var(--bg-primary);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition);
  letter-spacing: 1px;
}

.wheel-spin-btn:hover {
  background: var(--accent-gold);
  color: #0a0a0f;
}

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

.wheel-result {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  min-height: 40px;
  margin-top: 12px;
}

/* ===== GAME HISTORY ===== */
.history-panel {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.history-panel h3 {
  font-size: 0.938rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-panel h3 button {
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.history-panel h3 button:hover {
  background: rgba(230, 57, 70, 0.1);
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.813rem;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item .game-name {
  color: var(--text-secondary);
}

.history-item .game-result {
  font-weight: 600;
}

.history-item .game-result.win {
  color: var(--accent-green);
}

.history-item .game-result.loss {
  color: var(--accent-red);
}

.history-item .game-time {
  font-size: 0.688rem;
  color: var(--text-muted);
}

.no-history {
  color: var(--text-muted);
  font-size: 0.813rem;
  text-align: center;
  padding: 20px 0;
}

/* ===== DAILY BONUS ===== */
.daily-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.daily-bonus:hover {
  background: rgba(255, 215, 0, 0.12);
}

.daily-bonus:disabled {
  opacity: 0.5;
  cursor: default;
}

.daily-bonus .bonus-icon {
  font-size: 1.25rem;
}

.daily-bonus .bonus-text {
  font-size: 0.813rem;
  font-weight: 600;
}

.daily-bonus .bonus-amount {
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: auto;
}

/* ===== RESPONSIVE HELPERS ===== */
.hidden-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block !important;
  }

  .hidden-desktop {
    display: none !important;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== BACK BUTTON ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.813rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* ===== AUTO SPIN ===== */
.auto-spin-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 20px;
}
