[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; background: #d9e6d3; color: #1b1b1b; font: 16px/1.4 system-ui, sans-serif; }
#map { position: fixed; left: 0; top: 0; overflow: visible; transform-origin: 0 0; will-change: transform; } /* maat en positie: game.js */
#streets path { fill: none; stroke: #fff9; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#bike { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 2px #0009); }
#bike .wheel { fill: #111; }
#bike .frame { stroke: #e63946; stroke-width: 1.8; stroke-linecap: round; }
#bike .bar { stroke: #111; stroke-width: 1.2; stroke-linecap: round; }
#bike .arm { stroke: #1d4f91; stroke-width: 1.4; stroke-linecap: round; }
#bike .body { fill: #1d4f91; }
#bike .head { fill: #f2c29b; stroke: #6b3e1e; stroke-width: 0.6; }
#bike .turn { fill: none; stroke: #ffd400; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#hud { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; pointer-events: none; }
#hud > div { background: #fff; padding: 6px 12px; border-radius: 6px; box-shadow: 0 1px 4px #0003; }
#hud > #sign { background: #1d4f91; color: #fff; border: 2px solid #fff; font-weight: 600; } /* blauw straatnaambord */
#order { flex: 1; }
#goal-street { fill: none; stroke: #ffd400; stroke-width: 10; stroke-opacity: 0.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#goal .zone { fill: #ffd40040; stroke: #ffd400; stroke-width: 3; vector-effect: non-scaling-stroke; }
#goal .dot { fill: #e63946; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
#glow { position: fixed; left: 0; top: 0; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #ffd400cc 0, #ffd40066 35%, #ffd40000 70%); animation: glow 0.9s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.55; } to { opacity: 1; } }
.overlay { touch-action: pan-y; -webkit-user-select: text; user-select: text; position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: #0008; overflow: auto; }
.card { margin: auto; /* midden als het past, anders bovenaan beginnen en scrollen */ width: min(560px, 100%); box-sizing: border-box; padding: 20px 24px; border-radius: 10px; background: #fff; color: #1b1b1b; box-shadow: 0 4px 24px #0006; }
.card h1 { margin: 0 0 8px; font-size: 24px; }
.card h1 small { font-size: 16px; font-weight: 400; color: #666; }
.card h2 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0 0 8px; }
.card label { display: block; margin: 0 0 2px; }
.search { position: relative; margin: 0 0 10px; }
.suggest { box-sizing: border-box; position: absolute; left: 0; right: 0; top: 100%; z-index: 2; margin: 2px 0 0; padding: 4px 0; list-style: none; max-height: 50vh; overflow: auto;
  background: #fff; border: 1px solid #bbb; border-radius: 6px; box-shadow: 0 4px 12px #0003; }
.suggest.up { top: auto; bottom: 100%; margin: 0 0 2px; }
.suggest li { display: flex; gap: 6px; align-items: baseline; padding: 8px 10px; cursor: pointer; }
.suggest li small { margin-left: auto; color: #777; }
.suggest li.active, .suggest li:hover { background: #fff3c4; }
.card input { display: block; width: 100%; box-sizing: border-box; margin-top: 2px; padding: 7px 9px; font: inherit; border: 1px solid #bbb; border-radius: 6px; }
.card a.button { display: inline-block; text-decoration: none; }
.card button, .card a.button { font: inherit; padding: 7px 16px; border: 0; border-radius: 6px; background: #e63946; color: #fff; cursor: pointer; }
.card button.small { padding: 2px 8px; font-size: 13px; }
.block { border-top: 1px solid #eee; padding: 12px 0; }
.row { display: flex; gap: 8px; margin: 0 0 12px; }
.row input { margin: 0; }
.error { min-height: 1.4em; color: #c1121f; }
.keys { font-size: 13px; color: #666; }
#final { color: #e63946; }
#share-card { display: block; width: 100%; height: auto; margin: 4px 0 8px; border-radius: 8px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
#splits { width: 100%; margin: 8px 0 12px; border-collapse: collapse; font-size: 14px; }
#splits td { padding: 4px 6px; border-bottom: 1px solid #eee; }
#board { margin: 0 0 8px; padding-left: 24px; }
#board .me { font-weight: 700; color: #e63946; }
/* Aanraakknoppen: groot onder de duimen, klein in het midden */
#touch { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); pointer-events: none; }
#touch button { pointer-events: auto; touch-action: none; border: 2px solid #fff; border-radius: 50%; background: #1d4f91cc; color: #fff;
  font: 22px/1 system-ui, sans-serif; box-shadow: 0 2px 8px #0006; -webkit-tap-highlight-color: transparent; }
#touch button:active { background: #e63946; }
#touch .big { width: 84px; height: 84px; font-size: 34px; flex: none; }
#touch .small { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#touch .small button { width: 46px; height: 46px; }
body:not(.touch) .touch-only, body.touch .mouse-only { display: none; }
@media (max-width: 600px) {
  #hud { top: 8px; left: 8px; right: 8px; font-size: 14px; }
  #order { flex-basis: 100%; order: 3; }
  #glow { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
  .card { padding: 16px; }
}
