/* Picnic Dash keeps its own game colours, with controls matching the chat theme. */
#runnerPanel {
  padding-top: 15px;
}
.runner-heading {
  gap: 12px;
  margin-bottom: 8px;
}
.runner-heading strong {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.runner-eyebrow {
  font-size: 8px;
  letter-spacing: 1.2px;
}
#runnerPanel #runnerPause {
  min-width: 48px;
  padding: 7px 11px;
  border: 1px solid var(--theme-line, #bfd0c8);
  border-radius: 20px;
  color: var(--theme-ink, #355b64);
  background: var(--theme-soft, #e5efe3);
  font-size: 12px;
  font-weight: 700;
}
#runnerTeaser {
  margin: 0;
  padding: 3px 0 4px;
  color: var(--theme-quiet, #657d75);
  font-size: 11px;
  line-height: 1.7;
}
#runnerCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 18 / 25;
  border: 0;
  border-radius: 16px;
  background: #92c8d6;
  box-shadow: 0 4px 18px #193b5220;
  touch-action: none;
  cursor: pointer;
}
#runnerCanvas:focus-visible {
  outline: 3px solid var(--theme-accent, #6092a2);
  outline-offset: 3px;
}
.runner-toolbar {
  display: flex;
  gap: 5px;
  margin: 9px 0;
}
.runner-toolbar button {
  flex: 1;
  padding: 7px 6px;
  min-width: 0;
  min-height: 36px;
  font-size: 11px;
  border: 1px solid var(--theme-line, #ccd8c8);
  background: var(--theme-surface, #f8f8ec);
  color: var(--theme-ink, #3f6269);
  border-radius: 9px;
}
.runner-toolbar #runnerMode {
  flex: 1.45;
  background: var(--theme-selected, #e3efde);
  font-weight: 700;
}
.runner-toolbar #runnerExpand {
  flex: 0 0 34px;
  font-size: 20px;
}
.runner-console {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.runner-console .runner-toolbar {
  order: 0;
}
.runner-console .runner-input-area {
  order: 1;
  height: 61px;
  flex-shrink: 0;
}
.runner-console .runner-footer {
  order: 2;
  flex-shrink: 0;
}
.runner-console .runner-mission {
  order: 3;
}
.runner-console #runnerStatus {
  order: 4;
}
.runner-console #runnerHelp {
  order: 5;
}
.runner-console .runner-records {
  order: 6;
}
.runner-console .runner-trail {
  order: 7;
}
.runner-console .runner-guide {
  order: 8;
}
#runnerAnnouncement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.runner-mission {
  padding: 9px 10px 5px;
  border: 1px solid var(--theme-line, #d6decd);
  border-radius: 10px;
  background: var(--theme-soft, #ecf1e5);
}
.runner-mission > div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 10px;
  color: var(--theme-ink, #46666c);
}
#runnerMission {
  font-weight: 700;
}
#runnerMissionCount {
  white-space: nowrap;
  color: var(--theme-quiet, #6b807a);
  font-variant-numeric: tabular-nums;
}
#runnerMissionProgress {
  display: block;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 7px 0 3px;
  border: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--theme-line, #d6decd);
  accent-color: var(--theme-accent, #7aaa83);
}
#runnerMissionProgress::-webkit-progress-bar {
  background: var(--theme-line, #d6decd);
}
#runnerMissionProgress::-webkit-progress-value {
  background: var(--theme-accent, #7aaa83);
  border-radius: 4px;
}
#runnerMissionProgress::-moz-progress-bar {
  background: var(--theme-accent, #7aaa83);
  border-radius: 4px;
}
#runnerStatus {
  margin: 7px 0;
  font-size: 10px;
  color: var(--theme-quiet, #6b807a);
}
#runnerControls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 7px 0;
}
#runnerControls button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 47px;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--theme-line, #d2ddd2);
  color: var(--theme-ink, #3c626b);
  background: var(--theme-surface, #f9f9ed);
  font-size: 19px;
  touch-action: manipulation;
}
#runnerControls button:active {
  transform: translateY(2px);
  background: var(--theme-selected, #d6e9cf);
}
#runnerControls small {
  font-size: 7px;
  letter-spacing: 0.9px;
}
#runnerHelp {
  font-size: 10px;
  line-height: 1.55;
  color: var(--theme-quiet, #637f7b);
}
.runner-records {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--theme-line, #d6decd);
}
.runner-records span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 9px;
  color: var(--theme-quiet, #6a807b);
}
.runner-records strong {
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--theme-ink, #3b636b);
  font-variant-numeric: tabular-nums;
}
.runner-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}
.runner-footer button {
  width: 50%;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-size: 10px;
  color: var(--theme-link, #537883);
}
.runner-footer button:first-child {
  text-align: left;
}
.runner-footer button:last-child {
  text-align: right;
}
.runner-trail {
  margin: 1px 0 0;
  color: var(--theme-quiet, #6c827b);
  font-size: 8px;
  line-height: 1.5;
}
#runnerDialog {
  padding: 18px;
  width: min(780px, calc(100vw - 28px));
  height: min(760px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 20px;
  color: var(--theme-ink, #365660);
  background: var(--theme-surface, #f8f9ee);
  border: 1px solid var(--theme-line, #cedbc9);
}
#runnerDialog[open] {
  display: flex;
  flex-direction: column;
}
#runnerDialog > .runner-dialog-heading {
  flex-shrink: 0;
}
#runnerLargeMount {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
#runnerDialog #runnerBody {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: start;
  gap: 18px;
}
#runnerDialog .runner-console {
  max-height: min(600px, calc(100dvh - 125px));
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}
#runnerDialog #runnerCanvas {
  width: auto;
  max-width: 100%;
  height: min(600px, calc(100dvh - 125px));
  object-fit: contain;
  justify-self: center;
}
#runnerDialog .runner-toolbar {
  margin-top: 0;
}
#runnerDialog::backdrop {
  background: #132735a8;
  backdrop-filter: blur(5px);
}
.runner-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.runner-dialog-heading h2 {
  font-size: 22px;
  line-height: 1.1;
  margin: 4px 0 0;
  letter-spacing: -0.6px;
}
#runnerDialog #runnerExpand {
  display: none;
}
#runnerDialog .runner-toolbar button {
  min-height: 40px;
  font-size: 12px;
}
#runnerDialog #runnerControls button {
  min-height: 48px;
}
#runnerDialog .runner-mission > div,
#runnerDialog #runnerHelp {
  font-size: 11px;
}
#runnerDialog .runner-records span {
  font-size: 10px;
}
#runnerDialog .runner-records strong {
  font-size: 20px;
}
#runnerDialog .runner-footer button {
  font-size: 12px;
}
#runnerDialog .runner-trail {
  font-size: 9px;
}
.runner-guide {
  display: none;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--theme-line, #d6decd);
}
#runnerDialog .runner-guide {
  display: block;
}
.runner-guide summary {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.runner-guide p {
  margin: 9px 0 13px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--theme-quiet, #687e75);
}
.runner-guide > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.runner-guide div > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.runner-guide strong {
  font-size: 11px;
}
.runner-guide small {
  font-size: 9px;
  color: var(--theme-quiet, #687e75);
}
.runner-power-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
}
.runner-power-icon.magnet {
  color: #9a436a;
  background: #f8dbe7;
}
.runner-power-icon.bubble {
  color: #357c92;
  background: #d3edf1;
}
.runner-power-icon.rush {
  color: #997133;
  background: #f9e8ba;
}
#openRunnerMobile {
  display: none;
}
@media (max-width: 1099px) {
  #openRunnerMobile {
    display: flex;
  }
}
@media (max-width: 650px) {
  #runnerDialog {
    padding: 12px;
    width: min(390px, calc(100vw - 20px));
  }
  #runnerDialog #runnerBody {
    display: block;
  }
  #runnerDialog .runner-console {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  #runnerDialog #runnerCanvas {
    display: block;
    width: min(100%, calc((100dvh - 360px) * 0.72));
    height: auto;
    margin: 0 auto 10px;
  }
  #runnerDialog .runner-records {
    grid-template-columns: 1fr 1fr;
    padding-top: 6px;
    margin-top: 6px;
  }
  #runnerDialog .runner-records span {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    font-size: 8px;
  }
  #runnerDialog .runner-records strong {
    font-size: 12px;
  }
  #runnerDialog .runner-footer {
    margin-top: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #runnerControls button:active {
    transform: none;
  }
  #runnerDialog::backdrop {
    backdrop-filter: none;
  }
}
@media (max-width: 700px), (pointer: coarse) {
  #runnerDialog :is(.runner-toolbar, .runner-footer) button {
    min-height: 44px;
  }
}
