/* Drop-in art treatment for the existing Fraser HQ game-card markup. */
.game {
  --card-accent: var(--mint);
  --card-glow: rgb(117 241 208 / 16%);
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-top: 2px solid var(--card-accent);
  border-radius: 18px;
  background: linear-gradient(155deg, #171f34, #0c1422 76%);
  box-shadow: 0 18px 46px #0005, inset 0 1px #ffffff0a;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game.bros { --card-accent: #ffc56f; --card-glow: rgb(255 197 111 / 20%); }
.game.world { --card-accent: #68e1bb; --card-glow: rgb(104 225 187 / 20%); }
.game.ovoid { --card-accent: #b28cff; --card-glow: rgb(178 140 255 / 20%); }

.game:hover,
.game:focus-within {
  border-color: var(--card-accent);
  border-top-color: var(--card-accent);
  box-shadow: 0 22px 54px #0007, 0 0 28px var(--card-glow);
}

.visual {
  height: clamp(210px, 20vw, 254px);
  isolation: isolate;
}

.visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 82% 8%, var(--card-glow), transparent 58%);
}

.visual::after {
  z-index: 2;
  background: linear-gradient(180deg, transparent 35%, #080d1bf0 100%);
}

.visual img {
  position: relative;
  z-index: 0;
  transition: filter .28s ease, transform .32s ease;
}

.bros .visual img { filter: brightness(.88) saturate(1.04); }
.world .visual img { filter: drop-shadow(0 16px 24px #10234270); }
.ovoid .visual img {
  width: 57%;
  margin-left: auto;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 14px 22px #080d1b88);
}

.visual-title { z-index: 3; }
.visual-title small { color: var(--card-accent); }
.visual-title strong { font-size: clamp(22px, 2.1vw, 28px); }
.ovoid .visual-title { max-width: 48%; }

.game-body {
  border-top: 1px solid #ffffff0b;
  background: linear-gradient(180deg, #111a2bd9, #0d1422);
}

.bros .status { color: #ffd28f; border-color: #ffc56f66; background: #ffc56f15; }
.world .status { color: #9cf0d8; border-color: #68e1bb66; background: #68e1bb15; }
.ovoid .status { color: #ffe08d; border-color: #ffe08d66; background: #ffe08d15; }

.bros .visual {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #52372288, transparent 62%), linear-gradient(140deg, #111b2f, #201925 58%, #32231d);
}

.bros .visual::after { background: linear-gradient(180deg, transparent 68%, #080d1b55); }
.bros .visual img { box-sizing: border-box; object-fit: contain; object-position: center; padding: 8px 18px; filter: drop-shadow(0 10px 18px #0009); }

.game .play {
  min-height: 48px;
  border-radius: 10px;
}

.bros .play:not(.is-disabled) { background: linear-gradient(110deg, #ffd28f, #ff9e61); }
.world .play:not(.is-disabled) { background: linear-gradient(110deg, #75f1d0, #63d7ff); }

/* The new Jaxy panorama is a card background; retain a full-width landscape crop. */
.world .visual img { width: 100%; height: 100%; margin: 0; padding: 0; object-fit: cover; opacity: .88; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game.bros:hover .visual img { transform: scale(1.035); }
  .game.world:hover .visual img { transform: rotate(-6deg) scale(1.035); }
  .game.ovoid:hover .visual img { transform: rotate(2deg) scale(1.035); }
}
