:root {
  --ink: #162022;
  --paper: #f7fbff;
  --muted: #607176;
  --line: rgba(22, 32, 34, 0.13);
  --vortex: #1e9e93;
  --leaf: #4faf68;
  --sun: #f2bd57;
  --coral: #e86f64;
  --blue: #3c7fd0;
  --night: #0b1519;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 54px);
  color: white;
  background: rgba(8, 17, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: #071113;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(100, 214, 177, 0.24);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: white;
  background: var(--night);
}

#heroScene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 49%, transparent 0 26%, rgba(7, 17, 19, 0.26) 48%, rgba(7, 17, 19, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 13, 15, 0.9), rgba(5, 13, 15, 0.68) 42%, rgba(5, 13, 15, 0.12) 78%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  padding: clamp(120px, 17vh, 190px) 0 120px clamp(20px, 6vw, 78px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.simple-flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #051112;
  background: linear-gradient(135deg, var(--sun), #78e0b5);
}

.hero-play {
  position: relative;
  min-height: 60px;
  padding: 16px 26px;
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 0 28px rgba(242, 189, 87, 0.55),
    0 0 56px rgba(120, 224, 181, 0.38);
  transform: translateY(0) scale(1);
  animation: heroPlayPulse 2.4s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.hero-play:hover,
.hero-play:focus-visible {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.04);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 0 34px rgba(242, 189, 87, 0.72),
    0 0 70px rgba(120, 224, 181, 0.52);
}

@keyframes heroPlayPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.24) inset,
      0 0 28px rgba(242, 189, 87, 0.55),
      0 0 56px rgba(120, 224, 181, 0.38);
  }
  50% {
    transform: translateY(-2px) scale(1.035);
    box-shadow:
      0 22px 46px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.3) inset,
      0 0 40px rgba(242, 189, 87, 0.78),
      0 0 78px rgba(120, 224, 181, 0.58);
  }
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.hero-status {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 24px;
  left: clamp(18px, 4vw, 54px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-status span {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(2, 10, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #ffffff;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.feature-band article {
  min-height: 260px;
  padding: clamp(28px, 5vw, 54px);
  background: #f2f8f6;
}

.feature-band article:nth-child(2) {
  background: #fff8ed;
}

.feature-band article:nth-child(3) {
  background: #eef5ff;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: white;
  background: var(--vortex);
  border-radius: 50%;
  font-size: 20px;
}

.feature-band article:nth-child(2) .feature-icon {
  background: var(--coral);
}

.feature-band article:nth-child(3) .feature-icon {
  background: var(--blue);
}

.feature-band p,
.creature-copy p,
.faction p,
.token-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  max-width: 880px;
  margin-bottom: 32px;
}

.factions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.faction {
  min-height: 380px;
  padding: clamp(34px, 6vw, 76px);
}

.faction.vortex {
  color: #082021;
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 189, 87, 0.32), transparent 28%),
    linear-gradient(135deg, #dff8ee, #f8fff8);
}

.faction.rogue {
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(232, 111, 100, 0.34), transparent 30%),
    linear-gradient(135deg, #121619, #273238);
}

.faction.rogue p {
  color: rgba(255, 255, 255, 0.76);
}

.token-panel {
  background: #fff7f1;
}

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

.token-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 32, 34, 0.1);
  border-radius: 8px;
}

.crown-system,
.ai-charge-panel {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
}

.crown-system {
  color: #172224;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 222, 0.78)),
    #fffaf0;
  border: 1px solid rgba(172, 123, 32, 0.18);
}

.crown-system .section-head {
  margin-bottom: 18px;
}

.crown-system .section-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.crown-system .section-head p:not(.eyebrow) {
  max-width: 740px;
  color: rgba(23, 34, 36, 0.72);
  line-height: 1.65;
}

.crown-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}

.crown-grid article {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 32, 34, 0.1);
  border-radius: 8px;
}

.crown-grid span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: #091719;
  background: var(--sun);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.crown-grid h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.crown-grid p {
  margin: 0;
  color: rgba(23, 34, 36, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.crown-grid code {
  font-size: 12px;
}

.ai-charge-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  color: white;
  background:
    linear-gradient(135deg, #122124, #263237);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-charge-panel h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.ai-charge-panel p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.ai-charge-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-charge-panel li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.ai-charge-panel strong,
.ai-charge-panel span {
  display: block;
}

.ai-charge-panel strong {
  color: #b9ffe7;
  font-size: 14px;
}

.ai-charge-panel span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.maturity-meter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: #142224;
  background:
    radial-gradient(circle at 10% 15%, rgba(120, 224, 181, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(243, 249, 246, 0.72));
  border: 1px solid rgba(22, 32, 34, 0.1);
  border-radius: 8px;
}

.maturity-meter h3 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.maturity-meter p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(20, 34, 36, 0.72);
  line-height: 1.65;
}

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

.maturity-stats div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 32, 34, 0.11);
  border-radius: 8px;
}

.maturity-stats span,
.maturity-stats strong {
  display: block;
}

.maturity-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.maturity-stats strong {
  margin-top: 8px;
  color: #0e1c1f;
  font-size: clamp(22px, 3vw, 34px);
}

.chain-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.chain-roadmap article {
  min-width: 0;
  padding: 18px;
  color: #132224;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 32, 34, 0.1);
  border-radius: 8px;
}

.chain-roadmap span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #061315;
  background: #78e0b5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.chain-roadmap h3 {
  margin: 0 0 8px;
}

.chain-roadmap p {
  margin: 0;
  color: rgba(19, 34, 36, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.problem-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 20px;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: white;
  background:
    radial-gradient(circle at 15% 20%, rgba(120, 224, 181, 0.2), transparent 30%),
    linear-gradient(135deg, #162326, #25323b);
  border-radius: 8px;
}

.problem-ledger h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.problem-ledger p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.problem-ledger ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-ledger li {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.problem-ledger strong,
.problem-ledger span {
  display: block;
}

.problem-ledger strong {
  color: #b9ffe7;
  font-size: 14px;
}

.problem-ledger span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 20px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  color: white;
  background:
    linear-gradient(135deg, rgba(12, 28, 31, 0.98), rgba(17, 43, 48, 0.94)),
    #101d20;
  border: 1px solid rgba(22, 32, 34, 0.12);
  border-radius: 8px;
}

.wallet-copy p:last-child {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.chain-console {
  display: grid;
  gap: 14px;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-row,
.address-box {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.status-row span,
.address-box span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.address-box code {
  display: block;
  margin-top: 8px;
  color: #b9ffe7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wallet-actions button {
  min-height: 44px;
  padding: 10px 12px;
  color: #061315;
  background: #f2bd57;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.wallet-actions button:nth-child(2) {
  background: #78e0b5;
}

.wallet-actions button:nth-child(3) {
  background: #9bc8ff;
}

.wallet-actions button:nth-child(4) {
  background: #ffffff;
}

.wallet-actions button:disabled {
  color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
}

.chain-message {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.yvc-player-guide,
.liquidity-panel,
.staking-panel {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: #142224;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 32, 34, 0.12);
  border-radius: 8px;
}

.yvc-player-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
}

.yvc-player-guide h3,
.liquidity-panel h3,
.staking-panel h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.yvc-player-guide p:not(.eyebrow),
.liquidity-panel p:not(.eyebrow),
.staking-panel p:not(.eyebrow) {
  color: rgba(20, 34, 36, 0.72);
  line-height: 1.6;
}

.yvc-player-guide .address-box {
  background: rgba(8, 20, 22, 0.08);
  border-color: rgba(8, 20, 22, 0.14);
}

.yvc-player-guide .address-box span {
  color: rgba(20, 34, 36, 0.62);
}

.yvc-player-guide .address-box code {
  color: #0f4b3b;
}

.yvc-player-guide ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yvc-player-guide li,
.liquidity-card {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 32, 34, 0.1);
  border-radius: 8px;
}

.yvc-player-guide strong,
.yvc-player-guide span {
  display: block;
}

.yvc-player-guide strong {
  color: #102326;
}

.yvc-player-guide span {
  margin-top: 5px;
  color: rgba(20, 34, 36, 0.68);
  line-height: 1.45;
}

.liquidity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pool-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: rgba(8, 20, 22, 0.07);
  border: 1px solid rgba(8, 20, 22, 0.12);
  border-radius: 8px;
}

.pool-actions h4 {
  margin: 0 0 6px;
  color: #102326;
  font-size: 20px;
}

.pool-actions p {
  margin: 0;
}

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

.pool-buttons button,
.stake-controls button {
  min-height: 44px;
  padding: 10px 12px;
  color: #061315;
  background: #78e0b5;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.pool-buttons button:nth-child(2),
.stake-controls button:nth-of-type(2) {
  background: #f2bd57;
}

.liquidity-card h4 {
  margin: 0 0 8px;
  color: #102326;
  font-size: 19px;
}

.liquidity-card p {
  margin: 0;
}

.liquidity-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.liquidity-stats span {
  display: block;
  padding: 10px;
  color: rgba(20, 34, 36, 0.68);
  background: rgba(8, 20, 22, 0.06);
  border-radius: 8px;
  font-size: 12px;
}

.liquidity-stats strong {
  display: block;
  margin-top: 4px;
  color: #102326;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.staking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 18px;
}

.stake-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(120px, 0.5fr));
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.stake-controls label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.stake-controls input {
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
  color: #102326;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(8, 20, 22, 0.18);
  border-radius: 8px;
  font: inherit;
}

.stake-message {
  min-height: 22px;
  margin: 12px 0 0;
}

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

.stake-stats div {
  min-width: 0;
  padding: 16px;
  background: rgba(8, 20, 22, 0.08);
  border: 1px solid rgba(8, 20, 22, 0.12);
  border-radius: 8px;
}

.stake-stats span,
.stake-stats strong {
  display: block;
}

.stake-stats span {
  color: rgba(20, 34, 36, 0.6);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.stake-stats strong {
  margin-top: 8px;
  color: #102326;
  font-size: clamp(20px, 2.4vw, 28px);
  overflow-wrap: anywhere;
}

.play-section {
  color: white;
  background: #111d20;
}

.agent-center {
  color: white;
  background:
    linear-gradient(135deg, #101b1e, #243039);
}

.agent-center .section-head p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.agent-service-grid,
.agent-download-grid {
  display: grid;
  gap: 14px;
}

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

.beta-console,
.donation-console,
.member-console {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.access-offers > div {
  grid-template-columns: 1fr;
}

.member-console {
  margin-bottom: 18px;
}

.beta-console {
  border-color: rgba(120, 224, 181, 0.5);
  background: linear-gradient(145deg, rgba(120, 224, 181, 0.13), rgba(255, 255, 255, 0.06));
}

.donation-console {
  border-color: rgba(242, 189, 87, 0.42);
}

.member-console code,
.beta-console code,
.donation-console code {
  color: #b9ffe7;
  overflow-wrap: anywhere;
}

.member-actions {
  display: grid;
  gap: 10px;
}

.member-actions label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.member-actions input {
  min-height: 42px;
  padding: 10px 12px;
  color: #0d1a1d;
  background: white;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

.member-actions button {
  min-height: 44px;
  padding: 10px 12px;
  color: #061315;
  background: #f2bd57;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.member-actions button:nth-of-type(2) {
  background: #78e0b5;
}

#memberAccessMessage {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

#betaSignupMessage,
#donationMessage {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

#generatedBetaCode {
  display: none;
  padding: 12px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
}

#generatedBetaCode.has-code {
  display: block;
}

#generatedMemberCode {
  display: none;
  padding: 12px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
}

.member-unlocked #generatedMemberCode {
  display: block;
}

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

.agent-service-grid article {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.agent-service-grid span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #061315;
  background: #78e0b5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.agent-service-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.agent-download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.members-locked .download-tile {
  opacity: 0.48;
  filter: grayscale(0.6);
}

.community-section {
  color: #122022;
  background: #f4fbff;
}

.community-section .section-head p:not(.eyebrow) {
  max-width: 860px;
  color: rgba(18, 32, 34, 0.74);
  line-height: 1.65;
}

.community-grid,
.community-downloads {
  display: grid;
  gap: 14px;
}

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

.community-grid article {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 32, 34, 0.11);
  border-radius: 8px;
}

.community-grid span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #061315;
  background: var(--sun);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.community-grid p {
  margin: 0;
  color: rgba(18, 32, 34, 0.72);
  line-height: 1.55;
}

.community-downloads {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.launcher-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(242, 189, 87, 0.16), rgba(120, 224, 181, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.launcher-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.launcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

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

.download-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 158, 147, 0.24), rgba(60, 127, 208, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.download-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  background: #071113;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(100, 214, 177, 0.22);
}

.download-tile span {
  display: block;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-tile strong {
  display: block;
  margin-top: 28px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #071011;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-copy {
    padding-top: 142px;
  }

  .intro-grid,
  .feature-band,
  .factions,
  .token-grid,
  .crown-grid,
  .ai-charge-panel,
  .maturity-meter,
  .chain-roadmap,
  .problem-ledger,
  .wallet-panel,
  .yvc-player-guide,
  .pool-actions,
  .staking-panel,
  .access-offers,
  .beta-console,
  .donation-console,
  .member-console,
  .agent-service-grid,
  .agent-download-grid,
  .community-grid,
  .community-downloads,
  .launcher-panel,
  .play-grid {
    grid-template-columns: 1fr;
  }

  .status-list,
  .maturity-stats,
  .liquidity-grid,
  .wallet-actions,
  .pool-buttons,
  .stake-controls,
  .stake-stats {
    grid-template-columns: 1fr 1fr;
  }

  .creature-copy {
    padding: 0 24px 28px;
  }

  .variant-sheet {
    position: relative;
    top: auto;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .hero-copy {
    width: calc(100% - 24px);
    padding-left: 16px;
  }

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

  .status-list,
  .maturity-stats,
  .wallet-actions,
  .pool-buttons,
  .stake-controls,
  .stake-stats {
    grid-template-columns: 1fr;
  }

  .liquidity-grid,
  .liquidity-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-play {
    animation: none;
    transition: none;
  }

  .hero-play:hover,
  .hero-play:focus-visible {
    transform: none;
  }
}
