/* Keep the game reachable on small screens and at browser zoom. */
body{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain}
main{flex-shrink:0;min-height:330px}
.game-layout{min-height:250px}
.canvas-wrap{min-height:190px}
.d-home-toolbar{margin:0;padding:7px 6px max(7px,env(safe-area-inset-bottom));gap:5px;background:#fff3d7;border-top:2px solid #d7c29e;flex:0 0 auto}
.d-home-toolbar button{min-height:43px;min-width:0;font-size:10px;white-space:normal;background:#fffaf0;color:#567c69;border:1.5px solid #c7b795;box-shadow:0 3px #e2d1af;border-radius:13px;padding:6px 3px}
.d-home-toolbar button[hidden]{display:none!important}
#mobile-phone{display:flex;align-items:center;justify-content:center;gap:4px;background:#e3efdc;border-color:#9cba9d}
#mobile-phone span{font-size:17px}
.n-goals-link{float:right;background:transparent;border:0;color:#688e71;text-decoration:underline;font-size:11px;margin:0 0 8px}
.n-me-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.n-me-card{padding:0 0 13px;overflow:hidden;text-align:left;border:2px solid #d3bda2;border-radius:20px;background:#fff8e7;color:#66503f;box-shadow:0 4px #eadbc0}
.n-me-card svg{display:block;width:100%;height:auto;border-bottom:1px solid #d3bda2;aspect-ratio:720/440}
.n-me-card b,.n-me-card small{display:block;padding:0 10px;line-height:1.4}
.n-me-card b{font-size:13px;margin-top:10px;color:#547e68}
.n-me-card small{font-size:10px;margin-top:4px;color:#927a64}
.n-me-card:hover{transform:translateY(-2px);border-color:#7f9d85}
.d-place-hero svg,.d-mini-art svg{width:100%;height:auto;display:block}
.d-place-hero{border-radius:22px;overflow:hidden;border:2px solid #cbb494}
.n-quiet-art,.n-chat-scene{position:relative;border:2px solid #cbb494;border-radius:22px;overflow:hidden}
.n-quiet-art svg,.n-chat-scene>svg{display:block;width:100%;height:auto}
.n-chat-person{position:absolute;left:39%;bottom:5%;width:25%}
.n-chat-person svg{display:block;width:100%}
.n-chat-bubble{padding:18px;margin:16px 0;border:2px solid #c7b895;background:#fff8e4;border-radius:18px 18px 18px 3px;color:#5b795e;font-size:15px;line-height:1.5}
.n-breathing{animation:nBreathe 6s ease-in-out infinite}
@keyframes nBreathe{50%{filter:brightness(1.06);box-shadow:0 0 0 6px #b8d6c533}}
.n-cover .dialog{background:#fbf0d8!important;max-width:510px!important;width:100%;height:100dvh;max-height:100dvh;overflow-y:auto!important}
.n-cover #modal-content{height:100%;padding:0!important}
.n-opening{min-height:100%;position:relative;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 15%,#fff6df 0%,#ecdfbe 80%);overflow:hidden}
.n-opening-brand{text-align:center;font-size:9px;letter-spacing:3px;color:#7a8a6d;padding:24px 12px 12px;flex:0 0 auto}
.n-opening-title{position:relative;z-index:1;text-align:center;padding:12px 14px 0}
.n-opening-title small{font-size:9px;letter-spacing:2px;color:#9a805f}
.n-opening-title h1{font-family:'Trebuchet MS',sans-serif!important;font-size:clamp(35px,9vw,52px)!important;letter-spacing:-2px;font-weight:900!important;line-height:1.1!important;color:#3e806c!important;text-shadow:0 3px #fffae8;margin:12px 0 8px!important}
.n-opening-title p{font-size:12px;color:#9b7e62;margin:0;letter-spacing:.3px}
.n-opening-art{flex:1;min-height:225px;margin:0 -15px;display:flex;align-items:center;justify-content:center}
.n-opening-art svg{width:100%;height:auto;max-height:49dvh;min-height:225px;display:block;filter:drop-shadow(0 7px 0 #b6bf8c44)}
.n-opening-actions{position:relative;z-index:2;text-align:center;background:linear-gradient(#fff2d800,#fbf0d8 10%);padding:16px 28px max(20px,env(safe-area-inset-bottom));flex:0 0 auto;margin-top:-12px}
.n-opening-welcome{font-size:20px;font-weight:bold;color:#6a8261}
.n-opening-actions>p{font-size:11px;color:#9c8263;margin:7px 0 14px}
.n-opening-actions .primary{background:#438c77;border:2px solid #347760;box-shadow:0 5px #2f6e59;border-radius:18px;font-size:15px;min-height:50px;margin:0 0 13px;color:#fff8e7}
.n-opening-actions .secondary{font-size:12px;min-height:35px;margin:0;background:#fff8e9;border:1px solid #c8b38c;border-radius:12px;color:#718a65}
.n-opening-links{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:15px;color:#bcaa85}
.n-opening-links button{border:0;background:none;color:#937d5e;font-size:10px;padding:3px}
@media(max-height:650px){.n-opening-brand{padding-top:12px}.n-opening-title{padding-top:2px}.n-opening-title h1{font-size:36px!important;margin:7px 0!important}.n-opening-art svg{max-height:37dvh;min-height:190px}.n-opening-art{min-height:190px}.n-opening-actions{padding:10px 24px 15px}.n-opening-welcome{font-size:17px}.n-opening-actions>p{margin:5px 0 10px}}
@media(prefers-reduced-motion:reduce){.n-breathing{animation:none}}
.n-people-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.n-people-list .choice{text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px}.n-people-list .choice>span{width:66px;height:90px}.n-people-list svg{width:100%;height:100%}.n-people-list b{font-size:13px}.n-people-list small{font-size:10px}
#n-chat-reply[hidden]{display:none!important}
