.world-wrapper{background:linear-gradient(#fffef8,#e5f5e7)}.game-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px}.game-progress{text-align:right;background:#ffd166;border:2px solid var(--dark);border-radius:21px;min-width:160px;padding:12px 18px;box-shadow:5px 5px 0 #163b382a}.game-progress b{font-size:1.9rem;font-family:Georgia,serif;display:block;line-height:1.1}.game-progress small{font-weight:850;font-size:.64rem;letter-spacing:.07em}.mini-badges{font-size:1.5rem}.world-frame{border:7px solid #173e36;border-radius:31px;overflow:hidden;background:#e8f0ca;box-shadow:14px 16px 0 #122d2733;position:relative}.world-topline,.world-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 17px;background:#153d37;color:#fff;font-weight:800;font-size:.75rem;letter-spacing:.04em}.world-topline{border-bottom:4px solid #c9a765}.world-topline #nearHint{font-weight:600;color:#ffdf83}.help-button{border:1px solid #ffffff6c;padding:5px 9px;border-radius:10px;background:#ffffff13;color:white}.world-map{height:550px;position:relative;outline:none;overflow:hidden;background:radial-gradient(circle at 20% 60%,#abd986 0 15%,transparent 30%),radial-gradient(circle at 90% 20%,#bbdea4 0 12%,transparent 29%),linear-gradient(120deg,#aedc8a,#d5eab3);touch-action:none}.world-tile-grid{position:absolute;inset:0;background-image:linear-gradient(#fff7 1px,transparent 1px),linear-gradient(90deg,#fff7 1px,transparent 1px);background-size:44px 44px;opacity:.14}.world-path{position:absolute;background:#f9deb4;box-shadow:inset 0 0 0 6px #cead7a66}.world-path.horizontal{top:45%;height:10%;width:96%;left:2%;border-radius:100px}.world-path.vertical{left:47%;width:6%;top:0%;height:100%;border-radius:50px}.world-river{position:absolute;left:5%;top:-30px;width:7%;height:130%;background:repeating-linear-gradient(160deg,#b7f3f6 0 22px,#75d5e8 23px 30px,#b7f3f6 31px 45px);transform:rotate(-12deg);border-inline:5px solid #a4c38b;opacity:.85}.map-decor{position:absolute;font-size:2.4rem;animation:wiggle 3s ease-in-out infinite;pointer-events:none}.map-decor:nth-child(even){animation-delay:-1s}.cloud{position:absolute;color:#ffffff99;font-size:3rem;animation:cloud 22s linear infinite;z-index:1;pointer-events:none}.cl1{top:6%;left:-10%}.cl2{top:83%;left:-20%;animation-delay:-9s}
.map-house{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);border:0;background:transparent;display:flex;align-items:center;flex-direction:column;z-index:4;transition:transform .3s;min-width:155px;filter:drop-shadow(5px 8px 0 #14372a34);padding:0}.map-house:hover,.map-house.near{transform:translate(-50%,-50%) scale(1.08)}.house-roof{width:170px;height:67px;border:5px solid #1f4239;border-bottom:0;background:#f9c377;clip-path:polygon(50% 0,100% 58%,100% 100%,0 100%,0 58%);display:grid;place-items:center;font-size:2.1rem;padding-top:14px;filter:drop-shadow(2px 2px 0 #21402e)}.house-body{width:160px;min-height:98px;background:#fffae0;border:5px solid #1f4239;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;padding:6px;position:relative}.house-body strong{font-family:Georgia,serif;font-size:1.04rem;line-height:1}.house-body small{font-size:.58rem;font-weight:900;letter-spacing:.06em}.house-door{font-size:1.4rem;line-height:1.1;animation:bob 2.8s infinite}.map-house.env .house-roof{background:#5ca977}.map-house.com .house-roof{background:#7ccce4}.map-house.soc .house-roof{background:#e99bac}
.player-avatar{position:absolute;width:42px;height:63px;z-index:20;transform:translate(-50%,-52%);filter:drop-shadow(0 6px 1px #142c2930);pointer-events:none}.avatar-hair{position:absolute;left:7px;top:0;width:29px;height:33px;background:#273a40;border-radius:45% 45% 35% 35%;border:3px solid #193836}.avatar-face{position:absolute;left:10px;top:10px;width:24px;height:24px;background:#f8c99d;color:#172d25;text-align:center;border:2px solid #27413a;border-radius:43%;font-size:.8rem;line-height:22px}.avatar-body{position:absolute;left:10px;top:32px;width:24px;height:21px;background:var(--coral);border:3px solid #244539;border-radius:9px 9px 3px 3px}.avatar-feet{position:absolute;left:12px;top:52px;width:20px;height:8px;border-bottom:4px solid #1f3f42;border-inline:6px solid #173f37}.avatar-name{position:absolute;left:50%;transform:translateX(-50%);top:-20px;white-space:nowrap;color:white;background:#153f36;border-radius:20px;font-size:.6rem;padding:2px 7px;font-weight:850}.player-avatar.walking .avatar-feet{animation:walk .15s infinite alternate}.world-speech{position:absolute;top:52%;left:50%;transform:translate(-50%,-50%);background:#fffdf4;border:3px solid #1c493c;padding:8px 14px;border-radius:18px;box-shadow:5px 6px 0 #143b353b;font-size:.83rem;font-weight:850;z-index:10;pointer-events:none;max-width:min(380px,85%);text-align:center}.world-bottom{border-top:4px solid #c9a765;min-height:87px}.world-bottom b{display:block;color:#ffdb87}.world-bottom span{font-size:.7rem;color:#dcefe7;letter-spacing:0;font-weight:600}.direction-pad{display:flex;flex-direction:column;gap:4px;align-items:center}.direction-pad>div{display:flex;gap:4px}.direction-pad button{border:1px solid #ffffff5c;background:#ffffff25;color:white;font-weight:900;border-radius:8px;width:40px;height:30px;touch-action:none;user-select:none}.direction-pad button:active{background:#f4ca65;color:#164234}.enter-btn{border:0;background:var(--gold);color:var(--dark);border-radius:12px;padding:10px 13px;font-weight:850;white-space:nowrap}.enter-btn:disabled{opacity:.5}
.room-overlay{position:fixed;inset:0;background:#14332edb;z-index:120;display:grid;place-items:center;padding:16px;backdrop-filter:blur(9px)}.room-overlay[hidden]{display:none}.room-dialog{max-width:1060px;width:100%;max-height:95vh;overflow:auto;background:#fffdf4;border:5px solid #1c4039;border-radius:30px;box-shadow:18px 18px 0 #0e2228a0}.room-banner{background:#f3d178;display:flex;align-items:center;justify-content:space-between;gap:13px;padding:20px 26px;border-bottom:4px solid #173d35}.room-banner h2{font-family:Georgia,serif;font-size:clamp(1.7rem,4vw,2.7rem);margin:7px 0 0}.room-exit{border:2px solid #133d34;border-radius:14px;background:#fffdf4;font-weight:850;padding:9px 13px}.room-layout{display:grid;grid-template-columns:.87fr 1.13fr;gap:21px;padding:23px}.room-stage{min-height:465px;position:relative;border:4px solid #1e4b3e;border-radius:22px;overflow:hidden;background:#dbf4d5}.room-stage>img{height:100%;min-height:465px;width:100%;object-fit:cover}.room-stage:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 45%,#143a3b8c)}.room-npc{position:absolute;left:12%;bottom:13%;font-size:5rem;animation:bob 2.5s infinite;z-index:2;filter:drop-shadow(7px 9px 0 #12363355)}.room-scene-caption{position:absolute;right:14px;bottom:12px;background:#fff9dc;color:#133e36;border-radius:13px;padding:6px 9px;font-size:.72rem;font-weight:850;z-index:3}.room-right{min-width:0}.room-quote{background:#e4f1df;border:2px solid #335546;border-radius:20px 20px 20px 0;padding:15px;margin-bottom:19px;min-height:105px}.room-quote strong{color:#2b5c4c}.room-quote p{margin:7px 0 0}.room-right h3{font-family:Georgia,serif;margin:5px 0 10px}.npc-buttons{display:flex;flex-wrap:wrap;gap:8px}.npc-buttons button{border:2px solid #2b614c;background:#fff3d1;border-radius:100px;padding:8px 12px;font-size:.84rem;font-weight:800}.npc-buttons button:hover{background:#fbd18a}.quest{background:#fbe8ef;border:2px dashed #bb637a;border-radius:20px;padding:17px;margin-top:16px}.quest>b{color:#a43b5b}.quest p{margin:7px 0 11px;font-weight:650}.quest-choices{display:grid;gap:8px}.quest-choices button{background:white;border:2px solid #d3b6c1;border-radius:14px;padding:10px 13px;text-align:left;font-size:.86rem;font-weight:720}.quest-choices button:hover{border-color:#6a3d5e;background:#fff1b9}.quest-feedback{font-size:.85rem;font-weight:750;min-height:28px;margin-top:9px;color:#29543e}
@keyframes walk{to{transform:translateX(3px)}}@keyframes cloud{to{left:110%}}@keyframes wiggle{50%{transform:rotate(-12deg) scale(1.1)}}
@media(max-width:760px){.game-head{flex-direction:column;align-items:stretch}.game-progress{text-align:left;display:flex;align-items:center;justify-content:space-between}.game-progress b{font-size:1.5rem}.world-topline{font-size:.61rem}.world-topline #nearHint{display:none}.world-map{height:480px}.map-house{min-width:100px}.house-roof{width:118px;height:53px}.house-body{width:118px;min-height:95px}.house-body strong{font-size:.85rem}.house-body small{font-size:.45rem}.map-house:nth-of-type(odd){transform:translate(-50%,-50%)}.world-bottom{flex-wrap:wrap;gap:8px}.world-bottom>div:first-child{flex:1;min-width:165px}.direction-pad{order:3;width:100%;flex:1}.direction-pad button{height:38px;width:52px}.room-layout{grid-template-columns:1fr;padding:14px}.room-stage,.room-stage>img{min-height:220px;height:240px}.room-npc{font-size:3rem}.room-banner{padding:14px}.room-exit{font-size:.75rem}.room-dialog{max-height:94vh}}
@media(max-width:450px){.world-map{height:460px}.house-roof{width:100px;height:44px;font-size:1.4rem}.house-body{width:100px;min-height:79px;border-width:3px}.house-body strong{font-size:.73rem}.house-body small{font-size:.42rem}.house-door{font-size:1.1rem}.map-house.edu,.map-house.com{left:26%}.map-house.env,.map-house.soc{left:75%}.world-speech{font-size:.7rem}.room-banner h2{font-size:1.5rem}}
