/* Static pond scenery; no animation, filters or per-frame work. */
#app{isolation:isolate;background:#b7d8cf url('/pond-surround.svg?v=20261003b') center bottom/cover no-repeat;background-color:#b7d8cf;background-image:url('/pond-surround.svg?v=20261003b'),linear-gradient(#b5dbe0,#dbe7be 65%,#83bcb8)}
#hud{position:relative;background:#f5f2dc;border-color:#8ba88a;color:#294d48;box-shadow:0 3px 0 #537e6840,inset 0 1px #fff;border-radius:17px 17px 12px 12px}
#hud .hud-location{position:relative;padding-right:100px;background:#e5ecd3;border-left-color:#6b9d72;color:#294d48}
#hud .hud-location::after{content:'';position:absolute;right:3px;bottom:3px;width:94px;height:28px;background:url('/pond-friends.svg?v=20261003b') center/contain no-repeat;pointer-events:none}
#hud .hud-location-caption{color:#526f61}#hud #hLocation{color:#284e43}#hud #hTime,#hud #hWx{color:#536e65}
#hud .hud-money{background:#e8ddae;color:#605333}#hud b{color:#80522c}#hud .hud-health{color:#49664e}#hud #hHp{color:#a34644}
#hud .en{background:#d3ddc4;border-color:#789777}#hud .en i{background:linear-gradient(90deg,#4e9c7d,#a5c772)}
#hud .btns{border-top-color:#c2cfaf}#hud button{background:#e0ead0;border-color:#8fab85;color:#305447;border-radius:10px;box-shadow:0 2px 0 #91a783;min-height:36px}
#hud #bSaveHud{background:#568666;border-color:#4d7454;color:#fff8de}#hud #bQuitHud{background:#ede0be;border-color:#b4a074;color:#6c5437}
#screen{box-shadow:0 0 0 4px #284c59,0 3px 0 4px #f3efd5,0 9px 20px #284e4830;border-radius:10px}
#pad{border-radius:20px;background:#eaf0d5e8;border:1px solid #a2b997;padding:8px 8px 5px;box-shadow:0 3px 0 #52796130}
#stick{border:2px solid #739461;background:radial-gradient(circle at 40% 35%,#b6d095,#86af79 58%,#608d65 60%,#a4c78a 63%,#85af78);box-shadow:inset 0 2px 4px #e6efb9,0 3px 0 #577c5733}
#stick .arrow{color:#355e48}#stickKnob{background:radial-gradient(circle at 35% 30%,#e1eabc,#a8c887 75%);border-color:#fbf6d3;box-shadow:0 3px 6px #365d4850,inset 0 2px #ffffff80}
#stick.active #stickKnob{border-color:#fff9dc;box-shadow:0 0 0 3px #57876a55}.move-control small{color:#42684f}
.abtn button{background:linear-gradient(145deg,#648e66,#426f55);border-color:#8caf78;color:#fff9df;box-shadow:0 3px 0 #345b43,inset 0 1px #e6efb950;border-radius:22px 22px 22px 8px}
.abtn button.b{background:#dce9db;border-color:#89a99a;color:#365d54;box-shadow:0 2px 0 #a4ba9b}
#hud button:focus-visible,#pad button:focus-visible{outline:3px solid #ba713a;outline-offset:3px}
@media(pointer:fine){#hud button,#pad button{cursor:pointer}#hud button:hover,#pad button:hover{filter:brightness(1.07)}}
@media(min-width:600px) and (max-height:500px){body.touch #pad{padding:6px 4px}#hud .hud-location{padding-right:8px}#hud .hud-location::after{display:none}}
@media(max-width:360px){#hud .hud-location{padding-right:76px}#hud .hud-location::after{width:70px}}

@media(max-width:599px) and (min-height:720px){#app{background-image:url('/pond-pocket.svg?v=20261003b'),linear-gradient(#b5dbe0,#dbe7be 65%,#83bcb8);background-size:100% 100px,cover;background-position:center bottom;background-repeat:no-repeat}}

/* Matte pond controls: shared typography and a clear primary action. */
#hud button,#pad button,.move-control small{font-family:var(--font);font-weight:700;letter-spacing:.045em;-webkit-font-smoothing:antialiased}
#pad{background:#f5f3e8ed;border:1px solid #c5d3c1;border-radius:22px;box-shadow:none;padding:10px 12px 7px}
#stick{background:#d9e8e3;border:1px solid #94b6ab;box-shadow:inset 0 0 0 7px #edf2e9,0 2px 0 #a3b9aa}
#stick .arrow{font-size:0;width:7px;height:7px;border:solid #62877a;border-width:2px 2px 0 0}
#stick .u{top:13px;transform:translateX(-50%) rotate(-45deg)}#stick .d{bottom:13px;transform:translateX(-50%) rotate(135deg)}#stick .l{left:13px;transform:translateY(-50%) rotate(-135deg)}#stick .r{right:13px;transform:translateY(-50%) rotate(45deg)}
#stickKnob{background:#548c80;border:3px solid #f8f4df;box-shadow:0 3px 0 #32685f,0 5px 9px #335a4920}
#stickKnob::after{content:'';position:absolute;inset:12px;border:1px solid #abd1b8;border-radius:50%;pointer-events:none}
#stick.active #stickKnob{background:#42786d;border-color:#fff9df;box-shadow:0 2px 0 #32685f}
.move-control small{font-size:11px;color:#507367;letter-spacing:.12em}
.abtn{gap:10px;width:146px}
#pad .abtn button{font-size:15px;line-height:1.5;background:#f0bf96;border:1px solid #d49c77;border-radius:18px;color:#593f32;box-shadow:0 3px 0 #cb9778;padding:9px 10px;text-shadow:none}
#pad .abtn button.b{background:#e4ece5;border-color:#a8c0b2;box-shadow:0 2px 0 #a8bfae;color:#395f52;border-radius:13px;font-size:12px;padding:8px 10px}
#hud button{font-size:12px;box-shadow:0 2px 0 #b1c3a3;background:#e5ecd9;border-color:#afc29f;color:#42634f}
#hud #bSaveHud{background:#d0e3d5;border-color:#93b39f;color:#365d4c}#hud #bQuitHud{background:#f0e5ce;border-color:#c9b996;color:#746044}
#hud button:active,#pad .abtn button:active{transform:translateY(2px);box-shadow:none;filter:brightness(.98)}
@media(min-width:600px) and (max-height:500px){body.touch #pad{padding:6px 4px}#pad .abtn button{font-size:14px}}

:root{--font:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Meiryo",system-ui,sans-serif}
body,button,input,select,textarea{font-family:var(--font)}
#pad .abtn button{font-weight:500;font-size:16px}#pad .abtn button.b{font-size:13px}#hud button{font-weight:500;font-size:13px}

/* Readable, single-line status labels on phones and desktop. */
#hud{font-size:16px;padding:10px 12px}#hud .hud-location{height:56px;gap:4px}#hud .hud-location-caption{font-size:13px;line-height:16px;letter-spacing:.02em}#hud #hLocation{font-size:18px;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
#hud .hud-status{flex-wrap:nowrap;gap:8px}#hud .hud-date{gap:7px}#hud b{font-size:18px}#hud .hud-money{padding:3px 7px;white-space:nowrap}
#hud .hud-health{font-size:15px;flex-wrap:nowrap;gap:5px;white-space:nowrap;padding:9px 0 10px}#hud #hEnergyValue{font-size:15px!important}#hud .en{width:42px;min-width:24px;height:10px;flex-shrink:1}#hud #hHp{font-size:15px}#hud button{font-size:15px;min-height:40px;letter-spacing:0}
#pad .move-control small{font-size:15px;letter-spacing:.05em}#pad .abtn button.b{font-size:16px}#pad .abtn button{font-size:18px}
@media(max-width:599px){#hud .hud-location{padding-right:8px}#hud .hud-location::after{display:none}}
@media(min-width:600px) and (max-height:500px){body.touch #app{grid-template-columns:260px auto 138px}body.touch #hud{width:260px;font-size:14px;padding:9px}#hud .hud-health,#hud #hHp,#hud #hEnergyValue{font-size:14px!important}#hud .en{width:24px}#hud .hud-location{padding-right:5px}#hud #hLocation{font-size:17px}#hud b{font-size:16px}#pad .abtn button{font-size:16px}#pad .abtn button.b{font-size:15px}}

#hud .en{flex:1 1 90px;width:auto;max-width:180px;min-width:32px;height:12px}#hud #hHp{margin-left:4px}
#hud #bSaveHud{background:#d0e3d5;border-color:#88ab94;color:#305642;box-shadow:0 2px #9bbba3}
#hud #bLog{background:#dcebf5;border-color:#94b9cc;color:#315c72;box-shadow:0 2px #a5c3d2}
#hud #bMenu{background:#eae1f3;border-color:#b3a0c8;color:#604c79;box-shadow:0 2px #c0afd1}
#hud #bQuitHud{background:#f5dfc5;border-color:#cda87d;color:#775534;box-shadow:0 2px #d6b68f}
@media(min-width:600px) and (max-height:500px){body.touch #app{grid-template-columns:280px auto 138px}body.touch #hud{width:280px}}

/* Keep touch play at the available width, even with browser bars or a short viewport. */
body.touch #app{padding:4px;overflow-y:auto;overflow-x:hidden;justify-content:flex-start;padding-bottom:max(4px,env(safe-area-inset-bottom))}
body.touch #hud,body.touch #screen,body.touch #pad{flex-shrink:0}
body.touch #hud{margin-top:auto}body.touch #pad{margin-bottom:auto}
@media(min-width:600px) and (max-height:500px){body.touch #app{justify-content:center;align-content:start}body.touch #hud,body.touch #pad{margin:0}}

/* World colors are authored in the shared terrain/building palette.
   Keep text overlays unfiltered and retain crisp, unscaled pixel edges. */
#game { filter: none; }
#hud .en i { background: linear-gradient(90deg,#38a881,#9dcc59); }
#hud #bSaveHud { background-color:#c4e5ce; }
#hud #bLog { background-color:#d0eafa; }
#hud #bMenu { background-color:#e8dcf6; }
#hud #bQuitHud { background-color:#f8d9b5; }
#stick #stickKnob { background-color:#438f80; }
