* {
  box-sizing: border-box;
}
html {
  background: #eeeadd;
  color: #1f302e;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  margin: 0;
}
main {
  max-width: min(1440px, max(860px, calc((100svh - 148px) * 2.12 + 6.4vw)));
  margin: auto;
  padding: 0 clamp(12px, 3.2vw, 52px) 28px;
}
header {
  height: clamp(55px, 8vh, 76px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.maker {
  font-weight: 900;
  letter-spacing: -1.1px;
  font-size: clamp(18px, 1.7vw, 25px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.maker svg {
  width: 37px;
  color: #c5522e;
}
.series,
.strip,
.cover-tag,
.guide,
kbd,
#notice {
  font-family: "Courier New", monospace;
  font-weight: bold;
}
.series,
.guide {
  font-size: 10px;
  letter-spacing: 1.6px;
}
.series {
  border-left: 1px solid #aaa99d;
  padding-left: 15px;
}
.actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible {
  outline: 3px solid #f68d45;
  outline-offset: 3px;
}
.actions button,
#touch button {
  background: transparent;
  border: 1px solid #a7ada1;
  border-radius: 3px;
  padding: 4px 9px;
  font-size: 17px;
  font-weight: bold;
}
.actions button:hover {
  background: #dedccd;
}
.monitor {
  border: 3px solid #192b2c;
  background: #152c2e;
  box-shadow: 0 4px 0 #aaa89b;
}
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #dbe0c8;
}
.strip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ee9b52;
  margin-right: 6px;
}
.screen {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
}
#game {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.screen canvas {
  image-rendering: pixelated;
}
#menu {
  position: absolute;
  inset: 0 auto 0 0;
  width: 53%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 5%;
  color: #fff1c6;
  text-shadow: 0 2px #152b30;
}
.cover-tag {
  font-size: clamp(7px, 1.03cqw, 16px);
  letter-spacing: 0.14em;
  color: #b5d8bf;
  background: #183936;
  padding: 0.4em 0.6em;
}
.screen h1 {
  position: absolute;
  clip-path: inset(100%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#lettering {
  width: 95%;
  margin: 2cqw 0 0.7cqw;
  height: auto;
}
#blurb {
  font-size: clamp(10px, 1.4cqw, 22px);
  font-weight: 600;
  margin: 0 0 2cqw;
}
#start {
  border: 2px solid #1b2828;
  border-radius: 1px;
  background: #ffe2a2;
  color: #192d2e;
  box-shadow: 3px 3px #101e23;
  padding: 0.72em 0.85em;
  font-weight: 850;
  font-size: clamp(11px, 1.6cqw, 22px);
  display: flex;
  align-items: center;
  gap: 0.65em;
}
#start:hover {
  background: #fff0c6;
}
#start span {
  font-size: 0.7em;
}
kbd {
  font-size: 0.75em;
  border: 1px solid #9b9f92;
  border-bottom-width: 2px;
  padding: 2px 4px;
  border-radius: 3px;
}
#start kbd {
  font-size: 0.53em;
  letter-spacing: 1px;
  border-color: #a59979;
}
#notice {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 94%;
  background: #102a30ec;
  color: #fff0cb;
  padding: 0.5em 0.8em;
  font-size: clamp(9px, 1.15cqw, 18px);
  pointer-events: none;
}
#notice:empty {
  display: none;
}
footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(9px, 2vw, 28px);
  padding: 18px 1px;
  font-size: 12px;
  font-weight: 650;
}
footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
footer kbd {
  font-size: 10px;
  padding: 3px 5px;
}
.guide {
  color: #4d6259;
}
#touch {
  display: none;
  gap: 6px;
  justify-content: center;
}
#touch button {
  touch-action: none;
  user-select: none;
  font-size: 13px;
}
main:fullscreen {
  max-width: none;
  background: #eeeadd;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main:fullscreen header,
main:fullscreen footer,
main:fullscreen .monitor {
  width: min(100%, calc((100vh - 140px) * 2.12));
}
[hidden] {
  display: none !important;
}
@media (pointer: coarse), (max-width: 650px) {
  #touch {
    display: flex;
  }
  .series {
    display: none;
  }
  footer {
    gap: 7px 12px;
    padding: 12px 0;
  }
  .guide {
    display: none;
  }
  .strip {
    font-size: 8px;
  }
  .actions button {
    font-size: 14px;
  }
  #start {
    padding: 0.45em;
  }
  .cover-tag {
    font-size: 1.6cqw;
  }
  #menu {
    width: 57%;
  }
}
