.grimace-game {
  --ink: #535353;
  --paper: #fff;
  --surface: #fff;
  --panel: #535353;
  --panel-ink: #fff;
  --accent: #535353;
  --accent-ink: #fff;
  --control-border: #535353;
  position: fixed;
  inset: 0;
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(14px, 3vw, 26px);
  overflow: auto;
  border: 2px solid #535353;
  border-radius: 0;
  background: #fff;
  color: #535353;
  font: 14px/1.5 "Noto Sans Mono", "Courier New", monospace;
  box-sizing: border-box;
}

.grimace-game::backdrop { background: rgb(0 0 0 / 55%); }
.grimace-game .grimace-game-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.grimace-game .grimace-game-title { margin: 0; font: bold 20px/1.2 "Courier New", monospace; letter-spacing: 0.05em; }
.grimace-game .grimace-game-score { font: bold 14px/1.5 "Courier New", monospace; white-space: nowrap; }
.grimace-game .grimace-game-help { margin: 12px 0 16px; font-size: 12px; }
.grimace-game .grimace-game-canvas {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 8 / 3;
  margin: 0;
  border: 0;
  background: #fff;
  image-rendering: pixelated;
  touch-action: none;
}
.grimace-game .grimace-game-status { margin: 10px 0 16px; min-height: 1.5em; font-size: 13px; }
.grimace-game .grimace-game-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.grimace-game .grimace-game-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: auto;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #535353;
  border-radius: 0;
  color: #535353;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.grimace-game .grimace-game-action:hover { color: #fff; background: #535353; }
.grimace-game .grimace-game-action:disabled { opacity: 0.5; cursor: default; }
.grimace-game .grimace-game-action:focus-visible,
.grimace-game .grimace-game-canvas:focus-visible { outline: 2px dashed #535353; outline-offset: 3px; }


/* Keep the name's punctuation and spacing intact until its tiny surprise is revealed. */
.home-header h1 .profile-dot {
  position: relative;
  display: inline-block;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  cursor: pointer;
}
.home-header h1 .profile-dot:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }
.home-header h1 .profile-dot.is-revealed [data-dot-text] { visibility: hidden; }
.home-header h1 .profile-dot img[hidden] { display: none; }
.home-header h1 .profile-dot img {
  position: absolute;
  left: 50%;
  bottom: 0.055em;
  transform: translateX(-50%);
  width: 0.16em;
  height: 0.16em;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
}
