/* NodeClash v6.3.55 — direct game viewport.
   Presentation only. The existing #board/app.js/rules/seeds/world assets remain authoritative. */
html,body{width:100%;height:100%;margin:0!important;overflow:hidden!important;background:#02060b!important}
body.nc-direct-game{overflow:hidden!important}
body.nc-direct-game .nature-bg,body.nc-direct-game .theme-stage,body.nc-direct-game .scene-layer,body.nc-direct-game #ncPlay4DWorld{position:fixed!important;inset:0!important;pointer-events:none!important}
body.nc-direct-game .play-stage-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden!important;z-index:100!important}
body.nc-direct-game .play-topbar{display:none!important}
body.nc-direct-game .play-stage-main{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden!important}
body.nc-direct-game .board-focus-wrap{position:absolute!important;inset:58px 0 0 0!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:block!important;overflow:hidden!important;z-index:10!important}
body.nc-direct-game .board-focus-head{position:absolute!important;left:18px!important;right:18px!important;top:10px!important;height:36px!important;margin:0!important;z-index:30!important;display:flex!important;align-items:center!important;justify-content:space-between!important;pointer-events:none!important}
body.nc-direct-game .board-focus-head>*{pointer-events:auto!important}
body.nc-direct-game .board-focus-head .board-focus-title{font-size:0!important;margin:0!important}
body.nc-direct-game .board-focus-head .board-focus-title:after{content:'NODECLASH ARENA';font-size:10px!important;letter-spacing:.18em!important;font-weight:1000!important}
body.nc-direct-game .board-focus-head .board-focus-note{display:none!important}
body.nc-direct-game .board-focus-head .ppt-chip{min-height:24px!important;padding:4px 8px!important;font-size:7px!important}
body.nc-direct-game .board-command-row{position:absolute!important;left:-10000px!important;top:-10000px!important;opacity:0!important;pointer-events:none!important}
body.nc-direct-game .board-battle-hud{position:absolute!important;left:18px!important;right:18px!important;top:50px!important;margin:0!important;z-index:30!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}
body.nc-direct-game .hud-chip{min-height:34px!important;padding:5px 8px!important;border-radius:10px!important;background:rgba(2,9,15,.66)!important;backdrop-filter:blur(14px)!important}
body.nc-direct-game .hud-chip span{font-size:6px!important}.hud-chip strong{font-size:11px!important}
body.nc-direct-game .board-focus-stage{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;display:grid!important;grid-template-rows:1fr!important;gap:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:transparent!important}
body.nc-direct-game .board-slide-banner{display:none!important}
body.nc-direct-game .board-stage-center{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:90px 18px 58px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;z-index:5!important}
body.nc-direct-game .board-stage-center:before{content:''!important;position:absolute!important;left:50%!important;top:50%!important;width:min(68vw,68vh,760px)!important;height:min(68vw,68vh,760px)!important;transform:translate(-50%,-48%)!important;border-radius:36px!important;background:radial-gradient(circle,rgba(70,210,255,.10),transparent 62%)!important;filter:blur(12px)!important;z-index:0!important;pointer-events:none!important}
body.nc-direct-game #board{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;width:min(62vh,62vw,620px)!important;height:min(62vh,62vw,620px)!important;min-width:260px!important;min-height:260px!important;max-width:620px!important;max-height:620px!important;margin:0!important;padding:12px!important;gap:9px!important;position:relative!important;z-index:20!important;visibility:visible!important;opacity:1!important;flex:0 0 auto!important}
body.nc-direct-game #board .cell{display:flex!important;visibility:visible!important;opacity:1!important;min-width:0!important;min-height:0!important;aspect-ratio:1!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;z-index:21!important}
body.nc-direct-game .presentation-result{position:absolute!important;left:50%!important;bottom:10px!important;transform:translateX(-50%)!important;width:min(680px,calc(100% - 36px))!important;min-height:25px!important;margin:0!important;padding:5px 10px!important;z-index:35!important;font-size:8px!important;text-align:center!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
body.nc-direct-game .nc-evolution-panel,body.nc-direct-game .nc-evolution-event{z-index:40!important}
body.nc-direct-game .play-stage-main>aside.play-panel,body.nc-direct-game .play-stage-main>details.nc-side-drawer,body.nc-direct-game .play-stage-main>details.nc-v4-side,body.nc-direct-game .play-stage-main>details.nc-ux-drawer{position:fixed!important;top:68px!important;bottom:10px!important;left:10px!important;width:min(350px,calc(100vw - 20px))!important;max-height:none!important;z-index:9000!important;overflow:auto!important;transform:translateX(-115%)!important;transition:transform .22s ease!important}
body.nc-direct-game .play-stage-main>details.nc-side-drawer[open],body.nc-direct-game .play-stage-main>details.nc-v4-side[open],body.nc-direct-game .play-stage-main>details.nc-ux-drawer[open]{transform:translateX(0)!important}
body.nc-direct-game .play-stage-main>details.nc-side-drawer:nth-of-type(2),body.nc-direct-game .play-stage-main>details.nc-v4-side:nth-of-type(2),body.nc-direct-game .play-stage-main>details.nc-ux-drawer:nth-of-type(2){left:auto!important;right:10px!important;transform:translateX(115%)!important}
body.nc-direct-game .play-stage-main>details.nc-v4-economy{position:fixed!important;right:10px!important;top:68px!important;bottom:10px!important;width:min(420px,calc(100vw - 20px))!important;z-index:9000!important;overflow:auto!important;transform:translateX(115%)!important;transition:transform .22s ease!important}
body.nc-direct-game .play-stage-main>details.nc-v4-economy[open]{transform:translateX(0)!important}
body.nc-direct-game .nc-v4-hub,body.nc-direct-game .nc-game-deck{display:none!important}
body.nc-direct-game #ncDirectShell{position:fixed;left:0;right:0;top:0;height:58px;z-index:12000;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:7px 14px;box-sizing:border-box;background:rgba(1,7,13,.86);border-bottom:1px solid rgba(255,255,255,.13);backdrop-filter:blur(18px);box-shadow:0 10px 40px rgba(0,0,0,.3)}
#ncDirectShell .brand{display:flex;align-items:center;gap:9px}.brand-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:1000;background:linear-gradient(145deg,#7ee8ff,#275eff 62%,#08142f);box-shadow:0 0 24px rgba(65,210,255,.22)}.brand-copy b{display:block;font-size:12px;letter-spacing:.14em}.brand-copy small{font-size:7px;letter-spacing:.14em;color:rgba(255,255,255,.55)}
#ncDirectShell .status{display:flex;justify-content:center;gap:6px}.status-pill{padding:6px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.05);font:900 7px system-ui;letter-spacing:.1em;white-space:nowrap}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#62f2ac;box-shadow:0 0 10px #62f2ac;margin-right:5px}
#ncDirectShell .actions{display:flex;justify-content:flex-end;gap:5px}.direct-btn{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;border-radius:8px;padding:7px 9px;font:900 7px system-ui;letter-spacing:.08em;cursor:pointer}.direct-btn:hover{background:rgba(91,219,255,.16);border-color:rgba(120,230,255,.4)}
@media(max-width:800px){body.nc-direct-game .board-battle-hud{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.nc-direct-game .hud-chip:nth-child(n+4){display:none!important}body.nc-direct-game #board{width:min(72vh,72vw,520px)!important;height:min(72vh,72vw,520px)!important}}
@media(max-width:560px){#ncDirectShell{grid-template-columns:auto 1fr auto!important;height:52px!important;padding:5px 8px!important}.brand-copy small{display:none}.brand-copy b{font-size:10px!important}.direct-btn{padding:7px 6px!important}.status-pill:nth-child(2){display:none}body.nc-direct-game .board-focus-wrap{inset:52px 0 0 0!important}body.nc-direct-game .board-battle-hud{top:44px!important;left:8px!important;right:8px!important}body.nc-direct-game .board-stage-center{padding:78px 8px 50px!important}body.nc-direct-game #board{width:min(82vw,52vh,430px)!important;height:min(82vw,52vh,430px)!important;min-width:240px!important;min-height:240px!important}}

/* v6.3.57 hard play-surface isolation: all secondary systems are outside the playable board surface. */
body.nc-direct-game .nc-experience-dock,
body.nc-direct-game #ncExperienceDock{display:none!important;}
body.nc-direct-game .board-focus-wrap > #ncRealMoneyRoot,
body.nc-direct-game .board-focus-wrap > #ncLiveMarkets,
body.nc-direct-game .board-focus-wrap > #ncCoinStakePanel,
body.nc-direct-game .board-focus-wrap > #ncAiFixturePanel,
body.nc-direct-game .play-stage-main > #ncLiveMarkets,
body.nc-direct-game .play-stage-main > #ncCoinStakePanel,
body.nc-direct-game .play-stage-main > #ncRealMoneyRoot,
body.nc-direct-game .play-stage-main > #ncAiFixturePanel{display:none!important;}
body.nc-direct-game .play-stage-main>.play-panel.hidden{display:none!important;}
body.nc-direct-game .play-stage-main>.board-focus-wrap{z-index:100!important;}
body.nc-direct-game .board-focus-stage{z-index:1!important;}
body.nc-direct-game .board-stage-center{z-index:2!important;}
body.nc-direct-game #board{z-index:50!important;}
body.nc-direct-game .board-stage-center .nc-seed-arena{z-index:60!important;pointer-events:none!important;}
body.nc-direct-game .presentation-result{pointer-events:none!important;}
/* v6.3.57 Systems drawer: preserve existing market/wallet functionality without restoring the long page. */
body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncRealMoneyRoot,
body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncLiveMarkets,
body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncCoinStakePanel{
  display:block!important;
  position:fixed!important;
  right:10px!important;
  left:auto!important;
  top:68px!important;
  bottom:10px!important;
  width:min(720px,calc(100vw - 20px))!important;
  max-height:none!important;
  overflow:auto!important;
  z-index:9500!important;
  margin:0!important;
  background:rgba(3,14,21,.96)!important;
  backdrop-filter:blur(22px)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:18px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.55)!important;
}
body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncCoinStakePanel{top:auto!important;height:auto!important;max-height:34vh!important;bottom:10px!important;}
@media(max-width:700px){
  body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncRealMoneyRoot,
  body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncLiveMarkets,
  body.nc-direct-game.nc-direct-systems-open .board-focus-wrap > #ncCoinStakePanel{right:6px!important;left:6px!important;width:auto!important;}
}

/* v6.3.58 — Play Board Presentation Repair.
   The real board is the hero. World galleries, intelligence docks and progression
   remain available through secondary UI but never cover the playable surface. */
body.nc-direct-game .nc-v4-world-lens,
body.nc-direct-game .nc-v4-world-rail,
body.nc-direct-game #ncWorldRail,
body.nc-direct-game .nc-world-rail,
body.nc-direct-game #ncV630Dock,
body.nc-direct-game .nc-v630-dock,
body.nc-direct-game #ncAiFixturePanel{display:none!important;}

/* Keep the photographic world itself, but turn its controls into a quiet backdrop. */
body.nc-direct-game .nc-realworld-arena{z-index:0!important;}
body.nc-direct-game .nc-realworld-worldmark{top:72px!important;left:18px!important;z-index:6!important;transform:scale(.86);transform-origin:top left;opacity:.9;}
body.nc-direct-game .nc-realworld-live{top:72px!important;right:18px!important;z-index:6!important;}

/* Board stage always sits above presentation rails and progress panels. */
body.nc-direct-game .board-focus-stage{position:absolute!important;inset:0!important;z-index:20!important;display:block!important;}
body.nc-direct-game .board-stage-center{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:112px 24px 72px!important;z-index:40!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
body.nc-direct-game .board-stage-center::before{z-index:0!important;}
body.nc-direct-game #board{position:relative!important;z-index:100!important;width:min(56vh,56vw,600px)!important;height:min(56vh,56vw,600px)!important;min-width:300px!important;min-height:300px!important;max-width:600px!important;max-height:600px!important;visibility:visible!important;opacity:1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;}
body.nc-direct-game #board .cell{position:relative!important;z-index:101!important;visibility:visible!important;opacity:1!important;}

/* The evolution readout becomes a compact status chip instead of a second page. */
body.nc-direct-game #ncEvolutionPanel{position:fixed!important;left:18px!important;bottom:66px!important;width:min(420px,calc(100vw - 36px))!important;max-height:38px!important;overflow:hidden!important;margin:0!important;padding:7px 10px!important;z-index:300!important;border-radius:12px!important;background:rgba(2,10,16,.72)!important;backdrop-filter:blur(12px)!important;}
body.nc-direct-game #ncEvolutionPanel .nc-evo-player{display:none!important;}
body.nc-direct-game #ncEvolutionPanel .nc-evo-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important;font-size:8px!important;}
body.nc-direct-game #ncEvolutionPanel .nc-evo-seeds{display:none!important;}
body.nc-direct-game #ncEvolutionEvent{z-index:500!important;}

/* Result ribbon/status remain above the board and become the only post-move emphasis. */
body.nc-direct-game #ncBoardResultRibbon{z-index:520!important;}
body.nc-direct-game #ncBoardLiveStatus{z-index:510!important;}
body.nc-direct-game .presentation-result{z-index:530!important;bottom:12px!important;}

/* Prematch countdown is compact and cannot obscure the board. */
body.nc-direct-game #ncAiPrematchCountdown{position:fixed!important;top:70px!important;right:18px!important;z-index:540!important;max-width:280px!important;}

/* A subtle game-state veil makes the board read as an actual arena rather than a webpage. */
body.nc-direct-game .board-stage-center{background:radial-gradient(circle at 50% 50%,rgba(25,115,145,.12),transparent 42%)!important;}
body.nc-direct-game .board-stage-center::after{content:'';position:absolute;inset:7% 14%;border:1px solid rgba(255,255,255,.08);border-radius:34px;pointer-events:none;z-index:3;box-shadow:inset 0 0 80px rgba(48,212,255,.035),0 0 80px rgba(0,0,0,.16);}

@media(max-width:800px){
  body.nc-direct-game .board-stage-center{padding:96px 10px 58px!important;}
  body.nc-direct-game #board{width:min(64vw,52vh,500px)!important;height:min(64vw,52vh,500px)!important;min-width:260px!important;min-height:260px!important;}
}
@media(max-width:560px){
  body.nc-direct-game .nc-realworld-worldmark{top:58px!important;left:8px!important;transform:scale(.74);}
  body.nc-direct-game .nc-realworld-live{top:58px!important;right:8px!important;transform:scale(.8);transform-origin:top right;}
  body.nc-direct-game .board-stage-center{padding:84px 6px 52px!important;}
  body.nc-direct-game #board{width:min(82vw,52vh,430px)!important;height:min(82vw,52vh,430px)!important;min-width:240px!important;min-height:240px!important;}
  body.nc-direct-game #ncEvolutionPanel{left:8px!important;bottom:58px!important;width:calc(100vw - 16px)!important;}
}
