/* National Marquette Day: The Game — UI styling (site palette: limegreen, #2ecbff, #ff5df4) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: Arial, Helvetica, sans-serif; }
#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; transition: opacity 1.2s ease; }
#objective {
  position: absolute; top: 18px; left: 18px; max-width: 380px;
  background: rgba(5,5,12,0.72); border: 1px solid rgba(45,255,152,0.35);
  border-radius: 10px; padding: 10px 16px; color: #eaffea;
  font-family: 'Orbitron', Arial, sans-serif; font-size: 0.85rem; letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
#objective::before { content: "OBJECTIVE"; display: block; color: limegreen; font-size: 0.62rem; letter-spacing: 2px; margin-bottom: 3px; }
#minimap-wrap {
  position: absolute; top: 18px; right: 18px; width: 200px; height: 200px;
  border-radius: 50%; overflow: hidden; border: 3px solid rgba(46,203,255,0.55);
  box-shadow: 0 6px 22px rgba(0,0,0,0.6); background: #0a0a14;
}
#minimap { width: 100%; height: 100%; }
#minimap-n {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  color: #fff; font: 700 12px 'Orbitron', Arial; text-shadow: 0 0 4px #000; pointer-events: none;
}
#race-timer {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font: 900 2.6rem 'Orbitron', Arial; color: #ff5df4; text-shadow: 0 0 18px rgba(255,93,244,0.8), 0 2px 4px #000;
}
#race-timer.urgent { color: #ff3030; animation: pulse 0.5s infinite alternate; }
@keyframes pulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.12); } }
#prompt {
  position: absolute; bottom: 17%; left: 50%; transform: translateX(-50%);
  background: rgba(5,5,12,0.8); border: 1px solid rgba(46,203,255,0.5); border-radius: 999px;
  padding: 9px 22px; color: #fff; font-size: 1rem;
}
#prompt b { color: #2ecbff; }
#toast {
  position: absolute; top: 28%; left: 50%; transform: translateX(-50%);
  color: #fff; font: 700 1.3rem 'Orbitron', Arial; text-shadow: 0 0 14px rgba(46,203,255,0.9), 0 2px 4px #000;
  text-align: center; transition: opacity 0.6s;
}
/* crosshair */
#hud::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
  margin: -2.5px; border-radius: 50%; background: rgba(255,255,255,0.7); box-shadow: 0 0 4px rgba(0,0,0,0.8);
}

/* ---------- Dialogue ---------- */
#dialogue {
  position: fixed; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: min(760px, 92vw); z-index: 20;
  background: rgba(6,4,16,0.92); border: 1px solid rgba(255,93,244,0.4); border-radius: 14px;
  padding: 18px 26px 14px; color: #f4f4ff; box-shadow: 0 18px 45px rgba(0,0,0,0.7);
}
#dlg-speaker { font: 700 0.85rem 'Orbitron', Arial; color: #ff5df4; letter-spacing: 2px; margin-bottom: 6px; text-transform: uppercase; }
#dlg-text { font-size: 1.12rem; line-height: 1.5; min-height: 3.2em; }
#dlg-choices { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.dlg-choice {
  flex: 1 1 200px; background: rgba(46,203,255,0.12); border: 1px solid rgba(46,203,255,0.55);
  color: #dff6ff; border-radius: 8px; padding: 10px 14px; font-size: 1rem; cursor: pointer; text-align: left;
}
.dlg-choice:hover, .dlg-choice.sel { background: rgba(46,203,255,0.32); }
.dlg-choice b { color: #2ecbff; margin-right: 8px; }
#dlg-hint { margin-top: 8px; text-align: right; font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* ---------- Cutscene ---------- */
.letterbox { position: fixed; left: 0; width: 100%; height: 11vh; background: #000; z-index: 15; }
#letterbox-top { top: 0; } #letterbox-bot { bottom: 0; }
#caption {
  position: fixed; bottom: 13vh; left: 50%; transform: translateX(-50%);
  max-width: 80vw; text-align: center; z-index: 16;
  color: #fff; font-size: 1.25rem; text-shadow: 0 2px 6px #000, 0 0 12px rgba(0,0,0,0.9);
}
#caption .who { color: #2ecbff; font-weight: 700; }
#skip-hint { position: fixed; bottom: 3vh; right: 3vw; z-index: 16; color: rgba(255,255,255,0.5); font-size: 0.8rem; }
#fade { position: fixed; inset: 0; background: #000; z-index: 40; pointer-events: none; transition: opacity 1s ease; }
#blur-layer { position: fixed; inset: 0; z-index: 14; pointer-events: none; backdrop-filter: blur(14px); transition: backdrop-filter 1.5s ease, opacity 1.5s ease; }

/* ---------- Screens ---------- */
#title-screen, #pause-menu, #end-screen, #mobile-notice {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(63,55,201,0.35), rgba(0,0,0,0.92) 70%), #05050c;
}
#pause-menu, #end-screen { background: rgba(3,3,10,0.82); }
#title-inner, .panel { text-align: center; color: #fff; padding: 30px; }
#title-inner h1 {
  font: 900 clamp(2.2rem, 7vw, 4.6rem)/1.05 'Orbitron', Arial;
  background: linear-gradient(90deg, #ffd700, #2ecbff, #ff5df4); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(46,203,255,0.45));
}
.subtitle { font: 700 1.3rem 'Orbitron', Arial; color: limegreen; letter-spacing: 10px; margin: 10px 0 18px; }
.tag { color: rgba(255,255,255,0.75); max-width: 460px; margin: 0 auto 28px; line-height: 1.5; }
.title-btn {
  display: block; margin: 12px auto; min-width: 240px;
  background: linear-gradient(135deg, #ff5df4, #2ecbff); color: #000; border: none;
  padding: 14px 32px; font: 700 1.1rem 'Orbitron', Arial; letter-spacing: 1px;
  border-radius: 999px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 30px rgba(255,93,244,0.35);
}
.title-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 35px rgba(46,203,255,0.45); }
.title-btn.small { min-width: 180px; font-size: 0.85rem; padding: 10px 22px; opacity: 0.85; }
.controls-hint { margin-top: 22px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.back-link { display: inline-block; margin-top: 18px; color: #2ecbff; text-decoration: none; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }
.panel h2 { font: 900 2.2rem 'Orbitron', Arial; color: limegreen; margin-bottom: 18px; }
#end-screen .panel h2 { font-size: 3rem; }
.panel label { display: block; margin: 14px auto; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.panel input[type="range"] { width: 220px; vertical-align: middle; margin-left: 10px; accent-color: #2ecbff; }
.panel p { color: rgba(255,255,255,0.8); max-width: 420px; margin: 0 auto 16px; line-height: 1.5; }

#end-screen.win .panel h2 { color: #ffd700; text-shadow: 0 0 30px rgba(255,215,0,0.6); }
#end-screen.lose .panel h2 { color: #ff3030; }
