/* ==========================================================================
   PokiesRank — main stylesheet
   ========================================================================== */

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

:root {
  --bg: #1b1b1b;
  --card: rgba(22, 22, 22, .94);
  --glow-rgb: 38, 198, 206;
  --glow: rgba(var(--glow-rgb), .55);
  --glow-strong: rgba(var(--glow-rgb), .85);
  --green: #1a9b1f;
  --lime: #c6f431;
  --gold: #f6c33b;
  --text: #fff;
  --muted: #e8e8e8;
  --bg-opacity: .75;
  --gutter: 22px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.27;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==========  Background  ========== */
div.page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 20px;
}

.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.bg__photo {
  position: absolute; inset: 0;
  background-color: #161616;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--bg-opacity);
}

/* faint red "777" slot reels behind the offers */
.bg__reels {
  position: absolute;
  top: 280px; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100%);
  display: flex; justify-content: space-between;
  filter: blur(8px);
  opacity: .16;
}
.bg__reels span {
  flex: 1;
  margin: 0 12px;
  padding: 40px 0 60px;
  text-align: center;
  font: 700 620px/1 Impact, "Arial Narrow", sans-serif;
  color: #b3121b;
  background: linear-gradient(#2a0a0a, #120707);
  border-radius: 20px;
}

/* golden bokeh lights */
.bg__bokeh {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 196, 90, .55) 0 3px, transparent 7px),
    radial-gradient(circle at 16% 26%, rgba(255, 196, 90, .35) 0 4px, transparent 9px),
    radial-gradient(circle at 36% 12%, rgba(255, 196, 90, .35) 0 2px, transparent 6px),
    radial-gradient(circle at 44% 4%,  rgba(255, 196, 90, .30) 0 3px, transparent 8px),
    radial-gradient(circle at 58% 16%, rgba(255, 196, 90, .30) 0 2px, transparent 6px),
    radial-gradient(circle at 70% 6%,  rgba(255, 196, 90, .30) 0 3px, transparent 8px),
    radial-gradient(circle at 82% 22%, rgba(255, 196, 90, .40) 0 3px, transparent 8px),
    radial-gradient(circle at 92% 10%, rgba(255, 196, 90, .30) 0 2px, transparent 6px),
    radial-gradient(circle at 2% 62%,  rgba(255, 196, 90, .45) 0 6px, transparent 16px),
    radial-gradient(circle at 36% 66%, rgba(255, 196, 90, .35) 0 2px, transparent 6px),
    radial-gradient(circle at 46% 70%, rgba(255, 196, 90, .30) 0 3px, transparent 8px),
    radial-gradient(circle at 78% 64%, rgba(255, 196, 90, .30) 0 2px, transparent 6px);
  background-size: 100% 1400px;
  background-repeat: no-repeat;
  filter: blur(1px);
}

.bg__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, .55) 0, rgba(20, 20, 20, .2) 420px, rgba(20, 20, 20, .35) 70%, rgba(24, 24, 24, .7) 100%);
}

/* ==========  Hero header  ========== */
.hero {
  position: relative;
  max-width: 1064px;
  padding-top: 35px;
  padding-bottom: 32px;
  text-align: center;
}

.hero__flag {
  position: absolute;
  top: 35px;
  width: 86px; height: 43px !important;
  object-fit: cover;
}
.hero__flag--left  { left: var(--gutter); }
.hero__flag--right { right: var(--gutter); }

.hero__updated {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.hero__title {
  margin: 12px 0 14px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.3px;
}

.hero__text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 19px;
  color: var(--muted);
}
.hero__text p + p { margin-top: 8px; }
.hero__text a { text-decoration: underline; }

.hero--compact { padding-bottom: 10px; }

.features {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 16px;
  margin-top: 12px;
}
.features__item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.features__item svg { width: 22px; height: 22px; flex: none; }

/* ==========  Sections (flexible content)  ========== */
.section.pt-none { padding-top: 0; }
.section.pt-sm   { padding-top: 20px; }
.section.pt-md   { padding-top: 20px; }
.section.pt-lg   { padding-top: 64px; }
.section.pb-none { padding-bottom: 0; }
.section.pb-sm   { padding-bottom: 12px; }
.section.pb-md   { padding-bottom: 36px; }
.section.pb-lg   { padding-bottom: 64px; }

.section--text.pt-md,
.section--faq.pt-md,
.section--providers.pt-md,
.section--image-text.pt-md { padding-top: 58px; }

.section__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.3px;
}
.section--offers .section__title { margin-bottom: 22px; text-align: center; }

/* ----- WYSIWYG content ----- */
.wysiwyg { font-weight: 500; line-height: 19px; }
.wysiwyg > * + * { margin-top: 15px; }
.wysiwyg h2, .wysiwyg h3, .wysiwyg h4 { margin: 26px 0 10px; line-height: 1.2; }
.wysiwyg h2 { font-size: 26px; }
.wysiwyg h3 { font-size: 21px; }
.wysiwyg h4 { font-size: 17px; }
.wysiwyg a { color: var(--lime); text-decoration: underline; }
.wysiwyg a:hover { text-decoration: none; }
.wysiwyg strong, .wysiwyg b { font-weight: 700; }
.wysiwyg ul, .wysiwyg ol { margin-top: 14px; padding: 0; }
.wysiwyg ul li {
  position: relative;
  padding-left: 20px;
}
.wysiwyg ul li::before {
  content: "";
  position: absolute; left: 7px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.wysiwyg ol { padding-left: 22px; list-style: decimal; }
.wysiwyg li + li { margin-top: 14px; }
.wysiwyg img { border-radius: 8px; }
.wysiwyg blockquote {
  margin-left: 0; margin-right: 0;
  padding: 12px 18px;
  border-left: 3px solid var(--lime);
  background: rgba(255, 255, 255, .05);
  border-radius: 0 6px 6px 0;
}
.wysiwyg table { width: 100%; border-collapse: collapse; }
.wysiwyg th, .wysiwyg td { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .15); text-align: left; }
.wysiwyg .alignleft  { float: left;  margin: 0 18px 12px 0; }
.wysiwyg .alignright { float: right; margin: 0 0 12px 18px; }
.wysiwyg .aligncenter { margin-left: auto; margin-right: auto; }

/* ==========  Offers  ========== */
.offers { display: grid; gap: 22px; }

.offer {
  position: relative;
  display: grid;
  grid-template-columns: 21.7% 20% 19% 14.2% 1fr;
  align-items: center;
  min-height: 155px;
  padding: 20px 0 34px;
  background: var(--card);
  border: 1px solid rgba(var(--glow-rgb), .25);
  border-radius: 8px;
  box-shadow: 0 0 14px 2px var(--glow), inset 0 0 0 1px rgba(0, 0, 0, .4);
  transition: box-shadow .25s ease;
}
.offer:hover { box-shadow: 0 0 22px 4px var(--glow-strong), inset 0 0 0 1px rgba(0, 0, 0, .4); }

.offer > * { min-width: 0; text-align: center; }

.offer__logo {
  display: flex; justify-content: center; align-items: center;
  padding: 0 12px 0 20px;
  transition: transform .25s ease;
}
.offer__logo:hover { transform: scale(1.04); }
.offer__logo img {
  width: auto; height: auto;
  max-width: 240px;
  max-height: 110px;
  object-fit: contain;
}

.offer__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}
.offer__label--light { font-size: 12px; font-weight: 400; text-transform: none; }
.offer__label--upper { text-transform: uppercase; }

.offer__bonus-text {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.offer__rating { padding-top: 16px; }
.offer__rating .offer__label { margin-bottom: 9px; }

.offer__score-value {
  display: block;
  margin-top: 4px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.offer__action {
  display: flex; flex-direction: column; align-items: center;
  gap: 13px;
}

.offer__terms {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  font-size: 9px;
  font-weight: 500;
  color: #e0e0e0;
}

/* ----- Stars ----- */
.stars { display: flex; justify-content: center; align-items: center; gap: 3px; }
.stars svg { width: 24px; height: 24px; }
.stars svg:nth-child(3) { width: 31px; height: 31px; }

/* ----- Payments (auto marquee when overflowing, see main.js) ----- */
.payments {
  position: relative;
  width: 187px;
  max-width: 100%;
  min-height: 22px;
  overflow: hidden;
}
.payments__track {
  display: flex; align-items: center; justify-content: space-around;
  min-height: 22px;
}
.payments__item {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.payments__item img {
  width: auto; height: auto;
  max-width: 40px;
  max-height: 16px;
  object-fit: contain;
}

.payments.is-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.payments.is-marquee .payments__track {
  justify-content: flex-start;
  width: max-content;
  animation: pr-marquee var(--marquee-duration, 10s) linear infinite;
  will-change: transform;
}
.payments.is-marquee:hover .payments__track,
.payments.is-marquee:focus-within .payments__track { animation-play-state: paused; }

@keyframes pr-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--marquee-shift, 50%) * -1), 0, 0); }
}

/* ----- Button ----- */
.btn-play {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 187px; height: 38px;
  max-width: 100%;
  background: var(--green);
  border-bottom: 3px solid var(--lime);
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1px;
  text-transform: uppercase;
  transition: filter .2s ease, transform .15s ease;
}
.btn-play::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8) 25%, rgba(255, 255, 255, .8) 75%, transparent);
  opacity: .85;
  transform: skewX(-40deg);
  animation: pr-shine 3.2s ease-in-out infinite;
  animation-delay: var(--shine-delay, 0s);
}
.no-shine .btn-play::after { display: none; }
.btn-play:hover { filter: brightness(1.12); }
.btn-play:active { transform: translateY(1px); }
.btn-play:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

@keyframes pr-shine {
  0%, 55% { left: -60%; }
  100%    { left: 130%; }
}

/* ==========  Image + text  ========== */
.image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.image-text--right .image-text__media { order: 2; }
.image-text__media img { width: 100%; border-radius: 8px; box-shadow: 0 0 14px 2px var(--glow); }
.image-text__btn { margin-top: 22px; }

/* ==========  FAQ  ========== */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card);
  border: 1px solid rgba(var(--glow-rgb), .25);
  border-radius: 8px;
  transition: box-shadow .25s ease;
}
.faq__item[open] { box-shadow: 0 0 12px 1px var(--glow); }
.faq__question {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] .faq__question::after { transform: translateY(-30%) rotate(-135deg); }
.faq__answer { padding: 0 20px 18px; color: var(--muted); }

/* ==========  404  ========== */
.error-404__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 30px 44px;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(var(--glow-rgb), .25);
  border-radius: 8px;
  box-shadow: 0 0 14px 2px var(--glow);
}
.error-404__image img { max-height: 220px; width: auto; margin: 0 auto 10px; }
.error-404__code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.error-404__title { margin: 10px 0 14px; font-size: 28px; font-weight: 700; }
.error-404__text { max-width: 560px; margin: 0 auto; color: var(--muted); }
.error-404__btn { margin: 26px auto 0; width: 220px; }

.notice-box {
  padding-top: 30px; padding-bottom: 30px;
  text-align: center;
  color: var(--gold);
}

/* ==========  Footer  ========== */
.footer {
  background: #1b1b1b;
  padding: 50px 0 36px;
  color: var(--muted);
}
.footer__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 540px));
  column-gap: 55px;
  row-gap: 28px;
}
.footer__title {
  margin: 0 0 11px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.1px;
}
.footer__text { line-height: 19px; }
.footer__text p + p { margin-top: 8px; }
.footer__text a { text-decoration: underline; }
.footer__block + .footer__block { margin-top: 37px; }

.footer__copyright {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  text-align: center;
  color: #9a9a9a;
}

/* ----- Provider logos ----- */
.providers {
  display: flex; flex-wrap: wrap; justify-content: center;
  row-gap: 42px;
  margin-top: 30px;
}
.section--providers .providers { margin-top: 20px; }
.providers__item {
  flex: 0 0 calc(100% / 9);
  height: 48px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  transition: transform .2s ease, filter .2s ease;
}
.providers__item:hover { transform: scale(1.06); filter: brightness(1.15); }
.providers__item img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

/* ==========  Tablet  ========== */
@media (max-width: 1100px) {
  .footer__info { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .providers__item { flex-basis: calc(100% / 6); }
  .providers { row-gap: 28px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 20px; }

  .hero__title, .section__title { font-size: 28px; }
  .hero__flag { width: 64px; height: 32px !important; }

  .offer {
    grid-template-columns: 1.15fr .85fr .7fr 1.1fr;
    grid-template-areas:
      "logo  bonus  bonus action"
      "logo  rating score action";
    row-gap: 14px;
    padding: 22px 16px 34px;
  }
  .offer__logo   { grid-area: logo; padding: 0 10px 0 0; }
  .offer__logo img { max-width: 100%; }
  .offer__bonus  { grid-area: bonus; }
  .offer__rating { grid-area: rating; padding-top: 0; }
  .offer__score  { grid-area: score; }
  .offer__action { grid-area: action; }
  .offer__score-value { font-size: 34px; }
  .offer__bonus-text { font-size: 17px; }

  .image-text { gap: 28px; }
}

@media (max-width: 767px) {
  .footer__info { grid-template-columns: 1fr; }
  .providers__item { flex-basis: calc(100% / 4); }
  .image-text { grid-template-columns: 1fr; }
  .image-text--right .image-text__media { order: 0; }
}

/* ==========  Mobile — compact  ========== */
@media (max-width: 640px) {
  :root { --gutter: 12px; }
  body { font-size: 13px; }

  .hero { padding-top: 16px; padding-bottom: 20px; }
  .hero__flag { top: 14px; width: 40px; height: 20px !important; border-radius: 2px; }
  .hero__updated { font-size: 12px; }
  .hero__title { margin: 10px 0; font-size: 21px; }
  .hero__text { font-size: 12.5px; line-height: 16px; }
  .features { gap: 6px 12px; margin-top: 12px; }
  .features__item { font-size: 11px; gap: 5px; }
  .features__item svg { width: 17px; height: 17px; }

  .bg__reels { top: 220px; }
  .bg__reels span { font-size: 280px; margin: 0 4px; }

  .section--text.pt-md,
  .section--faq.pt-md,
  .section--providers.pt-md,
  .section--image-text.pt-md { padding-top: 34px; }
  .section.pt-lg { padding-top: 40px; }
  .section.pb-md { padding-bottom: 24px; }
  .section.pb-lg { padding-bottom: 40px; }
  .section__title { font-size: 21px; margin-bottom: 10px; }

  .offers { gap: 16px; }
  .offer {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "logo   rating score"
      "bonus  bonus  bonus"
      "action action action";
    column-gap: 12px;
    row-gap: 10px;
    min-height: 0;
    padding: 12px 12px 26px;
    box-shadow: 0 0 10px 1px var(--glow), inset 0 0 0 1px rgba(0, 0, 0, .4);
  }
  .offer__logo { justify-content: flex-start; padding: 0; }
  .offer__logo img { max-width: 132px; max-height: 64px; }

  .offer__rating .offer__label { margin-bottom: 5px; }
  .offer__label { font-size: 11px; }
  .offer__label--light { font-size: 10px; }
  .stars { gap: 1px; }
  .stars svg { width: 15px; height: 15px; }
  .stars svg:nth-child(3) { width: 19px; height: 19px; }
  .offer__score-value { font-size: 26px; margin-top: 2px; }

  .offer__bonus {
    padding: 8px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
  }
  .offer__bonus .offer__label { font-size: 10px; color: #bdbdbd; }
  .offer__bonus-text { margin-top: 3px; font-size: 15px; line-height: 19px; }

  .offer__action { flex-direction: column-reverse; gap: 8px; }
  .btn-play { width: 100%; height: 40px; font-size: 15px; }
  .payments { width: 100%; }
  .payments__track { justify-content: center; }
  .payments__item { padding: 0 7px; }
  .offer__terms { bottom: 9px; font-size: 8.5px; }

  .wysiwyg, .wysiwyg li { line-height: 17px; }
  .wysiwyg > * + * { margin-top: 10px; }
  .wysiwyg ul, .wysiwyg ol { margin-top: 10px; }
  .wysiwyg ul li { padding-left: 16px; }
  .wysiwyg li + li { margin-top: 7px; }
  .wysiwyg ul li::before { left: 5px; top: 7px; }
  .wysiwyg h2 { font-size: 19px; }
  .wysiwyg h3 { font-size: 17px; }

  .faq__question { padding: 13px 44px 13px 14px; font-size: 14px; }
  .faq__question::after { right: 16px; }
  .faq__answer { padding: 0 14px 14px; }

  .error-404__card { padding: 26px 16px 30px; }
  .error-404__code { font-size: 80px; letter-spacing: -2px; }
  .error-404__title { font-size: 20px; }
  .error-404__btn { width: 100%; }

  .footer { padding: 30px 0 24px; font-size: 12.5px; }
  .footer__title { font-size: 13px; margin-bottom: 7px; }
  .footer__text { line-height: 16px; }
  .footer__block + .footer__block { margin-top: 20px; }
  .footer__info { row-gap: 20px; }

  .providers { row-gap: 14px; margin-top: 24px; }
  .providers__item { flex-basis: calc(100% / 3); height: 36px; }
  .providers__item img { max-height: 26px; }
}

@media (max-width: 360px) {
  .offer__logo img { max-width: 112px; }
  .offer__score-value { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-play::after { animation: none; display: none; }
  .payments.is-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .payments.is-marquee .payments__track { animation: none; }
}
