@font-face {
  font-family: "Roboto Condensed";
  src: url("RobotoCondensed.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Roboto Condensed", Arial, sans-serif;
  background: #050607;
  --gold: #f2bd21;
  --orange: #f26a20;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  overscroll-behavior: none;
}

#game-shell,
#running,
#stage,
#stage iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#running,
#stage,
#stage iframe { background: #000; }

#stage iframe {
  display: block;
  border: 0;
}

#runtime-loading {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .84)),
    url("nfsc-poster.bmp") center / cover no-repeat;
  pointer-events: none;
}

.runtime-loading-card {
  width: min(520px, calc(100vw - 48px));
  padding: 22px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(5, 7, 8, .9);
  box-shadow: 0 15px 50px rgba(0, 0, 0, .58);
}

.runtime-loading-title {
  margin: 0 0 13px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .18em;
}

#runtime-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .18);
}

#runtime-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width .2s ease;
}

.runtime-loading-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  color: #d6d9da;
  font: 13px/1.35 Arial, sans-serif;
}

#runtime-percent { color: var(--gold); }

#input-hints {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 10;
  max-width: min(760px, calc(100vw - 32px));
  margin: 0;
  padding: 6px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .55);
  font: 12px/1.35 Arial, sans-serif;
  transform: translateX(-50%);
  pointer-events: none;
}

#input-hints:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  #runtime-progress-fill { transition: none; }
}
