:root {
  color-scheme: light;
  background: #d5daea;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: auto;
  background: #d5daea;
}

.gui-stage {
  position: relative;
  width: min(100vw, 133.3333vh);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d5daea;
}

.gui-image {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}

.gui-button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  background-image:
    url("assets/borders/border_raised.png"),
    var(--face);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 89.7436% 86.8852%;
  -webkit-tap-highlight-color: transparent;
}

.gui-button:active,
.gui-button.is-pressed {
  background-image:
    url("assets/borders/border_pressed.png"),
    var(--face);
}

.gui-button:focus-visible {
  z-index: 1;
  outline: max(3px, 0.2vw) solid #fff200;
  outline-offset: max(1px, 0.08vw);
}

.text-index-link {
  position: fixed;
  z-index: 2;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.55rem 0.75rem;
  color: #000;
  background: #fff;
  border: 3px solid #000;
  font: bold 1rem/1.2 Arial, Helvetica, sans-serif;
  transform: translateY(calc(-100% - 1rem));
}

.text-index-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
