/* NodeClash v6.3.117 — REAL-WORLD PLAYBOARD ENVIRONMENT
 * Additive presentation layer only.
 * app.js, seed rendering, board geometry, rules and input authority remain untouched.
 * Uses only packaged assets from assets/worlds/real/.
 */

/* --- CINEMATIC ENVIRONMENT ------------------------------------------------ */
body.nc-direct-game .board-stage-center,
body.nc-play-clean .board-stage-center,
body.nc-stable-play .board-stage-center,
body.nc-premium-stable .board-stage-center{
  background:
    linear-gradient(180deg,rgba(4,16,13,.16),rgba(2,9,10,.46)),
    url('./assets/worlds/real/world-29.jpg') center/cover no-repeat!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:inset 0 0 80px rgba(0,0,0,.20),0 18px 60px rgba(0,0,0,.28)!important;
  isolation:isolate!important;
}

/* A subtle Unreal-style atmosphere layer. It never receives pointer input. */
body.nc-direct-game .board-stage-center::before,
body.nc-play-clean .board-stage-center::before,
body.nc-stable-play .board-stage-center::before,
body.nc-premium-stable .board-stage-center::before{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 50% 40%,rgba(255,214,145,.12),transparent 34%),
    linear-gradient(180deg,rgba(2,9,8,.04),rgba(1,7,8,.40));
  mix-blend-mode:normal;
}

body.nc-direct-game .board-stage-center > #board,
body.nc-play-clean .board-stage-center > #board,
body.nc-stable-play .board-stage-center > #board,
body.nc-premium-stable .board-stage-center > #board{
  position:relative!important;
  z-index:1000!important;
}

/* --- NINE NODE PHOTOGRAPHIC SURFACES ------------------------------------ */
body.nc-direct-game #board > .cell,
body.nc-play-clean #board > .cell,
body.nc-stable-play #board > .cell,
body.nc-premium-stable #board > .cell{
  overflow:hidden!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-blend-mode:normal!important;
  border-color:rgba(235,255,247,.26)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -30px 48px rgba(0,0,0,.34),
    0 10px 24px rgba(0,0,0,.30)!important;
  isolation:isolate!important;
}

/* Each playable node gets a distinct packaged real-world photograph. */
body.nc-direct-game #board > .cell:nth-child(1),
body.nc-play-clean #board > .cell:nth-child(1),
body.nc-stable-play #board > .cell:nth-child(1),
body.nc-premium-stable #board > .cell:nth-child(1){
  background-image:linear-gradient(145deg,rgba(3,14,13,.38),rgba(2,8,9,.52)),url('./assets/worlds/real/world-29.jpg')!important;
  background-position:center 54%!important;
}
body.nc-direct-game #board > .cell:nth-child(2),
body.nc-play-clean #board > .cell:nth-child(2),
body.nc-stable-play #board > .cell:nth-child(2),
body.nc-premium-stable #board > .cell:nth-child(2){
  background-image:linear-gradient(145deg,rgba(3,10,11,.32),rgba(2,7,8,.56)),url('./assets/worlds/real/world-12.jpg')!important;
  background-position:center!important;
}
body.nc-direct-game #board > .cell:nth-child(3),
body.nc-play-clean #board > .cell:nth-child(3),
body.nc-stable-play #board > .cell:nth-child(3),
body.nc-premium-stable #board > .cell:nth-child(3){
  background-image:linear-gradient(145deg,rgba(2,14,10,.34),rgba(1,8,8,.54)),url('./assets/worlds/real/world-06.jpg')!important;
  background-position:center 45%!important;
}
body.nc-direct-game #board > .cell:nth-child(4),
body.nc-play-clean #board > .cell:nth-child(4),
body.nc-stable-play #board > .cell:nth-child(4),
body.nc-premium-stable #board > .cell:nth-child(4){
  background-image:linear-gradient(145deg,rgba(3,12,11,.30),rgba(1,8,8,.54)),url('./assets/worlds/real/world-13.jpg')!important;
  background-position:center!important;
}
body.nc-direct-game #board > .cell:nth-child(5),
body.nc-play-clean #board > .cell:nth-child(5),
body.nc-stable-play #board > .cell:nth-child(5),
body.nc-premium-stable #board > .cell:nth-child(5){
  background-image:linear-gradient(145deg,rgba(4,13,11,.34),rgba(2,8,9,.56)),url('./assets/worlds/real/world-30.jpg')!important;
  background-position:center 52%!important;
}
body.nc-direct-game #board > .cell:nth-child(6),
body.nc-play-clean #board > .cell:nth-child(6),
body.nc-stable-play #board > .cell:nth-child(6),
body.nc-premium-stable #board > .cell:nth-child(6){
  background-image:linear-gradient(145deg,rgba(2,12,10,.30),rgba(1,7,8,.56)),url('./assets/worlds/real/world-15.jpg')!important;
  background-position:center 48%!important;
}
body.nc-direct-game #board > .cell:nth-child(7),
body.nc-play-clean #board > .cell:nth-child(7),
body.nc-stable-play #board > .cell:nth-child(7),
body.nc-premium-stable #board > .cell:nth-child(7){
  background-image:linear-gradient(145deg,rgba(4,14,11,.34),rgba(2,8,8,.56)),url('./assets/worlds/real/world-31.jpg')!important;
  background-position:center!important;
}
body.nc-direct-game #board > .cell:nth-child(8),
body.nc-play-clean #board > .cell:nth-child(8),
body.nc-stable-play #board > .cell:nth-child(8),
body.nc-premium-stable #board > .cell:nth-child(8){
  background-image:linear-gradient(145deg,rgba(2,11,10,.30),rgba(1,7,8,.56)),url('./assets/worlds/real/world-16.jpg')!important;
  background-position:center 50%!important;
}
body.nc-direct-game #board > .cell:nth-child(9),
body.nc-play-clean #board > .cell:nth-child(9),
body.nc-stable-play #board > .cell:nth-child(9),
body.nc-premium-stable #board > .cell:nth-child(9){
  background-image:linear-gradient(145deg,rgba(2,14,10,.34),rgba(1,8,8,.56)),url('./assets/worlds/real/world-36.jpg')!important;
  background-position:center!important;
}

/* Existing seeds stay above the photographs; no seed DOM or SVG is changed. */
body.nc-direct-game #board > .cell > .nc-real-seed,
body.nc-play-clean #board > .cell > .nc-real-seed,
body.nc-stable-play #board > .cell > .nc-real-seed,
body.nc-premium-stable #board > .cell > .nc-real-seed,
body.nc-direct-game #board > .cell > .triangle,
body.nc-direct-game #board > .cell > .circle{
  position:relative!important;
  z-index:20!important;
}

/* Give the photographic surface a controlled glass edge without obscuring it. */
body.nc-direct-game #board > .cell::before,
body.nc-play-clean #board > .cell::before,
body.nc-stable-play #board > .cell::before,
body.nc-premium-stable #board > .cell::before{
  pointer-events:none!important;
  background:linear-gradient(135deg,rgba(255,255,255,.13),transparent 32%,transparent 70%,rgba(0,0,0,.18))!important;
  z-index:1!important;
}

/* Keep node labels/index treatment readable over photographs. */
body.nc-direct-game #board > .cell::after,
body.nc-play-clean #board > .cell::after,
body.nc-stable-play #board > .cell::after,
body.nc-premium-stable #board > .cell::after{
  text-shadow:0 2px 8px rgba(0,0,0,.9)!important;
  z-index:3!important;
}

/* --- COMPACT REWARDS / PROGRESSION -------------------------------------- */
#ncProgressionHUD{
  right:8px!important;
  top:78px!important;
  max-width:min(205px,calc(100vw - 16px))!important;
  padding:5px 8px!important;
  border-radius:9px!important;
  gap:2px!important;
  background:rgba(3,10,16,.76)!important;
  backdrop-filter:blur(10px)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.20)!important;
}
#ncProgressionHUD span{font-size:.58rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#ncProgressionHUD small{font-size:.45rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

#ncRewardPanel{
  left:50%!important;
  right:auto!important;
  top:94px!important;
  bottom:auto!important;
  transform:translateX(-50%)!important;
  width:auto!important;
  max-width:min(340px,calc(100vw - 10px))!important;
  padding:4px 5px!important;
  border-radius:11px!important;
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  flex-wrap:wrap!important;
  background:rgba(3,10,16,.78)!important;
  backdrop-filter:blur(10px)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.22)!important;
}
#ncRewardPanel>b{font-size:.43rem!important;letter-spacing:.08em!important;margin-right:1px!important}
#ncRewardPanel>span{font-size:.40rem!important;white-space:nowrap!important;opacity:.72!important}
#ncRewardPanel>div{display:flex!important;gap:3px!important;flex-wrap:nowrap!important}
#ncRewardPanel button{
  min-height:22px!important;
  height:22px!important;
  padding:0 5px!important;
  border-radius:6px!important;
  font-size:.40rem!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
}
@media(max-width:560px){
  #ncProgressionHUD{top:68px!important;right:7px!important;max-width:175px!important}
  #ncRewardPanel{left:50%!important;right:auto!important;top:94px!important;bottom:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 14px)!important;justify-content:center!important;padding:3px!important;gap:2px!important}
  #ncRewardPanel>b{font-size:.40rem!important}
  #ncRewardPanel>span{font-size:.37rem!important}
  #ncRewardPanel button{min-height:21px!important;height:21px!important;padding:0 4px!important;font-size:.37rem!important}
}

/* --- GUIDE LAYER FIX ----------------------------------------------------- */
.nc-game-guide-backdrop{z-index:0!important}
.nc-game-guide-card{position:relative!important;z-index:1!important}
.nc-game-guide{z-index:10051!important}

@media(prefers-reduced-motion:reduce){
  body.nc-direct-game .board-stage-center::before,
  body.nc-play-clean .board-stage-center::before{mix-blend-mode:normal!important}
}
