body.play-screen #panel :is(.first-delivery,.neighbor-request) {
  color: var(--ui-ink);
  font-size: 15px;
  line-height: 1.4;

  & > header { display: block; position: static; padding: 0; border: 0; }
  & h3 { margin: 0; font-size: 19px; }
  & button { min-width: 44px; min-height: 44px; white-space: normal; }
  & :is(button, select, .delivery-status):focus-visible {
    outline: 2px solid #65428b;
    outline-offset: 2px;
  }

  & .delivery-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fff0d9;
  }

  & .delivery-greeting > canvas {
    flex: none;
    width: 68px;
    height: 76px;
    border-radius: 8px;
    background: #eee3f4;
  }

  & .delivery-greeting strong { font-size: 20px; font-weight: 900; }
  & .delivery-greeting p { margin: 2px 0 6px; }
  & .delivery-rewards { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  & .delivery-rewards span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
  & .delivery-rewards img { width: 18px; height: 18px; object-fit: contain; }

  & .delivery-request {
    margin-block: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #eee6f6;
  }

  & .delivery-request > p:first-child {
    margin: 0;
    color: var(--ui-ink);
    font-size: clamp(18px, 4vw, 23px);
    font-weight: 800;
  }

  & .delivery-meaning { margin: 0 0 4px; }
  & .delivery-request small { display: block; line-height: 1.3; }
  & .delivery-request .delivery-actions { margin-block: 8px; }

  & .delivery-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
  }

  & .delivery-products legend { margin-bottom: 6px; padding: 0; font-weight: 900; }

  & .delivery-products label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 44px;
    padding: 9px 4px 7px;
    border: 1px solid #d1bade;
    border-radius: 8px;
    background: #f1e7f6;
    box-shadow: 0 2px #d1bade;
    cursor: pointer;
    text-align: center;
    overflow-wrap: anywhere;
  }

  & .delivery-products label:has(:checked) {
    border-color: #8663a4;
    background: #e4d0ef;
    box-shadow: inset 0 0 0 1px #8663a4, 0 2px #8663a4;
  }

  & .delivery-products label:has(:focus-visible) { outline: 2px solid #65428b; outline-offset: 2px; }
  & .delivery-products input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  & .delivery-products canvas { width: clamp(40px, 12vw, 55px); height: auto; image-rendering: pixelated; }
  & .delivery-products strong { font-size: 14px; }

  & .delivery-quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-weight: 900;
  }

  & .delivery-quantity select {
    appearance: none;
    width: min(100%, 230px);
    min-height: 44px;
    padding: 6px 32px 6px 10px;
    border: 1px solid #ad8ec4;
    border-radius: 8px;
    background: #fff4e3 url("ui/chevron-down.svg") center right 12px / 12px no-repeat;
    color: var(--ui-ink);
    font: inherit;
  }

  & .delivery-status {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1e7f6;
  }

  & .delivery-status[data-basket-state="ready"] { background: #edf5dd; color: #38542a; }
  & .delivery-status[data-basket-state="notice"] { background: #ffeadc; color: #713833; }
  & .delivery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
  & .delivery-actions button { padding: 6px 12px; line-height: 1.2; }

  & button:is([data-delivery-check]:not(.quiet),[data-delivery-learn],[data-neighbor-check]:not(.quiet),[data-neighbor-next]) {
    border-color: #ba6574;
    background: #ff9684;
    box-shadow: 0 2px #b76378;
  }

  & .delivery-recovery { margin-top: 12px; padding-top: 8px; border-top: 1px solid #e3c8b9; }
  & .delivery-history { display: grid; gap: 6px; margin: 10px 0; }
  & .delivery-history p, & .delivery-hints p { margin: 0; }
  & .delivery-history p { padding: 7px 10px; border-radius: 8px; background: #edf5dd; }
  & .delivery-hints { display: grid; gap: 4px; margin: 0 0 7px; }
  & .delivery-stock { margin: 8px 0 0; font-size: 13px; }
}

body.play-screen .village-progression {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 8px;
  margin-block: 12px 16px;
}

body.play-screen .village-progression aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3c8b9;
  border-radius: 10px;
  background: #fff0d9;
}

body.play-screen .village-progression aside > button { min-width: 44px; min-height: 44px; white-space: normal; }
body.play-screen .village-progression aside > button:only-child { margin-top: auto; }
