.picnic-brief, .picnic-map {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #294c52;
}
#dialog:has(.picnic-brief), #dialog:has(.picnic-map) {
  width: min(94vw, 740px, calc(100% - var(--phone-left, 0px) - var(--phone-right, 0px)));
}
#dialog:is([data-kind="picnic-brief"], [data-kind="picnic-chart"]) .dialog-close {
  min-width: 44px; min-height: 44px;
}
.picnic-plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  min-height: 136px;
  aspect-ratio: 2.05;
  border: 1px solid #486074;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 87% 14%, #ffdf9b77, transparent 48%),
    linear-gradient(165deg, #44677e 0%, #678f98 51%, #d2c097 100%);
  box-shadow: inset 0 1px #ebf7e283;
}
.picnic-plate-art, .picnic-plate-art i { position: absolute; display: block; }
.picnic-plate-art { inset: 0; }
.picnic-plate-art::before {
  position: absolute;
  inset: 22% -2% -2%;
  content: "";
  background: linear-gradient(180deg, #b4c9b7, #769e99);
  clip-path: polygon(0 48%,7% 48%,7% 42%,18% 42%,18% 46%,25% 46%,25% 65%,33% 65%,33% 54%,41% 54%,41% 61%,48% 61%,48% 49%,54% 49%,54% 47%,61% 47%,61% 58%,72% 58%,72% 45%,78% 45%,78% 41%,85% 41%,85% 48%,93% 48%,93% 38%,100% 38%,100% 100%,0 100%);
}
.picnic-cloud {
  left: 49%; top: 11%; width: 22%; height: 13%;
  opacity: .82; background: #e2e6d5;
  clip-path: polygon(0 58%,20% 58%,20% 27%,36% 27%,36% 8%,59% 8%,59% 39%,78% 39%,78% 51%,100% 51%,100% 77%,68% 77%,68% 91%,14% 91%,14% 77%,0 77%);
}
.picnic-cloud.far { top: 46%; left: 2%; width: 20%; opacity: .48; }
.picnic-mesa {
  left: -8%; bottom: -3%; width: 40%; height: 28%; background: #5f8584;
  clip-path: polygon(0 16%,43% 16%,43% 6%,58% 6%,58% 15%,83% 15%,83% 23%,100% 23%,100% 41%,88% 41%,88% 57%,71% 57%,71% 72%,53% 72%,53% 100%,0 100%);
}
.picnic-wing {
  left: 12%; top: 12%; width: 31%; height: 24%; transform: rotate(4deg);
  filter: drop-shadow(1px 2px 0 #325462);
}
.picnic-wing::before, .picnic-wing::after, .picnic-pilot::before {
  position: absolute; content: ""; display: block;
}
.picnic-wing::before {
  inset: 0; background: linear-gradient(147deg, #fff2c0 0 26%, #dfab62 26% 38%, #f7d48f 38% 46%, #72a6ad 46% 56%, #f2d295 56% 67%, #fff1bf 67%);
  clip-path: polygon(0 23%,12% 23%,12% 19%,30% 19%,30% 15%,52% 15%,52% 10%,70% 10%,70% 5%,100% 5%,100% 16%,90% 16%,90% 30%,80% 30%,80% 39%,68% 39%,68% 51%,58% 51%,58% 62%,47% 62%,47% 55%,24% 45%,24% 41%,10% 34%,0 34%);
}
.picnic-wing::after { left: 46%; top: 40%; height: 33%; width: 10%; transform: skewX(-16deg); background: #3f6371; }
.picnic-pilot {
  left: 25%; top: 28%; height: 9%; width: 3%; transform: rotate(5deg);
  background: #a75a49; box-shadow: 2px 2px #344e5b;
}
.picnic-pilot::before { top: -26%; left: 29%; width: 78%; aspect-ratio: 1; background: #f6d5a4; box-shadow: inset 0 2px #584e47; }
.picnic-course-dot {
  left: var(--dot-x); top: var(--dot-y); width: 3px; height: 3px;
  border-radius: 50%; background: #fff4c4; box-shadow: 0 1px #34596b;
}
.picnic-receiver {
  right: 2%; bottom: -5%; width: 48%; height: 52%;
  background: linear-gradient(161deg, #b5c797 0 26%, #658e7c 27% 41%, #c0ac87 42% 47%, #688784 48% 62%, #527275 63%);
  clip-path: polygon(0 25%,68% 7%,100% 21%,100% 49%,86% 53%,86% 69%,67% 75%,67% 88%,45% 96%,45% 83%,24% 74%,24% 63%,9% 55%,9% 44%,0 40%);
}
.picnic-blanket {
  left: 64%; top: 56%; width: 21%; height: 15%;
  transform: rotate(-12deg) skewX(46deg) scaleY(.69);
  border: 2px solid #fce3ae; outline: 1px solid #765647;
  background: conic-gradient(#eb8b72 0 25%,#fff0c7 0 50%,#eb8b72 0 75%,#fff0c7 0) 0 0 / 10px 10px;
  box-shadow: 2px 2px #72937e;
}
.picnic-pinflag {
  left: 82%; top: 44%; width: 2px; height: 19%; background: #344b52;
}
.picnic-pinflag::after {
  position: absolute; inset: 0 auto auto 2px; width: 16px; height: 8px; content: "";
  background: #ffe39a; clip-path: polygon(0 0, 100% 23%, 73% 55%, 100% 86%, 0 100%);
}
.picnic-hamper {
  display: inline-block; position: relative; width: 14px; height: 9px; flex: none;
  border: 1px solid #493e3b; border-top: 2px solid #fff0c0; border-radius: 1px 1px 3px 3px;
  background: repeating-linear-gradient(90deg, #dca967 0 2px, #a7744e 2px 3px);
}
.picnic-hamper::before {
  position: absolute; content: ""; left: 20%; top: -7px; width: 60%; height: 6px;
  box-sizing: border-box; border: 1.5px solid #f9d99b; border-bottom: 0; border-radius: 5px 5px 0 0;
}
.picnic-plate-art .picnic-hamper { left: 49%; top: 39%; width: 20px; height: 13px; transform: rotate(8deg); }
.picnic-plate figcaption {
  position: absolute; inset: auto auto 7px 8px; padding: 3px 7px; border: 1px solid #dee2cd70;
  border-radius: 4px; background: #274451e8; color: #fff3d4; font-size: 11px; font-weight: 750;
}
.picnic-brief-notes { display: grid; align-content: center; gap: 9px; }
.picnic-brief-notes section { border-inline-start: 3px solid #a88650; padding-left: 9px; }
.picnic-brief-notes section:nth-child(2) { border-color: #649288; }
.picnic-brief-notes strong { color: #354d53; font-size: 14px; }
.dialog-content .picnic-brief-notes p, .dialog-content .picnic-foot {
  color: #4f6060; font-size: 12px; line-height: 1.45; margin: 2px 0 0;
}
.dialog-content .picnic-foot { grid-column: 1 / -1; margin: 0; }
.picnic-foot b { color: #7f5336; }
.picnic-direct-key { color: #79511d; }
.picnic-chute-key { color: #226575; }
.picnic-map { align-items: start; }
.picnic-map figure { min-width: 0; margin: 0; }
.picnic-map canvas { display: block; width: 100%; height: auto; border: 1px solid #4a6870; border-radius: 9px; }
.picnic-map figcaption { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 4px; color: #4c6164; font-size: 11px; font-weight: 690; }
.picnic-site-list { display: grid; gap: 5px; }
.picnic-site {
  --cloth: #e6ad79;
  display: grid; align-items: center; grid-template-columns: 22px minmax(0,1fr) auto;
  min-width: 0; min-height: 44px; gap: 7px; width: 100%; text-align: left;
  padding: 5px 8px; border: 1px solid #a5aca0; border-radius: 7px; background: #fbf7e9; color: #364f55;
}
.picnic-site[aria-pressed="true"] { border-color: #4b7268; box-shadow: inset 3px 0 #528c7c; background: #e5f0df; }
.picnic-site:not(:disabled):hover, .picnic-site:focus-visible { outline: 2px solid #567c75; outline-offset: -2px; }
.picnic-site:disabled { background: #efece1; color: #526162; cursor: default; }
.picnic-swatch {
  display: inline-block; width: 18px; height: 16px; transform: skewY(-9deg);
  background: conic-gradient(var(--cloth) 0 25%, #fff2d4 0 50%, var(--cloth) 0 75%, #fff2d4 0) center / 8px 8px;
  border: 1px solid #79776c; border-bottom: 3px solid var(--cloth); border-radius: 1px;
}
.picnic-site-text { display: grid; gap: 2px; line-height: 1.25; }
.picnic-site-text strong { font-size: 13px; }
.picnic-site-text small { font-size: 10px; font-weight: 680; color: #5b6662; }
.picnic-site-state { color: #476959; font-size: 11px; font-weight: 800; white-space: nowrap; }
.picnic-flight-strip {
  display: inline-flex; align-items: center; max-width: 100%; gap: 8px; min-height: 27px; padding: 3px 8px;
  border: 1px solid #aabdaf; border-radius: 6px; background: #243e49f5; color: #f8f3dd;
  font: 740 12px/1.2 system-ui,sans-serif; box-shadow: 0 2px #20364270;
}
.picnic-flight-stock { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.picnic-flight-stock .picnic-hamper { margin-top: 3px; }
.picnic-flight-stock b { font-size: 13px; color: #ffe1a1; font-variant-numeric: tabular-nums; }
.picnic-flight-cue { display: flex; align-items: center; gap: 4px; border-inline-start: 1px solid #93a49c80; padding-left: 7px; }
.picnic-flight-wind { display: inline-flex; gap: 4px; align-items: center; font-size: 10px; font-weight: 700; color: #cbe6de; }
.picnic-flight-wind i {
  display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px;
  border-radius: 50%; background: #42666a; color: #fff1ce; font: 900 12px/1 system-ui,sans-serif;
}
.picnic-flight-lamp { flex: none; width: 7px; height: 7px; border: 1px solid #e2d7ba; transform: rotate(45deg); }
.picnic-flight-strip[data-state="aligned"] .picnic-flight-lamp,
.picnic-flight-strip[data-state="hit"] .picnic-flight-lamp { background: #a7e8b5; border-color: #d8ffd1; }
.picnic-flight-strip[data-state="drift"] .picnic-flight-lamp { border-style: dashed; border-color: #ffd496; }
.picnic-flight-strip[data-state="falling"] .picnic-flight-lamp { border-radius: 50%; border-width: 2px; border-color: #f4d8a4; }
.picnic-flight-strip[data-state="canopy"] .picnic-flight-lamp { background: #8edaf4; border-color: #ddf8ff; }
.picnic-flight-options { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; white-space: nowrap; }
.picnic-flight-options[hidden], .picnic-flight-strip:has(.picnic-flight-options:not([hidden])) .picnic-flight-cue { display: none; }
.picnic-flight-options > span { display: inline-flex; align-items: center; gap: 5px; }
.picnic-direct-option { color: #ffdf9c; }
.picnic-chute-option { color: #a9e9ff; }
.picnic-direct-option i {
  width: 9px; height: 9px;
  background: linear-gradient(currentColor,currentColor) center / 2px 100% no-repeat,
              linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat;
}
.picnic-chute-option i { width: 7px; height: 7px; border: 1.5px solid currentColor; transform: rotate(45deg); }
#race .touch-jump[data-picnic-ready] {
  --control-face: #ffdc9b; --control-down: #eabc7a; --control-edge: #78532e;
}
#race .touch-jump[data-picnic-ready][data-picnic-chute] {
  --control-face: #b6ecff; --control-down: #83cbe9; --control-edge: #376479;
}
#race .touch-jump[data-picnic-blocked] {
  --control-face: #d9d9cb; --control-down: #c8c9be; --control-edge: #626558;
  border-style: dashed;
}
@media (orientation: landscape) and (max-height: 450px) {
  #dialog:has(.picnic-brief) .dialog-content, #dialog:has(.picnic-map) .dialog-content { padding: 10px 16px; }
  #dialog:has(.picnic-brief) h2, #dialog:has(.picnic-map) h2 { margin-bottom: 5px; font-size: 25px; }
  #dialog:has(.picnic-brief) .dialog-actions, #dialog:has(.picnic-map) .dialog-actions { margin-top: 6px; }
  .picnic-brief, .picnic-map { gap: 6px 12px; }
  .picnic-plate { min-height: 94px; aspect-ratio: 2.6; }
  .picnic-brief-notes { gap: 5px; }
  .picnic-map figure { max-width: 277px; justify-self: center; width: 100%; }
  .picnic-site-list { gap: 3px; }
  .picnic-flight-strip { font-size: 11px; gap: 6px; padding-block: 2px; }
}
@media (orientation: portrait) and (max-width: 560px) {
  .picnic-brief, .picnic-map { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .picnic-plate { min-height: 0; aspect-ratio: 2.65; }
  .picnic-brief-notes { gap: 6px; }
  .picnic-map figure { max-width: 350px; justify-self: center; width: 100%; }
}
