@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../typefaces/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../typefaces/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../typefaces/ibm-plex-sans-600.woff2") format("woff2");
}

html, body {
  margin: 0;
  padding: 0;
  background: #e9e2d6;
  color: #2a2420;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

.container {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.title {
  margin: 0 auto 8px;
  text-align: center;
}
.title img {
  width: min(100%, 420px);
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.game-intro {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
  color: #5a5248;
}

.court-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 28px;
}

#wrap {
  position: relative;
  width: min(100%, 800px);
  aspect-ratio: 800 / 600;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  background: #2a2420;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(42, 36, 32, 0.28);
  opacity: 0;
  transition: opacity 1.5s;
}
html.loaded #wrap {
  opacity: 1;
}

#wrap-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1c1814;
  overflow: hidden;
}

#wrap-inner canvas {
  cursor: crosshair;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.unsupported {
  border: 1px solid #c4a07a;
  color: #2a2420;
  background: #efe4d2;
  padding: 2em;
  margin: 5em;
  display: inline-block;
}

.game-explanation {
  font-size: 14px;
  line-height: 1.6;
  color: #2a2420;
  margin: 0 0 16px;
}
.game-explanation .important {
  font-weight: 600;
}
hr {
  border: 0;
  border-top: 1px solid #c9bfb0;
  margin: 24px 0;
}
.game-credit {
  font-size: 13px;
  line-height: 1.6;
  color: #5a5248;
}
.game-credit a {
  color: #2a2420;
}
