:root {
  --ink: #172026;
  --muted: #63717d;
  --line: #d9e0e6;
  --page: #f4f6f7;
  --critics: #d84b3f;
  --users: #1f7a8c;
  --good: #16764a;
  --bad: #a33a32;
  --focus: #245c7a;
}

body {
  background: var(--page);
  color: var(--ink);
  padding-top: 3.75rem;
}

a, a.nav-link {
  color: var(--focus);
}

path {
  fill: none;
  stroke-width: 2.5;
}

.navbar {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(23, 32, 38, 0.06);
  font-size: 0.92rem;
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.navbar-brand small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler-icon {
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-position:
    center 8px,
    center 15px,
    center 22px;
  background-repeat: no-repeat;
  background-size: 22px 2px;
}

.masthead {
  background: #e6ecef;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow:not(.text-muted) {
  color: var(--focus);
}

.verdict-card {
  background: rgba(255, 255, 255, 0.82);
}

.hero-verdict {
  display: block;
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero-verdict.yes {
  color: var(--good);
}

.hero-verdict.no {
  color: var(--bad);
}

.toolbar-band {
  position: sticky;
  top: 4.65rem;
  z-index: 1020;
}

.stat-value {
  font-size: 1.55rem;
  line-height: 1;
}

.metric-value {
  font-size: 1.8rem;
  line-height: 1;
}

.metric-score {
  display: block;
  font-size: 1.15rem;
  min-width: 3rem;
  text-align: right;
}

.mini-chart {
  height: 190px;
}

.chart-grid-lines line {
  stroke: #dfe6eb;
  stroke-opacity: 0.58;
  stroke-width: 1;
}

.critics-line,
.critics-dots {
  stroke: var(--critics);
  fill: rgba(216, 75, 63, 0.5);
}

.users-line,
.users-dots {
  stroke: var(--users);
  fill: rgba(31, 122, 140, 0.5);
}

.critics-key::before,
.users-key::before {
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.65rem;
  margin-right: 0.35rem;
  width: 0.65rem;
}

.critics-key::before {
  background: var(--critics);
}

.users-key::before {
  background: var(--users);
}

.score-tick {
  background: #edf2f4;
  min-width: 2.25rem;
}

.franchise-card-button {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  color: inherit;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.franchise-card-button:hover,
.franchise-card-button:focus {
  border-color: rgba(36, 92, 122, 0.45);
  box-shadow: 0 0.5rem 1rem rgba(23, 32, 38, 0.08);
  color: inherit;
  transform: translateY(-1px);
}

.franchise-card-button:focus {
  outline: 0;
}

.franchise-card-button.selected {
  border-color: var(--ink);
  box-shadow: 0 0.5rem 1rem rgba(23, 32, 38, 0.08);
}

.justify-self-start {
  justify-self: start;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px;
}

.audience-progress {
  background: #edf2f4;
  height: 1.1rem;
}

.audience-progress .progress-bar {
  background: var(--users);
}

.step-number {
  align-items: center;
  background: #edf2f4;
  border-radius: 0.5rem;
  color: var(--focus);
  display: inline-flex;
  font-weight: 850;
  height: 46px;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 58px;
}

#preloader {
  animation: sk-rotate 2s infinite linear;
  height: 40px;
  margin: 100px auto;
  position: relative;
  text-align: center;
  width: 40px;
}

.dot1,
.dot2 {
  animation: sk-bounce 2s infinite ease-in-out;
  background-color: var(--ink);
  border-radius: 100%;
  display: inline-block;
  height: 60%;
  position: absolute;
  top: 0;
  width: 60%;
}

.dot2 {
  animation-delay: -1s;
  bottom: 0;
  top: auto;
}

@keyframes sk-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

footer {
  background: var(--ink);
  color: #d9e0e6;
  font-size: 0.85rem;
}

footer a {
  color: #fff;
}

#return-to-top {
  background: rgba(23, 32, 38, 0.85);
  bottom: 20px;
  color: #fff;
  display: none;
  padding: 10px 16px;
  position: fixed;
  right: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

#return-to-top:hover {
  background: var(--ink);
}

.movie-poster {
  max-height: 390px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .step-number {
    margin-bottom: 0;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 4.4rem;
  }

  .toolbar-band {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .hero-verdict {
    font-size: 5rem;
  }

  .mini-chart {
    height: 150px;
  }

  .ranking-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ranking-row b {
    grid-column: 2;
    text-align: left;
  }

  .metric-score {
    text-align: left;
  }
}
