/* Crowd Hits shared foundations */

:root {
  --ch-bg: #05090c;
  --ch-panel: rgba(9, 15, 19, .86);
  --ch-panel-strong: rgba(10, 16, 21, .96);
  --ch-text: #f7f8f8;
  --ch-muted: rgba(247, 248, 248, .62);
  --ch-line: rgba(255, 255, 255, .11);
  --ch-magenta: #ff3aa7;
  --ch-purple: #a86cff;
  --ch-green: #32e851;
  --ch-danger: #ff474f;
  --ch-radius: 8px;
  --ch-content-max: 1180px;
  --ch-shadow: 0 28px 90px rgba(0, 0, 0, .48);

  /* Compatibility aliases used by the public views. */
  --bg: var(--ch-bg);
  --panel: var(--ch-panel);
  --panel-strong: var(--ch-panel-strong);
  --text: var(--ch-text);
  --muted: var(--ch-muted);
  --line: var(--ch-line);
  --accent: #ff1178;
  --accent-2: #c13cff;
  --accent-soft: rgba(255, 17, 120, .18);
  --danger: var(--ch-danger);
  --ok: var(--ch-green);
  --shadow: var(--ch-shadow);
  --radius-md: var(--ch-radius);
  --radius-lg: var(--ch-radius);
  --radius-xl: var(--ch-radius);
  --content-max: 920px;
}

.preset-icon-svg {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
}

.preset-icon-stroke-primary,
.preset-icon-stroke-secondary {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preset-icon-stroke-primary {
  stroke: currentColor;
  stroke-width: 1.7;
}

.preset-icon-stroke-secondary {
  stroke: var(--preset-icon-accent, #ff3aa7);
  stroke-width: 1.9;
}

.preset-icon-fill-primary {
  fill: currentColor;
}

.preset-icon-fill-secondary {
  fill: var(--preset-icon-accent, #ff3aa7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--ch-bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ch-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: default;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ch-magenta);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
