/* Reuses the Jouby's Tools CGA palette, self-hosted type and square Win95 chrome. */
:root {
  --desktop: #008080;
  --black: #000;
  --white: #fff;
  --face: #c0c0c0;
  --light: #dfdfdf;
  --shadow: #808080;
  --green: #55ff55;
  --dark-green: #005500;
  --navy: #000080;
  --yellow: #ffff55;
  --red: #ff5555;
  --teal: #55ffff;
  --pixel: Silkscreen, monospace;
  --dos: VT323, monospace;
  --bevel:
    inset 1px 1px #fff, inset -1px -1px #000, inset 2px 2px #dfdfdf,
    inset -2px -2px #808080;
  --sunken:
    inset 1px 1px #000, inset -1px -1px #fff, inset 2px 2px #808080,
    inset -2px -2px #dfdfdf;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--desktop);
  color: white;
  font: 20px/1.35 var(--dos);
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  border: 0;
  border-radius: 0;
}
button:disabled {
  cursor: not-allowed;
}
input,
select {
  border-radius: 0;
}
img,
svg {
  image-rendering: pixelated;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px dashed var(--yellow);
  outline-offset: 4px;
}
::selection {
  background: var(--green);
  color: #000;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--pixel);
  font-weight: 400;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
}
h3 {
  font-size: 12px;
  line-height: 1.6;
}
.desktop {
  max-width: 1220px;
  margin: auto;
  padding: 22px 30px 30px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.jouby {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px var(--pixel);
  text-decoration: none;
}
.jouby svg {
  width: 24px;
  height: 24px;
}
.site-header nav {
  display: flex;
  gap: 6px;
}
.site-header nav a {
  padding: 11px 18px;
  background: var(--face);
  box-shadow: var(--bevel);
  color: #000;
  text-decoration: none;
  font: 10px var(--pixel);
}
.site-header nav a[aria-current] {
  background: #dfdfdf;
  box-shadow: var(--sunken);
}
.prototype-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--pixel);
  line-height: 1.5;
  margin: 0 2px 10px;
}
.prototype-note span:last-child {
  font: 17px var(--dos);
}
.game-window {
  padding: 4px;
  background: var(--face);
  box-shadow:
    var(--bevel),
    8px 8px #005555;
}
.titlebar {
  height: 30px;
  background: #00aa00;
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 3px 4px 3px 9px;
  font: 10px var(--pixel);
}
.titlebar svg {
  width: 20px;
  height: 20px;
}
.window-caption {
  margin-left: auto;
  font-size: 9px;
}
.titlebar button {
  width: 23px;
  height: 23px;
  background: var(--face);
  color: #000;
  box-shadow: var(--bevel);
  font: 20px/1 var(--dos);
}
.menubar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 12px;
  color: #000;
  min-height: 32px;
  font-size: 18px;
}
.menubar button {
  background: none;
  padding: 1px 0;
  color: inherit;
}
.menubar button:hover {
  text-decoration: underline;
}
.menubar > span {
  margin-left: auto;
  font-size: 16px;
  color: #444;
}
main {
  background: #000;
  color: #fff;
  min-height: 620px;
  outline: 0;
  overflow: hidden;
}
.statusbar {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  color: #000;
  font-size: 15px;
}
.statusbar span {
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff;
  padding: 2px 9px;
  white-space: nowrap;
}
.statusbar span:first-child {
  flex: 1;
  white-space: normal;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: #fff;
  font-size: 17px;
}
.site-footer a {
  text-underline-offset: 3px;
}
.skip {
  position: fixed;
  top: -100px;
  background: #000;
  padding: 12px;
  z-index: 30;
}
.skip:focus {
  top: 10px;
}
.eyebrow {
  font: 10px/1.7 var(--pixel);
  letter-spacing: 1px;
  color: var(--green);
}
.muted {
  color: #aaa;
}
.dim {
  color: #808080;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 47%;
  gap: 34px;
  padding: 44px 34px 32px;
  align-items: center;
}
.hero h1 {
  font-size: 62px;
  letter-spacing: -4px;
  line-height: 1.15;
  color: #fff;
  margin: 18px 0 12px;
  text-shadow: 4px 4px #005500;
}
.hero .tagline {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--green);
  line-height: 1.8;
}
.hero .intro {
  color: #c0c0c0;
  font-size: 23px;
  max-width: 420px;
  margin-top: 20px;
}
.hero .actions {
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  background: var(--face);
  color: #000;
  box-shadow: var(--bevel);
  font: 11px/1.6 var(--pixel);
  text-decoration: none;
  min-height: 43px;
}
.btn:active {
  box-shadow: var(--sunken);
  transform: translate(1px, 1px);
}
.btn:hover {
  background: #dfdfdf;
}
.btn.primary {
  background: var(--green);
  box-shadow:
    inset 1px 1px #aaffaa,
    inset -2px -2px #005500;
  color: #000;
}
.btn.primary:hover {
  background: #aaffaa;
}
.btn.ghost {
  background: #000;
  box-shadow: inset 0 0 0 1px #808080;
  color: #fff;
}
.btn.ghost:hover {
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.btn:disabled {
  background: #222;
  color: #808080;
  box-shadow: inset 0 0 0 1px #444;
  transform: none;
}
.btn.small {
  font-size: 9px;
  min-height: 34px;
  padding: 7px 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.hero .micro {
  margin-top: 12px;
  font-size: 17px;
  color: #aaa;
}
.screen-figure {
  margin: 0;
  border: 1px solid #555;
  padding: 6px;
  background: #161616;
  position: relative;
}
.screen-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.screen-figure figcaption {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px 2px;
  color: #aaa;
  font-size: 16px;
}
.screen-figure figcaption strong {
  color: var(--green);
  font-weight: 400;
}
.map-badge {
  position: absolute;
  top: 17px;
  left: 17px;
  background: #000;
  border: 1px solid #808080;
  color: white;
  font: 9px var(--pixel);
  padding: 6px 8px;
}
.menu-options {
  margin: 0 34px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #444;
}
.menu-option {
  position: relative;
  text-align: left;
  display: block;
  background: #111;
  color: #fff;
  padding: 20px;
  border-right: 1px solid #444;
  text-decoration: none;
}
.menu-option:last-child {
  border-right: 0;
}
.menu-option:hover {
  background: #181818;
}
.menu-option .num {
  color: #808080;
  font: 10px var(--pixel);
}
.menu-option h3 {
  margin: 12px 0 8px;
  color: #fff;
}
.menu-option p {
  color: #aaa;
  font-size: 19px;
  max-width: 230px;
}
.menu-option .arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--green);
  font-size: 25px;
}
.bottom-strip {
  margin: 0 34px;
  padding: 14px 0 20px;
  border-top: 1px dashed #444;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: #aaa;
  font-size: 17px;
}
.bottom-strip strong {
  color: var(--green);
  font-weight: 400;
}
.page-top {
  padding: 26px 28px 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #444;
}
.page-top h1 {
  font-size: 26px;
  margin: 8px 0;
}
.page-top p {
  color: #aaa;
  font-size: 20px;
}
.back {
  display: inline-block;
  border: 0;
  background: none;
  color: #aaa;
  padding: 0;
  text-decoration: none;
  font: 18px var(--dos);
}
.back:hover {
  color: var(--green);
}
.filters {
  padding: 18px 28px;
  display: flex;
  gap: 12px;
  align-items: end;
  background: #111;
  border-bottom: 1px solid #444;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field > span,
.field > label,
.field-label {
  font: 9px/1.6 var(--pixel);
  color: #aaa;
}
.field input,
.field select,
.plain-input {
  background: #000;
  border: 1px solid #808080;
  color: #fff;
  min-height: 38px;
  padding: 6px 10px;
  min-width: 0;
  font-size: 20px;
  width: 100%;
}
.field input::placeholder {
  color: #808080;
}
.field.search {
  flex: 1;
  min-width: 180px;
}
.field select {
  min-width: 140px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c0c0c0;
  font-size: 18px;
  min-height: 38px;
}
.check input {
  accent-color: #55ff55;
  width: 16px;
  height: 16px;
}
.rooms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 382px;
}
.room-list {
  padding: 16px 24px 24px 28px;
  border-right: 1px solid #444;
  min-width: 0;
}
.list-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  color: #aaa;
  margin-bottom: 14px;
  gap: 12px;
}
.sample {
  font: 8px/1.5 var(--pixel);
  padding: 4px 6px;
  border: 1px solid #665500;
  color: var(--yellow);
  white-space: nowrap;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font: 9px var(--pixel);
  color: #aaa;
  padding: 0 10px 10px;
}
th:first-child {
  padding-left: 0;
}
td {
  padding: 14px 10px;
  border-top: 1px solid #333;
  font-size: 18px;
  vertical-align: middle;
}
td:first-child {
  padding-left: 0;
}
.room-pick {
  font: 20px var(--dos);
  background: none;
  color: #fff;
  text-align: left;
  padding: 0;
  display: block;
}
.room-pick:hover {
  color: var(--green);
}
.room-meta {
  display: block;
  font-size: 16px;
  color: #aaa;
  margin-top: 2px;
}
tr.selected {
  background: #003300;
  box-shadow: inset 3px 0 var(--green);
}
tr.selected td:first-child {
  padding-left: 10px;
}
tr.selected .room-pick {
  color: var(--green);
}
td .ping {
  font-size: 19px;
  color: var(--green);
  white-space: nowrap;
}
.lock {
  color: var(--yellow);
  font-size: 15px;
}
.room-detail {
  background: #111;
  padding: 20px;
}
.room-detail .preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid #555;
  margin-bottom: 15px;
}
.room-detail h2 {
  font-size: 16px;
  line-height: 1.7;
  margin: 9px 0 4px;
}
.room-detail p {
  color: #aaa;
  font-size: 18px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.tag {
  font: 8px/1.5 var(--pixel);
  padding: 5px 6px;
  border: 1px solid #555;
  color: #c0c0c0;
}
.tag.green {
  border-color: #005500;
  color: var(--green);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 18px;
  margin: 17px 0;
}
.facts dt {
  color: #aaa;
}
.facts dd {
  margin: 0;
  text-align: right;
}
.room-detail .btn {
  width: 100%;
}
.page-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 17px;
}
.text-button {
  background: none;
  color: var(--green);
  padding: 0;
  text-decoration: underline;
  font: inherit;
  text-underline-offset: 4px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: #aaa;
}
.empty p {
  margin: 10px 0 20px;
}
.host-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  padding: 26px 28px 30px;
}
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 11px var(--pixel);
  margin-bottom: 18px;
}
.step-label b {
  display: inline-grid;
  place-items: center;
  background: #005500;
  color: var(--green);
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.field.wide {
  grid-column: 1/-1;
}
.segmented {
  display: flex;
  gap: 0;
  margin-top: 8px;
}
.segmented button {
  border: 1px solid #555;
  background: #111;
  color: #aaa;
  padding: 10px 14px;
  font-size: 20px;
  flex: 1;
}
.segmented button[aria-pressed="true"] {
  color: var(--green);
  background: #003300;
  border-color: var(--green);
}
.host-side {
  border: 1px solid #444;
  padding: 20px;
  background: #111;
  align-self: start;
}
.host-side img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 12px 0;
}
.host-side h3 {
  color: var(--green);
  margin-bottom: 12px;
}
.host-side p {
  font-size: 19px;
  color: #aaa;
  margin: 10px 0;
}
.host-side ol {
  padding-left: 22px;
  color: #c0c0c0;
  font-size: 19px;
}
.host-side li {
  margin: 10px 0;
}
.callout {
  padding: 13px 15px;
  border-left: 3px solid var(--yellow);
  background: #191900;
  color: #dfdfdf;
  font-size: 19px;
  margin: 18px 0;
}
.field-note {
  color: #aaa;
  font-size: 17px;
  margin-top: 5px;
}
.host-summary {
  border-top: 1px dashed #555;
  margin-top: 22px;
  padding-top: 20px;
}
.host-summary p {
  margin: 12px 0;
}
.host-link {
  background: #000;
  color: var(--green);
  border: 1px solid #555;
  padding: 12px;
  font: 18px var(--dos);
  width: 100%;
}
.big-notice {
  max-width: 720px;
  padding: 34px;
  margin: auto;
}
.big-notice h1 {
  font-size: 28px;
  margin: 16px 0 24px;
}
.big-notice p {
  color: #c0c0c0;
  font-size: 23px;
  margin: 16px 0;
}
.big-notice h3 {
  margin: 26px 0 10px;
  color: var(--green);
}
.big-notice ul {
  color: #c0c0c0;
  font-size: 22px;
  padding-left: 22px;
}
.big-notice li {
  margin: 8px 0;
}
.player-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: #111;
  border-bottom: 1px solid #444;
  font-size: 19px;
  color: #aaa;
}
.player-line strong {
  color: var(--green);
  font-weight: 400;
}
.player-line .text-button {
  margin-left: auto;
}
.solo-content {
  padding: 24px 28px;
}
.map-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 25px;
}
.map-choice {
  display: block;
  text-align: left;
  background: #111;
  color: white;
  border: 1px solid #555;
  padding: 5px;
}
.map-choice[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.map-choice img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.map-choice h3 {
  padding: 12px 8px 3px;
}
.map-choice p {
  color: #aaa;
  padding: 0 8px 10px;
  font-size: 18px;
}
.launch-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}
.play-preview {
  position: relative;
  background: #111;
  max-width: 800px;
  margin: 24px auto;
}
.play-preview > img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.preview-overlay {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  background: #000;
  border: 2px solid var(--green);
  padding: 22px;
  text-align: center;
  box-shadow: 6px 6px #000;
}
.preview-overlay h2 {
  font-size: 20px;
  color: var(--green);
}
.preview-overlay p {
  color: #c0c0c0;
  margin: 12px 0 18px;
}
.preview-overlay .actions {
  justify-content: center;
}
.join-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  padding: 28px;
}
.join-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.join-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #333;
  font-size: 22px;
  color: #808080;
}
.join-steps b {
  display: grid;
  place-items: center;
  font: 10px var(--pixel);
  width: 24px;
  height: 24px;
  border: 1px solid #555;
}
.join-steps .done {
  color: var(--green);
}
.join-steps .current {
  color: #fff;
}
.join-steps .current b {
  color: #000;
  background: var(--green);
  border-color: var(--green);
}
.join-steps .failed {
  color: var(--red);
}
.test-switches {
  margin-top: 22px;
  border: 1px dashed #665500;
  padding: 15px;
}
.test-switches summary {
  cursor: pointer;
  color: var(--yellow);
  font-size: 18px;
}
.test-switches .actions {
  margin-top: 12px;
}
.join-message {
  font-size: 22px;
  margin: 20px 0;
}
.lobby-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #444;
  padding: 12px 0;
}
.lobby-row .team {
  color: var(--green);
}
dialog {
  padding: 4px;
  border: 0;
  background: var(--face);
  box-shadow:
    var(--bevel),
    8px 8px #000;
  width: min(560px, calc(100vw - 30px));
  color: #000;
  max-height: 90vh;
}
dialog::backdrop {
  background: #000b;
}
dialog .titlebar span {
  flex: 1;
}
#dialog-body {
  padding: 24px;
}
#dialog-body p {
  margin: 10px 0 18px;
  font-size: 22px;
}
#dialog-body .field > span {
  color: #333;
}
#dialog-body input {
  background: #fff;
  color: #000;
  box-shadow: var(--sunken);
  border: 0;
  padding: 9px;
}
#dialog-body .actions {
  justify-content: flex-end;
  margin-top: 22px;
}
#dialog-body h3 {
  font-size: 14px;
}
#dialog-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 22px;
}
#dialog-body dd {
  margin: 0;
}
#dialog-body .error {
  color: #a00;
}
.error {
  color: var(--red);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  padding: 12px 20px;
  box-shadow: 4px 4px #000;
  font-size: 20px;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
#toast:empty {
  display: none;
}
.desktop.expanded {
  max-width: none;
  padding: 8px 12px;
}
.expanded .prototype-note,
.expanded .site-footer {
  display: none;
}
.expanded .site-header {
  margin-bottom: 12px;
}
.expanded main {
  min-height: calc(100vh - 150px);
}
@media (min-width: 1500px) {
  .desktop {
    padding-top: 36px;
  }
  .hero {
    padding-top: 52px;
    padding-bottom: 40px;
  }
}
@media (max-width: 1000px) {
  .desktop {
    padding: 16px;
  }
  .hero {
    gap: 22px;
    padding: 32px 24px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .tagline {
    font-size: 11px;
  }
  .menu-options {
    margin-left: 24px;
    margin-right: 24px;
  }
  .rooms-layout {
    grid-template-columns: 1fr 265px;
  }
  .room-list {
    padding-left: 18px;
    padding-right: 16px;
  }
  td,
  th {
    padding-left: 7px;
    padding-right: 7px;
  }
  .host-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
  .btn {
    font-size: 10px;
  }
  .hide-medium {
    display: none;
  }
  .prototype-note {
    font-size: 8px;
  }
  .site-footer {
    font-size: 16px;
  }
}
@media (max-width: 740px) {
  .desktop {
    padding: 12px 10px;
  }
  .site-header {
    margin-bottom: 18px;
  }
  .jouby {
    font-size: 8px;
    gap: 6px;
  }
  .jouby svg {
    width: 20px;
    height: 20px;
  }
  .site-header nav a {
    padding: 10px;
    font-size: 8px;
  }
  .prototype-note {
    display: block;
  }
  .prototype-note span {
    display: block;
  }
  .prototype-note span:last-child {
    font-size: 16px;
    margin-top: 5px;
  }
  .window-caption {
    font-size: 8px;
  }
  .menubar > span {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 25px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .intro {
    font-size: 23px;
  }
  .hero .screen-figure {
    max-width: 480px;
  }
  .menu-options {
    grid-template-columns: 1fr;
    margin: 0 20px 24px;
  }
  .menu-option {
    border-right: 0;
    border-bottom: 1px solid #444;
    padding: 16px 18px;
  }
  .menu-option:last-child {
    border-bottom: 0;
  }
  .menu-option .num {
    float: left;
    margin: 4px 14px 0 0;
  }
  .menu-option h3 {
    margin: 0 0 6px;
  }
  .menu-option p {
    max-width: none;
    padding-left: 31px;
  }
  .bottom-strip {
    margin: 0 20px;
    display: block;
  }
  .bottom-strip span {
    display: block;
    margin: 5px 0;
  }
  .statusbar span:last-child {
    display: none;
  }
  .statusbar span {
    font-size: 14px;
  }
  .site-footer {
    display: block;
  }
  .site-footer > span {
    display: block;
  }
  .site-footer a {
    display: inline-block;
    margin-top: 8px;
  }
  .page-top {
    padding: 20px;
    align-items: start;
    flex-direction: column;
  }
  .page-top h1 {
    font-size: 22px;
  }
  .page-top .actions {
    width: 100%;
  }
  .page-top .actions .btn {
    flex: 1;
  }
  .filters {
    padding: 16px 20px;
    gap: 10px;
  }
  .field.search {
    flex-basis: 100%;
  }
  .filters .field:not(.search) {
    flex: 1;
  }
  .filters .field select {
    min-width: 0;
  }
  .filters > .check {
    flex-basis: 100%;
    min-height: 28px;
  }
  .rooms-layout {
    grid-template-columns: 1fr;
  }
  .room-list {
    border-right: 0;
    border-bottom: 1px solid #444;
    padding: 18px 14px;
    overflow: auto;
  }
  .room-detail {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .room-detail .preview {
    grid-row: 1/5;
    aspect-ratio: 4/3;
    align-self: center;
  }
  .room-detail .facts,
  .room-detail > .btn,
  .room-detail > .field-note {
    grid-column: 1/-1;
  }
  .room-detail h2 {
    font-size: 13px;
  }
  .room-detail > .eyebrow {
    font-size: 8px;
  }
  .room-detail .tag-row {
    margin: 5px 0;
  }
  .room-meta {
    font-size: 15px;
  }
  .room-pick {
    font-size: 19px;
  }
  td {
    font-size: 17px;
  }
  td:nth-child(2),
  th:nth-child(2) {
    display: none;
  }
  .page-bottom {
    padding: 14px 20px;
    align-items: start;
    flex-direction: column;
  }
  .host-layout,
  .join-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .host-side {
    margin-top: 8px;
  }
  .form-grid {
    gap: 14px;
  }
  .map-options {
    grid-template-columns: 1fr;
  }
  .map-choice {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0 10px;
  }
  .map-choice img {
    grid-row: 1/3;
    height: 90px;
    object-fit: cover;
  }
  .map-choice h3 {
    align-self: end;
  }
  .map-choice p {
    padding-bottom: 5px;
  }
  .launch-panel {
    grid-template-columns: 1fr 1fr;
  }
  .launch-panel > .btn {
    grid-column: 1/-1;
  }
  .player-line {
    padding: 14px 20px;
    font-size: 17px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .player-line .text-button {
    margin-left: 0;
  }
  .solo-content {
    padding: 20px;
  }
  .big-notice {
    padding: 25px 20px;
  }
  .big-notice h1 {
    font-size: 22px;
  }
  .big-notice p {
    font-size: 21px;
  }
  .preview-overlay {
    left: 5%;
    right: 5%;
    bottom: 5%;
    padding: 16px;
  }
  .preview-overlay h2 {
    font-size: 16px;
  }
  .preview-overlay .btn {
    font-size: 8px;
    padding: 10px;
  }
  .play-preview {
    margin: 15px;
  }
  .play-preview > img {
    min-height: 440px;
  }
  .game-window {
    box-shadow:
      var(--bevel),
      4px 4px #005555;
  }
}
/* Live play: the menus give way to the actual emulator canvas. */
.game-stage {
  background: #000;
  position: relative;
  max-width: 960px;
  margin: 20px auto;
  padding: 0 12px;
}
.game-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  image-rendering: pixelated;
  outline: none;
  background: #080808;
}
.game-tools {
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.game-message {
  padding: 14px 24px;
  font-size: 22px;
  color: var(--green);
}
.game-message.error {
  color: var(--red);
}
.host-command {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #000;
  border: 1px solid #555;
  padding: 14px;
  font: 17px/1.5 var(--dos);
  color: var(--green);
}
.room-pick {
  width: 100%;
  min-height: 30px;
}
.startup-note {
  padding: 18px 28px;
  color: #aaa;
}
.mobile-notice {
  display: none;
}
.game-stage:fullscreen {
  background: #000;
  display: grid;
  place-items: center;
  padding: 0;
  max-width: none;
}
.game-stage:fullscreen canvas {
  width: auto;
  height: 100%;
  max-width: 100vw;
  object-fit: contain;
}
@media (max-width: 740px) {
  .mobile-notice {
    display: block;
  }
  .game-stage {
    margin: 10px auto;
  }
  .game-tools .btn {
    font-size: 9px;
  }
  .host-command {
    font-size: 16px;
  }
}

.in-match .page-top {
  padding: 16px 24px;
}
.in-match .page-top .back,
.in-match .page-top .eyebrow,
.in-match .page-top p {
  display: none;
}
.in-match .page-top h1 {
  margin: 0;
  font-size: 20px;
}
.in-match .game-stage {
  max-width: min(960px, calc((100dvh - 290px) * 4 / 3));
  min-width: 280px;
}
.in-match .game-message {
  padding: 8px 24px;
}
.in-match .startup-note {
  padding: 8px 24px;
}
.in-match .game-stage:fullscreen {
  max-width: none;
  min-width: 0;
}
