:root {
  color-scheme: dark;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #040406;
  color: #e6e4e2;
  --margin-x: clamp(24px, 4.3vw, 82px);
  --margin-y: clamp(24px, 4.7vh, 58px);
}
* { box-sizing: border-box; }
body { margin: 0; }
.room {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #040406;
}
#field { display: block; width: 100%; height: 100%; touch-action: pinch-zoom; }
#field:focus-visible { outline: 1px solid #c6b8f2; outline-offset: -6px; }

@font-face {
  font-family: "Almost Pixel";
  src: url("score-digits.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
.score-digits {
  font-family: "Almost Pixel", "Courier New", monospace;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.score-toast, .score-total {
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: #90e9b1;
}
.score-toast[data-negative], .score-total[data-negative] { color: #ff9394; }
.score-toast { font-size: 1rem; }
.score-total {
  right: max(var(--margin-x), env(safe-area-inset-right));
  top: max(var(--margin-y), env(safe-area-inset-top));
  font-size: clamp(24px, 2.4vw, 32px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
