@font-face {
  font-family: 'Patrick Hand';
  src: url('../../assets/fonts/patrick-hand.ttf');
}
@font-face {
  font-family: Caveat;
  src: url('../../assets/fonts/caveat.ttf');
}
:root {
  font-family: 'Patrick Hand', cursive;
  color: #342d2b;
  background: #f5f1e8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 1px solid #887a63;
  border-radius: 3px 9px 4px 7px;
  background: #f9f6ef;
  padding: 0.45rem 0.7rem;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #247e87;
  outline-offset: 3px;
}
#tabletop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: block;
  touch-action: none;
  outline: none;
}
#welcome {
  z-index: 10;
}
.diagnostics {
  font-size: 12px;
  margin-top: 6px;
}
.diagnostics summary {
  cursor: pointer;
}
.diagnostics p {
  margin: 6px 0;
}
#welcome {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: min(310px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  overflow: auto;
  background: #faf7efed;
  border: 1px solid #8f8678;
  box-shadow: 2px 3px 0 #71685e22;
  border-radius: 3px 8px 3px 11px;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.25;
}
#welcome[hidden] {
  display: none;
}
.heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.heading a {
  font:
    700 29px Caveat,
    cursive;
  text-decoration: none;
  color: inherit;
}
.heading span {
  font-size: 15px;
  color: #817364;
}
.heading button {
  margin-left: auto;
  padding: 0.08rem 0.55rem;
}
.instructions p {
  margin: 10px 0;
}
.instructions p:first-child {
  font-family: Caveat, cursive;
  font-size: 23px;
  margin-top: 5px;
  color: #8c6d48;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.actions button:first-child {
  background: transparent;
  border-color: #648777;
}
#status {
  font-size: 14px;
  margin: 10px 0 6px;
  min-height: 18px;
}
.classic {
  font-size: 13px;
  color: #6c7865;
}
.compact .instructions {
  display: none;
}
.compact {
  opacity: 0.94;
}
#reset-view {
  font-size: 13px;
}
@media (max-width: 650px), (max-height: 600px) {
  #welcome {
    width: min(285px, calc(100vw - 16px));
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    font-size: 13px;
    padding: 8px 10px;
  }
  #welcome.compact {
    width: auto;
    max-width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
  #welcome.compact .heading span,
  #welcome.compact #enter-mr:disabled,
  #welcome.compact #reset-view,
  #welcome.compact .classic,
  #welcome.compact .diagnostics,
  #welcome.compact #status {
    display: none;
  }
  .heading a {
    font-size: 25px;
  }
}
