  /* no scrollbars, rubber-banding, text selection or tap flashes, also when embedded in an iframe (itch.io, CrazyGames) */
  html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0b0d; overscroll-behavior: none; touch-action: none;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  body { display: flex; justify-content: center; align-items: center; font-family: sans-serif; }
  canvas { display: block; background: #444; touch-action: none; outline: none; } /* sized from JS so the game fills the whole window */
  /* the 3D (WebGL) canvas sits exactly behind the 2D canvas, which then only draws menus, HUD and popups on top of it */
  #stage { position: relative; line-height: 0; }
  #gl { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; background: #0b0b0d; }
  #game { outline: none; }
  #game.over3d { background: transparent; position: relative; }
  /* loading screen: shown until the 3D models are in (or straight away hidden if the game falls back to 2D) */
  #loading { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; background: #0b0b0d; color: #fff; transition: opacity 0.4s; }
  #loading[hidden] { display: none; } /* (index.html un-hides it only when the 3D models are really going to load) */
  #loading.done { opacity: 0; pointer-events: none; }
  #loading .logo { font: italic 900 56px/1 "Arial Black", Impact, sans-serif; text-align: center; letter-spacing: 2px; color: #ffb21a; text-shadow: 0 4px 0 #000, 0 0 24px rgba(255,120,0,0.5); }
  #loading .bar { width: min(320px, 70vw); height: 10px; border-radius: 6px; background: #26272d; overflow: hidden; }
  #loading #loadfill { width: 0; height: 100%; background: linear-gradient(90deg, #ff7a1a, #ffe11a); transition: width 0.15s; }
  #loading #loadtip { font: 14px sans-serif; color: #aaa; text-align: center; max-width: 80vw; }
  /* screen transitions (js/ui/screenfx.js): a dark veil with a bright band sweeping across it, over everything else */
  #sfx { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #0d1018 0%, #040508 75%); }
  #sfx > i { position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; opacity: 0; background: linear-gradient(90deg, rgba(255,200,120,0) 0%, rgba(255,214,150,0.18) 35%, rgba(255,244,220,0.75) 50%, rgba(255,214,150,0.18) 65%, rgba(255,200,120,0) 100%); }
  /* behind the World Tour map and the menu's sub-screens the 3D picture is blurred and darkened (on Low: only darkened) */
  #gl { transition: filter 0.3s ease-out; }
  #stage[data-bg="blur"] #gl { filter: blur(7px) brightness(0.5) saturate(1.1); }
  #stage[data-bg="dim"] #gl { filter: brightness(0.5); }
