/* 


EDITOR


*/
@font-face {
  font-family: "FA Sysfont C";
  src: url("./assets/fonts/sysfont.woff2") format("woff2"), url("./assets/fonts/sysfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Director";
  src: url("./assets/fonts/Director-Regular.woff2") format("woff2"), url("./assets/fonts/Director-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/*

  COLORS

*/
* {
  text-decoration: none;
  box-sizing: border-box;
}

:root {
  --font-mono: "Fa Sysfont C";
  --font-serif: "Director";
  --bg-light-gray: rgba(255, 255, 255, 0.75);
  --ui-sidebar-padding: 0.25rem;
  --ui-btn-padding: .25rem .75rem;
  --ui-btn-padding-s: .25rem;
  --ui-btn-margin: .25rem;
  --ui-btn-height: 24px;
  --ui-btn-bg-transparent: rgba(0, 0, 0, 0.5);
  --ui-input-height: 32px;
  --nav-padding: .75rem;
  --nav-inner-padding: .5rem;
  --nav-btn-padding: .5rem 1rem;
  --nav-btn-bg: var(--ui-btn-bg-transparent);
  --outer-modal-bg: var(--bg-light-gray);
  --outer-modal-width: 320px;
  --outer-modal-padding: 2vw;
  --outer-modal-opacity: 0.85;
  --modal-bg: rgba(0,0,0,0.8);
  --header-padding: .25rem;
  --header-modal-padding: .5rem .25rem;
  --font-xs: .6rem;
  --font-s: .75rem;
  --font-m: .8rem;
  --z-bar: 2;
  --z-bar-top: 2;
  --z-bar-bottom: 2;
  --z-audio: 5;
  --z-jump: 5000;
  --z-tooltip: 15000;
  --c-light: #fff;
  --c-dark: #000;
  --c-accent: #eb80ff;
  --border: 1px solid var(--c-light);
  --border-dark: 1px solid var(--c-dark);
  --border-thick: 1.5px solid var(--c-dark);
  --border-dashed: 1px dashed var(--c-light);
  --border-accent: 1px solid var(--c-accent);
  --border-focus: 2px dashed var(--c-light);
  --border-subtle: 1px solid #333;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 20px;
}

.container.-col {
  display: flex;
  flex-direction: column;
}
.container.-row {
  display: flex;
  flex-direction: row;
}
.container.-center {
  justify-content: center;
}

.modal {
  background: var(--modal-bg);
  color: #edede8;
  min-width: min(320px, 40vw);
  max-width: 90vw;
  border: var(--border);
  border-radius: var(--radius-xl);
  padding-bottom: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal a {
  color: #edede8;
}
.modal a:hover {
  opacity: 0.7;
}
.modal label,
.modal p,
.modal span,
.modal td,
.modal th {
  color: #edede8;
}
.modal select,
.modal input[type="text"],
.modal input[type="url"],
.modal input[type="number"] {
  color: #edede8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.window {
  background: var(--bg-light-gray);
  border-radius: var(--radius-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-width: min(320px, 40vw);
  max-width: 90vw;
  overflow: hidden;
}
.window .-content {
  padding: 2.5vh 0;
  width: auto;
  text-align: center;
}
.window .-controls button {
  background: #ddd;
  font-size: 0.6rem;
  border-radius: var(--radius-pill);
}

h2 {
  font-size: var(--font-s);
  color: var(--c-light);
  mix-blend-mode: difference;
}

h3 {
  font-family: inherit;
  margin: 0;
  padding: var(--ui-sidebar-padding);
  padding-top: 0;
  font-size: var(--font-s);
  font-weight: normal;
  text-align: left;
  border-bottom: var(--border-subtle);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #fff #000;
}

*::-webkit-scrollbar {
  width: 1px;
  height: 5px;
  background: #000;
}

*::-webkit-scrollbar-thumb {
  background: #fff;
}

*::-webkit-scrollbar-track {
  background: #000;
}

*::-webkit-scrollbar-corner {
  background: #000;
}

/* 
COMPONENTS
*/
input {
  font-family: var(--font-serif);
}

input[type=file], input[type=text], .input-file {
  display: inline-block;
  height: var(--ui-input-height);
  background: var(--ui-btn-bg-transparent);
  padding: var(--ui-btn-padding);
  border: var(--border);
  border-radius: var(--radius-xl);
  color: var(--c-light);
  font-size: var(--font-xs);
  -webkit-transition: all 0.12s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.12s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
input[type=file]:hover, input[type=text]:hover, .input-file:hover {
  transform: scale(1.05);
}

.btn, a.btn {
  background: var(--c-dark);
  color: var(--c-light);
  border: var(--border);
  border-radius: var(--radius-xl);
  height: var(--ui-btn-height);
  padding: var(--ui-btn-padding);
  margin: 0;
  line-height: 90%;
  font-size: var(--font-s);
}
.btn.--large, a.btn.--large {
  margin: 0 auto;
  width: 100%;
  background: var(--c-dark);
  border-radius: var(--radius-md);
  margin: var(--ui-btn-margin);
}

#workspace {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bar {
  position: fixed;
  width: 100%;
  left: 0;
  z-index: var(--z-bar);
  pointer-events: none;
  padding: var(--nav-padding);
  border: var(--debug-border);
  font-size: var(--font-s);
  font-family: "Director";
  text-align: center;
  color: var(--c-light);
}
.bar.bar-top {
  top: 0;
}
.bar.bar-bottom {
  bottom: 0;
}

#jump a, #info span {
  display: inline-block;
  pointer-events: auto;
  background: var(--c-dark);
  color: var(--c-light);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: var(--nav-btn-padding);
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  -webkit-transition: all 0.12s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.12s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
#jump a:hover, #info span:hover {
  transform: scale(1.15);
  filter: invert(1);
  cursor: pointer;
}
#jump a img, #info span img {
  filter: invert(1);
  display: none;
}

#info {
  display: flex;
  justify-content: space-between;
  z-index: var(--z-info);
}
#info span {
  backdrop-filter: hue-rotate(90deg);
}
#info span[text="cartridge-title"] {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

p {
  color: #edede8;
  font-family: monospace;
  margin: 0;
  padding: 0.25rem;
}
p a {
  color: #000;
}

#jump {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: var(--z-jump);
}
#jump [toggle=on] {
  background: var(--c-light);
  color: var(--c-dark);
}
#jump .-jump a {
  width: 90px;
}
#jump .-secondary {
  display: none;
  margin-bottom: 0.5rem;
}
#jump .-secondary a {
  font-size: var(--font-xs);
}
#jump .-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}
#jump .-primary.-tools {
  order: 1;
}
#jump .-primary.-jump {
  order: 2;
}
#jump .-primary.-publish {
  order: 3;
}

#map {
  width: 300px;
  display: none;
  top: 25vh;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
}
#map h2 {
  cursor: grab;
}

select {
  width: 100%;
  background: var(--c-dark);
  color: var(--c-light);
  font-size: var(--font-s);
  font-family: monospace;
}

button {
  border: var(--border-dark);
  background: #ddd;
  color: #1d1d1d;
  padding: var(--ui-btn-padding);
  margin: 0.25em;
  font-family: monospace;
  font-size: 0.8rem;
  -webkit-transition: all 0.19s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.19s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
button.--wide {
  width: 100%;
}

button.--small {
  margin-top: 0.25rem;
  font-size: var(--font-xs);
}

button.--med {
  padding: 0.25rem 1rem;
  margin: 0.25rem 0.5rem;
  font-size: 0.7rem;
}

button.--large {
  width: calc(100% - 0.5rem);
}

button:hover {
  transform: translateY(-2.5px);
  cursor: pointer;
}
button:hover img {
  filter: invert(1);
}

button.--destructive:hover {
  color: red;
  background: none;
}

/* PANELS & SIDEBARS */
.panel {
  width: 100%;
  margin: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}
.panel h3 {
  margin-bottom: 0.5rem;
}

.panel._full {
  border: var(--border-thick);
}

.panel._sidebar {
  border-top: none;
}
.panel._sidebar select,
.panel._sidebar input[type=range] {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  width: calc(100% - 0.5rem);
}

.sidebar {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: var(--ui-sidebar-padding);
  padding-top: 0;
}

#btn-savecartridge {
  margin: 0 auto;
  display: none;
}

#engine #controls, #engine #help {
  width: 150px;
  margin: 0 auto;
  padding: 0;
  margin-top: -4px;
}
#engine input[type=color] {
  display: block;
  width: 100%;
  height: 40px;
  border: none;
  border-color: transparent;
  background: none;
  cursor: pointer;
}
#engine input[type=color] input::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-md);
}
#engine #cartridge-title {
  z-index: 9;
  color: #fff;
  position: relative;
  top: 395px;
  text-align: center;
  font-size: 1.25rem;
  border-radius: var(--radius-pill);
  padding: 0.25rem 1rem;
  height: 32px;
  line-height: 120%;
  background: none;
  mix-blend-mode: difference;
  word-wrap: break-word;
  word-break: break-all;
}
#engine #cartridge-title:focus {
  border: var(--border-focus);
}
#engine #btn-editCartridge {
  font-size: 0.7rem;
  text-transform: none;
  font-family: monospace;
  color: #fff;
  background: #000 !important;
}
#engine [action=saveCartridge] {
  border: var(--border-dashed);
  background: #464A4B;
}
#engine #library .library-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--c-dark);
  height: 180px;
  overflow-x: hidden;
  overflow-y: scroll;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
#engine #library .library-selector img {
  margin: -2px;
}
#engine #library .library-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#engine #library select {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: 0.25rem;
  margin-bottom: 0;
  width: calc(100% - 0.5rem);
}
#engine #library #library-objects {
  margin: 0 0.25rem;
}
#engine #library #btn-open-custom-modal {
  display: block;
  margin: 0;
  margin-top: -4px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 0;
}
#engine #library #btn-open-custom-modal:hover {
  background: var(--c-light);
  color: var(--c-dark);
}
#engine #library ._toadd {
  background: #000000;
  padding: 0.25rem;
  object-fit: contain;
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  overflow: hidden;
  -webkit-transition: all 0.24s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.24s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  filter: none;
}
#engine #library ._toadd:hover {
  filter: invert(1);
  transform: scale(1.15);
  cursor: pointer;
  border: var(--border-dashed);
  border-radius: var(--radius-md);
}
#engine #library .library-custom-url {
  margin: 0.25rem;
}
#engine #library .library-custom-url button {
  width: 100%;
  font-size: 0.7em;
  padding: 0.3rem 0.5rem;
}
#engine select[name=effects-category] {
  margin: 0.25rem;
  width: calc(100% - 0.5rem);
}
#engine #library-scene-controls button {
  border-radius: var(--radius-md);
  border: 0;
  font-size: 0.5rem;
  background: #000;
  color: #edede8;
}
#engine #library-scene-controls button[disabled] {
  opacity: 0.1;
  cursor: not-allowed;
}
#engine #library-scene-controls button[disabled]:hover {
  transform: none;
}
#engine #library-scene-controls [checked] {
  pointer-events: none;
}
#engine #library-scene-controls .control-setstarting {
  background: #000;
  color: #edede8;
  margin: 0.25rem;
  font-size: 0.6rem;
  font-family: monospace;
  border-radius: var(--radius-lg);
  padding: 0.15rem;
  line-height: 80%;
  cursor: pointer;
  margin-top: 0.5rem;
}
#engine #library-scene-controls .control-setstarting label {
  display: inline-block;
  margin: 0;
  transform: translateY(-3px);
}

.control-checkbox {
  background: #000;
  color: #edede8;
  margin: 0.25rem;
  font-size: 0.6rem;
  font-family: monospace;
  border-radius: var(--radius-lg);
  padding: 0.15rem 0.25rem;
  line-height: 80%;
  cursor: pointer;
}
.control-checkbox label {
  display: inline-block;
  margin: 0;
  transform: translateY(-3px);
}

#controls-top {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 15;
  padding-bottom: 0.5rem;
  pointer-events: none;
}
#controls-top * {
  pointer-events: auto;
}
#controls-top .controls-selected {
  display: none;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 3rem 0 0;
}
#controls-top .obj-ctrl-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 999px;
  font-family: monospace;
  font-size: 0.65rem;
  color: #edede8;
  padding: 0.15rem 0.5rem;
  margin-right: 0.2em;
  vertical-align: middle;
}
#controls-top .obj-ctrl-group button {
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  margin: 0 0.1rem;
  min-width: 0;
  color: #edede8;
  font-size: 0.65rem;
  font-weight: bold;
  transition: background 0.1s ease !important;
  transform: none !important;
}
#controls-top .obj-ctrl-group button:hover {
  background: rgba(255, 255, 255, 0.2);
}
#controls-top > .controls-selected > button,
#controls-top > .controls-cartridge > button {
  background: rgba(0, 0, 0, 0.45);
  color: #edede8;
  border: none;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: monospace;
  padding: 0.25rem 0.6rem;
}
#controls-top > .controls-selected > button:hover,
#controls-top > .controls-cartridge > button:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.65);
}
#controls-top button[action=objDelete] {
  background: rgba(250, 77, 77, 0.42) !important;
  color: #edede8;
}
#controls-top button[action=objSave] {
  background: rgba(0, 0, 0, 0.7) !important;
  color: #edede8;
  position: absolute;
  right: 0.5rem;
}
#controls-top .controls-text {
  position: absolute;
  z-index: 9999;
  left: 160px;
  bottom: 0;
  margin-left: 30px;
  opacity: 0.4;
  -webkit-transition: all 0.25s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.25s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
#controls-top .controls-text button {
  width: auto;
}
#controls-top .controls-text button[editing] {
  border: var(--border-dashed);
  background: #464A4B;
}
#controls-top .controls-text #btn-changefonttext {
  background: none;
  border: none;
}

#engine-window:hover .controls-text {
  opacity: 0.8;
}

.engine-buttons {
  text-align: center;
  margin-bottom: 15vh;
}
.engine-buttons button {
  margin: 0 0.25em;
}
.engine-buttons button#btn-play {
  margin-top: 0.25rem;
  padding: 1em 5em;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: hue-rotate(180deg);
  font-family: monospace;
  color: #edede8;
}
.engine-buttons button#btn-play::before {
  display: inline-block;
  content: " ";
  width: 20px;
  height: 20px;
  background-image: url(assets/icon-play.gif);
  background-size: contain;
  margin: -1rem;
  position: relative;
  left: -16px;
  top: -12px;
  display: none;
}
.engine-buttons button#btn-clear {
  margin-top: 0.5rem;
  padding: 0.5em 2em;
  background: none;
  border: 0;
  color: #edede8;
  mix-blend-mode: difference;
}
.engine-buttons button.--med {
  background: #000;
  color: #edede8;
  font-size: 0.6rem;
  border-radius: var(--radius-pill);
}
.engine-buttons:hover > button:not(:hover) {
  opacity: 0.6;
}

input[name=caption],
input[name=title] {
  padding: 0.25em;
  font-size: 0.8rem;
  margin: 0.5em 0.25em;
}

input[name=caption] {
  display: none;
}

#gamestatus {
  cursor: help;
  pointer-events: auto;
  margin-bottom: 0.25rem;
}
#gamestatus .-wrapper {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  background: var(--c-dark);
  color: var(--c-light);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem;
}
#gamestatus img {
  padding: 0;
  margin: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
#gamestatus p {
  margin: 0;
  display: inline;
  font-size: var(--font-xs);
  color: var(--c-light);
}

.screen-one {
  width: 100%;
  height: 100vh;
  z-index: 9999999;
  display: flex;
  align-content: center;
  align-items: center;
  vertical-align: center;
  justify-content: center;
}

#start {
  position: absolute;
  top: 0;
  left: 0;
  background: #000000;
  border: 0;
  outline: 0;
  border-radius: 0;
  height: 100vh;
  width: 100vw;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url(assets/cover.png);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
#start #options {
  position: absolute;
  padding: 1rem;
  bottom: 5vh;
  width: 100%;
  display: flex;
  justify-content: space-around;
}
#start #options a {
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}
#start #options a:hover h2 {
  text-shadow: 0 0 15px #fff;
}
#start h1._bigtitle {
  width: 100%;
  display: inline-block;
  color: #fff;
  font-family: "Director";
  font-size: 4rem;
}
#start h1._bigtitle span[subtitle] {
  margin: 1rem 0;
  display: block;
  letter-spacing: 0;
  font-size: 1rem;
}
#start .window-samples {
  text-align: center;
  width: 500px;
  display: flex;
  justify-content: space-evenly;
}
#start .window-samples ._sample {
  margin: 1em 0.25em;
  border-radius: var(--radius-md);
  display: inline-block;
  width: 90px;
  height: 105px;
  font-size: 0.6rem;
  font-family: "Director";
  text-transform: uppercase;
  object-fit: contain;
  color: #edede8;
  -webkit-transition: all 0.14s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.14s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
#start .window-samples ._sample img {
  margin-bottom: 0.5rem;
  filter: grayscale(80%);
  max-width: 100%;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}
#start .window-samples ._sample:hover {
  cursor: pointer;
  transform: translateY(-6px);
}

[window-moveable] {
  position: relative;
  z-index: 999;
}

[window-moveable] span[close], [window-moveable] span[hide] {
  position: absolute;
  right: 0;
  top: 0;
  float: right;
  background: #000;
  color: #fff;
  padding: 0.5rem;
}
[window-moveable] span[close]::after, [window-moveable] span[hide]::after {
  content: "";
}
[window-moveable] span[close]:hover, [window-moveable] span[hide]:hover {
  filter: invert(1);
}

#audio {
  pointer-events: auto;
  z-index: var(--z-audio);
}
#audio .wrapper {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  max-width: calc(60vw - 2rem);
  margin: 0 auto;
  padding: 0;
  white-space: nowrap;
  gap: 1px;
}
#audio .-controls {
  display: flex;
  gap: 1px;
}
#audio #audio-track {
  width: 320px;
  max-width: 60vw;
  height: var(--ui-btn-height);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 90%;
  font-size: var(--font-xs);
  margin-top: -1px;
}
#audio [playing] {
  background: rgba(0, 0, 0, 0.9);
  border: var(--border-dashed);
}

#load {
  width: 400px;
}

#upload-image-modal {
  padding-bottom: 1rem;
}
#upload-image-modal #custom-preview {
  width: 256px;
  height: 256px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: repeating-conic-gradient(#222 0% 25%, #111 0% 50%) 0 0/16px 16px;
}
#upload-image-modal .container.-row {
  align-items: stretch;
  gap: 0.35rem;
}
#upload-image-modal #custom-file-label {
  font-size: 0.75em;
  display: flex;
  align-items: center;
}
#upload-image-modal #custom-file-name, #upload-image-modal [preview] {
  font-family: var(--font-serif);
  color: var(--c-light) !important;
  display: block;
  width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

#outer-modals {
  position: fixed;
  width: 100%;
  height: 40%;
  bottom: 40px;
  z-index: 99;
  pointer-events: none;
  vertical-align: bottom;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
}
#outer-modals ._modal {
  margin-left: auto;
  margin-right: 8px;
  margin-bottom: 8px;
  width: var(--outer-modal-width);
  background: var(--outer-modal-bg);
  backdrop-filter: hue-rotate(30deg) blur(5px);
  border-radius: var(--radius-md);
  border: var(--border);
  opacity: var(--outer-modal-opacity);
  animation: pulse-modal 5s infinite;
  cursor: help;
  -webkit-transition: all 0.25s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transition: all 0.25s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  pointer-events: all;
}
#outer-modals ._modal ._options {
  background: #c7c7c7;
  padding: 0.5em;
  text-align: center;
  border-radius: var(--radius-sm);
}
#outer-modals ._modal button {
  font-size: 0.8em;
  margin: 0 0.25em;
  padding: 0.5em 0.75em;
}
#outer-modals ._modal h3 {
  border-bottom: var(--border-dark);
  margin: 0;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.25em;
  text-transform: uppercase;
  font-family: "Director";
  font-size: 0.7rem;
}
#outer-modals ._modal p {
  font-size: 0.7rem;
  padding: 0.5em 0.25em;
  line-height: 120%;
  color: inherit;
}
#outer-modals ._modal:hover {
  transform: translateY(-1em);
  cursor: pointer;
  opacity: 1;
}
#outer-modals ._modal.__warning {
  background: red;
}

#ahhh {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999999999;
  left: 0;
  top: 0;
  background: #000;
  color: #edede8;
  padding: 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: monospace;
  text-align: center;
}
#ahhh p {
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 280px;
}
#ahhh a {
  pointer-events: auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.6em 1.5em;
  text-decoration: none;
  font-size: 0.9rem;
}
#ahhh a:hover {
  background: rgba(255, 255, 255, 0.25);
}
@media only screen and (max-width: 720px) {
  #ahhh {
    display: flex;
  }
}

.movement-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 110px;
  margin: 0 auto;
}

.movement-row {
  display: flex;
  gap: 2px;
  width: 100%;
  justify-content: center;
}

.movement-btn {
  flex: 1;
  height: 24px;
  max-width: 80%;
  padding: 0;
  margin: 0;
  font-size: 0.5rem;
  font-family: monospace;
  background: #000;
  color: #fff;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movement-btn.--override {
  background: #2a2a4a;
  border-color: #7777cc;
}
.movement-btn.--blocked {
  opacity: 0.25;
  cursor: not-allowed;
}
.movement-btn:hover {
  border-color: #fff;
}

.movement-map-picker {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0.5em auto;
}

.movement-map-row {
  display: flex;
  gap: 1px;
  justify-content: center;
}

.movement-map-cell {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-subtle);
  cursor: pointer;
  transition: all 0.12s ease;
}
.movement-map-cell span {
  font-size: 0.45rem;
  font-family: monospace;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.movement-map-cell.--empty {
  opacity: 0.15;
  cursor: not-allowed;
}
.movement-map-cell.--selected {
  border: 2px solid var(--c-light);
  box-shadow: 0 0 6px #fff;
  transform: scale(1.1);
  z-index: 1;
}
.movement-map-cell:not(.--empty):hover {
  border-color: #aaa;
  transform: scale(1.08);
}

#e-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 512px;
  height: 512px;
  z-index: 20;
  pointer-events: none;
  display: none;
  opacity: 0.8;
  overflow: hidden;
}
#e-preview .obj {
  position: absolute;
  display: inline-block;
  width: 128px;
  height: 128px;
  pointer-events: none;
}
#e-preview .obj img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
#e-preview ._preview-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  mix-blend-mode: difference;
  font-family: "Times New Roman", serif;
  font-size: 1.75em;
  padding: 0.75em;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 97.5%;
  pointer-events: none;
}
#e-preview ._preview-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: monospace;
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  pointer-events: none;
}

@media only screen and (max-width: 600px) {
  #new {
    display: none;
  }
}

/*# sourceMappingURL=ui.css.map */
