/* ===== AMUNRA CASINO — Design tokens ===== */
:root {
  --bg-primary: #2B0F07;
  --bg-secondary: #3A140B;
  --accent-gold: #D4A24C;
  --bright-gold: #F4C76A;
  --cta-green: #2FBF9B;
  --cta-green-from: #34D1B2;
  --cta-green-to: #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);
}

/* ===== Reset & base ===== */
*, *::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;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bright-gold); }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(58,20,11,0.98) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid rgba(212, 162, 76, 0.25);
  gap: 16px;
}
.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-right: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--bright-gold);
  filter: drop-shadow(0 0 8px rgba(212, 162, 76, 0.4));
}
.logo:hover { filter: drop-shadow(0 0 12px rgba(244, 199, 106, 0.5)); color: var(--bright-gold); }
/* If you add images/logo.svg, use: .logo { background: url('images/logo.svg') center/contain no-repeat; width:160px; text-indent:-9999px; font-size:0; } */
.search-wrap {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin: 0 12px;
}
.search-wrap .icon-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  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.5);
  border-radius: var(--radius-pill);
  background: rgba(43, 15, 7, 0.8);
  color: var(--text-light);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow 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;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.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: var(--shadow-glow);
  transform: scale(1.02);
}
.btn-cta {
  background: var(--cta-gradient);
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  box-shadow: var(--shadow-cta);
  border: none;
}
.btn-cta:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(47, 191, 155, 0.5);
}
/* ===== Layout ===== */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-height);
}
.main-content {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.hero-slides {
  position: relative;
  width: 100%;
}
.hero-slide {
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43,15,7,0.85) 0%, rgba(43,15,7,0.4) 50%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-text {
  text-align: center;
}
.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 24px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--bright-gold);
  text-shadow: 0 0 30px rgba(212, 162, 76, 0.4);
}
.hero-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-cta-wrap .wings {
  color: var(--accent-gold);
  width: 36px;
  height: 24px;
  opacity: 0.9;
}
.hero-cta-wrap .wings svg { width: 100%; height: 100%; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(191, 169, 138, 0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dots button.active,
.hero-dots button:hover { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }

/* ===== Nav blocks (ex-sidebar) ===== */
.nav-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
}
.nav-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 162, 76, 0.4);
  border-left: 3px solid rgba(212, 162, 76, 0.5);
  border-radius: var(--radius-card);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}
.nav-block:hover {
  color: var(--bright-gold);
  background: rgba(212, 162, 76, 0.08);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}
.nav-block.active {
  color: var(--bright-gold);
  background: rgba(212, 162, 76, 0.12);
  border-left-color: var(--accent-gold);
  box-shadow: inset 0 0 20px rgba(212, 162, 76, 0.1);
}

/* ===== Games section ===== */
.games-section {
  padding: 28px 24px 40px;
}
.games-section h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.game-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 160px;
  justify-self: center;
  background: var(--bg-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), var(--shadow-glow);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,15,7,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.game-card:hover .overlay { opacity: 1; }
.play-btn {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--cta-gradient);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform var(--transition);
}
.game-card:hover .play-btn { transform: scale(1.05); }

/* ===== Page content (text block) ===== */
.page-content {
  padding: 32px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.page-content--first { padding-top: 40px; }
.page-content h1 { margin: 0 0 16px; color: var(--text-light); font-size: 1.75rem; text-align: left; }
.page-content h2 { margin: 24px 0 12px; color: var(--bright-gold); font-size: 1.35rem; text-align: left; }
.page-content h3 { margin: 20px 0 10px; color: var(--accent-gold); font-size: 1.15rem; text-align: left; }
.page-content p { margin: 0 0 12px; color: var(--text-muted); text-align: justify; }
.page-content ul { margin: 12px 0; padding-left: 20px; text-align: left; }
.page-content li { margin: 6px 0; color: var(--text-muted); list-style: disc; text-align: left; }
.page-content table { width: 100%; max-width: 640px; border-collapse: collapse; margin: 16px 0; background: rgba(58,20,11,0.6); border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(212,162,76,0.3); }
.page-content th,
.page-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(212,162,76,0.2); color: var(--text-muted); }
.page-content tr:last-child td { border-bottom: none; }
.page-content th { font-weight: 700; color: var(--accent-gold); background: rgba(212,162,76,0.08); }
.page-content tbody tr:hover td { background: rgba(212,162,76,0.05); }
@media (max-width: 768px) {
  .page-content table { min-width: 380px; font-size: 13px; }
  .page-content th, .page-content td { padding: 10px 12px; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  padding: 32px 24px 24px;
  background: var(--bg-secondary);
  background-image: radial-gradient(ellipse at 20% 80%, rgba(212,162,76,0.06) 0%, transparent 50%);
  border-top: 1px solid rgba(212, 162, 76, 0.2);
}
.footer-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 20px;
  background: var(--bg-primary);
  border: 1px solid rgba(212, 162, 76, 0.4);
  border-left: 3px solid rgba(212, 162, 76, 0.5);
  border-radius: var(--radius-card);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}
.footer-block:hover {
  color: var(--bright-gold);
  background: rgba(212, 162, 76, 0.08);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}
.payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(212, 162, 76, 0.15);
  border-bottom: 1px solid rgba(212, 162, 76, 0.15);
  margin-bottom: 20px;
}
.payments-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 8px;
}
.payments-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.payments-icons img {
  height: 24px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0.9);
  transition: opacity var(--transition);
}
.payments-icons a:hover img { opacity: 1; filter: brightness(1.1); }
.compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.compliance .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 14px;
  border-radius: 8px;
}
.compliance p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ===== Responsive: 1200 ===== */
@media (max-width: 1200px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-slide .overlay { padding: 32px; }
}

/* ===== Responsive: 992 ===== */
@media (max-width: 992px) {
  .hero-slide .overlay { padding: 32px 24px; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .search-wrap { max-width: 280px; }
  .footer-blocks { padding: 0 16px; gap: 10px; }
  .footer-block { min-width: 100px; padding: 10px 16px; font-size: 13px; }
}

/* ===== Responsive: 768 ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 12px; gap: 8px; }
  .logo { font-size: 1.25rem; }
  .search-wrap { display: none; }
  .auth-buttons .btn { padding: 8px 14px; font-size: 12px; }
  .hero { min-height: 320px; }
  .hero-slides { min-height: 320px; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-cta-wrap { flex-wrap: wrap; gap: 12px; }
  .hero-cta-wrap .wings { display: none; }
  .hero-cta-wrap .btn-cta { width: 100%; max-width: 280px; }
  .nav-blocks { padding: 16px; }
  .games-section { padding: 20px 16px 32px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .page-content { padding: 24px 16px 32px; }
  .site-footer { padding: 24px 16px 20px; }
  .footer-blocks { padding: 0 8px; margin-bottom: 20px; gap: 8px; }
  .footer-block { min-width: 0; width: calc(50% - 6px); padding: 12px 10px; font-size: 12px; box-sizing: border-box; }
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; font-size: 18px; }
}

/* ===== Responsive: 480 ===== */
@media (max-width: 480px) {
  .site-header .auth-buttons .btn:first-child { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-block { width: 100%; }
  .payments { flex-direction: column; align-items: flex-start; }
}

