/*
 * Global root treatment for the Neon Arcade look (design/README.md "Background treatment").
 * Applied once at the app root: dark base, radial glows, and a CRT scanline overlay.
 * Component-specific styles live in colocated `.razor.css` files.
 */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  color: var(--text);
  font-family: var(--font-mono);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -6%, rgba(56, 245, 255, 0.14), transparent 60%),
    radial-gradient(760px 520px at 92% 8%, rgba(255, 77, 216, 0.12), transparent 60%),
    radial-gradient(700px 700px at 60% 120%, rgba(182, 255, 58, 0.07), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* CRT scanline overlay — subtle, non-interactive, above content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--cyan-hover);
}

input, textarea, button {
  font-family: var(--font-mono);
}

input:focus, textarea:focus {
  outline: none;
}

h1:focus {
  outline: none;
}

/* Framework error surfaces, restyled to fit the dark theme. */
#blazor-error-ui {
  color-scheme: dark;
  background: var(--panel-solid);
  border-top: 1px solid var(--pink);
  bottom: 0;
  box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.6);
  color: var(--text);
  display: none;
  left: 0;
  padding: 0.8rem 1.4rem;
  position: fixed;
  width: 100%;
  z-index: 1001;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: var(--pink);
  color: #06070d;
  padding: 1rem;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

/*
 * Shared round scaffold — the left rail + main board layout every in-round phase board rides
 * (Add/Voting/Results, T8–T11). Global rather than component-scoped so each phase component can own
 * its own scaffold markup and still share one layout definition. Phase-specific content classes live
 * in each component's colocated `.razor.css`.
 */
.round-scaffold {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 28px 30px;
}

.rail {
  width: 296px;
  flex: 0 0 296px;
}

.board {
  flex: 1;
  min-width: 0;
}
