:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #13110e;
  color: #fff3dc;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #ffd076; }
.rtp-header, main { width: min(73rem, 100% - 2rem); margin-inline: auto; }
.rtp-header {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #503d26;
}
.rtp-header img { display: block; max-width: 40vw; height: auto; }
.rtp-header nav, .rtp-pages { display: flex; gap: 1rem; align-items: center; }
main { padding-block: 1.5rem 6rem; }
h1 { margin: 0; font-size: clamp(1.85rem, 5vw, 3rem); }
.rtp-note { color: #d7c7ad; }
.rtp-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
  padding: 1rem;
  background: #251f16;
  border-radius: .75rem;
}
.rtp-filters label { display: grid; gap: .35rem; }
.rtp-filters input, .rtp-filters select {
  width: 100%;
  min-height: 2.75rem;
  min-width: 0;
  padding: .5rem;
  background: #18140f;
  color: inherit;
  border: 1px solid #6a5130;
  border-radius: .35rem;
  font: inherit;
}
button, .rtp-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 0;
  border-radius: .35rem;
  background: #f5bd56;
  color: #211505;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
:focus-visible { outline: 2px solid #ffd076; outline-offset: 3px; }
.rtp-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: .75rem;
  list-style: none;
  padding: 0;
}
.rtp-games li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #503d26;
  border-radius: .75rem;
  background: #211b14;
}
.rtp-games img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #17130e;
}
.rtp-game-info { display: flex; flex-direction: column; align-items: start; flex: 1; padding: .75rem; }
.rtp-game-info h2 { margin: 0; font-size: 1rem; }
.rtp-game-info p { margin: .25rem 0 .6rem; color: #d7c7ad; font-size: .85rem; }
.rtp-game-info form, .rtp-play { margin-top: auto; font-size: .85rem; }
.rtp-pages { flex-wrap: wrap; justify-content: center; padding: 1rem; }

@media (max-width: 36rem) {
  .rtp-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .rtp-filters label:first-child { grid-column: 1 / -1; }
}

:root { background: radial-gradient(ellipse at top, #30241a 0%, #15110e 38rem, #100e0c 75rem); }
.rtp-header { min-height: 4.5rem; }
.rtp-header a { text-decoration: none; }
.rtp-header nav a:last-child { border: 1px solid #a87b42; border-radius: .55rem; padding: .55rem .85rem; }
.rtp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(16rem, 30vw, 24rem);
  padding: clamp(1.25rem, 5vw, 4.5rem);
  border: 1px solid #805c32;
  border-radius: 1.1rem;
  background: #21170f;
}
.rtp-hero::before, .rtp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.rtp-hero::before {
  background: linear-gradient(90deg, #1a110cee 15%, #1a110cbb 45%, #1a110c25 100%),
    url('/assets/images/mobile-home/catalog-slot.png') center right / cover no-repeat;
  animation: rtp-hero-pan 12s ease-in-out infinite alternate;
}
.rtp-hero::after {
  background: linear-gradient(110deg, transparent 39%, #ffc9792b 50%, transparent 61%);
  animation: rtp-hero-light 7s ease-in-out infinite;
}
.rtp-hero h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); letter-spacing: -.055em; line-height: 1; }
.rtp-hero .rtp-note { max-width: 25rem; margin: .8rem 0 1.5rem; }
.rtp-hero a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; }
.rtp-hero a span { animation: rtp-arrow 1.8s ease-in-out infinite; }
.rtp-catalog { margin-top: 1.75rem; }
.rtp-catalog > h2 { margin: 0 0 .75rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.rtp-provider-strip {
  display: flex;
  overflow-x: auto;
  gap: .5rem;
  padding: .25rem .125rem .75rem;
  scrollbar-color: #8b643b #221910;
  animation: rtp-enter .45s ease-out both;
}
.rtp-provider-strip a {
  flex: none;
  border: 1px solid #57402a;
  background: #242017;
  border-radius: 999px;
  padding: .45rem .9rem;
  color: #eee0c7;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.rtp-provider-strip a:hover, .rtp-provider-strip a[aria-current] { background: #644520; border-color: #c18a46; }
.rtp-filters { margin-top: .35rem; border: 1px solid #57402a; }
.rtp-games { gap: clamp(.6rem, 1.7vw, 1.2rem); }
.rtp-games li {
  animation: rtp-enter .45s ease-out both;
  animation-delay: var(--card-delay);
  transition: border-color .25s, box-shadow .25s;
}
.rtp-games li:hover, .rtp-games li:focus-within { border-color: #bc8c4e; box-shadow: 0 .5rem 1.25rem #0006; }
.rtp-games img { transition: transform .3s ease; }
.rtp-games li:hover img { transform: scale(1.035); }
.rtp-play, .rtp-game-info form { align-self: stretch; }
.rtp-game-info form button { width: 100%; }

@keyframes rtp-enter {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rtp-hero-pan {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateX(-1%); }
}
@keyframes rtp-hero-light {
  0%, 25% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}
@keyframes rtp-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(.2rem); }
}

@media (max-width: 36rem) {
  .rtp-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rtp-game-info { padding: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rtp-hero::before, .rtp-hero::after, .rtp-hero a span, .rtp-provider-strip, .rtp-games li {
    animation: none;
  }
  .rtp-provider-strip a, .rtp-games li, .rtp-games img { transition: none; }
  .rtp-games li:hover img { transform: none; }
}
