/* One visual system for the public command deck and every standalone game page.
   This stylesheet is appended after each page's existing component rules. */
:root {
  --cc-ink: #e8faff;
  --cc-muted: #aec8d9;
  --cc-cyan: #63f1e3;
  --cc-gold: #ffd48b;
  --cc-violet: #b7a0ff;
  --cc-panel: #071827;
  --cc-line: #3d7188;
}
html { scroll-behavior: smooth; }
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.network-shortlink-page) {
  color: var(--cc-ink);
  background: radial-gradient(circle at 85% 7%, #20426b55 0, transparent 34%),
              linear-gradient(#020817c9, #020917e8 65%),
              url('/assets/deep-space-backdrop-v5.webp') center top / cover fixed !important;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main {
  box-sizing: border-box;
  width: min(100%, 1760px) !important;
  max-width: 1760px !important;
  margin: 0 auto !important;
  padding: 98px clamp(16px, 3vw, 54px) 76px !important;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 190px;
  margin: 0 0 22px;
  padding: clamp(24px, 3vw, 46px);
  overflow: hidden;
  border: 1px solid #5296ab;
  border-radius: 16px;
  background: linear-gradient(90deg, #081b30f7 0%, #0b2640ef 53%, #08192ebb 78%),
              url('/assets/home-hero-colony-v1.png') right 35% / cover;
  box-shadow: 0 22px 55px #0008, inset 0 1px #9fefff3a;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cc-cyan), var(--cc-violet), transparent 80%);
  pointer-events: none;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child > div {
  position: relative;
  z-index: 1;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child h1 {
  margin: 10px 0 10px;
  color: #f5feff;
  font-size: clamp(1.65rem, 3.5vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 4px 18px #0009;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child p:not(.eyebrow) {
  max-width: 860px;
  color: #d2e3ee;
  font-size: clamp(.96rem, 1.2vw, 1.15rem);
  line-height: 1.48;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) .eyebrow {
  color: #70f4e5;
  font-size: .67rem;
  letter-spacing: .18em;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-hub,.earning-card,.pool-explainer article,.alliance-command,.alliance-section,.alliance-empty,.premium-shell,.premium-status,.premium-package,.premium-benefits,.cosmetic-intro,.cosmetic-group,.cosmetic-card,.shop-card,.shop-intro,.shop-orders,.faucet-panel,.network-links,.network-grid article,.shortlink-provider,.ptc-provider,.offerwall-provider,.wallet-form,.expedition-card,.rankings-panel) {
  border-radius: 12px;
  border-color: #396f85;
  background-color: #081b2a;
  box-shadow: 0 14px 38px #0005, inset 0 1px #a5e8ff13;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-card,.pool-explainer article,.alliance-section,.cosmetic-card,.shop-card,.premium-package,.network-grid article) {
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-card,.pool-explainer article,.cosmetic-card,.shop-card,.premium-package,.network-grid article):hover {
  border-color: #61c9d0;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px #0007, 0 0 22px #40d9df19;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(button,.earning-button,.world-map-button,.top-bar-action,.button) {
  border-radius: 7px;
  min-height: 39px;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(button,a,input,select,textarea):focus-visible {
  outline: 2px solid #ffe09a;
  outline-offset: 3px;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(input,select,textarea) {
  border-radius: 7px;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-hub,.alliance-app,.shop-shell,.cosmetics-locker,.premium-shell) {
  gap: 18px;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-hub,.alliance-section,.cosmetic-group,.premium-shell,.shop-intro,.shop-orders) {
  padding: clamp(18px, 2vw, 30px);
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-hub,.cosmetic-group,.premium-shell) {
  background: radial-gradient(circle at 88% 0, #193d5b72, transparent 43%),
              linear-gradient(140deg, #0b1e33f5, #071522f8);
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) :is(.earning-hub-head,.alliance-section-head,.cosmetic-group-head) h2 {
  color: #f5f9ff;
  font-size: clamp(.9rem, 1.25vw, 1.2rem);
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) .site-menu-trigger {
  border-radius: 8px;
  box-shadow: 0 10px 30px #0009, 0 0 20px #31ddd030;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) .site-menu-panel {
  border-radius: 12px;
  overflow: auto;
}
body:not(.game-3d-release):not(.attack-page):not(.auth-page) .network-footer {
  background: #051527 !important;
  border-top-color: #346277 !important;
}

/* A game-system page is a full-height view, not a second website inside a
   bordered desktop window. The parent keeps the real command/resource bar. */
html.embedded-game-page,
html.embedded-game-page body { width: 100%; min-height: 100%; overflow-x: hidden; }
html.embedded-game-page body { display: block !important; background-attachment: scroll !important; }
html.embedded-game-page :is(.site-menu,.site-nav,.network-footer,.chat-launcher,.colony-chat) { display: none !important; }
html.embedded-game-page body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main,
html.embedded-game-page body:is(.guide-page,.landing,.auth-page,.network-shortlink-page) > main {
  width: min(100%, 1760px) !important;
  max-width: 1760px !important;
  margin: 0 auto !important;
  padding: clamp(18px, 2.5vw, 42px) clamp(16px, 3vw, 54px) 70px !important;
}
html.embedded-game-page body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child { min-height: 158px; }

/* Cinematic homepage: the artwork acts as a playable-world window, while all
   instructions and CTAs remain ordinary accessible page content. */
body.landing { background: #020914 url('/assets/deep-space-backdrop-v5.webp') center top / cover fixed !important; }
body.landing .site-nav,
body.guide-page .site-nav {
  position: relative;
  height: 80px;
  background: linear-gradient(90deg,#061827f2,#0b1c34dc);
  border-bottom: 1px solid #417789;
}
body.landing .brand,
body.guide-page .brand { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; }
body.landing .brand::before,
body.guide-page .brand::before {
  content: '';
  width: 36px;
  height: 36px;
  background: url('/icon-192.png') center / contain no-repeat;
  filter: drop-shadow(0 0 10px #4ee8df8a);
}
body.landing .brand i,
body.guide-page .brand i { display: none; }
body.landing .hero.launch-hero {
  width: min(100% - 40px, 1780px);
  max-width: 1780px;
  min-height: min(760px, calc(100dvh - 110px));
  margin: 30px auto 0;
  padding: clamp(30px, 5vw, 88px);
  grid-template-columns: minmax(370px, .9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 55px);
  border: 1px solid #477e99;
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0,#1c486a52,transparent 38%),
              linear-gradient(120deg,#071b2cef,#061628d9);
  box-shadow: 0 30px 90px #000b, inset 0 1px #a7e3ff2e;
}
body.landing .hero h1 { font-size: clamp(2.35rem, 4.3vw, 5rem); line-height: 1.06; }
body.landing .hero h1 em { color: #69f0dc; }
body.landing .lead { max-width: 650px; color: #c4dbe8; font-size: clamp(1.05rem, 1.55vw, 1.42rem); }
body.landing .hero-art-image {
  height: min(610px, 60vw);
  border: 1px solid #5ba1bc;
  border-radius: 18px;
  box-shadow: 0 24px 74px #000b, 0 0 60px #4fcfdd1b;
}
body.landing .hero-art-image img { object-position: 70% center; }
body.landing .hero-art-image::after { background: linear-gradient(90deg,#06152a22,transparent 40%),linear-gradient(0deg,#03122282,transparent 35%); }
body.landing .launch-earn-callout,
body.landing .hero-stats span,
body.landing .launch-loop article,
body.landing .launch-features,
body.landing .launch-feature-grid span {
  border-radius: 12px;
  box-shadow: 0 12px 34px #0005;
}
body.landing .hero-stats span { padding: 10px 14px; border: 1px solid #396577; background: #091a2c; }
body.landing .launch-loop,
body.landing .launch-features { max-width: 1700px; }
body.landing .launch-loop article { min-height: 195px; padding: 24px; }
body.landing .launch-features { border-radius: 18px; }
body.landing footer { background: #061527; }

body.guide-page { background: #020914 url('/assets/deep-space-backdrop-v5.webp') center top / cover fixed !important; }
body.guide-page .guide-hero,
body.guide-page .guide-section { border-radius: 16px; box-shadow: 0 16px 55px #0007; }
body.guide-page .guide-hero { background: linear-gradient(110deg,#071b2dee,#061325b8),url('/assets/home-hero-colony-v1.png') center / cover; }
body.auth-page { background: linear-gradient(#020815d9,#020915ed),url('/assets/deep-space-backdrop-v5.webp') center / cover fixed !important; }
body.auth-page .auth-card { border-radius: 16px; border-color: #548ba0; background: linear-gradient(145deg,#102c41f5,#071321f8); box-shadow: 0 28px 90px #000b, inset 0 1px #a9e7ff29; }
body.network-shortlink-page { background: radial-gradient(circle at 50% 0,#18406690,transparent 48%),url('/assets/deep-space-backdrop-v5.webp') center / cover fixed !important; }
body.network-shortlink-page .network-shortlink-shell { border-radius: 16px; box-shadow: 0 25px 75px #000a; }

@media (max-width: 980px) {
  body.landing .hero.launch-hero { grid-template-columns: 1fr; min-height: 0; }
  body.landing .hero-art-image { height: min(55vw, 450px); }
}
@media (max-width: 700px) {
  body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main { padding: 66px 10px 52px !important; }
  html.embedded-game-page body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main,
  html.embedded-game-page body:is(.guide-page,.landing,.auth-page,.network-shortlink-page) > main { padding: 12px 10px 52px !important; }
  body:not(.game-3d-release):not(.attack-page):not(.auth-page):not(.landing):not(.guide-page):not(.network-shortlink-page) > main > header:first-child { min-height: 150px; padding: 18px; }
  body.landing .hero.launch-hero { width: calc(100% - 16px); margin-top: 8px; padding: 25px 18px; border-radius: 12px; }
  body.landing .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  body.landing .hero-art-image { width: 100%; height: 260px; transform: none; border-radius: 10px; }
  body.landing .launch-loop { padding-inline: 12px; }
  body.landing .launch-features { margin-inline: 8px; }
}
