html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  color-scheme: dark;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  color: #e5eaf3;
  background-color: #0b0f17;
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(57, 91, 160, 0.16), transparent 42rem),
    radial-gradient(ellipse at 90% 18%, rgba(25, 117, 127, 0.1), transparent 34rem);
}

.site-app {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-app > .container {
  flex: 1;
}

a {
  color: #84b8ff;
  text-decoration-color: rgba(132, 184, 255, 0.35);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b1d2ff;
  text-decoration-color: currentColor;
}

.site-navbar {
  min-height: 4.25rem;
  border-bottom: 1px solid #252d3a;
  background: rgba(13, 18, 27, 0.88);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.site-navbar .navbar-brand {
  color: #f3f6fc;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.site-navbar .nav-link {
  color: #aab5c6;
  transition: color 160ms ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #fff;
}

.navbar-toggler {
  border-color: #394456;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f0f4fb;
  letter-spacing: -0.025em;
}

.display-4 {
  font-weight: 650;
}

p {
  color: #aeb8c8;
}

.card {
  overflow: hidden;
  border: 1px solid #293344;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(24, 32, 46, 0.96), rgba(17, 23, 34, 0.96));
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
}

.card-header {
  border-bottom: 1px solid #293344;
  background: rgba(255, 255, 255, 0.025);
}

.community-heading {
  margin-bottom: 1.75rem;
}

.community-eyebrow {
  margin-bottom: 0.4rem;
  color: #8fc5ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.community-heading h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
}

.community-heading p:last-child {
  margin-bottom: 0;
}

.community-card-link {
  display: block;
  height: 100%;
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
}

.community-card {
  height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.community-card .card-body {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex: 1;
  padding: 1.15rem;
}

.community-avatar {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 3.5rem;
  border: 2px solid #394b66;
  border-radius: 50%;
  background: #111824;
  object-fit: cover;
  align-self: flex-start;
}

.community-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.community-username {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
}

.community-description {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.community-card-action {
  display: block;
  margin-top: auto;
  color: #8fc5ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.community-card-link:hover,
.community-card-link:focus-visible {
  color: inherit;
}

.community-card-link:hover .community-card,
.community-card-link:focus-visible .community-card {
  transform: translateY(-3px);
  border-color: rgba(91, 145, 231, 0.62);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
}

.community-card-link:focus-visible {
  outline: 2px solid #84b8ff;
  outline-offset: 3px;
}

#selected-weapon {
  border-color: rgba(91, 145, 231, 0.42);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(46, 103, 191, 0.18), transparent 24rem),
    linear-gradient(145deg, #182233, #111722);
}

#selected-weapon-name {
  margin-bottom: 1rem;
}

#selected-weapon-velocity {
  color: #8fc5ff;
  font-size: 1.1rem;
  font-weight: 650;
}

.weapon-ttk-table {
  --bs-table-bg: transparent;
  --bs-table-color: #c8d2e1;
  --bs-table-border-color: #293344;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.035);
  width: 100%;
  table-layout: fixed;
}

.weapon-ttk-range-column {
  width: 24%;
}

.weapon-ttk-damage-column {
  width: 29%;
}

.weapon-ttk-bullets-column {
  width: 24%;
}

.weapon-ttk-time-column {
  width: 23%;
}

.weapon-ttk-table th {
  color: #9eabc0;
  font-size: 0.8rem;
  font-weight: 600;
}

.ttk-chart {
  min-height: 12rem;
  padding: 0.75rem;
  border: 1px solid #293344;
  border-radius: 0.85rem;
  background: rgba(9, 14, 22, 0.42);
}

.ttk-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ttk-chart-grid {
  stroke: #293344;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.ttk-chart-axis {
  stroke: #65748a;
  stroke-width: 1.5;
}

.ttk-chart-tick {
  fill: #9eabc0;
  font-size: 12px;
}

.ttk-chart-x-tick {
  text-anchor: middle;
}

.ttk-chart-y-tick {
  text-anchor: end;
}

.ttk-chart-label {
  fill: #dbe3ef;
  font-size: 13px;
  font-weight: 600;
}

.ttk-chart-x-label {
  text-anchor: middle;
}

.ttk-chart-y-label {
  text-anchor: middle;
}

.ttk-chart-line {
  fill: none;
  stroke: #65c9e8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.ttk-chart-hit-target {
  fill: none;
  stroke: rgba(139, 226, 250, 0.001);
  stroke-width: 14;
  cursor: help;
  pointer-events: stroke;
}

.ttk-chart-hit-target:focus-visible {
  outline: none;
  stroke: rgba(139, 226, 250, 0.28);
}

.ttk-chart-hit-target:hover {
  stroke: rgba(139, 226, 250, 0.18);
}

.ttk-chart-distance-marker {
  stroke: #d7f6ff;
  stroke-width: 1.5;
  pointer-events: none;
}

.ttk-chart-tooltip {
  pointer-events: none;
}

.ttk-chart-tooltip-background {
  fill: #202c3d;
  stroke: #5f83aa;
  stroke-width: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.ttk-chart-tooltip-text {
  fill: #eff7ff;
  font-size: 13px;
  font-weight: 650;
}

.form-label,
legend {
  color: #dbe3ef;
  font-weight: 550;
}

.form-select,
.form-control {
  min-height: 2.8rem;
  border-color: #354155;
  border-radius: 0.65rem;
  color: #e5eaf3;
  background-color: #111824;
}

.form-select:focus,
.form-control:focus {
  border-color: #659ef0;
  box-shadow: 0 0 0 0.22rem rgba(69, 130, 220, 0.2);
}

.form-select:disabled,
.form-control:disabled {
  border-color: #2b3442;
  color: #798598;
  background-color: #151b26;
}

fieldset:disabled {
  opacity: 0.58;
}

.text-muted {
  color: #8793a5 !important;
}

.border-top,
.border-bottom {
  border-color: #252d3a !important;
}

.site-footer {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  border-top: 1px solid #252d3a;
  background: rgba(13, 18, 27, 0.55);
  line-height: 3.75rem;
}

.site-footer .container {
  color: #8793a5;
}

::selection {
  color: #fff;
  background: #315f9c;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
