/* ==========================================================================
   Basket Bounty — versione italiana
   Stile del gioco: notte viola, mele dorate, pulsanti rossi
   ========================================================================== */

:root {
  --bg: #1c0541;
  --bg-deep: #14032f;
  --line: #38215b;
  --card: #2b0866;
  --card-2: #24075a;
  --card-line: #48297a;

  --red: #e42c28;
  --red-hi: #f2443b;
  --red-lo: #b81f1c;
  --gold: #f5c03a;
  --gold-hi: #ffe08a;
  --star: #fdd712;
  --green: #35b45a;

  --text: #ffffff;
  --text-soft: #ddd2f3;
  --muted: #aea2d4;
  --badge: #0f0a0a;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1200px;
  --header-h: 80px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Tight", "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

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

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

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* Logo
   The official logo goes in assets/img/brand/logo.webp; until that file
   exists main.js removes the image and the text logo shows instead.
   ========================================================================== */

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  width: auto;
  height: 64px;
}

.logo__img + .logo__fallback {
  display: none;
}

.logo__fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo__mark {
  width: 40px;
  height: 40px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff3b0 0%, var(--gold) 50%, #e08a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  filter: drop-shadow(1px 0 0 #7a1a0a) drop-shadow(-1px 0 0 #7a1a0a) drop-shadow(0 1px 0 #7a1a0a) drop-shadow(0 -1px 0 #7a1a0a) drop-shadow(0 2px 0 #4a0d05);
}

.logo__accent {
  display: block;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn--primary,
.btn--secondary {
  background: var(--red);
  color: var(--text);
}

.btn--primary:hover,
.btn--secondary:hover {
  background: var(--red-hi);
  box-shadow: 0 8px 22px -8px rgba(228, 44, 40, 0.8);
}

.btn--primary:active,
.btn--secondary:active {
  background: var(--red-lo);
  transform: translateY(1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 2px var(--text);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 18px;
}

.btn--block {
  width: 100%;
}

/* Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.header__actions,
.header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__mobile-actions,
.header__burger,
.header__backdrop {
  display: none;
}

.header__burger {
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.header__burger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.header.is-open .header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

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

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--gold);
}

.nav__cta {
  display: none;
}

@media (min-width: 960px) {
  .header__actions {
    margin-left: auto;
  }
}

@media (max-width: 959.98px) {
  .header__actions {
    display: none;
  }

  .header__mobile-actions {
    display: flex;
    margin-left: auto;
  }

  .header__burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
    padding: 24px 16px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s 0.25s;
  }

  .header.is-open .nav {
    transform: none;
    visibility: visible;
    transition: transform 0.25s ease;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__cta {
    display: flex;
  }

  .header__backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 1;
    background: rgba(8, 2, 20, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }

  .header.is-open .header__backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s;
  }

  .logo__img {
    height: 52px;
  }
}

/* Breadcrumbs
   ========================================================================== */

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--card-line);
}

.breadcrumbs__link {
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--text);
}

/* Home hero
   The official key art goes in assets/img/brand/hero.webp; until then the
   placeholder illustration is shown.
   ========================================================================== */

.hero__card {
  position: relative;
  overflow: hidden;
}

.hero__media {
  position: relative;
}

.hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero__img + .hero__img--fallback {
  display: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 5, 65, 0) 55%, var(--bg) 100%);
  pointer-events: none;
}

.hero__body {
  padding: 8px 0 32px;
}

.hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero__provider {
  margin: 16px 0 24px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 1024px) {
  .hero__card {
    display: flex;
    align-items: center;
    min-height: 480px;
  }

  /* Key art on the right, fading into the background behind the title */
  .hero__media {
    width: 74%;
    margin-left: auto;
  }

  .hero__img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }

  .hero__shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(28, 5, 65, 0) 16%),
      linear-gradient(180deg, var(--bg) 0%, rgba(28, 5, 65, 0) 10%);
  }

  .hero__body {
    position: absolute;
    top: 50%;
    left: 0;
    max-width: 560px;
    padding: 0 0 0 48px;
    transform: translateY(-50%);
  }
}

/* Inner page hero
   ========================================================================== */

.page-hero {
  padding: 32px 0 8px;
}

.page-hero__card {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 300px at 80% 45%, rgba(245, 192, 58, 0.22), rgba(245, 192, 58, 0) 70%),
    radial-gradient(640px 420px at 75% 50%, rgba(106, 43, 209, 0.55), rgba(106, 43, 209, 0) 70%),
    var(--card-2);
}

.page-hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.page-hero__lead {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero__media img {
  width: auto;
  max-height: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

@media (min-width: 900px) {
  .page-hero__card {
    grid-template-columns: 1.3fr 0.7fr;
    padding: 48px;
  }
}

/* Sections
   ========================================================================== */

.section {
  padding: 48px 0;
}

.section--tight {
  padding: 24px 0;
}

.section__title {
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section__intro {
  max-width: 820px;
  margin: -12px 0 28px;
  color: var(--text-soft);
}

.lead {
  color: var(--text-soft);
  font-size: 19px;
}

/* Casino top list: one row per casino
   ========================================================================== */

.casinos__grid {
  display: grid;
  gap: 12px;
}

.casino-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "logo name"
    "logo rating"
    "bonus bonus"
    "pros pros"
    "cta cta";
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  overflow: hidden;
  padding-bottom: 16px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
}

.casino-card__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--badge);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.casino-card__logo {
  position: relative;
  display: grid;
  grid-area: logo;
  place-items: center;
  min-height: 112px;
  overflow: hidden;
  background: #1f1f1f;
  text-decoration: none;
}

/* Fallback shown when the logo image is missing */
.casino-card__logo::before {
  content: attr(data-name);
  padding: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.casino-card__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casino-card__name {
  grid-area: name;
  align-self: end;
  margin: 0;
  padding-top: 16px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.casino-card__name a {
  text-decoration: none;
}

.casino-card__name a:hover {
  color: var(--text);
}

.casino-card__rating {
  display: flex;
  grid-area: rating;
  align-self: start;
  align-items: center;
  padding-top: 8px;
}

.casino-card__score {
  display: none;
}

.casino-card__bonus {
  grid-area: bonus;
  margin: 8px 16px 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.casino-card__pros {
  grid-area: pros;
  margin: 4px 16px 6px;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.casino-card__cta {
  grid-area: cta;
  width: auto;
  margin: 0 16px;
}

@media (min-width: 900px) {
  .casino-card {
    grid-template-areas:
      "logo name bonus pros cta"
      "logo rating bonus pros cta";
    grid-template-columns: 144px minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.25fr) 208px;
    grid-template-rows: 1fr 1fr;
    column-gap: 28px;
    row-gap: 0;
    min-height: 114px;
    padding: 0 28px 0 0;
  }

  .casino-card__logo {
    min-height: 114px;
  }

  .casino-card__name {
    padding: 0 0 10px;
  }

  .casino-card__rating {
    padding-top: 12px;
  }

  .casino-card__bonus,
  .casino-card__pros,
  .casino-card__cta {
    align-self: center;
    margin: 0;
  }

  .casino-card__bonus {
    font-size: 21px;
  }
}

/* Star rating: --rating from 0 to 5 */
.rating {
  --size: 16px;
  --fill: calc(var(--rating, 0) / 5 * 100%);
  width: calc((var(--size) + 2px) * 5);
  height: var(--size);
  background: linear-gradient(90deg, var(--star) var(--fill), rgba(253, 215, 18, 0.28) var(--fill));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2l2.09 6.26h6.73l-5.46 3.88 2.09 6.26L12 14.52 6.55 18.4l2.09-6.26-5.46-3.88h6.73z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) + 2px) var(--size) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2l2.09 6.26h6.73l-5.46 3.88 2.09 6.26L12 14.52 6.55 18.4l2.09-6.26-5.46-3.88h6.73z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) + 2px) var(--size) repeat-x;
}

/* Check list
   ========================================================================== */

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Key stats
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 16px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
}

.stat__value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Feature cards
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.feature {
  padding: 24px 22px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
}

.feature__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.feature__title {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* Jackpots — colours of the in-game jackpot meters
   ========================================================================== */

.jackpot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .jackpot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.jackpot {
  --jp-hi: #7a45c9;
  --jp: #4b1e94;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--jp-hi), var(--jp));
  text-align: center;
}

.jackpot--minor {
  --jp-hi: #3b8ee0;
  --jp: #1d55a0;
}

.jackpot--major {
  --jp-hi: #3fbf63;
  --jp: #1d7a3a;
}

.jackpot--grand {
  --jp-hi: #f0672f;
  --jp: #b8321a;
}

.jackpot__name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jackpot__value {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.jackpot__note {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

/* Steps
   ========================================================================== */

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 20px 20px 20px 80px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.steps__title {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.steps__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* Callouts
   ========================================================================== */

.callout {
  --callout: var(--gold);
  --callout-icon: url("../img/icons/golden-apple.svg");
  position: relative;
  padding: 18px 20px 18px 68px;
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--callout);
  border-radius: var(--radius);
  background: var(--card-2);
}

.callout::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  background: var(--callout-icon) center / contain no-repeat;
}

.callout--tip {
  --callout: var(--green);
  --callout-icon: url("../img/icons/shield.svg");
}

.callout--warning {
  --callout: var(--red);
  --callout-icon: url("../img/icons/bolt.svg");
}

.callout__title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.callout p {
  margin: 0;
  color: var(--text-soft);
}

.callout p + p {
  margin-top: 8px;
}

/* Tags
   ========================================================================== */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 4px 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--card);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

/* Split layout (text + media)
   ========================================================================== */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split__media img {
  width: auto;
  max-height: 520px;
  margin: 0 auto;
}

.split__body {
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
}

.split__body > :first-child {
  margin-top: 0;
}

.split__body > :last-child {
  margin-bottom: 0;
}

.split__body h2,
.split__body h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

/* CTA banner
   ========================================================================== */

.cta-banner {
  display: grid;
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 28px 22px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 220px at 10% 50%, rgba(245, 192, 58, 0.22), rgba(245, 192, 58, 0) 70%),
    radial-gradient(600px 300px at 90% 50%, rgba(228, 44, 40, 0.25), rgba(228, 44, 40, 0) 70%),
    var(--card);
  text-align: center;
}

.cta-banner__media img {
  width: 88px;
  height: 88px;
}

.cta-banner__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.cta-banner__text {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 900px) {
  .cta-banner {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    padding: 28px 36px;
    text-align: left;
  }
}

/* Iframe frame (demo game / app)
   ========================================================================== */

.demo__frame {
  padding: 10px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.demo__screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.demo__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgba(20, 3, 47, 0.55);
  text-align: center;
  text-decoration: none;
}

.demo__play {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 10px rgba(228, 44, 40, 0.25), 0 16px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, background-color 0.15s;
}

.demo__play::before {
  content: "";
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 28px solid var(--text);
}

.demo__overlay:hover .demo__play {
  background: var(--red-hi);
  transform: scale(1.05);
}

.demo__label {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Any <iframe> pasted into the frame fills it */
.demo__screen > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Portrait frame for mobile apps */
.demo--portrait .demo__frame {
  max-width: 440px;
  margin: 0 auto;
}

.demo--portrait .demo__screen {
  aspect-ratio: 9 / 16;
}

.demo--portrait .demo__poster {
  object-position: 72% 50%;
}

.demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.demo__note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Article
   ========================================================================== */

.article {
  max-width: 100%;
}

.prose {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.prose > * {
  margin: 0;
}

.prose > * + * {
  margin-top: 1em;
}

.prose > h2 {
  margin: 2em 0 0.6em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin: 1.6em 0 0.4em;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose ul:not([class]),
.prose ol:not([class]) {
  padding: 0;
  list-style: none;
}

.prose ul:not([class]) > li,
.prose ol:not([class]) > li {
  position: relative;
  padding-left: 26px;
}

.prose ul:not([class]) > li + li,
.prose ol:not([class]) > li + li {
  margin-top: 0.4em;
}

.prose ul:not([class]) > li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}

.prose ol:not([class]) {
  counter-reset: item;
}

.prose ol:not([class]) > li {
  counter-increment: item;
}

.prose ol:not([class]) > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.prose strong {
  color: var(--text);
}

.prose a:not([class]) {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:not([class]):hover {
  color: var(--gold-hi);
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.table--wide {
  min-width: 560px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  background: var(--card);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.table tbody tr td,
.table tbody tr th {
  border-top: 1px solid var(--line);
}

.table tbody th,
.table td:first-child {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 479.98px) {
  .table {
    font-size: 14px;
  }

  .table th,
  .table td {
    padding: 10px 12px;
  }
}

/* Symbol name with icon (paytables) */

.symbol {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.symbol__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* FAQ
   ========================================================================== */

.faq__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq__details {
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--red);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__details[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

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

.faq__answer p {
  margin: 0;
}

.faq__answer p + p {
  margin-top: 8px;
}

/* Footer
   ========================================================================== */

.footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.footer__link {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__divider {
  height: 1px;
  margin: 28px 0 20px;
  background: var(--line);
}

.footer__disclaimer {
  max-width: 900px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
}

.footer__age {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.footer__badge {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .footer__top,
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Grid/flex children that hold text must be allowed to shrink */
.page-hero__body,
.split__body,
.cta-banner__body,
.faq__item {
  min-width: 0;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
