:root {
  --wolt: #00c2e8; --wolt-deep: #009de0; --ink: #0d1117; --paper: #f6f3ea; --hot: #ff3d57; --gold: #ffcf3a; --ok: #2fd27a;
  --ui: 'Heebo', 'Segoe UI', Arial, sans-serif; --display: 'Karantina', 'Heebo', Impact, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d10; color: #fff; font-family: var(--ui); -webkit-font-smoothing: antialiased; user-select: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- boot / title screen ---------- */
#boot { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: flex-end; background: #10151c; transition: opacity .6s ease; }
#boot.out { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
#boot.out * { pointer-events: none !important; }      /* its buttons set pointer-events themselves: once dismissed, nothing in it may catch a touch */
.boot-art { position: absolute; inset: 0; background: #10151c url(../assets/title.jpg) 62% 50% / cover no-repeat; }
/* tall screens (phones held upright) show a narrow slice of the picture: the slice with the courier and the patrol car */
@media (max-aspect-ratio: 3/4) { .boot-art { background-position: 31% 50%; } }
.boot-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(8,10,14,.88) 0%, rgba(8,10,14,.6) 36%, rgba(8,10,14,0) 68%), linear-gradient(0deg, rgba(8,10,14,.5) 0%, rgba(8,10,14,0) 40%); }
.boot-inner { position: relative; z-index: 1; padding: clamp(20px, 5vw, 64px); max-width: min(640px, 100%); }
.logo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; line-height: .82; font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
.logo-top { font-size: clamp(64px, 13vw, 150px); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.logo-tlv { font-size: clamp(64px, 13vw, 150px); color: var(--wolt); text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.logo-sub { flex-basis: 100%; margin-top: 10px; font-family: var(--ui); font-weight: 900; font-size: clamp(13px, 2vw, 20px); letter-spacing: .34em; color: var(--gold); line-height: 1.2; }
.logo-he { font-family: var(--display); font-size: clamp(30px, 5vw, 54px); color: rgba(255,255,255,.92); margin: 6px 0 22px; text-align: left; }
#boot-status { font-weight: 600; font-size: 15px; color: rgba(255,255,255,.85); min-height: 22px; }
.bar { width: min(420px, 100%); height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); margin: 10px 0 14px; overflow: hidden; }
#boot-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--wolt-deep), var(--wolt)); transition: width .25s ease; }
#boot-tip { font-size: 14px; color: rgba(255,255,255,.7); min-height: 42px; max-width: 460px; line-height: 1.45; }
#boot-start { margin-top: 8px; padding: 16px 34px; border: 0; border-radius: 14px; background: var(--wolt); color: #04222b; font-weight: 900; font-size: 20px; letter-spacing: .08em; box-shadow: 0 10px 30px rgba(0,194,232,.35); transition: transform .12s ease, box-shadow .12s ease; pointer-events: auto; }
#boot-start:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px rgba(0,194,232,.5); }
.legal { margin: 22px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.5); max-width: 520px; }

/* Short screens (a phone on its side): a compact title screen so the logo and the start button both fit. */
@media (max-height: 520px) {
  .boot-inner { padding: 12px 24px 14px; }
  .logo-top, .logo-tlv { font-size: clamp(40px, 13vh, 76px); }
  .logo-sub { margin-top: 4px; font-size: 11px; }
  .logo-he { font-size: 24px; margin: 2px 0 8px; }
  .bar { margin: 6px 0 8px; }
  #boot-tip { min-height: 0; font-size: 12px; }
  #boot-start { padding: 11px 26px; font-size: 16px; }
  .legal { margin-top: 8px; font-size: 10px; }
  #touch-note { margin-top: 8px; padding: 6px 10px; font-size: 11px; }
}

/* Continue / New shift on the title screen when a saved shift exists */
#boot-new { margin: 8px 0 0 10px; padding: 14px 22px; border-radius: 14px; border: 2px solid rgba(255,255,255,.35); background: rgba(8,10,14,.35); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .08em; cursor: pointer; }
#boot-new.confirm { border-color: #ff8a4c; color: #ffb48a; }
#boot-resume { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
@media (max-height: 520px) { #boot-new { padding: 9px 16px; font-size: 13px; } #boot-resume { margin-top: 4px; font-size: 11.5px; } }

html, body { overscroll-behavior: none; }
