/* ===============================================
   POLISH - PLAY (game picker)
   A retouch loaded AFTER Play.css. Looks only: the poster sizes, the grid and
   the phone scrolling are not changed. To go back to the old look, remove this
   one <link> from Play.html.
   =============================================== */

/* Title: brighter, with a short green accent line (same as the text pages). */
.play-title {
  color: #ececec;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 255, 146, 0.18), 0 1px 1px rgba(0, 0, 0, 0.6);
}

.play-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00ff92, rgba(0, 255, 146, 0));
  box-shadow: 0 0 10px rgba(0, 255, 146, 0.55);
}

/* The posters stand on a stage: a dark panel with a crimson spotlight behind them. */
.play-content {
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(120, 0, 48, 0.55), rgba(61, 0, 24, 0) 72%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.78), rgba(5, 5, 5, 0.78));
  border: 1px solid rgba(205, 205, 205, 0.09);
  border-top: 1px solid rgba(0, 255, 146, 0.4);
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), inset 0 0 28px rgba(205, 205, 205, 0.03);
}

/* A soft light on the "floor" under each poster. */
.play-card::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -16px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 146, 0.5), rgba(0, 255, 146, 0) 70%);
  filter: blur(4px);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hover: the poster lifts and leans toward the mouse (the lean comes from
   Components/Play-Tilt.js, which sets --rx and --ry), a light sweeps across it,
   its glow turns green and strong, and the other posters step back. */
.play-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--s, 1));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
  will-change: transform;
}

.play-card:hover,
.play-card:focus-visible {
  --s: 1.1;
  --ty: -8px;
  z-index: 2;
  /* quick while the mouse moves, so the lean feels attached to it */
  transition: transform 0.14s ease-out, opacity 0.3s ease;
}

.play-card:hover::after,
.play-card:focus-visible::after {
  opacity: 1;
  bottom: -22px;
  height: 16px;
  filter: blur(6px);
}

.play-card::after {
  transition: opacity 0.3s ease, bottom 0.3s ease, height 0.3s ease;
}

.play-card:hover img,
.play-card:focus-visible img {
  animation: none;
  filter: drop-shadow(3px 3px 0px #000) drop-shadow(0 0 calc(var(--play-glow-blur) * 2.4) rgba(0, 255, 146, 0.7));
}

/* The sweeping light: the stripe sits outside the poster at rest and slides across
   it on hover (the background moves, the box does not, so nothing leaks out). */
.play-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 7.5%; /* the same curve as the corners of the poster picture */
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  opacity: 0;
}

.play-card:hover::before,
.play-card:focus-visible::before {
  opacity: 1;
  background-position: -50% 0;
  transition: background-position 0.8s ease;
}

/* With a mouse, the posters that are not under it step back. */
@media (hover: hover) {
  .play-content:has(.play-card:hover) .play-card:not(:hover) {
    opacity: 0.5;
  }
}

.play-card:focus-visible {
  outline: 2px solid #00ff92;
  outline-offset: 6px;
  border-radius: 7.5%;
}

/* The scrollbar on the phone: a little clearer. */
.play-scrollbar-track {
  border-radius: 3px;
  background: rgba(205, 205, 205, 0.06);
}

.play-scrollbar-thumb {
  width: 3px;
  border-radius: 2px;
  filter: none;
  box-shadow: 0 0 8px rgba(0, 255, 146, 0.6);
}

@media (max-width: 768px) {
  .play-title::after {
    width: 56px;
    margin-top: 10px;
  }

  .play-content {
    padding: 16px 14px 28px;
    border-radius: 10px;
  }

  .play-card:hover,
  .play-card:focus-visible {
    --s: 1.04;
    --ty: 0px;
  }
}
