@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(fonts/source-sans-3-700-latin.woff2) format("woff2");
}
html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#game {
  display: block;
  touch-action: none;
  cursor: pointer;
  outline: none;
}

/* More (settings) and the Lightning warning: black and white, like the menu. */
#panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  font: 700 20px/1.3 "Source Sans 3", system-ui, sans-serif;
}
#panel[hidden] { display: none; }
#panel .sheet {
  width: min(360px, calc(100% - 40px));
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
}
#panel h2 {
  margin: 0;
  padding: 18px 20px;
  background: #000;
  color: #fff;
  font-size: 28px;
  text-align: center;
}
#panel p { margin: 0; padding: 20px; text-align: center; }
#panel button {
  font: inherit;
  border: 0;
  cursor: pointer;
}
#panel .opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  color: #000;
  border-bottom: 1px solid #202020;
  text-align: left;
}
#panel .opt:nth-of-type(even) { background: #202020; color: #fff; }
#panel .done {
  flex: 1;
  padding: 18px 20px;
  background: #000;
  color: #fff;
}
#panel .pair { display: flex; gap: 1px; background: #666; }
#panel button:focus-visible { outline: 3px solid #f9e718; outline-offset: -3px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 45;
  padding: 10px 16px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font: 700 16px "Source Sans 3", system-ui, sans-serif;
  border-radius: 6px;
}
#toast[hidden] { display: none; }
