@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Marcellus+SC&family=Noto+Sans+Thai:wght@400;500;600;700&family=Noto+Serif+Thai:wght@400;600&display=swap');

:root {
  --header-height: 72px;
  --content-max: 1280px;
  --display: 'Marcellus SC', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  --ink: #090b10;
  --ink-soft: #111722;
  --ink-raised: #171e2a;
  --pearl: #e9e8e2;
  --paper: #f6f3e9;
  --paper-bright: #fffaf0;
  --gold: #c6a565;
  --gold-bright: #e0c78d;
  --gold-dark: #806126;
  --sapphire: #6d94d4;
  --sapphire-dark: #355684;
  --silver: #ccd3df;
  --steel: #9ca8ba;
  --muted: #5c626c;
  --line-dark: rgba(58, 55, 49, 0.22);
  --line-light: rgba(211, 190, 144, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[lang='th'] {
  --display: 'Noto Serif Thai', Tahoma, serif;
  --body: 'Noto Sans Thai', Tahoma, Arial, sans-serif;
}

html[lang='th'] .hero-title,
html[lang='th'] .brand-copy strong,
html[lang='th'] .footer-brand strong {
  font-family: 'Marcellus SC', Georgia, serif;
}

body {
  min-width: 320px;
  margin: 0;
  color: #1b1d24;
  background: var(--pearl);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

h1,
h2,
h3,
strong {
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-150%);
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #416da9;
  outline-offset: 3px;
}

.site-header,
.account-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: grid;
  align-items: stretch;
  color: #edf1f7;
  background: rgba(7, 9, 14, 0.97);
  border-bottom: 1px solid rgba(198, 165, 101, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: background 240ms ease-out, border-color 240ms ease-out, box-shadow 240ms ease-out;
}

.site-header.is-scrolled,
.account-header.is-scrolled {
  background: rgba(5, 7, 11, 0.995);
  border-bottom-color: rgba(224, 199, 141, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.site-header {
  grid-template-columns: 280px minmax(400px, 1fr) minmax(292px, auto);
}

.account-header {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 24px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.46));
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  color: #f0e7d4;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1;
}

.brand-copy small {
  color: #8f9aad;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.header-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.header-nav a {
  min-width: 116px;
  min-height: var(--header-height);
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #aeb7c5;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border-right: 1px solid rgba(198, 165, 101, 0.1);
  transition: color 160ms ease-out, background 160ms ease-out;
}

.header-nav a:first-child {
  border-left: 1px solid rgba(198, 165, 101, 0.1);
}

.header-nav a:hover,
.header-nav a.is-active {
  color: #f7edda;
  background: #121824;
}

.header-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.header-actions,
.account-header-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.language-switcher {
  height: 34px;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(34px, auto));
  align-self: center;
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(198, 165, 101, 0.34);
  background: #0b0e14;
}

.language-switcher button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  color: #8f9aad;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(198, 165, 101, 0.18);
  font: 700 0.63rem/1 var(--body);
  cursor: pointer;
  transition: color 150ms ease-out, background 150ms ease-out;
}

.language-switcher button:last-child {
  border-right: 0;
}

.language-switcher button:hover {
  color: #f7edda;
  background: #171e2a;
}

.language-switcher button.is-active {
  color: #17130b;
  background: var(--gold);
}

.language-switcher button:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: -3px;
}

.header-account,
.header-register {
  min-height: var(--header-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  color: #d8dfe9;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-left: 1px solid rgba(198, 165, 101, 0.18);
}

.header-account:hover {
  color: #fff8e8;
  background: #151b27;
}

.header-register {
  color: #13151a;
  background: var(--gold);
}

.header-register:hover {
  background: var(--gold-bright);
}

.header-account svg,
.header-register svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  width: var(--header-height);
  min-height: var(--header-height);
  display: none;
  place-items: center;
  padding: 0;
  color: #f0e7d4;
  background: #0b0e14;
  border: 0;
  border-left: 1px solid rgba(198, 165, 101, 0.2);
  cursor: pointer;
}

.menu-toggle svg {
  width: 25px;
  height: 25px;
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 90;
  display: grid;
  grid-template-rows: 1fr auto;
  color: #edf1f7;
  background: rgba(7, 9, 14, 0.985);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 170ms ease-out, transform 170ms ease-out, visibility 170ms;
}

.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: grid;
  align-content: start;
}

.mobile-nav a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  color: #d8dfe9;
  font-family: var(--display);
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 165, 101, 0.16);
}

.mobile-nav a.is-active,
.mobile-nav a[aria-current='page'] {
  color: var(--gold-bright);
  background: #111722;
}

.mobile-nav svg {
  width: 19px;
  height: 19px;
}

.mobile-drawer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: #8995a8;
  font-size: 0.68rem;
  border-top: 1px solid rgba(198, 165, 101, 0.24);
}

.mobile-drawer-meta .language-switcher {
  flex: 0 0 auto;
  margin: 0;
}

.page-shell {
  padding-top: var(--header-height);
  overflow-x: hidden;
  overflow-x: clip;
}

.primary-action,
.form-submit,
.disabled-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  color: #121419;
  background: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.primary-action:hover,
.form-submit:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: inset 0 -3px 0 rgba(18, 20, 25, 0.24);
}

.primary-action svg,
.form-submit svg,
.disabled-action svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-action:hover svg,
.form-submit:hover svg {
  transform: translateX(3px);
}

.secondary-action,
.text-link {
  min-height: 44px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 2px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.secondary-action:hover,
.text-link:hover {
  color: var(--gold-bright);
}

.home-hero {
  --scene-x: 0px;
  --scene-y: 0px;
  --figure-x: 0px;
  --figure-y: 0px;
  --copy-x: 0px;
  --copy-y: 0px;
  position: relative;
  height: clamp(640px, calc(100svh - 210px), 720px);
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  color: #f7f1e6;
  background: #070a10;
  perspective: 1200px;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.06) brightness(0.82);
  transform: translate3d(var(--scene-x), var(--scene-y), 0) scale(1.035);
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), filter 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero-field {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.8) 31%, rgba(5, 7, 11, 0.22) 62%, rgba(5, 7, 11, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0) 40%);
  transition: opacity 700ms ease-out;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  background: linear-gradient(90deg, #070a10 0%, #0b1018 49.86%, #c6a565 50%, #0b1018 50.14%, #070a10 100%);
  clip-path: inset(0 50% 0 50%);
  visibility: hidden;
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 22px 24px 78px;
  z-index: -1;
  border: 1px solid rgba(224, 199, 141, 0.24);
  clip-path: inset(0);
  pointer-events: none;
  transition: clip-path 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero-duo {
  position: absolute;
  right: 2.5%;
  bottom: 0;
  z-index: -2;
  width: min(51%, 700px);
  height: 96%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-22px 24px 28px rgba(0, 0, 0, 0.56));
  clip-path: inset(0);
  transform: translate3d(var(--figure-x), var(--figure-y), 0) scale(1);
  transition: opacity 520ms ease-out, clip-path 820ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1), filter 720ms ease-out;
}

@media (min-width: 1280px) {
  .home-hero-duo {
    right: clamp(180px, 18vw, 390px);
    bottom: -8%;
    width: auto;
    max-width: none;
    height: 112%;
  }
}

.home-hero-copy {
  position: absolute;
  top: 45%;
  left: clamp(44px, 7vw, 112px);
  width: min(45%, 610px);
  transform: translate3d(var(--copy-x), calc(-50% + var(--copy-y)), 0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero.is-interacting .home-hero-bg,
.home-hero.is-interacting .home-hero-duo,
.home-hero.is-interacting .home-hero-copy {
  will-change: transform;
  transition-duration: 110ms;
}

.hero-kicker,
.page-code,
.dispatch-label,
.news-entry small {
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-title {
  display: grid;
  max-width: 650px;
  color: #f3ead8;
  font-family: var(--display);
  font-size: 5.6rem;
  font-weight: 400;
  line-height: 0.88;
}

.hero-title span:last-child {
  color: #d5c094;
}

.hero-copy {
  max-width: 52ch;
  margin-top: 24px;
  color: #cbd3df;
  font-size: 0.94rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.realm-status {
  position: absolute;
  inset: auto 0 0;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 clamp(24px, 5vw, 80px);
  background: rgba(7, 9, 14, 0.96);
  border-top: 1px solid rgba(198, 165, 101, 0.28);
}

.status-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  border-right: 1px solid rgba(198, 165, 101, 0.14);
}

.status-item:first-child {
  border-left: 1px solid rgba(198, 165, 101, 0.14);
}

.status-item span {
  color: #8f9bad;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.status-item strong {
  color: #e2ca96;
  font-size: 0.7rem;
  font-weight: 700;
}

.section-wrap {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 84px 56px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.section-head h2,
.editorial-intro h1,
.release-summary h1,
.auth-heading,
.account-heading,
.account-section-head h2 {
  color: #202129;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.96;
}

.section-head h2 {
  font-size: 3.2rem;
}

.section-meta {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.portal-index {
  padding-top: 68px;
  padding-bottom: 58px;
}

.compact-head {
  margin-bottom: 12px;
}

.portal-ledger {
  border-top: 1px solid var(--line-dark);
}

.portal-row,
.ledger-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 90px minmax(210px, 0.75fr) minmax(260px, 1.35fr) 32px;
  align-items: center;
  gap: 24px;
  color: #1c1e25;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: background 140ms ease-out, color 140ms ease-out;
}

.portal-row:hover,
.ledger-row:hover {
  background: var(--paper);
}

.portal-row small,
.ledger-row small {
  color: var(--gold-dark);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-row strong,
.ledger-row strong {
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 400;
}

.portal-row span,
.ledger-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.portal-row svg,
.ledger-row svg {
  justify-self: end;
  width: 18px;
  height: 18px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms ease-out;
}

.portal-row:hover svg,
.ledger-row:hover svg {
  color: var(--gold-dark);
  transform: translateX(6px);
}

.chronicle-feature {
  padding-top: 18px;
  padding-bottom: 94px;
}

.dispatch-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.75fr);
  min-height: 500px;
  color: #eef1f6;
  background: #0d1119;
  box-shadow: 18px 22px 44px rgba(31, 29, 25, 0.16);
}

.dispatch-image {
  min-height: 500px;
  overflow: hidden;
}

.dispatch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dispatch-lead:hover .dispatch-image img {
  transform: scale(1.02);
}

.dispatch-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  border-left: 1px solid var(--line-light);
}

.dispatch-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.dispatch-copy h2 {
  max-width: 14ch;
  margin-top: 24px;
  color: #f0e7d4;
  font-family: var(--display);
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1.02;
}

.dispatch-copy p:not(.dispatch-label) {
  max-width: 38ch;
  margin-top: 20px;
  color: #aeb8c8;
}

.release-route {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  overflow: hidden;
  color: #edf1f7;
  background: #080b10;
}

.release-route-art {
  min-height: 470px;
  overflow: hidden;
}

.release-route-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.05) brightness(0.86);
}

.release-route-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
  border-left: 1px solid var(--line-light);
}

.release-route-copy h2 {
  max-width: 13ch;
  margin-top: 18px;
  color: #f0e7d4;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 0.98;
}

.release-route-copy > p:not(.page-code) {
  max-width: 42ch;
  margin-top: 22px;
  color: #aeb8c8;
}

.release-route-copy .text-link {
  margin-top: 28px;
}

.editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 38px 72px;
  padding-top: 96px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line-dark);
}

.editorial-intro .page-code {
  grid-column: 1 / -1;
  color: var(--gold-dark);
}

.editorial-intro h1 {
  max-width: 12ch;
  font-size: 4.6rem;
}

.editorial-intro > p:last-child {
  align-self: end;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.75;
}

.news-archive {
  padding-top: 52px;
  padding-bottom: 100px;
}

.archive-list {
  border-top: 1px solid var(--line-dark);
}

.news-entry {
  min-height: 210px;
  display: grid;
  grid-template-columns: 260px minmax(250px, 0.72fr) minmax(280px, 1fr);
  align-items: center;
  gap: 34px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.news-thumb {
  height: 162px;
  overflow: hidden;
  background: var(--ink-soft);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.news-entry:nth-child(2) .news-thumb img {
  object-position: center 25%;
}

.news-entry-head {
  display: grid;
  gap: 13px;
}

.news-entry h3 {
  color: #202129;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.12;
}

.news-entry > p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.download-status {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - var(--header-height));
  padding: 0;
  color: #edf1f7;
  background: #080b11;
}

.download-stage {
  width: min(100%, var(--content-max));
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(480px, 0.94fr) minmax(420px, 1.06fr);
  margin: 0 auto;
}

.release-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
  border-right: 1px solid var(--line-light);
}

.release-emblem {
  width: 66px;
  height: 88px;
  margin-bottom: 24px;
}

.release-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.release-summary .page-code {
  color: var(--gold-bright);
}

.release-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #94b5e5;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.release-state span {
  width: 8px;
  height: 8px;
  background: var(--sapphire);
  border-radius: 50%;
}

.release-summary h1 {
  max-width: 12ch;
  margin-top: 18px;
  color: #f0e7d4;
  font-size: 4rem;
}

.release-summary > p:not(.page-code):not(.release-state) {
  max-width: 48ch;
  margin-top: 22px;
  color: #aeb8c8;
  line-height: 1.72;
}

.disabled-action {
  width: max-content;
  margin-top: 28px;
  color: #8f99a8;
  background: #151b24;
  border-color: #394352;
  cursor: not-allowed;
}

.release-ledger {
  margin-top: 36px;
  border-top: 1px solid var(--line-light);
}

.release-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-light);
}

.release-row strong {
  color: #d7dde7;
  font-size: 0.78rem;
}

.release-row span {
  color: #96a4b7;
  font-size: 0.7rem;
}

.release-art {
  min-height: 560px;
  overflow: hidden;
}

.release-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.82);
}

.auth-page {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(430px, 1.1fr);
  color: #edf1f7;
  background: #080b11;
}

.auth-primary {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 52px;
}

.auth-form {
  width: min(100%, 520px);
}

.auth-form .page-code {
  color: var(--gold-bright);
}

.auth-heading {
  margin-top: 14px;
  color: #f0e7d4;
  font-size: 4rem;
}

.auth-subtitle {
  max-width: 50ch;
  margin-top: 18px;
  color: #aeb8c8;
  line-height: 1.72;
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #d8dfe9;
  font-size: 0.76rem;
  font-weight: 700;
}

.field-control {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  color: #fffaf0;
  background: #111722;
  border: 1px solid #3c4655;
  border-radius: 0;
}

.field-control::placeholder {
  color: #7f8998;
}

.field-control:hover {
  border-color: #7e7159;
}

.field-control:focus-visible {
  border-color: var(--gold);
  outline-color: var(--gold-bright);
}

.field-hint,
.agreement-note {
  color: #8f9bad;
  font-size: 0.68rem;
  line-height: 1.55;
}

.agreement-note {
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.form-status {
  display: none;
  min-height: 48px;
  align-items: center;
  padding: 12px 14px;
  color: #dce8fa;
  background: #17263d;
  border: 1px solid #45628f;
  font-size: 0.76rem;
}

.form-status.is-visible {
  display: flex;
}

.form-submit {
  width: 100%;
}

.auth-switch {
  margin-top: 20px;
  color: #929eaf;
  font-size: 0.76rem;
}

.auth-switch + .auth-switch {
  margin-top: 10px;
}

.auth-switch a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #e0c78d;
  text-underline-offset: 4px;
}

.auth-aside {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 11, 17, 0.62), rgba(8, 11, 17, 0.1)),
    url('../images/generated/hero-lineage-realm.webp') center / cover no-repeat;
  border-left: 1px solid var(--line-light);
}

.auth-aside::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(224, 199, 141, 0.22);
  pointer-events: none;
}

.auth-aside img {
  position: absolute;
  right: 2%;
  bottom: -3%;
  width: 68%;
  height: 92%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-18px 22px 26px rgba(0, 0, 0, 0.58));
}

.auth-art-copy {
  position: absolute;
  top: 54px;
  left: 52px;
  z-index: 2;
  width: min(42%, 320px);
  display: grid;
  gap: 12px;
}

.auth-art-copy strong {
  color: #f0e7d4;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
}

.auth-art-copy span {
  color: #b3bdcc;
  font-size: 0.78rem;
  line-height: 1.65;
}

.site-footer {
  color: #dce2eb;
  background: #07090d;
  border-top: 1px solid rgba(198, 165, 101, 0.28);
}

.footer-inner {
  width: min(100%, var(--content-max));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  margin: 0 auto;
  padding: 54px 56px 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 46px;
  height: 60px;
  object-fit: contain;
}

.footer-brand > div {
  display: grid;
  gap: 5px;
}

.footer-brand strong {
  color: #f0e7d4;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
}

.footer-brand span,
.footer-brand a {
  color: #9da8b8;
  font-size: 0.68rem;
}

.footer-copy {
  max-width: 68ch;
  margin-top: 18px;
  color: #7f8998;
  font-size: 0.68rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 0 28px;
  align-content: start;
}

.footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #aeb7c5;
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(56px, calc((100% - var(--content-max)) / 2 + 56px));
  color: #7d8795;
  font-size: 0.66rem;
  border-top: 1px solid rgba(198, 165, 101, 0.16);
}

.account-header {
  --header-height: 64px;
  height: 64px;
}

.account-header .brand {
  padding-left: 20px;
}

.account-header .brand img {
  width: 42px;
  height: 52px;
}

.account-header .header-account,
.account-header .header-register {
  min-height: 64px;
}

.account-app {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  padding-top: 64px;
  background: var(--pearl);
}

.account-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100svh - 64px);
  align-self: start;
  color: #dbe1ea;
  background: #0a0d13;
  border-right: 1px solid rgba(198, 165, 101, 0.2);
}

.account-profile {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  border-bottom: 1px solid var(--line-light);
}

.profile-mark {
  width: 48px;
  height: 64px;
  margin-bottom: 16px;
}

.profile-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-profile > strong {
  color: #f0e7d4;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
}

.account-profile > span {
  margin-top: 4px;
  color: #8894a6;
  font-size: 0.68rem;
}

.preview-badge {
  width: max-content;
  margin-top: 14px;
  padding: 5px 8px;
  color: #a9c7ee;
  border: 1px solid #426490;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-nav {
  display: grid;
}

.account-tab {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  color: #99a4b5;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  cursor: pointer;
}

.account-tab:hover,
.account-tab.is-active {
  color: #f2e9d7;
  background: #151b26;
}

.account-tab.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.account-tab svg {
  width: 19px;
  height: 19px;
}

.account-content {
  min-width: 0;
  padding: 42px clamp(28px, 5vw, 74px) 72px;
}

.account-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.account-topline-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-language {
  margin: 0;
  border-color: rgba(128, 97, 38, 0.42);
}

.account-topline .page-code,
.account-section-head > span {
  color: var(--gold-dark);
}

.account-heading {
  margin-top: 8px;
  font-size: 3.5rem;
}

.account-clock {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

html[lang='th'] .hero-copy,
html[lang='th'] .section-meta,
html[lang='th'] .dispatch-copy p,
html[lang='th'] .news-entry p,
html[lang='th'] .auth-subtitle,
html[lang='th'] .account-notice p,
html[lang='th'] .setting-item p {
  line-height: 1.72;
}

html[lang='ru'] .header-nav a,
html[lang='th'] .header-nav a {
  padding-inline: 14px;
}

.account-clock strong {
  display: block;
  margin-top: 5px;
  color: #202129;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
}

.account-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 17px 18px;
  color: #e7eef8;
  background: #294b7b;
}

.account-notice svg {
  width: 20px;
  height: 20px;
}

.account-notice p {
  font-size: 0.78rem;
}

.status-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #f3f7fc;
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-panel {
  display: none;
}

.account-panel.is-active {
  display: block;
}

.account-section {
  margin-top: 38px;
}

.account-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.account-section-head h2 {
  font-size: 1.9rem;
}

.account-section-head > span {
  font-size: 0.65rem;
}

.overview-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(150px, 0.75fr));
  border-bottom: 1px solid var(--line-dark);
}

.overview-lead,
.overview-stat {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-right: 1px solid var(--line-dark);
}

.overview-lead {
  color: #f0e7d4;
  background: var(--ink);
}

.overview-lead span,
.overview-stat span {
  margin-bottom: 8px;
  color: #778293;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.overview-lead strong,
.overview-stat strong {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
}

.overview-stat small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.62rem;
}

.data-list {
  border-bottom: 1px solid var(--line-dark);
}

.data-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) minmax(150px, 0.82fr) minmax(210px, 1.2fr) minmax(110px, auto);
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row strong {
  font-size: 0.8rem;
}

.data-row span {
  color: var(--muted);
  font-size: 0.72rem;
}

.data-row > :last-child {
  justify-self: end;
  color: #304f78;
  font-size: 0.66rem;
  font-weight: 700;
}

.data-row button,
.setting-item button {
  min-height: 42px;
  padding: 0 12px;
  color: #767c86;
  background: transparent;
  border: 1px solid #aeb1b3;
  cursor: not-allowed;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-dark);
}

.setting-item {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.setting-item:nth-child(2n) {
  border-right: 0;
}

.setting-item svg {
  width: 23px;
  height: 23px;
  color: var(--sapphire-dark);
}

.setting-item h3 {
  margin-top: 20px;
  color: #202129;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.setting-item p {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.setting-item button {
  margin-top: auto;
}

body.motion-enabled:not(.motion-entered) .home-hero::before {
  clip-path: inset(0);
  visibility: visible;
}

body.motion-enabled.motion-entered .home-hero::before {
  clip-path: inset(0 50% 0 50%);
  visibility: hidden;
  transition: clip-path 860ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 900ms;
}

body.motion-enabled:not(.motion-entered) .home-hero-bg {
  filter: saturate(0.72) contrast(1.02) brightness(0.55) blur(6px);
  transform: translate3d(var(--scene-x), var(--scene-y), 0) scale(1.11);
}

body.motion-enabled:not(.motion-entered) .home-hero-field {
  opacity: 0;
}

body.motion-enabled:not(.motion-entered) .home-hero::after {
  clip-path: inset(0 50% 0 50%);
}

body.motion-enabled:not(.motion-entered) .home-hero-duo {
  opacity: 0.01;
  clip-path: inset(0 0 18% 0);
  filter: blur(9px) drop-shadow(-8px 20px 24px rgba(0, 0, 0, 0.4));
  transform: translate3d(calc(var(--figure-x) + 72px), calc(var(--figure-y) + 24px), 0) scale(0.98);
}

body.motion-enabled:not(.motion-entered) .home-hero-copy > * {
  opacity: 0.01;
  filter: blur(5px);
  clip-path: inset(0 0 100% 0);
  transform: translateY(22px);
}

body.motion-enabled.motion-entered .home-hero-copy > * {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0);
  transform: translateY(0);
  transition: opacity 480ms ease-out, filter 620ms ease-out, clip-path 680ms cubic-bezier(0.16, 1, 0.3, 1), transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.motion-enabled.motion-entered .home-hero-copy > :nth-child(1) { transition-delay: 220ms; }
body.motion-enabled.motion-entered .home-hero-copy > :nth-child(2) { transition-delay: 300ms; }
body.motion-enabled.motion-entered .home-hero-copy > :nth-child(3) { transition-delay: 400ms; }
body.motion-enabled.motion-entered .home-hero-copy > :nth-child(4) { transition-delay: 490ms; }

body.motion-enabled:not(.motion-entered) .status-item {
  opacity: 0.01;
  transform: translateY(100%);
}

body.motion-enabled.motion-entered .status-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease-out, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.motion-enabled.motion-entered .status-item:nth-child(1) { transition-delay: 560ms; }
body.motion-enabled.motion-entered .status-item:nth-child(2) { transition-delay: 630ms; }
body.motion-enabled.motion-entered .status-item:nth-child(3) { transition-delay: 700ms; }

body.motion-enabled [data-motion='portal'] .section-head > *,
body.motion-enabled [data-motion='portal'] .portal-row,
body.motion-enabled [data-motion='news'] .news-entry {
  opacity: 0.01;
  filter: blur(4px);
  clip-path: inset(0 100% 0 0);
  transform: translateX(-18px);
}

body.motion-enabled [data-motion='portal'].is-motion-visible .section-head > *,
body.motion-enabled [data-motion='portal'].is-motion-visible .portal-row,
body.motion-enabled [data-motion='news'].is-motion-visible .news-entry {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0);
  transform: translateX(0);
  transition: opacity 420ms ease-out, filter 580ms ease-out, clip-path 720ms cubic-bezier(0.16, 1, 0.3, 1), transform 640ms cubic-bezier(0.16, 1, 0.3, 1), background 140ms ease-out;
  transition-delay: calc(var(--motion-index, 0) * 70ms);
}

body.motion-enabled [data-motion='chronicle'] .dispatch-image,
body.motion-enabled [data-motion='release'] .release-route-art {
  clip-path: inset(0 100% 0 0);
  filter: blur(7px);
}

body.motion-enabled [data-motion='chronicle'] .dispatch-copy,
body.motion-enabled [data-motion='release'] .release-route-copy {
  opacity: 0.01;
  clip-path: inset(0 0 0 100%);
  transform: translateX(36px);
}

body.motion-enabled [data-motion='chronicle'].is-motion-visible .dispatch-image,
body.motion-enabled [data-motion='release'].is-motion-visible .release-route-art {
  clip-path: inset(0);
  filter: blur(0);
  transition: clip-path 820ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease-out;
}

body.motion-enabled [data-motion='chronicle'].is-motion-visible .dispatch-copy,
body.motion-enabled [data-motion='release'].is-motion-visible .release-route-copy {
  opacity: 1;
  clip-path: inset(0);
  transform: translateX(0);
  transition: opacity 440ms ease-out 160ms, clip-path 760ms cubic-bezier(0.16, 1, 0.3, 1) 120ms, transform 720ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

body.motion-enabled [data-motion='intro'] > * {
  opacity: 0.01;
  filter: blur(5px);
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
}

body.motion-enabled [data-motion='intro'].is-motion-visible > * {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0);
  transform: translateY(0);
  transition: opacity 420ms ease-out, filter 560ms ease-out, clip-path 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 660ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.motion-enabled [data-motion='intro'].is-motion-visible > :nth-child(2) { transition-delay: 70ms; }
body.motion-enabled [data-motion='intro'].is-motion-visible > :nth-child(3) { transition-delay: 140ms; }

body.motion-enabled:not(.motion-entered) .download-stage > :first-child,
body.motion-enabled:not(.motion-entered) .auth-page > :first-child {
  opacity: 0.01;
  filter: blur(7px);
  clip-path: inset(0 100% 0 0);
}

body.motion-enabled:not(.motion-entered) .download-stage > :last-child,
body.motion-enabled:not(.motion-entered) .auth-page > :last-child {
  opacity: 0.01;
  filter: blur(7px);
  clip-path: inset(0 0 0 100%);
}

body.motion-enabled.motion-entered .download-stage > *,
body.motion-enabled.motion-entered .auth-page > * {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0);
  transition: opacity 420ms ease-out, filter 620ms ease-out, clip-path 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.motion-enabled.motion-entered .download-stage > :last-child,
body.motion-enabled.motion-entered .auth-page > :last-child {
  transition-delay: 110ms;
}

.dispatch-lead:hover .dispatch-image img {
  transform: scale(1.045);
}

.release-route-art img,
.news-thumb img {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease-out;
}

.release-route:hover .release-route-art img,
.news-entry:hover .news-thumb img {
  filter: saturate(0.92) contrast(1.06) brightness(0.92);
  transform: scale(1.035);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 180ms ease-in both;
}

::view-transition-new(root) {
  animation: page-in 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes page-out {
  to {
    opacity: 0.3;
    filter: blur(5px);
    transform: scale(0.995);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    filter: blur(8px);
    clip-path: inset(0 0 7% 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(250px, 1fr) auto;
  }

  .header-nav,
  .site-header .header-account {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .home-hero-duo {
    right: -7%;
    width: 59%;
  }

  .home-hero-copy {
    left: 5%;
    width: 54%;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  .section-wrap {
    padding-right: 46px;
    padding-left: 46px;
  }

  .portal-row,
  .ledger-row {
    grid-template-columns: 82px minmax(190px, 0.8fr) minmax(220px, 1fr) 28px;
    gap: 18px;
  }

  .dispatch-lead,
  .release-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .dispatch-image,
  .release-route-art {
    min-height: 420px;
  }

  .dispatch-copy,
  .release-route-copy {
    min-height: 330px;
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .release-route-copy h2 {
    max-width: 16ch;
  }

  .news-entry {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px 30px;
  }

  .news-entry > p {
    grid-column: 2;
  }

  .download-stage {
    grid-template-columns: minmax(430px, 1fr) minmax(360px, 0.85fr);
  }

  .release-summary {
    padding: 62px 46px;
  }

  .release-summary h1 {
    font-size: 3.45rem;
  }

  .auth-page {
    grid-template-columns: minmax(460px, 1fr) minmax(340px, 0.78fr);
  }

  .auth-primary {
    padding: 58px 44px;
  }

  .auth-art-copy {
    left: 34px;
    width: 52%;
  }

  .account-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-sidebar {
    position: sticky;
    top: 64px;
    z-index: 30;
    height: auto;
    display: block;
    border-right: 0;
    border-bottom: 1px solid rgba(198, 165, 101, 0.22);
  }

  .account-profile {
    display: none;
  }

  .account-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-tab {
    justify-content: center;
    padding: 0 14px;
    border-right: 1px solid var(--line-light);
    border-bottom: 0;
  }

  .account-tab.is-active {
    box-shadow: inset 0 -3px 0 var(--gold);
  }

  .overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .site-header,
  .account-header {
    height: 64px;
  }

  .brand {
    gap: 10px;
    padding: 5px 14px;
  }

  .brand img {
    width: 40px;
    height: 52px;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-copy small {
    font-size: 0.5rem;
  }

  .menu-toggle {
    width: 64px;
    min-height: 64px;
  }

  .header-language {
    display: none;
  }

  .home-hero {
    height: 680px;
    min-height: 680px;
  }

  .home-hero-bg {
    object-position: 64% center;
  }

  .home-hero-field {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.62) 48%, rgba(5, 7, 11, 0.2) 72%, rgba(5, 7, 11, 0.78) 100%),
      linear-gradient(90deg, rgba(5, 7, 11, 0.75), transparent 76%);
  }

  .home-hero::after {
    inset: 14px 12px 96px;
  }

  .home-hero-copy {
    top: 38px;
    left: 20px;
    width: calc(100% - 40px);
    transform: none;
  }

  .hero-kicker {
    margin-bottom: 12px;
  }

  .hero-title {
    max-width: 7ch;
    font-size: 3.45rem;
    line-height: 0.9;
  }

  .hero-copy {
    max-width: 32ch;
    margin-top: 15px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 15px;
    margin-top: 18px;
  }

  .primary-action,
  .form-submit,
  .disabled-action {
    min-height: 46px;
    padding: 0 15px;
    font-size: 0.65rem;
  }

  .secondary-action,
  .text-link {
    min-height: 46px;
    font-size: 0.68rem;
  }

  .home-hero-duo {
    right: -3%;
    bottom: 74px;
    width: 78%;
    height: 56%;
  }

  .realm-status {
    height: 74px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  .status-item {
    flex-direction: column;
    gap: 4px;
    padding: 0 7px;
    text-align: center;
  }

  .status-item span {
    font-size: 0.48rem;
  }

  .status-item strong {
    font-size: 0.55rem;
  }

  .section-wrap {
    padding: 62px 20px;
  }

  .section-head,
  .editorial-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-head h2 {
    font-size: 2.6rem;
  }

  .portal-index {
    padding-top: 56px;
    padding-bottom: 42px;
  }

  .portal-row,
  .ledger-row {
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 8px 14px;
    min-height: 116px;
    padding: 18px 0;
  }

  .portal-row small,
  .ledger-row small,
  .portal-row strong,
  .ledger-row strong,
  .portal-row span,
  .ledger-row span {
    grid-column: 1;
  }

  .portal-row svg,
  .ledger-row svg {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .chronicle-feature {
    padding-top: 8px;
    padding-bottom: 68px;
  }

  .dispatch-image,
  .release-route-art {
    min-height: 280px;
  }

  .dispatch-copy,
  .release-route-copy {
    min-height: 0;
    padding: 34px 22px 40px;
  }

  .dispatch-copy h2 {
    font-size: 2rem;
  }

  .dispatch-label {
    font-size: 0.56rem;
  }

  .release-route-copy h2 {
    font-size: 2.65rem;
  }

  .editorial-intro {
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .editorial-intro .page-code {
    grid-column: auto;
  }

  .editorial-intro h1 {
    font-size: 3.3rem;
  }

  .news-archive {
    padding-top: 36px;
    padding-bottom: 72px;
  }

  .news-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0 28px;
  }

  .news-entry > p {
    grid-column: auto;
  }

  .news-thumb {
    height: 190px;
  }

  .news-entry h3 {
    font-size: 1.55rem;
  }

  .download-stage {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .release-summary {
    padding: 54px 22px 58px;
    border-right: 0;
  }

  .release-emblem {
    width: 54px;
    height: 72px;
  }

  .release-summary h1 {
    font-size: 3rem;
  }

  .release-art {
    min-height: 260px;
    order: 2;
    border-top: 1px solid var(--line-light);
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-primary {
    padding: 52px 20px 60px;
  }

  .auth-heading {
    font-size: 3.15rem;
  }

  .form-grid.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .field.full {
    grid-column: auto;
  }

  .auth-aside {
    min-height: 280px;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .auth-aside::after {
    inset: 12px;
  }

  .auth-aside img {
    right: -3%;
    width: 54%;
    height: 96%;
  }

  .auth-art-copy {
    top: 36px;
    left: 26px;
    width: 46%;
  }

  .auth-art-copy strong {
    font-size: 1.55rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 42px 20px 32px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
  }

  .account-header {
    grid-template-columns: minmax(190px, 1fr) auto;
  }

  .account-header .brand-copy small,
  .account-header .header-account {
    display: none;
  }

  .account-header .header-register {
    min-height: 64px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .account-sidebar {
    top: 64px;
  }

  .account-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-tab {
    min-height: 52px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--line-light);
  }

  .account-content {
    padding: 30px 20px 56px;
  }

  .account-topline {
    align-items: flex-start;
  }

  .account-topline-tools {
    align-items: flex-end;
  }

  .account-clock {
    display: none;
  }

  .account-heading {
    font-size: 2.65rem;
  }

  .account-notice {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .account-notice .status-chip {
    grid-column: 2;
    justify-self: start;
  }

  .account-section {
    margin-top: 32px;
  }

  .account-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .account-section-head h2 {
    font-size: 1.65rem;
  }

  .overview-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-lead {
    grid-column: auto;
  }

  .overview-lead,
  .overview-stat {
    min-height: 98px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .data-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 16px;
    padding: 15px 0;
  }

  .data-row strong,
  .data-row span {
    grid-column: 1;
  }

  .data-row > :last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .setting-item,
  .setting-item:nth-child(2n) {
    min-height: 220px;
    border-right: 0;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 3.15rem;
  }

  .hero-actions {
    gap: 12px;
  }

  .home-hero-duo {
    width: 84%;
  }

  .release-summary h1,
  .editorial-intro h1 {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Dark Elmoreden Citadel visual world */
:root {
  --ink: #05070b;
  --ink-soft: #0a0f16;
  --ink-raised: #101722;
  --pearl: #070a0f;
  --paper: #0d121a;
  --paper-bright: #151c27;
  --gold: #b99452;
  --gold-bright: #e5ca8a;
  --gold-dark: #9b7535;
  --sapphire: #6f94cc;
  --sapphire-dark: #496b9c;
  --silver: #d5dbe5;
  --steel: #98a4b6;
  --muted: #929daf;
  --line-dark: rgba(199, 163, 94, 0.2);
  --line-light: rgba(222, 192, 131, 0.2);
}

html {
  color-scheme: dark;
  background: #05070b;
}

body {
  color: #d4dae4;
  background:
    linear-gradient(180deg, #080c12 0%, #05070b 44%, #090d13 100%);
}

.page-shell {
  position: relative;
  background:
    linear-gradient(90deg, rgba(207, 173, 106, 0.025) 1px, transparent 1px) center / 112px 100%,
    linear-gradient(180deg, #080c12, #05070b 54%, #090d13);
}

.site-header,
.account-header {
  background:
    linear-gradient(180deg, rgba(13, 18, 27, 0.99), rgba(5, 8, 13, 0.99));
  border-bottom-color: rgba(218, 180, 106, 0.42);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 231, 179, 0.05);
}

.site-header::after,
.account-header::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: -3px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 188, 111, 0.62) 18%, rgba(226, 188, 111, 0.2) 50%, rgba(226, 188, 111, 0.62) 82%, transparent);
  pointer-events: none;
}

.header-nav a:hover,
.header-nav a.is-active,
.mobile-nav a.is-active,
.mobile-nav a[aria-current='page'] {
  background: linear-gradient(180deg, rgba(190, 148, 74, 0.04), rgba(190, 148, 74, 0.14));
}

.header-register,
.primary-action,
.form-submit {
  color: #161107;
  background: linear-gradient(180deg, #e7ca86, #ad8039);
  border-color: #e0bd72;
  box-shadow: inset 0 1px 0 rgba(255, 247, 218, 0.34), 0 10px 28px rgba(0, 0, 0, 0.26);
}

.header-register:hover,
.primary-action:hover,
.form-submit:hover {
  background: linear-gradient(180deg, #f3dda5, #c09349);
  border-color: #f0d491;
}

.home-hero {
  height: clamp(680px, calc(100svh - 126px), 860px);
  min-height: 680px;
  border-bottom: 1px solid rgba(212, 173, 98, 0.4);
}

.home-hero-bg {
  filter: saturate(0.88) contrast(1.12) brightness(0.75);
}

.home-hero-field {
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.97) 0%, rgba(4, 7, 12, 0.78) 32%, rgba(5, 8, 13, 0.16) 68%, rgba(5, 8, 13, 0.1) 100%),
    linear-gradient(0deg, rgba(3, 5, 8, 0.96) 0%, rgba(3, 5, 8, 0.04) 52%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.32), transparent 24%);
}

.home-hero::after {
  border-color: rgba(231, 196, 126, 0.36);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.12);
}

.hero-kicker,
.page-code,
.dispatch-label,
.news-entry small {
  color: var(--gold-bright);
}

.hero-title {
  color: #f5ead3;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
}

.hero-title span:last-child {
  color: #d8b86f;
}

.realm-status {
  height: 68px;
  background:
    linear-gradient(180deg, rgba(12, 17, 25, 0.94), rgba(4, 7, 11, 0.99));
  border-top-color: rgba(218, 180, 106, 0.45);
  backdrop-filter: blur(12px);
}

.section-wrap {
  width: min(100%, 1360px);
  padding: 104px 64px;
}

.section-head {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom-color: rgba(213, 174, 99, 0.28);
}

.section-head h2,
.editorial-intro h1,
.release-summary h1,
.auth-heading,
.account-heading,
.account-section-head h2 {
  color: #f1e5cf;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.4);
}

.section-head h2 {
  font-size: clamp(2.8rem, 4.6vw, 4.7rem);
}

.section-meta {
  color: #9da8b9;
}

.portal-index {
  padding-top: 96px;
  padding-bottom: 116px;
}

.compact-head {
  margin-bottom: 34px;
}

.portal-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.portal-row,
.ledger-row {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  padding: 30px 30px 32px;
  color: #f1e8d8;
  background: #0a0e15;
  border: 1px solid rgba(211, 172, 96, 0.46);
  box-shadow: inset 0 0 0 5px rgba(5, 8, 13, 0.68), 0 20px 44px rgba(0, 0, 0, 0.24);
  transition: border-color 220ms ease-out, transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease-out;
}

.portal-row::before,
.ledger-row::before,
.portal-row::after,
.ledger-row::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.portal-row::before,
.ledger-row::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.72) contrast(1.12) brightness(0.78);
  transform: scale(1.02);
  transition: filter 520ms ease-out, transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-row:nth-child(1)::before {
  background-image: url('../images/generated/portal-news.webp');
  background-position: center;
}

.portal-row:nth-child(2)::before {
  background-image: url('../images/generated/portal-client.webp');
  background-position: center;
}

.portal-row:nth-child(3)::before {
  background-image: url('../images/generated/portal-account.webp');
  background-position: center;
}

.portal-row::after,
.ledger-row::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 7, 11, 0.04) 8%, rgba(4, 7, 11, 0.5) 55%, rgba(3, 5, 8, 0.97) 100%),
    linear-gradient(90deg, rgba(4, 7, 11, 0.52), transparent 70%);
}

.portal-row:hover,
.ledger-row:hover {
  color: #fff6e5;
  background: #0a0e15;
  border-color: rgba(240, 204, 132, 0.92);
  box-shadow: inset 0 0 0 5px rgba(5, 8, 13, 0.62), 0 26px 56px rgba(0, 0, 0, 0.42), 0 0 30px rgba(190, 145, 66, 0.12);
  transform: translateY(-6px);
}

.portal-row:hover::before,
.ledger-row:hover::before {
  filter: saturate(0.96) contrast(1.08) brightness(0.92);
  transform: scale(1.075);
}

.portal-row > *,
.ledger-row > * {
  position: relative;
  z-index: 1;
}

.portal-row small,
.ledger-row small {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e4c77e;
  font-size: 0.65rem;
}

.portal-row small::before,
.ledger-row small::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: currentColor;
  transform: rotate(45deg);
}

.portal-row strong,
.ledger-row strong {
  max-width: 15ch;
  color: #fff3dd;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  line-height: 1.04;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.84);
}

.portal-row span,
.ledger-row span {
  max-width: 34ch;
  color: #b8c1ce;
  font-size: 0.78rem;
  line-height: 1.62;
}

.portal-row svg,
.ledger-row svg {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  padding: 8px;
  color: #e3c477;
  border: 1px solid rgba(225, 193, 122, 0.46);
}

.portal-row:hover svg,
.ledger-row:hover svg {
  color: #fff0c8;
  transform: translateX(4px);
}

.chronicle-feature {
  width: min(100%, 1480px);
  padding-top: 10px;
  padding-bottom: 126px;
}

.dispatch-lead {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template: 1fr / 1fr;
  overflow: hidden;
  color: #eef1f6;
  background: #070b10;
  border: 1px solid rgba(214, 174, 98, 0.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.dispatch-lead::after {
  content: '';
  position: absolute;
  inset: 16px;
  z-index: 3;
  border: 1px solid rgba(226, 193, 124, 0.2);
  pointer-events: none;
}

.dispatch-image {
  min-height: 680px;
  grid-area: 1 / 1;
}

.dispatch-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 10, 0.04) 30%, rgba(4, 6, 10, 0.72) 63%, rgba(4, 6, 10, 0.98) 100%),
    linear-gradient(0deg, rgba(4, 6, 10, 0.72), transparent 44%);
  pointer-events: none;
}

.dispatch-image img {
  filter: saturate(0.82) contrast(1.1) brightness(0.82);
}

.dispatch-copy {
  z-index: 2;
  width: min(48%, 580px);
  min-height: 680px;
  grid-area: 1 / 1;
  justify-self: end;
  padding: 86px 64px 66px;
  background: linear-gradient(90deg, transparent, rgba(5, 8, 13, 0.62) 18%, rgba(5, 8, 13, 0.86));
  border-left: 1px solid rgba(216, 176, 99, 0.2);
}

.dispatch-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 4.2vw, 4.5rem);
  line-height: 0.98;
}

.dispatch-copy p:not(.dispatch-label) {
  color: #b2bccb;
  line-height: 1.72;
}

.release-route {
  position: relative;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
  background: #05080d;
  border-top: 1px solid rgba(211, 170, 92, 0.42);
  border-bottom: 1px solid rgba(211, 170, 92, 0.32);
}

.release-route::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(226, 193, 124, 0.16);
  pointer-events: none;
}

.release-route-art {
  min-height: 620px;
}

.release-route-art img {
  filter: saturate(0.82) contrast(1.1) brightness(0.72);
}

.release-route-copy {
  position: relative;
  z-index: 2;
  padding: 78px clamp(48px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(10, 14, 21, 0.99));
  border-left-color: rgba(211, 170, 92, 0.28);
}

.release-route-copy h2 {
  font-size: clamp(3rem, 4.4vw, 5rem);
}

.release-route-copy > p:not(.page-code) {
  color: #adb7c6;
  line-height: 1.72;
}

.editorial-intro {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 430px;
  align-content: end;
  gap: 28px 72px;
  overflow: hidden;
  padding: 112px max(56px, calc((100% - 1248px) / 2)) 72px;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.97) 0%, rgba(4, 7, 11, 0.76) 46%, rgba(4, 7, 11, 0.3) 100%),
    linear-gradient(0deg, rgba(4, 7, 11, 0.96), transparent 72%),
    url('../images/generated/news-banner.webp') center 42% / cover no-repeat;
  border-bottom-color: rgba(213, 174, 99, 0.4);
}

.editorial-intro::after {
  content: '';
  position: absolute;
  inset: 24px max(24px, calc((100% - 1400px) / 2));
  border: 1px solid rgba(226, 193, 124, 0.2);
  pointer-events: none;
}

.editorial-intro h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 6vw, 6.3rem);
}

.editorial-intro > p:last-child {
  color: #b8c1ce;
}

.news-archive {
  padding-top: 88px;
  padding-bottom: 124px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.news-entry {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 0 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #111722, #090d13);
  border: 1px solid rgba(210, 170, 95, 0.32);
  box-shadow: inset 0 0 0 5px rgba(5, 8, 12, 0.38), 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: border-color 220ms ease-out, transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease-out;
}

.news-entry:hover {
  border-color: rgba(231, 195, 124, 0.72);
  box-shadow: inset 0 0 0 5px rgba(5, 8, 12, 0.38), 0 26px 54px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.news-thumb {
  width: 100%;
  height: 265px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(210, 170, 95, 0.3);
}

.news-thumb img {
  filter: saturate(0.76) contrast(1.1) brightness(0.82);
}

.news-entry:nth-child(2) .news-thumb img {
  object-position: center 19%;
}

.news-entry-head {
  gap: 12px;
  padding: 26px 26px 0;
}

.news-entry h3 {
  color: #f1e5cf;
  font-size: 1.7rem;
}

.news-entry > p {
  padding: 18px 26px 0;
  color: #9faaba;
  line-height: 1.7;
}

.download-status,
.auth-page {
  background:
    linear-gradient(90deg, rgba(205, 165, 88, 0.02) 1px, transparent 1px) center / 112px 100%,
    #05080d;
}

.download-stage {
  width: min(100%, 1480px);
  grid-template-columns: minmax(500px, 0.86fr) minmax(520px, 1.14fr);
  border-right: 1px solid rgba(210, 170, 95, 0.22);
  border-left: 1px solid rgba(210, 170, 95, 0.22);
}

.release-summary {
  position: relative;
  z-index: 2;
  padding: 82px clamp(48px, 6vw, 86px);
  background:
    linear-gradient(145deg, rgba(16, 22, 32, 0.98), rgba(5, 8, 13, 0.99));
  border-right-color: rgba(210, 170, 95, 0.3);
}

.release-summary::after {
  content: '';
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid rgba(226, 193, 124, 0.14);
  pointer-events: none;
}

.release-summary h1 {
  font-size: clamp(3.4rem, 5.4vw, 5.7rem);
}

.release-ledger {
  border-top-color: rgba(210, 170, 95, 0.28);
}

.release-row {
  border-bottom-color: rgba(210, 170, 95, 0.2);
}

.release-art {
  position: relative;
  min-height: 690px;
}

.release-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 13, 0.42), transparent 42%), linear-gradient(0deg, rgba(5, 8, 13, 0.38), transparent 48%);
  pointer-events: none;
}

.release-art img {
  filter: saturate(0.82) contrast(1.08) brightness(0.78);
}

.auth-page {
  grid-template-columns: minmax(500px, 0.82fr) minmax(520px, 1.18fr);
}

.auth-primary {
  position: relative;
  background: linear-gradient(145deg, #0e141e, #05080d 76%);
  border-right: 1px solid rgba(210, 170, 95, 0.28);
}

.auth-primary::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(226, 193, 124, 0.14);
  pointer-events: none;
}

.auth-form {
  position: relative;
  z-index: 1;
}

.auth-heading {
  font-size: clamp(3.5rem, 5vw, 5.4rem);
}

.field-control {
  color: #f7edda;
  background: rgba(4, 7, 11, 0.76);
  border-color: rgba(187, 159, 109, 0.42);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.36);
}

.field-control:hover {
  border-color: rgba(224, 193, 127, 0.72);
}

.auth-aside {
  background: #05080d;
  border-left: 0;
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.75), rgba(5, 8, 13, 0.08) 72%),
    linear-gradient(0deg, rgba(5, 8, 13, 0.78), transparent 58%);
  pointer-events: none;
}

.auth-aside::after {
  inset: 24px;
  z-index: 3;
  border-color: rgba(226, 193, 124, 0.24);
}

.auth-aside img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
}

.site-footer {
  background:
    linear-gradient(180deg, #090d13, #030508);
  border-top-color: rgba(210, 170, 95, 0.42);
}

.account-app {
  color: #d2d9e4;
  background:
    linear-gradient(90deg, rgba(205, 165, 88, 0.024) 1px, transparent 1px) center / 112px 100%,
    linear-gradient(145deg, #0c1119, #05080d 70%);
}

.account-sidebar {
  background: linear-gradient(180deg, #0d131d, #05080d);
  border-right-color: rgba(210, 170, 95, 0.3);
}

.account-profile,
.account-tab {
  border-color: rgba(210, 170, 95, 0.18);
}

.account-tab:hover,
.account-tab.is-active {
  background: linear-gradient(90deg, rgba(188, 145, 67, 0.18), rgba(188, 145, 67, 0.03));
}

.account-content {
  padding-top: 54px;
}

.account-topline,
.account-section-head,
.overview-strip,
.data-list,
.data-row,
.settings-grid,
.setting-item,
.overview-lead,
.overview-stat {
  border-color: rgba(210, 170, 95, 0.2);
}

.account-topline .page-code,
.account-section-head > span {
  color: #caa55d;
}

.account-clock,
.overview-stat small,
.data-row span,
.setting-item p {
  color: #909bad;
}

.account-clock strong,
.setting-item h3 {
  color: #e9dcc4;
}

.account-notice {
  color: #dbe7f7;
  background: linear-gradient(90deg, rgba(42, 65, 95, 0.34), rgba(8, 13, 20, 0.82));
  border: 1px solid rgba(105, 145, 196, 0.44);
  box-shadow: inset 3px 0 0 #6f94cc;
}

.overview-strip {
  background: rgba(11, 16, 24, 0.68);
  border-top: 1px solid rgba(210, 170, 95, 0.2);
}

.overview-lead {
  color: #f2e5cc;
  background:
    linear-gradient(145deg, rgba(164, 119, 49, 0.2), transparent 62%),
    #080c12;
}

.overview-stat {
  background: rgba(13, 19, 28, 0.82);
}

.overview-lead strong,
.overview-stat strong,
.data-row strong {
  color: #ebe1cf;
}

.data-row {
  padding-inline: 16px;
  background: rgba(10, 15, 22, 0.54);
}

.data-row:nth-child(even) {
  background: rgba(15, 21, 31, 0.66);
}

.data-row > :last-child {
  color: #91b3e0;
}

.data-row button,
.setting-item button {
  color: #8f99a8;
  border-color: rgba(162, 146, 116, 0.42);
}

.setting-item {
  background: rgba(10, 15, 22, 0.68);
}

.setting-item svg {
  color: #d0aa60;
}

@media (max-width: 1080px) {
  .section-wrap {
    padding-right: 44px;
    padding-left: 44px;
  }

  .portal-ledger,
  .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-row,
  .ledger-row {
    min-height: 390px;
  }

  .portal-row:last-child,
  .news-entry:last-child {
    grid-column: 1 / -1;
  }

  .portal-row:last-child {
    min-height: 360px;
  }

  .portal-row:nth-child(3)::before {
    background-position: center;
  }

  .dispatch-lead,
  .dispatch-image,
  .dispatch-copy {
    min-height: 610px;
  }

  .dispatch-copy {
    width: 54%;
    padding: 68px 44px 56px;
    border-top: 0;
  }

  .release-route {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  }

  .download-stage,
  .auth-page {
    grid-template-columns: minmax(440px, 1fr) minmax(360px, 0.82fr);
  }
}

@media (max-width: 760px) {
  .page-shell {
    background: linear-gradient(180deg, #080c12, #05070b 54%, #090d13);
  }

  .home-hero {
    height: 720px;
    min-height: 720px;
  }

  .section-wrap {
    padding: 70px 20px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 17px;
  }

  .section-head h2 {
    font-size: 2.7rem;
  }

  .portal-index {
    padding-top: 42px;
    padding-bottom: 88px;
  }

  body.motion-enabled [data-motion='portal'] .section-head > * {
    opacity: 1;
    filter: none;
    clip-path: inset(0);
    transform: none;
  }

  .language-switcher {
    height: 44px;
    grid-template-columns: repeat(3, minmax(44px, auto));
  }

  .language-switcher button {
    min-width: 44px;
    min-height: 42px;
  }

  .home-hero-copy {
    z-index: 1;
  }

  .home-hero-duo {
    right: -4%;
    bottom: 72px;
    width: 73%;
    height: 42%;
  }

  .portal-ledger,
  .archive-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .portal-row,
  .ledger-row,
  .portal-row:last-child {
    min-height: 350px;
    display: flex;
    gap: 9px;
    padding: 25px 24px 27px;
  }

  .portal-row small,
  .ledger-row small,
  .portal-row strong,
  .ledger-row strong,
  .portal-row span,
  .ledger-row span {
    grid-column: auto;
  }

  .portal-row strong,
  .ledger-row strong {
    font-size: 1.7rem;
  }

  .portal-row svg,
  .ledger-row svg {
    position: absolute;
    top: 18px;
    right: 18px;
    grid-column: auto;
    grid-row: auto;
  }

  .portal-row:nth-child(3)::before {
    background-position: center;
  }

  .chronicle-feature {
    padding: 0 14px 86px;
  }

  .dispatch-lead,
  .dispatch-image {
    min-height: 590px;
  }

  .dispatch-image img {
    object-position: 42% center;
  }

  .dispatch-image::after {
    background: linear-gradient(0deg, rgba(4, 6, 10, 0.98) 0%, rgba(4, 6, 10, 0.7) 48%, rgba(4, 6, 10, 0.06) 82%);
  }

  .dispatch-copy {
    width: 100%;
    min-height: 0;
    align-self: end;
    padding: 230px 30px 38px;
    background: transparent;
    border: 0;
  }

  .dispatch-copy h2 {
    max-width: 12ch;
    font-size: 2.45rem;
  }

  .dispatch-label {
    gap: 10px;
  }

  .release-route {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .release-route-art {
    min-height: 340px;
  }

  .release-route-copy {
    min-height: 410px;
    padding: 52px 28px 62px;
    border-top-color: rgba(210, 170, 95, 0.28);
  }

  .release-route-copy h2 {
    font-size: 3rem;
  }

  .editorial-intro {
    grid-template-columns: minmax(0, 1fr);
    min-height: 390px;
    gap: 17px;
    padding: 96px 20px 54px;
    background-position: center, center, 58% center;
  }

  .editorial-intro::after {
    inset: 14px 12px;
  }

  .editorial-intro h1 {
    font-size: 3.4rem;
  }

  .news-archive {
    padding-top: 64px;
    padding-bottom: 86px;
  }

  .news-entry,
  .news-entry:last-child {
    min-height: 0;
    grid-column: auto;
    padding: 0 0 28px;
  }

  .news-thumb {
    height: 225px;
  }

  .download-stage,
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
    border: 0;
  }

  .release-summary {
    padding: 64px 28px 72px;
  }

  .release-summary::after,
  .auth-primary::after {
    inset: 14px;
  }

  .release-summary h1 {
    font-size: 3.45rem;
  }

  .release-art {
    min-height: 310px;
  }

  .auth-primary {
    padding: 64px 24px 70px;
    border-right: 0;
  }

  .auth-heading {
    font-size: 3.5rem;
  }

  .auth-aside {
    min-height: 360px;
  }

  .account-content {
    padding: 36px 18px 60px;
  }

  .account-topline,
  .account-section-head {
    border-bottom-color: rgba(210, 170, 95, 0.24);
  }

  .account-heading {
    font-size: 2.8rem;
  }

  .overview-strip {
    border-top-color: rgba(210, 170, 95, 0.24);
  }

  .data-row {
    padding: 16px 14px;
  }
}

@media (max-width: 420px) {
  .home-hero {
    height: 700px;
    min-height: 700px;
  }

  .hero-title {
    font-size: 3.35rem;
  }

  .portal-row,
  .ledger-row,
  .portal-row:last-child {
    min-height: 330px;
  }

  .editorial-intro h1,
  .release-summary h1,
  .auth-heading {
    font-size: 3rem;
  }
}
