:root {
  color-scheme: dark;
  --paper: #f9efdb;
  --muted: #c7c5ad;
  --amber: #ffcc64;
  --green: #c2d9a2;
  --line: #454737;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -4rem, #292b19 0%, transparent 48%),
    repeating-linear-gradient(0deg, transparent 0 31px, #dcd5a105 31px 32px),
    #111311;
  color: var(--paper);
  font: 1rem/1.55 system-ui, sans-serif;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.shell { width: min(100% - 2.25rem, 70rem); margin-inline: auto; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font: 0.875rem/1.35 Consolas, "Courier New", monospace;
}
.back { text-underline-offset: 0.23em; }
.studio { letter-spacing: 0.13em; text-transform: uppercase; }
h1 {
  font: 700 clamp(2.2rem, 8vw, 5.4rem)/0.97 Consolas, "Courier New", monospace;
  letter-spacing: -0.085em;
  margin: clamp(1.8rem, 5vw, 3.5rem) 0 1.15rem;
}
h1 span { color: var(--amber); }
.desk {
  position: relative;
  margin: 0;
  border: 1px solid #8c6c3d;
  border-radius: 0.65rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 65px #0009;
}
.desk img { display: block; width: 100%; height: auto; }
.desk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, #18150924 3px 4px);
  pointer-events: none;
}
.dialogue {
  position: absolute;
  z-index: 1;
  right: 1.1rem;
  bottom: 1.1rem;
  background: #171912f2;
  padding: 0.7rem 1rem;
  border: 1px solid #b88e4d;
  border-left: 3px solid var(--amber);
  box-shadow: 0 0 28px #f5ab4b20;
  font-family: Consolas, "Courier New", monospace;
}
.dialogue span { color: var(--amber); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.17em; }
.dialogue p { margin: 0.1rem 0 0; font-size: clamp(1rem, 2.6vw, 1.5rem); }
.releases {
  display: grid;
  gap: 1.1rem;
  margin: 1.1rem 0;
}
.release[id], .dirk-reply[id] { scroll-margin-top: 1rem; }
.release-archive, .desk-panel {
  margin: 1.1rem 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #1e2119;
}
.desk-panel { margin-bottom: 2.5rem; }
.release-archive-summary, .desk-panel-summary, .release-archive-entry > summary {
  padding: 0.85rem 1rem;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.release-archive-list { display: grid; gap: 0.55rem; padding: 0 0.75rem 0.75rem; }
.release-archive-entry {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #171b14;
}
.release-archive-entry .release { border-width: 1px 0 0; border-radius: 0; }
.desk-panel[open] .desk { margin: 0 0.75rem 0.75rem; }
.release {
  display: grid;
  grid-template-columns: minmax(0, min(44%, 22rem)) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "video intro" "video tools";
  gap: 1.1rem 2rem;
  align-items: start;
  border: 1px solid var(--line);
  padding: 1.2rem clamp(1rem, 4vw, 1.9rem);
  border-radius: 0.65rem;
  background: #1e2119;
}
h2 { font: 700 clamp(1.6rem, 3vw, 2.45rem)/1.1 Consolas, "Courier New", monospace; margin: 0; }
.release p { color: var(--muted); margin: 0.45rem 0 0; max-width: 46em; }
.tool-previews { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.9rem; margin-top: 1rem; }
.tool-previews figure { min-width: 0; margin: 0; }
.tool-previews img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
.tool-previews figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 0.4rem; }
.snake-demo { position: relative; }
.radius-mark {
  position: absolute;
  top: 68%;
  left: 71%;
  width: 32%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px dashed #fff29c;
  border-radius: 50%;
  filter: drop-shadow(0 1px 4px #412700);
}
.radius-mark::before, .radius-mark::after {
  content: "";
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 9px solid #fff29c;
  position: absolute;
}
.radius-mark::before { top: -6px; left: 48%; }
.radius-mark::after { bottom: -6px; right: 48%; transform: rotate(180deg); }
.example-keys { position: absolute; top: 0.45rem; left: 0.45rem; display: flex; gap: 0.25rem; }
.modes { display: grid; gap: 0.65rem; margin: 1rem 0; }
.modes div { padding-left: 0.75rem; border-left: 2px solid #69644a; }
.modes dt { color: var(--paper); font-weight: 700; }
.modes dd { color: var(--muted); margin: 0.18rem 0 0; }
kbd {
  display: inline-block;
  color: var(--green);
  background: #171a13;
  border: 1px solid var(--line);
  border-radius: 0.24rem;
  padding: 0.02rem 0.34rem;
  font: 0.9em/1.45 Consolas, "Courier New", monospace;
}
.release-intro { grid-area: intro; }
.release-video {
  grid-area: video;
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
}
.release-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto 9 / 16;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #17191e;
}
.release-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: clamp(4.5rem, 20vw, 6rem);
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid #151710;
  border-radius: 50%;
  background: var(--amber);
  color: #151710;
  box-shadow: 0 0 0 1px #ffe4a3, 0 6px 20px #000b;
  cursor: pointer;
}
.release-play:not([hidden]) { display: grid; place-items: center; }
.release-play::before {
  content: "";
  margin-left: 0.25rem;
  width: 0;
  height: 0;
  border-block: 0.95rem solid transparent;
  border-left: 1.45rem solid currentColor;
}
.release-play:hover { background: #ffdf8c; }
.release-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.release-tools { grid-area: tools; min-width: 0; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.primary {
  border-radius: 0.26rem;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: #1b1b13;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
.primary:hover { background: #ffdf8c; }
.source { color: var(--green); text-underline-offset: 0.22em; }
.verify { border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 1rem; }
.verify summary { color: var(--green); cursor: pointer; }
.verify code { display: block; font-size: 0.87rem; overflow-wrap: anywhere; color: var(--paper); }
.release-updates { margin-top: 1rem; }
.dirk-reply {
  border: 1px solid #53685a;
  border-left: 3px solid var(--green);
  border-radius: 0.4rem;
  background: repeating-linear-gradient(0deg, #cee6b605 0 1px, transparent 1px 5px), #121a16;
}
.dirk-reply + .dirk-reply { margin-top: 0.55rem; }
.dirk-reply-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.82rem;
  list-style: none;
  cursor: pointer;
}
.dirk-reply-summary::-webkit-details-marker { display: none; }
.dirk-reply-summary:hover { background: #a2d6ad0c; }
.dirk-reply-summary:focus-visible { outline-offset: 2px; }
.dirk-reply-label { display: grid; gap: 0.1rem; }
.dirk-reply-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #6c896f;
  border-radius: 0.45rem;
  background: #182a23;
}
.dirk-reply-sender {
  color: var(--green);
  font: 700 0.875rem/1.2 Consolas, "Courier New", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.dirk-reply-title {
  color: var(--paper);
  font: 700 1.08rem/1.2 Consolas, "Courier New", monospace;
}
.dirk-reply-toggle { color: var(--green); font: 700 1.35rem/1 Consolas, monospace; }
.dirk-reply-toggle::before { content: "+"; }
.dirk-reply[open] .dirk-reply-toggle::before { content: "−"; }
.dirk-reply-body { padding: 0.4rem 0.9rem 0.8rem; border-top: 1px solid #526457; }
.dirk-reply-body p { margin-top: 0.7rem; }
.dirk-reply .dirk-reply-finding { color: var(--paper); }
.dirk-reply-finding strong { color: var(--amber); }
.dirk-reply-claims { display: grid; gap: 0.75rem; margin: 0.85rem 0 0.25rem; }
.dirk-reply-claims dt { font-weight: 700; color: var(--paper); }
.dirk-reply-claims dd { margin: 0.17rem 0 0; color: var(--muted); }
.dirk-reply-claims code { color: #d6edce; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .release { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "intro" "video" "tools"; }
  .download { display: grid; text-align: center; }
  .dialogue { position: relative; inset: auto; border: 0; border-top: 1px solid #b88e4d; }
  .desk::after { display: none; }
  .tool-previews { grid-template-columns: minmax(0, 1fr); }
  .tool-previews figure:last-child img { width: min(100%, 23rem); }
}

/* The basement workshop sets the palette for the player and the release bench. */
:root {
  --paper: #f6ecdc;
  --muted: #d0c4b4;
  --amber: #ffc06d;
  --green: #a9d8de;
  --line: #554438;
  --panel: #211a16;
  --display: "Bahnschrift", "Arial Narrow", "Arial", sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
body {
  background:
    radial-gradient(ellipse at top, #332117 0%, #171310 37rem, transparent 64rem),
    #14110f;
}
.shell { width: min(100% - 3rem, 76rem); }
.skip-link {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: .75rem;
  padding: .6rem .9rem;
  background: #241d18;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.masthead { min-height: 5rem; padding-block: .75rem; gap: .9rem 1.75rem; }
.studio {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--paper);
  text-decoration: none;
  font: 700 1rem/1 var(--display);
  letter-spacing: .105em;
  white-space: nowrap;
}
.studio strong { color: var(--amber); }
.studio img { object-fit: cover; border-radius: .3rem; border: 1px solid #795a42; }
.masthead nav, .workbench nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.35rem; }
.masthead nav a, .workbench nav a, .site-footer a { color: var(--green); text-underline-offset: .3em; }
.masthead nav a:hover, .workbench nav a:hover, .site-footer a:hover { color: var(--amber); }

.office {
  position: relative;
  min-height: clamp(29rem, 49vw, 39rem);
  display: grid;
  align-items: center;
  isolation: isolate;
  margin: 1.3rem 0 0;
  overflow: hidden;
  border: 1px solid #795a42;
  border-radius: .6rem;
  background: #211811;
  box-shadow: 0 1.1rem 3.6rem #0005;
}
.office-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.office::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #15100ef7 0%, #15100ee8 25%, #15100e93 44%, transparent 72%);
  pointer-events: none;
}
.office-copy { padding: clamp(1.7rem, 5vw, 4rem); }
.office-label {
  color: var(--amber);
  font: 700 .875rem/1.25 var(--mono);
  letter-spacing: .145em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
h1 {
  font: 800 clamp(4rem, 10vw, 9rem)/.8 var(--display);
  letter-spacing: -.065em;
  margin: 0;
  text-transform: uppercase;
}
h1 span { color: var(--amber); text-shadow: 0 0 1.75rem #ff9f5440; }
.office-intro { max-width: 27ch; margin: 1.4rem 0; font-size: clamp(1rem, 1.65vw, 1.2rem); color: var(--paper); }
.office-button { display: inline-block; }

.workbench {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.4rem;
  padding-block: 2rem .65rem;
  scroll-margin-top: 1rem;
}
h2 { font-family: var(--display); letter-spacing: -.02em; }
.workbench h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
.workbench nav { font: .875rem/1.4 var(--mono); }
.releases { gap: 1.3rem; margin-top: .8rem; }
.release {
  background: var(--panel);
  border-top-color: #795a42;
  padding: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, min(40%, 21rem)) minmax(0, 1fr);
  gap: 1rem clamp(1.25rem, 3.25vw, 3rem);
}
.release-video video { border: 1px solid #7c5d44; background: #14110f; }
.modes div { border-left-color: #9b6845; }
kbd { background: #191513; }
.release-archive, .desk-panel { background: var(--panel); }
.release-archive-entry { background: #1a1512; }
.primary { background: var(--amber); color: #1b150f; }
.primary:hover, .release-play:hover { background: #ffda9a; }
.desk-panel { scroll-margin-top: 1rem; margin-bottom: 1.25rem; }
.site-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 4.5rem;
  margin-bottom: 1rem;
  padding-block: .5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: .875rem/1.4 var(--mono);
}
.site-footer img { object-fit: cover; border-radius: .3rem; border: 1px solid var(--line); }
.site-footer a { margin-left: auto; }

@media (max-width: 650px) {
  .shell { width: min(100% - 1.5rem, 76rem); }
  .masthead { min-height: 4.3rem; flex-wrap: wrap; }
  .masthead nav { gap: .4rem .9rem; }
  .studio img { width: 2rem; height: 2rem; }
  .office { display: flex; flex-direction: column; min-height: 0; align-items: stretch; margin-top: .8rem; }
  .office::after { display: none; }
  .office-image { position: static; z-index: auto; height: auto; aspect-ratio: 16/9; object-fit: cover; }
  .office-copy { padding: 1.35rem; background: linear-gradient(125deg, #312118, #1b1511); }
  h1 { font-size: clamp(3.15rem, 12vw, 5.4rem); }
  .office-intro { margin: 1rem 0; }
  .workbench { padding-top: 1.4rem; }
  .workbench nav { gap: .45rem .9rem; }
  .release { grid-template-columns: minmax(0, 1fr); }
  .release-video { width: min(100%, 19rem); }
}

