/* Free game badge — shown on games playable without a subscription.
 * A green border + a larger top-right "FREE" ribbon (no background fill, so it
 * doesn't clash with each game's own thumbnail artwork). The .free-game class is
 * applied by subscriber.js (from its freeGames list); both hide for subscribers. */
.free-game {
  position: relative;
  overflow: hidden;            /* clips the ribbon ends into a corner banner */
  border-radius: 10px;
}

/* Green border drawn on top, following the rounded corners — no layout shift. */
.free-game::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid #6bbc43;
  border-radius: 10px;
  pointer-events: none;
  z-index: 9;
}

/* Larger FREE ribbon, top-right corner. */
.free-game::after {
  content: 'FREE';
  position: absolute;
  top: 18px;
  right: -40px;
  width: 160px;
  background: #6bbc43;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  font-family: sans-serif;
  letter-spacing: 1px;
  text-align: center;
  padding: 7px 0;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Subscribers can play everything — no border, no ribbon. */
.is-subscriber .free-game::before,
.is-subscriber .free-game::after {
  display: none;
}
