/*
  JEURoyal — Art Deco Grand Royale Theme (v5)
  - Simplified hero background (single image)
  - Royal cards: responsive 2x2 grid; single card spans full width
  - Single-card: aside items in a row; centered content
  - Roulette background moved to royal-card__main (not pseudo)
  - Automatic numbering via JS (data-order) with CSS counter fallback
  - Mobile: compact layout with order — badge, logo, 50/50 content, full-width CTA; side padding
*/

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --ink-950: #04060b;
  --ink-900: #080b14;
  --ink-850: #0b0f1d;
  --ink-800: #0e1426;
  --ink-700: #141c35;
  --ivory-25: #fbfaf5;
  --ivory-50: #f5efe1;
  --ivory-100: #e7dec9;
  --silver-300: #aab3c2;

  --gold-200: #efd987;
  --gold-300: #e8cf7a;
  --gold-400: #dfc56a;
  --gold-500: #d2b24a;
  --gold-600: #b18f3a;

  --elev-glow: rgba(210, 178, 74, 0.22);
  --focus-ring: #ffd66b;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --container: 1420px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
h1,
h2,
h3,
p,
ul,
ol,
li,
figure {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  cursor: pointer;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ivory-50);
  background: var(--ink-900);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, "Helvetica Neue", Arial;
  font-size: 18px;
  line-height: 1.6;
  background-image: radial-gradient(
      1200px 600px at 15% -10%,
      rgba(210, 178, 74, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% -10%,
      rgba(30, 59, 134, 0.15),
      transparent 65%
    );
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: "Cinzel", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--ivory-25);
  letter-spacing: 0.02em;
}
a {
  color: var(--ivory-25);
  text-decoration: none;
}
a:hover {
  color: var(--gold-300);
}
:where(a, button, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 20px;
  margin: 0 auto;
}
.site-container {
  min-width: 320px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.a11y-skip {
  position: absolute;
  left: -9999px;
}
.a11y-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--gold-500);
  color: var(--ink-950);
  padding: 8px 12px;
  border-radius: var(--radius-s);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HERO */
.header-section {
  position: relative;
  padding: 226px 0 36px;
  background: linear-gradient(
      180deg,
      rgba(4, 6, 11, 0.36) 0%,
      rgba(4, 6, 11, 0.62) 65%
    ),
    url(../img/new-hero-artdeco-paris.webp) center / cover no-repeat;
  overflow: hidden;
}
.header-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    100% 60% at 50% 0%,
    transparent 30%,
    rgba(4, 6, 11, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.header-section__h1-cover {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  text-align: center;
}
.main-heading {
  position: relative;
  font-size: 60px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  background: linear-gradient(90deg, var(--gold-200), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(210, 178, 74, 0.2);
  z-index: 2;
  max-width: 1220px;
  padding: 0 10px;
}
.intro-text {
  position: relative;
  max-width: 980px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--ivory-100);
  z-index: 2;
}

.features-list {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 2;
}
.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(210, 178, 74, 0.34);
  background: rgba(210, 178, 74, 0.08);
}
.feature-item span {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ROYAL CARDS GRID */
.royal-grid {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  counter-reset: royal;
}
.royal-grid > :only-child {
  grid-column: 1 / -1;
}

/* CARD */
.royal-card {
  position: relative;
  display: flex;
  background: var(--ink-800);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(210, 178, 74, 0.28);
  box-shadow: 0 18px 46px -18px var(--elev-glow);
  border-radius: var(--radius-l);
  counter-increment: royal;
  clip-path: polygon(
    4% 0,
    96% 0,
    100% 4%,
    100% 96%,
    96% 100%,
    4% 100%,
    0 96%,
    0 4%
  );
}
.royal-card--featured {
  border-color: var(--gold-500);
  box-shadow: 0 26px 60px -16px rgba(210, 178, 74, 0.45);
}
.royal-grid > .royal-card:first-child:not(.royal-card--featured) {
  border-color: var(--gold-400);
  box-shadow: 0 22px 54px -18px rgba(210, 178, 74, 0.38);
}

/* HALVES */
.royal-card__aside {
  width: 46%;
  padding: 16px 16px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.royal-card__main {
  width: 54%;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(180deg, rgb(4 6 11 / 61%), rgb(4 6 11 / 40%)),
    url(../img/new-roulette-bg.webp) center / cover no-repeat;
}

/* Single-card: center content and aside in a row */
.royal-grid > :only-child .royal-card__aside,
.royal-grid > :only-child .royal-card__main {
  justify-content: center;
}
.royal-grid > :only-child .royal-card__aside {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* LOGO */
.royal-card__logo-link {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.royal-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

/* BADGE + NUMBERING */
.royal-card__badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-transform: uppercase;
  border-radius: 999px;
  letter-spacing: 0.08em;
  color: var(--gold-200);
  background: linear-gradient(
    90deg,
    rgba(210, 178, 74, 0.18),
    rgba(210, 178, 74, 0.06)
  );
  border: 1px solid rgba(210, 178, 74, 0.34);
}
/* default: CSS counter fallback */
.royal-card__badge::before {
  content: counter(royal, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
/* override when JS sets data-order */
.royal-card__badge[data-order]::before {
  content: attr(data-order);
}
.royal-card__badge span {
  font-weight: 900;
  font-size: 12px;
}

/* STATS */
.royal-card__stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  gap: 16px;
}
.royal-card__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.royal-card__rating h3 {
  color: var(--silver-300);
}
.royal-card__rating span {
  font-size: 26px;
  font-weight: 900;
  color: var(--ivory-25);
}
.royal-card__votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.stars {
  display: flex;
  align-items: center;
  height: 20px;
}
.star {
  width: 18px;
  height: 18px;
  background: url("../img/star.svg") center/contain no-repeat;
  margin-right: 3px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.royal-card__withdraw h3,
.royal-card__rtp h3 {
  text-align: center;
  font-size: 16px;
  color: var(--ivory-25);
}
.royal-card__rtp p {
  display: flex;
  align-items: center;
  color: var(--ivory-100);
}
.ico-win {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  background: url("../img/win.svg") center/contain no-repeat;
}

/* CONTENT SIDE */
.royal-card__subtitle {
  color: var(--gold-200);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
}
.royal-card__offer {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--ivory-25);
}
.royal-card__offer span {
  display: block;
  font-weight: 900;
  font-size: 36px;
  line-height: 1.25;
  color: var(--ivory-25);
}

/* CTA */
.royal-card__cta {
  position: relative;
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 900;
  width: 100%;
  padding: 14px 0;
  border-radius: 14px;
  border: 1px solid var(--gold-500);
  text-align: center;
  background: linear-gradient(90deg, var(--gold-200), var(--gold-500));
  box-shadow: 0 10px 28px -10px rgba(210, 178, 74, 0.55);
  overflow: hidden;
}
.royal-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 20%,
    transparent 40%
  );
  transform: translateX(-100%);
}
.royal-card__cta:hover::after {
  animation: shimmer 1.4s ease;
}
.royal-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(210, 178, 74, 0.6);
  color: var(--ink-950);
}
.royal-card__cta:active {
  transform: translateY(0);
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

/* INFO */
.info-section {
  padding: 2.4rem 1rem;
}
.info-section strong {
  color: var(--gold-300);
  font-weight: 700;
}
.section-heading {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold-200), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-heading-main {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--ivory-25);
  text-shadow: 0 0 16px rgba(210, 178, 74, 0.12);
}
.section-text {
  margin-bottom: 1rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ivory-100);
}
.info-list {
  margin-bottom: 1rem;
  padding-left: 20px;
  list-style: disc;
}
.info-list li {
  margin-bottom: 0.6rem;
}
.info-list li::marker {
  color: var(--gold-400);
}
.section-link {
  font-weight: 900;
  color: var(--gold-200);
  transition: color 0.25s ease;
}
.section-link:hover {
  color: var(--ivory-25);
}

.royal-sep {
  height: 50px;
  width: 100%;
  margin: 28px 0;
  background: url("../img/new-gold-divider.webp") center/contain no-repeat;
}

/* FOOTER */
.site-footer {
  padding: 2.2rem 0;
  background: var(--ink-800);
  position: relative;
  z-index: 1;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      180deg,
      rgba(8, 11, 20, 0.75),
      rgba(8, 11, 20, 0.95)
    ),
    url("../img/new-footer-texture.webp");
  background-size: auto, cover;
  background-position: center;
  background-repeat: repeat, no-repeat;
}
.site-footer .container {
  padding: 30px 20px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.disclaimer-text {
  font-size: 16px;
  text-align: center;
  color: var(--silver-300);
}
.disclaimer-text:not(:last-child) {
  margin-bottom: 0.5rem;
}
.footer-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.partner-logo {
  border-radius: 50%;
  border: 1px solid rgba(210, 178, 74, 0.25);
  background: rgba(210, 178, 74, 0.06);
}
.partner-logo:nth-child(1) {
  width: 108px;
  height: 108px;
}
.partner-logo:nth-child(2),
.partner-logo:nth-child(3),
.partner-logo:nth-child(4),
.partner-logo:nth-child(5) {
  padding: 0.6rem;
  width: 108px;
  height: 108px;
  background-color: rgba(210, 178, 74, 0.1);
}
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav-link {
  color: var(--gold-200);
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: var(--ivory-25);
}

/* RESPONSIVE */
@media (max-width: 1300px) {
  .main-heading {
    font-size: 46px;
  }
}
@media (max-width: 1024px) {
  .royal-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .royal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .main-heading {
    font-size: 34px;
  }
  .features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px;
  }
  .feature-item span {
    font-size: 11px;
  }
}
@media (max-width: 768px) {
  .royal-card__stats {
    gap: 8px;
  }
  .header-section {
    padding: 36px 0 18px;
  }
  .main-heading {
    font-size: 28px;
  }
  .header-section__h1-cover {
    margin-bottom: 12px;
  }
  .intro-text {
    max-width: 100%;
    font-size: 14px;
    margin: 0 auto;
  }
  .royal-card {
    flex-direction: column;
  }
  .royal-card__logo-link {
    height: 80px;
  }
  .royal-card__aside,
  .royal-card__main {
    width: 100%;
    padding: 10px;
    gap: 8px;
  }
  .royal-card__badge {
    padding: 6px;
  }
  .feature-item {
    padding: 6px;
  }
  .features-list {
    display: none;
  }
  .section-heading {
    font-size: 1.4rem;
  }
  .royal-card__rating span {
    font-size: 1.2rem;
  }
  /* Single-card mobile layout: badge, logo, 50/50 content, full-width CTA; roulette bg full width */
  .royal-grid > :only-child .royal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "badge badge" "logo logo" "left right" "cta cta";
    gap: 10px;
    background: linear-gradient(180deg, rgba(4, 6, 11, 0), rgba(4, 6, 11, 0.25)),
      url("../img/new-roulette-bg.webp") center/cover no-repeat;
  }
  /* .royal-grid > :only-child .royal-card__aside,
  .royal-grid > :only-child .royal-card__main {
    display: contents;
  } */
  .royal-grid > :only-child .royal-card__badge {
    grid-area: badge;
  }
  .royal-grid > :only-child .royal-card__logo-link {
    grid-area: logo;
  }
  .royal-grid > :only-child .royal-card__stats:first-of-type,
  .royal-grid > :only-child .royal-card__subtitle,
  .royal-grid > :only-child .royal-card__offer {
    grid-area: left;
  }
  .royal-grid > :only-child .royal-card__stats:last-of-type {
    grid-area: right;
    align-self: start;
  }
  .royal-grid > :only-child .royal-card__cta {
    grid-area: cta;
  }

  .royal-card__badge::before {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .royal-card__subtitle {
    font-size: 15px;
    letter-spacing: 0.08em;
  }
  .royal-card__offer {
    font-size: 15px;
  }
  .royal-card__offer span {
    font-size: 22px;
    line-height: 1.25;
  }
  .stars {
    height: 14px;
  }
  .star {
    width: 14px;
    height: 14px;
  }
  .ico-win {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 1200px) {
  .section-heading-main {
    font-size: 44px;
  }
  .section-heading {
    font-size: 34px;
  }
  .section-text,
  .info-list li {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
