* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #1d2430; overflow: hidden; }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2430; }
canvas { display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; user-select: none; -webkit-user-select: none; }
.card {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 32px)); padding: 20px 20px 18px;
  background: #fdf8ef; border: 3px solid #1d2430; border-radius: 14px; box-shadow: 0 8px 0 rgba(0, 0, 0, .35);
  text-align: center;
}
.card.hidden { display: none; }
.card h1 { margin: 0; font-size: 26px; letter-spacing: .5px; }
.card .sub { margin: 0 0 10px; color: #7a6a55; font-size: 13px; }
.card p { margin: 8px 0; }
.card .score { font-size: 20px; font-weight: 700; margin: 12px 0 4px; }
.card .score:empty { display: none; }
.card button {
  margin-top: 10px; padding: 10px 34px; font: inherit; font-size: 18px; font-weight: 700;
  color: #1d2430; background: #ffc531; border: 3px solid #1d2430; border-radius: 10px; cursor: pointer;
  box-shadow: 0 4px 0 #1d2430;
}
.card button:active { transform: translateY(3px); box-shadow: 0 1px 0 #1d2430; }
