/* ==========================================================================
   TIPS MOST WANTED — dynamic Top-3 Global Leaderboard feature.

   Overlay geometry (card art is 436x570, identical layout on all 3 ranks):
     neon circle  ~ center (50%, 42%), inner diameter ~58% of card width
     name ribbon  ~ center 74% vertical, spans ~84% width
   Tunables live on .tmw-poster so all sizes/breakpoints share one source.
   ========================================================================== */

.tmw-poster {
  --tmw-avatar-x: 50%;
  --tmw-avatar-y: 42%;
  --tmw-avatar-size: 58%;
  --tmw-name-y: 74.5%;
  --tmw-name-h: 12%;
  position: relative;
  display: block;
  width: 100%;
  max-width: 436px;
  margin: 0 auto;
  text-decoration: none;
}

.tmw-poster-art {
  display: block;
  width: 100%;
  height: auto;
}

/* Dynamic avatar — clipped INSIDE the neon ring, never covering it. */
.tmw-avatar {
  position: absolute;
  left: var(--tmw-avatar-x);
  top: var(--tmw-avatar-y);
  transform: translate(-50%, -50%);
  width: var(--tmw-avatar-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.tmw-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ff;
  font-size: 48px;      /* fallback if container queries unsupported */
  font-size: 26cqw;     /* ~45% of the avatar's own rendered width */
}

/* Player name inside the black ribbon. */
.tmw-name {
  position: absolute;
  left: 8%;
  right: 8%;
  top: var(--tmw-name-y);
  transform: translateY(-50%);
  height: var(--tmw-name-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
  font-family: 'Alfa Slab One', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 4.2cqw, 26px);
  line-height: 1.1;
  color: #f5edd9;
  text-shadow:
    0 0 6px rgba(0, 255, 255, .55),
    0 0 14px rgba(255, 0, 200, .35),
    0 1px 2px #000;
  letter-spacing: .02em;
  text-align: center;
  overflow-wrap: anywhere;
  overflow: hidden;
}

/* Interactive affordance. */
a.tmw-poster {
  transition: transform .18s ease, filter .18s ease;
  border-radius: 12px;
}
a.tmw-poster:hover,
a.tmw-poster:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.08) drop-shadow(0 0 10px rgba(0, 255, 255, .35));
  outline: none;
}
a.tmw-poster:focus-visible {
  box-shadow: 0 0 0 3px #0ff;
}

/* Empty-rank placeholder — same art, no link. */
.tmw-poster.tmw-poster-empty { cursor: default; }
.tmw-poster-empty .tmw-name { color: #8a7a5c; }

/* Container query context so poster text scales with rendered card size. */
.tmw-poster { container-type: inline-size; }

/* Poster rows shared by the hero slide and the dedicated page. */
.tmw-posters {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}
.tmw-posters .tmw-poster { flex: 1 1 0; }

.tmw-points {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-family: 'Alfa Slab One', 'Arial Black', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, .5);
}

/* ==========================================================================
   Homepage hero — slide 2 (compact Most Wanted promo)
   ========================================================================== */

.tips-mw-hero {
	width: 100%;
	min-height: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 20px 18px;
	background: transparent;
	border-block: 1px solid rgba(0, 230, 239, .25);
	margin-top: 100px;
}

.tmw-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  max-width: 1500px;
  padding-inline: clamp(18px, 5vw, 90px);
}

.tmw-westernRitta, .tmw-westernRosco {
  width: 300px;
  height: auto;
}

.tmw-hero-sign {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-width: 400px;
}
.tmw-hero-sign__text {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 8px 10px;
  font-family: 'Alfa Slab One', 'Arial Black', sans-serif;
  font-size: clamp(13px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: .04em;
  color: #f5edd9;
  text-shadow:
    0 0 8px rgba(0, 255, 255, .5),
    0 0 16px rgba(255, 0, 200, .3),
    0 1px 2px #000;
}
.tmw-hero-sign img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, .7));
}

.tmw-hero-cards {
  flex: 1 1 60%;
  min-width: 0;
  text-align: center;
}
.tmw-posters-hero {
  width: 100%;
  max-height: 400px;
}
.tmw-posters-hero .tmw-poster { max-width: 190px; }

.tmw-hero-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  font-family: 'Alfa Slab One', 'Arial Black', sans-serif;
  font-size: 14px;
  letter-spacing: .14em;
  color: #0ff;
  border: 2px solid #0ff;
  border-radius: 4px;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0, 255, 255, .6);
  box-shadow: 0 0 10px rgba(0, 255, 255, .25), inset 0 0 10px rgba(0, 255, 255, .08);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tmw-hero-cta:hover,
.tmw-hero-cta:focus-visible {
  background: rgba(0, 255, 255, .12);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 255, 255, .5), inset 0 0 12px rgba(0, 255, 255, .15);
  outline: none;
}

.tmw-hero-status {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9fb3c8;
  font-size: 14px;
  letter-spacing: .06em;
}

/* ==========================================================================
   Hero carousel shell (wraps existing .tips-digital-hero + .tips-mw-hero)
   ========================================================================== */

.tips-hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #020608;
}
/* Shared hero background — lives on the carousel so it stays fixed while
   only the slide content moves. Both slides are transparent. */
.tips-hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/bg/digitalRetro_bg.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  pointer-events: none;
}
.tips-hero-carousel .tips-digital-hero { background: transparent; }
.tips-hero-carousel .tips-digital-hero::before { content: none; }
.tips-hero-track {
  display: flex;
  width: 100%;
  transition: transform .55s ease;
}
.tips-hero-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.tips-hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 255, 255, .45);
  border-radius: 50%;
  background: rgba(5, 8, 16, .72);
  color: #0ff;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.tips-hero-btn:hover,
.tips-hero-btn:focus-visible {
  background: rgba(0, 255, 255, .16);
  box-shadow: 0 0 12px rgba(0, 255, 255, .4);
  outline: none;
}
.tips-hero-btn:focus-visible { box-shadow: 0 0 0 3px #0ff; }
.tips-hero-btn--prev { left: 10px; }
.tips-hero-btn--next { right: 10px; }

.tips-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.tips-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(0, 255, 255, .6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.tips-hero-dot[aria-current="true"] { background: #0ff; box-shadow: 0 0 8px rgba(0, 255, 255, .7); }
.tips-hero-dot:focus-visible { outline: 2px solid #0ff; outline-offset: 2px; }

.tips-hero-pause {
  position: absolute;
  right: 12px;
  bottom: 6px;
  z-index: 5;
  border: 1px solid rgba(0, 255, 255, .45);
  border-radius: 4px;
  background: rgba(5, 8, 16, .72);
  color: #0ff;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 9px;
  cursor: pointer;
}
.tips-hero-pause:focus-visible { outline: 2px solid #0ff; outline-offset: 2px; }

/* ==========================================================================
   Dedicated most-wanted.php page
   ========================================================================== */

.tmw-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(0, 255, 255, .08), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(255, 0, 200, .06), transparent 55%),
    linear-gradient(135deg, #000 0%, #16213e 100%);
  background-attachment: fixed;
  color: #fff;
  padding: 28px 16px 60px;
}

.tmw-page-nav {
  max-width: 1150px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tmw-page-nav .logo img { max-height: 56px; width: auto; }
.tmw-page-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tmw-page-links a {
  color: #9fb3c8;
  font-size: 13px;
  letter-spacing: .14em;
  text-decoration: none;
}
.tmw-page-links a:hover,
.tmw-page-links a:focus-visible { color: #0ff; }

.tmw-page-sign {
  max-width: 780px;
  margin: 10px auto 6px;
}
.tmw-page-sign img { width: 100%; height: auto; display: block; }

.tmw-page-tag {
  text-align: center;
  color: #cfd8e3;
  font-size: clamp(15px, 2.4vw, 20px);
  margin: 14px auto 34px;
  max-width: 640px;
  line-height: 1.5;
}

.tmw-posters-page {
  max-width: 1150px;
  margin: 0 auto;
  gap: clamp(16px, 3vw, 40px);
}
.tmw-posters-page .tmw-poster { max-width: 330px; }

.tmw-page-actions {
  text-align: center;
  margin: 38px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tmw-page-footer-art {
  max-width: 780px;
  margin: 44px auto 0;
}
.tmw-page-footer-art img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
  .tmw-posters-hero .tmw-poster { max-width: 160px; }
  .tmw-westernRitta, .tmw-westernRosco { width: 190px; }
  .tmw-hero-sign { max-width: 320px; }
}

@media (max-width: 767px) {
  /* Hero slide: compact — decorative characters and the duplicate footer
     sign are dropped so the slide stays short: sign + #1 poster + CTA. */
  .tips-mw-hero { margin-top: 60px; padding: 12px 12px 16px; }
  .tmw-hero-inner {
    flex-direction: column;
    gap: 10px;
  }
  .tmw-westernRitta, .tmw-westernRosco { display: none; }
  .tmw-hero-sign { flex: 0 1 auto; max-width: 240px; }
  .tmw-hero-sign > img:last-child { display: none; }
  .tmw-hero-sign__text { font-size: 13px; padding: 6px 8px; }
  .tmw-posters-hero { max-height: none; }
  .tmw-posters-hero .tmw-poster:nth-child(n+2) { display: none; }
  .tmw-posters-hero .tmw-poster { max-width: 190px; }
  .tmw-hero-cta { font-size: 12px; padding: 7px 16px; margin-top: 10px; }

  /* Dedicated page: stack posters vertically, rank order preserved. */
  .tmw-posters-page { flex-direction: column; align-items: center; }
  .tmw-posters-page .tmw-poster { max-width: 300px; }

  .tips-hero-btn { width: 34px; height: 34px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tips-hero-track { transition: none; }
  a.tmw-poster { transition: none; }
}
