/* All visual rules scoped to #hf-qa-game to avoid altering the existing website. */
#hf-qa-game {
  --q-cyan: #1cd6e8;
  --q-pink: #e82fc9;
  --q-text: #eaf0f6;
  --q-muted: #b1bfce;
  --q-line: #1d485b;
  color: var(--q-text);
  font: 14px/1.5 Inter,Arial,system-ui,sans-serif;
  /* Width comes from the surrounding .container, so the game lines up with the header and the hero text. */
  padding: 48px 0 28px;
}

#hf-qa-game *,
#hf-qa-game *::before,
#hf-qa-game *::after {
  box-sizing: border-box;
}

#hf-qa-game [hidden] {
  display: none !important;
}

#hf-qa-game button,
#hf-qa-game a {
  font: inherit;
}

#hf-qa-game button {
  cursor: pointer;
}

#hf-qa-game button:focus-visible,
#hf-qa-game a:focus-visible {
  outline: 2px solid #e4fbff;
  outline-offset: 4px;
}

#hf-qa-game .hfq-how {
  padding: 20px 24px 22px;
  margin-bottom: 22px;
}

#hf-qa-game .hfq-how h3,
#hf-qa-game .hfq-sidebar h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--q-cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 16px;
}

#hf-qa-game .hfq-how h3 svg,
#hf-qa-game .hfq-sidebar h3 svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#hf-qa-game .hfq-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

#hf-qa-game .hfq-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 0 24px;
}

#hf-qa-game .hfq-steps li:first-child {
  padding-left: 0;
}

#hf-qa-game .hfq-steps li+li {
  border-left: 1px solid #254152;
}

#hf-qa-game .hfq-step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--q-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #f3f6fa;
}

#hf-qa-game .hfq-step-pink {
  border-color: var(--q-pink);
}

#hf-qa-game .hfq-steps strong {
  display: block;
  font-size: 15px;
  color: #f3f6fa;
  margin-bottom: 4px;
}

#hf-qa-game .hfq-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--q-muted);
}

#hf-qa-game .hfq-layout {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(260px,1fr);
  gap: 13px;
  align-items: stretch;
}

#hf-qa-game .hfq-how,
#hf-qa-game .hfq-game-card,
#hf-qa-game .hfq-sidebar {
  /* Same gradient border as the Projects cards. */
  background: linear-gradient(155deg,#0b1723,#070e17) padding-box,
    linear-gradient(135deg, #3eafc2 0%, #3eafc2 38%, #c25bcc 100%) border-box;
  border: 1px solid transparent;
  border-radius: 9px;
  min-width: 0;
}

#hf-qa-game .hfq-game-card {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
}

#hf-qa-game #hfq-play {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#hf-qa-game .hfq-description {
  text-align: left;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #224051;
}

#hf-qa-game .hfq-description h2 {
  font: 700 clamp(18px,1.7vw,24px)/1.4 Inter,Arial,sans-serif;
  margin: 0 0 9px;
  color: #f3f6fa;
}

#hf-qa-game .hfq-description p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--q-muted);
  margin: 0;
  max-width: 560px;
}

#hf-qa-game .hfq-case-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #b6c7d4;
}

#hf-qa-game .hfq-segments {
  display: flex;
  gap: 4px;
}

#hf-qa-game .hfq-segments span {
  width: 10px;
  height: 4px;
  background: #253b4c;
  border-radius: 4px;
}

#hf-qa-game .hfq-segments span.done,
#hf-qa-game .hfq-segments span.current {
  background: var(--q-cyan);
}

#hf-qa-game .hfq-segments span.current {
  width: 14px;
}

#hf-qa-game .hfq-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

#hf-qa-game .hfq-decision {
  position: relative;
  min-height: 50px;
  border: 1px solid;
  border-radius: 7px;
  background: #09151e;
  color: #eff7fa;
  font-weight: 750 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  transition: background .15s;
}

#hf-qa-game .hfq-decision svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#hf-qa-game .hfq-ship {
  border-color: var(--q-cyan);
}

#hf-qa-game .hfq-ship svg {
  color: var(--q-cyan);
}

#hf-qa-game .hfq-fix {
  border-color: var(--q-pink);
}

#hf-qa-game .hfq-fix svg {
  color: var(--q-pink);
}

#hf-qa-game .hfq-decision:hover:not(:disabled) {
  background: #172a38;
}

#hf-qa-game .hfq-decision:disabled {
  cursor: default;
}

#hf-qa-game .hfq-decision.is-dim {
  border-color: #22394a;
  color: #6c8192;
}

#hf-qa-game .hfq-decision.is-dim svg {
  color: #4f6475;
}

#hf-qa-game .hfq-ship.is-picked {
  background: rgba(28,214,232,.12);
  box-shadow: inset 0 0 0 1px var(--q-cyan);
}

#hf-qa-game .hfq-fix.is-picked {
  background: rgba(232,47,201,.14);
  box-shadow: inset 0 0 0 1px var(--q-pink);
}

#hf-qa-game .hfq-tag {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 20px;
  background: #0b1723;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

#hf-qa-game .hfq-ship .hfq-tag {
  color: #9df2f8;
}

#hf-qa-game .hfq-fix .hfq-tag {
  color: #f3c0e4;
}

#hf-qa-game .hfq-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

#hf-qa-game .hfq-hint,
#hf-qa-game .hfq-feedback {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  padding: 16px 18px;
}

#hf-qa-game .hfq-hint {
  align-items: center;
  gap: 6px;
  text-align: center;
  border: 1px dashed #2a4a5c;
  color: #7f93a5;
  font-size: 14px;
}

#hf-qa-game .hfq-hint strong {
  color: #c9d6e1;
  font-size: 15px;
}

#hf-qa-game .hfq-feedback {
  border: 1px solid #224051;
  background: rgba(28,214,232,.04);
}

#hf-qa-game .hfq-feedback:focus {
  outline: none;
}

#hf-qa-game .hfq-feedback-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

#hf-qa-game .hfq-feedback-row .hfq-next {
  flex: none;
}

#hf-qa-game .hfq-feedback-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 7px;
}

#hf-qa-game .hfq-same {
  color: #77e4ee;
}

#hf-qa-game .hfq-different {
  color: #c9d6e1;
}

#hf-qa-game .hfq-feedback-row p {
  margin: 0;
  color: #c1d0db;
  font-size: 14px;
  line-height: 1.55;
}

#hf-qa-game .hfq-next,
#hf-qa-game .hfq-talk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 17px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 750 !important;
}

#hf-qa-game .hfq-next {
  border: 1px solid #40d7e5;
  background: #12313b;
  color: #9df2f8;
}

#hf-qa-game .hfq-talk {
  border: 1px solid #d558b8;
  background: #2b142b;
  color: #f3c0e4;
}

#hf-qa-game .hfq-next:hover {
  background: #1b4651;
}

#hf-qa-game .hfq-talk:hover {
  background: #442342;
}

#hf-qa-game .hfq-sidebar {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

#hf-qa-game .hfq-side-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

#hf-qa-game .hfq-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #224051;
  text-align: center;
}

#hf-qa-game .hfq-ring-chart {
  position: relative;
  width: 112px;
  height: 112px;
}

#hf-qa-game .hfq-ring-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#hf-qa-game .hfq-ring-track,
#hf-qa-game .hfq-ring-fill {
  fill: none;
  stroke-width: 9;
}

#hf-qa-game .hfq-ring-track {
  stroke: #1a2d3b;
}

#hf-qa-game .hfq-ring-fill {
  stroke: var(--q-cyan);
  stroke-linecap: round;
  transition: stroke-dasharray .4s ease;
}

#hf-qa-game .hfq-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #f3f6fa;
}

#hf-qa-game .hfq-ring-caption {
  margin: 0;
  line-height: 1.4;
}

#hf-qa-game .hfq-ring-caption strong {
  display: block;
  font-size: 15px;
  color: #f3f6fa;
}

#hf-qa-game .hfq-ring-caption span {
  font-size: 13px;
  color: #8fa3b4;
}

#hf-qa-game .hfq-sidebar h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid #224051;
}

#hf-qa-game .hfq-sidebar dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

#hf-qa-game .hfq-sidebar dl>div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

#hf-qa-game .hfq-sidebar dt {
  font-size: 15px;
  color: #dfe7ee;
}

#hf-qa-game .hfq-sidebar dd {
  font-size: 15px;
  margin: 0;
  color: #f2f7fa;
  font-weight: 700;
}

#hf-qa-game .hfq-features {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  padding: 22px 2px 16px;
}

#hf-qa-game .hfq-features>div {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: flex-start;
  padding: 2px 15px;
}

#hf-qa-game .hfq-features>div+div {
  border-left: 1px solid #254152;
}

#hf-qa-game .hfq-features svg {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: var(--q-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#hf-qa-game .hfq-features strong {
  font-size: 14px;
  display: block;
  color: #f0f5f9;
}

#hf-qa-game .hfq-features span {
  font-size: 13px;
  line-height: 1.5;
  display: block;
  color: #a8bacc;
}

#hf-qa-game .hfq-results {
  min-height: 190px;
}

#hf-qa-game .hfq-results>.hfq-overline {
  color: var(--q-cyan);
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 800;
  margin: 0 0 7px;
}

#hf-qa-game .hfq-results h2 {
  color: #f3f6fa;
  font-size: 20px;
  margin: 0 0 4px;
}

#hf-qa-game .hfq-results>p {
  color: #b5c8d7;
  font-size: 13px;
}

#hf-qa-game .hfq-final-percent {
  display: block;
  font-size: 45px;
  line-height: 1.15;
  color: #80e1e9;
  margin: 9px 0;
}

#hf-qa-game .hfq-result-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 13px 0;
}

#hf-qa-game .hfq-result-stats>div {
  border: 1px solid #244456;
  border-radius: 7px;
  padding: 10px;
}

#hf-qa-game .hfq-result-stats span {
  font-size: 10px;
  color: #9fb1c0;
  display: block;
}

#hf-qa-game .hfq-result-stats strong {
  font-size: 20px;
  color: #f4f7fa;
}

#hf-qa-game .hfq-result-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#hf-qa-game .hfq-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 17px;
  border: 1px solid #0a66c2;
  border-radius: 7px;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#hf-qa-game .hfq-linkedin svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#hf-qa-game .hfq-linkedin:hover {
  background: #004182;
}

#hf-qa-game .hfq-linkedin:disabled {
  opacity: .6;
  cursor: wait;
}

#hf-qa-game .hfq-share-link {
  border: 0;
  background: none;
  padding: 8px 4px;
  color: #9fb1c0;
  text-decoration: underline;
  cursor: pointer;
}

#hf-qa-game .hfq-share-link:hover {
  color: #eaf0f6;
}

#hf-qa-game .hfq-results>.hfq-share-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9fb1c0;
}

#hf-qa-game .hfq-share-note a {
  color: var(--q-cyan);
  font-weight: 700;
  text-decoration: underline;
}

#hf-qa-game .hfq-results:focus {
  outline: none;
}

@media (max-width:840px) {
  #hf-qa-game .hfq-layout {
    grid-template-columns: 1fr;
  }
  #hf-qa-game .hfq-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #hf-qa-game .hfq-steps li,
  #hf-qa-game .hfq-steps li:first-child {
    padding: 0;
  }
  #hf-qa-game .hfq-steps li+li {
    border-left: 0;
  }
}

@media (max-width:610px) {
  #hf-qa-game {
    padding: 32px 0 22px;
  }
  #hf-qa-game .hfq-how,
  #hf-qa-game .hfq-game-card,
  #hf-qa-game .hfq-sidebar {
    padding: 16px;
  }
  #hf-qa-game .hfq-how {
    margin-bottom: 13px;
  }
  #hf-qa-game .hfq-choices {
    gap: 10px;
  }
  #hf-qa-game .hfq-feedback-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  #hf-qa-game .hfq-features {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  #hf-qa-game .hfq-features>div {
    justify-content: flex-start;
    padding: 0 8px;
  }
  #hf-qa-game .hfq-features>div+div {
    border-left: 0;
  }
  #hf-qa-game .hfq-result-stats {
    gap: 6px;
  }
  #hf-qa-game .hfq-result-stats>div {
    padding: 8px;
  }
}

@media (max-width:370px) {
  #hf-qa-game .hfq-choices {
    gap: 7px;
  }
  #hf-qa-game .hfq-decision {
    gap: 5px;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  #hf-qa-game * {
    transition: none !important;
  }
}
