:root {
  color-scheme: light;
  --color-shell: #06172c;
  --color-shell-raised: #0a2443;
  --color-navy: #0d3159;
  --color-blue: #165b8d;
  --color-sky: #39c3e6;
  --color-sky-soft: #d9f5fb;
  --color-amber: #f5a32b;
  --color-amber-deep: #c86a12;
  --color-amber-soft: #fff1d5;
  --color-surface: #f5f8fb;
  --color-card: #ffffff;
  --color-line: #cbd9e5;
  --color-ink: #142b3d;
  --color-muted: #5a7082;
  --color-good: #197450;
  --color-good-soft: #ddf5e8;
  --color-disabled: #6b7280;
  --color-danger: #a63f3f;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", var(--font-sans);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.1rem, 1.6vw, 1.3rem);
  --text-xl: clamp(1.55rem, 3vw, 2.25rem);
  --text-hero: clamp(2.7rem, 7vw, 5.7rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 0.45rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.35rem;
  --shadow-sm: 0 0.35rem 1rem rgb(6 23 44 / 10%);
  --shadow-lg: 0 1.5rem 4rem rgb(2 13 27 / 28%);
  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px var(--color-sky);
  --page-width: 74rem;
}

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

html {
  background: var(--color-shell);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 12% 0%, rgb(46 132 181 / 28%), transparent 29rem),
    linear-gradient(135deg, #06172c 0%, #0b2947 48%, #06172c 100%);
  font: 400 var(--text-base) / 1.65 var(--font-sans);
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

a {
  color: var(--color-blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0b729d;
}

:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

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

h1,
h2,
h3 {
  line-height: 1.12;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xl);
}

h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
}

p {
  margin: 0 0 var(--space-4);
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--color-shell);
  background: #fff;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin-inline: auto;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.site-header {
  color: #fff;
  background: var(--color-shell-raised);
  border-bottom: 1px solid rgb(137 212 237 / 24%);
}

.masthead {
  min-height: 5.15rem;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) clamp(var(--space-4), 3vw, var(--space-6));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand img {
  filter: drop-shadow(0 0.35rem 0.75rem rgb(0 0 0 / 22%));
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: var(--color-amber);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.34em;
}

.service-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: #b7d1e5;
  font-size: var(--text-sm);
}

.service-line span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-sky);
  box-shadow: 0 0 0 0.22rem rgb(57 195 230 / 15%);
}

.masthead-actions {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  min-width: 0;
  padding-inline: clamp(var(--space-3), 2vw, var(--space-6));
  background: #071b32;
  border-top: 1px solid rgb(255 255 255 / 7%);
}

.primary-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.9rem;
  padding: 0.65rem clamp(0.58rem, 1.25vw, 1rem);
  color: #c9ddec;
  font-size: var(--text-sm);
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover {
  color: #fff;
  background: rgb(61 170 211 / 12%);
}

.primary-nav a[aria-current="page"] {
  color: #fff;
  background: rgb(57 195 230 / 12%);
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0.65rem;
  bottom: 0;
  left: 0.65rem;
  height: 0.22rem;
  border-radius: 0.22rem 0.22rem 0 0;
  background: var(--color-amber);
  content: "";
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.65rem;
  padding: var(--space-2) clamp(var(--space-4), 3vw, var(--space-6));
  color: #cfe1ee;
  background: #103250;
  font-size: var(--text-xs);
}

.notice-strip > span:not(.notice-label) {
  min-width: 0;
  flex: 1;
}

.notice-label {
  flex: 0 0 auto;
  padding: 0.17rem 0.46rem;
  border: 1px solid rgb(255 195 92 / 45%);
  border-radius: 999px;
  color: #ffe1a5;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notice-strip a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
}

.site-main {
  padding: clamp(var(--space-4), 3vw, var(--space-7));
}

.button,
.classic-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.05rem;
  border: 1px solid #9bb4c7;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: #fff;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0.2rem 0.55rem rgb(8 35 62 / 10%);
  transition: transform 130ms ease, background-color 130ms ease, border-color 130ms ease;
}

.button:hover,
.classic-button:hover {
  color: var(--color-ink);
  border-color: var(--color-sky);
  transform: translateY(-1px);
}

.button-primary,
.classic-button.primary {
  color: #241200;
  border-color: #d47a16;
  background: var(--color-amber);
  box-shadow: 0 0.25rem 0.7rem rgb(149 74 0 / 20%);
}

.button-primary:hover,
.classic-button.primary:hover {
  color: #120900;
  background: #ffb33e;
}

.button-quiet {
  color: #e6f6fb;
  border-color: rgb(106 208 237 / 45%);
  background: rgb(16 72 109 / 58%);
}

.button-quiet:hover {
  color: #fff;
  background: rgb(30 108 150 / 72%);
}

.button.disabled,
.classic-button.disabled,
a[aria-disabled="true"] {
  color: #6c7b86;
  border-color: #c5d0d8;
  background: #e5ebef;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.wide {
  width: 100%;
}

.text-link,
.inline-links a,
.path-card a,
.board-header a {
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-blue);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  min-height: 27rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
  overflow: hidden;
  margin: calc(clamp(var(--space-4), 3vw, var(--space-7)) * -1) calc(clamp(var(--space-4), 3vw, var(--space-7)) * -1) var(--space-5);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  color: #fff;
  background:
    linear-gradient(105deg, rgb(6 23 44 / 99%) 10%, rgb(12 50 85 / 94%) 60%, rgb(10 38 70 / 88%)),
    #0b2947;
}

.home-hero::before {
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: -11rem;
  border: 1px solid rgb(91 212 240 / 26%);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 39rem;
}

.hero-copy .eyebrow {
  color: #7be0f5;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0 0 var(--space-4);
  font-size: var(--text-hero);
  font-weight: 950;
  letter-spacing: -0.065em;
}

.hero-lede {
  max-width: 39rem;
  color: #d7e8f4;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-5);
}

.hero-truth {
  max-width: 39rem;
  margin: 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-amber);
  color: #aac6d9;
  font-size: var(--text-sm);
}

.hero-orbit {
  width: min(100%, 34rem);
  justify-self: end;
  border-radius: var(--radius-lg);
  opacity: 0.88;
  filter: drop-shadow(0 1.5rem 2.5rem rgb(0 0 0 / 28%));
  transform: rotate(2deg);
}

.status-board,
.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.status-board > div,
.admin-overview > article {
  min-width: 0;
  padding: var(--space-4);
  border-right: 1px solid var(--color-line);
}

.status-board > div:last-child,
.admin-overview > article:last-child {
  border-right: 0;
}

.status-board span,
.status-board strong,
.status-board small,
.admin-overview span,
.admin-overview strong,
.admin-overview small {
  display: block;
}

.status-board span,
.admin-overview span {
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.status-board strong,
.admin-overview strong {
  margin-block: 0.22rem;
  color: var(--color-navy);
  font-size: 1.08rem;
}

.status-board small,
.admin-overview small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.75fr);
  gap: var(--space-5);
}

.news-board,
.panel,
.content-section,
.download-ribbon,
.download-panel,
.opening-grid > article,
.admin-overview {
  border: 1px solid var(--color-line);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.news-board,
.panel,
.content-section,
.download-ribbon,
.download-panel {
  border-radius: var(--radius-md);
}

.board-header,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-line);
}

.board-header h2 {
  margin: 0;
}

.panel-title {
  color: #fff;
  background: var(--color-navy);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.panel-title small {
  color: #bfe6f1;
  font-weight: 700;
  letter-spacing: 0;
}

.announcement-list {
  min-height: 8rem;
  padding: var(--space-5);
  color: var(--color-muted);
}

.announcement-list article + article {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.announcement-list article p,
.announcement-list article:last-child p {
  margin-bottom: 0;
}

.account-panel {
  overflow: hidden;
}

.account-panel > :not(.panel-title) {
  margin-inline: var(--space-5);
}

.auth-step {
  margin-block: var(--space-5);
}

.auth-step h2 {
  font-size: 1.35rem;
}

.auth-step p {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.content-section {
  margin-top: var(--space-5);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}

.section-intro {
  max-width: 48rem;
  margin-bottom: var(--space-5);
}

.section-intro > p:last-child {
  color: var(--color-muted);
}

.card-grid,
.scope-grid,
.opening-grid,
.step-grid {
  display: grid;
  gap: var(--space-4);
}

.three-up,
.opening-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.path-card,
.scope-grid article,
.opening-grid > article {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fafdff;
}

.info-card p,
.path-card p,
.scope-grid p,
.opening-grid p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.symbol-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fafdff;
}

.symbol-glyph {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--color-navy);
  font: 400 2.4rem / 1 "Gulim", "Dotum", "Arial Unicode MS", sans-serif;
  user-select: text;
}

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

.symbol-card p {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.symbol-card p span {
  min-width: 7rem;
}

.symbol-card code {
  color: var(--color-ink);
  font-family: "Gulim", "Dotum", Consolas, monospace;
  user-select: text;
}

.symbol-copy {
  min-height: 2.25rem;
  padding: 0.5rem 0.7rem;
  font-size: var(--text-xs);
}

.path-card a {
  display: inline-block;
  margin-top: var(--space-4);
}

.path-card > span,
.card-index {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  color: var(--color-navy);
  background: var(--color-sky-soft);
  font-size: var(--text-xs);
  font-weight: 900;
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  counter-reset: field-step;
}

.step-grid li {
  position: relative;
  min-width: 0;
  padding: var(--space-5);
  border-top: 3px solid var(--color-sky);
  background: #eff8fc;
  counter-increment: field-step;
}

.step-grid li::before {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-blue);
  content: "0" counter(field-step);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step-grid strong,
.step-grid span {
  display: block;
}

.step-grid span {
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.two-column,
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-5), 4vw, var(--space-7));
}

.two-column > div,
.split-section > div {
  min-width: 0;
}

.two-column > div + div {
  padding-left: clamp(var(--space-5), 4vw, var(--space-7));
  border-left: 1px solid var(--color-line);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.boundary-note,
.principle-list,
.identity-rule {
  padding: var(--space-4);
  border-left: 4px solid var(--color-amber);
  background: var(--color-amber-soft);
}

.principle-list p:last-child {
  margin-bottom: 0;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(var(--space-4), 2vw, var(--space-6));
  border: 1px solid #b9d2e3;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 93% 12%, rgb(57 195 230 / 18%), transparent 14rem),
    #e8f2f8;
}

.page-heading > div {
  max-width: 44rem;
  min-width: 0;
}

.page-heading h1 {
  margin: 0 0 var(--space-2);
  color: var(--color-shell-raised);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 950;
}

.page-heading > div > p:last-child {
  margin: 0;
  color: var(--color-muted);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  max-width: 28rem;
}

.section-nav a {
  padding: 0.45rem 0.72rem;
  border: 1px solid #adc6d8;
  border-radius: 999px;
  color: var(--color-navy);
  background: rgb(255 255 255 / 72%);
  font-size: var(--text-xs);
  font-weight: 800;
  text-decoration: none;
}

.section-nav a:hover {
  border-color: var(--color-sky);
  background: #fff;
}

.feature-state {
  margin-top: var(--space-4);
}

.feature-state p {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  background: #fff;
  font-size: var(--text-sm);
}

.feature-state [data-feature-state="available"] {
  border-color: #9bd2ba;
  background: var(--color-good-soft);
}

.feature-state [data-feature-state="unavailable"],
.feature-state [data-feature-state="disabled"] {
  border-color: #e4c47d;
  background: var(--color-amber-soft);
}

.state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.state-unavailable {
  color: #87530e;
  background: var(--color-amber-soft);
}

.state-disabled {
  color: #5e6671;
  background: #edf0f3;
}

.opening-grid {
  margin-top: var(--space-5);
}

.opening-grid > article h2,
.opening-grid > article h3 {
  margin-top: var(--space-4);
}

.pledge {
  align-items: center;
  color: #fff;
  border-color: #153e62;
  background: var(--color-navy);
}

.pledge .eyebrow {
  color: #76d9ee;
}

.pledge p:last-child {
  margin: 0;
  color: #d3e7f3;
  font-size: var(--text-lg);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  margin-top: var(--space-5);
}

.download-art {
  min-height: 21rem;
  padding: var(--space-5);
  background: var(--color-shell-raised);
}

.download-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.download-copy {
  align-self: center;
  padding: clamp(var(--space-5), 5vw, var(--space-7));
}

.download-copy h2 {
  margin-top: var(--space-4);
}

.release-meta {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.release-meta[hidden] {
  display: none;
}

.release-meta div {
  min-width: 0;
}

.release-meta dt {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-meta dd {
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
  color: var(--color-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: var(--text-sm);
}

.microcopy {
  margin: var(--space-4) 0 0;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.download-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: var(--space-5);
}

.download-ribbon h2,
.download-ribbon p {
  margin-bottom: var(--space-2);
}

.download-ribbon > div:last-child {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.compact-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.compact-steps li + li {
  margin-top: var(--space-2);
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-list details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fafdff;
}

.faq-list summary {
  padding: var(--space-4);
  color: var(--color-navy);
  font-weight: 850;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-muted);
}

.identity-rule {
  max-width: 19rem;
  flex: 0 0 auto;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.identity-rule strong,
.identity-rule span {
  display: block;
}

.identity-rule span {
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.account-boundaries {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.account-boundaries span {
  padding: 0.42rem 0.72rem;
  border: 1px solid #aac7d9;
  border-radius: 999px;
  color: var(--color-navy);
  background: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.content-grid.auth-wide {
  grid-template-columns: minmax(330px, 360px) minmax(0, 1fr);
}

.left-column,
.main-column {
  min-width: 0;
}

.auth-step-intro {
  display: grid;
  gap: var(--space-1);
}

.auth-step-intro strong {
  color: var(--color-navy);
}

.auth-form {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-5);
}

.auth-form label,
dialog label,
.publisher-form label {
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 800;
}

.auth-form input:not([type="hidden"]),
dialog input,
.publisher-form input,
.publisher-form select,
.publisher-form textarea {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  padding: 0.72rem 0.78rem;
  border: 1px solid #9eb4c4;
  border-radius: var(--radius-sm);
  background: #fff;
}

.auth-form input:focus,
dialog input:focus,
.publisher-form input:focus,
.publisher-form select:focus,
.publisher-form textarea:focus {
  border-color: var(--color-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(57 195 230 / 25%);
}

.auth-form label small,
dialog label small {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.turnstile-widget {
  width: 100%;
  min-width: 0;
  min-height: 4.1rem;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.discord-button {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: #fff;
  background: #5865f2;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.discord-button:hover {
  color: #fff;
  background: #4752c4;
}

.discord-mark {
  font-size: 1.1rem;
}

.fine-print,
.section-help,
.dialog-note {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.status-line {
  min-height: 1.4rem;
  color: var(--color-danger);
  font-size: var(--text-sm);
}

.member-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block: var(--space-5) var(--space-3);
}

.rank-orb {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid #d1f3fa;
  border-radius: 50%;
  color: #fff;
  background: var(--color-blue);
  font-weight: 900;
}

.member-summary strong,
.member-summary span {
  display: block;
}

.member-summary span {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--color-blue);
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.empty-state {
  padding: var(--space-7);
  border: 1px dashed #9eb5c5;
  border-radius: var(--radius-md);
  text-align: center;
  background: #edf4f8;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.identity-card small {
  color: #a8e1ee;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.identity-card h2,
.identity-card p {
  margin-bottom: 0;
}

.identity-card p {
  color: #c8dce9;
  font-size: var(--text-sm);
}

.verification-badge {
  flex: 0 0 auto;
  padding: 0.3rem 0.62rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  font-size: var(--text-xs);
}

.verification-badge.verified {
  border-color: #62c796;
  background: var(--color-good);
}

.game-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.game-slot {
  position: relative;
  min-width: 0;
  min-height: 10rem;
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.game-slot.empty {
  border-style: dashed;
  background: #f4f8fa;
}

.slot-number {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  color: #d8e3ea;
  font-size: 2.2rem;
  font-weight: 950;
}

.game-slot h3 {
  margin-top: var(--space-2);
}

.game-slot p {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.game-slot p strong,
.game-slot p span {
  display: block;
}

.game-slot p strong {
  margin-bottom: var(--space-1);
  color: var(--color-ink);
}

.game-account-action {
  margin-top: var(--space-3);
}

.login-id {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border-radius: 0.25rem;
  color: var(--color-navy);
  background: #e8f0f5;
  font-family: ui-monospace, Consolas, monospace;
}

.section-help {
  margin-top: var(--space-4);
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-amber);
}

dialog {
  width: min(29rem, calc(100% - 1.5rem));
  padding: 0;
  border: 1px solid #7393a9;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 48%);
}

dialog::backdrop {
  background: rgb(3 14 27 / 72%);
}

dialog form {
  padding: var(--space-5);
}

.dialog-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-line);
}

.dialog-title small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.dialog-title h2 {
  margin: var(--space-1) 0 0;
}

.dialog-title button {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.dialog-note {
  padding: var(--space-3);
  background: #e8f0f5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.admin-overview {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.publisher-form {
  display: grid;
  gap: var(--space-4);
  max-width: 49rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.publisher-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.form-actions p {
  margin: 0;
}

.operator-state {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-sky);
  color: var(--color-muted);
  background: #eef7fb;
}

.operator-queue {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.operator-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(20rem, 1.4fr) minmax(12rem, 0.8fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-amber);
  border-radius: var(--radius-sm);
  background: #fafdff;
}

.operator-identity h3,
.operator-identity p,
.operator-actions p {
  margin: 0;
}

.operator-identity p,
.operator-actions p {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.operator-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.operator-facts small,
.operator-facts strong {
  display: block;
}

.operator-facts small {
  color: var(--color-muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-facts strong {
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
}

.operator-actions {
  display: grid;
  justify-items: end;
  gap: var(--space-2);
  text-align: right;
}

.owner-account-form {
  max-width: none;
}

.owner-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-note {
  max-width: 56rem;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.owner-account-list-wrap {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.owner-account-list {
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
}

.owner-account-list article {
  display: grid;
  grid-template-columns: minmax(11rem, 1.3fr) repeat(3, minmax(7rem, 0.7fr));
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  color: var(--color-ink);
  background: #f3f8fb;
  border: 1px solid #d7e3ea;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.owner-account-list article div,
.owner-account-list article strong,
.owner-account-list article small {
  display: block;
}

.owner-account-list article small {
  color: var(--color-muted);
}

.owner-account-editor {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(8rem, 1fr)) auto minmax(9rem, 1fr);
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.65rem;
  border-top: 1px solid #d7e3ea;
}

.owner-account-editor select,
.owner-account-editor input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #bccfd9;
  border-radius: var(--radius-sm);
  background: #fff;
}

@media (max-width: 980px) {
  .owner-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 520px) {
  .owner-account-grid,
  .owner-account-list article,
  .owner-account-editor {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) repeat(2, minmax(8rem, 0.6fr));
  gap: var(--space-6);
  padding: var(--space-6) clamp(var(--space-4), 3vw, var(--space-7));
  color: #b8cddd;
  background: var(--color-shell);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong,
.site-footer nav strong {
  color: #fff;
}

.footer-brand span,
.fan-note {
  color: #88a3b7;
  font-size: var(--text-xs);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.site-footer nav a {
  color: #b8cddd;
  font-size: var(--text-sm);
}

.fan-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 10%);
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  }

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

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

  .admin-overview > article:nth-child(3) {
    border-right: 0;
  }

  .admin-overview > article:nth-child(n + 4) {
    border-top: 1px solid var(--color-line);
  }

  .operator-row {
    grid-template-columns: minmax(10rem, 0.7fr) minmax(18rem, 1.3fr);
  }

  .operator-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 780px) {
  .masthead {
    flex-wrap: wrap;
  }

  .service-line {
    order: 3;
    width: 100%;
  }

  .primary-nav {
    justify-content: center;
    padding-inline: var(--space-2);
  }

  .primary-nav a {
    flex: 1 1 6rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-orbit {
    width: 100%;
    max-height: 16rem;
    justify-self: stretch;
    object-fit: cover;
  }

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

  .status-board > div:nth-child(2),
  .admin-overview > article:nth-child(even) {
    border-right: 0;
  }

  .status-board > div:nth-child(n + 3),
  .admin-overview > article:nth-child(n + 3) {
    border-top: 1px solid var(--color-line);
  }

  .home-grid,
  .three-up,
  .opening-grid,
  .scope-grid,
  .step-grid,
  .two-column,
  .split-section,
  .download-panel,
  .content-grid,
  .game-slot-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.auth-wide {
    grid-template-columns: 1fr;
  }

  .symbol-grid {
    grid-template-columns: 1fr;
  }

  .left-column {
    order: 0;
  }

  .two-column > div + div {
    padding-top: var(--space-5);
    padding-left: 0;
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .page-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-nav {
    justify-content: flex-start;
    max-width: none;
  }

  .download-art {
    min-height: 15rem;
  }

  .download-ribbon {
    align-items: stretch;
    flex-direction: column;
  }

  .download-ribbon > div:last-child {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .operator-row {
    grid-template-columns: 1fr;
  }

  .operator-actions {
    grid-column: auto;
  }

  .footer-brand,
  .fan-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .masthead {
    gap: var(--space-3);
    padding-inline: var(--space-3);
  }

  .brand img {
    width: 2.75rem;
    height: 2.75rem;
  }

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

  .masthead-actions {
    width: 100%;
    margin-left: 0;
  }

  .masthead-actions .button {
    flex: 1;
  }

  .primary-nav a {
    flex-basis: 5.2rem;
    min-height: 2.7rem;
    padding-inline: var(--space-2);
    font-size: var(--text-xs);
  }

  .notice-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice-strip > span:not(.notice-label) {
    flex-basis: calc(100% - 6rem);
  }

  .notice-strip a {
    margin-left: 0;
  }

  .site-main {
    padding: var(--space-3);
  }

  .home-hero {
    margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-4);
    padding: var(--space-6) var(--space-4);
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 15vw, 4.1rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-orbit {
    max-height: 12rem;
  }

  .status-board,
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .status-board > div,
  .admin-overview > article,
  .status-board > div:nth-child(2),
  .admin-overview > article:nth-child(even) {
    border-right: 0;
  }

  .status-board > div + div,
  .admin-overview > article + article {
    border-top: 1px solid var(--color-line);
  }

  .page-heading h1 {
    font-size: clamp(2.25rem, 14vw, 3.5rem);
  }

  .content-section,
  .page-heading,
  .download-copy,
  .announcement-list,
  .opening-grid > article {
    padding: var(--space-4);
  }

  .section-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .identity-rule {
    max-width: none;
  }

  .account-boundaries span {
    flex: 1 1 100%;
  }

  .content-grid {
    gap: var(--space-4);
  }

  .identity-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav,
  .footer-brand,
  .fan-note {
    grid-column: 1;
  }

  .form-actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-facts,
  .operator-actions {
    grid-template-columns: 1fr;
  }

  .symbol-card {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .symbol-glyph {
    width: 3.5rem;
    height: 3.5rem;
  }

  .symbol-copy {
    grid-column: 1 / -1;
  }

  .operator-actions {
    justify-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

@media (prefers-contrast: more) {
  :root {
    --color-line: #768b9c;
    --color-muted: #364e61;
  }

  .button,
  .classic-button,
  .section-nav a {
    border-width: 2px;
  }
}

/* Prototype 0.00 portal shell */
.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  background: #e9f0f5;
}

.portal-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 228px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #d7e6f0;
  background:
    linear-gradient(180deg, rgb(4 17 33 / 94%), rgb(6 29 51 / 97%)),
    url("/assets/game/backdrop.jpg") 37% center / cover;
  border-right: 1px solid rgb(108 180 214 / 22%);
  box-shadow: 10px 0 34px rgb(2 13 26 / 14%);
}

.portal-brand {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1.3rem 1.35rem 1.1rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgb(126 191 220 / 17%);
}

.portal-brand:hover {
  color: #fff;
}

.portal-brand img {
  width: 178px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / 34%));
}

.portal-brand span {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-left: 0.15rem;
}

.portal-brand strong {
  color: #f7ac2e;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.portal-brand small {
  color: #93acbd;
  font-size: 0.68rem;
  font-weight: 750;
}

.portal-navigation {
  padding: 1.1rem 0.85rem 0.8rem;
}

.portal-navigation p {
  margin: 0 0 0.45rem;
  padding: 0 0.7rem;
  color: #67869b;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portal-navigation a {
  min-height: 45px;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  color: #c8d9e4;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
  transition: color 130ms ease, background-color 130ms ease, border-color 130ms ease;
}

.portal-navigation a span {
  color: #55798f;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.portal-navigation a:hover {
  color: #fff;
  background: rgb(40 105 143 / 25%);
}

.portal-navigation a[aria-current="page"] {
  color: #fff;
  border-color: rgb(67 186 224 / 30%);
  background: linear-gradient(90deg, rgb(27 115 164 / 65%), rgb(17 72 111 / 40%));
  box-shadow: inset 3px 0 #f3a52f;
}

.portal-navigation a[aria-current="page"] span {
  color: #f8c76f;
}

.portal-utility-navigation {
  display: grid;
  gap: 0.15rem;
  margin: auto 1.5rem 0;
  padding: 1rem 0 0.8rem;
  border-top: 1px solid rgb(126 191 220 / 14%);
}

.portal-utility-navigation a {
  padding: 0.34rem 0;
  color: #91aabb;
  font-size: 0.73rem;
  font-weight: 720;
  text-decoration: none;
}

.portal-utility-navigation a:hover,
.portal-utility-navigation a[aria-current="page"] {
  color: #fff;
}

.portal-fan-note {
  margin: 0;
  padding: 0.5rem 1.5rem 1.2rem;
  color: #5f7d91;
  font-size: 0.64rem;
  line-height: 1.5;
}

.portal-topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 228px;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  color: var(--color-ink);
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #d4e0e8;
  box-shadow: 0 8px 24px rgb(7 30 50 / 7%);
  backdrop-filter: blur(12px);
}

.topbar-identity,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.topbar-identity div {
  display: grid;
  line-height: 1.2;
}

.topbar-identity strong {
  color: #173a55;
  font-size: 0.85rem;
}

.topbar-identity small {
  color: #718695;
  font-size: 0.68rem;
}

.topbar-service-dot {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: #2b9a72;
  box-shadow: 0 0 0 4px #daf1e8;
}

.topbar-version {
  padding: 0.25rem 0.48rem;
  color: #8b5200;
  background: #fff0cd;
  border: 1px solid #f2d08d;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.portal-topbar .button {
  min-height: 38px;
  padding: 0.55rem 0.86rem;
  font-size: 0.78rem;
}

.portal-topbar .button-quiet {
  color: #1a5272;
  border-color: #aac8d9;
  background: #edf7fb;
}

.portal-topbar .button-quiet:hover {
  color: #123e58;
  background: #dff2f9;
}

.portal-topbar .state-badge {
  white-space: nowrap;
}

.portal-viewport {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 18px clamp(18px, 2.2vw, 32px) 0;
  background:
    linear-gradient(rgb(238 244 248 / 96%), rgb(238 244 248 / 96%)),
    url("/assets/game/bg-left.jpg") left top / auto 460px no-repeat;
}

.prototype-hero {
  position: relative;
  height: clamp(300px, 42vh, 360px);
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #071d35;
  border: 1px solid rgb(97 172 210 / 24%);
  border-radius: 1rem;
  box-shadow: 0 18px 42px rgb(5 26 45 / 18%);
}

.prototype-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%);
  content: "";
}

.prototype-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 2.4vw, 2.2rem);
  background: linear-gradient(95deg, #06182e 0%, #092b4c 74%, rgb(9 43 76 / 82%) 100%);
}

.prototype-hero-copy .eyebrow {
  color: #61d0ec;
}

.prototype-hero-copy h1 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: clamp(2.75rem, 3.8vw, 4.15rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-shadow: 0 6px 22px rgb(0 0 0 / 28%);
}

.prototype-hero-copy .hero-lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: #d4e6f1;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.45;
}

.prototype-hero-copy .hero-actions {
  margin-block: 0.8rem;
}

.prototype-hero-copy .hero-truth {
  color: #9fb9cb;
  line-height: 1.45;
}

.prototype-hero-copy .hero-truth strong {
  color: #f6c76f;
}

.prototype-hero-art {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #102d4c;
}

.hero-game-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 54% center;
}

.prototype-hero-art::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #092b4c 0%, transparent 18%, transparent 70%, rgb(2 13 26 / 25%) 100%);
  content: "";
}

.mobile-strip {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 0.85rem;
  display: flex;
  gap: 0.4rem;
  padding: 0.42rem 0.5rem;
  background: rgb(4 20 37 / 78%);
  border: 1px solid rgb(163 216 236 / 22%);
  border-radius: 0.7rem;
  backdrop-filter: blur(8px);
}

.mobile-strip img {
  width: 42px;
  height: 32px;
  object-fit: contain;
  image-rendering: auto;
}

.portal-viewport .status-board {
  margin: 12px 0;
  border-radius: 0.75rem;
}

.portal-viewport .status-board > div {
  padding: 0.72rem 0.95rem;
}

.prototype-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 12px;
}

.prototype-panel {
  min-height: 220px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.prototype-panel .board-header,
.prototype-panel .panel-title {
  min-height: 58px;
  padding: 0.75rem 1rem;
}

.prototype-panel .board-header h2 {
  font-size: 1.25rem;
}

.prototype-panel .announcement-list {
  min-height: 0;
  padding: 0.85rem 1rem;
}

.prototype-panel .announcement-list article {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: baseline;
}

.prototype-panel .announcement-list article + article {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.prototype-panel .announcement-list h3 {
  margin: 0;
  color: #173a55;
  font-size: 0.9rem;
}

.prototype-panel .announcement-list p {
  color: #637988;
  font-size: 0.76rem;
  line-height: 1.45;
}

.prototype-panel.account-panel > :not(.panel-title) {
  margin-inline: 1rem;
}

.prototype-panel .auth-step {
  margin-block: 1rem;
}

.prototype-panel .auth-step p {
  margin-bottom: 0.75rem;
}

.client-home-status {
  padding: 0.55rem 0.65rem;
  color: #536b7b !important;
  background: #edf3f6;
  border-left: 3px solid #74a3bd;
  border-radius: 0.25rem;
}

.portal-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 14px;
  padding: 0.6rem 0.15rem;
  color: #728896;
  border-top: 1px solid #d2dee6;
  font-size: 0.65rem;
}

.portal-footer span:first-child {
  color: #476678;
  font-weight: 800;
  white-space: nowrap;
}

@media (min-width: 1500px) {
  .portal-viewport {
    padding-inline: 38px;
  }

  .prototype-hero {
    min-height: 330px;
  }

  .prototype-hero-art,
  .hero-game-art {
    min-height: 330px;
  }
}

@media (max-width: 1120px) {
  .prototype-hero {
    grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
  }

  .topbar-identity small,
  .portal-topbar .state-badge {
    display: none;
  }
}

@media (max-width: 900px) {
  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow: visible;
  }

  .portal-brand {
    min-height: 78px;
    padding-block: 0.85rem;
  }

  .portal-brand img {
    width: 160px;
  }

  .portal-navigation {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.55rem 0.7rem 0.7rem;
  }

  .portal-navigation p,
  .portal-navigation a span,
  .portal-utility-navigation,
  .portal-fan-note {
    display: none;
  }

  .portal-navigation a {
    min-width: max-content;
    min-height: 38px;
    display: flex;
    padding: 0.45rem 0.75rem;
  }

  .portal-topbar {
    position: sticky;
    left: 0;
    height: 64px;
    padding-inline: 0.85rem;
  }

  .portal-viewport {
    padding: 14px 14px 0;
  }

  .prototype-hero {
    height: auto;
    min-height: 460px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 210px;
  }

  .prototype-hero-art,
  .hero-game-art {
    min-height: 210px;
  }
}

@media (max-width: 680px) {
  .topbar-identity div,
  .topbar-version,
  .portal-topbar .button-quiet {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .prototype-hero-copy {
    padding: 1.5rem;
  }

  .prototype-hero-copy h1 {
    font-size: clamp(2.5rem, 13vw, 3.65rem);
  }

  .portal-viewport .status-board,
  .prototype-home-grid {
    grid-template-columns: 1fr;
  }

  .portal-viewport .status-board > div {
    border-right: 0;
  }

  .prototype-panel .announcement-list article {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
