/* LegionBet — base stylesheet
   Dark Roman theme: deep navy background, aged gold accents, imperial red CTAs.
   Mobile-first. No external dependencies. */

:root {
  --bg: #0c0f1a;
  --bg-alt: #121728;
  --surface: #1a2033;
  --surface-raised: #212842;
  --border: #2c3452;
  --gold: #d4a94f;
  --gold-bright: #e9c877;
  --gold-dim: #9c7c38;
  --red: #8b1e1e;
  --red-hover: #a62828;
  --text: #ccd2e0;
  --text-muted: #8e96ab;
  --heading: #f1e7d0;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: #f5dc9b;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 1.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 40px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #221a08;
}

.btn--gold:hover {
  background: linear-gradient(180deg, #f3d88e, var(--gold-bright));
  color: #221a08;
}

.btn--red {
  background: var(--red);
  color: #f6e9e9;
  border-color: #a5403f;
}

.btn--red:hover {
  background: var(--red-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--lg {
  padding: 15px 38px;
  font-size: 1.05rem;
}

/* Header */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #221a08;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 22, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--heading);
  white-space: nowrap;
}

.site-logo span {
  color: var(--gold);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.site-header__actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
}

.site-nav.is-open {
  display: block;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: 11px 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--gold-bright);
}

.site-nav__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.site-nav__actions .btn {
  flex: 1;
}

/* Hero slider */

.hero-slider {
  position: relative;
  display: grid;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* slides sit stacked in the same grid cell and crossfade */
.hero-slider__slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: 340px;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 0.8s ease;
}

.hero-slider__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212, 169, 79, 0.16), transparent 55%),
    linear-gradient(160deg, #151b30 0%, #0b0e18 70%);
}

/* keeps caption text readable over the banner art */
.hero-slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 18, 0.8) 0%, rgba(8, 10, 18, 0.35) 48%, rgba(8, 10, 18, 0) 75%);
  pointer-events: none;
}

.hero-slider__caption {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 16px 72px;
}

.hero-slider__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-slider__title {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.hero-slider__text {
  max-width: 460px;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(8, 10, 18, 0.55);
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(241, 231, 208, 0.75);
  background: transparent;
  cursor: pointer;
}

.hero-slider__dot:hover {
  border-color: var(--gold-bright);
}

.hero-slider__dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

/* Breadcrumbs */

.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.85rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.breadcrumbs [aria-current="page"] {
  color: var(--gold);
}

/* Page heading block */

.page-head {
  padding: 18px 0 6px;
}

.page-head__lead {
  color: var(--text-muted);
  max-width: 720px;
}

/* Tables */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 24px;
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table caption {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  background: var(--surface-raised);
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.data-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody th {
  color: var(--heading);
  font-weight: 600;
  white-space: nowrap;
}

/* Rating box (review page) */

.rating-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}

.rating-box__score {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}

.rating-box__scale {
  font-size: 1rem;
  color: var(--text-muted);
}

.rating-box__summary {
  flex: 1 1 260px;
  margin: 0;
  color: var(--text);
}

/* Pros and cons */

.pros-cons {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.pros-cons__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.pros-cons__col--pros {
  border-top: 3px solid var(--gold);
}

.pros-cons__col--cons {
  border-top: 3px solid var(--red);
}

.pros-cons__list {
  margin: 0;
  padding-left: 20px;
}

.pros-cons__list li {
  margin-bottom: 8px;
}

/* Step list */

.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0 0 28px;
  padding: 0;
}

.step-list__item {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 58px;
}

.step-list__item::before {
  content: counter(step, upper-roman);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
}

.step-list__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.step-list__title {
  margin-bottom: 4px;
}

.step-list__item p:last-child {
  margin-bottom: 0;
}

/* FAQ accordion */

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--surface);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  background: none;
  border: none;
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq__question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 18px 16px;
  color: var(--text);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* Bonus CTA banner */

.bonus-cta {
  background:
    linear-gradient(rgba(12, 15, 26, 0.45), rgba(12, 15, 26, 0.45)),
    url("/legionbet-offer.webp") center / cover no-repeat,
    var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  text-align: center;
  padding: 36px 20px;
  margin: 12px 0 40px;
}

.bonus-cta__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bonus-cta__title {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.bonus-cta__terms {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 14px auto 0;
  max-width: 560px;
}

/* Game grid */

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.game-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.game-card__media {
  aspect-ratio: 427 / 575;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 169, 79, 0.14), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

img.game-card__media {
  width: 100%;
  height: auto;
  object-fit: cover;
  padding: 0;
}

.game-card__cover {
  position: relative;
}

.game-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.game-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 20px;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.game-card:hover .game-card__cover::before,
.game-card:focus-within .game-card__cover::before {
  opacity: 1;
}

.game-card:hover .game-card__play,
.game-card:focus-within .game-card__play {
  opacity: 1;
  pointer-events: auto;
}

/* touch screens have no hover — keep the button visible */
@media (hover: none) {
  .game-card__play {
    opacity: 1;
    pointer-events: auto;
  }
}

.game-card__body {
  padding: 10px 12px;
}

.game-card__title {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 2px;
}

.game-card__provider {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}

/* Feature grid */

.feature-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card__title {
  margin-bottom: 6px;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

/* Related links */

.related-links {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.related-links__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}

.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-links li {
  padding: 5px 0;
}

/* Notice / info panels */

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.notice--gold {
  border-left-color: var(--gold);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Page banner */

.page-banner {
  position: relative;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-banner__media {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-alt);
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(8, 10, 18, 0.78) 0%, rgba(8, 10, 18, 0.35) 45%, rgba(8, 10, 18, 0) 70%);
}

.page-banner__title {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 60%;
  margin: 0;
}

.page-banner__btn {
  padding: 8px 22px;
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .page-banner__overlay {
    gap: 12px;
    padding: 16px 28px;
  }

  .page-banner__btn {
    padding: 11px 32px;
    font-size: 0.95rem;
  }
}

/* Footer */

.site-footer {
  margin-top: 48px;
  background: #090c14;
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer__grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer__heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav li {
  padding: 4px 0;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--gold-bright);
}

.site-footer__license p {
  margin-bottom: 10px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  margin-right: 8px;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: #e88;
  font-weight: 700;
  font-size: 0.8rem;
  vertical-align: middle;
}

.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copy {
  margin: 0;
}

/* Utility */

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Larger screens */

@media (min-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 2.3rem;
  }

  .section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    padding: 0;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav__link {
    padding: 8px 12px;
    border-bottom: none;
    font-size: 0.92rem;
  }

  .site-nav__actions {
    display: none;
  }

  .site-header__actions {
    display: flex;
  }

  .hero-slider__slide {
    min-height: 420px;
  }

  .hero-slider__title {
    font-size: 2.7rem;
  }

  .game-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-card:hover {
    transform: none;
  }

  .hero-slider__slide,
  .hero-slider__slide.is-active {
    transition: none;
  }
}
