:root {
  --bg: #0d1c2a;
  --surface: #10263b;
  --text: #eaf4ff;
  --muted: #9db8d1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #214a73, var(--bg) 32%), linear-gradient(155deg, var(--bg), #1a3251);
}

body {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.chooser-app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chooser-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px;
  padding-top: calc(20px + constant(safe-area-inset-top));
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-left: calc(16px + constant(safe-area-inset-left));
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + constant(safe-area-inset-right));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
  max-width: min(980px, 100vw);
}

.chooser-header h1 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 46px);
}

.chooser-header p {
  margin: 6px 0 0;
}

.countdown {
  color: var(--muted);
  min-height: 1.3em;
}

.touch-surface {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: none;
}

#touch-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
