:root {
  color-scheme: light;
  --grass: #5fcb4d;
  --grass-2: #a7e957;
  --deep: #12351d;
  --deep-2: #1f5f2e;
  --leaf: #2e8f3e;
  --mint: #dfffd1;
  --sky: #bdefff;
  --cream: #fffbe7;
  --soil: #8b5a2b;
  --bg: #e9ffd6;
  --panel: rgba(255, 251, 231, 0.86);
  --panel-2: rgba(229, 255, 213, 0.88);
  --text: #12351d;
  --ink: #12351d;
  --muted: #315e39;
  --line: rgba(18, 53, 29, 0.2);
  --green: #5fcb4d;
  --green-dark: #2e8f3e;
  --gold: #f1c95a;
  --blue: #287fb3;
  --brown: #c5763d;
  --button-shadow: 7px 7px 0 rgba(18, 53, 29, 0.18);
  --button-shadow-hover: 9px 9px 0 rgba(18, 53, 29, 0.18);
  --card-shadow: 12px 16px 0 rgba(18, 53, 29, 0.14);
  --shadow: 0 22px 70px rgba(18, 53, 29, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(45deg, rgba(18, 53, 29, 0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(18, 53, 29, 0.07) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(18, 53, 29, 0.07) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(18, 53, 29, 0.07) 75%),
    linear-gradient(180deg, var(--sky) 0%, #efffdc 34%, #9fe36c 100%);
  background-size: 34px 34px, 34px 34px, 34px 34px, 34px 34px, auto;
  background-position: 0 0, 0 17px, 17px -17px, -17px 0, 0 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 40px;
  border-bottom: 4px solid rgba(31, 95, 46, 0.16);
  background: rgba(229, 255, 213, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.wallet-connect,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  font-size: 24px;
  color: var(--deep);
  letter-spacing: -0.03em;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  border: 4px solid var(--deep);
  border-radius: 12px;
  background: url("/assets/gamegmeta-logo.png?v=chest-logo-20260618b") center / cover no-repeat;
  box-shadow: 6px 6px 0 rgba(18, 53, 29, 0.18);
}

.nav-links {
  gap: 8px;
}

.header-menu {
  position: relative;
  display: none;
}

.header-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--deep);
  border-radius: 14px;
  padding: 0;
  color: var(--deep);
  background: var(--cream);
  font: inherit;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(18, 53, 29, 0.18);
}

.header-menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: 168px;
  padding: 10px;
  border: 4px solid var(--deep);
  border-radius: 18px;
  background: rgba(255, 251, 231, 0.96);
  box-shadow: var(--card-shadow);
}

.header-menu-panel[hidden] {
  display: none;
}

.header-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 3px solid rgba(18, 53, 29, 0.22);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--deep);
  background: #e9ffd6;
  font-size: 13px;
  font-weight: 900;
}

.nav-links a {
  width: 126px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  text-align: center;
}

.nav-links svg,
.button svg,
.wallet-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-connect {
  gap: 10px;
  min-width: 0;
}

.wallet-connect[data-wallet-state="connected"] {
  gap: 8px;
}

.wallet-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wallet-connect[data-wallet-state="connected"] .wallet-identity {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
}

.nav-links a,
.button,
.wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--deep);
  border-radius: 18px;
  padding: 12px 16px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 950;
  background: var(--cream);
  box-shadow: var(--button-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.button:hover,
.wallet-button:hover {
  transform: translate(-2px, -2px);
  border-color: var(--deep);
  box-shadow: var(--button-shadow-hover);
}

.nav-links a.is-disabled,
.nav-links a[aria-disabled="true"] {
  opacity: 0.58;
  border-color: rgba(18, 53, 29, 0.28);
  color: rgba(18, 53, 29, 0.58);
  background: rgba(255, 251, 231, 0.56);
  pointer-events: none;
  transform: none;
  box-shadow: 4px 4px 0 rgba(18, 53, 29, 0.1);
}

.wallet-button {
  cursor: pointer;
}

.wallet-button[data-wallet-connected="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-color: var(--deep);
  color: #f1fff0;
  background: linear-gradient(180deg, var(--grass-2), var(--leaf));
}

.wallet-button[data-wallet-connected="true"] svg {
  width: 22px;
  height: 22px;
}

.wallet-game-icon {
  display: block;
}

.wallet-game-icon-back,
.wallet-game-icon-front,
.wallet-game-icon-pocket {
  fill: none;
  stroke: #effff0;
  stroke-width: 1.8;
  shape-rendering: crispEdges;
}

.wallet-game-icon-dot {
  fill: #effff0;
  shape-rendering: crispEdges;
}

.wallet-address {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

.wallet-connect[data-wallet-state="connected"] .wallet-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border: 3px solid var(--deep);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--grass-2), var(--leaf));
  max-width: 128px;
  color: #effff0;
  font-size: 12px;
  line-height: 1.1;
  box-shadow: var(--button-shadow);
}

.wallet-connect[data-standard-state="connected"] .wallet-address {
  display: none;
}

.wallet-button[data-standard-connected="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-color: var(--deep);
  color: #f1fff0;
  background: linear-gradient(180deg, var(--grass-2), var(--leaf));
}

.auth-login-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(239, 247, 233, 0.16);
}

.auth-login-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d1914;
  background: #eaf7e2;
  font-size: 12px;
  font-weight: 900;
}

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

.wallet-coins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 3px solid var(--deep);
  border-radius: 18px;
  padding: 0 12px;
  color: var(--deep);
  background: var(--gold);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: var(--button-shadow);
}

.wallet-connect[data-wallet-state="connected"] .wallet-coins {
  min-height: 42px;
  border-color: var(--deep);
  box-shadow: var(--button-shadow);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(520px, 1.38fr);
  align-items: center;
  gap: 40px;
  max-width: 1700px;
  margin: 0 auto;
  padding: 48px 40px 56px;
}

.hero h1,
.section-copy h2,
.system-panel h2 {
  margin: 0;
  color: var(--text);
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.94;
}

.hero p,
.section-copy p,
.system-panel p {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.button.primary {
  background: linear-gradient(180deg, var(--grass-2), var(--grass));
  color: #0d2b16;
  border-color: var(--deep);
}

.button.secondary {
  background: var(--cream);
}

.world-section,
.agent-section,
.cli-section,
.mvp-flow-section,
.loop-section,
.home-data-section,
.systems-section {
  max-width: 1700px;
  margin: 0 auto;
  padding: 78px 40px;
}

.mvp-flow-section {
  border-top: 4px solid rgba(18, 53, 29, 0.14);
  border-bottom: 4px solid rgba(18, 53, 29, 0.14);
  background: rgba(255, 251, 231, 0.44);
}

.mvp-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.mvp-flow-grid article {
  min-height: 170px;
  border: 4px solid var(--deep);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 251, 231, 0.84);
  box-shadow: 8px 10px 0 rgba(18, 53, 29, 0.12);
}

.mvp-flow-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 950;
}

.mvp-flow-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.mvp-flow-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mvp-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.agent-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  gap: 36px;
  align-items: start;
  border-top: 4px solid rgba(18, 53, 29, 0.14);
  border-bottom: 4px solid rgba(18, 53, 29, 0.14);
}

.world-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: 36px;
  align-items: start;
}

.cli-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: 36px;
  align-items: start;
  border-top: 4px solid rgba(18, 53, 29, 0.14);
}

.section-copy h2,
.agent-copy h2,
.system-panel h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-copy h1,
.agent-copy h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0;
}

.agent-copy h1 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
}

.agent-copy p {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cli-panel {
  display: grid;
  gap: 18px;
  border: 4px solid var(--deep);
  border-radius: 28px;
  background: rgba(255, 251, 231, 0.86);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.cli-command-group {
  display: grid;
  gap: 10px;
}

.cli-command-group strong {
  color: var(--leaf);
  font-size: 13px;
  text-transform: uppercase;
}

.cli-command-group p,
.cli-command-group a {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cli-command-group a {
  width: fit-content;
  color: var(--deep-2);
  font-weight: 900;
}

.cli-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
}

.cli-command-row.compact {
  max-width: 260px;
}

.cli-command-row code,
.cli-command-group p code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 10px;
  border: 2px solid rgba(18, 53, 29, 0.18);
  border-radius: 12px;
  color: #e9ffd6;
  background: #13281a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.25;
}

.cli-command-group p code {
  display: inline;
  padding: 3px 6px;
}

.copy-command-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border: 3px solid var(--deep);
  border-radius: 12px;
  color: var(--deep);
  background: var(--cream);
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(18, 53, 29, 0.12);
}

.copy-command-button:hover {
  border-color: var(--deep);
  color: var(--deep);
  background: var(--gold);
}

.copy-command-button[data-copy-state="copied"] {
  border-color: var(--deep);
  color: #effff0;
  background: var(--leaf);
}

.copy-command-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.cli-followup-grid {
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: start;
}

.cli-followup-grid strong,
.cli-followup-grid a {
  grid-column: 1 / -1;
}

.agent-panel {
  border: 4px solid var(--deep);
  border-radius: 28px;
  background: rgba(255, 251, 231, 0.86);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.agent-link-page {
  min-height: calc(100svh - 72px);
  align-items: center;
}

.agent-panel-head,
.agent-actions,
.agent-permissions {
  display: flex;
  align-items: center;
}

.agent-panel-head {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 3px solid rgba(18, 53, 29, 0.14);
}

.agent-panel-head strong {
  display: block;
  font-size: 22px;
  color: var(--deep);
}

.agent-panel-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.agent-status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9aa8a5;
  box-shadow: 0 0 0 4px rgba(154, 168, 165, 0.14);
}

.agent-panel[data-agent-status="connecting"] .agent-status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(241, 201, 90, 0.18);
}

.agent-panel[data-agent-status="connected"] .agent-status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(139, 208, 92, 0.18);
}

.agent-panel[data-agent-status="error"] .agent-status-dot {
  background: #ef7669;
  box-shadow: 0 0 0 4px rgba(239, 118, 105, 0.18);
}

.agent-field {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.agent-field span,
.agent-session-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-field input {
  width: 100%;
  min-height: 48px;
  border: 3px solid rgba(18, 53, 29, 0.24);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 15px;
}

.agent-field input:focus {
  outline: 3px solid rgba(95, 203, 77, 0.32);
  outline-offset: 2px;
}

.agent-permissions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.agent-permissions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 3px solid rgba(18, 53, 29, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--deep);
  background: #e9ffd6;
  font-size: 14px;
  font-weight: 800;
}

.agent-permissions input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.agent-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.agent-actions .button {
  cursor: pointer;
}

.agent-session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.agent-session-grid div {
  min-width: 0;
  border: 3px solid rgba(18, 53, 29, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(233, 255, 214, 0.74);
}

.agent-session-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--deep);
  font-size: 14px;
}

.demo-frame,
.world-frame {
  position: relative;
  min-height: 620px;
  border: 5px solid var(--deep);
  border-radius: 32px;
  background: #6fd25d;
  overflow: hidden;
  box-shadow: 18px 22px 0 rgba(18, 53, 29, 0.18), var(--shadow);
  padding: 12px;
}

.hero-demo {
  min-height: 520px;
}

.demo-frame iframe,
.world-frame iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  border-radius: 22px;
  background: #89df5b;
}

.demo-icon-card {
  width: min(100%, 760px);
  min-height: 320px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  gap: 34px;
  padding: 24px;
  border: 4px solid var(--deep);
  border-radius: 28px;
  background: rgba(255, 251, 231, 0.88);
  box-shadow: var(--card-shadow);
}

.demo-icon-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex-wrap: nowrap;
}

.demo-icon-button {
  width: 56px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--deep);
  border-radius: 18px;
  color: var(--deep);
  background: var(--cream);
  box-shadow: 5px 5px 0 rgba(18, 53, 29, 0.16);
}

.demo-icon-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-icon-button.is-fullscreen {
  color: #fff7f0;
  background: linear-gradient(180deg, #c7413b, #9d2628);
  box-shadow: 5px 5px 0 rgba(18, 53, 29, 0.2);
}

.demo-icon-button.is-wallet {
  color: #f4fff0;
  background: linear-gradient(180deg, var(--grass-2), var(--leaf));
}

.demo-icon-button.is-share {
  color: var(--deep);
  background: var(--gold);
}

.demo-icon-button.is-send {
  color: var(--deep);
  background: var(--sky);
}

.demo-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 78px;
  border: 4px solid var(--deep);
  border-radius: 18px;
  color: #fff7f0;
  background: linear-gradient(#a53a35, #8d2424);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translate(-50%, -50%);
  box-shadow: 8px 8px 0 rgba(18, 53, 29, 0.24), 0 12px 32px rgba(0, 0, 0, 0.18);
}

.demo-icon-card .demo-play-button {
  display: inline-flex;
}

.hero-demo .demo-play-button {
  display: none;
}

.demo-play-button:hover {
  border-color: rgba(255, 180, 172, 0.95);
  transform: translate(-50%, calc(-50% - 1px));
}

.demo-fullscreen-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  min-height: 36px;
  border: 3px solid var(--deep);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--deep);
  background: var(--gold);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.demo-fullscreen-button:hover {
  border-color: var(--deep);
  background: var(--cream);
}

.world-frame {
  border-color: var(--deep);
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.loop-steps article,
.system-panel,
.systems-grid div {
  border: 4px solid var(--deep);
  border-radius: 24px;
  background: rgba(255, 251, 231, 0.84);
  box-shadow: 8px 10px 0 rgba(18, 53, 29, 0.12);
}

.loop-steps article {
  padding: 24px;
}

.loop-steps span {
  color: var(--leaf);
  font-weight: 950;
  font-size: 13px;
}

.loop-steps h3 {
  margin: 26px 0 10px;
  font-size: 26px;
}

.loop-steps p,
.systems-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.systems-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  padding-bottom: 96px;
}

.system-panel {
  padding: 32px;
}

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

.systems-grid div {
  padding: 24px;
}

.systems-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 18px;
}

.systems-grid span {
  display: block;
  font-size: 15px;
}

.home-data-section {
  border-top: 4px solid rgba(18, 53, 29, 0.14);
}

.home-data-panel {
  margin-top: 28px;
  border: 4px solid var(--deep);
  border-radius: 28px;
  background: rgba(255, 251, 231, 0.86);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.home-data-head,
.home-data-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-data-head {
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 3px solid rgba(18, 53, 29, 0.14);
}

.home-data-head strong {
  color: var(--deep);
  font-size: 18px;
}

.home-data-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.home-data-toolbar {
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 3px solid rgba(18, 53, 29, 0.14);
  background: rgba(233, 255, 214, 0.72);
}

.home-filter-button {
  min-height: 38px;
  border: 3px solid rgba(18, 53, 29, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--deep);
  background: var(--cream);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.home-filter-button:hover,
.home-filter-button.active {
  border-color: var(--deep);
  color: var(--deep);
  background: var(--gold);
}

.home-table-wrap {
  max-height: 680px;
  overflow: auto;
}

.home-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.home-data-table th,
.home-data-table td {
  border-bottom: 1px solid rgba(18, 53, 29, 0.16);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.home-data-table th {
  color: var(--deep);
  background: rgba(167, 233, 87, 0.44);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-data-table td {
  color: #315e39;
  font-size: 14px;
  line-height: 1.45;
}

.home-data-table tr:hover td {
  background: rgba(95, 203, 77, 0.12);
}

.home-asset-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(18, 53, 29, 0.18);
  border-radius: 12px;
  background: #e9ffd6;
}

.home-asset-thumb img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}

.home-pill,
.home-ggm {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.home-pill {
  border: 2px solid rgba(18, 53, 29, 0.16);
  color: var(--deep);
  background: #e9ffd6;
}

.home-ggm {
  border: 2px solid rgba(18, 53, 29, 0.18);
  color: var(--deep);
  background: var(--gold);
}

.home-asset-name,
.home-event-name {
  color: var(--deep);
  font-weight: 900;
}

.home-state-text {
  color: #315e39;
  font-size: 13px;
}

.home-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.home-state-card {
  border: 4px solid var(--deep);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 251, 231, 0.84);
  box-shadow: 8px 10px 0 rgba(18, 53, 29, 0.12);
}

.home-state-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: 15px;
}

.home-state-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px 40px;
  border-top: 4px solid rgba(18, 53, 29, 0.14);
  color: var(--mint);
  background: var(--deep);
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 18px;
  }

  .header-menu {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .cli-section,
  .agent-section,
  .world-section,
  .mvp-flow-section,
  .home-data-section,
  .systems-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 18px;
    gap: 16px;
  }
  .agent-section,
  .cli-section,
  .world-section,
  .mvp-flow-section,
  .loop-section,
  .home-data-section,
  .systems-section {
    padding: 54px 18px;
  }

  .loop-steps,
  .mvp-flow-grid,
  .home-state-grid,
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cli-followup-grid {
    grid-template-columns: 1fr;
  }

  .cli-command-row.compact {
    max-width: 100%;
  }

  .hero-demo,
  .demo-frame,
  .world-frame {
    min-height: 0;
  }

  .demo-frame iframe,
  .world-frame iframe {
    height: min(72svh, 560px);
  }

  .world-frame iframe {
    height: min(64svh, 520px);
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 56px;
    padding: 8px 10px;
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px auto;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .wallet-connect {
    gap: 6px;
    justify-self: end;
  }

  .wallet-connect[data-wallet-state="connected"] {
    gap: 6px;
  }

  .wallet-connect[data-wallet-state="connected"] .wallet-identity {
    gap: 6px;
    padding: 0;
  }

  .wallet-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .wallet-connect-button {
    display: none;
  }

  .header-menu {
    justify-self: center;
  }

  .header-menu-button {
    width: 38px;
    height: 38px;
  }

  .header-menu-panel {
    right: -72px;
    width: 158px;
  }

  .wallet-connect[data-wallet-state="connected"] .wallet-address {
    display: inline-flex;
    max-width: 84px;
    min-height: 34px;
    font-size: 10px;
  }

  .wallet-connect:not([data-wallet-state="connected"]) .wallet-address,
  .wallet-connect:not([data-wallet-state="connected"]) .wallet-coins {
    display: none;
  }

  .wallet-connect[data-wallet-state="connected"] .wallet-coins {
    display: inline-flex;
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 78px 10px 26px;
    gap: 18px;
    align-items: start;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
    width: 100%;
  }

  .hero h1 {
    max-width: 340px;
    font-size: clamp(30px, 9.5vw, 40px);
    line-height: 0.96;
  }

  .hero p,
  .agent-copy p,
  .section-copy p,
  .system-panel p {
    font-size: 16px;
  }

  .button,
  .agent-actions .button {
    width: auto;
    text-align: center;
  }

  .hero-actions {
    margin-top: 0;
    width: 100%;
  }

  .hero-actions .button {
    justify-content: center;
    min-width: 180px;
    min-height: 44px;
    padding: 0 16px;
    white-space: nowrap;
  }

  .hero-demo {
    aspect-ratio: 16 / 9;
    min-height: 0;
    width: 100%;
    margin-top: 10px;
  }

  .demo-icon-card {
    width: 100%;
    min-height: 230px;
    gap: 24px;
    padding: 12px;
  }

  .demo-icon-toolbar {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .demo-icon-button {
    width: clamp(38px, 10.2vw, 44px);
    height: clamp(38px, 10.2vw, 44px);
    flex: 0 0 auto;
  }

  .demo-icon-button svg {
    width: 21px;
    height: 21px;
  }

  .demo-play-button {
    display: inline-flex;
    min-width: 138px;
    min-height: 58px;
    font-size: 19px;
    opacity: 0.6;
  }

  .hero-demo .demo-play-button {
    display: none;
  }

  .demo-frame iframe {
    height: 100%;
  }

  .demo-fullscreen-button {
    right: 50%;
    top: 50%;
    min-width: 96px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 16px;
    transform: translate(50%, -50%);
  }

  .agent-session-grid {
    grid-template-columns: 1fr;
  }

  .mvp-flow-grid,
  .loop-steps,
  .home-state-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .mvp-flow-grid article {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .world-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .world-frame {
    min-height: 0;
  }

  .world-frame iframe {
    height: min(58svh, 480px);
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .site-header {
    position: static;
    min-height: 48px;
    padding: 6px 10px;
  }

  .hero {
    min-height: calc(100svh - 48px);
    grid-template-columns: minmax(170px, 0.32fr) minmax(0, 0.68fr);
    gap: 10px;
    padding: 10px;
  }

  .hero h1 {
    font-size: clamp(24px, 4.8vw, 40px);
  }

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

  .hero-demo {
    aspect-ratio: 16 / 9;
    min-height: 0;
    align-self: stretch;
  }

  .demo-icon-card {
    min-height: 100%;
    gap: 18px;
    padding: 10px;
  }

  .demo-icon-button {
    width: 40px;
    height: 38px;
  }

  .demo-icon-button svg {
    width: 19px;
    height: 19px;
  }

  .demo-play-button {
    display: inline-flex;
    min-width: 124px;
    min-height: 50px;
    font-size: 16px;
    opacity: 0.6;
  }

  .hero-demo .demo-play-button {
    display: none;
  }

  .hero-demo iframe {
    height: 100%;
  }
}
