.lemonade { max-width: 54rem; margin: 0 auto 3rem; color: #192743; }
.lemonade [hidden] { display: none !important; }
.lemonade-head { margin: 1rem 0 1.5rem; }
.lemonade-head h1 { max-width: 15em; margin: .35rem 0 .55rem; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.06; }
.lemonade-intro { max-width: 45rem; margin: 0; font-size: 1.12rem; line-height: 1.55; }
.lemonade-board { overflow: hidden; border: 2px solid #24354b; border-radius: 10px 17px 13px 9px; background: #fffdf6; box-shadow: 4px 5px 0 #edcd69; }
.lemonade-board::before { content: ""; display: block; height: 1.1rem; border-bottom: 2px solid #24354b; background: repeating-linear-gradient(100deg, #ffcd46 0 2.2rem, #fff5cd 2.2rem 4.4rem); }
.lemonade-ticket, .lemonade-counter, .stand-actions { padding-inline: clamp(1rem, 3vw, 2rem); }
.lemonade-ticket { padding-top: 1rem; }
.lemonade-kicker { margin: 0 0 .15rem; color: #65521d; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lemonade-ticket h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.lemonade-ticket p:last-child { margin: .3rem 0 .95rem; max-width: 42rem; line-height: 1.5; }
.lemonade-counter { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 1.5rem; align-items: center; }
.stand-sliders { display: grid; gap: .4rem; }
.stand-control { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; align-items: center; }
.stand-control label { font-weight: 650; }
.stand-control span { font-weight: 700; color: #234ba3; font-variant-numeric: tabular-nums; }
.stand-control input { grid-column: 1 / -1; margin: 0; width: 100%; min-height: 30px; cursor: pointer; accent-color: #2754aa; }
.stand-receipt { min-width: 0; padding: .85rem 1rem; border: 1px solid #c8c0a7; background: #fff; box-shadow: 2px 3px 0 #eee7d2; }
.stand-receipt h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.stand-till { display: grid; grid-template-columns: minmax(0,1fr) 4.9rem; align-items: end; gap: .9rem; }
.stand-till dl { margin: 0; }
.stand-till dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; margin-bottom: .45rem; }
.stand-till dt { font-size: .93rem; line-height: 1.35; }
.stand-till small { display: block; color: #45566b; }
.stand-till dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.stand-till .stand-total { border-top: 1px dashed #8b8577; padding-top: .45rem; margin: 0; color: #205835; }
.stand-total dt { font-weight: 700; }
.stand-total dd { font-size: 1.45rem; }
.stand-loss .stand-total { color: #943721; }
.stand-jar { position: relative; height: 7rem; margin-top: .6rem; border: 2px solid #436876; border-radius: 18px 15px 12px 10px; background: linear-gradient(100deg,#d7edf0,#f5fbfb 40%,#e0eff0); transform: rotate(2deg); }
.stand-jar::before { position: absolute; content: ""; top: -.45rem; left: 9%; width: 82%; height: .65rem; border: 2px solid #436876; border-radius: 3px; background: #eab751; }
.stand-notes { position: absolute; inset: .4rem .28rem .3rem; }
.stand-notes span { position: absolute; left: 7%; width: 84%; height: 1.15rem; border: 2px double #638363; background: #b7d8aa; color: #1c4329; font: bold .72rem/.9rem system-ui,sans-serif; text-align: center; transform: rotate(-5deg); }
.stand-notes span:nth-child(even) { left: 2%; transform: rotate(4deg); }
.stand-notes .one { background: #e5ecc8; }
.stand-feedback { min-height: 2.3em; margin: 1.1rem clamp(1rem, 3vw, 2rem) .65rem; padding: .45rem .75rem; border-left: 3px solid #dea828; background: #fff3c6; line-height: 1.45; }
.stand-won .stand-feedback { background: #e8f4da; border-color: #47733b; }
.stand-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; padding-bottom: 1.1rem; }
.stand-reset { border: 0; background: none; padding: .6rem .2rem; color: #274d89; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.stand-print { margin: 1rem 0; }
.lemonade-talk { border-top: 1px solid #cfc8b6; margin-top: 1.6rem; padding-top: .85rem; }
.lemonade-talk h2 { font-size: 1.55rem; margin: .2rem 0; }
.lemonade-talk p { margin: .3rem 0; }
@media (max-width: 680px) {
    .lemonade-counter { grid-template-columns: 1fr; gap: .7rem; }
    .stand-sliders { gap: .15rem; }
    .stand-control input { min-height: 29px; }
    .stand-till { grid-template-columns: 1fr 4rem; gap: 1rem; }
    .stand-jar { height: 5.2rem; }
    .stand-receipt { padding: .65rem .85rem; }
    .stand-receipt h3 { margin-bottom: .25rem; }
    .stand-till dl > div { margin-bottom: .25rem; }
    .lemonade-intro { font-size: 1rem; }
}
@media print {
    .lemonade { max-width: 41rem; margin: 0; color: #000; }
    .lemonade-head { margin: 0 0 .5rem; }
    .lemonade-head h1 { font-size: 20pt; }
    .lemonade-intro, .lemonade-board::before, .stand-jar { display: none; }
    .lemonade-board { border: 1px solid #555; box-shadow: none; border-radius: 0; break-inside: avoid; }
    .lemonade-counter, .stand-till { display: block; }
    .stand-receipt { box-shadow: none; border: none; padding: .35rem 0; }
    .stand-paper-question { margin-top: 1.25rem; border-bottom: 1px solid #bbb; padding-bottom: 2.7rem; }
}
