/* Balanced starlight: static decoration shared by every portal page. */
:root {
  background: #10234b;
  color: #f3f6ff;
  --accent: #c5e2ff;
  --muted: #c0cee5;
  --line: #a8caff30;
  --surface: #17345a;
  --balanced-panel: linear-gradient(125deg, #184774eb, #1b3565eb 65%, #253c75e8);
  --balanced-border: #9ccaff45;
}

body {
  isolation: isolate;
  min-height: 100vh;
}

/* One small local SVG; no animation, runtime requests, or image service. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #10234b url("/assets/balanced-starlight.svg") center / cover no-repeat;
}

header {
  background: linear-gradient(105deg, #0e2146ee, #171f47ed 65%, #442a6de8);
  border-bottom-color: #a8caff42;
  box-shadow: 0 5px 24px #030f2a24;
}

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand small { color: #b7c8e5; }
nav { color: #d7e3f7; }
.header-login { border-color: #c2d9ff66; background: #121d3933; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-discord {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  border: 1px solid #929cff;
  border-radius: 7px;
  background: #5865f2;
  transition: background .2s;
}
.header-discord img { width: 25px; height: 25px; }
.header-discord:hover { background: #4752c4; }
.construction-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 26px var(--page-gutter);
  color: #ffe2a0;
  background: linear-gradient(110deg, #4b3c29f2, #302f46f2);
  border-bottom: 1px solid #efd08b70;
}
.construction-notice > svg { width: 44px; height: 44px; flex: 0 0 44px; }
.construction-notice p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; color: inherit; }
.construction-notice strong { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.5; }
.construction-notice span { font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; line-height: 1.6; color: #fff1d2; }
.header-login:hover, .outline:hover { color: #10284b; }
nav a[aria-current]::after { box-shadow: 0 0 10px #92caff80; }
.eyebrow { color: #cae4ff; }
.page-heading h1 { text-shadow: 0 3px 22px #030e3866; }
footer { background: #0c1c3c66; border-top-color: var(--line); }
footer > div > a:not(.brand), .note { color: #bccde6; }

.cards article,
.panel,
.download-card,
.result,
.guide-grid > a,
.sidebar,
.guide-body,
.feature-list li,
.job-card {
  background: var(--balanced-panel);
  border-color: var(--balanced-border);
  box-shadow: inset 0 1px 0 #d1e7ff08, 0 5px 22px #03122f15;
}

.guide-grid > a:hover,
.job-card:hover {
  background: linear-gradient(125deg, #205588f5, #304c87f2);
  border-color: #9cd7ff99;
  box-shadow: 0 0 22px #63bfff18;
}
.job-card:hover { border-color: var(--family-color); }

.notice,
.sidebar .notice,
.guide-body .notice,
#characters article {
  background: linear-gradient(120deg, #102c50ed, #1c3159ed);
  border-color: var(--balanced-border);
}
.sidebar > a { color: #c8d9ef; }
.sidebar > a[aria-current] { color: #eef7ff; }
.cards article > b, .guide-grid span, .result small { color: #b6d5f5; }
.result dd { color: #c6d6ee; }

input {
  background: #0c2143eb;
  border-color: #92baf75c;
}
input::placeholder { color: #9db3d1; }
.tabs button,
.features-contents a,
.jobs-jump a {
  background: #13294ed9;
  border-color: #bdd8ff59;
  color: #e4efff;
}
.tabs button:hover,
.features-contents a:hover,
.jobs-jump a:hover {
  background: #2c4a78;
  border-color: #b4ddff;
  color: #fff;
}
.tabs button[aria-pressed="true"] {
  background: #c6e4ff;
  border-color: #dbf0ff;
  color: #10294b;
  box-shadow: 0 0 18px #75caff25;
}

/* The three rate cards retain the blue / gold / violet of the chosen sample. */
.rate-card {
  background: linear-gradient(125deg, #104c81e8, #172e5aeb 70%, #22518beb);
  border-color: #6acaff;
  box-shadow: inset 0 0 18px #57bcff38, 0 0 22px #4bbcff26;
}
.rate-card:nth-child(2) {
  background: linear-gradient(125deg, #50432fe8, #3c3546ed 75%, #655040e6);
  border-color: #edc16d;
  box-shadow: inset 0 0 18px #ffc46b38, 0 0 22px #ffc36620;
}
.rate-card:nth-child(3) {
  background: linear-gradient(125deg, #513382e8, #302d69eb 70%, #644096e8);
  border-color: #c28bff;
  box-shadow: inset 0 0 18px #c189ff42, 0 0 22px #ae78ff26;
}
.rate-title { color: #e0f4ff; }
.rate-card:nth-child(2) .rate-title { color: #ffe5a2; }
.rate-card:nth-child(3) .rate-title { color: #ecdbff; }
.rate-value span { color: #e4eafa; }
.rate-card p { color: #e0e6f4; }
.rate-watermark { opacity: .16; }
.feature-list h3, .job-copy strong { color: #f3f6ff; }
.feature-section-heading > p, .feature-list p { color: #c4d5ed; }
.feature-section-emblem {
  background: linear-gradient(135deg, #3d96b92b, #266d9a33);
  border-color: #97caff55;
  box-shadow: inset 0 0 22px #51caff0c;
}
.feature-list .version-label { color: #e1ceff; background: #c79fff1c; }
.feature-finish {
  background: linear-gradient(110deg, #164e58ed, #203e72ed);
  border-color: #85d4d454;
}
.feature-finish p { color: #c8e0e9; }

.critical-section > p { color: #c7d7ee; }
.critical-theme {
  background: linear-gradient(125deg, var(--theme-tint), #162d5222), #132b50e8;
  border-right-color: var(--balanced-border);
  border-bottom-color: var(--balanced-border);
  border-left-color: var(--balanced-border);
}
.critical-table-scroll { background: #132b50eb; border-color: var(--balanced-border); }
.critical-table thead th { color: #d0e1f6; background: #23436b; }
.critical-table .job-table-group th { background: #172f54; }

/* Preserve the home illustration and blend its edges into the shared palette. */
.hero-shade {
  background:
    linear-gradient(90deg, #0b2042e8, #122d50ad 34%, #29367216 74%),
    linear-gradient(0deg, #10234b, transparent 32%, #512a6c1c);
}
.hero { border-bottom: 1px solid #9accff26; }
.hero-bottom { color: #c0d5f2; }
.quick-links { background: #17345b66; }
.quick-links > a:hover { background: #679fff16; }
.quick-links div > span, .tile-copy p { color: #c3d6f1; }
.quick-links b, .tile-top, .guide-list span { color: #a9c9ed; }
.feature-tile { border-color: var(--balanced-border); }
.feature-skill { background: radial-gradient(ellipse at 50% 35%, #315b98, #152c56 75%); }
.feature-craft { background: radial-gradient(ellipse at 50% 35%, #655588, #2d2b59 75%); }
.join-banner {
  background: radial-gradient(ellipse at 50% 100%, #2863a66b, #21376c25 75%);
  border-color: var(--balanced-border);
}

@media (max-width: 1050px) {
  .header-actions { margin-left: auto; order: 1; }
}
@media (max-width: 760px) {
  header { gap: 10px; }
  .construction-notice { padding-block: 22px; gap: 14px; }
  .construction-notice > svg { width: 32px; height: 32px; flex-basis: 32px; }
  .construction-notice p { display: block; }
  .construction-notice span { display: block; font-size: 17px; }
  .header-actions { gap: 0; }
  .header-discord { width: 36px; height: 36px; }
  .header-discord img { width: 23px; height: 23px; }
  body::before { background-position: 57% center; }
  .brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .hero-shade {
    background:
      linear-gradient(90deg, #0c2142ed, #10284c80 65%, #25306022),
      linear-gradient(0deg, #10234b, transparent 45%);
  }
}

@media (max-width: 370px) {
  header .brand { font-size: 22px; gap: 5px; }
  header .brand small { font-size: 6px; }
  header .brand-icon { width: 32px; height: 32px; flex-basis: 32px; }
}
