/* Custom styles for Live RTP landing clone */

/* FLIP sort animation */
.game-cell-outer {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
  will-change: transform;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-cell-outer.is-flipping {
  z-index: 2;
}

/* Fixed shuffle countdown timer */
.rtp-timer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  min-width: 72px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(1, 12, 38, 0.92);
  border: 1px solid rgba(0, 186, 220, 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.rtp-timer__label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  margin-bottom: 2px;
}

/* SEO collapse */
.seo__intro {
  margin-bottom: 8px;
}

.seo .seo__content h2,
.seo__faq-heading {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.seo .seo__content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.seo .seo__content a {
  color: #00badc;
}

.seo__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: #00badc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.seo__button:hover {
  color: #00ebea;
}

.seo__button::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.seo__button.is-expanded::after {
  transform: rotate(-135deg) translateY(2px);
}

.seo__wrapper {
  overflow: hidden;
  max-height: 9999px;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease;
}

.seo__wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.seo__faq-heading {
  margin-top: 28px;
}

.seo__faq {
  margin-top: 12px;
}

.seo__faq .spoiler {
  background: #09132d;
  border-radius: 8px;
  margin-bottom: 12px;
}

.seo__faq .spoiler:last-child {
  margin-bottom: 0;
}

/* Live RTP section headings */
.live-rtp .page-title {
  text-align: center;
  margin-bottom: 28px;
  margin-top: 30px;
}

.live-rtp .page-title__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.live-rtp .page-title__title h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.live-rtp .page-title__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.live-rtp__description {
  max-width: 640px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.live-rtp__description span {
  font-weight: 700;
  color: #fff;
}

.live-rtp__subtitle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.live-rtp__subtitle-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.live-rtp__subtitle {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.live-rtp__subdescription {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.live-rtp .section {
  margin-bottom: 24px;
}

/* Anchor targets clear the fixed header */
.section--anchor {
  scroll-margin-top: 72px;
}

/* Footer policy links */
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 38px auto 50px;
}

.footer-policies__link,
.footer-policies__link:link,
.footer-policies__link:visited {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-policies__link:hover {
  color: #00badc;
}

.footer-copyright .footer-policies + .footer-copyright__text {
  margin-top: 12px;
}

/* Legal pages */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 0 56px;
}

.legal-page__title,
.legal-list__title {
  text-align: left;
}

.legal-page__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.legal-page__meta {
  margin: 8px 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.legal-page__intro {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.legal-page a {
  color: #00badc;
}

.legal-list {
  counter-reset: legal-item;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-list__item {
  counter-increment: legal-item;
  margin-bottom: 24px;
}

.legal-list__item:last-child {
  margin-bottom: 0;
}

.legal-list__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.legal-list__title::before {
  content: counter(legal-item) ". ";
  color: #00badc;
}

.legal-list__item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.legal-list__item p:last-child {
  margin-bottom: 0;
}

.legal-list__item ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #00badc;
  text-decoration: none;
}

.legal-back:hover {
  color: #00ebea;
}

/* Footer copyright */
.footer-copyright {
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright__text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-top: 30px;
  padding-bottom: 40px;
}

/* Spoiler / FAQ accordion — bundle.css uses .opened + grid rows */
.seo__faq .spoiler-text {
  color: rgba(255, 255, 255, 0.85);
}

.seo__faq .spoiler-text p {
  margin: 0 0 12px;
  line-height: 1.55;
  font-size: 14px;
}

.seo__faq .spoiler-title {
  font-size: 15px;
}

/* Game card layout — badge top-right on image */
.game-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #0d1a33;
  cursor: default;
}

.game-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  width: 100%;
  flex-shrink: 0;
  background: #142440;
}

.game-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-card__rtp-badge {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 0 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.game-card__rtp-badge svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.game-card__rtp {
  font-size: 12px;
  font-weight: 600;
}

.game-card__info {
  padding: 8px 10px 10px;
  background: #0d1a33;
  flex-shrink: 0;
  min-height: 52px;
  box-sizing: border-box;
}

.game-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.game-card__provider {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(20, 36, 64, 0.95);
  z-index: 4;
}

.game-card:hover .game-card__overlay,
.game-card:focus-within .game-card__overlay {
  opacity: 1;
}

.game-card__actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  flex-direction: column;
  z-index: 5;
}

.game-card:hover .game-card__actions,
.game-card:focus-within .game-card__actions {
  opacity: 1;
}

.game-card__actions .btn {
  min-width: 88px;
}

.game-card__rtp-badge--hot {
  background: linear-gradient(
    90deg,
    rgb(236, 7, 102) 0%,
    rgb(236, 7, 102) 100%
  );
}

.game-card__rtp-badge--cold {
  background: linear-gradient(
    90deg,
    rgb(0, 186, 220) 0%,
    rgb(0, 186, 220) 100%
  );
}

/* Game grid — fixed column counts keep every card the same size */
.game-group {
  position: relative;
  display: grid;
  align-items: stretch;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .game-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .game-group {
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .game-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .game-group {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Footer provider/payment lists */
.providers__list,
.payments__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.providers__item,
.payments__item {
  list-style: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    max-height 0.35s ease,
    margin 0.35s ease;
  max-height: 80px;
  overflow: hidden;
}

.providers__item.footer-list__item--hidden,
.payments__item.footer-list__item--hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.providers__list.is-expanded .providers__item.footer-list__item--hidden,
.payments__list.is-expanded .payments__item.footer-list__item--hidden {
  opacity: 1;
  max-height: 80px;
  margin: 0;
  transform: scale(1);
  pointer-events: auto;
}

.providers__link,
.payments__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 56px;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(26, 36, 60, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  text-decoration: none;
}

.providers__link:hover,
.payments__link:hover {
  background: rgba(35, 50, 80, 0.95);
  border-color: rgba(0, 186, 220, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.provider__img,
.payment__img {
  display: block;
  max-height: 32px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.providers__link:hover .provider__img,
.payments__link:hover .payment__img {
  opacity: 1;
}

.footer-show-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: #00badc;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-show-more::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.footer-show-more[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(2px);
}

.footer-show-more:hover {
  color: #00ebea;
}

.footer-providers,
.footer-payments {
  margin-bottom: 24px;
}

.footer-providers h3,
.footer-payments h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Accessibility focus styles */
a:focus-visible,
button:focus-visible,
.game-card:focus-visible,
.spoiler-title:focus-visible {
  outline: 2px solid #00badc;
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 186, 220, 0.45);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  padding: 8px 12px;
  background: #010c26;
  color: #fff;
}

.skip-link:focus {
  left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .game-cell-outer,
  .seo__wrapper,
  .spoiler-content,
  .providers__list,
  .payments__list {
    transition: none;
  }
}
