/* AUREA referral game reward skins (patch #82). Cosmetic only:
   these classes are set on <body> by ref-game.js when the signed-in
   referrer owns the item. They restyle existing assets (frames and
   glows) — no game state, odds or numbers are affected. */

/* Tycoon landmark skin "Aurora": aurora gradient frame on the
   city landmark cards (tycoon-city.js .tc3-lm). */
body.refskin-tycoon-aurora .tc3-lm {
  border-color: #7C5CFF;
  background: linear-gradient(160deg, rgba(124, 92, 255, .20), rgba(62, 213, 152, .10) 55%, rgba(255, 215, 0, .12)), #0A0F24;
  box-shadow: 0 0 10px rgba(124, 92, 255, .35);
}
body.refskin-tycoon-aurora .tc3-lm.on {
  border-color: #3ED598;
  color: #B8FFE3;
  box-shadow: 0 0 14px rgba(62, 213, 152, .45);
}

/* Tycoon landmark skin "Royal Gold": stronger gold frame + glow.
   Wins over Aurora when both are owned (ref-game.js sets only the
   highest class; this block also wins by order if both are set). */
body.refskin-tycoon-royal .tc3-lm {
  border-color: #FFD700;
  background: linear-gradient(160deg, rgba(255, 215, 0, .22), rgba(255, 140, 0, .08) 60%, rgba(124, 92, 255, .10)), #0A0F24;
  box-shadow: 0 0 12px rgba(255, 215, 0, .40);
}
body.refskin-tycoon-royal .tc3-lm.on {
  border-color: #FFE970;
  color: #FFD700;
  box-shadow: 0 0 18px rgba(255, 215, 0, .60);
}

/* Medal cabinet skin "Rainbow frame": animated rainbow glow on
   the pusher stage (#mdStage / .md-stage in medal.css). */
body.refskin-medal-rainbow .md-stage {
  border-color: rgba(255, 120, 200, .65);
  animation: refRainbowFrame 5s linear infinite;
}
@keyframes refRainbowFrame {
  0%   { box-shadow: 0 0 0 1px rgba(255, 80, 80, .55), 0 0 22px rgba(255, 80, 80, .35), 0 18px 44px rgba(0, 0, 0, .5); }
  25%  { box-shadow: 0 0 0 1px rgba(255, 215, 0, .55), 0 0 22px rgba(255, 215, 0, .35), 0 18px 44px rgba(0, 0, 0, .5); }
  50%  { box-shadow: 0 0 0 1px rgba(62, 213, 152, .55), 0 0 22px rgba(62, 213, 152, .35), 0 18px 44px rgba(0, 0, 0, .5); }
  75%  { box-shadow: 0 0 0 1px rgba(124, 92, 255, .55), 0 0 22px rgba(124, 92, 255, .35), 0 18px 44px rgba(0, 0, 0, .5); }
  100% { box-shadow: 0 0 0 1px rgba(255, 80, 80, .55), 0 0 22px rgba(255, 80, 80, .35), 0 18px 44px rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: reduce) {
  body.refskin-medal-rainbow .md-stage { animation: none !important; }
}
