:root {
  --sky-top: #66c2ff;
  --sky-mid: #b8eaff;
  --sky-bottom: #eff8ff;
  --grass-light: #78c04d;
  --grass-dark: #4f8a2e;
  --dirt-light: #7b5635;
  --dirt-dark: #4d321d;
  --stone: #6c727f;
  --stone-dark: #3d434d;
  --panel-top: rgba(57, 39, 24, 0.96);
  --panel-bottom: rgba(34, 24, 15, 0.98);
  --panel-soft: rgba(34, 44, 29, 0.94);
  --text: #f9f6ef;
  --muted: #dfd2bb;
  --ink: #18130c;
  --ink-soft: #2b2116;
  --gold: #f5c25a;
  --gold-deep: #d8891c;
  --leaf: #97d860;
  --leaf-deep: #4f8a2e;
  --danger: #cb4b3b;
  --shadow: 0 8px 0 var(--ink-soft), 0 22px 30px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 18%, var(--sky-bottom) 30%, #87b85c 30%, #6f9e45 34%, #5c4027 34%, #3e2918 62%, #23170f 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 4px, transparent 4px 100%),
    linear-gradient(rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 100%);
  background-size: 48px 48px;
  opacity: 0.08;
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, transparent 18%),
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.5), transparent 10%),
    radial-gradient(circle at 72% 10%, rgba(255, 255, 255, 0.4), transparent 12%);
  opacity: 0.55;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  position: relative;
  z-index: 1;
}

.block-panel {
  position: relative;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bottom) 100%);
  box-shadow: var(--shadow);
}

.block-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.site-header,
.hero,
.command-strip,
.content-section,
.site-footer {
  margin-top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(73, 114, 47, 0.96), rgba(47, 72, 31, 0.98));
}

.header-tools,
.header-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-auth-guest,
.header-auth-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

[hidden] {
  display: none !important;
}

.header-auth-user[hidden],
.header-auth-guest[hidden],
.auth-banner[hidden],
.auth-card[hidden],
.security-panel[hidden],
.settings-panel[hidden],
.mfa-setup-box[hidden],
.mfa-disable-box[hidden] {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-text strong,
.site-nav a,
.menu-toggle,
.eyebrow,
.button,
.card-label,
.command-card span,
.join-grid span,
.profile-card-top,
.profile-grid span {
  font-family: "Silkscreen", sans-serif;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text span {
  color: rgba(249, 246, 239, 0.78);
  font-size: 0.86rem;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav a.is-current {
  color: var(--gold);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

.button-small {
  min-height: auto;
  padding: 0.75rem 0.95rem;
  font-size: 0.68rem;
}

.button-tertiary {
  background: linear-gradient(180deg, rgba(90, 108, 137, 0.96), rgba(54, 65, 86, 0.99));
  color: var(--text);
  box-shadow: 0 4px 0 rgba(20, 26, 36, 0.88);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 2.9rem;
  padding: 0.7rem 0.9rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(90, 108, 137, 0.96), rgba(54, 65, 86, 0.99));
  color: var(--text);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.header-account-toggle {
  min-width: 0;
  cursor: pointer;
}

.account-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chevron {
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 auto;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease, margin 180ms ease;
  margin-top: -0.25rem;
}

.header-account-toggle[aria-expanded="true"] .account-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.header-account-toggle:hover,
.header-account-toggle:focus-visible {
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, #f7d973 0%, #d8952a 100%);
  color: #24190e;
  padding: 0.75rem 1rem;
  font-size: 0.74rem;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(36, 25, 14, 0.65);
}

.site-main {
  display: grid;
  gap: 1rem;
}

.account-shell {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-1rem);
  pointer-events: none;
  margin-bottom: -1rem;
  transition:
    grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease,
    margin-bottom 220ms ease;
}

.account-shell > * {
  min-height: 0;
}

.account-shell.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-bottom: 0;
}

.account-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(49, 63, 87, 0.96), rgba(28, 36, 50, 0.99));
}

.account-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.is-authenticated .account-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

body.is-authenticated .account-copy {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

body.is-authenticated .account-copy h2 {
  max-width: none;
}

.account-copy h2,
.auth-card h3,
.settings-heading h3,
.settings-card h4 {
  font-family: "Silkscreen", sans-serif;
}

.account-copy h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.2;
}

.account-text,
.auth-card p,
.account-notes strong,
.settings-heading p,
.settings-card p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-banner {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.auth-banner.is-success {
  background: linear-gradient(180deg, rgba(110, 145, 72, 0.96), rgba(62, 94, 36, 0.99));
  color: #f4fbe9;
}

.auth-banner.is-error {
  background: linear-gradient(180deg, rgba(171, 78, 65, 0.96), rgba(112, 42, 33, 0.99));
  color: #fff2ef;
}

.account-notes {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.account-notes article,
.auth-card {
  border: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.account-notes article {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.auth-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(57, 74, 44, 0.96), rgba(34, 45, 26, 0.99));
  transition: transform 120ms steps(2, end), box-shadow 120ms steps(2, end), border-color 120ms steps(2, end);
}

.auth-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.auth-card p {
  margin: 0 0 0.2rem;
}

.auth-card label {
  display: grid;
  gap: 0.35rem;
}

.auth-card label span {
  font-family: "Silkscreen", sans-serif;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-card input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 4px solid var(--ink);
  background: rgba(17, 22, 15, 0.72);
  color: var(--text);
  font: inherit;
}

.auth-card input::placeholder {
  color: rgba(223, 210, 187, 0.72);
}

.auth-card input:disabled,
.auth-card button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-card input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 194, 90, 0.18);
}

.auth-card .button {
  width: 100%;
  margin-top: 0.2rem;
}

.auth-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 194, 90, 0.18), 0 4px 0 rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.security-panel,
.settings-panel {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(55, 67, 89, 0.96), rgba(32, 39, 54, 0.99));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

body.is-authenticated .settings-panel,
body.is-authenticated .security-panel {
  margin-top: 0;
  align-self: stretch;
}

body.is-authenticated .settings-panel {
  order: 1;
}

body.is-authenticated .security-panel {
  order: 2;
}

.security-heading h3,
.settings-heading h3,
.security-card h4,
.settings-card h4 {
  margin: 0;
  line-height: 1.3;
}

.security-heading p,
.security-card p,
.settings-heading p,
.settings-card p,
.mfa-copy {
  color: var(--muted);
  line-height: 1.7;
}

.security-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.security-card,
.settings-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.settings-card {
  align-content: start;
}

.settings-card-danger {
  background: linear-gradient(180deg, rgba(126, 52, 42, 0.98), rgba(85, 30, 24, 1));
}

.security-card label,
.settings-card label {
  display: grid;
  gap: 0.35rem;
}

.security-card label span,
.settings-card label span {
  font-family: "Silkscreen", sans-serif;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.security-card input,
.settings-card input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 4px solid var(--ink);
  background: rgba(17, 22, 15, 0.72);
  color: var(--text);
  font: inherit;
}

.security-card input::placeholder,
.settings-card input::placeholder {
  color: rgba(223, 210, 187, 0.72);
}

.security-card input:focus,
.settings-card input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 194, 90, 0.18);
}

.mfa-secret {
  display: block;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: rgba(17, 22, 15, 0.72);
  color: #f5e8ac;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.mfa-qr-shell {
  display: grid;
  place-items: center;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.9) 25%, rgba(241, 238, 227, 0.9) 25%, rgba(241, 238, 227, 0.9) 50%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.9) 75%, rgba(241, 238, 227, 0.9) 75%, rgba(241, 238, 227, 0.9) 100%);
  background-size: 18px 18px;
}

.mfa-qr-image {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  image-rendering: pixelated;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.tagline-card h3,
.feature-card h3,
.roadmap-card h3,
.join-copy h2 {
  font-family: "Silkscreen", sans-serif;
  line-height: 1.25;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.hero-text,
.story-card p,
.feature-card p,
.roadmap-card p,
.join-copy p,
.command-card p,
.site-footer p,
.mini-list li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 1.25rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.2rem;
  border: 4px solid var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  transition: transform 120ms steps(2, end), box-shadow 120ms steps(2, end);
}

.button:hover,
.button:focus-visible {
  transform: translateY(2px);
}

.button-primary {
  background: linear-gradient(180deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #15200c;
  box-shadow: 0 4px 0 #243514;
}

.button-secondary {
  background: linear-gradient(180deg, #76675a 0%, #4b3e34 100%);
  color: var(--text);
  box-shadow: 0 4px 0 #251a14;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.7rem 0.85rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(110, 124, 143, 0.9), rgba(62, 68, 79, 0.98));
  color: var(--text);
  font-size: 0.86rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.24);
}

.hero-stage {
  display: flex;
}

.profile-card {
  width: 100%;
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(40, 51, 31, 0.94), rgba(26, 34, 22, 0.98));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.06);
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.72rem;
}

.profile-card-top p {
  margin: 0;
}

.status-dot {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--danger);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(203, 75, 59, 0.18);
}

.status-dot.is-linked {
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(151, 216, 96, 0.18);
}

.profile-main {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.skin-display {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(71, 84, 100, 0.96), rgba(49, 58, 71, 0.99));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.06);
}

.skin-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 16rem;
  overflow: hidden;
  border: 4px solid var(--ink);
  background:
    linear-gradient(180deg, #9bd0ff 0%, #d5efff 40%, #86ca5d 40%, #75b04d 56%, #5a3c27 56%, #402818 100%);
}

.skin-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 18px, transparent 18px 100%),
    linear-gradient(rgba(255, 255, 255, 0.08) 0 18px, transparent 18px 100%);
  background-size: 18px 18px;
  opacity: 0.12;
}

.skin-image {
  position: relative;
  z-index: 1;
  width: min(100%, 14rem);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.skin-empty-state {
  position: relative;
  z-index: 1;
  width: min(12rem, 100%);
  margin: 0;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: rgba(37, 48, 33, 0.9);
  color: var(--text);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.skin-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-summary {
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.04);
}

.profile-summary h2 {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  max-width: 100%;
  font-size: clamp(0.82rem, 1.35vw, 1.08rem);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-link-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.profile-link-form {
  display: grid;
  gap: 0.8rem;
}

.profile-link-request {
  padding: 0.85rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(71, 84, 100, 0.96), rgba(49, 58, 71, 0.99));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.05);
}

.profile-link-request p {
  margin: 0 0 0.7rem;
}

.profile-link-code {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.8rem;
  border: 4px solid var(--ink);
  background: rgba(21, 29, 24, 0.92);
  color: var(--gold);
  font-family: "Silkscreen", sans-serif;
  font-size: 0.76rem;
  line-height: 1.6;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.profile-grid article,
.command-card,
.story-card,
.tagline-card,
.feature-card,
.roadmap-card,
.join-grid article {
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.profile-grid article {
  padding: 0.8rem;
}

.profile-grid span,
.card-label,
.join-grid span {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-grid strong,
.join-grid strong {
  color: var(--text);
}

.command-strip,
.content-section,
.site-footer {
  padding: 1.1rem;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  background: linear-gradient(180deg, rgba(58, 88, 37, 0.97), rgba(42, 58, 26, 0.99));
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(56, 73, 39, 0.98), rgba(31, 40, 24, 1));
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1rem;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(50, 64, 84, 0.98), rgba(26, 33, 45, 1));
}

.platform-hero-text {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}

.platform-access-card {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(48, 58, 74, 0.98), rgba(27, 34, 45, 1));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.05);
}

.platform-access-card h2 {
  margin: 0;
  font-size: 1rem;
}

.access-checklist {
  display: grid;
  gap: 0.8rem;
}

.access-checklist article,
.forum-card,
.thread-card,
.comment-card,
.sidebar-card {
  padding: 0.95rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.access-checklist article {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.access-checklist span {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, #fbe89a 0%, #efb84f 100%);
  color: #17210e;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.72rem;
}

.access-checklist strong {
  grid-column: 2;
  display: block;
  color: var(--text);
}

.access-checklist p {
  grid-column: 2;
  margin: 0.35rem 0 0;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.forum-card h3,
.thread-card h3,
.sidebar-card h3 {
  margin: 0;
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.thread-column,
.comment-thread,
.platform-sidebar,
.message-list {
  display: grid;
  gap: 0.8rem;
}

.featured-thread {
  background: linear-gradient(180deg, rgba(80, 58, 95, 0.96), rgba(52, 37, 63, 0.98));
}

.thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: rgba(249, 246, 239, 0.7);
  font-size: 0.78rem;
}

.thread-meta .card-label {
  margin: 0;
}

.thread-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.thread-reactions button {
  padding: 0.55rem 0.7rem;
  border: 3px solid var(--ink);
  background: rgba(16, 22, 27, 0.42);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.nested-comment {
  margin-left: 1.5rem;
  background: linear-gradient(180deg, rgba(64, 50, 39, 0.96), rgba(42, 31, 23, 0.98));
}

.message-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border: 3px solid rgba(24, 19, 12, 0.85);
  background: rgba(16, 22, 27, 0.46);
}

.message-row strong {
  color: var(--text);
}

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

.message-row.is-active {
  border-color: var(--gold);
  background: rgba(58, 72, 92, 0.58);
}

.dm-thread {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.dm-thread p {
  margin: 0;
  padding: 0.8rem;
  border: 3px solid rgba(24, 19, 12, 0.85);
  background: rgba(16, 22, 27, 0.42);
}

.dm-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.dm-compose input {
  min-height: 3rem;
}

.platform-workspace,
.admin-shell {
  gap: 1.5rem;
}

.floating-mailbox {
  position: fixed;
  top: 6.5rem;
  right: 1.5rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  border: 1px solid rgba(131, 183, 255, 0.34);
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.96), rgba(8, 16, 31, 0.98));
  color: #e6f2ff;
  box-shadow: 0 18px 36px rgba(3, 8, 16, 0.35);
}

.floating-mailbox-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
}

.floating-mailbox-icon svg {
  width: 100%;
  height: 100%;
}

.floating-mailbox-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.1rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #ff7d6a;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.25rem;
}

.mailbox-panel {
  position: fixed;
  top: 10.8rem;
  right: 1.5rem;
  z-index: 29;
  width: min(24rem, calc(100vw - 2rem));
  max-height: 70vh;
  overflow: auto;
}

.mailbox-actions,
.mailbox-list,
.message-board-list {
  display: grid;
  gap: 0.85rem;
}

.mailbox-item,
.message-board-item {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(131, 183, 255, 0.2);
  background: rgba(8, 16, 31, 0.58);
}

.mailbox-item.is-unread {
  border-color: rgba(131, 183, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(131, 183, 255, 0.18);
}

.mailbox-item-top,
.message-board-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.mailbox-item-top span,
.message-board-top span,
.message-board-item p {
  color: rgba(214, 231, 255, 0.72);
}

.instant-message-board {
  margin-top: 1.2rem;
}

.inbox-heading {
  margin-top: 1.35rem;
}

.platform-shell,
.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.platform-shell {
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
}

.platform-column,
.admin-card {
  background:
    linear-gradient(180deg, rgba(13, 25, 44, 0.92), rgba(8, 16, 31, 0.96)),
    rgba(8, 16, 31, 0.92);
  border: 1px solid rgba(131, 183, 255, 0.24);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.platform-panel-heading,
.forum-compose-actions,
.forum-thread-card-top,
.forum-thread-card-meta,
.admin-thread-controls,
.admin-stat-grid {
  display: flex;
  gap: 0.75rem;
}

.platform-panel-heading,
.forum-thread-card-top,
.forum-thread-card-meta {
  justify-content: space-between;
  align-items: flex-start;
}

.platform-panel-heading {
  margin-bottom: 1rem;
}

.platform-panel-heading h3 {
  margin: 0;
}

.platform-panel-heading p,
.forum-thread-card p,
.forum-category-card p,
.thread-detail-empty,
.platform-access-message {
  color: rgba(214, 231, 255, 0.76);
}

.forum-category-list,
.forum-thread-list,
.admin-thread-list {
  display: grid;
  gap: 1rem;
}

.forum-category-card,
.forum-thread-card,
.thread-detail-card,
.forum-compose-card,
.admin-thread-card {
  border: 1px solid rgba(131, 183, 255, 0.2);
  border-radius: 18px;
  background: rgba(8, 16, 31, 0.68);
}

.forum-category-card,
.thread-detail-card,
.forum-compose-card,
.admin-thread-card {
  padding: 1rem;
}

.forum-thread-card {
  padding: 1rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.forum-thread-card.is-active {
  border-color: rgba(131, 183, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(131, 183, 255, 0.24);
}

.forum-thread-card h3,
.forum-category-card h3,
.admin-thread-card h3 {
  margin: 0.5rem 0;
}

.forum-thread-card-top span:last-child,
.forum-thread-card-meta span {
  font-size: 0.85rem;
  color: rgba(214, 231, 255, 0.7);
}

.forum-compose-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.forum-compose-card label,
.forum-comment-form label,
.admin-card label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.forum-compose-card textarea,
.forum-comment-form textarea,
.forum-compose-card input,
.forum-compose-card select,
.admin-card input,
.admin-card textarea {
  width: 100%;
}

.forum-inline-message {
  margin: 0;
  min-height: 1.25rem;
  color: rgba(214, 231, 255, 0.78);
}

.forum-inline-message.is-error {
  color: #ff8d8d;
}

.forum-inline-message.is-success {
  color: #93f0b1;
}

.platform-access-message.is-ready {
  color: #93f0b1;
}

.access-checklist article.is-met {
  border-color: rgba(147, 240, 177, 0.35);
}

.thread-detail-card .thread-card {
  margin-bottom: 1rem;
}

.thread-page-shell {
  display: grid;
}

.thread-page-detail {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.forum-comment-form {
  margin-top: 1rem;
}

.thread-reactions button.is-active {
  border-color: rgba(131, 183, 255, 0.56);
  color: #dff1ff;
}

.admin-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
}

.admin-stat-grid {
  flex-wrap: wrap;
}

.admin-stat-grid article {
  min-width: 7rem;
  flex: 1 1 7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(8, 16, 31, 0.6);
  border: 1px solid rgba(131, 183, 255, 0.2);
}

.admin-stat-grid span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 231, 255, 0.62);
}

.admin-stat-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.5rem;
}

.admin-thread-controls {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.admin-thread-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: rgba(214, 231, 255, 0.82);
}

.admin-account-report {
  margin-top: 1.5rem;
}

.admin-account-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.admin-card-subsection {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(131, 183, 255, 0.2);
  background: rgba(8, 16, 31, 0.56);
}

.admin-card-subsection h4 {
  margin: 0 0 0.85rem;
}

.admin-activity-list {
  display: grid;
  gap: 0.75rem;
}

.admin-activity-item {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(131, 183, 255, 0.14);
  background: rgba(8, 16, 31, 0.46);
}

.admin-activity-item strong,
.admin-activity-item p {
  margin: 0;
}

.admin-activity-item p + p,
.admin-activity-item strong + p {
  margin-top: 0.35rem;
}

@media (max-width: 1200px) {
  .platform-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .forum-compose-grid,
  .admin-grid,
  .admin-account-grid {
    grid-template-columns: 1fr;
  }

  .floating-mailbox {
    top: auto;
    bottom: 1rem;
    right: 1rem;
  }

  .mailbox-panel {
    top: auto;
    right: 1rem;
    bottom: 5.5rem;
    width: min(24rem, calc(100vw - 2rem));
  }
}

.market-hero-text {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}

.market-snapshot {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(42, 58, 35, 0.98), rgba(24, 31, 20, 1));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.05);
}

.market-snapshot-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.72rem;
}

.market-snapshot-header p {
  margin: 0;
  color: var(--text);
}

.market-snapshot-grid,
.market-grid,
.trade-flow-grid {
  display: grid;
  gap: 0.8rem;
}

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

.market-snapshot-grid article,
.market-card,
.trade-flow-card,
.exchange-book,
.exchange-mid,
.market-ticker-card {
  padding: 0.95rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(86, 61, 39, 0.96), rgba(56, 38, 24, 0.98));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.market-snapshot-grid span,
.market-card span,
.trade-flow-card span,
.market-ticker-card span,
.exchange-book span,
.exchange-mid span {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-snapshot-grid strong,
.market-card h3,
.trade-flow-card h3,
.market-ticker-card strong,
.exchange-book strong,
.exchange-mid strong {
  color: var(--text);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(65, 88, 43, 0.98), rgba(41, 57, 28, 1));
}

.market-ticker-card p,
.market-card p,
.trade-flow-card p,
.exchange-mid p {
  margin-bottom: 0;
}

.market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.chart-deck {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.chart-selector {
  display: grid;
  gap: 0.7rem;
}

.chart-search-shell,
.chart-select-shell {
  display: grid;
  gap: 0.45rem;
}

.chart-search-shell span,
.chart-select-shell span {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-search,
.chart-item-select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(68, 84, 53, 0.96), rgba(42, 54, 31, 0.99));
  color: var(--text);
  font: inherit;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.chart-search::placeholder {
  color: rgba(249, 246, 239, 0.58);
}

.chart-item-select {
  min-height: 24rem;
  padding-right: 0.5rem;
}

.chart-search:focus,
.chart-item-select:focus,
.chart-search:hover,
.chart-item-select:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.chart-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(33, 44, 52, 0.98), rgba(20, 26, 31, 1));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.05);
}

.chart-panel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.chart-panel-top h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.chart-subtitle,
.chart-footnote {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 0.7rem;
}

.chart-stats article {
  padding: 0.75rem;
  border: 3px solid rgba(24, 19, 12, 0.85);
  background: rgba(16, 22, 27, 0.66);
}

.chart-stats span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-stats strong {
  color: var(--text);
}

.chart-stats strong.is-negative {
  color: #ff978a;
}

.chart-surface {
  height: 21rem;
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at top, rgba(100, 172, 224, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(16, 22, 27, 0.96), rgba(11, 16, 20, 1));
  overflow: hidden;
}

.chart-stage {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  height: 100%;
}

.chart-y-axis {
  display: grid;
  align-content: stretch;
  color: rgba(249, 246, 239, 0.74);
  font-size: 0.78rem;
  border-right: 3px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 18, 22, 0.55);
}

.chart-y-axis span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.7rem;
}

.chart-canvas {
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

#chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-area {
  fill: rgba(74, 196, 120, 0.18);
}

.chart-line {
  fill: none;
  stroke: #82e28a;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-crosshair {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.chart-hover-dot {
  fill: #f5c25a;
  stroke: #18130c;
  stroke-width: 4;
}

.chart-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  display: grid;
  gap: 0.15rem;
  min-width: 7rem;
  padding: 0.6rem 0.75rem;
  border: 3px solid var(--ink);
  background: rgba(18, 25, 31, 0.96);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.chart-tooltip strong {
  color: var(--gold);
  font-size: 0.9rem;
}

.chart-tooltip span {
  color: var(--text);
  font-size: 0.76rem;
}

.chart-axis {
  display: grid;
  grid-template-columns: 5rem repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  color: rgba(249, 246, 239, 0.7);
  font-size: 0.82rem;
}

.chart-axis span:first-child {
  color: transparent;
}

.chart-axis-titles {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trade-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.exchange-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.exchange-book,
.exchange-mid {
  display: grid;
  gap: 0.7rem;
}

.exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border: 3px solid rgba(24, 19, 12, 0.85);
  background: rgba(25, 18, 12, 0.4);
}

.exchange-row span {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
}

.exchange-mid {
  align-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(65, 83, 102, 0.98), rgba(41, 52, 66, 1));
}

.exchange-mid h3,
.market-card h3,
.trade-flow-card h3 {
  margin: 0;
}

.command-card {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(110, 130, 61, 0.94), rgba(66, 86, 38, 0.98));
}

.command-card span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #17210e;
  font-size: 0.8rem;
  background: linear-gradient(180deg, #fbe89a 0%, #efb84f 100%);
  padding: 0.45rem 0.55rem;
  border: 3px solid rgba(36, 25, 14, 0.9);
}

.section-heading h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.45rem, 3.4vw, 2.4rem);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.story-card,
.tagline-card,
.feature-card,
.roadmap-card,
.join-grid article {
  padding: 1.2rem;
}

.tagline-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.mini-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.mini-list li + li {
  margin-top: 0.55rem;
}

.feature-grid,
.roadmap-grid,
.join-panel {
  margin-top: 1.2rem;
}

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

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card h3,
.roadmap-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p,
.roadmap-card p {
  margin-bottom: 0;
}

.join-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(48, 58, 79, 0.96), rgba(31, 37, 51, 0.99));
}

.join-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.join-copy h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.5rem, 3.8vw, 2.5rem);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.join-grid article {
  background: linear-gradient(180deg, rgba(98, 104, 122, 0.96), rgba(57, 62, 77, 0.98));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(88, 65, 43, 0.96), rgba(55, 38, 24, 0.99));
}

.toast-root {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem 1rem 1.1rem;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, rgba(171, 78, 65, 0.98), rgba(112, 42, 33, 1));
  color: #fff5f2;
  box-shadow: 0 8px 0 rgba(45, 14, 10, 0.45);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 160ms ease, transform 180ms ease;
  overflow: hidden;
  pointer-events: auto;
}

.toast-success {
  background: linear-gradient(180deg, rgba(104, 150, 70, 0.98), rgba(58, 96, 38, 1));
  color: #f5fbea;
  box-shadow: 0 8px 0 rgba(23, 50, 15, 0.42);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(0.35rem);
}

.toast-title {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toast-message {
  margin: 0;
  line-height: 1.6;
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.22rem;
  background: rgba(255, 255, 255, 0.98);
  transform-origin: left center;
  animation: toast-progress linear forwards;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

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

  .button,
  .account-shell,
  .auth-card,
  .security-card,
  .settings-card,
  .account-chevron,
  .toast {
    transition: none;
  }

  .toast-progress {
    animation: none;
    transform: scaleX(0);
  }
}

@media (max-width: 980px) {
  .account-section,
  .auth-grid,
  .security-grid,
  .settings-grid,
  .hero,
  .story-layout,
  .join-panel,
  .roadmap-grid,
  .command-strip {
    grid-template-columns: 1fr;
  }

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

  .profile-main,
  .profile-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-auth {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-auth-user {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-account-toggle {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 4px solid var(--ink);
    background: linear-gradient(180deg, rgba(73, 114, 47, 0.98), rgba(47, 72, 31, 1));
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero h1,
  .account-copy h2,
  .section-heading h2,
  .join-copy h2 {
    max-width: none;
  }

  .market-hero,
  .platform-hero,
  .market-strip,
  .chart-deck,
  .forum-grid,
  .platform-layout,
  .market-grid,
  .trade-flow-grid,
  .exchange-board {
    grid-template-columns: 1fr;
  }

  .chart-stage {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .chart-axis {
    grid-template-columns: 4.25rem repeat(5, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero,
  .command-strip,
  .content-section,
  .site-footer {
    padding: 0.9rem;
  }

  .hero-actions,
  .button,
  .header-auth,
  .header-auth-user,
  .header-account-toggle,
  .join-grid,
  .profile-grid {
    width: 100%;
  }

  .hero-actions,
  .header-auth,
  .header-auth-user,
  .join-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-tags {
    flex-direction: column;
  }

  .hero-tags li {
    width: 100%;
  }

  .join-grid {
    display: grid;
  }

  .toast-root {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
  }
}
