.interaction-hero {
  background:
    radial-gradient(circle at 90% 3%, rgba(68, 130, 157, 0.2), transparent 28%),
    radial-gradient(circle at 15% 24%, rgba(70, 145, 112, 0.12), transparent 27%);
}

.interaction-hero .control-actions {
  grid-template-columns: 1fr;
}

.interaction-race-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.interaction-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: #1d1e1a;
}

.interaction-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 71px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.interaction-card > header > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 11px;
}

.interaction-card h3 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.interaction-card header p {
  margin: 0;
  color: #73766c;
  font-size: 8px;
}

.interaction-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.interaction-metrics > div {
  display: grid;
  gap: 4px;
  padding: 12px 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.interaction-metrics > div:nth-child(2n) {
  border-right: 0;
}

.interaction-metrics > div:nth-child(n + 3) {
  border-bottom: 0;
}

.interaction-metrics span {
  color: #6f7268;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.interaction-metrics strong {
  color: #ebe9e0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.interaction-frame {
  height: 570px;
  overflow: hidden;
  background: #eeeae1;
}

.interaction-frame iframe {
  width: 220%;
  height: 1255px;
  border: 0;
  transform: scale(0.4545);
  transform-origin: top left;
}

.interaction-waterfall {
  min-height: 164px;
  padding: 14px 17px 17px;
  background: #191a17;
  color: #66695f;
  font-size: 8px;
}

.interaction-waterfall__scale {
  display: flex;
  justify-content: space-between;
  margin: 0 49px 8px 91px;
  color: #55584f;
  font: 700 7px/1 ui-monospace, monospace;
}

.interaction-waterfall__row {
  display: grid;
  grid-template-columns: 82px 1fr 40px;
  gap: 8px;
  align-items: center;
  min-height: 20px;
}

.interaction-waterfall__row > span {
  overflow: hidden;
  color: #85877d;
  font: 700 7px/1 ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interaction-waterfall__row > div {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 24%, #2d2f29 25%, transparent 26%) 0 0 /
      25% 100%,
    #242520;
}

.interaction-waterfall__row b {
  color: #66695f;
  font: 700 7px/1 ui-monospace, monospace;
  text-align: right;
}

.interaction-waterfall__markers {
  position: relative;
  height: 25px;
  margin: 7px 49px 0 90px;
  border-top: 1px solid #32342e;
}

.interaction-waterfall__markers span {
  position: absolute;
  top: 5px;
  color: #a5aaa0;
  font: 800 6px/1 ui-monospace, monospace;
  transform: translateX(-50%);
}

.interaction-waterfall__markers span::before {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.interaction-waterfall__markers .is-basic {
  color: #70b79b;
}

.interaction-waterfall__markers .is-advanced {
  color: #dd9063;
}

.interaction-explanation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 88px;
}

.interaction-explanation article {
  min-height: 200px;
  padding: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.interaction-explanation article > span {
  color: #5e6158;
  font: 800 9px/1 ui-monospace, monospace;
}

.interaction-explanation h3 {
  margin: 34px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.interaction-explanation p {
  margin: 0;
  color: #7f8178;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .interaction-race-grid {
    grid-template-columns: 1fr;
  }

  .interaction-frame iframe {
    width: 150%;
    height: 870px;
    transform: scale(0.6667);
  }
}

@media (max-width: 680px) {
  .interaction-explanation {
    grid-template-columns: 1fr;
  }

  .interaction-frame {
    height: 535px;
  }

  .interaction-frame iframe {
    width: 180%;
    height: 963px;
    transform: scale(0.5555);
  }
}
