:root{font-family:'Playpen Sans','Segoe UI',sans-serif;color:#26352d;--ink:#26352d;--green:#d8eccd;--line:#e5e8e9;--hand:'Sue Ellen Francisco','Segoe Print',cursive}*{box-sizing:border-box}html{min-height:100%;background:#fff}body{margin:0;min-width:300px;background-color:#fff;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,var(--line) 31px,var(--line) 32px);background-position:0 14px}button,textarea{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #97b9d6;outline-offset:5px}[hidden]{display:none!important}.notebook{width:min(1060px,100%);min-height:100svh;margin:auto;padding:17px 30px 8px}.hud{height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px}.round-label{font-size:14px;background:white;padding:4px 9px;border-radius:6px;color:#6c776f;letter-spacing:.5px}.round-label strong{color:var(--ink);font-size:18px;margin-left:4px}.hud nav{display:flex;align-items:center;gap:13px}.wallet{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:38px;padding:4px 15px;border:0;background:transparent;font-size:21px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.settings-button{width:36px;height:36px;border:0;background:#fff;border-radius:50%;font-size:23px;line-height:1}.settings-button:hover{background:#eef3eb}.play-area{width:100%;margin:auto;max-width:850px}.conversation{display:flex;flex-direction:column;align-items:center}.portrait{width:320px;height:220px;position:relative;display:flex;justify-content:center;align-items:flex-end;margin-top:4px}.portrait>img{width:260px;height:220px;object-fit:contain;object-position:center bottom;filter:drop-shadow(2px 3px 0 #fff);animation:customer-in .4s ease-out both}.arrival-status{position:absolute;bottom:38px;background:#fff;padding:8px 12px;border-radius:10px;font-size:14px;color:#718073;text-align:center;width:max-content;max-width:300px}.speech{width:min(650px,100%);position:relative;margin-top:10px;border:2.5px solid var(--ink);border-radius:23px 19px 25px 18px;background:white;padding:17px 22px 13px;box-shadow:4px 5px 0 #e9ede8;z-index:1}.speech:before{content:'';position:absolute;top:-12px;left:calc(50% - 11px);width:20px;height:20px;background:#fff;border-top:2.5px solid var(--ink);border-left:2.5px solid var(--ink);transform:rotate(45deg);border-radius:3px;z-index:-1}.speech-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.speech-heading>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.speech-heading strong{font-family:var(--hand);font-size:21px;font-weight:800;line-height:1.3}.customer-trait{font-size:11px;color:#819083}.turn-count{font-size:12px;color:#819083;background:#f4f7f1;border-radius:20px;padding:5px 8px;white-space:nowrap}.speech>p{font-size:19px;line-height:1.45;margin:9px 0 12px;min-height:28px}.thinking{font-size:13px;color:#70856c;margin:4px 0 10px;display:block;animation:breathe .9s ease-in-out infinite alternate}.pitch-form{border-top:1px dashed #d4dcd0;padding-top:8px}.pitch-form textarea{display:block;width:100%;resize:vertical;min-height:47px;max-height:140px;height:50px;padding:5px 1px;border:0;background:transparent;color:var(--ink);font-size:17px;line-height:1.4;outline:none}.pitch-form textarea::placeholder{color:#9aa59d}.pitch-form textarea:disabled{resize:none;opacity:1}.response-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:3px}.char-count{font-size:10px;color:#9ba69c}.respond-button,.continue-button{border:2px solid var(--ink);border-radius:12px 14px 11px 15px;background:var(--green);box-shadow:3px 3px 0 var(--ink);font-size:16px;font-weight:800;min-height:40px;padding:7px 17px;transition:transform .15s,box-shadow .15s,background .15s}.respond-button span{margin-left:11px;font-size:21px;line-height:1}.respond-button:hover:enabled,.continue-button:hover:enabled{transform:translate(-1px,-2px) rotate(-1deg);background:#c8e5b9;box-shadow:4px 5px 0 var(--ink)}.respond-button:active:enabled,.continue-button:active:enabled{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.respond-button:disabled{color:#a9b3a5;border-color:#cbd4c7;background:#f1f5ee;box-shadow:2px 2px 0 #e0e6dc}.stock-area{margin:20px auto 0;max-width:730px}.item-instruction{text-align:center;font-family:var(--hand);font-size:16px;color:#667f68;margin:0 0 12px;background:#ffffffde;width:fit-content;padding:0 8px;margin-left:auto;margin-right:auto}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;max-width:660px;margin:0 auto;align-items:start}.product-card{position:relative;min-width:0;text-align:center;background:#fff;border:2px solid #c7d1c4;border-radius:16px 19px 14px 18px;padding:12px 10px 10px;box-shadow:3px 4px 0 #e7ece4;transform:rotate(-2deg);transition:border-color .15s,box-shadow .15s,transform .15s;display:flex;flex-direction:column;align-items:center;gap:5px}.product-card:nth-child(2){transform:rotate(1.5deg)}.product-card:nth-child(3){transform:rotate(-1deg)}button.product-card:hover:enabled{transform:translateY(-7px) rotate(0);border-color:var(--ink);box-shadow:4px 7px 0 #dcebcf}button.product-card:disabled{cursor:default}.product-illustration{width:100%;height:99px;display:flex;justify-content:center;align-items:center}.item-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.product-name{font-size:15px;line-height:1.25;font-weight:800;min-height:38px;display:flex;align-items:center;justify-content:center}.product-price{font-size:16px;font-weight:800;color:#557649}.product-hint{font-size:10px;color:#9aa791;margin-top:2px;letter-spacing:.2px}.products[data-selected=true]{display:block;max-width:550px}.product-card.selected{transform:rotate(-.7deg);display:grid;grid-template-columns:114px minmax(0,1fr);grid-template-rows:auto auto auto;gap:5px 18px;text-align:left;align-items:center;padding:12px 21px 12px 13px;border-color:#749269;background:#f9fcf6;box-shadow:3px 4px 0 #e0ecd7}.selected .product-illustration{grid-column:1;grid-row:1 / span 3;height:104px}.selected .product-name{display:block;min-height:0;font-size:17px;text-align:left;padding-right:28px}.selected .product-price{text-align:left;font-size:16px}.selected .product-facts{font-size:13px;line-height:1.45;margin:0;color:#6e7c67}.selection-mark{position:absolute;top:8px;right:12px;font-size:20px;color:#729264;font-weight:800}.sold-stamp{position:absolute;right:8px;top:27px;transform:rotate(-12deg);font-family:var(--hand);font-size:20px;font-weight:900;color:#3f7f49;border:3px double #4e8b52;padding:1px 9px;border-radius:5px;background:#f8fff1ed}.stock-empty{text-align:center;color:#7c8a78;font-size:16px;margin:15px 0;background:#fff;padding:13px;border:1px dashed #c6d2c0;border-radius:14px}.result{font-family:var(--hand);font-size:23px;font-weight:800;text-align:center;margin:19px auto 15px;color:#71839a;transform:rotate(-1.4deg);width:fit-content;padding:2px 12px;background:#ffffffde}.result.buy{color:#44804f}.round-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch;width:min(480px,100%);margin:8px auto 16px}.computer-button{display:flex;align-items:center;justify-content:center;gap:10px;border:2px solid var(--ink);border-radius:16px 12px 18px 13px;box-shadow:3px 3px 0 var(--ink);background:white;padding:7px 13px;transform:rotate(-1deg);transition:transform .15s,background .15s;min-height:77px;text-align:left;font-weight:800;font-size:16px}.computer-button img{width:75px;height:59px;object-fit:contain}.computer-button small{display:block;font-size:11px;font-weight:400;color:#85937e;margin-top:4px}.computer-button:hover:enabled{background:#fff9e8;transform:rotate(0) translateY(-2px)}.continue-button{font-size:18px;display:flex;align-items:center;justify-content:center;gap:23px}.continue-button:disabled{opacity:.45;box-shadow:2px 2px 0 #9ba995}.restock-note{grid-column:1/-1;color:#788671;font-size:13px;text-align:center;margin:2px 0 0;background:#ffffffd9}.error{max-width:650px;margin:13px auto;color:#934a39;background:#fff5ed;border:1.5px solid #d8ab98;padding:10px 13px;border-radius:10px;font-size:14px;line-height:1.45}.game-footer{display:flex;justify-content:center;padding:14px 0 7px;font-size:10px;color:#a0aaa2}.game-footer span{background:white;padding:3px 7px;border-radius:5px}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{color:var(--ink);border:2.5px solid var(--ink);border-radius:19px 23px 17px 20px;background:#fff;box-shadow:6px 7px 0 #26352d33;padding:24px;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 32px)}dialog::backdrop{background:#26352d38;backdrop-filter:blur(2px)}.close-dialog{position:absolute;right:14px;top:12px;width:35px;height:35px;border:1.5px solid #bdcabb;border-radius:10px;background:#fff;font-size:26px;line-height:1}.close-dialog:hover{background:#eff5e9}.close-dialog:disabled{opacity:.4}dialog h2{font-family:var(--hand);font-size:26px;margin:0 0 12px}.small-button{background:#f2f7eb;border:1.5px solid #9caf93;border-radius:9px;padding:9px 12px;font-size:14px;color:#55724b}.small-button:hover:enabled{background:#e7f0dd}#store-dialog{width:min(780px,calc(100% - 28px));padding:0;overflow:hidden;height:min(760px,calc(100dvh - 40px))}#store-dialog[open]{display:flex;flex-direction:column}.store-header{display:flex;align-items:center;gap:17px;padding:15px 19px;background:#f5f8ef;border-bottom:2px solid var(--ink);flex-shrink:0}.store-brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.store-brand>img{width:48px;height:38px;object-fit:contain}.store-header h1{font-size:29px;letter-spacing:-1px;margin:0;color:#36553c;font-weight:900}.store-header>.wallet{font-size:20px;min-width:64px;min-height:33px;padding:3px 10px}.store-header .close-dialog{position:static;flex-shrink:0}.store-products{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 19px 10px;scrollbar-width:thin;scrollbar-color:#99b08c #f4f7ef}.store-card{display:flex;align-items:center;gap:16px;padding:12px 3px;border-bottom:1px solid #e0e6da;min-height:104px}.store-card:last-child{border-bottom:0}.store-art{width:82px;height:75px;flex-shrink:0}.store-item-heading{flex:1;min-width:0}.store-item-heading h2{font-family:inherit;font-size:18px;line-height:1.3;margin:0 0 7px}.owned-count,.retail-price{display:inline-block;font-size:12px;color:#83917b;margin-right:9px}.owned-count{background:#f0f5e7;padding:3px 6px;border-radius:5px}.retail-price{white-space:nowrap}.order-button{border:1.5px solid #517348;border-radius:9px;background:#d9eccb;padding:10px 12px;font-size:15px;min-height:43px;font-weight:800;width:126px;flex-shrink:0;box-shadow:2px 2px 0 #9cb78a}.order-button:hover:enabled{background:#c8e3b4}.order-button:disabled{background:#f2f4ed;color:#a1ac98;border-color:#d2dacb;box-shadow:none;font-size:12px;font-weight:600}.store-card.locked .store-art{opacity:.4;filter:saturate(.35)}.store-card.locked h2{color:#89947e}.store-message{flex-shrink:0;padding:10px 16px;margin:0;border-top:1px solid #ccdabc;background:#f0f9e5;color:#547449;font-size:13px;line-height:1.4}.store-message.problem{background:#fff2e9;color:#965d40;border-color:#e6c9b4}@keyframes customer-in{from{opacity:0;transform:translateY(8px) rotate(-2deg)}to{opacity:1;transform:none}}@keyframes breathe{to{opacity:.45}}@keyframes deal{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}#game[data-phase=choosing] .product-card{animation:deal .3s ease-out both}#game[data-phase=choosing] .product-card:nth-child(2){animation-delay:.06s}#game[data-phase=choosing] .product-card:nth-child(3){animation-delay:.12s}

@media(min-height:950px) and (min-width:700px){.portrait{height:270px;margin-top:14px}.portrait>img{height:270px;width:320px}.stock-area{margin-top:27px}.product-illustration{height:119px}.speech{padding:20px 25px 16px}.speech>p{font-size:21px}.pitch-form textarea{height:56px}}
@media(max-width:600px){.notebook{padding:11px 15px 7px}.hud{height:36px}.round-label{font-size:11px;padding:3px 4px}.round-label strong{font-size:16px}.hud nav{gap:9px}.wallet{min-height:32px;min-width:64px;font-size:18px;padding:3px 11px}.settings-button{width:31px;height:31px;font-size:21px}.portrait{height:178px;width:270px;margin-top:5px}.portrait>img{height:178px;width:218px}.speech{margin-top:8px;padding:13px 15px 11px;border-radius:18px 15px 20px 16px;border-width:2px;box-shadow:3px 4px 0 #e9ede8}.speech:before{border-width:2px;top:-11px}.speech-heading>div{gap:4px 8px}.speech-heading strong{font-size:19px}.customer-trait{font-size:10px}.turn-count{font-size:11px;padding:4px 6px}.speech>p{font-size:17px;line-height:1.4;margin:8px 0 10px}.pitch-form textarea{font-size:16px;height:51px;min-height:47px}.respond-button{font-size:14px;min-height:37px;padding:5px 13px}.respond-button span{font-size:19px;margin-left:7px}.stock-area{margin-top:18px}.item-instruction{font-size:14px;margin-bottom:11px}.products{gap:10px}.product-card{padding:8px 5px 8px;border-width:1.5px;border-radius:12px 15px 11px 14px;gap:4px}.product-illustration{height:75px}.product-name{font-size:12px;min-height:32px;line-height:1.25}.product-price{font-size:14px}.product-hint{font-size:9px;margin-top:0}.products[data-selected=true]{max-width:100%}.product-card.selected{grid-template-columns:90px minmax(0,1fr);gap:4px 12px;padding:11px 13px 11px 7px}.selected .product-illustration{height:99px}.selected .product-name{font-size:15px}.selected .product-price{font-size:14px}.selected .product-facts{font-size:12px;line-height:1.4}.selection-mark{font-size:18px;right:9px;top:6px}.result{font-size:20px;margin:16px auto 11px}.round-actions{gap:12px;margin:8px auto 10px}.computer-button{padding:6px 9px;gap:6px;min-height:67px;font-size:14px}.computer-button img{width:56px;height:47px}.computer-button small{font-size:10px}.continue-button{font-size:16px;gap:11px}.stock-empty{font-size:14px;margin:10px 0}.restock-note{font-size:12px}.game-footer{padding-top:12px;font-size:9px}.error{font-size:13px}.store-header{padding:12px 10px;gap:9px}.store-brand{gap:6px}.store-brand>img{width:35px;height:30px}.store-header h1{font-size:24px}.store-header>.wallet{font-size:17px;min-width:50px;padding:2px 8px}.store-header .close-dialog{width:30px;height:30px;font-size:24px}.store-products{padding:0 10px 8px}.store-card{gap:9px;min-height:91px;padding:10px 0}.store-art{width:59px;height:63px}.store-item-heading h2{font-size:14px;margin-bottom:5px}.owned-count,.retail-price{font-size:10px;margin-right:5px}.owned-count{padding:2px 4px}.order-button{width:91px;min-height:41px;font-size:13px;padding:7px 5px}.order-button:disabled{font-size:10px}.store-message{font-size:12px;padding:9px 12px}#store-dialog{width:calc(100% - 20px);height:calc(100dvh - 26px);max-height:calc(100dvh - 26px)}}
@media(min-width:650px) and (max-height:650px){.notebook{padding-top:8px}.hud{height:34px}.conversation{display:grid;grid-template-columns:190px minmax(0,1fr);gap:12px;align-items:center}.portrait{width:190px;height:190px;margin-top:0}.portrait>img{width:190px;height:190px}.speech{margin-top:4px;padding:12px 17px 10px}.speech:before{top:45px;left:-11px;transform:rotate(-45deg)}.speech>p{font-size:16px;margin:7px 0 8px}.speech-heading strong{font-size:18px}.pitch-form textarea{height:40px;min-height:40px;font-size:15px}.respond-button{min-height:33px;font-size:14px;padding:4px 12px}.stock-area{margin-top:12px}.item-instruction{font-size:13px;margin-bottom:7px}.products{max-width:570px;gap:18px}.product-card{display:grid;grid-template-columns:65px 1fr;padding:7px;gap:1px 6px;text-align:left;transform:rotate(-1deg)}.product-illustration{grid-row:1/4;height:65px}.product-name{font-size:12px;min-height:0;justify-content:flex-start}.product-price{font-size:13px}.product-hint{font-size:9px}.product-card.selected{grid-template-columns:80px 1fr;padding:8px 14px;gap:3px 12px}.selected .product-illustration{height:76px}.selected .product-name{font-size:15px}.selected .product-facts{font-size:12px}.result{font-size:18px;margin:10px auto}.round-actions{margin:5px auto;max-width:420px}.computer-button{min-height:55px;padding:4px 12px}.computer-button img{height:42px;width:52px}.computer-button,.continue-button{font-size:14px}.game-footer{padding-top:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Secondary handwriting remains large enough to read on small screens. */
.speech-heading strong{font-size:28px;font-weight:400;line-height:1.1}.customer-trait{font-family:var(--hand);font-size:20px;line-height:1.2;color:#70806f}.item-instruction{font-size:25px;line-height:1.15}.result{font-size:34px;font-weight:400}.product-hint{font-family:var(--hand);font-size:16px;line-height:1.1}.speech>p{line-height:1.5}.pitch-form textarea{line-height:1.5}.store-item-heading h2{font-size:17px}.store-header h1{font-weight:800}
@media(max-width:600px){.speech-heading strong{font-size:26px}.customer-trait{font-size:18px}.item-instruction{font-size:23px}.result{font-size:30px}.product-hint{font-size:15px}.product-name{min-height:37px;font-size:11px}.selected .product-name{font-size:14px;min-height:0}.store-item-heading h2{font-size:13px}.store-art{width:55px}.store-header h1{font-size:22px}.owned-count,.retail-price{font-size:10px}.order-button{font-size:12px}.respond-button{font-size:13px}.computer-button{font-size:13px}.continue-button{font-size:15px}}
@media(min-width:650px) and (max-height:650px){.speech-heading strong{font-size:24px}.customer-trait{font-size:18px}.item-instruction{font-size:21px}.product-hint{font-size:14px}.result{font-size:28px}}

/* Reserve the full speech layout while individual words become visible. */
.dialogue-word[data-revealed="false"]{visibility:hidden}
#settings-dialog .small-button{display:block;margin-top:14px}
