:root {
  color-scheme: dark;
  --bg: #03070e;
  --ink: #f7efe2;
  --muted: #bdb3a8;
  --soft: rgba(247, 239, 226, 0.72);
  --teal: #42e8ff;
  --teal-soft: rgba(66, 232, 255, 0.32);
  --gold: #c99755;
  --gold-strong: #f4d28a;
  --stone: rgba(6, 10, 17, 0.76);
  --stone-solid: #080d14;
  --line: rgba(201, 151, 85, 0.58);
  --line-soft: rgba(201, 151, 85, 0.22);
  --danger: #ff5d6c;
  --good: #35f29b;
  --content-width: 1780px;
  font-family: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
}

.form-message--error {
  border-color: rgba(255, 101, 101, 0.58);
  background: rgba(110, 18, 25, 0.56);
  color: #ffd0d0;
}

.warn {
  color: #ffe08a !important;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.portal-page {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.bg-layer,
.shade-layer,
.character-layer,
.character-ear-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-layer {
  z-index: -5;
  background:
    linear-gradient(90deg, rgba(1, 4, 10, 0.62) 0 20%, rgba(1, 4, 10, 0.08) 42%, rgba(1, 4, 10, 0.52) 76% 100%),
    url("/static/assets/background.png") center / cover no-repeat;
  transform: scale(1.012);
}

.shade-layer {
  z-index: -3;
  background:
    radial-gradient(circle at 47% 32%, rgba(66, 232, 255, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.48) 86%);
}

.character-layer {
  z-index: -2;
  width: min(42vw, 720px);
  height: auto;
  inset: auto auto -1vh 23vw;
  filter: drop-shadow(0 0 22px rgba(57, 203, 255, 0.24));
}

.character-ear-layer {
  z-index: 28;
  width: min(42vw, 720px);
  height: auto;
  inset: auto auto -1vh 23vw;
  clip-path: inset(0 0 calc(100% - 190px) 0);
  filter: drop-shadow(0 0 18px rgba(66, 232, 255, 0.28));
}

.ui-layer {
  position: relative;
  width: min(100%, var(--content-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px clamp(18px, 2.3vw, 42px) 28px;
}

.portal-page::before {
  content: "";
  position: fixed;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(71, 223, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(201, 151, 85, 0.08),
    0 0 34px rgba(15, 160, 210, 0.16);
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 280px minmax(480px, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
  min-height: 76px;
  padding: 6px 20px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: -3px 250px auto 268px;
  height: 82px;
  z-index: -1;
  background: url("/static/assets/toa_ui_bar_transparent.png") center / 100% 100% no-repeat;
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  min-height: 176px;
}

.brand__logo {
  width: auto;
  max-width: 224px;
  max-height: 176px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.42));
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 64px);
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 2px;
  color: rgba(247, 239, 226, 0.86);
  font-size: clamp(0.82rem, 0.76vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 72px;
  height: 2px;
  transform: translateX(-50%) scaleX(0.18);
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold-strong), transparent);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-link:hover::after,
.nav-link--active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link--active {
  color: #fff;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 280px;
}

.status-pill,
.top-button,
.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 8, 15, 0.72);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(0, 0, 0, 0.22);
}

.status-pill {
  gap: 10px;
  padding: 0 18px;
  color: #f8efe2;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 14px rgba(53, 242, 155, 0.88);
}

.top-button {
  min-width: 112px;
  padding: 0 18px;
  color: #f7e4c2;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-chip {
  gap: 10px;
  min-width: 190px;
  padding: 6px 10px;
}

.user-chip__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 232, 255, 0.55), rgba(7, 15, 28, 0.94));
  border: 1px solid rgba(244, 210, 138, 0.46);
  color: #fff;
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
  max-width: 98px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip strong {
  font-size: 0.78rem;
}

.user-chip small,
.user-chip a {
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
}

.user-chip a {
  margin-left: auto;
  color: var(--teal);
  font-weight: 800;
}

.hero-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 520px);
  gap: clamp(30px, 5vw, 86px);
  align-items: start;
  min-height: auto;
  padding: clamp(14px, 2.2vh, 30px) clamp(10px, 3vw, 66px) 10px;
}

.hero-copy {
  width: min(350px, 100%);
  margin-left: clamp(0px, 3.4vw, 70px);
  padding-top: clamp(74px, 10vh, 118px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h2,
.page-heading h1,
.dashboard-intro h1,
.stone-panel h1,
.auth-panel h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h2 {
  display: grid;
  gap: 4px;
  font-size: clamp(1.9rem, 2.55vw, 3.15rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-copy h2 span:nth-child(3) {
  color: var(--gold-strong);
}

.hero-text {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--soft);
  font-family: Arial, sans-serif;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.65;
}

.auth-panel,
.stone-panel,
.dashboard-card,
.roadmap-item,
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(5, 9, 14, 0.82), rgba(7, 14, 22, 0.7)),
    radial-gradient(circle at 50% 0, rgba(66, 232, 255, 0.13), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 54px rgba(0, 0, 0, 0.3),
    0 28px 70px rgba(0, 0, 0, 0.48);
}

.auth-panel {
  justify-self: end;
  width: min(100%, 500px);
  min-height: 500px;
  padding: 58px clamp(28px, 3vw, 48px) 30px;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  background: url("/static/assets/toa_login_panel_transparent.png") center / 100% 100% no-repeat;
  opacity: 0.76;
  pointer-events: none;
}

.panel-gem {
  position: absolute;
  left: 50%;
  top: -52px;
  width: 110px;
  height: 110px;
  transform: translateX(-50%);
  background: url("/static/assets/toa_icon_roadmap_compass.png") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(66, 232, 255, 0.54));
}

.auth-panel h1 {
  color: var(--gold-strong);
  font-size: clamp(1.6rem, 2.2vw, 2.55rem);
  text-align: center;
  text-transform: uppercase;
}

.auth-panel > p,
.panel-copy {
  margin: 12px auto 26px;
  color: var(--soft);
  font-family: Arial, sans-serif;
  line-height: 1.5;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(201, 151, 85, 0.28);
  border-radius: 4px;
  background: rgba(2, 6, 12, 0.66);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 0.96rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.password-label input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23cfc7be'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012s3.5-6%2010-6%2010%206%2010%206-3.5%206-10%206S2%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
  opacity: 0.76;
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(66, 232, 255, 0.55));
}

.auth-form textarea {
  min-height: 134px;
  padding: 14px 16px;
  resize: vertical;
}

.auth-form input:focus,
.auth-form textarea:focus {
  border-color: var(--teal);
  background: rgba(3, 10, 17, 0.82);
  box-shadow: 0 0 0 4px rgba(66, 232, 255, 0.1), 0 0 22px rgba(66, 232, 255, 0.16);
}

.form-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

.form-split a,
.terms a,
.dashboard-card a {
  color: var(--teal);
  font-weight: 800;
}

.check-line {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  text-transform: none !important;
}

.check-line input {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--teal);
}

.primary-button,
.secondary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.primary-button {
  border: 1px solid rgba(244, 210, 138, 0.62);
  background:
    linear-gradient(90deg, rgba(9, 72, 96, 0.96), rgba(20, 130, 157, 0.94)),
    linear-gradient(90deg, var(--teal), var(--gold-strong));
  color: #fff7e7;
  box-shadow: 0 0 24px rgba(66, 232, 255, 0.18), inset 0 0 20px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.primary-button span {
  position: absolute;
  right: 24px;
  color: var(--gold-strong);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.primary-button.is-loading {
  opacity: 0.78;
}

.secondary-button {
  border: 1px solid rgba(201, 151, 85, 0.42);
  background: rgba(2, 6, 12, 0.46);
  color: var(--ink);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 85, 0.36), transparent);
}

.terms {
  margin: 20px 0 0 !important;
  font-size: 0.8rem;
}

.form-message {
  margin: -4px 0 14px !important;
  padding: 11px 12px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
}

.form-message--success {
  border: 1px solid rgba(53, 242, 155, 0.32);
  background: rgba(53, 242, 155, 0.1);
  color: #bdfedd;
}

.feature-row {
  position: relative;
  z-index: 14;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1440px);
  margin: 0 auto 50px;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  min-height: 150px;
  padding: 20px 24px 18px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(3, 8, 14, 0.78), rgba(5, 10, 17, 0.66)),
    url("/static/assets/toa_bottom_card_template_transparent.png") center / 100% 100% no-repeat;
  border: 1px solid rgba(201, 151, 85, 0.5);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.feature-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  align-self: center;
  filter: drop-shadow(0 0 18px rgba(66, 232, 255, 0.2));
}

.feature-card h3,
.feature-card strong,
.feature-card p {
  margin: 0;
}

.feature-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.feature-card strong {
  display: block;
  margin-top: 7px;
  color: var(--teal);
  font-size: 1rem;
}

.feature-card p {
  margin-top: 7px;
  color: var(--soft);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.42;
}

.feature-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-footer {
  position: relative;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0 8px;
  color: rgba(247, 239, 226, 0.56);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.single-panel-layout,
.focus-page {
  position: relative;
  z-index: 12;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 230px);
  padding: 62px 20px 34px;
}

.register-panel {
  min-height: 650px;
}

.reset-panel {
  min-height: 470px;
}

.compact-page .character-layer {
  opacity: 0.92;
}

.dashboard-layout,
.roadmap-page-shell,
.status-page-shell {
  position: relative;
  z-index: 12;
  width: min(100%, 1180px);
  margin-left: auto;
  padding: clamp(34px, 6vh, 74px) 24px 56px;
}

.roadmap-page-shell {
  z-index: 30;
  isolation: isolate;
}

.dashboard-intro,
.page-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.dashboard-intro h1,
.page-heading h1,
.stone-panel h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 4rem);
  line-height: 1.02;
}

.dashboard-intro p,
.page-heading p,
.dashboard-card p,
.roadmap-item p,
.service-card p {
  color: var(--soft);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-height: 230px;
  padding: 26px;
}

.dashboard-card--wide {
  grid-row: span 2;
}

.dashboard-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  float: left;
  margin: 0 16px 10px 0;
}

.dashboard-card h2,
.roadmap-item h2,
.service-card h2,
.checklist h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.35rem;
}

.tag,
.roadmap-status,
.service-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(66, 232, 255, 0.28);
  border-radius: 4px;
  background: rgba(66, 232, 255, 0.08);
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-card dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  font-family: Arial, sans-serif;
}

.dashboard-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(201, 151, 85, 0.15);
  padding-bottom: 10px;
}

.dashboard-card dt {
  color: var(--muted);
}

.dashboard-card dd {
  margin: 0;
  font-weight: 800;
}

.good {
  color: var(--good);
}

.primary-button--small {
  width: auto;
  min-height: 46px;
  padding: 0 22px;
}

.stone-panel {
  width: min(100%, 760px);
  padding: clamp(28px, 4vw, 58px);
  text-align: center;
}

.panel-icon {
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin: -20px auto 10px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(66, 232, 255, 0.28));
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.stat-row div {
  display: grid;
  gap: 4px;
  min-height: 96px;
  place-items: center;
  border: 1px solid rgba(201, 151, 85, 0.26);
  border-radius: 6px;
  background: rgba(3, 8, 14, 0.46);
  padding: 12px;
}

.stat-row span,
.stat-row small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.stat-row strong {
  font-size: 1.08rem;
}

.checklist {
  margin: 18px 0 26px;
  padding: 20px;
  border: 1px solid rgba(66, 232, 255, 0.2);
  border-radius: 6px;
  background: rgba(2, 6, 12, 0.44);
  text-align: left;
}

.checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--soft);
  font-family: Arial, sans-serif;
}

.roadmap-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-item,
.service-card {
  min-height: 170px;
  padding: 24px;
}

.service-card--online > span {
  color: var(--good);
}

.service-card--pending > span {
  color: var(--gold-strong);
}

.service-card--mock > span {
  color: var(--teal);
}

.roadmap-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid rgba(244, 210, 138, 0.42);
  background:
    linear-gradient(180deg, rgba(6, 12, 21, 0.94), rgba(2, 6, 12, 0.91)),
    radial-gradient(circle at 50% 0, rgba(66, 232, 255, 0.12), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.66),
    0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
}

.roadmap-tab {
  position: relative;
  overflow: hidden;
  min-width: 82px;
  min-height: 38px;
  border: 1px solid rgba(244, 210, 138, 0.62);
  background:
    linear-gradient(180deg, rgba(18, 27, 39, 0.98), rgba(4, 9, 16, 0.96)),
    radial-gradient(circle at 50% 0, rgba(244, 210, 138, 0.12), transparent 58%);
  color: rgba(247, 239, 226, 0.94);
  font-family: var(--display-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 18px rgba(0, 0, 0, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.32);
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.roadmap-tab::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(244, 210, 138, 0.16);
  pointer-events: none;
}

.roadmap-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 210, 138, 0.58), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.roadmap-tab[data-roadmap-tab="overview"] {
  min-width: 104px;
}

.roadmap-tab:hover,
.roadmap-tab.is-active {
  transform: translateY(-2px);
  border-color: rgba(66, 232, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(12, 95, 118, 0.98), rgba(3, 13, 22, 0.98)),
    radial-gradient(circle at 50% 0, rgba(244, 210, 138, 0.24), transparent 62%);
  color: #eaffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 22px rgba(0, 0, 0, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(66, 232, 255, 0.18);
}

.roadmap-tab.is-active::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold-strong), transparent);
  opacity: 1;
  box-shadow: 0 0 10px rgba(66, 232, 255, 0.58);
}

.roadmap-tab-stage {
  min-height: 440px;
}

.roadmap-tab-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.7fr);
  gap: 16px;
}

.roadmap-tab-panel[hidden] {
  display: none !important;
}

.roadmap-story-card,
.roadmap-task,
.roadmap-summary-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(201, 151, 85, 0.58);
  background:
    linear-gradient(135deg, rgba(2, 6, 11, 0.97), rgba(5, 11, 18, 0.95)),
    radial-gradient(circle at 50% 0, rgba(66, 232, 255, 0.1), transparent 45%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 48px rgba(0, 0, 0, 0.46),
    0 20px 54px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(7px);
}

.roadmap-story-card {
  padding: 24px;
  min-height: 100%;
}

.roadmap-current-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(66, 232, 255, 0.36);
  background: rgba(66, 232, 255, 0.08);
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-story-card h2 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.2vw, 2.7rem);
  line-height: 1.04;
}

.roadmap-story-card p,
.roadmap-task p {
  color: var(--soft);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

.roadmap-story-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  font-family: Arial, sans-serif;
}

.roadmap-story-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-bottom: 1px solid rgba(201, 151, 85, 0.14);
  padding-bottom: 10px;
}

.roadmap-story-card dt {
  color: var(--muted);
}

.roadmap-story-card dd {
  margin: 0;
  color: var(--gold-strong);
  font-weight: 800;
  text-align: right;
}

.roadmap-pill-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap-pill-list li {
  border: 1px solid rgba(66, 232, 255, 0.18);
  background: rgba(2, 6, 12, 0.42);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-weight: 700;
  padding: 10px 12px;
}

.roadmap-phase-content {
  min-width: 0;
}

.roadmap-summary-card {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.roadmap-summary-card:hover {
  border-color: rgba(66, 232, 255, 0.68);
  transform: translateY(-2px);
}

.roadmap-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-task {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
}

.roadmap-task span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(66, 232, 255, 0.3);
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.roadmap-task p {
  margin: 0;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 220px 1fr;
  }

  .topbar::before {
    inset-left: 210px;
    inset-right: 20px;
  }

  .top-actions {
    grid-column: 2;
    justify-content: center;
  }

  .hero-layout {
    grid-template-columns: 0.86fr minmax(360px, 500px);
  }

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

@media (max-width: 980px) {
  .ui-layer {
    padding: 12px 14px 24px;
  }

  .portal-page::before,
  .character-layer,
  .character-ear-layer {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 0 18px;
  }

  .topbar::before {
    display: none;
  }

  .brand {
    width: 176px;
    min-height: 126px;
    justify-self: center;
  }

  .brand__logo {
    max-width: 176px;
    max-height: 126px;
  }

  .nav-links,
  .top-actions {
    flex-wrap: wrap;
    min-width: 0;
  }

  .nav-links {
    gap: 12px 24px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px 0 18px;
  }

  .hero-copy {
    width: min(100%, 620px);
    margin: 0 auto;
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-panel {
    justify-self: center;
  }

  .feature-row,
  .dashboard-grid,
  .roadmap-grid,
  .service-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .dashboard-layout,
  .roadmap-page-shell,
  .status-page-shell {
    margin: 0 auto;
    padding: 30px 0 36px;
  }
}

@media (max-width: 560px) {
  .auth-panel {
    min-height: 0;
    padding: 54px 20px 26px;
  }

  .auth-panel::before {
    opacity: 0.42;
  }

  .feature-card {
    grid-template-columns: 66px 1fr;
    padding: 22px;
  }

  .feature-card img {
    width: 58px;
    height: 58px;
  }

  .form-split {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Home page is treated as one 16:9 art-directed stage so FullHD and 2K keep
   the same composition as the visual mockup. */
.home-page {
  --stage-w: min(100vw, calc(100svh * 1.7778958555));
  --stage-h: min(100svh, calc(100vw / 1.7778958555));
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-page .bg-layer,
.home-page .shade-layer,
.home-page .character-layer,
.home-page .character-ear-layer {
  position: absolute;
}

.home-page .bg-layer {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  background: url("/static/assets/background.png") center / cover no-repeat;
  transform: none;
}

.home-page .shade-layer {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  background:
    linear-gradient(90deg, rgba(1, 5, 12, 0.06), rgba(1, 5, 12, 0.01) 46%, rgba(1, 5, 12, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 100%);
}

.home-page .ui-layer {
  width: var(--stage-w);
  height: var(--stage-h);
  min-height: 0;
  margin: 0;
  padding: 0;
}

.home-page::before {
  display: none;
}

.home-page .topbar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  display: block;
  pointer-events: none;
}

.home-page .topbar::before {
  left: 18.35%;
  right: 2.35%;
  top: 0.55%;
  height: 10.9%;
  min-height: 0;
  max-height: none;
  background-size: 100% 100%;
  opacity: 0.98;
}

.home-page .brand {
  position: absolute;
  left: 2.1%;
  top: 1.0%;
  width: 15.2%;
  height: 18.2%;
  min-height: 0;
  justify-content: flex-start;
  pointer-events: auto;
}

.home-page .brand__logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

.home-page .nav-links {
  position: absolute;
  left: 24.0%;
  top: 3.65%;
  width: 54.9%;
  height: 6.2%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  z-index: 26;
  pointer-events: auto;
}

.home-page .nav-link {
  min-height: 0;
  padding: 0;
  font-size: clamp(13px, calc(var(--stage-w) * 0.0106), 22px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.home-page .nav-link::after {
  bottom: 6%;
  width: 46%;
  height: 2px;
}

.home-page .top-actions {
  position: absolute;
  right: 2.8%;
  top: 5.18%;
  min-width: 0;
  width: 11.45%;
  height: 4.25%;
  gap: 0;
  z-index: 27;
  pointer-events: auto;
}

.home-page .status-pill,
.home-page .top-button {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(10px, calc(var(--stage-w) * 0.0072), 14px);
}

.home-page .status-pill {
  width: 100%;
  padding: 0;
  gap: 6.5%;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.home-page .top-button {
  display: none;
}

.home-page .status-pill span {
  width: 0.68em;
  height: 0.68em;
}

.home-page .hero-layout {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  min-height: 0;
  z-index: 10;
  pointer-events: none;
}

.home-page .character-layer,
.home-page .character-ear-layer {
  inset: auto;
  left: calc((100vw - var(--stage-w)) / 2 - var(--stage-w) * 0.0048);
  top: calc((100svh - var(--stage-h)) / 2 + 20px);
  width: calc(var(--stage-w) * 0.639);
  height: auto;
  z-index: 8;
}

.home-page .character-ear-layer {
  z-index: 27;
  clip-path: inset(0 0 calc(100% - 18.2%) 0);
}

.home-page .hero-copy {
  display: none;
}

.home-page .eyebrow {
  margin-bottom: 1.2%;
  font-size: clamp(11px, calc(var(--stage-w) * 0.0083), 16px);
}

.home-page .hero-copy h2 {
  display: block;
  font-size: clamp(35px, calc(var(--stage-w) * 0.031), 58px);
  line-height: 1.08;
}

.home-page .hero-copy h2 span {
  display: block;
}

.home-page .hero-text {
  max-width: 28ch;
  margin-top: 6%;
  font-size: clamp(13px, calc(var(--stage-w) * 0.0102), 18px);
  line-height: 1.58;
}

.home-page .auth-panel {
  position: absolute;
  left: 72.7%;
  right: auto;
  top: 10.9%;
  width: 24.5%;
  min-height: 0;
  height: 62.8%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 16;
  pointer-events: auto;
}

.home-page .auth-panel::before {
  inset: 0;
  z-index: -1;
  opacity: 1;
  background-size: 100% 100%;
}

.home-page .panel-gem {
  display: none;
}

.home-page .auth-panel h1 {
  position: absolute;
  left: 8%;
  top: 16.9%;
  width: 84%;
  font-size: clamp(20px, calc(var(--stage-w) * 0.0158), 31px);
  font-weight: 600;
  line-height: 1.05;
}

.home-page .auth-panel > p:not(.terms) {
  position: absolute;
  left: 13%;
  top: 22.8%;
  width: 74%;
  margin: 0;
  font-size: clamp(11px, calc(var(--stage-w) * 0.0084), 15px);
  line-height: 1.42;
}

.home-page .auth-form {
  display: block;
}

.home-page .auth-form label {
  display: block;
  position: relative;
  gap: 0;
  font-size: clamp(10px, calc(var(--stage-w) * 0.0075), 13px);
}

.home-page .auth-form > label:nth-of-type(1) {
  position: absolute;
  left: 8.9%;
  top: 30.9%;
  width: 82.3%;
  height: 8.05%;
}

.home-page .auth-form > label:nth-of-type(2) {
  position: absolute;
  left: 8.9%;
  top: 41.55%;
  width: 82.3%;
  height: 8.05%;
}

.home-page .auth-form > label::before,
.home-page .auth-form > label:nth-of-type(2)::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: 0.72;
  z-index: 2;
}

.home-page .auth-form > label::before {
  left: 4.2%;
  width: 5.6%;
  height: 45%;
  background: center / contain no-repeat;
}

.home-page .auth-form > label:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23cfc7be'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='14'%20rx='1.8'/%3E%3Cpath%20d='m3%207%209%207%209-7'/%3E%3C/svg%3E");
}

.home-page .auth-form > label:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23cfc7be'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='5'%20y='11'%20width='14'%20height='10'%20rx='1.8'/%3E%3Cpath%20d='M8%2011V7a4%204%200%200%201%208%200v4'/%3E%3C/svg%3E");
}

.home-page .auth-form > label:nth-of-type(2)::after {
  display: none;
}

.home-page .auth-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.home-page .auth-form input {
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 14.2%;
  font-size: clamp(12px, calc(var(--stage-w) * 0.0088), 16px);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.home-page .auth-form > label:nth-of-type(2) input {
  transform: translateY(-3px);
}

.home-page .password-toggle {
  position: absolute;
  right: 3.7%;
  top: calc(50% - 3px);
  bottom: auto;
  width: 6.2%;
  height: 52%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23cfc7be'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012s3.5-6%2010-6%2010%206%2010%206-3.5%206-10%206S2%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
  opacity: 0.78;
  transform: translateY(-50%);
  z-index: 7;
}

.home-page .password-toggle.is-visible {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(66, 232, 255, 0.55));
}

.home-page .form-split {
  position: absolute;
  left: 12.7%;
  top: 50.45%;
  width: 42%;
  display: block;
  font-size: clamp(10px, calc(var(--stage-w) * 0.0076), 13px);
  line-height: 1;
}

.home-page .form-split .check-line {
  display: none !important;
}

.home-page .form-split a {
  display: inline-block;
  color: var(--gold-strong);
  font-weight: 400;
  font-size: clamp(11px, calc(var(--stage-w) * 0.0082), 14px);
  position: relative;
  z-index: 5;
}

.home-page .check-line input {
  width: 1em;
  height: 1em;
}

.home-page .primary-button,
.home-page .secondary-button {
  position: absolute;
  min-height: 0;
  height: calc(var(--stage-h) * 0.060);
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(12px, calc(var(--stage-w) * 0.0094), 17px);
  font-weight: 600;
  z-index: 6;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  transition: transform 140ms ease, filter 140ms ease;
}

.home-page .primary-button::before,
.home-page .secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  background-image: url("/static/assets/toa_login_panel_transparent.png");
  background-repeat: no-repeat;
  background-size: 123.16% var(--button-bg-height);
  background-position: 50% var(--button-bg-y);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, filter 140ms ease;
}

.home-page .primary-button::before {
  --button-bg-height: 1030.93%;
  --button-bg-y: 63.95%;
}

.home-page .secondary-button::before {
  --button-bg-height: 1234.57%;
  --button-bg-y: 83.46%;
}

.home-page .primary-button:hover,
.home-page .secondary-button:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 7px 12px rgba(27, 221, 255, 0.18));
}

.home-page .primary-button:hover {
  background: transparent;
}

.home-page .secondary-button:hover {
  background: transparent;
}

.home-page .primary-button:hover::before,
.home-page .secondary-button:hover::before {
  opacity: 0.98;
  filter: brightness(1.18);
}

.home-page .primary-button {
  left: 9.4%;
  top: 57.75%;
  width: 81.2%;
  height: 9.7%;
}

.home-page .secondary-button {
  left: 9.4%;
  top: 76.7%;
  width: 81.2%;
  height: 8.1%;
}

.home-page .divider {
  display: none;
}

.home-page .divider::before,
.home-page .divider::after {
  display: none;
}

.home-page .auth-panel > .terms {
  position: absolute;
  left: 13%;
  top: 87.3%;
  width: 74%;
  margin: 0 !important;
  font-size: clamp(10px, calc(var(--stage-w) * 0.0071), 13px);
  line-height: 1.35;
}

.home-page .feature-row {
  position: absolute;
  left: 9.1%;
  bottom: 2.45%;
  width: 84.15%;
  height: 20.25%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.55%;
  z-index: 18;
  pointer-events: auto;
}

.home-page .feature-card {
  min-height: 0;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("/static/assets/toa_bottom_card_template_transparent.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.home-page .feature-card img {
  position: absolute;
  left: 2.8%;
  top: 9.1%;
  width: 36.0%;
  height: 72.0%;
  max-width: none;
  object-fit: contain;
  z-index: 2;
}

.home-page .feature-card > div {
  position: absolute;
  left: 38.8%;
  top: 16.9%;
  width: 53.0%;
  height: 72%;
  padding: 0;
  z-index: 3;
}

.home-page .feature-card h3 {
  font-size: clamp(13px, calc(var(--stage-w) * 0.0108), 19px);
  font-weight: 600;
  line-height: 1;
}

.home-page .feature-card strong {
  margin-top: 3.2%;
  font-size: clamp(11px, calc(var(--stage-w) * 0.0082), 14px);
  font-weight: 600;
  line-height: 1.15;
}

.home-page .feature-card p {
  margin-top: 3.2%;
  font-size: clamp(10px, calc(var(--stage-w) * 0.0075), 13px);
  line-height: 1.35;
}

.home-page .feature-card a {
  position: absolute;
  left: 1.1%;
  bottom: 1.3%;
  width: 96.3%;
  height: 17.4%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, calc(var(--stage-w) * 0.0078), 14px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  z-index: 6;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 140ms ease, filter 140ms ease;
}

.home-page .feature-card a:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 8px 12px rgba(27, 221, 255, 0.18));
}

.home-page .feature-card a span {
  position: absolute;
  right: 8%;
}

.home-page .portal-footer {
  display: none;
}

@media (max-aspect-ratio: 16 / 9) {
  .home-page {
    overflow-y: auto;
  }
}

/* Secondary portal pages keep the same fantasy identity without covering the
   useful account/download/roadmap content with the character art. */
.compact-page,
.dashboard-page,
.content-page {
  min-height: 100svh;
}

.compact-page .bg-layer,
.dashboard-page .bg-layer,
.content-page .bg-layer {
  background:
    linear-gradient(90deg, rgba(1, 4, 10, 0.72) 0 28%, rgba(1, 4, 10, 0.3) 50%, rgba(1, 4, 10, 0.62) 100%),
    url("/static/assets/background.png") center / cover no-repeat;
  transform: none;
}

.compact-page .shade-layer,
.dashboard-page .shade-layer,
.content-page .shade-layer {
  background:
    radial-gradient(circle at 36% 38%, rgba(66, 232, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52) 100%);
}

.compact-page .character-layer,
.dashboard-page .character-layer,
.content-page .character-layer {
  width: min(39vw, 670px);
  inset: auto auto -17vh 4vw;
  opacity: 0.62;
  filter: drop-shadow(0 0 22px rgba(57, 203, 255, 0.18));
}

.dashboard-page .character-layer,
.content-page .character-layer {
  opacity: 0.48;
}

.compact-page .character-ear-layer,
.dashboard-page .character-ear-layer,
.content-page .character-ear-layer {
  display: none;
}

.compact-page .ui-layer,
.dashboard-page .ui-layer,
.content-page .ui-layer {
  width: min(100%, var(--content-width));
  padding-top: 18px;
}

.compact-page .auth-panel,
.compact-page .stone-panel {
  width: min(100%, 560px);
  min-height: 0;
  padding: 50px 48px 34px;
  border-color: rgba(201, 151, 85, 0.7);
  background:
    linear-gradient(135deg, rgba(4, 8, 14, 0.88), rgba(6, 14, 22, 0.78)),
    radial-gradient(circle at 50% 0, rgba(66, 232, 255, 0.1), transparent 38%);
  box-shadow:
    inset 0 0 52px rgba(0, 0, 0, 0.36),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

.compact-page .auth-panel::before {
  inset: -16px;
  opacity: 0.68;
}

.compact-page .panel-gem {
  top: -48px;
  width: 96px;
  height: 96px;
}

.compact-page .register-panel,
.compact-page .reset-panel {
  min-height: 0;
}

.compact-page .auth-panel h1,
.compact-page .stone-panel h1 {
  font-size: clamp(2rem, 2.6vw, 3rem);
}

.compact-page .auth-form {
  gap: 12px;
}

.compact-page .auth-form label {
  text-align: left;
}

.compact-page .auth-form input,
.compact-page .auth-form textarea {
  min-height: 46px;
  border-color: rgba(201, 151, 85, 0.34);
  background: rgba(2, 6, 12, 0.78);
}

.compact-page .primary-button,
.compact-page .secondary-button {
  min-height: 48px;
  margin-top: 2px;
}

.single-panel-layout,
.focus-page {
  width: min(100%, var(--content-width));
  min-height: calc(100svh - 190px);
  margin: 0 auto;
  padding: 8px clamp(24px, 4vw, 70px) 54px;
  place-items: start end;
}

.compact-page .register-panel {
  transform: scale(0.92);
  transform-origin: top right;
}

.compact-page .panel-icon {
  width: 88px;
  height: 88px;
  margin: -14px auto 6px;
}

.compact-page .stat-row {
  margin: 20px 0;
}

.compact-page .stat-row div {
  min-height: 76px;
  padding: 10px;
}

.compact-page .checklist {
  margin: 12px 0 16px;
  padding: 16px 20px;
}

.focus-page .stone-panel {
  width: min(760px, 52vw);
}

.dashboard-layout,
.roadmap-page-shell,
.status-page-shell {
  width: min(980px, 56vw);
  margin-left: auto;
  margin-right: clamp(46px, 6vw, 132px);
  padding-top: 40px;
}

.dashboard-card,
.roadmap-item,
.service-card,
.stone-panel {
  border-color: rgba(201, 151, 85, 0.64);
  background:
    linear-gradient(135deg, rgba(4, 8, 14, 0.9), rgba(7, 15, 23, 0.78)),
    radial-gradient(circle at 50% 0, rgba(66, 232, 255, 0.1), transparent 42%);
  backdrop-filter: blur(3px);
}

.dashboard-card::before,
.roadmap-item::before,
.service-card::before,
.stone-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 151, 85, 0.12);
  box-shadow:
    inset 0 0 22px rgba(66, 232, 255, 0.035),
    0 0 0 1px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.dashboard-card:hover,
.roadmap-item:hover,
.service-card:hover {
  border-color: rgba(244, 210, 138, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 54px rgba(0, 0, 0, 0.28),
    0 30px 74px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(66, 232, 255, 0.08);
}

.dashboard-intro,
.page-heading {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
  margin-bottom: 18px;
}

.dashboard-intro h1,
.page-heading h1,
.stone-panel h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 3.1vw, 3.7rem);
}

.dashboard-grid,
.roadmap-grid,
.service-grid {
  gap: 16px;
}

.roadmap-item,
.service-card {
  min-height: 150px;
  padding: 24px 26px;
}

.dashboard-card > a:not(.primary-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid rgba(201, 151, 85, 0.42);
  background: rgba(2, 6, 12, 0.42);
  color: var(--gold-strong);
  font-family: var(--display-font);
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.dashboard-card > a:not(.primary-button):hover {
  transform: translateY(-3px);
  border-color: rgba(66, 232, 255, 0.68);
  filter: drop-shadow(0 6px 10px rgba(27, 221, 255, 0.14));
}

.portal-footer {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1180px) {
  .compact-page .character-layer,
  .dashboard-page .character-layer,
  .content-page .character-layer {
    opacity: 0.34;
  }

  .focus-page .stone-panel,
  .dashboard-layout,
  .roadmap-page-shell,
  .status-page-shell {
    width: min(100%, 980px);
    margin-right: auto;
  }
}

/* Secondary pages reuse the tuned portal stage so the header, logo, status pill,
   character, and background sit in the same places as the approved login page. */
@media (min-width: 981px) {
  :is(.compact-page, .dashboard-page, .content-page) {
    --stage-w: min(100vw, calc(100svh * 1.7778958555));
    --stage-h: min(100svh, calc(100vw / 1.7778958555));
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  :is(.compact-page, .dashboard-page, .content-page)::before {
    display: none;
  }

  :is(.compact-page, .dashboard-page, .content-page) .bg-layer,
  :is(.compact-page, .dashboard-page, .content-page) .shade-layer,
  :is(.compact-page, .dashboard-page, .content-page) .character-layer,
  :is(.compact-page, .dashboard-page, .content-page) .character-ear-layer {
    position: absolute;
  }

  :is(.compact-page, .dashboard-page, .content-page) .bg-layer {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    background: url("/static/assets/background.png") center / cover no-repeat;
    transform: none;
  }

  :is(.compact-page, .dashboard-page, .content-page) .shade-layer {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    background:
      linear-gradient(90deg, rgba(1, 5, 12, 0.06), rgba(1, 5, 12, 0.01) 46%, rgba(1, 5, 12, 0.08)),
      linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 100%);
  }

  :is(.compact-page, .dashboard-page, .content-page) .ui-layer {
    width: var(--stage-w);
    height: var(--stage-h);
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  :is(.compact-page, .dashboard-page, .content-page) .topbar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    display: block;
    pointer-events: none;
  }

  :is(.compact-page, .dashboard-page, .content-page) .topbar::before {
    left: 18.35%;
    right: 2.35%;
    top: 0.55%;
    height: 10.9%;
    min-height: 0;
    max-height: none;
    background-size: 100% 100%;
    opacity: 0.98;
  }

  :is(.compact-page, .dashboard-page, .content-page) .brand {
    position: absolute;
    left: 2.1%;
    top: 1.0%;
    width: 15.2%;
    height: 18.2%;
    min-height: 0;
    justify-content: flex-start;
    pointer-events: auto;
  }

  :is(.compact-page, .dashboard-page, .content-page) .brand__logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left top;
  }

  :is(.compact-page, .dashboard-page, .content-page) .nav-links {
    position: absolute;
    left: 24.0%;
    top: 3.65%;
    width: 54.9%;
    height: 6.2%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    z-index: 26;
    pointer-events: auto;
  }

  :is(.compact-page, .dashboard-page, .content-page) .nav-link {
    min-height: 0;
    padding: 0;
    font-size: clamp(13px, calc(var(--stage-w) * 0.0106), 22px);
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
  }

  :is(.compact-page, .dashboard-page, .content-page) .nav-link::after {
    bottom: 6%;
    width: 46%;
    height: 2px;
  }

  :is(.compact-page, .dashboard-page, .content-page) .top-actions {
    position: absolute;
    right: 2.8%;
    top: 5.18%;
    min-width: 0;
    width: 11.45%;
    height: 4.25%;
    gap: 0;
    z-index: 27;
    pointer-events: auto;
  }

  :is(.compact-page, .dashboard-page, .content-page) .status-pill,
  :is(.compact-page, .dashboard-page, .content-page) .top-button {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(10px, calc(var(--stage-w) * 0.0072), 14px);
  }

  :is(.compact-page, .dashboard-page, .content-page) .status-pill {
    width: 100%;
    padding: 0;
    gap: 6.5%;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }

  :is(.compact-page, .dashboard-page, .content-page) .top-button {
    display: none;
  }

  :is(.compact-page, .dashboard-page, .content-page) .status-pill span {
    width: 0.68em;
    height: 0.68em;
  }

  :is(.compact-page, .dashboard-page, .content-page) .character-layer,
  :is(.compact-page, .dashboard-page, .content-page) .character-ear-layer {
    display: block;
    inset: auto;
    left: calc((100vw - var(--stage-w)) / 2 - var(--stage-w) * 0.0048);
    top: calc((100svh - var(--stage-h)) / 2 + 20px);
    width: calc(var(--stage-w) * 0.639);
    height: auto;
    opacity: 1;
    z-index: 8;
    filter: drop-shadow(0 0 22px rgba(57, 203, 255, 0.24));
  }

  :is(.compact-page, .dashboard-page, .content-page) .character-ear-layer {
    z-index: 27;
    clip-path: inset(0 0 calc(100% - 18.2%) 0);
  }

  :is(.compact-page, .dashboard-page, .content-page) .portal-footer {
    display: none;
  }

  .compact-page .feature-row {
    display: none;
  }

  .compact-page .single-panel-layout,
  .compact-page .focus-page {
    position: absolute;
    inset: 0;
    z-index: 16;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    pointer-events: none;
  }

  .compact-page .auth-panel,
  .compact-page .stone-panel {
    position: absolute;
    left: 62.2%;
    top: 12.8%;
    width: 30.7%;
    max-height: 80%;
    min-height: 0;
    padding: clamp(34px, calc(var(--stage-w) * 0.024), 46px) clamp(28px, calc(var(--stage-w) * 0.024), 44px) 30px;
    overflow: visible;
    pointer-events: auto;
  }

  .compact-page .register-panel {
    transform: none;
  }

  .compact-page .reset-panel {
    top: 17.4%;
  }

  .compact-page .focus-page .stone-panel {
    left: 48.3%;
    top: 16.8%;
    width: 44.8%;
    max-height: 76%;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .compact-page .support-panel {
    top: 14.7%;
  }

  .compact-page .auth-panel h1,
  .compact-page .stone-panel h1 {
    font-size: clamp(28px, calc(var(--stage-w) * 0.024), 45px);
    line-height: 1;
  }

  .compact-page .auth-panel > p,
  .compact-page .panel-copy {
    font-size: clamp(12px, calc(var(--stage-w) * 0.0088), 16px);
  }

  .compact-page .auth-form input,
  .compact-page .auth-form textarea {
    min-height: clamp(42px, calc(var(--stage-h) * 0.050), 52px);
  }

  .compact-page .primary-button,
  .compact-page .secondary-button {
    min-height: clamp(42px, calc(var(--stage-h) * 0.054), 54px);
  }

  .dashboard-layout,
  .roadmap-page-shell,
  .status-page-shell {
    position: absolute;
    left: 48.3%;
    right: auto;
    top: 18.2%;
    z-index: 18;
    width: 44.8%;
    max-height: 76%;
    margin: 0;
    padding: 0 10px 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .dashboard-intro,
  .page-heading {
    margin: 0 0 18px;
  }

  .dashboard-intro h1,
  .page-heading h1 {
    font-size: clamp(36px, calc(var(--stage-w) * 0.032), 58px);
    line-height: 1.02;
  }

  .dashboard-intro p,
  .page-heading p {
    font-size: clamp(14px, calc(var(--stage-w) * 0.010), 18px);
  }

  .dashboard-grid,
  .roadmap-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .dashboard-card,
  .roadmap-item,
  .service-card {
    min-height: 150px;
    padding: 22px 26px;
  }

  .dashboard-card--wide {
    min-height: 310px;
  }

  .dashboard-card img {
    width: 82px;
    height: 82px;
    margin: 0 18px 12px 0;
  }

  .roadmap-item h2,
  .service-card h2,
  .dashboard-card h2 {
    font-size: clamp(22px, calc(var(--stage-w) * 0.016), 30px);
  }

  .roadmap-page-shell {
    left: 18.4%;
    top: 14.2%;
    width: 73.3%;
    max-height: 80%;
    overflow: hidden;
    padding: 0;
    z-index: 30;
  }

  .roadmap-page-shell .page-heading {
    max-width: 58%;
    margin: 0 0 10px 35.6%;
  }

  .roadmap-page-shell .page-heading h1 {
    font-size: clamp(38px, calc(var(--stage-w) * 0.033), 62px);
  }

  .roadmap-tabs {
    width: 100%;
    padding-left: 1.6%;
    padding-right: 1.6%;
    margin-bottom: 14px;
  }

  .roadmap-tab {
    min-width: clamp(70px, calc(var(--stage-w) * 0.058), 106px);
    min-height: clamp(34px, calc(var(--stage-h) * 0.041), 42px);
  }

  .roadmap-tab-panel {
    grid-template-columns: 32% minmax(0, 1fr);
    gap: 16px;
    height: calc(var(--stage-h) * 0.54);
    min-height: 0;
  }

  .roadmap-story-card,
  .roadmap-phase-content {
    min-height: 0;
    max-height: 100%;
  }

  .roadmap-story-card {
    overflow: hidden;
    padding: 22px;
  }

  .roadmap-phase-content {
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
  }

  .roadmap-story-card h2 {
    font-size: clamp(25px, calc(var(--stage-w) * 0.019), 38px);
  }

  .roadmap-story-card p,
  .roadmap-task p,
  .roadmap-item p {
    font-size: clamp(12px, calc(var(--stage-w) * 0.0085), 16px);
  }

  .roadmap-page-shell .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .roadmap-page-shell .roadmap-item {
    min-height: clamp(104px, calc(var(--stage-h) * 0.122), 126px);
    padding: 16px 18px;
  }

  .roadmap-page-shell .roadmap-item h2 {
    font-size: clamp(18px, calc(var(--stage-w) * 0.014), 26px);
    margin-bottom: 8px;
  }

  .roadmap-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .roadmap-task {
    min-height: clamp(78px, calc(var(--stage-h) * 0.092), 96px);
    padding: 14px;
  }
}
