/* Generated from style.styl; do not edit the CSS directly. */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
body {
  --menu-scale: 1;
  --controls-scale: 1;
  --bar-padding: 4px 20px;
}
body {
  background: #8c8c64;
}
#movie:has(#loading:not([hidden])) .screen {
  display: none !important;
}
#loading {
  display: grid;
  place-items: center;
  font: 22px monospace;
  color: #000;
}
.loading-label {
  display: grid;
}
.loading-label > span {
  grid-area: 1/1;
  visibility: hidden;
  animation: loading-dots 1.28s step-end infinite;
}
.loading-label > span:nth-child(2) {
  animation-delay: 0.32s;
}
.loading-label > span:nth-child(3) {
  animation-delay: 0.64s;
}
.loading-label > span:nth-child(4) {
  animation-delay: 0.96s;
}
#viewport,
#movie {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
}
.menu-screen {
  position: absolute;
  inset: auto;
  width: 1024px;
  height: 768px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--menu-scale));
}
.menu-screen img:not(.map-image) {
  visibility: hidden;
}
.menu-screen img.ink-ready {
  visibility: visible;
}
img,
canvas {
  display: block;
  image-rendering: pixelated;
  -webkit-user-drag: none;
  user-select: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.bitmap,
.map-location,
.menu-item {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
button:focus {
  outline: none;
}
.bitmap .hover,
.map-location .hover,
.menu-item .hover {
  display: none;
  position: absolute;
  inset: 0;
}
.bitmap:focus-visible > .hover,
.map-location:focus-visible > .hover,
.menu-item:focus-visible > .hover {
  display: block;
}
.map-logo {
  position: absolute;
  left: 38px;
  top: 10px;
}
.map-bar {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 40px;
  display: flex;
  justify-content: flex-end;
  padding: var(--bar-padding);
  pointer-events: none;
}
.map-bar-bottom {
  top: auto;
  bottom: 0;
  justify-content: flex-start;
}
.map-bar button {
  pointer-events: auto;
}
.map-heading {
  margin: 0;
  height: 32px;
  padding-top: 7px;
}
.europe {
  position: absolute;
  left: 38px;
  top: 108px;
  width: 948px;
  height: 642px;
}
.map-location {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
}
.map-location .pin {
  width: 22px;
  height: 22px;
}
.map-location .hover {
  width: 22px;
  height: 22px;
}
.map-location:focus-visible > .pin:not(.hover) {
  visibility: hidden;
}
.castle {
  left: 459px;
  top: 381px;
}
.moscow {
  left: 804px;
  top: 208px;
}
.main-logo {
  position: absolute;
  left: 363px;
  top: 148px;
}
/* Account for the favicon's transparent padding to preserve the character position. */
.main-character {
  position: absolute;
  left: 476px;
  top: 246px;
  width: 72px;
  height: 72px;
}
.main-items {
  position: absolute;
  top: 350px;
  left: 0;
  width: 1024px;
  display: grid;
  justify-items: center;
  gap: 34px;
}
.original-footer {
  position: absolute;
  bottom: 54px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.game-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #000;
}
.credit-author {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.game-credit a {
  color: inherit;
}
.game-credit a:focus-visible canvas {
  filter: invert(1);
}
#stage {
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}
#game-controls {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 6px 6px 12px;
  width: 410px;
  height: 490px;
  z-index: 2;
  transform: scale(var(--controls-scale));
  transform-origin: top left;
  pointer-events: none;
}
#game-controls button,
#game-menu {
  pointer-events: auto;
}
#game-menu {
  position: relative;
  margin-left: -4px;
  z-index: 2;
}
#menu-button {
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  background: #fff;
}
#menu-button img {
  position: absolute;
  left: 2px;
  top: 2px;
  clip-path: inset(2px);
  filter: none;
}
#menu-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
#menu-items {
  position: absolute;
  left: 46px;
  top: 0;
}
.menu-item {
  width: 350px;
  height: 34px;
  margin-bottom: -2px;
  cursor: pointer;
}
.menu-item img {
  width: 350px;
  height: 34px;
}
.resolution-options {
  display: flex;
  width: 350px;
  height: 34px;
  margin-bottom: -2px;
}
.resolution-options button {
  display: grid;
  place-items: center;
  width: 50%;
  height: 34px;
  padding: 0;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.resolution-options button + button {
  border-left: 0;
}
.resolution-options button[aria-pressed="true"],
.resolution-options button:focus-visible {
  background: #000;
  color: #fff;
}
.resolution-options button[aria-pressed="true"] canvas,
.resolution-options button:focus-visible canvas {
  filter: invert(1);
}
#game-controls aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brush-options,
#palette {
  display: grid;
  gap: 0;
}
.brush-options > * + *,
#palette > * + * {
  margin-top: -2px;
}
.tool-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #000;
  border-radius: 0;
  background: var(--button-background, #fff);
  color: #000;
  cursor: pointer;
}
.tool-button[aria-pressed="true"] {
  z-index: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}
.tool-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.brush.is-bright-paint {
  --button-background: #e6e6e6;
}
.brush canvas {
  width: 28px;
  height: 28px;
}
#wide-button canvas {
  width: 36px;
  height: 36px;
}
.help-button {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  background: #fff;
}
#instructions-button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
}
#instructions-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
#instructions-button canvas {
  filter: drop-shadow(2px 0 0 #000);
}
#loading,
#dialog-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}
#dialog-layer {
  pointer-events: none;
}
#original-dialog {
  width: 440px;
  display: grid;
  gap: 20px;
  pointer-events: auto;
  outline: none;
}
#original-dialog h2,
#dialog-warning {
  margin: 0;
  font: inherit;
}
#original-dialog.is-instructions {
  width: 560px;
  top: 12px;
  bottom: auto;
  margin: 0 auto;
}
#original-dialog.is-instructions h2 {
  padding-right: 36px;
  font-weight: 700;
}
#dialog-instructions {
  display: grid;
  gap: 16px;
  line-height: 1.3;
}
#dialog-instructions p {
  margin: 0;
}
#dialog-cancel {
  margin-right: auto;
}
#error {
  position: absolute;
  z-index: 20;
  left: 48px;
  right: 48px;
  bottom: 24px;
  padding: 8px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font: 16px monospace;
}
button:focus-visible > img,
button:focus-visible > canvas {
  filter: brightness(0) invert(1);
}
.menu-item:focus-visible > .hover {
  display: none;
}
.menu-item:not(:disabled):focus-visible > canvas:not(.hover) {
  filter: brightness(0.85);
}
#game-controls .tool-button canvas {
  filter: none;
}
.gallery-menu-link {
  color: inherit;
  text-decoration: none;
}
.gallery-menu-link:focus-visible canvas {
  filter: brightness(0) invert(1);
}
@font-face {
  font-family: 'Steve Color';
  src: url("media/steve-color-game.woff") format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Steve Color';
  src: url("media/steve-color-game-bold.woff") format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.game-popup {
  position: fixed;
  inset: 0;
  z-index: 11;
  margin: auto;
  max-width: calc(100vw - 24px);
  height: fit-content;
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 20px/1.1 'Steve Color', monospace;
  overflow: auto;
}
.game-popup.closeinside {
  cursor: pointer;
}
#submission-dialog {
  width: 560px;
}
#submission-dialog h2 {
  margin: 0 0 16px;
  padding-right: 36px;
  font: inherit;
}
.popup-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.popup-close.cross-icon::before,
.popup-close.cross-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: #000;
  transform: rotate(45deg);
}
.popup-close.cross-icon::after {
  transform: rotate(-45deg);
}
.popup-close:focus-visible canvas {
  filter: none;
}
.popup-close:disabled {
  opacity: 0.45;
}
#submission-preview {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin: 0 0 16px;
  image-rendering: auto;
}
#submission-dialog fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
#submission-dialog label {
  display: block;
  margin: 10px 0 4px;
}
#submission-dialog input {
  width: 100%;
  height: 44px;
  padding: 8px;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}
.game-popup input:focus-visible,
.game-popup button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.submission-rule {
  margin: 18px 0;
}
#submission-status {
  margin: 16px 0;
  white-space: pre-line;
}
#submission-status:empty {
  display: none;
}
#submission-status.is-error {
  color: #922d25;
}
#submission-dialog.is-message-only {
  width: max-content;
}
#submission-dialog.is-message-only :is(h2,
#submission-preview,
fieldset,
.submission-rule,
.submission-actions) {
  display: none;
}
#submission-dialog.is-message-only #submission-status {
  margin: 0;
  padding-right: 36px;
  line-height: 1.1;
}
#submission-dialog.is-message-only #submission-close {
  top: 50%;
  transform: translateY(-50%);
}
#submission-dialog.closeinside #submission-status {
  padding-right: 0;
}
#submission-dialog.closeinside #submission-status:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.popup-actions button {
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid #000;
  border-radius: 0;
  cursor: pointer;
  background: #fff;
  color: #000;
}
.popup-actions button:not(:disabled):focus-visible,
.popup-actions button:not(:disabled):hover {
  background: #000;
  color: #fff;
}
.popup-actions button:disabled {
  opacity: 0.45;
}
#submission-dialog.is-unavailable h2,
#submission-dialog.is-unavailable fieldset,
#submission-dialog.is-unavailable .submission-rule {
  opacity: 0.4;
}
#submission-dialog.is-unavailable #submission-preview {
  filter: grayscale(1);
  opacity: 0.4;
}
#submission-dialog fieldset:disabled input {
  cursor: default;
}
.submission-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 500px) {
  .game-popup {
    padding: 16px;
  }
  #submission-preview {
    height: 180px;
  }
}
/* Gallery shares the game's document, bitmap lettering, and animated backdrop. */
.gallery-screen {
  --gallery-header-height: 40px;
  --gallery-footer-height: 40px;
  overflow: hidden;
  color: #000;
  outline: none;
}
#gallery-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.gallery-bar {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: var(--gallery-header-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: var(--bar-padding);
  background: transparent;
  pointer-events: none;
}
.gallery-bar .gallery-text-control {
  pointer-events: auto;
}
.gallery-back-links {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.gallery-filters {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
/* Fixed top padding keeps the bitmap baseline steady, even with descenders. */
.gallery-text-control {
  display: inline-flex;
  flex-shrink: 0;
  align-items: flex-start;
  height: 32px;
  padding: 7px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #000;
  cursor: pointer;
  text-decoration: none;
}
.gallery-text-control:not(:disabled):not([aria-pressed="true"]):not([aria-current="page"]):focus-visible canvas {
  filter: invert(1);
}
.gallery-text-control:disabled {
  opacity: 0.35;
}
.gallery-text-control[aria-current],
.gallery-scale-preset[aria-pressed="true"] {
  box-shadow: inset 0 -2px #000;
}
.gallery-scale-preset[aria-pressed="true"]:focus-visible canvas {
  filter: none;
}
.gallery-text-control:focus-visible,
.gallery-image-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
.gallery-scroll,
.gallery-image-stage {
  position: absolute;
  inset: var(--gallery-header-height) 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  outline: none;
}
.gallery-scroll:focus-visible {
  outline: 2px solid #000;
  outline-offset: -2px;
}
.gallery-scroll {
  top: 0;
  padding-top: var(--gallery-header-height);
  padding-bottom: 32px;
  scroll-padding-top: var(--gallery-header-height);
}
.gallery-paintings {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: center;
  gap: 10px;
  min-width: 300px;
}
.gallery-painting {
  display: grid;
  place-items: center;
  width: 300px;
  height: 300px;
}
.gallery-image-link {
  display: block;
  cursor: pointer;
}
.gallery-image-link img {
  display: block;
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  image-rendering: auto;
}
.gallery-footer {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--gallery-footer-height);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 10px;
  padding: var(--bar-padding);
  background: transparent;
  pointer-events: none;
}
.gallery-footer .gallery-text-control,
.gallery-footer .gallery-caption {
  pointer-events: auto;
}
.gallery-prev {
  grid-column: 1;
  justify-self: start;
}
.gallery-next {
  grid-column: 3;
  justify-self: end;
}
.gallery-caption {
  grid-column: 2;
  min-width: 0;
  height: 32px;
  padding-top: 7px;
}
.gallery-caption-line {
  height: 24px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  font: 18px/22px monospace;
}
.gallery-caption-line::-webkit-scrollbar {
  display: none;
}
.gallery-caption-words {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  width: max-content;
  min-width: 100%;
}
.gallery-caption-words > span {
  flex-shrink: 0;
}
.gallery-caption-with-admin {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.gallery-caption-with-admin .gallery-caption-line {
  min-width: 0;
}
.gallery-caption-with-admin .gallery-text-control {
  flex-shrink: 0;
  height: 24px;
  padding: 0;
}
.gallery-load-status {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 10px 0;
}
.gallery-load-status:empty {
  display: none;
}
.gallery-message {
  margin: 0;
}
#gallery-content > .gallery-message,
.gallery-error {
  position: absolute;
  top: calc(var(--gallery-header-height) + 32px);
  left: 10px;
}
.gallery-error {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.gallery-image-stage {
  inset: 0;
  overflow: hidden;
  touch-action: none;
}
.gallery-image-stage.is-pannable {
  cursor: grab;
}
.gallery-image-stage.is-dragging {
  cursor: grabbing;
}
.gallery-image-stage img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  transform-origin: 0 0;
  image-rendering: auto;
  visibility: hidden;
}
.gallery-image-stage.is-ready img {
  visibility: visible;
}
@media (hover: hover) {
  .map-location:not(:disabled):hover > img {
    filter: brightness(0) invert(1);
  }
  .map-location:not(:disabled):hover > .hover {
    display: block;
  }
  .map-location:not(:disabled):hover > .pin:not(.hover) {
    visibility: hidden;
  }
  #menu-button:hover > .hover {
    display: block;
  }
  .menu-item:not(:disabled):not([aria-pressed="true"]):hover > .hover {
    display: block;
    filter: none;
  }
  .resolution-options button:not(:disabled):not([aria-pressed="true"]):hover {
    background: #000;
    color: #fff;
  }
  .resolution-options button:not(:disabled):not([aria-pressed="true"]):hover > canvas {
    filter: brightness(0) invert(1);
  }
  .main-items .bitmap:not(:disabled):hover,
  .game-credit a:hover,
  .gallery-text-control:not(:disabled):not([aria-pressed="true"]):not([aria-current="page"]):hover {
    color: #fff;
  }
  .main-items .bitmap:not(:disabled):hover > canvas,
  .game-credit a:hover > canvas,
  .gallery-text-control:not(:disabled):not([aria-pressed="true"]):not([aria-current="page"]):hover > canvas {
    filter: brightness(0) invert(1);
  }
}
@media (max-width: 540px) {
  .gallery-screen {
    --gallery-header-height: 72px;
    --gallery-footer-height: 68px;
  }
  .gallery-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .gallery-bar > .gallery-text-control,
  .gallery-back-links {
    justify-self: start;
  }
  .gallery-filters {
    justify-content: space-between;
    gap: 12px;
  }
  .gallery-footer {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 24px 32px;
    gap: 4px 10px;
  }
  .gallery-caption {
    grid-column: 1/-1;
    grid-row: 1;
    height: 24px;
    padding-top: 0;
  }
  .gallery-prev,
  .gallery-next {
    grid-row: 2;
  }
  .gallery-next {
    grid-column: 2;
  }
}
@media (max-width: 360px) {
  .gallery-filters {
    gap: 6px;
    margin-inline: -10px;
  }
}
@-moz-keyframes loading-dots {
  0% {
    visibility: visible;
  }
  25%, 100% {
    visibility: hidden;
  }
}
@-webkit-keyframes loading-dots {
  0% {
    visibility: visible;
  }
  25%, 100% {
    visibility: hidden;
  }
}
@-o-keyframes loading-dots {
  0% {
    visibility: visible;
  }
  25%, 100% {
    visibility: hidden;
  }
}
@keyframes loading-dots {
  0% {
    visibility: visible;
  }
  25%, 100% {
    visibility: hidden;
  }
}
