@font-face{font-family:"Garden Korean";src:url("./assets/fonts/garden-ko.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
:root{font-family:"Noto Sans KR","Malgun Gothic",sans-serif;color:#faf3df;font-synthesis:none;--ink:#34463a;--gold:#d2b67b;--line:#ffffff30}*{box-sizing:border-box}body{margin:0;background:#6c8169;overflow:hidden}canvas{display:block;width:100vw;height:100dvh;touch-action:none;outline:none}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible{outline:2px solid #d7bb7b;outline-offset:4px}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}.glass{background:#2a393455;backdrop-filter:blur(18px);border:1px solid var(--line);box-shadow:0 8px 40px #14251b12}header{position:fixed;top:26px;left:30px;right:30px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.brand,.tools{pointer-events:auto;border-radius:40px}.brand{display:flex;align-items:center;gap:14px;padding:12px 24px 12px 18px}.brandmark{font-family:serif;font-size:28px;color:#e1ca8d}.brand h1{font-family:serif;font-size:20px;font-weight:500;margin:0 0 3px;letter-spacing:3px}.brand p{font-size:10px;margin:0;letter-spacing:1px;opacity:.65}.separator{height:25px;border-left:1px solid var(--line);margin:0 3px}.season{font-size:11px;color:#e5d7b3;letter-spacing:1px}.tools{display:flex;padding:9px 11px;gap:2px}.tools button{padding:10px 13px;font-size:12px;border-radius:22px}.tools button:hover,.actions button:hover{background:#ffffff14}.intro{position:fixed;top:130px;left:48px;pointer-events:none;text-shadow:0 2px 15px #30433270}.eyebrow{font-size:9px;letter-spacing:3px;color:#e1ce9a}.intro p{font-family:serif;font-size:29px;font-weight:400;letter-spacing:3px;margin:13px 0}.intro>span:last-child{font-size:11px;letter-spacing:1px;opacity:.7}.connection{position:fixed;top:97px;right:43px;max-width:300px;text-align:right;font-size:10px;color:#f5eaca;line-height:1.7}.connection.error{color:#ffdcbd;background:#4e3925c9;border-radius:8px;padding:10px}.prompt{position:fixed;left:50%;bottom:165px;transform:translateX(-50%);border-radius:30px;display:flex;gap:18px;align-items:center;padding:10px 12px 10px 24px;font-size:12px;white-space:nowrap}.prompt button{background:#e8dfc6;color:#344238;border-radius:20px;padding:9px 14px;font-size:11px}kbd{font-size:10px;opacity:.7}.action-status{position:fixed;left:50%;bottom:218px;transform:translateX(-50%);padding:9px 20px;border-radius:20px;font-size:12px;white-space:nowrap}footer{position:fixed;bottom:26px;left:0;right:0;text-align:center;pointer-events:none}.controls{font-size:10px;letter-spacing:1px;opacity:.7;margin:0 0 15px;text-shadow:0 2px 9px #152a19}.controls i{margin:0 9px;font-style:normal;opacity:.5}.actions{display:inline-flex;border-radius:50px;padding:7px 12px;pointer-events:auto;align-items:center;gap:5px}.actions button{display:flex;flex-direction:column;align-items:center;gap:4px;border-radius:30px;min-width:76px;padding:9px 15px;font-size:11px}.actions button>span{font-family:serif;font-size:24px;line-height:24px}.actions button.active{background:#e8dfc624;color:#ffe8ac}.divider{height:31px;width:1px;background:var(--line);margin:0 3px}.footer-note{position:fixed;bottom:37px;right:40px;letter-spacing:2px;font-family:serif;font-size:12px;opacity:.6}#toast{position:fixed;left:50%;top:95px;transform:translateX(-50%);border-radius:30px;padding:13px 24px;background:#f6efdf;color:#40503f;font-size:12px;box-shadow:0 8px 30px #16251b30;max-width:90vw;text-align:center;z-index:20}dialog{border:1px solid #e2d8bd;color:var(--ink);background:#faf7ee;border-radius:23px;padding:34px;max-width:480px;width:calc(100vw - 32px);max-height:85dvh;box-shadow:0 30px 100px #18221a55}dialog::backdrop{background:#18291d50;backdrop-filter:blur(6px)}dialog .eyebrow{color:#93845d}dialog h2{font-family:serif;letter-spacing:1px;font-size:25px;margin:14px 0 20px;font-weight:500}.close{position:absolute;right:17px;top:12px;color:#687462;font-size:27px}#panelBody{font-size:13px;line-height:1.8}#panelBody p{color:#6d7566}label{display:block;margin:14px 0 6px;font-size:12px}input,textarea,select{width:100%;border:1px solid #d9dccf;background:#fffef9;border-radius:9px;padding:11px;color:var(--ink);font-size:13px}textarea{min-height:95px;resize:vertical}input[type=checkbox]{width:auto;vertical-align:middle}input[type=range]{padding:0;accent-color:#677e61}button.primary,.primary{display:block;width:100%;padding:13px;border-radius:10px;background:#586e52;color:#fff9e9;margin-top:18px;text-align:center;text-decoration:none}button.secondary{border:1px solid #d5d9c9;border-radius:9px;padding:10px 15px;color:#56664e;margin:8px 6px 0 0}.notice{font-size:11px!important;color:#838975!important}.entries p{padding:11px 14px;border-radius:9px;background:#eef0e5;margin:8px 0;overflow-wrap:anywhere}.error-text{color:#9e4d35!important;font-size:12px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.grid button{background:#edf0e4;border:1px solid #d9dfd1;border-radius:10px;padding:16px 8px;color:#43573b}.honeypot{position:absolute;left:-10000px;opacity:0}#fatal{position:fixed;inset:0;z-index:100;display:grid;place-content:center;text-align:center;background:#273d32;padding:25px}#fatal p{font-size:13px;max-width:400px}body.admin{overflow:auto;background:#f3f3ea;color:#34463a}body.admin main{max-width:1100px;margin:40px auto;padding:20px}body.admin h1{font-family:serif;font-weight:400}body.admin .adminbar{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}body.admin button{padding:10px 14px;background:#dfe5d6;border-radius:7px;color:#34463a}body.admin .adminbar button.active{background:#546e4c;color:white}body.admin article{background:#fffdf7;border:1px solid #dce0d1;border-radius:12px;margin:12px 0;padding:20px;overflow-wrap:anywhere}body.admin .status{font-size:11px;color:#7d876e}body.admin .login{max-width:370px;margin:80px auto}body.admin table{border-collapse:collapse;width:100%}body.admin td{padding:8px;border-bottom:1px solid #e8e9df}body.admin #adminError{color:#a04629}body.admin .privacy{font-size:12px;color:#787d6b}@media(max-width:700px){header{top:15px;left:13px;right:13px}.brand{padding:10px 14px;gap:9px}.brand h1{font-size:16px;letter-spacing:2px}.brandmark{font-size:23px}.season,.separator{display:none}.tools{padding:5px}.tools button{font-size:10px;padding:10px 9px}.intro{top:117px;left:24px}.intro p{font-size:23px}.intro .eyebrow{font-size:8px;letter-spacing:2px}.intro>span:last-child{font-size:10px}.connection{top:85px;right:20px;font-size:9px;max-width:190px}.controls{font-size:0}.controls::after{content:'바닥 탭 이동 · 드래그 둘러보기 · 핀치 확대';font-size:9px}.controls i{display:none}.footer-note{display:none}.actions button{min-width:59px;padding:9px 10px;font-size:10px}footer{bottom:max(19px,env(safe-area-inset-bottom))}.prompt{bottom:155px;max-width:94vw;gap:12px;padding-left:18px}.action-status{bottom:205px}dialog{padding:29px 23px}#toast{top:87px;font-size:11px;min-width:220px}}
/* v0.4: readable overlays and a deliberate hand-operated bead ritual. */
.glass{background:#233d35a3;border-color:#e8dfbf40}.brand h1{font-size:18px}.intro{transition:opacity 2s,transform 2s}.settled .intro{opacity:0;transform:translateY(-8px)}.controls{color:#fff5de;opacity:.94;text-shadow:0 1px 4px #12261b,0 1px 12px #12261b}.footer-note{opacity:.85;text-shadow:0 1px 5px #183022}.actions button.active{background:#dfc69530;color:#ffe6a9}.bead-intro,.bead-hint{text-align:center}.bead-control{width:240px;height:240px;display:block;position:relative;margin:15px auto;padding:0;border-radius:50%;touch-action:none;color:#495d45;transition:transform .18s}.bead-control svg{width:100%;height:100%}.bead-dot{fill:#cfcab9;transition:fill .2s}.bead-dot.filled{fill:#8c6541}.bead-center{fill:#eee8d9;stroke:#d6cfba;stroke-width:.5}.bead-number{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:serif;font-size:45px;pointer-events:none}.bead-number small{font-family:sans-serif;font-size:12px;padding:17px 0 0 6px;color:#8c947e}.bead-control:hover .bead-center{fill:#e7dfca}.bead-control.turning{transform:rotate(3deg) scale(.97)}.bead-control:disabled{opacity:1}.bead-hint{font-size:12px!important;color:#5c7054!important}
#modelControls{position:fixed;left:auto;right:20px;top:100px;margin:0;width:300px;padding:24px;font-size:12px}#modelControls h2{font-size:20px}@media(max-width:700px){#modelControls{top:auto;bottom:15px;right:15px;width:calc(100vw - 30px);padding:15px}#modelControls h2{margin:0 0 10px;font-size:17px}}
.chant-button{position:fixed;right:35px;top:102px;border-radius:24px;padding:11px 17px;font-size:11px;z-index:3}#nameLabels{position:fixed;inset:0;pointer-events:none;z-index:2}.character-name{position:absolute;transform:translate(-50%,-100%);font-size:10px;background:#263d34c9;border:1px solid #e7dfc12b;color:#f7edd7;border-radius:14px;padding:5px 9px;white-space:nowrap;box-shadow:0 2px 10px #1b2e2230}.character-name.self{background:#eee7ce;color:#3b5141}.tools{gap:0}.tools button{padding:10px}.season{cursor:pointer}#panel .entries{max-height:45dvh;overflow:auto}#peopleCount{font-variant-numeric:tabular-nums}@media(max-width:700px){.chant-button{top:87px;right:16px;padding:8px 12px}.brand{max-width:45vw}.brand h1{font-size:13px}.brandmark{display:none}.brand .season{display:block;font-size:9px}.brand p{font-size:8px}.tools button{padding:9px 6px;font-size:9px}.connection{top:125px}.character-name{font-size:9px}}
/* Full-screen tactile prayer beads */
.bead-experience{position:fixed;inset:0;z-index:80;background:#142129;color:#f3e4c5}.bead-scene{width:100vw;height:100dvh;touch-action:none;cursor:grab}.bead-scene:active{cursor:grabbing}.bead-back,.bead-new{position:absolute;top:22px;left:22px;border-radius:25px;padding:12px 20px;color:#f4e9d0}.bead-new{left:auto;right:22px}.bead-help{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:1px;color:#b8c2c0;pointer-events:none;white-space:nowrap}.bead-progress{position:absolute;bottom:65px;left:30px;pointer-events:none}.bead-progress strong{font-size:37px;font-weight:500;color:#e9c68b}.bead-progress span{font-size:13px;color:#c6cec8}.bead-progress p{font-size:11px;letter-spacing:1px;color:#bbc5bd}.character-name.self{padding:6px 12px;box-shadow:0 2px 12px #10261f40}.brand,.tools{background:#203c34b8}.actions{background:#203c34c4}@media(max-width:700px){.bead-help{font-size:10px;bottom:20px}.bead-progress{left:20px;bottom:50px}}
.character-name{font-size:11px;display:flex;align-items:center;gap:6px}.character-name.self::before{content:'나';display:inline-grid;place-items:center;width:17px;height:17px;background:#829078;color:#fff9e8;border-radius:50%;font-size:10px}

/* Original Pyogodang brand asset; no text glyph replacement. */
.brand-logo{display:block;width:60px;height:60px;object-fit:contain;flex-shrink:0}.brand{padding:5px 20px 5px 10px;gap:8px}@media(max-width:700px){.brand-logo{display:block;width:42px;height:42px}.brand{padding:5px 10px 5px 5px;gap:5px}}
/* Preserve the logo drawing, raise its luminance against the dark green header. */
.brand-logo{filter:brightness(0) invert(1) drop-shadow(0 1px 2px #0002)}

/* Own label remains visible while the visitor identity is connecting. */
#nameLabels{z-index:4}.character-name{min-height:28px;font-size:12px;border-color:#ffffff55;text-shadow:none}header,footer{z-index:6}

/* Operations workspace */
body.admin{background:#f2f4f1;color:#253a33;font-family:system-ui,sans-serif}.admin main{max-width:1280px;margin:auto;padding:40px 36px}.admin-eyebrow{font-size:11px;letter-spacing:.18em;color:#788c82}.admin h1{font-size:30px;letter-spacing:-.05em;margin:18px 0 30px}.admin h1 span{display:block;font-size:14px;font-weight:400;letter-spacing:0;color:#7c8882;margin-top:12px}.admin .account-strip{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d9e0da;padding-bottom:20px;font-size:13px}.admin .adminbar{display:flex;gap:7px;flex-wrap:wrap;padding:22px 0;border-bottom:1px solid #d9e0da}.admin button{border:1px solid #dae2dc;border-radius:8px;background:white;color:#4b6357;padding:11px 16px;font-size:13px;cursor:pointer}.admin button.active,.admin button.primary{background:#2e5547;color:white;border-color:#2e5547}.admin button:disabled{opacity:.4;cursor:default}.admin .section-heading{font-size:23px;margin:30px 0 8px}.admin .privacy{color:#7c8c83;font-size:12px;line-height:1.7}.admin article{background:white;border:1px solid #dfe5df;border-radius:14px;padding:24px;margin:16px 0;box-shadow:0 5px 18px #263b2a04}.admin article>p:not(.status){line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.admin .status{font-size:11px;color:#8a988f;overflow-wrap:anywhere}.admin form{max-width:820px}.admin input:not([type=checkbox]),.admin textarea{box-sizing:border-box;display:block;width:100%;border:1px solid #d5dfd8;background:#f9fbf8;border-radius:8px;padding:12px;color:#283e32;margin:8px 0 18px;font:inherit;font-size:14px}.admin textarea{min-height:120px}.admin label{display:block;font-size:13px;line-height:1.7}.admin audio{display:block;width:min(100%,500px);margin:16px 0}.admin .login{max-width:390px;background:white;padding:32px;border-radius:16px;margin:40px auto}.admin .login button{width:100%}.admin #adminError:empty{display:none}.admin #adminError{color:#a84235;background:#fff0eb;border-radius:8px;padding:12px}.admin #pager{display:flex;gap:14px;align-items:center;margin:24px 0}.track-actions{display:flex;gap:6px;margin-top:14px}@media(max-width:650px){.admin main{padding:24px 16px}.admin article{padding:18px}.admin .adminbar button{flex:1 0 28%}.admin h1{font-size:26px}}
.chant-player{position:fixed;right:28px;top:108px;z-index:12;display:flex;align-items:center;gap:10px;border-radius:28px;padding:8px 12px;max-width:min(360px,calc(100vw - 32px));color:#f5f1dc}.chant-player[hidden]{display:none}.chant-cover{font-size:23px}.chant-title{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chant-player button{padding:5px;border:0;background:none;color:inherit}.chant-player input{width:60px;accent-color:#d9c992}@media(max-width:650px){.chant-player{right:16px;top:124px}.chant-player input{width:44px}}
body.admin main{max-width:1280px;margin:0 auto;padding:40px 36px}body.admin h1{font-family:inherit;font-weight:600}@media(max-width:700px){.actions{padding:6px;gap:1px}.actions button{min-width:51px;padding:9px 7px}.actions .divider{margin:0 2px}.chant-player{max-width:calc(100vw - 26px)}}@media(max-width:650px){body.admin main{padding:24px 16px}}

/* Reference-style action icons: transparent, crisp at every screen density. */
.actions .action-icon{display:block;width:30px;height:30px;object-fit:contain;flex:none;pointer-events:none;user-select:none}.actions button{gap:5px}.actions button[data-action="bow"] .action-icon{width:34px}.actions button[data-action="stop"] .action-icon{width:27px}.actions button.active .action-icon{filter:drop-shadow(0 0 4px #f1cf7970)}@media(max-width:700px){.actions .action-icon{width:27px;height:27px}.actions button[data-action="bow"] .action-icon{width:31px}.actions button[data-action="stop"] .action-icon{width:24px}}

.brand p.organization{font-size:10px;letter-spacing:.2px;opacity:.85;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.model-loading{position:fixed;bottom:142px;left:50%;transform:translateX(-50%);background:#304f43d9;padding:7px 15px;border-radius:20px;font-size:10px;pointer-events:none}.record-item{padding:12px 0;border-bottom:1px solid #35544020}.record-item small{opacity:.6}.list-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:20px 0}.admin .list-filters input{margin:0;max-width:220px}.admin .list-filters select{padding:11px;border:1px solid #d5dfd8;border-radius:8px;background:white}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.overview-grid article{margin:0}.overview-grid strong{display:block;font-size:32px;margin-top:12px}#movePad{display:none;position:fixed;left:18px;bottom:155px;width:80px;height:80px;border-radius:50%;background:#29493d8c;border:1px solid #f6e9c450;touch-action:none;user-select:none;align-items:center;justify-content:center;color:#f9edcf;font-size:40px}#movePad.moving{background:#29493dd9}@media(pointer:coarse){#movePad{display:flex}}@media(max-width:700px){.tools{gap:0}.tools button{padding:10px 6px}.brand p.organization{font-size:8px}.model-loading{bottom:135px}}

@media(max-width:650px){header .tools{position:fixed;top:91px;right:13px}.chant-button,.chant-player{top:140px}.connection{top:190px;right:18px}.intro{top:220px}.admin .list-filters input{max-width:100%}}@media(pointer:coarse){.prompt{left:110px;right:12px;transform:none;max-width:none;white-space:normal;padding:10px;gap:8px}.prompt button{flex-shrink:0}.action-status{bottom:265px}}

.npc-dialog{display:flex;gap:18px;align-items:center;margin:18px 0}.npc-dialog canvas{width:124px;height:124px;flex:none;background:#eee6d5;border-radius:50%;border:1px solid #d0c2a2}.npc-dialog small{font-size:11px;color:#7f897d}.npc-dialog p{line-height:1.8;margin:8px 0}@media(max-width:600px){.npc-dialog{gap:12px}.npc-dialog canvas{width:96px;height:96px}}

:root{font-family:"Garden Korean","Apple SD Gothic Neo","Malgun Gothic",sans-serif}

/* Action choices surround the avatar; the garden stays visible and interactive. */
.behavior-wheel{position:fixed;z-index:18;width:0;height:0;color:#fff1cb;filter:drop-shadow(0 7px 12px #152a1960);--wheel-x:96px;--wheel-y:58px;--wheel-size:76px}
.wheel-halo{position:absolute;width:194px;height:138px;left:-97px;top:-69px;border:1px solid #eed5a95e;border-radius:50%;pointer-events:none}
.wheel-action{position:absolute;left:calc(var(--wheel-x) * -1);top:calc(var(--wheel-y) * -1);width:var(--wheel-size);height:var(--wheel-size);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid #d9c595ae;border-radius:50%;background:#304b40ed;box-shadow:inset 0 0 0 4px #ffffff08;animation:wheel-appear .16s ease-out}
.wheel-action:nth-of-type(3){left:var(--wheel-x)}.wheel-action:nth-of-type(4){left:var(--wheel-x);top:var(--wheel-y)}.wheel-action:nth-of-type(5){top:var(--wheel-y)}
.wheel-action svg{width:30px;height:30px;pointer-events:none}.wheel-action span{font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-size:11px;white-space:nowrap;pointer-events:none}
.wheel-action:hover,.wheel-action[aria-checked="true"]{background:#63754a;border-color:#ffe2a0}.wheel-action:focus-visible{outline:3px solid #ffe3a0;outline-offset:3px}
.wheel-close{position:absolute;left:-16px;top:-16px;width:32px;height:32px;border:1px solid #e3ce9e80;border-radius:50%;background:#304b40dc;color:#fff1cb;font-size:23px;line-height:1}
@keyframes wheel-appear{from{opacity:0;scale:.8}to{opacity:1;scale:1}}
@media(max-width:539px){.behavior-wheel{--wheel-x:78px;--wheel-y:54px;--wheel-size:66px}.wheel-halo{width:156px;height:126px;left:-78px;top:-63px}.wheel-action svg{width:27px;height:27px}.wheel-action span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.wheel-action{animation:none}}

/* User supplied artwork is preserved; backgrounds compensate for source margins. */
.provided-icon{display:block;background-repeat:no-repeat;background-position:center;pointer-events:none;flex:none}
.icon-behavior{background-image:url('./assets/icons/behavior.png');background-size:150%}
.icon-sweep{background-image:url('./assets/icons/sweep.png');background-size:124%}
.icon-stretch{background-image:url('./assets/icons/stretch.png');background-size:120%}
.icon-exercise{background-image:url('./assets/icons/exercise.png');background-size:142%}
.wheel-action .provided-icon{width:32px;height:32px}
@media(max-width:539px){.wheel-action .provided-icon{width:29px;height:29px}}

.intro .weather-inline{display:table;margin-top:12px;padding:5px 11px;border:1px solid #e5e5c72c;border-radius:14px;background:#31483788;color:#fff3d6;font-size:10px;letter-spacing:1px;opacity:.9;line-height:1.6}

/* Shared visitor dialogs: a fixed heading, one scroll surface, and consistent controls. */
#panel{padding:0;width:min(580px,calc(100vw - 32px));max-width:580px;max-height:min(86dvh,800px);overflow:hidden;border:1px solid #e3dccb;border-radius:24px;background:#fbf9f2;box-shadow:0 28px 90px #12261f42;color:#35483e}
#panel[open]{display:flex;flex-direction:column}
#panel::backdrop{background:#1b302d66;backdrop-filter:blur(7px)}
#panel .panel-header{position:relative;flex:none;padding:27px 64px 21px 28px;background:linear-gradient(125deg,#f3f2e7,#fbf9f2);border-bottom:1px solid #e5e7da}
#panel .panel-header .eyebrow{font-size:9px;letter-spacing:2px;line-height:1.8;color:#8a7957;display:block}
#panel .panel-header h2{margin:8px 0 0;font-size:25px;line-height:1.4;letter-spacing:-.4px;color:#304b40;overflow-wrap:anywhere}
#panel .close{right:17px;top:20px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;padding:0;font-size:26px;line-height:1;background:#fffdf7;border:1px solid #dedfce;color:#66765f;transition:background .15s}
#panel .close:hover{background:#e6ecdf}
#panelBody{padding:22px 28px 26px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#b8c2b0 transparent;scrollbar-gutter:stable;line-height:1.8;font-size:13px}
#panelBody>p:first-child{margin-top:0}#panelBody p{color:#69796b}#panelBody h3{font-size:15px;margin:24px 0 10px;color:#3c5646}
#panelBody .grid{gap:10px}#panelBody .grid button{border:1px solid #dce3d3;border-radius:12px;background:#eef2e7;color:#405c43;padding:13px 15px;min-height:46px;line-height:1.6;text-align:left;transition:background .15s,border-color .15s}
#panelBody .grid button:hover{background:#e1ead9;border-color:#aebfa2}#panelBody .grid button small{display:block;color:#77836f}
#panelBody button.primary{border-radius:12px;background:#4b6957;min-height:48px;box-shadow:0 3px 8px #39534012;margin-top:18px}#panelBody button.primary:hover{background:#3c5947}
#panelBody button.secondary{border-color:#d8dfd0;background:#f5f6ee;border-radius:10px;min-height:42px;line-height:1.6}
#panelBody label{margin-top:18px;margin-bottom:7px;font-weight:500;color:#475c4c}
#panelBody input:not([type=checkbox]):not([type=range]),#panelBody textarea,#panelBody select{background:#fffefa;border:1px solid #d8dfd0;border-radius:11px;min-height:44px;padding:11px 13px;color:#354d3c;line-height:1.6}
#panelBody input:focus,#panelBody textarea:focus,#panelBody select:focus{outline:2px solid #a7bb98;outline-offset:2px}
#panelBody textarea{min-height:112px}#panelBody input[type=checkbox]{accent-color:#4b6957}
#panelBody .notice{background:#f0f2e8;border-radius:10px;padding:11px 13px;line-height:1.8;color:#77836e!important;margin-top:16px}
#panelBody .error-text:empty{display:none}#panelBody .error-text:not(:empty){padding:10px 12px;border-radius:9px;background:#f7e8df;color:#955a3e}
#panel .entries{max-height:none;overflow:visible}#panel .entries p,#panel .record-item{background:#f0f3e9;border:1px solid #e2e7d9;border-radius:12px;padding:13px 15px;overflow-wrap:anywhere}
#panel .npc-dialog{background:#f0f2e7;border:1px solid #e0e5d4;border-radius:16px;padding:16px;margin:0 0 18px;gap:16px}#panel .npc-dialog canvas{width:100px;height:100px}#panel .npc-dialog p{margin-bottom:0}
#panel .directory-tabs{display:flex;gap:5px;padding:5px;background:#e9eee2;border-radius:13px;margin:18px 0;position:sticky;top:-1px;z-index:1;border:1px solid #e0e5d8}
#panel .directory-tabs button{flex:1;min-height:41px;padding:9px 5px;border-radius:9px;color:#70816b;font-size:12px;white-space:nowrap}
#panel .directory-tabs button[aria-selected=true]{background:#fffef9;color:#35563e;font-weight:600;box-shadow:0 2px 7px #233e2310}
#panel .directory-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#panel .destination-card{position:relative;display:flex;flex-direction:column;text-align:left;padding:17px 26px 16px 16px;min-height:106px;background:#f3f5ec;border:1px solid #dce4d3;border-radius:14px;color:#3e5b44;gap:7px;transition:background .15s,border-color .15s}
#panel .destination-card:hover{background:#e7efdf;border-color:#adbf9e}#panel .destination-title{font-size:14px;font-weight:600;line-height:1.5;word-break:keep-all}#panel .destination-description{font-size:11px;line-height:1.6;color:#7c8875;word-break:keep-all}#panel .destination-arrow{position:absolute;right:12px;top:17px;font-size:14px;color:#96a58c}
#panel .compact-list{grid-template-columns:1fr}#panel .compact-list .destination-card{min-height:70px;padding:13px 33px 13px 16px;gap:3px}
@media(max-width:600px){#panel{width:calc(100vw - 20px);max-height:90dvh;border-radius:19px}#panel .panel-header{padding:23px 57px 18px 21px}#panel .panel-header h2{font-size:23px}#panelBody{padding:19px 20px 22px}#panel .close{right:13px;top:17px}#panel .destination-card{padding:14px 25px 14px 12px;min-height:105px}#panel .destination-title{font-size:13px}#panel .npc-dialog{padding:12px;gap:12px}#panel .npc-dialog canvas{width:76px;height:76px}#panel .directory-tabs button{font-size:11px}}
@media(max-width:350px){#panel .directory-results{grid-template-columns:1fr}#panel .destination-card{min-height:82px}}
@media(max-height:500px){#panel{max-height:94dvh}#panel .panel-header{padding-top:13px;padding-bottom:12px}#panel .panel-header h2{font-size:21px;margin-top:3px}#panel .close{top:14px}}

/* Compact HUD: keep the centre of the garden clear on phones and in-app browsers. */
.mobile-menu-button{display:none}.action-status{display:flex;align-items:center;gap:10px}.action-status>span{min-width:0}#stopPractice{display:none}
@media(max-width:700px),(pointer:coarse) and (max-height:500px){
 body:not(.admin){--hud-bottom:max(10px,env(safe-area-inset-bottom,0px));--hud-top:max(10px,env(safe-area-inset-top,0px))}
 body:not(.admin) header{top:var(--hud-top);left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));align-items:center;gap:8px}
 body:not(.admin) .brand{height:48px;max-width:calc(100% - 52px);min-width:0;border-radius:19px;padding:6px 10px;gap:7px;overflow:hidden}
 body:not(.admin) .brand-logo{display:block;width:32px;height:32px;object-fit:contain;flex:none}
 body:not(.admin) .brand>div{min-width:0}.brand h1{white-space:nowrap}
 body:not(.admin) .brand h1{font-size:14px;letter-spacing:1px;margin-bottom:2px}
 body:not(.admin) .brand p.organization{font-size:8px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;max-width:130px}
 body:not(.admin) #serverButton{font-size:10px;line-height:1.4;letter-spacing:0;white-space:nowrap;flex:none;padding:7px 0 7px 8px;border-left:1px solid #ffffff30;margin-left:3px}
 body:not(.admin) .mobile-menu-button{display:grid;place-items:center;pointer-events:auto;flex:none;width:44px;height:44px;border-radius:15px;font-size:23px;color:#f8efd9}
 body:not(.admin) header .tools{display:none;position:absolute;top:58px;right:0;width:210px;max-width:calc(100vw - 20px);padding:8px;border-radius:17px;background:#2d493ff2;backdrop-filter:blur(12px);grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;box-shadow:0 12px 28px #122a2940}
 body:not(.admin).mobile-menu-open header .tools{display:grid}
 body:not(.admin) header .tools button{white-space:nowrap;font-size:12px;padding:11px 7px;min-height:44px;border-radius:10px;background:#ffffff0b}
 body:not(.admin) header .tools button:last-child{grid-column:1/-1}
 body:not(.admin) .intro{display:none}
 body:not(.admin) .chant-button{top:calc(var(--hud-top) + 57px);right:max(10px,env(safe-area-inset-right,0px));padding:7px 12px;min-height:34px;font-size:10px}
 body:not(.admin) .chant-player{top:calc(var(--hud-top) + 57px);right:max(10px,env(safe-area-inset-right,0px));max-width:calc(100vw - 20px);padding:6px 9px;gap:7px}
 body:not(.admin).mobile-menu-open .chant-button,body:not(.admin).mobile-menu-open .chant-player{visibility:hidden}
 body:not(.admin) .connection{top:calc(var(--hud-top) + 96px);right:12px;max-width:calc(100vw - 24px);font-size:9px;line-height:1.5;pointer-events:none}
 body:not(.admin) footer{bottom:var(--hud-bottom)}
 body:not(.admin) .controls{display:none}
 body:not(.admin) .actions{max-width:calc(100vw - 24px);padding:4px 7px;gap:0;border-radius:25px;background:#2c493edb}
 body:not(.admin) .actions button{min-width:49px;min-height:57px;padding:6px 8px;gap:3px;font-size:10px;border-radius:20px}
 body:not(.admin) .actions .action-icon{width:24px;height:24px}
 body:not(.admin) .actions button[data-action=bow] .action-icon{width:27px}
 body:not(.admin) .actions .divider{height:25px;margin:0 2px}
 body:not(.admin) .action-status,body:not(.admin) .prompt{left:12px;right:12px;bottom:calc(var(--hud-bottom) + 76px);transform:none;width:auto;max-width:none;white-space:normal;border-radius:16px;min-height:44px;padding:7px 9px 7px 12px;gap:8px;font-size:11px;line-height:1.5;background:#29483de8;z-index:7}
 body:not(.admin) #actionStatusText,body:not(.admin) #promptText{flex:1;min-width:0;overflow-wrap:anywhere}
 body:not(.admin) #actionStatusText{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body:not(.admin) #stopPractice{display:block;flex:none;min-height:36px;padding:7px 12px;border-radius:12px;background:#eee6ca;color:#354c3d;font-size:11px}
 body:not(.admin) .prompt button{min-height:36px;padding:7px 12px;font-size:11px;border-radius:12px}
 body:not(.admin) .prompt kbd{display:none}
 body:not(.admin) #movePad{left:max(12px,env(safe-area-inset-left,0px));bottom:calc(var(--hud-bottom) + 140px);width:60px;height:60px;font-size:30px;z-index:7;background:#29493d80}
 body:not(.admin) .model-loading{bottom:calc(var(--hud-bottom) + 126px);font-size:9px;max-width:calc(100vw - 100px);text-align:center;z-index:5}
 body:not(.admin) .character-name{font-size:10px;min-height:22px;padding:3px 7px;max-width:180px;overflow:hidden;text-overflow:ellipsis}
 body:not(.admin) #toast{top:calc(var(--hud-top) + 96px);min-width:0;max-width:calc(100vw - 28px);font-size:11px;padding:9px 14px}
}
@media(max-width:350px){body:not(.admin) .brand p.organization{display:none}body:not(.admin) .brand{gap:5px}body:not(.admin) .brand h1{font-size:13px}body:not(.admin) #serverButton{font-size:9px}body:not(.admin) .actions button{min-width:45px;padding:6px}}
@media(pointer:coarse) and (max-height:500px){body:not(.admin) .actions button{min-height:46px;padding:5px 9px;font-size:9px}body:not(.admin) .actions .action-icon{width:20px;height:20px}body:not(.admin) .action-status,body:not(.admin) .prompt{left:88px;bottom:calc(var(--hud-bottom) + 60px)}body:not(.admin) #movePad{bottom:calc(var(--hud-bottom) + 65px);width:56px;height:56px}body:not(.admin) .connection{display:none}body:not(.admin) .model-loading{bottom:calc(var(--hud-bottom) + 109px)}}
