@font-face {
  font-family: Pixel;
  src: url(assets/silkscreen-bold.ttf) format('truetype');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #10111e;
  --panel: #1c1d2f;
  --edge: #393a4a;
  --cream: #fff0d3;
  --mint: #90ecc4;
  --orange: #ff9a60;
  --muted: #b1aec3;
  --mono: 'Courier New', monospace;
  --pixel: Pixel, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #f4f1f4;
  background: radial-gradient(ellipse at 75% 24%, #24203555, transparent 58%), var(--bg);
  font: 16px/1.5 var(--sans);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
.mode:has(input:focus-visible) {
  outline: 3px solid #fbc97b;
  outline-offset: 4px;
}
button {
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: var(--panel);
}
button:hover {
  filter: brightness(1.12);
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
header {
  border-bottom: 1px solid #303041;
  background: #11121f;
}
.bar,
footer {
  max-width: 1376px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 80px);
}
.bar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.tools,
.tool,
.quicktitle,
footer span,
.eyebrow,
.guide-keys span,
.hud > span,
.stats span,
.railfoot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  gap: 12px;
}
.vline {
  height: 18px;
  width: 1px;
  background: #4d4a5d;
}
.arcade,
.eyebrow,
figcaption,
label[for],
legend,
.quicktitle,
.railfoot,
.guide-keys,
.stats,
.hud,
.receipt small,
.results span,
.tool {
  font-family: var(--mono);
}
.arcade {
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: bold;
  color: #c1b7cd;
}
.tools {
  gap: 8px;
}
.tool {
  padding: 8px 12px;
  gap: 8px;
  color: #d4d1dd;
  background: #1c1d2a;
  font-size: 12px;
  min-height: 36px;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  image-rendering: pixelated;
}
.brand-wordmark {
  mix-blend-mode: lighten;
  display: block;
  width: 160px;
  height: auto;
}
#lobby {
  max-width: 1376px;
  width: 100%;
  margin: auto;
  padding: clamp(34px, 5.6vh, 70px) clamp(22px, 5vw, 80px) 30px;
  display: grid;
  grid-template-columns: minmax(320px, 0.83fr) minmax(410px, 1.25fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(34px, 4.7vw, 75px);
  align-items: start;
}
.intro {
  container-type: inline-size;
  grid-area: 1/1;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.4;
  color: var(--mint);
  font-weight: 700;
}
.spark {
  width: 15px;
  height: 15px;
  display: inline-block;
  background: var(--mint);
  clip-path: polygon(
    40% 0,
    60% 0,
    60% 26%,
    75% 26%,
    75% 40%,
    100% 40%,
    100% 60%,
    74% 60%,
    74% 75%,
    60% 75%,
    60% 100%,
    40% 100%,
    40% 74%,
    25% 74%,
    25% 60%,
    0 60%,
    0 40%,
    25% 40%,
    25% 26%,
    40% 26%
  );
}
h1,
h2 {
  font-family: var(--pixel);
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 700;
}
h1 {
  font-size: clamp(24px, 10.9cqi, 70px);
  letter-spacing: -0.092em;
  line-height: 0.94;
  margin: 0 0 18px -4px;
  text-shadow: 0 4px #776471;
}
h1 span,
h2 em {
  color: var(--orange);
  font-style: normal;
  text-shadow: 0 4px #814d51;
}
.tagline {
  color: var(--cream);
  font-size: clamp(16px, 1.4vw, 20px);
  margin: 0 0 8px;
}
.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #c9c6d7;
  line-height: 1.5;
  margin: 0 0 24px;
}
.cabinet {
  align-self: stretch;
  grid-area: 1/2/3/3;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #191826;
  border: 1px solid #444052;
  border-radius: 9px;
  padding: 6px 6px 0;
  box-shadow:
    0 4px #0a0b13,
    0 12px 30px #08091440;
  overflow: hidden;
}
.screen {
  position: relative;
  flex: 1;
  min-height: 270px;
  background: #211732;
  overflow: hidden;
  border: 1px solid #383043;
  border-radius: 4px;
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% center;
  image-rendering: pixelated;
}
.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: solid #f5e2cb88;
  border-width: 2px 0 0 2px;
}
.tl {
  top: 12px;
  left: 12px;
}
.tr {
  top: 12px;
  right: 12px;
  transform: rotate(90deg);
}
.bl {
  bottom: 12px;
  left: 12px;
  transform: rotate(-90deg);
}
.br {
  bottom: 12px;
  right: 12px;
  transform: rotate(180deg);
}
figcaption {
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.7px;
  color: #bbb7c9;
}
figcaption span {
  display: flex;
  align-items: center;
  gap: 10px;
}
figcaption b {
  color: var(--orange);
}
.lamp {
  width: 6px;
  height: 6px;
  background: var(--mint);
  box-shadow: 0 0 7px #90ecc455;
  display: inline-block;
}
#setup {
  grid-area: 2/1;
  width: 100%;
}
label[for],
legend {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ccc6d7;
}
label[for] {
  display: block;
  margin-bottom: 7px;
}
.namebox {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 46px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: #181927;
  padding: 0 13px;
  color: #a19caf;
}
.namebox:focus-within {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}
.namebox input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: white;
  height: 100%;
  font-size: 16px;
}
.namebox input::placeholder {
  color: #9995aa;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 17px 0;
}
legend {
  margin-bottom: 7px;
  padding: 0;
}
.modegrid,
.twins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.mode {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c2b;
  border: 1px solid #393849;
  padding: 11px 10px;
  border-radius: 5px;
}
.mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.mode .icon {
  color: #c0bace;
  width: 21px;
  height: 21px;
}
.mode strong,
.mode small {
  display: block;
}
.mode strong {
  font-size: 15px;
  line-height: 1.3;
}
.mode small {
  color: #b3aec4;
  font-size: 12px;
}
.mode b {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #4b4659;
}
.mode:has(:checked) {
  border-color: var(--mint);
  background: #1b2a2b;
}
.mode:has(:checked) .icon {
  color: var(--mint);
}
.mode:has(:checked) b {
  background: var(--mint);
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--mint);
  border: 1px solid #adefd1;
  border-bottom: 3px solid #518e78;
  box-shadow: 0 2px 0 #070b13;
  border-radius: 5px;
  color: #14251f;
  font: 700 18px var(--pixel);
  letter-spacing: -1px;
  text-transform: uppercase;
  min-height: 49px;
}
.primary .icon {
  width: 15px;
  height: 15px;
}
.error {
  color: #ffb09e;
  font-size: 13px;
}
.error:empty {
  display: none;
}
.quick {
  grid-area: 3/1/4/3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #181925;
  border: 1px solid #333343;
  border-radius: 6px;
  margin-top: 28px;
  padding: 15px 21px;
}
.quicktitle {
  color: #d0ccd9;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: bold;
  font-size: 11px;
}
.quicktitle .icon {
  color: #9b95b0;
}
.bindings {
  display: flex;
  gap: clamp(15px, 3vw, 44px);
}
.bindings span,
.guide-keys span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c4bfce;
  font-size: 13px;
}
kbd {
  font: 12px var(--mono);
  font-weight: bold;
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  border-radius: 4px;
  border: 1px solid #4c495b;
  border-bottom: 2px solid #595368;
  color: #e1dbed;
  background: #2b293a;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #948da3;
  font: 11px var(--mono);
  min-height: 54px;
  padding-block: 12px;
  border-top: 1px solid #30303f;
}
footer a {
  color: #c3bdce;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.pixel-heart {
  width: 12px;
  height: 11px;
  background: #c8848d;
  clip-path: polygon(
    0 15%,
    17% 15%,
    17% 0,
    40% 0,
    40% 15%,
    60% 15%,
    60% 0,
    84% 0,
    84% 15%,
    100% 15%,
    100% 52%,
    83% 52%,
    83% 68%,
    67% 68%,
    67% 84%,
    55% 84%,
    55% 100%,
    45% 100%,
    45% 84%,
    32% 84%,
    32% 68%,
    16% 68%,
    16% 52%,
    0 52%
  );
}
dialog {
  width: min(450px, calc(100% - 28px));
  max-height: 90svh;
  overflow: auto;
  color: #f4f0f6;
  background: #202031;
  border: 1px solid #555165;
  border-top: 3px solid var(--mint);
  padding: 27px;
  border-radius: 7px;
  box-shadow: 0 22px 80px #0009;
}
dialog::backdrop {
  background: #090915d6;
}
dialog h2,
.rail h2 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 6px 0 16px;
}
dialog p {
  font-size: 14px;
  line-height: 1.55;
  color: #d1cbd9;
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 23px;
}
dialog dl {
  margin: 15px 0;
}
dialog dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #383647;
}
dl dt {
  font-size: 14px;
}
dl dd {
  margin: 0;
  font: 12px var(--mono);
  color: var(--mint);
}
.twins {
  margin: 12px 0;
}
.twins button,
dialog > button:not(.primary, .close, .textbtn) {
  padding: 9px;
}
.textbtn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 12px var(--mono);
  padding: 8px 0;
}
dialog .quote {
  color: var(--cream);
}
.quote small {
  color: var(--muted);
}
#winner {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.results {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  margin: 10px 0;
  border-block: 1px solid #494456;
}
.results span,
.receipt small {
  color: #c1b9cf;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.2px;
}
.results b {
  display: block;
  color: white;
  font-size: 18px;
  letter-spacing: 0;
}
.receipt {
  background: #152925;
  border: 1px dashed var(--mint);
  border-radius: 5px;
  padding: 12px;
}
.receipt strong {
  display: block;
  font: bold clamp(14px, 4vw, 22px) var(--mono);
  letter-spacing: 0.5px;
  color: var(--mint);
}
details {
  margin-top: 15px;
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
body.playing {
  overflow: hidden;
  overscroll-behavior: none;
}
body.playing > header, body.playing > footer,
body:not(.playing) #manual :is(.guide, .rail) {
  display: none;
}
#play {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#pause-tools { margin-block: 12px; }
.rail,
.guide {
  min-width: 0;
}
.rail h2 {
  font-size: 24px;
}
.rail ol {
  padding: 0;
  list-style: none;
  margin: 25px 0;
}
.rail li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #928ba2;
  font-size: 12px;
  padding: 7px 0;
}
.rail li i {
  height: 7px;
  width: 7px;
  border: 1px solid #756b83;
  display: inline-block;
}
.rail li.active {
  color: var(--mint);
  font-weight: bold;
}
.rail li.active i {
  background: var(--mint);
  border-color: var(--mint);
}
.rail li.past i {
  background: #597768;
}
.railfoot {
  font-size: 10px;
  color: #d4b886;
}
.railfoot .icon {
  color: #ffce70;
}
.guide h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}
.guide p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.6;
  color: #b4adc2;
}
.guide-keys {
  border-top: 1px solid var(--edge);
  padding-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#machine, #viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#viewport {
  background: #222;
  touch-action: none;
}
#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.hud {
  --inset: clamp(8px, 1.5vmin, 16px);
  position: absolute;
  z-index: 2;
  inset: max(var(--inset), env(safe-area-inset-top)) max(var(--inset), env(safe-area-inset-right)) auto max(var(--inset), env(safe-area-inset-left));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  pointer-events: none;
}
.hud .room, .stats, #dash-hud {
  background: #191522e0;
  color: var(--cream);
  border: 1px solid #716276;
  border-radius: 4px;
}
.hud .room {
  display: grid;
  padding: 5px 9px;
  border-left: 3px solid var(--mint);
  font-size: clamp(12px, 1.5vw, 18px);
  line-height: 1.2;
}
#mode-hud {
  margin-top: 2px;
  color: var(--mint);
  font: bold 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stats {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 14px);
  padding-left: 8px;
  font-size: clamp(12px, 1.3vw, 16px);
  font-variant-numeric: tabular-nums;
}
.stats span { gap: 3px; }
#pause {
  min-width: 44px;
  min-height: 44px;
  pointer-events: auto;
}
#speech {
  position: absolute;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 10px;
  z-index: 1;
  left: 5%;
  bottom: 6%;
  width: min(360px, 90%);
  padding: 12px 15px;
  background: #fff1d8;
  color: #282537;
  border: 3px solid #393146;
  box-shadow: 3px 4px #100e1c;
  border-radius: 4px;
  line-height: 1.4;
  cursor: pointer;
}
#speech:before {
  content: '';
  position: absolute;
  top: -11px;
  left: 26px;
  border: 6px solid transparent;
  border-bottom-color: #fff1d8;
}
#speech [data-portrait] {
  grid-row: 1 / span 2;
}
#speaker {
  color: #6a3c62;
  text-transform: uppercase;
  font: 13px var(--pixel);
}
#line {
  margin: 5px 0 4px;
  text-wrap: pretty;
  min-height: 2.7em;
  font-size: 15px;
  font-weight: 600;
}
#speak-hint {
  grid-column: 1 / -1;
  font: 10px var(--mono);
  color: #62586a;
}
#toast,
#unlock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: #131322ee;
  border: 1px solid #887693;
  padding: 6px 11px;
  border-radius: 3px;
  color: var(--cream);
  font: 12px var(--mono);
  text-align: center;
}
#toast {
  top: calc(65px + env(safe-area-inset-top));
  width: max-content;
  max-width: 90%;
  pointer-events: none;
}
#unlock {
  bottom: 7%;
  background: var(--mint);
  color: #11251f;
  font-weight: 700;
  white-space: nowrap;
}
.stats .icon {
  color: #bbaec8;
  width: 16px;
  height: 16px;
}
#dash-hud {
  position: absolute;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  color: var(--mint);
  font: bold 11px var(--mono);
  white-space: nowrap;
  pointer-events: none;
}
#dash-hud .icon {
  color: inherit;
}
#dash-hud.spent {
  color: #aba0b6;
}
#touch {
  display: none;
  position: absolute;
  inset: auto 0 0;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#stick, #touch button {
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
}
#stick {
  position: relative;
  width: var(--stick-size);
  height: var(--stick-size);
  border: 2px solid #aa96a6;
  background: radial-gradient(circle, #302636bd 48%, #51404fbd 49%, #312738cc 60%, #211b2ad9 87%);
  box-shadow: inset 0 0 0 3px #241c2b9c, 0 3px 0 #120e18a8;
  color: #dfc6bd;
}
#stick span {
  position: absolute;
  font: bold 20px/1 var(--sans);
  pointer-events: none;
}
.stick-left, .stick-right { top: 50%; transform: translateY(-55%); }
.stick-left { left: 8%; }
.stick-right { right: 8%; }
.stick-down { left: 50%; bottom: 2%; transform: translateX(-50%); }
.stick-cap {
  position: absolute;
  width: 46%;
  height: 46%;
  top: 27%;
  left: 27%;
  border: 2px solid #d5b9ac;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 21%, #b196977d 22% 25%, transparent 26%), linear-gradient(140deg, #a88c8b, #685464);
  box-shadow: inset 0 -4px 0 #695064, 0 3px 8px #19141e;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}
#stick.on .stick-cap { border-color: #ffe8ce; }
#touch .actions { display: flex; align-items: flex-end; gap: 9px; }
#touch button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: calc(var(--stick-size) * .62);
  aspect-ratio: 1;
  min-width: 50px;
  margin-bottom: 3px;
  padding: 0;
  border: 2px solid #b4a3b4;
  background: #372c3de3;
  color: #ffebd5;
  box-shadow: inset 0 -4px 0 #271e2f, 0 3px 0 #15101d9c;
  text-transform: uppercase;
  font: bold clamp(10px, 2vmin, 13px)/1 var(--mono);
}
#touch button b { font: bold 26px/.85 var(--sans); }
#touch button[data-bit='J'] {
  width: calc(var(--stick-size) * .8);
  margin-bottom: 0;
  border-color: #ffddb1;
  background: linear-gradient(145deg, #ffc391, #f39877);
  color: #392432;
  box-shadow: inset 0 -5px 0 #bd705f, 0 3px 0 #20151fb3;
}
#touch button:active { transform: none; }
#touch button.on { filter: brightness(1.18); }
@media (max-width: 1050px) {
  .mode {
    gap: 6px;
  }
  .mode small {
    font-size: 11px;
  }
}
@media (max-width: 790px) {
  #lobby {
    grid-template-columns: minmax(275px, 0.95fr) minmax(280px, 1fr);
    gap: 0 24px;
    padding-inline: 24px;
  }
  .quick {
    padding: 12px;
  }
  .bindings {
    gap: 12px;
  }
  .modegrid {
    gap: 5px;
  }
  .bar {
    height: 60px;
  }
  .quicktitle {
    font-size: 10px;
  }
  .mode .icon {
    width: 17px;
  }
}
@media (max-width: 640px) {
  .bar,
  footer {
    padding-inline: 17px;
  }
  .bar {
    height: 54px;
  }
  .brand {
    gap: 8px;
  }
  .arcade {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .tools {
    gap: 5px;
  }
  .tool {
    width: 33px;
    min-height: 32px;
    justify-content: center;
    padding: 3px;
  }
  .tool span {
    display: none;
  }
  .brand-wordmark { width: 120px; }
  .brand .vline {
    height: 14px;
  }
  #lobby {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 24px 17px 22px;
  }
  .intro {
    grid-area: 1/1;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
  }
  h1 {
    line-height: 0.95;
    margin: 0 0 12px -2px;
  }
  .lead {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .cabinet {
    grid-area: 2/1;
    margin-bottom: 19px;
  }
  .screen {
    min-height: 0;
    height: clamp(160px, 48vw, 255px);
    flex: auto;
  }
  .screen img {
    object-fit: cover;
    object-position: 72% 36%;
  }
  figcaption {
    font-size: 9px;
    padding: 6px;
  }
  .mode small {
    font-size: 12px;
  }
  .mode {
    padding: 9px 11px;
    gap: 10px;
  }
  .mode .icon {
    width: 20px;
  }
  #setup {
    grid-area: 3/1;
  }
  .quick {
    display: none;
  }
  .primary {
    font-size: 16px;
  }
  .namebox {
    height: 42px;
  }
  fieldset {
    margin: 13px 0;
  }
  .tool .icon {
    width: 16px;
  }
  footer {
    font-size: 10px;
    min-height: 46px;
  }
  #speech {
    padding: 9px 11px;
  }
  #line {
    font-size: 14px;
  }
}
@media (pointer: coarse), (max-width: 650px), (max-height: 500px) and (max-width: 950px) {
  #touch {
    display: flex;
    --stick-size: clamp(90px, 25vmin, 120px);
  }
  #dash-hud {
    top: calc(max(8px, 1.5vmin, env(safe-area-inset-top)) + 50px);
    right: max(8px, 1.5vmin, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
    transform: none;
  }
  #unlock { bottom: calc(clamp(90px, 25vmin, 120px) + 18px + env(safe-area-inset-bottom)); }
}
.lookup {
  width: min(460px, calc(100% - 32px));
  margin: 12vh auto;
}
.lookup h2 {
  font-size: 29px;
  letter-spacing: -2px;
  line-height: 1.1;
}
.lookup .primary {
  margin-top: 12px;
}
.lookup a {
  color: var(--mint);
}
#found {
  border: 1px dashed var(--mint);
  padding: 12px;
  margin-top: 20px;
  color: var(--cream);
  overflow-wrap: anywhere;
}
#speech:before {
  top: auto;
  bottom: -12px;
  border-bottom-color: transparent;
  border-top-color: #fff1d8;
}
.preferences {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.win-art {
  display: flex;
  align-items: center;
  padding-left: 18px;
  height: 70px;
  margin: -27px -27px 18px;
  background: linear-gradient(90deg, #231a37dc, transparent 55%), #31243a url('assets/tower.webp') center 3% / cover no-repeat;
  border-bottom: 1px solid #665165;
  image-rendering: pixelated;
}
.win-art img { width: 140px; height: auto; image-rendering: auto; mix-blend-mode: lighten; }
@media (max-height: 650px) {
  .win-art {
    height: 34px;
  }
}
#personal-best {
  display: block;
  font: 11px var(--mono);
  color: #c8c0d1;
  margin: 0 0 13px;
}
