.experience { scroll-margin-top: 26px; }
.game-content .experience-heading { margin-bottom: 23px; }
.experience-heading p {
  max-width: 61ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.04rem;
  text-wrap: pretty;
}

.experience-panel {
  display: grid;
  overflow: hidden;
  border-radius: 9px;
  background: var(--navy);
  color: var(--paper);
}
.experience-panel :focus-visible { outline-color: var(--peach); }
.experience-panel .eyebrow { font-size: .73rem; }

.deal-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.deal-vehicle {
  display: grid;
  grid-template-rows: auto minmax(155px, 1fr) auto;
  min-width: 0;
  padding: clamp(22px, 3.35vw, 46px);
  background:
    linear-gradient(0deg, #14162b 0%, #14162b00 52%),
    radial-gradient(ellipse at 45% 49%, #383e64, #1b2039 58%, #14162b 88%);
}
.deal-vehicle h3, .run-instructions h3 {
  margin-top: 7px;
  font-size: clamp(2.2rem, 4.85vw, 4.55rem);
}
.deal-vehicle-art {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  isolation: isolate;
  padding-block: 18px 12px;
}
.deal-vehicle-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 6% 20% 6%;
  height: 12%;
  border-radius: 50%;
  background: #090a16bf;
  filter: blur(11px);
}
.deal-vehicle-art img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px #090a16ad);
}
.deal-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 8px 0 0;
  padding-top: 15px;
  border-top: 1px solid #f8f5f33d;
}
.deal-price dt, .deal-result dt {
  color: #d2d0dc;
  font-size: .8rem;
  font-weight: 700;
}
.deal-price dd, .deal-result dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.deal-price dd { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.deal-desk, .run-instructions {
  min-width: 0;
  padding: clamp(22px, 3.35vw, 46px);
  background: #20233a;
}
.deal-desk {
  display: flex;
  min-height: 371px;
  flex-direction: column;
  justify-content: center;
  gap: 19px;
}
.deal-message {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 13px 14px 13px 16px;
  border-radius: 0 5px 5px 0;
  border-left: 3px solid var(--coral);
  background: #14162bc4;
  color: #f5eff2;
  font-weight: 700;
}
.deal-panel[data-result="profit"] .deal-message {
  border-color: #9ce0b8;
  color: #c9f2d8;
}
.deal-actions { display: grid; gap: 9px; }
.deal-offer-label { margin-top: 4px; color: #e0dce5; font-size: .85rem; font-weight: 800; }
.deal-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.experience-button {
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--coral);
  color: #14162b;
  font-size: .87rem;
  font-weight: 800;
  line-height: 1.22;
  transition: background .2s, border-color .2s;
}
.experience-button:hover:not(:disabled) { background: var(--peach); }
.experience-button:disabled { opacity: .5; cursor: default; }
.experience-button-quiet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 13px;
  border-color: #f8f5f35a;
  background: transparent;
  color: var(--paper);
  text-align: left;
}
.experience-button-quiet:hover:not(:disabled) { border-color: var(--peach); color: var(--navy); }
.experience-button-quiet small { font: inherit; font-size: .83em; }
.experience-link {
  justify-self: start;
  width: fit-content;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--peach);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.experience-link:hover { color: var(--paper); }
.deal-result { display: grid; justify-items: start; gap: 18px; }
.deal-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; width: 100%; margin: 0; }

.run-panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.run-cabinet { position: relative; overflow: hidden; padding: 19px clamp(22px, 3.35vw, 44px) 24px; }
.run-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #d6d4e2;
  font-size: .83rem;
  font-weight: 800;
}
.run-score strong { color: var(--peach); font-size: 1.15rem; }
.run-track {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: clamp(225px, 32vw, 310px);
  border: 1px solid #77739860;
  border-radius: 7px;
  background: radial-gradient(ellipse at 50% 70%, #33385a 0%, #17192e 53%, #0e101f 96%);
}
.run-lane {
  position: absolute;
  inset: 0 13%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), #b5b2d526 calc(50% - 1px), #b5b2d526 calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 29px, #b5b2d51b 30px 31px);
  border-inline: 1px solid #b5b2d542;
}
.run-gate {
  position: absolute;
  inset: 36% 13% auto;
  display: flex;
  gap: 0;
  align-items: center;
  transition: opacity .16s;
}
.run-gate span {
  flex: 1 1 50%;
  height: 5px;
  border-radius: 2px;
  background: var(--peach);
  box-shadow: 0 0 14px #ff4f3abf;
}
.is-gate-open .run-gate { gap: 34%; }
.is-running .run-gate, .is-running .run-lane { visibility: hidden; }
.run-orb {
  position: absolute;
  top: var(--run-position, 79%);
  left: 50%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border: 2px solid #f8ffff;
  border-radius: 50%;
  background: #8be4f3;
  box-shadow: 0 0 8px #8be4f3, 0 0 30px #8be4f3a9;
}
[data-run-phase="lost"] .run-orb {
  border-color: var(--peach);
  background: var(--coral);
  box-shadow: 0 0 19px #ff4f3abf;
}
[data-run-phase="won"] .run-gate { visibility: hidden; }
.run-instructions { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.run-instructions h3 { font-size: clamp(2rem, 4vw, 3.6rem); }
.run-instructions [data-run-message] {
  min-height: 50px;
  margin: 16px 0 12px;
  color: #e0dce5;
}
.run-actions { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.run-hold { touch-action: none; user-select: none; }
.is-running .run-hold { background: var(--peach); }
.run-keys { margin-top: 13px; color: #d1ccda; font-size: .82rem; }

@media (max-width: 740px) {
  .deal-panel, .run-panel { grid-template-columns: minmax(0, 1fr); }
  .deal-desk { min-height: 0; }
  .deal-vehicle { grid-template-rows: auto minmax(130px, 1fr) auto; }
  .deal-vehicle-art img { max-height: 150px; }
}
@media (max-width: 360px) {
  .deal-offers { grid-template-columns: minmax(0, 1fr); }
}
