/* Design tokens — Amunra Casino */
:root {
  --bg-primary: #2B0F07;
  --bg-secondary: #3A140B;
  --accent-gold: #D4A24C;
  --bright-gold: #F4C76A;
  --cta-green: #2FBF9B;
  --cta-green-start: #34D1B2;
  --cta-green-end: #1FA184;
  --text-light: #F5E6C8;
  --text-muted: #BFA98A;
  --gold-gradient: linear-gradient(180deg, #F4C76A 0%, #D4A24C 100%);
  --cta-gradient: linear-gradient(180deg, #34D1B2 0%, #1FA184 100%);
  --header-height: 76px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --transition: 0.25s ease;
  --shadow-glow: 0 0 20px rgba(212, 162, 76, 0.35);
  --shadow-cta: 0 4px 24px rgba(47, 191, 155, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(58, 20, 11, 0.98) 0%, rgba(43, 15, 7, 0.95) 100%);
  border-bottom: 1px solid rgba(212, 162, 76, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}
.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(212, 162, 76, 0.5);
}

.search-wrap {
  flex: 0 1 420px;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap .icon-search {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 46px;
  border: 1px solid rgba(212, 162, 76, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(43, 15, 7, 0.8);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.btn-ghost:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--bright-gold);
  color: var(--bright-gold);
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
}
.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 24px rgba(212, 162, 76, 0.5);
}
.btn-cta {
  background: var(--cta-gradient);
  color: #fff;
  padding: 14px 32px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-cta);
  border: none;
  animation: cta-pulse 2.5s ease-in-out infinite;
}
.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 32px rgba(47, 191, 155, 0.5);
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--shadow-cta); }
  50% { box-shadow: 0 4px 28px rgba(47, 191, 155, 0.55); }
}

/* Layout */
.layout {
  display: flex;
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* Sidebar */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-color: var(--bg-secondary);
  background-image: linear-gradient(135deg, rgba(58, 20, 11, 0.97) 0%, rgba(43, 15, 7, 0.99) 50%, rgba(212, 162, 76, 0.08) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slide .hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero-overlay { z-index: 1; }
.hero-slide.active {
  position: relative;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 15, 7, 0.75) 0%, rgba(58, 20, 11, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.hero-text {
  text-align: center;
  max-width: 720px;
}
.hero-text h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hero-text h1 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--bright-gold);
  text-shadow: 0 0 30px rgba(244, 199, 106, 0.4);
  letter-spacing: 0.02em;
}
.hero-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-cta-wrap .wings {
  display: inline-flex;
  color: var(--accent-gold);
  opacity: 0.9;
}
.hero-cta-wrap .wings svg {
  width: 40px;
  height: 28px;
}
.hero-block {
  position: relative;
  min-height: 380px;
  background: var(--bg-secondary);
}
.hero-block-overlay {
  position: relative;
  z-index: 1;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(43, 15, 7, 0.75) 0%, rgba(58, 20, 11, 0.5) 100%);
  text-align: center;
}
.hero-block-inner { max-width: 720px; margin: 0 auto; }
.hero-block-sub {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hero-block-title {
  margin: 0 0 28px;
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--bright-gold);
  text-shadow: 0 0 30px rgba(244, 199, 106, 0.4);
  letter-spacing: 0.02em;
}
.hero-block .hero-cta-wrap { margin-top: 0; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
  cursor: pointer;
}
.hero-dots .dot.active {
  background: var(--accent-gold);
  opacity: 1;
  box-shadow: 0 0 12px var(--accent-gold);
}

/* Category tabs */
.tabs-wrap {
  padding: 20px 24px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.tabs {
  display: inline-flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-secondary);
}
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 3px; }
.tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 162, 76, 0.35);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.tab:hover {
  border-color: var(--accent-gold);
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
}
.tab.active {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
}

/* Games section */
.games-section {
  padding: 32px 24px 48px;
}
.games-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.game-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}
.game-card::before {
  content: '';
  display: block;
  padding-bottom: 120%;
}
.game-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.game-card:hover img {
  transform: scale(1.05);
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.game-card:hover .game-overlay {
  opacity: 1;
}
.play-btn {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--cta-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-cta);
  transition: var(--transition);
}
.game-card:hover .play-btn {
  transform: scale(1.05);
}

/* Page content (article) */
.page-intro {
  padding-top: 32px;
  padding-bottom: 8px;
}
.page-intro p {
  margin: 0;
}
.page-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}
.page-content h1 {
  margin: 0 0 1.25em;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.25;
}
.page-content h2 {
  margin: 2em 0 0.75em;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.page-content h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bright-gold);
}
.page-content p {
  margin: 0 0 1em;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.page-content ul {
  margin: 0 0 1em;
  padding-left: 1.35em;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.page-content li { margin-bottom: 0.35em; }
.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border-radius: var(--radius-card);
  border: 1px solid rgba(212, 162, 76, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.content-table th,
.content-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 162, 76, 0.2);
  color: var(--text-light);
}
.content-table th {
  background: rgba(212, 162, 76, 0.12);
  color: var(--accent-gold);
  font-weight: 700;
}
.content-table tbody tr:hover {
  background: rgba(212, 162, 76, 0.06);
}
.content-table tbody tr:last-child td { border-bottom: none; }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(212, 162, 76, 0.2);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(212, 162, 76, 0.04) 0%, transparent 50%);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  max-width: 1400px;
  margin: 0 auto 40px;
}
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--bright-gold); }

.payments {
  max-width: 1400px;
  margin: 0 auto 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 162, 76, 0.15);
}
.payments-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.payments-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.payments-icons img {
  height: 28px;
  width: auto;
  max-width: 48px;
  opacity: 0.85;
  filter: brightness(0.9);
  transition: var(--transition);
}
.payments-icons img:hover {
  opacity: 1;
  filter: brightness(1.1);
}

.compliance {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.compliance .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.compliance p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(212, 162, 76, 0.15);
  box-shadow: var(--shadow-glow);
  color: var(--bright-gold);
}

/* Responsive */
@media (max-width: 1200px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .search-wrap { display: none; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero { min-height: 340px; }
  .hero-slides { min-height: 340px; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-cta-wrap .wings { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .games-section { padding: 24px 16px 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-buttons .btn { padding: 8px 14px; font-size: 0.7rem; }
}
@media (max-width: 480px) {
  .site-header { padding: 0 12px; }
  .tabs-wrap, .games-section { padding-left: 16px; padding-right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 16px 24px; }
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
