/* Tokens, page layout and type. The stage is one portrait 9:16 screen, letterboxed on wide screens;
   DOM chrome sits over a 180x320 pixel canvas. */
/* Fonts are self-hosted (SIL OFL, licences in src/fonts/) so no visitor data goes to a font CDN. */
@font-face { font-family: "Pixelify Sans"; src: url(../fonts/pixelify-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; src: url(../fonts/pixelify-sans-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Press Start 2P"; src: url(../fonts/press-start-2p-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Press Start 2P"; src: url(../fonts/press-start-2p-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #141a33;
  --night-2: #1e2648;
  --line: #3b4b8a;
  --field-line: #6676c4;   /* input borders: at least 3:1 against both the page and the field */
  --ink: #f3f0ff;
  --ink-dim: #b9b4d6;
  --teal: #09b3af;
  --teal-d: #067d7a;
  --teal-ink: #04201f;
  --gold: #ffd75e;
  --danger: #ff8a8a;
  --star: rgba(185, 180, 214, 0.22);
  --panel: rgba(20, 26, 51, 0.86);
  --display: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --body: "Pixelify Sans", ui-monospace, "Courier New", monospace;
  color-scheme: dark;
}
[hidden] { display: none !important; }
/* Hidden on screen, still read by screen readers (the game screen's heading, the picker's legend). */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-size-adjust: from-font;   /* fallback fonts take the pixel fonts' size while those load */
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
#app {
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background-color: var(--night);
  background-image: radial-gradient(var(--star) 1px, transparent 1.6px), radial-gradient(var(--star) 1px, transparent 1.6px);
  background-size: 41px 37px, 67px 59px;
  background-position: 0 0, 19px 23px;
}
.screen { position: absolute; inset: 0; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.badge {
  align-self: flex-start;
  font-family: var(--display);
  font-size: 0.625rem;
  line-height: 1.6;   /* the event name can wrap on small phones */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--gold);
  padding: 7px 9px 6px;
  margin: 0;
}
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.625rem, 1rem + 4.2vw, 2.375rem);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--teal-d);
  text-wrap: balance;
}
.title.small { font-size: clamp(1.25rem, 0.75rem + 3.3vw, 1.75rem); }
.lede { margin: 0; font-size: 1.1875rem; line-height: 1.4; color: var(--ink-dim); }
.fineprint { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-dim); }
.fineprint a { color: var(--teal); }
h2.section { font-family: var(--display); font-size: 0.8125rem; font-weight: 400; margin: 6px 0 0; line-height: 1.5; color: var(--gold); }
