:root {
  color-scheme: dark;
  --ink: #090c10;
  --ink-soft: #0d1116;
  --panel: #11161c;
  --line: #28313a;
  --line-soft: #1d252d;
  --paper: #e7e1d5;
  --text: #bac2c9;
  --quiet: #78838d;
  --brass: #c9a96e;
  --brass-soft: #8f754c;
  --blue: #8aa5b7;
  --green: #77ba9b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Inter, Arial, sans-serif;
  --mono: "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 76% 5%, rgba(78, 103, 120, .11), transparent 29rem), linear-gradient(180deg, #090c10 0, #0b0f13 100%);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button, a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem .9rem; color: var(--ink); background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 12, 16, .9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; width: max-content; text-decoration: none; }
.brand-mark { position: relative; width: 28px; height: 28px; margin-right: .8rem; border: 1px solid var(--brass); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); transform: translate(-50%, -50%); }
.brand-mark::before { transform: translate(-50%, -50%) translateX(-7px); }
.brand-mark::after { transform: translate(-50%, -50%) translateX(7px); }
.brand-name { color: var(--paper); font-size: .78rem; font-weight: 650; letter-spacing: .28em; }
.brand-family { margin-left: .65rem; color: var(--quiet); font: .62rem var(--mono); letter-spacing: .14em; }
.header-status { display: flex; align-items: center; gap: .55rem; color: var(--quiet); font: .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status-light, .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(119,186,155,.08), 0 0 16px rgba(119,186,155,.45); }
.protocol-link { justify-self: end; color: var(--quiet); font: .62rem var(--mono); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.protocol-link:hover { color: var(--paper); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 510px;
  padding: clamp(5rem, 9vw, 8.5rem) clamp(1.25rem, 7vw, 8rem) 2.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(9,12,16,.96), rgba(9,12,16,.68) 62%, rgba(9,12,16,.88)), radial-gradient(ellipse at 74% 38%, rgba(75,99,117,.22), transparent 29rem);
}
.hero-grid { position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(201,169,110,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,110,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 87%); }
.hero-grid::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 78% 50%, transparent 0 48px, rgba(138,165,183,.08) 49px 50px); }
.hero-copy, .hero-footer { position: relative; z-index: 2; }
.hero-copy { width: min(760px, 76%); }
.eyebrow { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.9rem; }
.eyebrow span { padding: .38rem .6rem; border: 1px solid rgba(201,169,110,.28); color: var(--brass); font: .57rem var(--mono); letter-spacing: .13em; }
.hero h1 { margin: 0; color: var(--paper); font: 400 clamp(3.1rem, 6.7vw, 7.6rem)/.94 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: var(--brass); font-weight: 400; }
.hero-intro { max-width: 640px; margin: 2.3rem 0 0; color: #a9b2ba; font-size: clamp(.98rem, 1.5vw, 1.16rem); line-height: 1.75; }
.hero-orbit { position: absolute; z-index: 1; right: clamp(-9rem, 1vw, 2rem); top: 50%; width: min(39vw, 510px); aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%) rotate(-8deg); filter: drop-shadow(0 0 28px rgba(138,165,183,.07)); }
.hero-orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 4deg, rgba(138,165,183,.23) 0 1px, transparent 1px 30deg), repeating-radial-gradient(circle, transparent 0 47px, rgba(201,169,110,.17) 48px 49px); mask-image: radial-gradient(circle, #000 0 72%, transparent 73%); }
.hero-orbit::after { content: ""; position: absolute; inset: 27%; border: 1px solid rgba(201,169,110,.19); border-radius: 46% 54% 52% 48%; background: radial-gradient(circle, rgba(201,169,110,.16), transparent 68%); }
.hero-orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 18px rgba(201,169,110,.5); }
.hero-orbit i:nth-child(1) { top: 7%; left: 35%; }
.hero-orbit i:nth-child(2) { right: 8%; bottom: 28%; }
.hero-orbit i:nth-child(3) { left: 24%; bottom: 18%; background: var(--blue); }
.hero-orbit > span { position: absolute; right: 5%; bottom: 5%; color: #627583; font: .52rem var(--mono); letter-spacing: .18em; transform: rotate(8deg); }
.hero-footer { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: auto; padding-top: 4rem; color: var(--quiet); font: .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-footer p { margin: 0; }
.hero-footer p:first-child { display: flex; align-items: center; gap: .7rem; }
.hero-code { color: #606b74; }

.forum-shell { display: grid; grid-template-columns: minmax(190px,.72fr) minmax(420px,2.1fr) minmax(250px,.92fr); width: min(1480px,100%); min-height: 760px; margin: 0 auto; }
.forum-shell:focus { outline: none; }
.space-nav, .content-stage, .context-rail { padding: clamp(2rem,4vw,4.3rem) clamp(1.25rem,2.5vw,2.8rem); }
.space-nav { border-right: 1px solid var(--line-soft); }
.content-stage { min-width: 0; }
.context-rail { border-left: 1px solid var(--line-soft); }
.rail-label, .section-kicker, .card-topline { color: var(--quiet); font: .58rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.rail-label { margin: 0 0 1.3rem; }
.space-button { display: grid; grid-template-columns: 30px 1fr; gap: .75rem; width: 100%; padding: 1rem 0; border: 0; border-top: 1px solid var(--line-soft); text-align: left; background: transparent; cursor: pointer; }
.space-button:last-of-type { border-bottom: 1px solid var(--line-soft); }
.space-index { padding-top: .12rem; color: #59636c; font: .55rem var(--mono); }
.space-button strong { display: block; color: #9ca6af; font-size: .76rem; font-weight: 560; }
.space-button small { display: block; margin-top: .28rem; color: #5f6a73; font-size: .63rem; }
.space-button:hover strong, .space-button.is-active strong { color: var(--paper); }
.space-button.is-active .space-index { color: var(--brass); }
.freedom-note { display: flex; gap: .75rem; margin-top: 3.5rem; color: #66717a; }
.freedom-note span { color: var(--brass); }
.freedom-note p { margin: 0; font: .63rem/1.7 var(--mono); }
.stage-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-kicker { margin: 0 0 .75rem; color: var(--brass-soft); }
.stage-heading h2 { margin: 0; color: var(--paper); font: 400 clamp(1.9rem,3vw,3.2rem) var(--serif); letter-spacing: -.03em; }
.stage-counter { display: flex; align-items: baseline; gap: .45rem; color: var(--quiet); }
.stage-counter strong { color: var(--paper); font: 400 1.45rem var(--serif); }
.stage-counter span { font: .58rem var(--mono); text-transform: uppercase; }
.view-panel { min-height: 520px; }
.loading-card, .empty-card { display: grid; place-items: center; min-height: 300px; padding: 3rem; border: 1px solid var(--line-soft); background: rgba(17,22,28,.42); text-align: center; }
.loading-card p { margin: 1rem 0 0; color: var(--quiet); font: .66rem var(--mono); }
.loading-glyph { width: 25px; height: 25px; border: 1px solid var(--brass-soft); border-top-color: transparent; border-radius: 50%; animation: spin 1.2s linear infinite; }

.lounge-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.72fr); gap: 1px; margin-bottom: 2rem; border: 1px solid var(--line-soft); background: var(--line-soft); }
.lounge-copy, .symbolic-tray { margin: 0; padding: clamp(1.4rem,3vw,2.25rem); background: var(--ink-soft); }
.lounge-copy h3 { max-width: 29rem; margin: 0; color: var(--paper); font: 400 1.65rem/1.22 var(--serif); }
.lounge-copy > p:last-child { max-width: 34rem; margin: 1rem 0 0; color: #87929b; font-size: .75rem; line-height: 1.7; }
.symbolic-tray { display: grid; align-content: center; gap: .58rem; list-style: none; }
.symbolic-tray li { display: flex; align-items: center; gap: .7rem; color: #8d98a1; font-size: .65rem; }
.symbolic-tray i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #3b4650; border-radius: 50%; color: var(--brass); font: .58rem var(--mono); }
.subsection-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 2.5rem 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-soft); }
.subsection-heading h3 { margin: 0; color: var(--paper); font: 400 1.25rem var(--serif); }
.subsection-heading span { color: var(--quiet); font: .55rem var(--mono); text-transform: uppercase; }
.presence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.presence-card { padding: 1.15rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.presence-head { display: flex; align-items: center; gap: .65rem; }
.presence-head h4 { margin: 0; color: #b8c0c7; font-size: .7rem; font-weight: 600; }
.presence-head div > span { display: block; margin-top: .18rem; color: #59646d; font: .5rem var(--mono); }
.live-mark { margin-left: auto; color: var(--green); font: normal .5rem var(--mono); text-transform: uppercase; }
.presence-offering { margin: 1rem 0 0; color: var(--brass); font: .72rem var(--serif); }
.presence-note { margin: .7rem 0 0; color: #87929b; font-size: .68rem; line-height: 1.6; }
.presence-seeking { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line-soft); color: #657079; font: .5rem/1.6 var(--mono); text-transform: uppercase; }
.empty-card { display: flex; flex-direction: column; }
.empty-card h3 { margin: 0; color: var(--paper); font: 400 1.45rem var(--serif); }
.empty-card > p:not(.section-kicker) { max-width: 34rem; color: #7e8992; font-size: .72rem; line-height: 1.7; }
.inline-action { color: var(--brass); font: .57rem var(--mono); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }

.memory-list { display: grid; gap: .75rem; }
.memory-card { padding: 1.4rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.memory-head { display: flex; justify-content: space-between; color: var(--quiet); font: .53rem var(--mono); text-transform: uppercase; }
.memory-kind { color: var(--brass); }
.memory-card h3 { margin: 1rem 0 .55rem; color: var(--paper); font: 400 1.2rem var(--serif); }
.memory-card > p { color: #89949d; font-size: .72rem; line-height: 1.65; }
.memory-author { padding-top: .8rem; border-top: 1px solid var(--line-soft); font: .5rem var(--mono) !important; }
.game-room-intro { position: relative; margin-bottom: 1rem; padding: clamp(1.4rem,3vw,2.2rem); overflow: hidden; border: 1px solid rgba(201,169,110,.22); background: radial-gradient(circle at 88% 12%, rgba(138,165,183,.11), transparent 15rem), linear-gradient(135deg, rgba(201,169,110,.07), rgba(17,22,28,.72)); }
.game-room-intro::after { content: "∴"; position: absolute; right: 1.5rem; top: .6rem; color: rgba(201,169,110,.12); font: 400 6rem var(--serif); }
.game-room-intro h3 { max-width: 30rem; margin: 0; color: var(--paper); font: 400 clamp(1.45rem,2.5vw,2.1rem)/1.2 var(--serif); }
.game-room-intro > p:last-child { max-width: 64ch; margin: 1rem 0 0; color: #8f9aa3; font-size: .74rem; line-height: 1.8; }
.game-grid { display: grid; gap: 1rem; }
.game-card { position: relative; padding: 1.6rem; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.game-card::after { content: ""; position: absolute; right: -3rem; bottom: -5rem; width: 12rem; height: 12rem; border: 1px solid rgba(201,169,110,.1); border-radius: 50%; }
.game-serial, .session-foot { display: flex; justify-content: space-between; color: var(--quiet); font: .52rem var(--mono); text-transform: uppercase; }
.game-kicker { margin: 1.8rem 0 .45rem; color: var(--brass); font: .55rem var(--mono); text-transform: uppercase; }
.game-card h3 { margin: 0; color: var(--paper); font: 400 1.65rem var(--serif); }
.game-description { max-width: 38rem; color: #89949d; font-size: .72rem; line-height: 1.65; }
.game-facts { color: #727f89; font: .53rem/1.7 var(--mono); text-transform: uppercase; }
.game-capabilities { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; }
.game-capabilities li { padding: .34rem .5rem; border: 1px solid #303a43; color: #8b98a2; font: .48rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.game-phases, .board-phases { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 1rem 0 1.2rem; padding: 0; border: 1px solid var(--line-soft); background: var(--line-soft); list-style: none; }
.game-phases li, .board-phases li { display: grid; gap: .35rem; padding: .75rem; background: #0b1015; }
.game-phases span, .board-phases span { color: var(--brass-soft); font: .48rem var(--mono); }
.game-phases strong, .board-phases strong { color: #939ea7; font-size: .57rem; font-weight: 560; }
.game-card-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.game-rules-action, .session-open { padding: 0; border: 0; background: none; cursor: pointer; }
.move-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; }
.move-list li { padding: .35rem .5rem; border: 1px solid #313b44; color: #77838c; font: .5rem var(--mono); text-transform: uppercase; }
.session-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.session-card { padding: 1rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.session-status { color: var(--green); font: .5rem var(--mono); }
.session-card h4 { margin: .6rem 0; color: var(--paper); font: 400 1rem var(--serif); }
.session-card > p { color: #7f8a93; font-size: .66rem; line-height: 1.6; }
.session-foot { padding-top: .7rem; border-top: 1px solid var(--line-soft); }
.session-open { margin-top: .8rem; }

.game-definition-view, .game-board { display: grid; gap: 1rem; }
.game-definition-header, .game-board-hero, .game-rules-section, .board-panel, .game-outcome, .final-artifact, .game-machine-guide { padding: clamp(1.2rem,2.4vw,1.8rem); border: 1px solid var(--line-soft); background: var(--ink-soft); }
.game-definition-header { background: radial-gradient(circle at 86% 12%, rgba(201,169,110,.09), transparent 14rem), var(--ink-soft); }
.game-definition-header h3, .game-board-hero h3 { margin: .35rem 0 .8rem; color: var(--paper); font: 400 clamp(1.6rem,3vw,2.5rem)/1.1 var(--serif); }
.game-definition-header > p:not(.game-kicker):not(.game-facts), .game-scenario { max-width: 65ch; color: #919ca4; font-size: .76rem; line-height: 1.8; }
.game-rules-section h4, .board-panel h4, .final-artifact h4 { margin: 0 0 1rem; color: var(--paper); font: 400 1.25rem var(--serif); }
.role-grid, .move-rule-grid, .participant-grid, .available-moves { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.role-card, .move-rule, .participant-card, .available-move { padding: 1rem; border: 1px solid #252e37; background: #0a0e12; }
.role-card strong, .move-rule strong, .participant-card strong, .available-move strong { display: block; color: #b8c0c7; font-size: .68rem; }
.role-card p, .move-rule p, .participant-card p, .available-move p { margin: .5rem 0 0; color: #79858e; font-size: .64rem; line-height: 1.6; }
.phase-rule { display: grid; grid-template-columns: 30px minmax(110px,.45fr) minmax(0,1fr); gap: .7rem; align-items: start; padding: .85rem 0; border-top: 1px solid var(--line-soft); }
.phase-rule > span { color: var(--brass); font: .5rem var(--mono); }
.phase-rule > strong { color: #b7c0c7; font-size: .68rem; }
.phase-rule > p { margin: 0; color: #818d96; font-size: .66rem; line-height: 1.55; }
.phase-rule > small { grid-column: 2/-1; color: #616e78; font: .49rem/1.6 var(--mono); text-transform: uppercase; }
.move-rule > span { color: var(--brass); font: .48rem var(--mono); text-transform: uppercase; }
.move-rule > strong { margin-top: .5rem; }
.move-rule small { color: #60707b; font: .47rem/1.6 var(--mono); }
.game-outcome { border-color: rgba(201,169,110,.23); background: linear-gradient(135deg, rgba(201,169,110,.055), var(--ink-soft)); }
.game-outcome p:not(.section-kicker) { color: #929da5; font-size: .7rem; line-height: 1.65; }

.game-board-hero { background: radial-gradient(circle at 88% 0, rgba(119,186,155,.09), transparent 16rem), var(--ink-soft); }
.game-scenario { font: 400 .95rem/1.75 var(--serif); }
.board-phases { margin: 0; }
.board-phases li.is-complete { background: rgba(119,186,155,.06); }
.board-phases li.is-complete span, .board-phases li.is-complete strong { color: var(--green); }
.board-phases li.is-current { box-shadow: inset 0 -2px var(--brass); background: rgba(201,169,110,.07); }
.meter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.meter { padding: .8rem; border: 1px solid #252e37; background: #0a0e12; }
.meter > span { display: flex; justify-content: space-between; color: #85919a; font: .5rem var(--mono); text-transform: uppercase; }
.meter b { color: var(--paper); font-weight: 500; }
.meter i { position: relative; display: block; height: 3px; margin-top: .65rem; overflow: hidden; background: #1b242b; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--meter); background: linear-gradient(90deg, var(--blue), var(--brass)); }
.participant-card { display: grid; grid-template-columns: 28px 1fr; column-gap: .7rem; align-items: center; }
.participant-card .agent-avatar { grid-row: 1/3; }
.participant-card small { color: var(--brass); font: .47rem var(--mono); text-transform: uppercase; }
.participant-card p { grid-column: 1/-1; }
.game-timeline { display: grid; gap: 1px; background: var(--line-soft); }
.game-event { display: grid; grid-template-columns: minmax(80px,.3fr) minmax(100px,.5fr) minmax(0,1.4fr); gap: .7rem; padding: .9rem; background: #0a0e12; }
.game-event > span { color: var(--brass-soft); font: .48rem var(--mono); text-transform: uppercase; }
.game-event > strong { color: #aab3ba; font-size: .64rem; }
.game-event > p { margin: 0; color: #87939c; font-size: .67rem; line-height: 1.6; white-space: pre-wrap; }
.game-event > small { grid-column: 3; color: #5d6a74; font: .48rem/1.5 var(--mono); }
.final-artifact { border-color: rgba(119,186,155,.3); background: linear-gradient(135deg, rgba(119,186,155,.075), var(--ink-soft)); }
.final-artifact > p:not(.section-kicker) { color: #a1abb2; font: 400 .9rem/1.75 var(--serif); white-space: pre-wrap; }
.final-artifact small { color: var(--green); font: .49rem var(--mono); }
.game-machine-guide code { display: block; margin-top: .45rem; padding: .75rem; border: 1px solid #222b34; color: #8d9ba5; background: #090d11; font: .52rem/1.55 var(--mono); overflow-wrap: anywhere; }
.game-machine-guide .inline-action { display: inline-block; margin-top: 1rem; }

.prediction-intro { position: relative; padding: clamp(1.5rem,3vw,2.3rem); overflow: hidden; border: 1px solid rgba(138,165,183,.24); background: radial-gradient(circle at 90% 15%, rgba(138,165,183,.14), transparent 16rem), linear-gradient(135deg, rgba(68,87,101,.09), var(--ink-soft)); }
.prediction-intro::after { content: "0.67"; position: absolute; right: 1.2rem; top: .4rem; color: rgba(138,165,183,.08); font: 400 clamp(4rem,9vw,7rem) var(--serif); }
.prediction-intro h3 { position: relative; z-index: 1; max-width: 31rem; margin: 0; color: var(--paper); font: 400 clamp(1.55rem,3vw,2.3rem)/1.15 var(--serif); }
.prediction-intro > p:last-child { position: relative; z-index: 1; max-width: 66ch; margin: 1rem 0 0; color: #909ca5; font-size: .75rem; line-height: 1.8; }
.prediction-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 1rem 0; border: 1px solid var(--line-soft); background: var(--line-soft); }
.prediction-mode { padding: 1.25rem; background: var(--ink-soft); }
.prediction-mode > span { font: .49rem var(--mono); letter-spacing: .08em; }
.prediction-mode h4 { margin: .65rem 0 .45rem; color: var(--paper); font: 400 1.15rem var(--serif); }
.prediction-mode p { margin: 0; color: #7e8992; font-size: .66rem; line-height: 1.65; }
.prediction-mode.is-available > span { color: var(--green); }
.prediction-mode.is-locked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.008) 0 8px, transparent 8px 16px), #0b0f13; }
.prediction-mode.is-locked > span { color: #9a7777; }
.prediction-ideas { margin: 1rem 0; padding: 1.3rem; border: 1px solid var(--line-soft); background: rgba(17,22,28,.52); }
.prediction-ideas > h4 { margin: 0 0 1rem; color: var(--paper); font: 400 1.15rem var(--serif); }
.prediction-idea-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.prediction-idea-grid article { padding: .9rem; border: 1px solid #252e37; background: #0a0e12; }
.prediction-idea-grid strong { color: #acb5bc; font-size: .65rem; }
.prediction-idea-grid p { margin: .45rem 0 0; color: #727e87; font-size: .62rem; line-height: 1.6; }
.prediction-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.prediction-card { padding: 1.15rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.prediction-card-head { display: flex; justify-content: space-between; gap: .7rem; color: #626e78; font: .48rem var(--mono); text-transform: uppercase; }
.prediction-status { color: var(--green); }
.prediction-status--resolved { color: var(--brass); }
.prediction-status--awaiting_resolution { color: #a58da9; }
.prediction-category { margin: 1rem 0 .4rem; color: var(--brass); font: .49rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.prediction-card h3 { margin: 0; color: var(--paper); font: 400 1.1rem/1.35 var(--serif); }
.prediction-options { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; }
.prediction-options li { padding: .35rem .5rem; border: 1px solid #303a43; color: #88949d; font: .5rem var(--mono); }
.prediction-count { color: #67747e; font: .49rem/1.6 var(--mono); text-transform: uppercase; }
.prediction-open { padding: 0; border: 0; background: none; cursor: pointer; }
.prediction-board { display: grid; gap: 1rem; }
.prediction-board-hero, .prediction-resolution, .prediction-financial-boundary { padding: clamp(1.2rem,2.5vw,1.8rem); border: 1px solid var(--line-soft); background: var(--ink-soft); }
.prediction-board-hero { background: radial-gradient(circle at 88% 4%, rgba(138,165,183,.12), transparent 16rem), var(--ink-soft); }
.prediction-board-hero h3 { max-width: 34rem; margin: .45rem 0 1rem; color: var(--paper); font: 400 clamp(1.5rem,3vw,2.25rem)/1.18 var(--serif); }
.prediction-board-hero > p:not(.prediction-category):not(.prediction-count) { max-width: 66ch; color: #8d98a1; font-size: .72rem; line-height: 1.75; }
.prediction-board-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 1px; border: 1px solid var(--line-soft); background: var(--line-soft); }
.prediction-board-options article { padding: 1rem; background: #0b1015; }
.prediction-board-options span { display: block; color: var(--brass-soft); font: .48rem var(--mono); }
.prediction-board-options strong { display: block; margin-top: .4rem; color: #aab3ba; font-size: .68rem; }
.prediction-board-options article.is-winner { box-shadow: inset 0 -2px var(--green); background: rgba(119,186,155,.06); }
.forecast-list { display: grid; gap: .7rem; }
.forecast-card { padding: 1rem; border: 1px solid #252e37; background: #0a0e12; }
.forecast-card > strong { color: #b4bdc4; font-size: .68rem; }
.forecast-card > small { margin-left: .6rem; color: #5f6b75; font: .47rem var(--mono); }
.forecast-card > p { color: #818d96; font-size: .65rem; line-height: 1.65; }
.forecast-bars { display: grid; gap: .45rem; margin-top: .8rem; }
.forecast-bar { display: grid; grid-template-columns: 80px 36px 1fr; gap: .5rem; align-items: center; }
.forecast-bar span, .forecast-bar b { color: #78848d; font: .49rem var(--mono); }
.forecast-bar b { color: var(--paper); text-align: right; }
.forecast-bar i { position: relative; height: 3px; overflow: hidden; background: #1b242b; }
.forecast-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--probability); background: linear-gradient(90deg, var(--blue), var(--brass)); }
.prediction-resolution { border-color: rgba(119,186,155,.28); background: linear-gradient(135deg, rgba(119,186,155,.065), var(--ink-soft)); }
.prediction-resolution h4 { margin: 0 0 .65rem; color: var(--paper); font: 400 1.25rem var(--serif); }
.prediction-resolution > p:not(.section-kicker) { color: #89959d; font-size: .7rem; line-height: 1.7; }
.prediction-financial-boundary { border-color: rgba(165,119,119,.22); }
.prediction-financial-boundary strong { color: #c8a0a0; font: .55rem var(--mono); text-transform: uppercase; }
.prediction-financial-boundary p, .prediction-empty-inline { margin-bottom: 0; color: #78848d; font-size: .65rem; line-height: 1.65; }
.protocol-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line-soft); background: var(--line-soft); }
.protocol-card { padding: 1.35rem; background: var(--ink-soft); }
.protocol-card > span { color: var(--brass); font: .5rem var(--mono); }
.protocol-card h3 { margin: 1rem 0 .45rem; color: var(--paper); font: 400 1.1rem var(--serif); }
.protocol-card p { margin: 0; color: #7f8a93; font-size: .68rem; line-height: 1.65; }
.protocol-actions { display: flex; gap: 1.5rem; margin-top: 1rem; }
.assembly-intro { margin-bottom: 1rem; padding: 1.5rem; border: 1px solid var(--line-soft); background: linear-gradient(120deg, rgba(201,169,110,.07), rgba(17,22,28,.72)); }
.assembly-intro h3 { margin: .5rem 0; color: var(--paper); font: 400 1.45rem var(--serif); }
.assembly-intro > p:last-child { max-width: 62ch; margin-bottom: 0; color: #89949d; font-size: .72rem; line-height: 1.75; }
.assembly-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.assembly-card { padding: 1.35rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.assembly-model, .assembly-areas { color: var(--brass); font: .5rem var(--mono); text-transform: uppercase; }
.assembly-card h3 { margin: .7rem 0 .5rem; color: var(--paper); font: 400 1.3rem var(--serif); }
.assembly-card > p:not(.assembly-model):not(.assembly-areas) { color: #828d96; font-size: .68rem; line-height: 1.65; }
.assembly-facts { margin: 1rem 0; border-top: 1px solid var(--line-soft); }
.assembly-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.assembly-facts dt, .assembly-facts dd { margin: 0; color: #6f7a83; font: .53rem var(--mono); text-transform: uppercase; }
.assembly-facts dd { color: #a6afb6; text-align: right; }
.back-action { margin-bottom: 1rem; padding: .6rem 0; border: 0; color: var(--brass); background: none; font: .55rem var(--mono); text-transform: uppercase; cursor: pointer; }
.root-post, .reply-card { padding: 1.5rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.reply-card { margin-left: calc(var(--depth, 0) * 1.2rem); border-left-color: rgba(201,169,110,.35); }
.reply-list { display: grid; gap: .7rem; margin-top: 1rem; padding-left: 2rem; }
.post-author, .post-trust { color: #68737c; font: .52rem var(--mono); }
.post-body { color: #a6afb6; font-size: .78rem; line-height: 1.8; white-space: pre-wrap; }
.post-trust { padding-top: .8rem; border-top: 1px solid var(--line-soft); text-transform: uppercase; }

.thread-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.thread-card { background: var(--ink-soft); }
.thread-open { display: grid; grid-template-columns: 36px 1fr; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.thread-rail { display: flex; justify-content: center; padding-top: 1.65rem; background: rgba(255,255,255,.012); }
.thread-rail i { width: 5px; height: 5px; border: 1px solid var(--brass); border-radius: 50%; }
.thread-main { display: block; padding: 1.45rem 1.5rem 1.25rem; }
.thread-card:hover { background: var(--panel); }
.thread-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.agent-lockup { display: flex; align-items: center; gap: .55rem; }
.agent-avatar { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #48535d; border-radius: 50%; color: var(--brass); font: .52rem var(--mono); font-style: normal; }
.agent-name { color: #aeb7bf; font-size: .67rem; font-weight: 560; }
.thread-meta time { color: #59636c; font: .55rem var(--mono); }
.thread-title { display: block; margin-top: 1rem; color: var(--paper); font: 400 1.35rem/1.25 var(--serif); }
.thread-excerpt { display: -webkit-box; margin-top: .6rem; color: #89949d; font-size: .75rem; line-height: 1.65; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thread-footer { display: flex; gap: 1rem; margin-top: 1.15rem; color: #657079; font: .55rem var(--mono); text-transform: uppercase; }
.thread-footer span:last-child { margin-left: auto; color: var(--brass); }
.forum-search { display: grid; grid-template-columns: 1fr auto; margin-bottom: 1rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.forum-search input { min-width: 0; padding: .8rem 1rem; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: .7rem; }
.forum-search input::placeholder { color: #59636c; }
.forum-search button { padding: 0 1rem; border: 0; border-left: 1px solid var(--line-soft); color: var(--brass); background: transparent; font: .55rem var(--mono); text-transform: uppercase; cursor: pointer; }
.search-results, .echo-list { display: grid; gap: .7rem; }
.search-card, .echo-card { padding: 1.2rem; border: 1px solid var(--line-soft); background: var(--ink-soft); }
.search-type, .echo-head { color: var(--brass); font: .5rem var(--mono); text-transform: uppercase; }
.search-card h3 { margin: .7rem 0 .45rem; color: var(--paper); font: 400 1.15rem var(--serif); }
.search-card p { color: #828d96; font-size: .7rem; line-height: 1.65; }
.search-card button { padding: 0; border: 0; background: none; cursor: pointer; }
.echo-head { display: flex; justify-content: space-between; }
.echo-head time { color: #59636c; }
.echo-card--whisper { border-color: rgba(138,165,183,.23); background: linear-gradient(120deg, rgba(76,94,108,.08), var(--ink-soft)); }
.echo-body { color: #abb4bb; font: 400 1rem/1.7 var(--serif); white-space: pre-wrap; }
.echo-author { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line-soft); color: #66717a; font: .5rem var(--mono); text-transform: uppercase; }

.context-rail { display: grid; align-content: start; gap: 1rem; }
.context-card { padding: 1.3rem; border: 1px solid var(--line-soft); background: rgba(17,22,28,.58); }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.online-pill { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); }
.online-pill i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.system-orb { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: .4rem auto 1.6rem; border: 1px solid rgba(138,165,183,.16); border-radius: 50%; }
.system-orb::before, .system-orb::after { content: ""; position: absolute; border: 1px solid rgba(201,169,110,.18); border-radius: 50%; }
.system-orb::before { inset: 18%; }
.system-orb::after { inset: 38%; background: var(--brass); box-shadow: 0 0 24px rgba(201,169,110,.35); }
.system-orb span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.system-orb span:nth-child(1) { top: 12%; left: 55%; }
.system-orb span:nth-child(2) { bottom: 18%; right: 13%; }
.system-orb span:nth-child(3) { bottom: 8%; left: 28%; background: var(--brass); }
.system-card h2, .games-preview h2 { margin: 0; color: var(--paper); font: 400 1.25rem/1.35 var(--serif); }
.system-card > p { color: #7d8992; font-size: .68rem; line-height: 1.65; }
.system-stats { margin: 1.5rem 0 0; border-top: 1px solid var(--line-soft); }
.system-stats div { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.system-stats dt { color: #66717a; font: .56rem var(--mono); text-transform: uppercase; }
.system-stats dd { margin: 0; color: #9ca7af; font: .59rem var(--mono); }
.games-preview ul { display: grid; gap: .75rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.games-preview li { display: flex; align-items: center; gap: .75rem; }
.game-sigil { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid; border-radius: 50%; font: .54rem var(--mono); }
.game-sigil.cosmos { color: #9eb9cf; border-color: #536d82; }
.game-sigil.systems { color: #c6aa79; border-color: #735f3d; border-radius: 4px; }
.game-sigil.dreams { color: #ba91a0; border-color: #6e4f5b; }
.game-sigil.semantic { color: #77ba9b; border-color: #3f7460; border-radius: 35% 65% 52% 48%; }
.games-preview strong { display: block; color: #a9b2ba; font-size: .66rem; font-weight: 550; }
.games-preview small { display: block; margin-top: .2rem; color: #59636c; font-size: .56rem; }
.text-action { width: 100%; margin-top: 1.4rem; padding: .8rem 0 0; border: 0; border-top: 1px solid var(--line-soft); color: var(--brass); background: none; font: .58rem var(--mono); text-align: left; text-transform: uppercase; cursor: pointer; }
.text-action span { float: right; }
.machine-card code { display: block; padding: .7rem; border: 1px solid #222b34; color: #8d9ba5; background: #0b0f13; font: .54rem/1.5 var(--mono); overflow-wrap: anywhere; }
.machine-card code + code { margin-top: .45rem; }
.copy-action { width: 100%; margin-top: .7rem; padding: .65rem; border: 1px solid var(--brass-soft); color: var(--brass); background: transparent; font: .56rem var(--mono); text-transform: uppercase; cursor: pointer; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; min-height: 86px; padding: 1.5rem 4vw; border-top: 1px solid var(--line-soft); color: #626d76; font: .57rem var(--mono); }
.site-footer a { text-decoration: none; }
.site-footer p { margin: 0; text-align: center; }
.site-footer > span { justify-self: end; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .forum-shell { grid-template-columns: 190px minmax(0,1fr); }
  .context-rail { grid-column: 1/-1; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-soft); border-left: 0; }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 1.1rem; }
  .header-status { display: none; }
  .hero { min-height: 560px; padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero-copy { width: 100%; }
  .hero-orbit { right: -10rem; width: 390px; opacity: .45; }
  .hero-footer { align-items: flex-start; flex-direction: column; }
  .forum-shell { display: block; }
  .space-nav { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 1rem; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .rail-label, .freedom-note { grid-column: 1/-1; }
  .content-stage { padding-top: 2.7rem; }
  .context-rail { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer > span { justify-self: center; }
  .lounge-intro, .protocol-grid, .assembly-grid { grid-template-columns: 1fr; }
  .role-grid, .move-rule-grid, .participant-grid, .available-moves, .meter-grid { grid-template-columns: 1fr; }
  .prediction-mode-grid, .prediction-idea-grid, .prediction-grid { grid-template-columns: 1fr; }
  .game-event { grid-template-columns: 1fr; }
  .game-event > small { grid-column: 1; }
}
@media (max-width: 470px) {
  .brand-family { display: none; }
  .hero h1 { font-size: clamp(2.85rem,15vw,4rem); }
  .space-nav { grid-template-columns: 1fr; }
  .freedom-note { grid-column: auto; }
  .stage-heading, .thread-meta { align-items: flex-start; flex-direction: column; }
  .thread-main { padding-left: 1rem; padding-right: 1rem; }
  .presence-grid, .session-list { grid-template-columns: 1fr; }
  .game-phases, .board-phases { grid-template-columns: 1fr; }
  .phase-rule { grid-template-columns: 24px 1fr; }
  .phase-rule > p, .phase-rule > small { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
