/* ImperialHost.cc: server-rendered pages (server/pages.js): status, game pages, web hosting, AI agents.
   Builds on the tokens in style.css and the header / hero / footer of legal.css. */

.pg { padding-bottom: 96px; }
.pg-sec { margin-top: 48px; }
.pg-sec > h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin-bottom: 16px; }
.pg-muted { color: var(--text-2); }
.pg-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 720px; }
.pg-prose { max-width: 760px; display: grid; gap: 14px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.pg-prose strong { color: var(--text); font-weight: 600; }
.pg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- status ---------- */
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }
.sdot--up { background: var(--ok-dot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok-dot) 22%, transparent); }
.sdot--down { background: #ff453a; box-shadow: 0 0 0 4px rgba(255, 69, 58, .22); }
.st-banner { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px !important; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text) !important; font-weight: 600; font-size: 16px; }
.st-banner--partial, .st-banner--down { border-color: rgba(255, 69, 58, .5); }
.svcs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.svc { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.svc__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.svc__state { font-size: 13.5px; color: var(--text-2); }
.svc__state--up { color: var(--ok); }
.svc__state--down { color: #ff453a; }
.sbars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 40px; margin-top: 16px; }
.sb { border-radius: 2px; background: var(--ok-dot); opacity: .85; }
.sb--none { background: var(--line-2); opacity: .6; }
.sb--warn { background: #ff9f0a; }
.sb--bad { background: #ff453a; }
.svc__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
@media (max-width: 640px) { .sbars { gap: 1px; } .svc { padding: 16px; } }

/* ---------- landing pages (games, web hosting, AI agents, partner programme) ---------- */
.pg-hero { max-width: 860px; }
.pg-hero .legal-kicker a { color: inherit; }
.pg-hero .legal-kicker a:hover { color: var(--text); }
.pg-from { margin-top: 14px !important; font-size: 15px; color: var(--text-2); }
.pg-from b { color: var(--text); font-size: 18px; }
.pg-plans { margin-top: 8px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pg-card { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pg-card h3 { font-size: 17px; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 8px; }
.pg-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.pg-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.pg-steps li::marker { font-weight: 700; color: var(--text); }
.pg-faq { max-width: 820px; }
.pg-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-games { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pg-games a { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.pg-games a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pg-games__ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }
.pg-games__ico img { width: 40px; height: 40px; object-fit: cover; }
.pg-games__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.pg-games__from { font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) { .pg-plans { --cols: 2 !important; } }
@media (max-width: 640px) { .pg-plans { --cols: 1 !important; } }
.pg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.pg-cat { margin-top: 36px; scroll-margin-top: 90px; }
.pg-cat > h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.pg-cat > h2 small { font: 600 13px var(--mono); color: var(--text-2); }

/* ---------- the landing page's nav and footer on these pages ---------- */
.pg { padding-top: calc(var(--nav-h) + 20px); }
.pg-lang a { display: inline-grid; place-items: center; min-width: 36px; height: 30px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); transition: color .3s var(--ease); }
.pg-lang a[aria-current] { color: var(--text); background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pg-lang a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 640px) {
  .pg { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 64px; }
  .pg-hero { padding-top: 28px; padding-bottom: 20px; }
  .pg-hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .pg-ctas .btn { flex: 1 1 100%; }
  .pg-sec { margin-top: 36px; }
  .pg-sec > h2 { font-size: 24px; }
  .pg-games { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pg-games a { grid-template-columns: 32px 1fr; column-gap: 10px; padding: 10px; }
  .pg-games__ico, .pg-games__ico img { width: 32px; height: 32px; }
  .pg-games__name { font-size: 14px; }
  .pg-games__from { font-size: 12px; }
  .pg-jump { gap: 6px; }
  .pg-jump .btn { padding: 0 12px; font-size: 13px; min-height: 32px; }
  .svc__top { gap: 6px; }
  .svc__foot span:nth-child(2) { text-align: center; }
  .st-banner { font-size: 15px; padding: 10px 14px; }
}
@media (max-width: 380px) { .pg-games { grid-template-columns: 1fr; } }

/* ---------- game / web / AI pages: sections under the plans, in the landing page's look ---------- */
.pg-head { max-width: 760px; margin-bottom: 32px; }
.pg-head h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.045em; line-height: 1.05; }
.pg-head .eyebrow { margin-bottom: 14px; }
.pg-head .section__lead { margin-top: 14px; font-size: clamp(16px, 1.4vw, 18px); }
.pg-sec { margin-top: clamp(72px, 9vw, 120px); }
.pg-plansec { margin-top: clamp(48px, 6vw, 72px); }
.pg-trust { margin-top: 28px; }

.pg-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-about__side { position: sticky; top: calc(var(--nav-h) + 32px); }
.pg-about__side .pg-head { margin-bottom: 0; }
.pg-facts { margin-top: 28px; }
.pg-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pg-facts dt { color: var(--text-2); flex: none; }
.pg-facts dd { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 13.5px; text-align: right; }
.pg-about__text { display: grid; gap: 18px; font-size: 16.5px; line-height: 1.75; color: var(--text-2); padding-top: 6px; }
.pg-about__text .pg-first { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text); letter-spacing: -.01em; }

.pg-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pg-feat { padding: 26px; }
.pg-feat h3 { font-size: 18px; line-height: 1.3; }
.pg-feat p { font-size: 15px; line-height: 1.6; }

.pg-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.pg-flow li { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pg-flow li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 1px; background: var(--line-2); }
.pg-flow__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); font: 700 15px var(--mono); margin-bottom: 18px; }
.pg-flow p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.pg-faqwrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-faqwrap__side { position: sticky; top: calc(var(--nav-h) + 32px); }
.pg-faqwrap__side .pg-head { margin-bottom: 24px; }
.pg-faqwrap .pg-faq { max-width: none; }

.pg-related { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pg-games__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pg-cta { margin-top: clamp(72px, 9vw, 120px); padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.pg-cta h2 { font-size: clamp(32px, 5vw, 60px); }

@media (max-width: 1080px) {
  .pg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-flow li::after { display: none; }
}
@media (max-width: 860px) {
  .pg-about, .pg-faqwrap { grid-template-columns: 1fr; gap: 28px; }
  .pg-about__side, .pg-faqwrap__side { position: static; }
}
@media (max-width: 640px) {
  .pg-head h2 { font-size: 30px; }
  .pg-head { margin-bottom: 22px; }
  .pg-feats, .pg-flow { grid-template-columns: 1fr; gap: 12px; }
  .pg-feat, .pg-flow li { padding: 20px; }
  .pg-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
  .pg-flow__n { margin-bottom: 0; }
  .pg-about__text { font-size: 16px; }
  .pg-related { grid-template-columns: 1fr 1fr; }
  .pg-cta { padding: 64px 0; }
  .pg-cta .hero__ctas .btn { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .pg-trust { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .pg-trust li { padding: 12px; font-size: 12.5px; gap: 8px; line-height: 1.3; }
  .pg-trust svg { width: 18px; height: 18px; }
}
