/*
  Host-only styles for the browser (WebAssembly) host.

  Everything shared — tokens, typography, controls, layout — lives in smq.css, linked from
  SoManyQuestions.UI/styles into this host's wwwroot, exactly as the MAUI and test hosts do
  (ARCHITECTURE 2.1, host parity). This file holds only what a browser needs and a device does not.

  The Blazor template's app.css was deleted rather than edited. It set `h1:focus { outline: none }`,
  which removes the focus indicator from the heading FocusOnNavigate targets for screen readers, and it
  carried Bootstrap-derived rules for components this app does not use.
*/

/*
  Startup progress shown by index.html until the runtime boots. smq.css defines the palette; these
  rules only size and animate the ring, using transform/opacity so the animation stays on the
  compositor (D-21: no JS animation library, no layout-affecting keyframes).
*/
#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.loading-progress {
  position: relative;
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 20vh auto 1rem auto;
}

  .loading-progress circle {
    fill: none;
    stroke: var(--smq-surface, #1b2130);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
  }

    .loading-progress circle:last-child {
      stroke: var(--smq-accent, #7dd3fc);
      max-stroke-length: calc(2 * pi * var(--radius, 40%));
      stroke-dasharray: calc(2 * pi * var(--radius, 40%));
      stroke-dashoffset: calc(2 * pi * var(--radius, 40%));
      transition: stroke-dasharray 0.2s ease-out, stroke-dashoffset 0.2s ease-out;
    }

.loading-progress-text {
  position: absolute;
  width: 5rem;
  text-align: center;
  font-weight: bold;
  color: var(--smq-text, #e8edf6);
}

  .loading-progress-text:after {
    content: var(--loaded-pct);
  }

/*
  Blazor's unhandled-error banner, worded as a recovery affordance and styled to match the game's
  danger tokens rather than the template's yellow. Kept in sync with the MAUI host's equivalent block.
*/
#blazor-error-ui {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  padding: var(--smq-s-4, 16px);
  background: #4a1d24;
  color: #fde3e3;
  border-top: 2px solid var(--smq-danger, #f87171);
  z-index: 1000;
}

  #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
  }
