/* Lemonade Stand — the street is one canvas; under it sits the morning plan / evening ledger card. */

.lm-col { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 760px; margin: 0 auto; direction: ltr; }
.lm-scene { position: relative; flex: 1 1 auto; min-height: 150px; margin: 4px 10px 0; border-radius: 16px; overflow: hidden;
  background: var(--lapis-deep); box-shadow: 0 0 0 2px var(--hairline); }
.lm-canvas { display: block; -webkit-user-select: none; user-select: none; }

.lm-panel { flex: none; padding: 8px 14px 2px; color: var(--parchment); }
html[dir="rtl"] .lm-panel { direction: rtl; }
.lm-body { display: grid; align-items: center; }
.lm-body > * { grid-area: 1 / 1; }
.lm-body > .is-off { visibility: hidden; }

.lm-pips { display: flex; justify-content: center; gap: 7px; direction: ltr; }
.lm-pips i { width: 26px; height: 7px; border-radius: 4px; background: rgba(255, 241, 214, 0.16); }
.lm-pips i.is-up { background: var(--w-grass); }
.lm-pips i.is-down { background: var(--w-red); }
.lm-pips i.is-now { background: var(--gold); box-shadow: 0 0 0 2px rgba(255, 196, 61, 0.25); }

.lm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 2px 6px; }
.lm-head b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--gold); }
.lm-head span { font-weight: 700; color: var(--parchment); text-align: end; }

.lm-plan { display: grid; gap: 7px; }
.lm-step { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; border-radius: 14px;
  background: var(--lapis-raise); box-shadow: inset 0 0 0 1px var(--hairline); }
html[dir="rtl"] .lm-step { padding: 5px 14px 5px 6px; }
.lm-step__label { flex: 1; font-weight: 700; color: var(--mist); }
.lm-step__val { min-width: 4.6em; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--parchment); }
.lm-pm { width: 50px; height: 46px; border: 0; border-radius: 12px; background: var(--gold); color: var(--w-navy);
  font: 800 1.7rem/1 inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lm-pm:active { transform: scale(0.93); background: var(--gold-soft); }
.lm-pm:focus-visible { outline: 3px solid var(--parchment); outline-offset: 2px; }
.lm-note { margin: 0; min-height: 2.5em; font-size: 0.86rem; line-height: 1.25; color: var(--mist); text-align: center; }

.lm-report { display: grid; gap: 8px; }
.lm-line { margin: 0; min-height: 2.7em; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--parchment); }
.lm-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lm-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px;
  background: var(--lapis-raise); box-shadow: inset 0 0 0 1px var(--hairline); }
.lm-cell span { font-size: 0.72rem; font-weight: 700; color: var(--mist); }
.lm-cell b { font-size: 0.98rem; white-space: nowrap; }
.lm-cell b.is-up { color: #7FD996; }
.lm-cell b.is-down { color: #FF8A8C; }

.lm-main { min-width: min(300px, 86vw); }

@media (max-height: 620px) {
  .lm-panel { padding-top: 5px; }
  .lm-head { margin: 5px 2px 4px; }
  .lm-head b { font-size: 1rem; }
  .lm-plan { gap: 5px; }
  .lm-pm { height: 42px; }
  .lm-note { font-size: 0.8rem; min-height: 0; }
  .lm-line { font-size: 0.94rem; }
  body[data-game="lemonade"] .kit-start .fa-panel { padding: 14px 18px; }
  body[data-game="lemonade"] .kit-start .fa-panel__art { margin: 0 0 6px; }
  body[data-game="lemonade"] .kit-start .kit-art { max-width: 104px; border-radius: 12px; }
  body[data-game="lemonade"] .kit-start .fa-panel__title { margin: 2px 0 4px; font-size: 1.5rem; }
  body[data-game="lemonade"] .kit-start .fa-panel__text { margin-bottom: 10px; font-size: 0.88rem; line-height: 1.35; }
  body[data-game="lemonade"] .kit-start .fa-panel__body { margin-bottom: 12px; }
  body[data-game="lemonade"] .kit-start .fa-howto { gap: 5px; margin: 0; font-size: 0.86rem; line-height: 1.3; }
}
/* Landscape phones and wide, short windows: street on the left, plan on the right. */
@media (orientation: landscape) and (max-height: 520px) {
  .lm-col { flex-direction: row; max-width: none; align-items: center; }
  .lm-scene { height: calc(100% - 8px); margin: 4px 0 4px 10px; }
  .lm-panel { width: 46%; max-width: 380px; }
}
@media (max-width: 480px) {
  body[data-game="lemonade"] .fa-bar { gap: 6px; }
  body[data-game="lemonade"] .fa-title { font-size: 0.98rem; }
  body[data-game="lemonade"] .fa-chip { min-width: 0; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 360px) {
  body[data-game="lemonade"] .fa-bar { gap: 5px; }
  body[data-game="lemonade"] .fa-title { font-size: 0.78rem; }
  .lm-cell b { font-size: 0.86rem; }
}
