/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --dark: #18171f;
  --hero-bg: #111111;
  --yellow: #f6c946;
  --red-top: #ff5858;
  --red-bot: #d70000;
  --amber: #ffac3b;
  --ticker-bg: #18171f;
  --ticker-text: #9fd6ea;
  --ticker-amt: #ffd837;
  --white: #ffffff;
  --bg-light: #f5f5f5;
  --green-card: #ecfdf5;
  --green-border: #8bc34a;
  --orange-card: #fff3e0;
  --orange-border: #ff9800;
  --text: #212121;
  --text-muted: #666666;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: 55px;
  font-weight: 900;
  line-height: 1.1;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* =============================================
   CONTAINERS
   ============================================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.btn--red {
  background: linear-gradient(180deg, var(--red-top), var(--red-bot));
  color: var(--white);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
}

.btn--red:hover {
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--yellow);
  color: #463e3e;
  border-radius: 20px;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 201, 70, 0.5);
}

.btn--green {
  background: var(--green-border);
  color: var(--white);
}

.btn--green:hover {
  opacity: 0.9;
}

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

.btn--outline:hover {
  background: var(--bg-light);
}

.btn--pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

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

/* =============================================
   HEADER
   ============================================= */
.header {
  background: var(--dark);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.header__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

.header__nav a:hover {
  color: var(--yellow);
}

.header__cta {
  white-space: nowrap;
  padding: 10px 24px;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

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

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

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

/* =============================================
   PILL NAV (STICKY)
   ============================================= */
.pill-nav {
  background: var(--dark);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 90;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  background: var(--yellow);
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(246, 201, 70, 0.4);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--hero-bg) url('images/game/bg-main.png') center/cover no-repeat;
  padding: 80px 0;
  color: var(--white);
}

.hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero__text {
  flex: 1;
  max-width: 650px;
}

.hero__tagline {
  font-size: 18px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  flex-shrink: 0;
}

.hero__image img {
  max-width: 450px;
  border-radius: 12px;
}

/* =============================================
   TICKER
   ============================================= */
.ticker {
  background: var(--ticker-bg);
  padding: 12px 0;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
}

.ticker__track {
  display: flex;
  gap: 40px;
  animation: tickerMove 48s linear infinite;
  white-space: nowrap;
  width: max-content;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
}

.ticker__flag {
  font-size: 18px;
}

.ticker__name {
  color: var(--ticker-text);
  font-weight: 500;
}

.ticker__amount {
  color: var(--ticker-amt);
  font-weight: 700;
}

.ticker__time {
  color: var(--text-muted);
  font-size: 12px;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 60px 0;
}

.section--light {
  background: var(--bg-light);
}

.section__intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* =============================================
   CASINO CARDS
   ============================================= */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.casino-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.casino-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.casino-card--green {
  background: linear-gradient(to right, #e8f5e9, #f1f8e9);
  border: 3px solid var(--green-border);
}

.casino-card--orange {
  background: linear-gradient(to right, #fff3e0, #ffe0b2);
  border: 3px solid var(--orange-border);
}

.casino-card__rank {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 40px;
  text-align: center;
}

.casino-card__logo {
  width: 120px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.casino-card__info {
  flex: 1;
}

.casino-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--white);
  margin-bottom: 4px;
}

.casino-card__badge--top {
  background: var(--green-border);
}

.casino-card__bonus {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.casino-card__rating {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  flex-shrink: 0;
}

.casino-card__rating--green {
  background: var(--green-border);
}

.casino-card__rating--orange {
  background: var(--orange-border);
}

.casino-card__cta {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 14px;
}

/* =============================================
   TABLES
   ============================================= */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.facts-table,
.odds-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.facts-table td,
.odds-table td,
.odds-table th,
.comparison-table td,
.comparison-table th {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.facts-table tr:last-child td,
.odds-table tr:last-child td,
.comparison-table tr:last-child td {
  border-bottom: none;
}

.facts-table td:first-child {
  font-weight: 700;
  width: 40%;
  background: rgba(0, 0, 0, 0.02);
}

.odds-table th,
.comparison-table th {
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}

.comparison-table td:nth-child(2) {
  font-weight: 600;
}

.odds-table tr:nth-child(even),
.comparison-table tr:nth-child(even) {
  background: var(--bg-light);
}

/* =============================================
   STEPS (HOW TO PLAY)
   ============================================= */
.steps {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step__text {
  flex: 1;
}

.step__text p {
  color: var(--text-muted);
  margin-top: 8px;
}

.step__image {
  flex-shrink: 0;
}

.step__image img {
  width: 180px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* =============================================
   FEATURES
   ============================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.feature {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* =============================================
   PROS & CONS
   ============================================= */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.pros-cons__card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pros-cons__card--green {
  background: var(--green-card);
  border: 3px solid var(--green-border);
}

.pros-cons__card--orange {
  background: var(--orange-card);
  border: 3px solid var(--orange-border);
}

.pros-cons__card ul {
  margin-top: 12px;
}

.pros-cons__card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}

.pros-cons__card--green li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-border);
  font-weight: 700;
}

.pros-cons__card--orange li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--orange-border);
  font-weight: 700;
}

/* =============================================
   MOBILE SECTION
   ============================================= */
.mobile-section {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.mobile-section__text {
  flex: 1;
}

.mobile-section__text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mobile-section__image {
  flex-shrink: 0;
}

.mobile-section__image img {
  max-width: 280px;
  border-radius: 16px;
}

/* =============================================
   STRATEGY GRID
   ============================================= */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.strategy-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.strategy-card:hover {
  transform: translateY(-4px);
}

.strategy-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.strategy-card h3,
.strategy-card p {
  padding: 0 20px;
}

.strategy-card h3 {
  margin-top: 16px;
}

.strategy-card p {
  color: var(--text-muted);
  font-size: 15px;
  padding-bottom: 20px;
  margin-top: 8px;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  margin-top: 30px;
}

.faq__item {
  border-bottom: 1px solid #ddd;
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: 20px 40px 20px 0;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  font-family: "Roboto Condensed", Arial, sans-serif;
  color: var(--text);
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq__question[aria-expanded="true"]::after {
  content: "−";
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__answer.open {
  max-height: 300px;
}

.faq__answer p {
  padding: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   AUTHOR BOX
   ============================================= */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.author-box__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__title {
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.author-box__text p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer__badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__badges img {
  height: 35px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer__badges img:hover {
  opacity: 1;
}

/* =============================================
   EXIT POPUP
   ============================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-overlay.active {
  display: flex;
}

.popup {
  background: var(--dark);
  color: var(--white);
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup h2 {
  margin-bottom: 12px;
}

.popup p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 18px;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.popup__cta {
  font-size: 18px;
  padding: 16px 40px;
}

/* =============================================
   COOKIE BAR
   ============================================= */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  z-index: 999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-bar.active {
  display: block;
}

.cookie-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-bar__inner p {
  flex: 1;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  min-width: 250px;
}

.cookie-bar__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-bar__buttons .btn {
  padding: 10px 20px;
  font-size: 13px;
}

.cookie-settings {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings.active {
  display: block;
}

.cookie-settings__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.cookie-settings__inner h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-border);
}

.cookie-toggle__info {
  color: var(--text-muted);
  font-size: 12px;
}

.cookie-settings hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.cookie-settings .btn {
  margin-top: 12px;
}

/* =============================================
   RESPONSIVE — 1024px
   ============================================= */
@media (max-width: 1024px) {
  .casino-card {
    flex-wrap: wrap;
  }

  .casino-card__info {
    min-width: 200px;
  }

  .mobile-section {
    flex-direction: column;
  }
}

/* =============================================
   RESPONSIVE — 900px
   ============================================= */
@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image img {
    max-width: 300px;
  }

  .step {
    flex-direction: column !important;
    text-align: center;
  }

  .step__image img {
    width: 140px;
  }
}

/* =============================================
   RESPONSIVE — 768px
   ============================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 26px;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__nav.active {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .casino-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .casino-card__rank {
    font-size: 22px;
  }

  .casino-card__cta {
    width: 100%;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .cookie-bar__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */
@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }

  h1 {
    font-size: 32px;
  }

  .pill-nav__inner {
    gap: 6px;
  }

  .pill {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .popup {
    padding: 30px 20px;
  }
}
