@font-face {
  font-family: Plex;
  src: url("./assets/fonts/IBMPlexMono-Regular.ttf");
}
@font-face {
  font-family: Plex;
  src: url("./assets/fonts/IBMPlexMono-SemiBold.ttf");
  font-weight: 600;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eee9df;
  color: #202020;
  font:
    13px Plex,
    monospace;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}
button,
.download-link {
  font: inherit;
  border: 1px solid #aaa;
  background: #fff;
  color: inherit;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.download-link:hover {
  background: #e6e3de;
}
button:focus-visible,
.download-link:focus-visible {
  outline: 2px solid #7654c4;
  outline-offset: 2px;
}
button[aria-pressed="true"] {
  background: #e4ddf4;
  border-color: #7654c4;
  color: #6849aa;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #aaa;
  background: #f5f4f1;
}
h1 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}
header p {
  margin: 4px 0 0;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
#fullscreen {
  margin-left: auto;
}
#scene {
  min-width: 0;
  min-height: 0;
  position: relative;
}
#scene canvas {
  display: block;
  touch-action: none;
  width: 100%;
  height: 100%;
}
#status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  z-index: 1;
  background: #eee9df;
}
#status[hidden] {
  display: none;
}
#wall-info {
  position: absolute;
  z-index: 2;
  width: 280px;
  max-width: calc(100% - 16px);
  padding: 14px;
  border: 1px solid #aaa;
  background: #f5f4f1;
  box-shadow: 0 4px 16px #0002;
  font-size: 12px;
  line-height: 1.5;
}
#wall-info p {
  margin: 6px 0 0;
  color: #555;
}
#wall-info button {
  float: right;
  padding: 0 5px;
  margin: -6px -6px 4px 6px;
  border: 0;
  background: transparent;
  font-size: 18px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #aaa;
  background: #f5f4f1;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  color: #666;
  font-size: 10px;
  line-height: 1.6;
}
footer span:last-child {
  text-align: right;
}
@media (max-width: 600px) {
  header {
    padding: 10px;
    gap: 8px;
  }
  header img {
    width: 28px;
    height: 28px;
  }
  h1 {
    font-size: 12px;
  }
  #fullscreen {
    display: none;
  }
  nav {
    gap: 4px;
    padding: 8px;
  }
  button,
  .download-link {
    padding: 8px 10px;
    font-size: 11px;
  }
  footer {
    padding: 6px 10px;
    font-size: 9px;
  }
}

header > div {
  min-width: 0;
}
h1 {
  overflow-wrap: anywhere;
}
