@import url("./style.css") layer(foundation);
* {
  box-sizing: border-box;
}
:root {
  --ink: #faf1e3;
  --muted: #c6b9aa;
  --line: #ffffff30;
  --gold: #f8ac7b;
  --pad: clamp(20px, 4vw, 72px);
  font:
    16px "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #0c0c0d;
}
body,
figure,
h1,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
a,
button {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 18px;
  cursor: pointer;
}
a:hover,
button:hover {
  color: var(--gold);
}
:focus-visible {
  outline: 2px solid #65dbde;
  outline-offset: 3px;
}
.bar,
footer,
.toolbar,
.bar nav,
.toggle,
.scale {
  display: flex;
  align-items: center;
}
.bar,
footer,
.toolbar {
  justify-content: space-between;
}
.bar,
footer {
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
  font-size: 14px;
}
.bar {
  height: 80px;
}
.bar nav {
  gap: 32px;
}
.bar a,
footer a {
  padding: 13px 0;
}
.brand {
  font:
    14px Consolas,
    monospace;
  letter-spacing: 0.18em;
}
.toggle {
  gap: 12px;
}
.toggle i {
  width: 23px;
  height: 9px;
  border-block: 1px solid;
}
footer {
  height: 62px;
  color: var(--muted);
  font-size: 12px;
}
main,
main > section {
  min-height: calc(100svh - 142px);
}
#home {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: max(330px, calc(100svh - 142px));
}
#pool,
.shade,
#menu .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
body:has(#home:not([hidden])),
body:has(#menu:not([hidden])) {
  position: relative;
  isolation: isolate;
}
.shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(#050506ba, transparent 23%, transparent 74%, #050506dc),
    radial-gradient(ellipse, #090909ee 0%, #090909a6 18%, transparent 47%);
}
.hero {
  pointer-events: none;
  text-transform: none;
  transform: translateY(-10px);
}
.hero h1 {
  text-transform: uppercase;
  font:
    250 clamp(39px, min(10.3vw, 14vh), 140px) / 1.2 "Segoe UI Light",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.1em;
  padding-left: 0.1em;
}
.hero small {
  display: block;
  font-size: 0.31em;
  letter-spacing: 0.28em;
  margin: 0 0 0.55em;
}
.hero p {
  font-size: clamp(14px, 1.4vw, 19px);
  margin: 10px auto 22px;
  max-width: 68vw;
  line-height: 1.45;
}
#ping {
  pointer-events: auto;
  background: var(--gold);
  border: none;
  color: #1b100b;
  font-weight: 650;
  font-size: 14px;
  padding: 14px 25px;
}
[data-reconnect] {
  pointer-events: auto;
  margin-top: 8px;
}
output {
  display: block;
  font-size: 12px;
  margin-top: 11px;
  color: #e6d6c5;
  text-shadow: 0 1px 4px black;
}
.eyebrow,
figcaption {
  font:
    12px Consolas,
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
#menu {
  display: grid;
  align-items: center;
}
.links {
  padding: 26px var(--pad) 32px 8vw;
  width: min(70vw, 920px);
}
body[data-view="menu"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0c0c0dfc 12%, #0c0c0db8 47%, transparent 72%);
}
.links nav {
  margin-top: 18px;
  display: grid;
}
.links a {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  align-items: baseline;
  padding: .11em 0;
  font: clamp(31px, min(4vw, 6.6vh), 68px) / 1.17 Georgia, serif;
  letter-spacing: -0.045em;
  position: relative;
  text-shadow: 0 1px 8px #000;
}
.links small {
  font: clamp(14px, 1.1vw, 18px)/1.4 "Segoe UI", sans-serif;
  letter-spacing: normal;
  color: #e0d6cb;
}
.links [aria-current]::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.edition { max-width: 1250px; }
.edition .lead {
  max-width: 48ch;
  font: clamp(19px, 2vw, 27px)/1.45 Georgia, serif;
  color: #e7dbcd;
  margin: 0 0 2em;
}
.edition h2 {
  font: normal clamp(28px, 3vw, 44px)/1.12 Georgia, serif;
  margin: .5em 0;
}
.edition p { line-height: 1.6; max-width: 59ch; margin: 0 0 1em; }
.edition p.lead { max-width: 48ch; margin-bottom: 2em; }
.edition a { text-decoration: underline; text-underline-offset: .3em; }
.edition .scope { margin: 32px 0 16px; color: var(--muted); font-size: 14px; }
.cup, .lesson, .shelf {
  display: grid;
  gap: clamp(22px, 4vw, 64px);
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
}
.shelf { grid-template-columns: repeat(3, 1fr); align-items: start; }
.shelf img { display: block; width: min(100%,256px); margin: 0 auto 22px; }
.edition figcaption { text-align: left; color: var(--gold); font-size: 12px; }
.lesson svg { display: block; width: 100%; color: #987d65; }
.lesson figure { padding: 5%; background: #171512; }
#explore label{display:grid;grid-template-columns:6em minmax(0,1fr);align-items:center;min-height:44px}
#explore input{width:100%;accent-color:#ffad76;min-height:40px}
#explore output{display:block;color:#74e3ee;font:14px/1.5 system-ui}
#explore p{font:15px/1.5 system-ui}
body[data-view="arena"] { background: #070e12; --gold: #ffdc78; }
#arena h1, .cup h2 {
  font-family: Consolas, monospace;
  font-weight: 800;
  text-transform: uppercase;
}
#arena h1 { letter-spacing: .04em; text-shadow: 4px 4px #205b67; }
.cup { border-block: 2px solid #24444a; padding-block: 24px; }
.cup h2 span:first-child { color: #42e1d4; }
.cup h2 span:last-child { color: #ff75bc; }
.pitch { aspect-ratio: 2.2; overflow: hidden; background: #001414; }
.pitch img { display: block; width: 120%; max-width: none; margin-left: -10%; image-rendering: pixelated; }
@media (max-width: 960px) {
  .links { width: 100%; padding: 16px 8vw; }
  .links a { grid-template-columns: 1fr; padding: 7px 0; }
  .links small { margin-top: 2px; }
  .links nav { margin-top: 10px; }
  body[data-view="menu"]::before {
    background: linear-gradient(90deg, #0c0c0de8, #0c0c0db8 64%, transparent);
  }
  .cup, .lesson, .shelf { grid-template-columns: 1fr; }
  .shelf figure { display: grid; grid-template-columns: 30% 1fr; column-gap: 18px; }
  .shelf img { grid-row: 1 / 4; margin: 0; }
  .shelf p, .shelf figcaption { margin: 0; }
  .shelf h2 { margin: 6px 0; }
}
.wrap,
.cover {
  max-width: 1440px;
  margin: auto;
  padding: clamp(26px, 5vw, 80px) var(--pad);
}
.wrap h1,
.cover h1 {
  font:
    normal clamp(46px, 5.4vw, 90px) / 1.04 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 16px 0 30px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 24%);
  gap: 5vw;
}
.toolbar {
  font-size: 13px;
  margin-bottom: 16px;
}
.toolbar button {
  padding: 9px 15px;
  margin-right: 4px;
}
button[aria-pressed="true"] {
  background: var(--ink);
  color: #171411;
}
.viewport {
  position: relative;
  overflow: hidden;
  background: #141518;
}
.room-texture{position:fixed;left:-2000px;top:0;width:960px;height:960px;visibility:hidden;pointer-events:none}
#projection{margin-bottom:14px}
#projection button{font-size:14px;padding:10px 15px}
#field.room-map{aspect-ratio:1;width:min(100%,70vh);margin:auto}
#map-note{font:14px/1.55 system-ui;color:#bdd0d1}
#map-note a{color:#ffbd84}
#field {
  width: 100%;
  aspect-ratio: 1.5;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 5px;
}
.zoom button {
  background: #101116de;
  font-size: 21px;
  width: 42px;
  height: 42px;
  padding: 0;
}
.scale {
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.scale i {
  width: 112px;
  height: 7px;
  background: linear-gradient(
    90deg,
    #103043,
    #42bac0,
    #151c21,
    #db6825,
    #ffe2a7
  );
}
aside {
  padding-top: 54px;
}
aside p,
#about p {
  line-height: 1.6;
  margin: 15px 0 24px;
  max-width: 55ch;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 24px 0 30px;
  font-size: 14px;
}
dt,
dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
dt {
  color: var(--muted);
}
dd {
  font-family: Consolas, monospace;
  text-align: right;
}
.cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  padding-top: 30px;
  padding-bottom: 48px;
}
.cover h1 {
  font-size: clamp(44px, 5.6vw, 88px);
}
.cover p,
figcaption {
  color: var(--muted);
  font-size: 13px;
}
.cover canvas {
  width: 100%;
  aspect-ratio: 1.08;
  display: block;
}
figcaption {
  text-align: right;
  font-size: 10px;
  margin-top: 10px;
}
#copy {
  background: #f5efe3;
  color: #21201e;
  padding: 52px var(--pad);
  overflow-wrap: anywhere;
}
article {
  max-width: 720px;
  margin: auto;
  font:
    20px/1.65 Georgia,
    serif;
}
article h1,
article .section-label,
article .article-heading .metadata:first-of-type {
  display: none;
}
article p,
article figure {
  margin: 1em 0;
}
article a,
#about a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
article h2 {
  font: normal 32px Georgia;
  letter-spacing: -0.03em;
}
article .summary {
  font: 28px/1.4 Georgia;
  margin-top: 0;
}
.metadata,
.generation-notice,
.blyg-record-banner,
.article-about,
table {
  font: 14px/1.6 "Segoe UI";
}
.blyg-chip {
  display: block;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #33231344;
}
article img,
article video {
  max-width: 100%;
}
@media (max-width: 720px) {
  .bar {
    height: 64px;
  }
  .bar nav {
    gap: 20px;
  }
  .bar {
    font-size: 13px;
  }
  footer {
    font-size: 11px;
    height: 56px;
  }
  main,
  main > section,
  #home {
    min-height: calc(100svh - 120px);
  }
  .hero p {
    max-width: 215px;
    margin: 8px auto 15px;
  }
  .hero h1 {
    font-size: 11vw;
  }
  .hero {
    transform: none;
  }
  .shade {
    background: radial-gradient(
      ellipse 44vw 39vw at center,
      #080809 30%,
      #080809bd 57%,
      transparent 100%
    );
  }
  .links a {
    font-size: clamp(28px, 4.2svh, 40px);
    line-height: 1.12;
    text-shadow: 0 2px 14px #000;
  }
  .layout,
  .cover {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  aside {
    padding: 0;
  }
  .wrap h1 {
    margin: 10px 0 24px;
  }
  aside p {
    margin: 8px 0 12px;
  }
  dl {
    margin: 12px 0 20px;
  }
  .cover {
    padding-bottom: 24px;
  }
  .cover h1 {
    margin: 12px 0 16px;
  }
  .cover canvas {
    aspect-ratio: 1.35;
  }
  #copy {
    padding-top: 28px;
  }
  article {
    font-size: 18px;
  }
  article .summary {
    font-size: 23px;
  }
}
@media (max-height: 460px) {
  #home {
    min-height: 295px;
  }
  .hero h1 {
    font-size: 40px;
  }
}
footer a {
  text-shadow:
    0 1px 5px black,
    0 0 8px black;
}
body[data-view="menu"] footer {
  background: linear-gradient(transparent, #09090ae8);
}
.scale {
  flex-wrap: wrap;
}
.scale i {
  width: 76px;
}
@media (min-width: 721px) {
  #observatory .wrap {
    max-width: min(1380px, 135vh);
    padding-top: 22px;
  }
  #observatory h1 {
    font-size: clamp(42px, 6vh, 70px);
    margin: 8px 0 18px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 25%);
    gap: 4vw;
  }
}

body {
  background: #0c0c0d;
  color: var(--ink);
}
body[data-view="home"] #pool {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
body[data-view="home"] .veil {
  display: block;
}
body:not([data-view="home"]) #pool,
body:not([data-view="home"]) .pool-touch-layer {
  display: none;
}
body:not([data-view="home"]) #status {
  visibility: hidden;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero select {
  pointer-events: auto;
}
#pool-wait,
#receipt {
  font-size: 12px;
  margin-top: 5px;
  max-width: min(65vw, 25rem);
}
#ping:disabled {
  opacity: 0.65;
}
#material {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
}
#unavailable a,
.more a {
  text-decoration: underline;
}
.more {
  max-width: 720px;
  margin: 2rem auto;
}
article aside {
  padding: 0;
}
article dl {
  display: block;
}
article dt {
  font-weight: 600;
}
article dd {
  text-align: left;
}
article .lw-scroll {
  overflow: auto;
}
article .article-heading .metadata {
  display: block;
}
body[data-view="home"] .shade {
  pointer-events: none;
}
#home {
  pointer-events: none;
}
body[data-view=home] main { pointer-events:none; }
body[data-view=home] .pool-touch-layer { pointer-events:none; }
main > section:focus { outline:none; }
#pool {
  pointer-events: auto;
}
#home .action {
  pointer-events: auto;
}
#status {
  display:none;
  font-size: 12px;
  color: var(--muted);
}
footer a[href="#about"]{margin-left:auto}
.origins {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.source-key {
  max-width: 40rem;
  grid-template-columns: max-content 1fr;
  gap: 16px 24px;
  align-items: center;
}
.source-key dt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.source-key dd { margin: 0; text-align: left; }
.source-key i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #e5fffc;
  border-radius: 50%;
}
.source-key i::before {
  content: "";
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #e5fffc;
}
[data-source="human"] { --cue: #ffb277; }
[data-source="agent"] { --cue: #72edf2; }
[data-source="bot"] { --cue: #d2adff; }
.source-key i[data-source], .pool-touch-cue[data-source] { border-color: var(--cue); }
.source-key i[data-source]::before, .pool-touch-cue[data-source]::before {
  width: .68rem;
  height: .68rem;
  background: var(--cue);
}
.source-key i:is([data-source="agent"], [data-source="bot"])::before,
.pool-touch-cue:is([data-source="agent"], [data-source="bot"])::before { border-radius: 0; }
.source-key i[data-source="agent"]::before { transform: rotate(45deg); }
.pool-touch-cue[data-source="agent"]::before { transform: translate(-50%,-50%) rotate(45deg); }
.wrap #sample-link { display: inline-block; margin-bottom: 1.2rem; text-decoration: underline; text-underline-offset: .22em; }
.activity { margin: 1.5rem 0; border-top: 1px solid #ffffff32; }
.activity h2 { font-size: 1.45rem; margin-bottom: .35rem; }
.activity p { line-height: 1.5; margin: .6rem 0 1rem; }
#touches { display: flex; flex-wrap: wrap; gap: .45rem; }
#touches button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .6rem; }
#touches button[aria-pressed="true"] { background: #28292e; color: white; outline: 1px solid currentColor; }
#touches button:focus-visible { outline: 3px double white; }
#touch-pin { position: absolute; pointer-events: none; transform: translate(-50%, -50%); width: 18px; height: 18px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 2px black, inset 0 0 0 2px black; }
.source-name {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  color: var(--cue);
  background: #101114ed;
  border-radius: 4px;
  font: 600 12px/1.4 "Segoe UI", sans-serif;
}
@media (forced-colors: active) {
  .source-key i::before, .pool-touch-cue[data-source]::before { background: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .arrival-ray {
    display: none;
  }
}
