:root {
  --desk: #cdbb9c;
  --desk-dark: #b9a684;
  --ink: #3b3327;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--ink);
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive;
  background-color: var(--desk);
  /* a soft wooden desk for the sheet of paper to rest on */
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 46px),
    radial-gradient(circle at 50% 20%, #dccdad, var(--desk) 70%);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.desk {
  width: min(100%, 400px);
  text-align: center;
}

.scribble {
  margin: 0 0 10px;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: .5px;
  text-shadow: 1px 1px 0 rgba(255,255,255,.6);
}

.sheet {
  position: relative;
  border-radius: 6px;
  /* torn-paper shadow + a slightly rotated paper edge */
  box-shadow:
    0 1px 0 #fff inset,
    0 14px 30px rgba(60,45,25,.35),
    0 2px 0 rgba(0,0,0,.08);
  transform: rotate(-.4deg);
}

#game {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  background: #f4efe2;
  touch-action: manipulation;
  cursor: pointer;
}

.hint {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: .75;
}

.hint b { font-weight: 700; }

.mute {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(251, 247, 234, .85);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 1px 1px 0 rgba(59, 51, 39, .4);
}

.mute:active { transform: translate(1px, 1px); box-shadow: none; }
