@font-face {
  font-family: Future;
  src: url("/game/fonts/fptbook.otf");
}
@font-face {
  font-family: Future;
  src: url("/game/fonts/fptb.otf");
  font-weight: 700;
}
:root {
  --teal: #007f73;
  --brown: #795548;
  --paper: #e2e2e2;
  --ink: #242424;
  --line: #b7b7b7;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body,
main {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  font:
    17px Future,
    sans-serif;
  color: var(--ink);
  background: #1a2733;
}
iframe {
  width: 100%;
  height: 100dvh;
  display: block;
  border: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.upload {
  background: var(--brown);
  color: white;
  border: 0;
  border-radius: 3px;
  padding: 8px 15px;
  cursor: pointer;
  line-height: 1.3;
}
button:hover,
.upload:hover {
  background: #624235;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
::selection {
  color: white;
  background: var(--teal);
}
[hidden] {
  display: none !important;
}
/* The only launcher and fullscreen controls are part of the native game nav. */
#tools,
#reveal {
  display: none !important;
}
#connection {
  color: #4c4c4c;
  font-size: 15px;
  margin: 10px 0 12px;
}
#drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  background: var(--paper);
  z-index: 500;
  overflow: auto;
  box-shadow: -6px 0 24px #0005;
  padding: 0 22px 22px;
  scrollbar-color: var(--brown) var(--paper);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--teal);
  color: white;
  padding: 17px 22px;
  margin: 0 -22px;
}
h1 {
  font-size: 24px;
  margin: 0;
}
header button {
  font-size: 14px;
  background: #006b61;
}
h2 {
  font-size: 23px;
  margin: 25px 0 9px;
}
h3 {
  font-size: 20px;
  margin: 22px 0 8px;
}
p {
  line-height: 1.4;
  margin: 10px 0 16px;
}
#tabs {
  display: flex;
  border-bottom: 2px solid var(--teal);
  gap: 2px;
  position: sticky;
  top: 0;
  background: var(--paper);
  padding-top: 8px;
  z-index: 2;
}
#tabs button {
  flex: 1;
  padding: 9px 4px;
  background: transparent;
  color: var(--ink);
  border-radius: 3px 3px 0 0;
}
#tabs button[aria-selected="true"] {
  background: var(--teal);
  color: white;
}
label {
  display: block;
  margin: 12px 0 6px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 9px;
  margin-top: 5px;
  color: var(--ink);
  background: white;
  border: 1px solid #9d9d9d;
  border-radius: 3px;
  caret-color: var(--teal);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
#modsource {
  font:
    13px/1.5 ui-monospace,
    monospace;
  min-height: 140px;
}
.fields {
  display: flex;
  gap: 12px;
}
.fields label {
  flex: 1;
  min-width: 0;
}
form button {
  margin-top: 10px;
}
.room,
.mod,
.map {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.room strong {
  font-size: 19px;
}
.room p {
  font-size: 15px;
  margin: 4px 0;
}
.room button {
  margin: 7px 7px 0 0;
  font-size: 15px;
}
.mod label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.mod input {
  width: auto;
  margin: 0;
}
.upload {
  display: inline-block;
  margin: 16px 4px 10px 0;
}
.upload input {
  max-width: 340px;
  font-size: 14px;
}
#status {
  display: block;
  min-height: 25px;
  margin-top: 20px;
  color: #823026;
}
a {
  color: #006a60;
  text-underline-offset: 3px;
}
#modstatus {
  display: block;
  margin: 12px 0;
}
#modlist p {
  font-size: 15px;
  margin: 6px 0;
}
#profile p {
  padding: 10px;
  background: white;
  border-radius: 3px;
}
@media (max-width: 600px) {
  #drawer {
    width: 100%;
  }
  header {
    padding-top: max(17px, env(safe-area-inset-top));
  }
}

#modpacks:empty {
  display: none;
}
#modpacks {
  margin-bottom: 20px;
}
#modpacks button {
  margin: 6px 6px 0 0;
}
#modpacks code {
  overflow-wrap: anywhere;
}
