/* Ponderosa High School Mustang Racer. Everything but the start button is drawn on the canvas.
   Written for an old Android browser: no inset, no flex gap, no custom properties for layout. */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0a0a; }
body { font-family: Impact, "Arial Black", "Helvetica Neue", Arial, sans-serif; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: none; }
#app { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0a0a; }
#world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }

#start {
  position: absolute; left: 33%; width: 34%; bottom: 5%; height: 15%; z-index: 5; display: none;
  margin: 0; padding: 0; cursor: pointer; text-align: center; font-family: inherit;
  color: #1a0004; border: 0.5vh solid #fff3c4; border-radius: 3vh;
  background: #ffc72c; background: -webkit-linear-gradient(top, #fff0a8 0%, #ffc72c 45%, #e09a00 100%); background: linear-gradient(to bottom, #fff0a8 0%, #ffc72c 45%, #e09a00 100%);
  box-shadow: 0 0 4vh #ffc72c, 0 1vh 0 #8a1020, 0 1.6vh 2vh rgba(0,0,0,0.7);
  -webkit-animation: pulse 1.1s ease-in-out infinite; animation: pulse 1.1s ease-in-out infinite;
}
#start span { display: block; font-size: 7.5vh; line-height: 8.5vh; letter-spacing: 0.4vh; text-shadow: 0 0.3vh 0 rgba(255,255,255,0.6); }
#start small { display: block; font-size: 2.4vh; line-height: 3vh; letter-spacing: 0.6vh; color: #7a0a1c; }
#start:active { -webkit-transform: translateY(0.6vh); transform: translateY(0.6vh); }
body[data-state="ATTRACT"] #start { display: block; }
body[data-state="VICTORY"].again #start { display: block; height: 11%; bottom: 3%; }
body[data-state="VICTORY"] #start span { font-size: 5.2vh; line-height: 6vh; }
body[data-state="VICTORY"] #start small { font-size: 1.8vh; line-height: 2.2vh; }
@-webkit-keyframes pulse { 0%,100% { -webkit-transform: scale(1); } 50% { -webkit-transform: scale(1.045); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* booth operator: tiny purple box, top right, no label */
#fs { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; z-index: 9; margin: 0; padding: 0; border: 0; border-radius: 4px; background: #7a2cff; opacity: 0.55; }
body.is-fs #fs, body.no-fs #fs { display: none; }

#diag { position: absolute; left: 8px; bottom: 8px; z-index: 9; margin: 0; padding: 6px 8px; color: #8f8; background: rgba(0,0,0,0.75); font: 14px/1.3 monospace; }
