body.pooh-game { background:#e8f0df; color:#34594b; }
.pooh-game > header,.pooh-game > footer { display:none; }
.pooh-game #app { width:min(1100px,100%); max-width:1100px; min-height:100dvh; margin:auto; padding:0 18px 18px; background:#fffdf3; }
.wp-shell { font-family:Library,'Trebuchet MS',sans-serif; letter-spacing:0; }
.wp-shell * { box-sizing:border-box; }
.wp-shell button,.wp-shell input,.wp-shell a { font:inherit; }
.wp-shell button,.wp-shell .button { min-width:48px; min-height:48px; padding:10px 14px; border-radius:8px; font-weight:800; line-height:1.2; cursor:pointer; }
.wp-shell button:disabled { opacity:.7; cursor:default; }
.wp-shell :focus-visible { outline:3px solid #a376a4; outline-offset:3px; }
.wp-primary { background:#377f74; color:white; border:2px solid #28685e; box-shadow:0 3px 0 #2a6157; }
.wp-primary:hover { background:#286d63; }
.wp-secondary { background:#fffdf5; color:#41674f; border:1px solid #b0c4a7; text-decoration:none; }
.wp-secondary:hover { background:#eef4e1; }
.wp-toolbar { display:flex; align-items:center; gap:9px; padding:8px 0; border-bottom:1px solid #d7dfc6; }
.wp-toolbar > div { flex:1; min-width:0; }
.wp-toolbar h1 { font:800 18px/1.2 Library,'Trebuchet MS',sans-serif; margin:0 0 3px; }
.wp-toolbar span { font-size:12px; }
.wp-toolbar > a { font-size:14px; white-space:nowrap; }
.wp-sound { width:48px; padding:4px!important; font-size:24px!important; }
.wp-effects { display:flex; gap:5px; align-items:center; font-size:12px; min-height:48px; }
.wp-effects input { width:18px; height:18px; accent-color:#377f74; }
.wp-workplaces { display:flex; justify-content:center; gap:24px; margin:5px 0 0; }
.wp-workplaces > span { font-size:13px; padding:5px 8px; border-bottom:3px solid transparent; color:#85927d; }
.wp-workplaces .wp-active-place { border-color:#d0b15b; color:#4b6d51; font-weight:800; }
.wp-heading { display:flex; align-items:baseline; gap:12px; margin:8px 0 7px; }
.wp-heading > span { font-size:12px; font-weight:800; color:#92738d; }
.wp-heading h2 { font-size:24px; line-height:1.25; margin:0; }
.wp-condition { min-height:63px; display:flex; align-items:center; padding:9px 13px; background:#faf1d9; border-left:4px solid #d6b75f; font-size:17px; font-weight:700; line-height:1.4; margin:0 0 9px; }
.wp-workspace { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:18px; min-height:340px; align-items:start; }
.wp-workspace > * { min-width:0; }
.wp-scene-top { display:flex; align-items:center; gap:8px; height:66px; background:#eff4e2; border-bottom:1px solid #e0e6cf; }
.wp-scene-top > div:first-child { flex:1; height:60px; min-width:0; }
.wp-pantry { display:block; width:100%; height:100%; }
.wp-friends { display:flex; align-items:flex-end; justify-content:center; height:66px; width:125px; flex-shrink:0; }
.wp-friends .wp-pooh { width:66px; height:66px; }
.wp-friends .wp-piglet { width:48px; height:62px; }
.wp-pan-labels { display:grid; grid-template-columns:1fr 1fr; text-align:center; align-items:center; gap:12px; min-height:38px; padding:4px 3px; }
.wp-pan-labels > strong { font-size:18px; }
.wp-pan-labels > span { font-size:13px; color:#72836c; font-weight:700; }
.wp-scale,.wp-vessel { display:block; width:100%; height:244px; background:#fffaf0; }
.wp-scale text,.wp-vessel text { font-family:Library,'Trebuchet MS',sans-serif; }
.wp-vessel-caption { min-height:38px; padding:6px 4px; text-align:center; font-size:16px; font-weight:700; }
.wp-desk { display:flex; flex-direction:column; gap:10px; min-width:0; }
.wp-stock h3,.wp-installed h3,.wp-history h3 { font-size:14px; margin:0 0 6px; }
.wp-stock > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.wp-stock-item { display:flex!important; flex-direction:column; align-items:center; justify-content:center; gap:0!important; padding:3px!important; height:85px; background:#eef4e6; border:2px solid #b9ceb0; color:#3d6150; }
.wp-stock-item .wp-weight-icon { width:50px; height:50px; }
.wp-stock-item .wp-cup-icon { width:55px; height:50px; }
.wp-stock-item strong { font-size:20px; }
.wp-stock > p { font-size:11px; margin:4px 0 0; color:#78876f; }
.wp-selected { background:#fff1bd!important; border-color:#bd9e4e!important; box-shadow:inset 0 0 0 1px #bd9e4e; }
.wp-installed > div { display:grid; grid-template-columns:repeat(5,minmax(48px,1fr)); gap:5px; }
.wp-installed-weight { display:flex!important; flex-direction:column; align-items:center; justify-content:center; gap:0!important; height:56px; padding:0 3px!important; background:#f1f5ed; border:1px solid #b7c9b6; color:#426457; }
.wp-installed-weight .wp-weight-icon { width:32px; height:30px; }
.wp-installed-weight strong { font-size:15px; }
.wp-empty-pan { grid-column:1/-1; min-height:56px; display:flex; align-items:center; justify-content:center; border:1px dashed #c0cfb8; color:#89957e; font-size:13px; }
.wp-keypad { display:grid; grid-template-columns:repeat(4,48px); gap:5px; justify-content:center; width:100%; }
.wp-key { width:48px; height:48px; padding:3px!important; font-size:22px!important; border:1px solid #a9bfaa; background:#fffdf6; color:#43644f; }
.wp-key:hover { background:#e9f1dd; }
.wp-pour-controls { display:flex; justify-content:center; align-items:center; gap:8px; }
.wp-pour-controls > .wp-primary { flex:1; }
.wp-undo { width:48px; padding:4px!important; font-size:28px!important; }
.wp-history > div { display:flex; align-items:center; flex-wrap:wrap; gap:5px; font-size:16px; color:#6d7e68; }
.wp-history span { padding:3px 7px; background:#e5efdc; color:#3d6752; border-bottom:2px solid #b5cda8; font-weight:800; }
.wp-history i { font-style:normal; }
.wp-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.wp-facts > div { display:flex; flex-direction:column; justify-content:center; text-align:center; background:#edf3e3; padding:8px; border-bottom:2px solid #b7cfa8; }
.wp-facts > div:nth-child(2) { background:#e4f0f1; border-color:#a0c1c4; }
.wp-facts span { font-size:13px; }
.wp-facts strong { font-size:27px; }
.wp-thanks { display:flex; flex-direction:column; align-items:center; text-align:center; justify-content:center; min-height:245px; }
.wp-thanks .wp-pooh { width:155px; height:215px; }
.wp-thanks > strong { font-size:17px; }
.wp-small-thanks { min-height:150px; }
.wp-small-thanks .wp-piglet { width:100px; height:150px; }
.wp-feedback { display:flex; align-items:center; min-height:80px; padding:10px 14px; margin:8px 0; background:#e8f1df; border-left:4px solid #8daf83; font-size:16px; line-height:1.4; }
.wp-controls { display:flex; align-items:center; gap:12px; border-top:1px solid #dbe3cb; padding-top:8px; min-height:72px; }
.wp-main-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; flex:1; min-width:0; }
.wp-tools { display:flex; flex-wrap:wrap; gap:6px; max-width:270px; flex-shrink:0; }
.wp-tools button { font-size:13px; }
.wp-answer-form { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.wp-answer-form > label { display:flex; align-items:center; gap:8px; font-size:21px; }
.wp-answer-form input { width:70px; height:52px; border:2px solid #87a98c; border-radius:6px; background:white; color:#365e4d; padding:4px; font-size:27px; font-weight:800; text-align:center; }
.wp-wait { font-weight:700; color:#718568; font-size:16px; }
.wp-intro { padding:22px 0 12px; text-align:center; }
.wp-intro > span { font-size:14px; font-weight:800; color:#927095; }
.wp-intro h2 { font-size:34px; margin:10px 0; line-height:1.25; }
.wp-intro p { max-width:650px; line-height:1.5; margin:12px auto 16px; }
.wp-intro .wp-cover-image { display:block; width:min(100%,660px); height:auto; aspect-ratio:3/2; object-fit:contain; margin:20px auto 0; border-radius:8px; }
.wp-intro > p:last-child { font-size:13px; font-weight:800; }
.wp-cover-image { width:100%; height:100%; object-fit:cover; }
.wp-help { width:calc(100% - 30px); max-width:640px; border:2px solid #b6c7aa; border-radius:8px; padding:24px; background:#fffdf4; color:#395b4a; line-height:1.6; }
.wp-help::backdrop { background:#234a3666; }
.wp-finish { text-align:center; padding:18px 0; }
.wp-finish h2 { font-size:30px; margin:8px 0; }
.wp-finish > p { margin:6px 0 16px; }
.wp-celebration { position:relative; height:265px; background:#eef3df; }
.wp-celebration > div { display:flex; align-items:flex-end; justify-content:center; gap:18px; position:absolute; inset:auto 0 0; }
.wp-celebration .wp-pooh { width:160px; height:210px; }
.wp-celebration .wp-piglet { width:100px; height:170px; }
.wp-celebration > div > svg:not(.wp-pooh):not(.wp-piglet) { width:180px; height:125px; }
.wp-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin:18px 0; }
.wp-stats > div { display:flex; align-items:center; text-align:left; gap:12px; padding:10px; border-top:2px solid #d1c1db; }
.wp-stats strong { font-size:36px; color:#527c50; }
.wp-stats span { font-size:14px; }
.wp-finish-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.wp-finish details { text-align:left; padding:14px 0; border-bottom:1px solid #d7e0c9; }
.wp-finish summary { font-weight:800; min-height:30px; cursor:pointer; }
.wp-bonus-options { display:flex; flex-wrap:wrap; gap:10px; }
@keyframes wp-weight-in { from { transform:translateY(-28px); opacity:.2; } to { transform:translateY(0); opacity:1; } }
@keyframes wp-fill { from { y:var(--from-y); height:var(--from-height); } to { y:var(--to-y); height:var(--to-height); } }
@keyframes wp-store { from { transform:translate(var(--store-x),var(--store-y)); } to { transform:translate(0,0); } }
@keyframes wp-wave { 50% { transform:rotate(-4deg) translateY(-5px); } }
.wp-weight-arrival { animation:wp-weight-in .22s ease both; }
.wp-fluid-moving { animation:wp-fill .22s ease both; }
.wp-stored-object { animation:wp-store .6s ease both; }
.wp-happy { animation:wp-wave .7s ease 3; transform-origin:center bottom; }
.wp-paused * { animation:none!important; }
@media (min-width:801px) and (max-height:760px) {
  .wp-toolbar { padding:5px 0; }
  .wp-heading { margin:5px 0; }
  .wp-condition { min-height:57px; padding:7px 11px; margin-bottom:6px; }
  .wp-workspace { min-height:306px; }
  .wp-scene-top { height:55px; }
  .wp-scene-top > div:first-child { height:50px; }
  .wp-friends { height:55px; }
  .wp-friends .wp-pooh,.wp-friends .wp-piglet { height:55px; }
  .wp-scale,.wp-vessel { height:215px; }
  .wp-stock-item { height:78px; }
  .wp-stock-item .wp-weight-icon,.wp-stock-item .wp-cup-icon { height:44px; }
  .wp-feedback { min-height:78px; margin:6px 0; }
}
@media (max-width:1000px) {
  .wp-toolbar { flex-wrap:wrap; }
  .wp-toolbar h1 { font-size:16px; }
  .wp-workspace { grid-template-columns:minmax(0,1fr) 275px; gap:12px; }
  .wp-installed > div { grid-template-columns:repeat(5,minmax(48px,1fr)); gap:3px; }
  .wp-pan-labels > strong { font-size:16px; }
}
@media (max-width:800px) {
  .pooh-game #app { padding:0 12px 18px; }
  .wp-toolbar > div { flex-basis:100%; order:-1; padding:4px 0; }
  .wp-toolbar > a { flex:1; }
  .wp-heading { flex-wrap:wrap; gap:4px 10px; }
  .wp-heading > span { flex-basis:100%; }
  .wp-heading h2 { font-size:22px; }
  .wp-workspace { display:flex; flex-direction:column; min-height:0; }
  .wp-main-scene,.wp-desk { width:100%; }
  .wp-desk { max-width:420px; margin:auto; }
  .wp-installed > div { grid-template-columns:repeat(5,minmax(48px,1fr)); gap:5px; }
  .wp-controls { flex-direction:column; align-items:stretch; }
  .wp-main-controls { justify-content:center; }
  .wp-tools { max-width:none; justify-content:center; }
  .wp-tools button { flex:1; }
  .wp-feedback { min-height:100px; }
  .wp-answer-form { justify-content:center; }
  .wp-stats { grid-template-columns:1fr; gap:0; }
  .wp-intro h2 { font-size:28px; }
}
@media (max-width:600px) {
  .wp-workplaces { gap:8px; }
  .wp-workplaces > span { text-align:center; font-size:12px; padding:5px 2px; flex:1; }
  .wp-scene-top { height:60px; }
  .wp-friends { width:105px; }
  .wp-scale,.wp-vessel { height:auto; aspect-ratio:400/320; }
  .wp-pan-labels { min-height:58px; gap:6px; }
  .wp-pan-labels > strong { font-size:17px; }
  .wp-vessel-caption { min-height:48px; font-size:16px; }
  .wp-condition { padding:10px; font-size:17px; }
  .wp-installed > div { grid-template-columns:repeat(4,minmax(48px,1fr)); }
  .wp-feedback { min-height:140px; }
  .wp-answer-form { flex-direction:column; align-items:stretch; width:100%; }
  .wp-answer-form > label { justify-content:center; font-size:19px; gap:6px; }
  .wp-answer-form > button { width:100%; }
  .wp-celebration { height:235px; }
  .wp-celebration > div { gap:5px; }
  .wp-celebration .wp-pooh { width:31%; height:175px; }
  .wp-celebration .wp-piglet { width:22%; height:140px; }
  .wp-celebration > div > svg:not(.wp-pooh):not(.wp-piglet) { width:40%; height:100px; }
  .wp-bonus-options { flex-direction:column; }
  .wp-bonus-options button { width:100%; }
}
@media (prefers-reduced-motion:reduce) { .wp-shell * { animation:none!important; scroll-behavior:auto!important; } }
