/* css/reset.css
 *
 * A lean modern reset, tuned for a fullscreen kiosk app rather than a
 * scrollable document: no default margins, no tap highlights, no
 * accidental text selection, no pull-to-refresh/overscroll bounce.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overscroll-behavior: none; /* no pull-to-refresh, no rubber-band/bounce */
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Kiosk hardening: no text selection, no long-press callout menu, no tap
 * highlight flash, no pinch/double-tap zoom. touch-action:manipulation
 * disables the browser's own pinch-zoom and double-tap-zoom gestures while
 * still allowing normal panning/scrolling inside scrollable panels —
 * js/kiosk.js adds the remaining JS-level backstops (context menu,
 * multi-touch pinch, same-spot double-tap, external navigation, wake
 * lock) that CSS alone can't cover. */
html,
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Every scrollable surface in the app (panels in portrait, the trivia
 * card, the expanded facts list) gets the same treatment: momentum
 * scrolling, no visible scrollbar, and no overscroll bounce/chaining past
 * its own edges — nothing should visibly "give" on a fixed kiosk screen. */
.panel,
.scroll-region {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  scrollbar-width: none;
}

.panel::-webkit-scrollbar,
.scroll-region::-webkit-scrollbar {
  display: none;
}
