@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,600..900;1,6..96,600..900&family=IBM+Plex+Mono:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0E1F;
  --card: #131A33;
  --secondary: #0F1430;
  --amethyst: #8B6CF7;
  --amethyst-glow: rgba(139, 108, 247, 0.3);
  --gold: #E3B568;
  --gold-glow: rgba(227, 181, 104, 0.35);
  --text: #F4F1FA;
  --text-muted: #9AA0C4;
  --success: #4FD8A0;
  --danger: #FF6F6F;
  
  --font-title: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border: 2px solid var(--bg);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amethyst);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amethyst);
  outline-offset: 4px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 45px;
  height: 2px;
  background: var(--gold);
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

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

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

.mono-num {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Common Layouts & Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 6rem 0;
  position: relative;
}

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

/* Dot pattern background */
.stars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(244, 241, 250, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--gold);
  color: #0A0E1F;
}

.btn-primary:hover {
  background-color: #f0c987;
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(139, 108, 247, 0.1);
  border-color: var(--amethyst);
  color: #DDD4FF;
}

.btn-secondary:hover {
  background-color: var(--amethyst);
  color: #0A0E1F;
  box-shadow: 0 0 20px var(--amethyst-glow);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid rgba(139, 108, 247, 0.15);
  background: rgba(10, 14, 31, 0.85);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.logo svg {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom: 2px solid var(--amethyst);
  padding-bottom: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  border: 1px solid rgba(139, 108, 247, 0.3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--secondary);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 12px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.lang-btn.active {
  background-color: var(--amethyst);
  color: #0A0E1F;
}

/* Burger Menu */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-menu svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  stroke-width: 2px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  height: calc(100vh - 73px);
  background: var(--bg);
  z-index: 99;
  transform: translateX(-100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  border-top: 1px solid rgba(139, 108, 247, 0.1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
  display: block;
}

.mobile-nav-links a.active {
  color: var(--gold);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 80px 0;
  background-image: radial-gradient(circle at 50% 30%, rgba(139, 108, 247, 0.12) 0%, rgba(10, 14, 31, 0) 70%), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 95vh;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-actions-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Constellation Canvas/SVG in Hero */
.constellation-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 380px;
  margin: 0 auto 4rem auto;
  border: 1px solid rgba(139, 108, 247, 0.15);
  border-radius: 16px;
  background: rgba(19, 26, 51, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.constellation-svg {
  width: 100%;
  height: 100%;
}

.constellation-line {
  stroke: var(--amethyst);
  stroke-width: 1;
  stroke-dasharray: 4 2;
  opacity: 0.4;
}

.constellation-node {
  cursor: pointer;
}

.constellation-circle-outer {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  transition: var(--transition);
}

.constellation-circle-inner {
  fill: var(--card);
  stroke: var(--amethyst);
  stroke-width: 1;
  transition: var(--transition);
}

.constellation-text {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.constellation-node:hover .constellation-circle-outer {
  stroke: var(--text);
  r: 25;
  filter: drop-shadow(0 0 8px var(--gold));
}

.constellation-node:hover .constellation-circle-inner {
  fill: var(--amethyst);
}

/* Spin animation logic */
@keyframes spin-node {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinning-node {
  animation: spin-node 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

/* Slot Simulator Card */
.slot-simulator-teaser {
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.2);
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.slot-simulator-teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amethyst), var(--gold));
}

.slot-simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.slot-badge {
  background: rgba(139, 108, 247, 0.1);
  color: var(--amethyst);
  border: 1px solid rgba(139, 108, 247, 0.4);
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slot-stats {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.slot-stat span {
  color: var(--gold);
  font-weight: 600;
}

.slot-reels-container {
  background: #060814;
  border: 2px solid rgba(139, 108, 247, 0.25);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

.slot-reels-canvas-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
}

.slot-canvas {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #060814;
}

.slot-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 20px;
}

.bet-adjuster {
  display: flex;
  gap: 8px;
}

.bet-adjuster .btn {
  padding: 8px 16px;
  font-family: var(--font-mono);
}

/* Info Section Grids (History & What is SC) */
.info-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.info-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 108, 247, 0.15);
}

.info-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.info-image-wrapper:hover img {
  transform: scale(1.02);
}

.info-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 14, 31, 0) 50%, rgba(10, 14, 31, 0.85) 100%);
  pointer-events: none;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.1);
  border-radius: 16px;
  padding: 36px;
  transition: var(--transition);
  position: relative;
}

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

.feature-icon {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 108, 247, 0.12);
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.game-card {
  background-color: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.12);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 390px;
  transition: var(--transition);
  cursor: pointer;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(180deg, rgba(10, 14, 31, 0) 0%, rgba(10, 14, 31, 0.95) 75%);
  transition: var(--transition);
}

.game-card-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.game-card-theme {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 31, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.game-card:hover .game-card-overlay,
.game-card:focus-within .game-card-overlay {
  opacity: 1;
  visibility: visible;
  border-color: var(--gold);
  box-shadow: 0 0 25px var(--gold-glow);
}

.game-card-overlay .rating {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.game-card-overlay .rating svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.game-card-overlay .btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 220px;
  margin-top: 20px;
}

/* Detail Slot Page layouts */
.slot-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 30px;
}

.slot-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.slot-info-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(139, 108, 247, 0.15);
}

.slot-info-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.slot-info-table td:last-child {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  font-family: var(--font-mono);
}

.slot-info-table td:last-child.not-mono {
  font-family: var(--font-body);
}

/* Table layout styling */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(139, 108, 247, 0.15);
  border-radius: 12px;
  background-color: var(--card);
  margin: 30px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
}

.comparison-table th {
  background-color: var(--secondary);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

.comparison-table tr:not(:last-child) {
  border-bottom: 1px solid rgba(139, 108, 247, 0.1);
}

.comparison-table tr:hover {
  background-color: rgba(139, 108, 247, 0.04);
}

.comparison-table td.highlight {
  color: var(--gold);
  font-weight: 600;
}

/* Pros and Cons Columns */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.pros-column, .cons-column {
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.15);
  border-radius: 12px;
  padding: 32px;
}

.pros-column {
  border-top: 4px solid var(--success);
}

.cons-column {
  border-top: 4px solid var(--danger);
}

.pros-column h3 {
  color: var(--success);
}

.cons-column h3 {
  color: var(--danger);
}

.pros-cons-list {
  list-style: none;
  margin-top: 20px;
}

.pros-cons-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}

.pros-column li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: bold;
}

.cons-column li::before {
  content: '−';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger);
  font-weight: bold;
}

/* FAQ Accordion layout */
.faq-grid {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  stroke-width: 2.5px;
  fill: none;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: rgba(10, 14, 31, 0.4);
}

.faq-answer-content {
  padding: 24px;
  border-top: 1px solid rgba(139, 108, 247, 0.1);
  color: var(--text-muted);
}

.faq-item.active {
  border-color: var(--amethyst);
  box-shadow: 0 0 15px var(--amethyst-glow);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* AI Widget layout */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.ai-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--amethyst);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(139, 108, 247, 0.4);
  transition: var(--transition);
}

.ai-chat-btn:hover {
  transform: scale(1.08);
}

.ai-chat-btn svg {
  width: 28px;
  height: 28px;
  stroke: #0A0E1F;
  stroke-width: 2px;
  fill: none;
}

.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 480px;
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.25);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  overflow: hidden;
}

.ai-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background: var(--secondary);
  padding: 16px;
  border-bottom: 1px solid rgba(139, 108, 247, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ai-chat-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  stroke-width: 2px;
  fill: none;
}

.ai-chat-close {
  background: none;
  border: none;
  cursor: pointer;
}

.ai-chat-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  stroke-width: 2px;
}

.ai-chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: var(--secondary);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-msg.user {
  background: var(--amethyst);
  color: #0A0E1F;
  align-self: flex-end;
  border-bottom-right-radius: 0;
  font-weight: 500;
}

.ai-chat-input-area {
  display: flex;
  padding: 12px;
  border-top: 1px solid rgba(139, 108, 247, 0.15);
  background: var(--secondary);
  gap: 8px;
}

.ai-chat-input {
  flex-grow: 1;
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.2);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.ai-chat-send {
  background: var(--gold);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-send svg {
  width: 16px;
  height: 16px;
  stroke: #0A0E1F;
  stroke-width: 2px;
  fill: none;
}

/* AI Game Match Widget layout */
.ai-quiz-container {
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.2);
  border-radius: 16px;
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.quiz-steps-wrapper {
  margin-top: 30px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.quiz-option-btn {
  background: var(--secondary);
  border: 1px solid rgba(139, 108, 247, 0.15);
  padding: 16px 20px;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 1rem;
}

.quiz-option-btn:hover,
.quiz-option-btn.selected {
  border-color: var(--gold);
  background: rgba(227, 181, 104, 0.05);
  box-shadow: 0 0 15px var(--gold-glow);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.quiz-results {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.quiz-results-card {
  background: var(--secondary);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 30px;
  margin-top: 24px;
}

/* Cookie Consent Banner Layout */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid rgba(139, 108, 247, 0.3);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  padding: 24px;
  z-index: 9999;
  transform: translateY(200px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex-grow: 1;
  flex-basis: 500px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-settings-panel {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 108, 247, 0.15);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.cookie-option-label h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cookie-option-label p {
  font-size: 0.8rem;
  margin: 0;
}

/* Switch styling for checkboxes */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid rgba(139, 108, 247, 0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--amethyst);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #0A0E1F;
}

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

/* Forms layout */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  background: var(--secondary);
  border: 1px solid rgba(139, 108, 247, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--amethyst);
  outline: none;
  box-shadow: 0 0 10px var(--amethyst-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Map frame container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 108, 247, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer layout */
footer {
  background-color: var(--secondary);
  border-top: 1px solid rgba(139, 108, 247, 0.15);
  padding: 80px 0 40px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-links, .footer-social-links {
  list-style: none;
}

.footer-links li, .footer-social-links li {
  margin-bottom: 12px;
}

.footer-links a, .footer-social-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover, .footer-social-links a:hover {
  color: var(--gold);
}

.footer-logo-desc p {
  font-size: 0.95rem;
  margin-top: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form .form-control {
  padding: 10px 14px;
}

.newsletter-form .btn {
  padding: 10px 20px;
}

.footer-middle {
  border-top: 1px solid rgba(139, 108, 247, 0.1);
  border-bottom: 1px solid rgba(139, 108, 247, 0.1);
  padding: 40px 0;
  margin-bottom: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.warning-18 {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--danger);
  border: 3px solid var(--danger);
  border-radius: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-middle p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-middle a {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-inline a {
  color: var(--text-muted);
}

.footer-legal-inline a:hover {
  color: var(--amethyst);
}

/* Success Modal */
.form-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 31, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.form-success-modal.show {
  opacity: 1;
  visibility: visible;
}

.form-success-content {
  background: var(--card);
  border: 1px solid var(--gold);
  box-shadow: 0 15px 40px var(--gold-glow);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  transform: translateY(20px);
  transition: var(--transition);
}

.form-success-modal.show .form-success-content {
  transform: translateY(0);
}

.form-success-icon {
  width: 60px;
  height: 60px;
  background: rgba(79, 216, 160, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.form-success-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--success);
  stroke-width: 3px;
  fill: none;
}

.form-success-content h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.form-success-content p {
  margin: 0;
}

/* Policies general design */
.legal-content h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(139, 108, 247, 0.2);
  padding-bottom: 15px;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h2::after {
  display: none;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 20px;
}

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

/* Responsive queries */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 1024px) {
  h2 {
    font-size: 1.8rem;
  }
  .info-section-grid, .info-section-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .games-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .slot-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1130px) {
  nav {
    display: none;
  }
  .burger-menu {
    display: block;
  }
  .header-cta-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-middle {
    flex-direction: column;
    text-align: center;
  }
  .ai-chat-window {
    width: 320px;
    right: -10px;
  }
  
  /* Responsive Table */
  .comparison-table {
    min-width: unset;
    display: block;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tbody, .comparison-table tr, .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table tr {
    margin-bottom: 20px;
    border: 1px solid rgba(139, 108, 247, 0.2);
    border-radius: 8px;
    background: rgba(10, 14, 31, 0.4);
    overflow: hidden;
  }
  .comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 108, 247, 0.1);
  }
  .comparison-table td:last-child {
    border-bottom: none;
  }
  .comparison-table td.highlight {
    background: var(--secondary);
    color: var(--gold);
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--amethyst);
  }
  .comparison-table td:nth-child(2)::before {
    content: "Lottojackpotit:";
    color: var(--amethyst);
    font-weight: 700;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .comparison-table td:nth-child(3)::before {
    content: "Online Casino:";
    color: var(--text-muted);
    font-weight: 700;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
    gap: 6px;
  }
  .logo svg {
    width: 26px;
    height: 26px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-actions-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 3rem auto;
    gap: 12px;
  }
  .hero-actions-btns .btn {
    width: 100%;
  }
  .constellation-wrapper {
    height: 300px;
  }
  .constellation-svg {
    transform: scale(1.4);
    transform-origin: center;
  }
  .slot-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .bet-adjuster {
    justify-content: center;
  }
  .ai-chat-widget {
    bottom: 20px;
    right: 20px;
  }
  .ai-chat-window {
    width: calc(100vw - 40px);
    height: 420px;
    bottom: 70px;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-banner-actions .btn {
    width: 100%;
  }
  .cookie-option {
    align-items: flex-start;
  }
  .switch {
    flex-shrink: 0;
    margin-top: 4px;
    margin-left: 12px;
  }
}

@media (max-width: 400px) {
  header .container {
    padding: 0 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  .logo {
    font-size: 1rem;
    gap: 4px;
  }
  .logo svg {
    width: 24px;
    height: 24px;
  }
  .constellation-svg {
    transform: scale(1.6);
    transform-origin: center;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 15px;
  }
  .logo {
    font-size: 0.95rem;
    gap: 4px;
  }
  .logo svg {
    width: 22px;
    height: 22px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  .constellation-wrapper {
    height: 250px;
  }
  .constellation-svg {
    transform: scale(1.8);
    transform-origin: center;
  }
  .slot-reels-container {
    padding: 8px;
  }
  .slot-reels-canvas-wrapper {
    height: 150px;
  }
}
