/* Static metal/marquetry detail and action glints, below real tile surfaces. */
.approved-camera-frame>.mg-crafted-rail,.premium-court>.mg-crafted-rail,
.table-craft-sample>.mg-crafted-rail{
 position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;user-select:none;
 overflow:hidden;z-index:0
}
.premium-court>.mg-crafted-rail{z-index:-1}
.mg-crafted-rail>svg{display:block;width:100%;height:100%}
.mg-crafted-cue{opacity:0}
.table-craft-sample{position:relative;isolation:isolate;line-height:0;overflow:hidden;width:100%;height:100%}
.table-craft-sample>img{width:100%;height:100%;object-fit:fill;display:block;aspect-ratio:1600 / 900}
@media(prefers-reduced-motion:reduce){.mg-crafted-cue{display:none}}
/* Subtle, continuous surface light lives on the rails, not over tile faces. */
.mg-crafted-photo-rail .mg-crafted-material{animation:mg-photo-rail-breathe 3.9s ease-in-out infinite alternate}
.mg-crafted-photo-rail .mg-crafted-embers{animation:mg-photo-rail-trace 4.6s linear infinite}
@keyframes mg-photo-rail-breathe{from{opacity:.32}to{opacity:.83}}
@keyframes mg-photo-rail-trace{from{stroke-dashoffset:0}to{stroke-dashoffset:-140}}
.mg-craft-paused .mg-crafted-photo-rail :is(.mg-crafted-material,.mg-crafted-embers){animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.mg-crafted-photo-rail :is(.mg-crafted-material,.mg-crafted-embers){animation:none}}

/* Ocean light & particles are clipped to the existing table, below play.
   No JS frame loop, filters, media download, or forced compositor layers. */
.watch-camera>.mg-reef-watch{display:none;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}
.watch-camera[data-projected="true"]>.mg-reef-watch{display:block}
.mg-reef-depth{pointer-events:none}
.mg-reef-caustic{animation:mg-reef-current 8.7s ease-in-out infinite alternate;transform-origin:center}
.mg-reef-caustic-1{animation-duration:12.3s;animation-delay:-5.3s;animation-direction:alternate-reverse}
.mg-reef-bubbles{opacity:0;animation:mg-reef-rise 8.1s linear infinite;animation-delay:-2.2s}
.mg-reef-bubbles-1{animation-duration:10.9s;animation-delay:-7.3s}
.mg-reef-bubbles-2{animation-duration:12.7s;animation-delay:-3.9s}
.mg-reef-tide{opacity:0}
@keyframes mg-reef-current{
 0%{transform:translate(-13px,2px) scaleX(.96);opacity:.32}
 49%{opacity:.82}
 100%{transform:translate(15px,9px) scaleX(1.03);opacity:.44}
}
@keyframes mg-reef-rise{
 0%{transform:translate(0,15px);opacity:0}
 21%{opacity:.68}
 65%{transform:translate(6px,-20px);opacity:.52}
 100%{transform:translate(-2px,-43px);opacity:0}
}
.mg-craft-paused :is(.mg-reef-caustic,.mg-reef-bubbles){animation-play-state:paused}
@media(prefers-reduced-motion:reduce){
 .mg-reef-caustic{animation:none;opacity:.42}
 .mg-reef-bubbles,.mg-reef-tide{display:none;animation:none}
}

/* Gilded justice medallion: no pointer events and always below the game tiles. */
.mg-justice-logo{opacity:.96}
.mg-justice-balance{transform-origin:0 -27px;animation:mg-justice-poise 3.1s ease-in-out infinite}
.mg-justice-corona{stroke-dasharray:15 400;animation:mg-justice-glint 3.1s linear infinite}
@keyframes mg-justice-poise{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@keyframes mg-justice-glint{0%{stroke-dashoffset:0;opacity:.28}48%{opacity:.99}100%{stroke-dashoffset:-415;opacity:.28}}
.mg-craft-paused :is(.mg-justice-balance,.mg-justice-corona){animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.mg-justice-balance,.mg-justice-corona{animation:none}.mg-justice-corona{stroke-dasharray:none;opacity:.55}}

/* NAV live only: the existing gold marks pulse without moving the
   stroke mask over a table-sized surface; the scale still swings. */
@media(prefers-reduced-motion:no-preference){
 .mg-crafted-photo-rail[data-nav-light-motion] .mg-crafted-embers,
 .mg-crafted-photo-rail[data-nav-light-motion] .mg-justice-corona{
  animation:mg-nav-gold-pulse 3.1s ease-in-out infinite alternate
 }
 .mg-craft-paused .mg-crafted-photo-rail[data-nav-light-motion] :is(.mg-crafted-embers,.mg-justice-corona){animation-play-state:paused}
}
@keyframes mg-nav-gold-pulse{from{opacity:.35}to{opacity:.95}}

@media(prefers-reduced-motion:no-preference){
 .mg-crafted-photo-rail[data-live-rail-pulse]:not([data-nav-light-motion]) .mg-crafted-embers{
  animation:mg-nav-gold-pulse 4.6s ease-in-out infinite alternate
 }
 .mg-craft-paused .mg-crafted-photo-rail[data-live-rail-pulse]:not([data-nav-light-motion]) .mg-crafted-embers{animation-play-state:paused}
}
