:root {
  /* =============================
   * Variables
   * ============================= */

  /* Color Palette - Dark Blue & Gold Gaming Theme */
  --color-bg: #030617; /* main page background (midnight navy) */
  --color-bg-alt: #050b23; /* section background */
  --color-bg-elevated: rgba(15, 23, 42, 0.9); /* glassmorphism panels */
  --color-surface: rgba(15, 23, 42, 0.75);

  --color-text: #e5e7eb; /* primary text (light gray) */
  --color-text-muted: #9ca3af;
  --color-heading: #f9fafb;

  --color-primary: #fbbf24; /* warm gold */
  --color-primary-soft: rgba(251, 191, 36, 0.18);
  --color-primary-strong: #facc15;

  --color-success: #22c55e;
  --color-warning: #f97316;
  --color-danger: #ef4444;

  --color-border-subtle: rgba(148, 163, 184, 0.35);
  --color-border-strong: rgba(249, 250, 251, 0.08);

  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2933;
  --color-neutral-900: #111827;

  /* Gradients */
  --gradient-hero: radial-gradient(circle at top center, #1d4ed8 0, #020617 55%, #000 100%);
  --gradient-gold-text: linear-gradient(120deg, #fbbf24, #fcd34d, #f59e0b);
  --gradient-card: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.95));
  --gradient-border-gold: linear-gradient(135deg, rgba(250, 204, 21, 0.85), rgba(245, 158, 11, 0.45));

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem;   /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-2xl: 1.5rem;  /* 24px */
  --font-size-3xl: 1.875rem;/* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing Scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;

  /* Shadows & Glow */
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.6);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.75);
  --shadow-gold-glow: 0 0 20px rgba(251, 191, 36, 0.45);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
  }
}

/* =============================
 * Reset / Normalize
 * ============================= */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  padding: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Remove animations and transitions when requested */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================
 * Base Styles
 * ============================= */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #020617 0, #000 50%, #020617 100%);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 3.4vw + 1.6rem, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.8rem, 2.4vw + 1.3rem, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

/* Links */

a {
  cursor: pointer;
  transition: color var(--transition-normal),
              text-shadow var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Lists */

ul,
ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
}

/* =============================
 * Accessibility & Focus States
 * ============================= */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Hide focus outline when using mouse, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================
 * Utilities
 * ============================= */

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.section {
  padding-block: var(--space-16);
}

.section--tight {
  padding-block: var(--space-10);
}

/* Flex utilities */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  flex-direction: column;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

/* Grid utilities */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

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

/* Text Alignment */

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

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

/* Max width helpers (for Hungarian copy blocks) */

.prose-narrow {
  max-width: 52ch;
}

.prose-wide {
  max-width: 72ch;
}

/* Badges & Pills (e.g. 18+ badge) */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.25), transparent 55%),
              rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

/* Glassmorphism panel utility */

.glass-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: linear-gradient(135deg,
              rgba(15, 23, 42, 0.86),
              rgba(15, 23, 42, 0.74));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
}

.glass-panel--gold {
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: var(--shadow-gold-glow);
}

/* =============================
 * Components
 * ============================= */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-normal),
              border-color var(--transition-fast),
              color var(--transition-fast);
}

.btn-primary {
  background-image: linear-gradient(135deg, #facc15, #f59e0b);
  color: #0b1120 !important;
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.55);
  filter: brightness(1.02);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: rgba(251, 191, 36, 0.8);
  color: var(--color-primary);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 3px;
}

/* Inputs & Form Elements */

.input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-normal);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.65);
  background-color: rgba(15, 23, 42, 0.96);
}

.input[aria-invalid='true'],
.input--error {
  border-color: rgba(239, 68, 68, 0.9);
}

/* Cards (e.g., Why-choose-us, Game preview) */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--gradient-card);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background-image: var(--gradient-border-gold);
  opacity: 0.18;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card--highlight {
  box-shadow: var(--shadow-gold-glow);
  border-color: rgba(251, 191, 36, 0.7);
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Hero title gradient effect */

.heading-gradient {
  background-image: var(--gradient-gold-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* FAQ basic styles (accordion JS-ready) */

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  padding: var(--space-4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
}

.faq-answer {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

/* Partner logos strip */

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.partner-logo {
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity var(--transition-normal),
              filter var(--transition-normal),
              transform var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}

/* Game Page Specific Base (spinner / wheel / slot visual frame) */

.game-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.75), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9), var(--shadow-gold-glow);
  overflow: hidden;
}

.game-frame::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.25), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.35), transparent 60%);
  opacity: 0.45;
  pointer-events: none;
}

.game-display {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.game-points {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
}

.game-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding-block: var(--space-6);
  background: #020617;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

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

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

/* Navigation bar skeleton */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #facc15, #fb923c);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar-menu {
    gap: var(--space-3);
  }
}

/* Hero section base */

.hero {
  position: relative;
  padding-block: var(--space-20) var(--space-16);
  background: var(--gradient-hero);
}

.hero-inner {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero-tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 36rem;
}

/* Responsible entertainment highlight box */

.responsible-box {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(135deg,
              rgba(15, 23, 42, 0.95),
              rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
  font-size: var(--font-size-sm);
}

/* Simple responsive helpers */

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}

p,
a,
li,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn{
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.35;
}