@import url('../fonts/original-fonts.css');

/* KA999 RTP Guide — "jade felt & gold leaf"
   Palette: felt-green surfaces, gold-leaf figures, lacquer-red play actions,
   ivory reel faces. Display type is used only for the wordmark and page titles. */

:root {
  --felt: #0c3b33;
  --felt-deep: #082a24;
  --felt-raised: #114a40;
  --baize: #1e5a4e;
  --gold: #e6b54a;
  --gold-hi: #f6d68a;
  --gold-lo: #8a6418;
  --lacquer: #c9402a;
  --lacquer-hi: #e05a3e;
  --ivory: #f2e8d0;
  --mist: #93b5a9;
  --ink: #0a1f1a;

  --font-display: 'Shrikhand', Georgia, serif;
  --font-figure: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --topbar-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--felt);
  background-image: url(../img/texture/felt.png),
    radial-gradient(120% 70% at 50% -10%, #145246 0%, var(--felt) 60%);
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* height:auto lets width/height attributes reserve space (no layout shift)
   without pinning a fixed pixel height that would override aspect-ratio. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-hi);
}

:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Type roles ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 18px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.muted {
  color: var(--mist);
}

/* ---------- Icons (original PNG silhouettes used as masks) ---------- */

.ico {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.ico-home { -webkit-mask-image: url(../img/icons/home.png); mask-image: url(../img/icons/home.png); }
.ico-rtp { -webkit-mask-image: url(../img/icons/rtp.png); mask-image: url(../img/icons/rtp.png); }
.ico-about { -webkit-mask-image: url(../img/icons/about.png); mask-image: url(../img/icons/about.png); }
.ico-privacy { -webkit-mask-image: url(../img/icons/privacy.png); mask-image: url(../img/icons/privacy.png); }
.ico-cookies { -webkit-mask-image: url(../img/icons/cookies.png); mask-image: url(../img/icons/cookies.png); }
.ico-terms { -webkit-mask-image: url(../img/icons/terms.png); mask-image: url(../img/icons/terms.png); }
.ico-menu { -webkit-mask-image: url(../img/icons/menu.png); mask-image: url(../img/icons/menu.png); }
.ico-clock { -webkit-mask-image: url(../img/icons/clock.png); mask-image: url(../img/icons/clock.png); }
.ico-mail { -webkit-mask-image: url(../img/icons/mail.png); mask-image: url(../img/icons/mail.png); }
.ico-star { -webkit-mask-image: url(../img/icons/star.png); mask-image: url(../img/icons/star.png); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-play {
  background: linear-gradient(180deg, var(--lacquer-hi), var(--lacquer) 55%);
  color: var(--ivory);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px rgba(201, 64, 42, 0.35);
}

.btn-play:hover {
  color: #fff;
  background: linear-gradient(180deg, #ea6a4d, var(--lacquer-hi) 55%);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-gold:hover {
  color: var(--ink);
  background: linear-gradient(180deg, #fbe3a8, var(--gold-hi) 60%);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 2px var(--baize);
}

.btn-ghost:hover {
  color: var(--ivory);
  box-shadow: inset 0 0 0 2px var(--gold);
}

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

.btn-block {
  width: 100%;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 42, 36, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--baize);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--topbar-h);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--felt-raised);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  flex: none;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.brand-lg .brand-logo {
  width: 56px;
  height: 56px;
}

.brand-text {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

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

.brand-word {
  font-family: var(--font-display);
  font-size: 30px;
  background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, #c78f22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.brand-tld {
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 17px;
  color: var(--ivory);
  padding-bottom: 3px;
}

.topnav {
  display: none;
  margin-left: 18px;
  gap: 4px;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav a:hover {
  background: var(--felt-raised);
}

.topnav a[aria-current='page'] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.social-link img {
  width: 32px;
  height: 32px;
}

.top-actions .btn {
  min-height: 40px;
  padding: 0 16px;
}

@media (min-width: 900px) {
  .topnav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

@media (max-width: 420px) {
  .top-actions .social-link {
    display: none;
  }

  /* the logo already carries ".com"; drop it from the wordmark to fit 360px phones */
  .topbar .brand-tld {
    display: none;
  }
}

/* ---------- Drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 14, 12, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms, visibility 0s 240ms;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: min(330px, 88vw);
  overflow-y: auto;
  padding: 18px 18px 28px;
  background: var(--felt-deep);
  border-right: 1px solid var(--baize);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 280ms var(--ease-out), visibility 0s 280ms;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 280ms var(--ease-out);
}

.drawer.is-open + .drawer-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer-title {
  margin: 0;
}

.drawer-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-tiles a {
  display: block;
  border-radius: 12px;
  transition: transform 160ms var(--ease-out);
}

.drawer-tiles a:hover {
  transform: translateY(-2px);
}

.drawer-rule {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  opacity: 0.9;
}

.drawer-nav {
  display: grid;
  gap: 2px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--mist);
  text-decoration: none;
  font-weight: 700;
}

.drawer-nav a:hover {
  color: var(--ivory);
  background: var(--felt-raised);
}

.drawer-nav a[aria-current='page'] {
  color: var(--gold);
  background: var(--felt-raised);
}

.drawer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.drawer-social img {
  width: 44px;
  height: 44px;
}

/* ---------- Pages ---------- */

main {
  display: block;
  min-height: 60vh;
}

.page {
  padding: clamp(28px, 5vw, 56px) 0 72px;
}

.page-head {
  margin-bottom: 28px;
}

/* Page titles take programmatic focus on navigation (screen-reader announcement);
   they aren't controls, so no focus ring. */
.page-focus:focus {
  outline: none;
}

.page-title {
  font-size: clamp(40px, 6.4vw, 68px);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 74px);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lede {
  max-width: 46ch;
  margin: 20px 0 28px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ivory);
}

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

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* ---------- Signature: reel readout ---------- */

.readout {
  position: relative;
  margin: 0;
  padding: 44px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0f4a40, var(--felt-deep));
  box-shadow: inset 0 0 0 1px var(--baize), 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.readout-mascot {
  position: absolute;
  top: -38px;
  right: 22px;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.readout-label {
  margin: 0 0 16px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.reels {
  --cell: 1.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.07em;
  padding: 0.11em 0.13em;
  border-radius: 0.14em;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: clamp(66px, 13vw, 124px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #2b1f08, #120d04);
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #5a410f, inset 0 0 0 7px var(--gold-lo),
    0 14px 30px rgba(0, 0, 0, 0.45);
}

.reel {
  position: relative;
  width: 0.6em;
  height: var(--cell);
  overflow: hidden;
  border-radius: 0.05em;
  background: linear-gradient(90deg, #d9cdb0, var(--ivory) 22%, var(--ivory) 78%, #d9cdb0);
  color: var(--ink);
}

/* curvature of the drum: dark at top and bottom, bright in the window */
.reel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0) 30%,
    rgba(255, 255, 255, 0.12) 48%,
    rgba(0, 0, 0, 0) 66%,
    rgba(0, 0, 0, 0.55)
  );
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--stop, 0) * var(--cell) * -1));
}

.reel-strip.is-spinning {
  transition: transform var(--dur, 1s) cubic-bezier(0.16, 0.84, 0.3, 1.07);
}

.reel-strip span {
  display: grid;
  place-items: center;
  height: var(--cell);
}

.reel-dot {
  width: 0.22em;
  color: var(--gold);
  text-align: center;
}

.reel-unit {
  padding: 0 0.04em 0 0.06em;
  font-size: 0.56em;
  color: var(--gold);
}

.readout-game {
  margin: 18px 0 2px;
  font-weight: 700;
  font-size: 20px;
}

.readout-provider {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--mist);
}

.readout-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .reel-strip.is-spinning {
    transition: none;
  }
}

/* Auto-advance: a gold line along the bottom fills over one cycle */
.readout {
  overflow: visible;
}

.readout-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--baize);
  overflow: hidden;
}

.readout-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

.readout.is-cycling .readout-progress::after {
  animation: readout-progress var(--cycle, 5000ms) linear forwards;
}

.readout.is-held .readout-progress::after,
.readout.is-paused .readout-progress::after {
  animation-play-state: paused;
}

@keyframes readout-progress {
  to {
    transform: scaleX(1);
  }
}

.readout-pause {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--baize);
  color: var(--mist);
  cursor: pointer;
}

.readout-pause:hover {
  color: var(--ivory);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.readout-pause svg {
  width: 14px;
  height: 14px;
}

.readout-pause .i-play,
.readout.is-paused .readout-pause .i-pause {
  display: none;
}

.readout.is-paused .readout-pause .i-play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .readout-progress,
  .readout-pause {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Compact readout in the RTP list header */
.rtp-head {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .rtp-head {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }
}

.readout-compact {
  padding: 18px 18px 26px;
}

.readout-compact .readout-label {
  margin-bottom: 10px;
}

.readout-compact .reels {
  font-size: clamp(54px, 9vw, 78px);
}

.readout-compact .readout-game {
  margin-top: 12px;
  font-size: 18px;
}

.readout-compact .readout-provider {
  margin-bottom: 12px;
}

/* Phones: keep the first game cards near the fold */
@media (max-width: 560px) {
  .rtp-head {
    gap: 16px;
    margin-bottom: 18px;
  }

  .readout-compact {
    padding: 14px 14px 22px;
  }

  .readout-compact .reels {
    font-size: 46px;
  }

  .readout-compact .readout-game {
    margin-top: 8px;
    font-size: 16px;
  }

  .readout-compact .readout-provider {
    margin-bottom: 8px;
  }
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cd08a;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: live-ping 2s ease-out infinite;
}

@keyframes live-ping {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot::after {
    animation: none;
  }
}

/* ---------- Promo rail (original banner art, copy set in HTML) ---------- */

.promo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 500px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-lo) transparent;
}

.promo {
  position: relative;
  display: block;
  height: 164px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--felt-deep);
  box-shadow: inset 0 0 0 1px var(--baize);
  color: var(--ivory);
  text-decoration: none;
  scroll-snap-align: start;
  isolation: isolate;
}

.promo img {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -2;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 400ms var(--ease-out);
}

.promo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--felt-deep) 34%, rgba(8, 42, 36, 0.8) 46%, rgba(8, 42, 36, 0) 64%);
}

.promo:hover {
  color: var(--ivory);
}

.promo:hover img {
  transform: scale(1.04);
}

.promo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 54%;
  padding: 0 0 0 20px;
}

.promo-kicker {
  margin: 0 0 6px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.promo-title {
  margin: 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}

.promo-go {
  margin-top: 10px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

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

/* ---------- Featured games ---------- */

.section {
  padding: clamp(28px, 5vw, 52px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

@media (min-width: 820px) {
  .featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature {
  display: block;
  color: var(--ivory);
  text-decoration: none;
}

.feature img {
  width: 100%;
  aspect-ratio: 352 / 192;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 200ms var(--ease-out);
}

.feature:hover {
  color: var(--ivory);
}

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

.feature-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 0;
}

.feature-rtp {
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}

.feature-rtp small {
  font-size: 0.6em;
  margin-left: 2px;
}

.feature-play {
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.feature:hover .feature-play {
  color: var(--lacquer-hi);
}

/* ---------- RTP basics ---------- */

.basics {
  display: grid;
  gap: 28px;
  align-items: center;
}

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

.basics-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.facts {
  margin: 0;
}

.facts div {
  padding: 16px 0;
  border-top: 1px solid var(--baize);
}

.facts div:first-child {
  border-top: 0;
  padding-top: 0;
}

.facts dt {
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dd {
  margin: 4px 0 0;
  max-width: 54ch;
}

.footnote {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--mist);
  max-width: 60ch;
}

/* ---------- Closing band ---------- */

.closer {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  box-shadow: inset 0 0 0 1px #2a2212;
}

.closer-copy {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 44px);
}

.closer-copy p {
  max-width: 40ch;
  margin: 10px 0 22px;
  color: #d8cfb8;
}

.closer img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 820px) {
  .closer {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ---------- RTP list page ---------- */

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--mist);
}

.updated .ico {
  width: 16px;
  height: 16px;
}

.providers {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-lo) transparent;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--felt-deep);
  box-shadow: inset 0 0 0 1px var(--baize);
  color: var(--ivory);
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.chip:hover {
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--gold-lo);
}

.chip[aria-current='true'] {
  background: var(--felt-raised);
  color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.chip-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--provider-hue, var(--baize));
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.chip-mark img {
  width: 30px;
  height: 30px;
}

.chip-mark.has-logo {
  background: none;
}

.chip-mark.has-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.chip-count {
  font-weight: 600;
  color: var(--mist);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search {
  position: relative;
  flex: 1 1 260px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--mist);
  pointer-events: none;
}

.search input,
.sort select {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--felt-deep);
  box-shadow: inset 0 0 0 1px var(--baize);
  color: var(--ivory);
  font: inherit;
}

.search input {
  padding: 0 14px 0 42px;
}

.search input::placeholder {
  color: var(--mist);
  opacity: 1;
}

.search input:focus,
.sort select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.sort select {
  width: auto;
  min-width: 170px;
  padding: 0 40px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.sort select option {
  background: var(--felt-deep);
  color: var(--ivory);
}

.result-count {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--mist);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 560px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--felt-deep);
  box-shadow: inset 0 0 0 1px var(--baize);
  animation: deal 420ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}

@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game {
    animation: none;
  }
}

/* Covers come in 3:2 (PG, Pragmatic) and portrait (JILI): the art is shown whole on top of
   a blurred copy of itself, so every card keeps the same shape without cropping. */
.game-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--felt-deep);
}

.game-cover .cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.3);
  transform: scale(1.25);
  opacity: 0.7;
}

.game-cover .cover-fg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Typographic cover for games without artwork */
.cover-type {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 10px 12px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 12px),
    radial-gradient(130% 120% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    var(--provider-hue, var(--baize));
}

.cover-type b {
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

[data-provider='pg'] {
  --provider-hue: #8c2a1c;
}

[data-provider='pragmatic'] {
  --provider-hue: #7a5212;
}

[data-provider='jili'] {
  --provider-hue: #17506b;
}

.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.game-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.game-provider {
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--mist);
}

/* Observed payouts (only rendered when the data feed supplies them).
   Diverging bar: the centre line is the published RTP; the fill grows right (gold) when
   players got back more over the period, left (mist) when they got back less. */
.paid {
  margin: 2px 0 16px;
  padding-top: 10px;
  border-top: 1px solid var(--baize);
}

.paid-title {
  margin: 0 0 6px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.paid-row {
  display: grid;
  grid-template-columns: 34px 1fr 58px;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  font-size: 13px;
}

.paid-k {
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
}

.paid-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(30, 90, 78, 0.6);
}

.paid-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: var(--ivory);
  opacity: 0.7;
}

.paid-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--l, 50%);
  width: var(--w, 0%);
  border-radius: 4px;
  background: var(--mist);
  transition: left 900ms var(--ease-out), width 900ms var(--ease-out), background-color 300ms;
}

.paid-row.is-up .paid-bar i {
  background: var(--gold);
}

.paid-v {
  text-align: right;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.paid-row.is-up .paid-v {
  color: var(--gold);
}

/* a value that changed on refresh glows briefly */
.is-changed {
  animation: changed 1.6s ease-out;
}

@keyframes changed {
  from {
    text-shadow: 0 0 14px var(--gold-hi);
    color: var(--gold-hi);
  }
}

@media (prefers-reduced-motion: reduce) {
  .paid-bar i {
    transition: none;
  }

  .is-changed {
    animation: none;
  }
}

@media (max-width: 560px) {
  .paid-row {
    grid-template-columns: 28px 1fr 50px;
    gap: 6px;
    font-size: 12px;
  }

  .paid-v {
    font-size: 14px;
  }
}

.game .btn {
  margin-top: auto;
  min-height: 44px;
}

@media (max-width: 560px) {
  .game-body {
    padding: 10px 10px 12px;
  }

  .game .btn {
    padding: 0 10px;
  }
}

.grid-status {
  padding: 40px 0;
  text-align: center;
  color: var(--mist);
}

.grid-status strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ivory);
  font-size: 18px;
}

.grid-status .btn {
  margin-top: 14px;
}

.fine {
  max-width: 70ch;
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--mist);
}

/* ---------- About ---------- */

.about-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}

.about-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

/* two-class selector so it beats `.about-hero img` (square logo, never cropped) */
.about-hero .about-logo {
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
}

.about-hero .page-title span {
  display: block;
  color: var(--gold);
}

.about-hero p {
  max-width: 52ch;
}

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

.split {
  display: grid;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

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

.split img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
}

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

.tips li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--baize);
}

.tips li:first-child {
  border-top: 0;
}

.tips li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 19px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--gold);
}

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

.community a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  background: var(--felt-deep);
  box-shadow: inset 0 0 0 1px var(--baize);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 700;
}

.community a:hover {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.community img {
  width: 36px;
  height: 36px;
}

.community .ico {
  width: 22px;
  height: 22px;
  margin: 0 7px;
  color: var(--gold);
}

/* ---------- Legal documents ---------- */

.doc {
  max-width: 780px;
}

.doc-photo {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 28px;
}

.doc h2 {
  margin: 34px 0 8px;
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.doc p,
.doc li {
  color: #e3dac3;
}

.doc ul {
  padding-left: 20px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--baize);
  background: var(--felt-deep);
  padding: 36px 0 28px;
  font-size: 14px;
  color: var(--mist);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ivory);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.age-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--baize);
  color: var(--ivory);
}

.age-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--lacquer-hi);
  font-family: var(--font-figure);
  font-weight: 800;
  font-size: 16px;
  color: var(--ivory);
}

.copyright {
  margin: 0;
  font-family: var(--font-figure);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Current two-step Jogar interaction inside the original rounded game cards. */
.game-reveal { display: block; width: 100%; height: 100%; padding: 0; }
.game-reveal:focus-visible { outline-offset: -3px; }
.game-reveal img { width: 100%; height: 100%; object-fit: fill; transition: transform 220ms ease-out; }
.game-cover.is-ready .game-reveal img { transform: scale(1.035); }
.cover-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #0006; font-size: 14px; font-weight: 700; }
.cover-play-pill { padding: 6px 30px; border-radius: 999px; color: #000; background: #ffec00; box-shadow: 0 3px 12px #0004; }
.cover-play:focus-visible .cover-play-pill { outline: 2px solid #fff; outline-offset: 4px; }
.game-cover.is-ready .cover-play { animation: reveal-overlay 220ms ease-out both; }
.game-cover.is-ready .cover-play-pill { animation: reveal-play 280ms cubic-bezier(.2,.75,.3,1) both; }
@keyframes reveal-overlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-play { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

.game-reveal { position: relative; }
.game-reveal img.cover-bg { position: absolute; }
.game-reveal img.cover-fg { position: relative; object-fit: contain; }
.cover-play { text-decoration: none; font-family: var(--font-body); }
.cover-play:hover { color: #000; }
.trend-rows { margin-bottom: 0; }
.paid-bar .trend-fill { left: 0; width: var(--fill, 0%); background: var(--gold); transition: width 600ms ease-out; }
.paid-bar::after { display: none; }
.trend-value { color: var(--gold); }
.paid-row { grid-template-columns: 40px minmax(0, 1fr) 58px; }
.paid-k { font-size: 12px; }
@media (max-width: 560px) {
  .paid-row { grid-template-columns: 34px minmax(0, 1fr) 47px; gap: 4px; }
  .paid-k { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-reveal img, .cover-play, .cover-play-pill, .trend-fill, .is-changed { animation: none !important; transition: none !important; }
}

/* Portuguese actions retain the original compact header dimensions. */
.live-dot { flex: none; }
@media (max-width: 560px) {
  .top-actions .btn { white-space: nowrap; font-size: 18px; padding: 0 12px; }
}
@media (max-width: 360px) {
  .topbar-inner { gap: 8px; }
  .topbar .brand { gap: 8px; }
  .topbar .brand-logo { width: 36px; height: 36px; }
  .topbar .brand-word { font-size: 24px; }
  .top-actions .btn { font-size: 16px; padding: 0 10px; }
}
