/* Pomi 1.1: the toy opens a handset experience at every viewport size. */
html{background:#eae7ef;scroll-padding-bottom:100px}
body{min-width:0;min-height:100dvh;background:transparent;overscroll-behavior-y:none}
#app{width:100%;max-width:480px;min-height:100dvh;margin:0 auto;background:var(--paper);box-shadow:0 0 70px #41314e0c}
button,a,input,select,textarea{touch-action:manipulation}
.site-header{height:64px;padding:0 18px;gap:12px;background:#fffefa}
.wordmark{font-size:34px;letter-spacing:-2px;gap:0}
.wordmark small{display:inline;font-size:10px;letter-spacing:1px}
.logo-dot{font-size:21px;margin-right:10px}
.header-end{gap:6px}
.header-end .circle-button,.avatar-button{width:44px;height:44px;display:grid;place-items:center}
.header-end .circle-button{color:#9986ac;background:transparent}
.header-end .circle-button .icon{width:21px;height:21px}
.mini-avatar{width:32px;height:32px}
.desktop-nav{display:none}
.demo-banner{min-height:30px;padding:5px 16px;font-size:10px;gap:6px;justify-content:flex-start}
.demo-banner button{min-height:28px;font-size:10px;margin-left:auto;flex-shrink:0}
.demo-more{font-size:10px}
main{width:100%;max-width:none;padding:18px 16px 28px;overflow:clip}
.page-heading{display:block;position:relative;margin-bottom:20px}
.page-heading h1{font-size:24px;letter-spacing:0;line-height:1.45;margin:0 0 8px}
.eyebrow{font-size:9px;letter-spacing:1.3px;margin:0 0 8px}
.page-description{font-size:13px;line-height:1.8;max-width:none}
.page-heading>.quiet-button{position:static;font-size:12px;min-height:44px;margin-top:12px;padding:10px 14px;border:1px solid var(--line);background:white}
.page-heading>.quiet-button .icon{width:16px;height:16px}
.page-heading>.sample-label{position:static;display:inline-flex;font-size:10px;padding:6px 9px;margin-top:10px}
.h5-welcome{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.h5-welcome h1{font-size:22px;letter-spacing:0;line-height:1.45;margin:3px 0 0;overflow-wrap:anywhere}
.h5-welcome .eyebrow{display:flex;align-items:center;gap:5px;font-family:inherit;font-size:11px;letter-spacing:0;color:#8b799a;margin:0}
.h5-welcome .eyebrow .icon{width:14px;height:14px;color:#9c88b6}
.h5-switch{display:flex;align-items:center;gap:4px;min-height:44px;flex-shrink:0;padding:0 4px 0 10px;font-size:12px;color:#9482a6}
.h5-switch .icon{width:15px;height:15px}
.companion-card{min-height:342px;height:342px;border-radius:26px}
.companion-card:before{width:280px;height:280px;left:18%;top:2%}
.stage-top{inset:14px 16px auto}
.stage-top .circle-button{height:44px;width:44px}
.stage-top .circle-button .icon{height:18px;width:18px}
.stage-model{font-size:9px;letter-spacing:1.4px}
.stage-word{font-size:80px;line-height:.93;letter-spacing:-5px;top:67px;left:18px}
.companion-art{height:278px;width:88%;left:6%;top:6px}
.rabbit-img{width:100%;height:100%;object-fit:contain}
.speech-bubble{font-size:11px;line-height:1.6;max-width:145px;right:14px;top:64px;padding:8px 11px}
.spark-1{font-size:26px;left:7%;top:44%}
.spark-2{font-size:26px;right:5%;top:40%}
.spark-3{font-size:18px;right:12%;top:66%}
.stage-bottom{padding:14px 19px;align-items:center;background:linear-gradient(0deg,#ece7f7ed,#ece7f7b8 65%,transparent)}
.stage-bottom>div{min-width:0;flex:1}
.stage-bottom h2{font-size:27px;letter-spacing:1px;line-height:1.3;margin-bottom:1px;overflow-wrap:anywhere}
.stage-bottom .name-edit{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0}
.stage-bottom .name-edit .icon{width:17px;height:17px}
.stage-bottom .tiny-cap{font-size:9px;letter-spacing:1px;margin-bottom:0}
.stage-bottom p{font-size:11px;letter-spacing:0;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.relationship{min-height:55px;padding:9px 11px;gap:1px 5px;flex-shrink:0}
.relationship strong{font-size:19px}
.relationship span{font-size:10px}
.h5-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:15px 0 13px}
.h5-actions>button{min-height:76px;background:#fffefa;border:1px solid #efebf3;border-radius:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-size:12px;color:#7d678d}
.h5-actions>button>span{width:30px;height:30px;display:grid;place-items:center;border-radius:11px;background:#f0eafb;color:#a087c1}
.h5-actions>button:nth-child(2)>span{background:#fae9de;color:#c29479}
.h5-actions>button:nth-child(3)>span{background:#e8f0e6;color:#8ea087}
.h5-actions .icon{width:18px;height:18px}
.h5-actions strong{font-weight:550}
.h5-mood{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border-radius:17px;padding:13px 14px;min-height:72px}
.h5-mood>span:first-child{font-size:25px}
.h5-mood>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}
.h5-mood strong{font-size:13px;color:#756383;font-weight:550}
.h5-mood small{font-size:11px;line-height:1.5;color:#9b8ba6}
.h5-mood>.icon{width:16px;height:16px;margin-left:auto;flex-shrink:0;color:#a893b9}
.h5-personality{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:13px 2px 0}
.h5-personality span{font-size:10px;color:#9b8ca8;border:1px solid #e7dfed;border-radius:20px;padding:4px 8px}
.h5-personality small{font-size:10px;color:#aaa0b2;margin-left:auto;line-height:1.8}
.section-block{margin-top:25px}
.section-heading h2{font-size:19px;letter-spacing:0}
.section-heading .tiny-cap{font-size:8px;letter-spacing:1.5px}
.text-button{min-height:44px;font-size:12px;gap:5px}
.installed-grid,.apps-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.app-card,.apps-library .app-card{padding:17px 15px;min-height:190px;border-radius:20px}
.app-card h3,.apps-library .app-card h3{font-size:17px}
.app-card p,.apps-library .app-card p{font-size:12px;line-height:1.6}
.app-card-top{margin-bottom:13px}
.app-symbol{width:35px;height:35px}
.app-go,.apps-library .app-go{font-size:12px;margin-top:10px;min-height:44px}
.installed-tag,.category-tag{font-size:9px}
.add-app-card{min-height:94px;grid-column:1/-1;gap:6px}
.add-app-card>span{width:26px;height:26px;margin:0}
.add-app-card strong{font-size:12px}
.add-app-card small{display:none}
.home-bottom{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.memory-preview{padding:17px 18px}
.memory-preview .section-heading{margin-bottom:2px}
.memory-preview h3{font-size:13px}
.memory-preview p{font-size:13px;line-height:1.8}
.memory-preview small{font-size:11px;line-height:1.7}
.planet-invite{padding:20px 17px;gap:12px}
.planet-invite h3{font-size:16px}
.planet-invite .tiny-cap{font-size:7px;letter-spacing:1px}
.planet-invite p{font-size:12px;line-height:1.8}
.site-footer{padding:5px 18px calc(104px + env(safe-area-inset-bottom));gap:12px;font-size:11px;line-height:1.8}
.site-footer>span{width:100%;text-align:center;margin:0;color:#ad9db7}
.site-footer a,.site-footer button{font-size:11px;min-height:44px;display:grid;place-items:center;padding:0 5px}
.bottom-nav{display:flex;left:50%;right:auto;transform:translateX(-50%);width:min(100%,480px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));min-height:70px;background:#fffefaf2}
.bottom-nav>button{width:25%;min-width:0;min-height:52px;font-size:11px;gap:5px;justify-content:center;padding:3px 0}
.bottom-nav .icon{width:22px;height:22px}
.bottom-nav i{display:none}
.bottom-nav>button.active{color:#8f70b3}
.bottom-nav>button.active:before{content:"";position:absolute;top:0;width:44px;height:28px;border-radius:13px;background:#eee5f5;z-index:-1}
.featured-app{min-height:296px;padding:23px 20px}
.featured-copy h2{font-size:25px;line-height:1.6}
.featured-copy p{font-size:12px;line-height:1.8;max-width:210px}
.editor-pick{font-size:10px;margin-bottom:14px}
.featured-copy .dark-button{font-size:12px;min-height:44px}
.feature-character{width:61%;right:-17%;height:75%}
.feature-label{font-size:7px}
.filter-row{gap:6px;flex-wrap:wrap;margin:18px 0 16px}
.filter-chip{min-height:44px;font-size:12px;padding:10px 12px}
.creator-note h3{font-size:14px}
.creator-note p{font-size:12px;line-height:1.8}
.creator-note .text-button{font-size:12px}
.planet-layout{display:flex;flex-direction:column}
.constellation{min-height:410px}
.constellation-head{padding:22px 18px 12px}
.constellation-head h2{font-size:18px}
.constellation-head .tiny-cap{font-size:8px}
.map-counter{font-size:10px}
.star-map{height:295px}
.city-dot{min-width:44px;min-height:44px;justify-content:center;padding:4px}
.city-dot>span{font-size:10px}
.city-dot b{font-size:9px}
.map-legend{font-size:9px;flex-wrap:wrap;line-height:1.7}
.map-legend small{font-size:9px}
.planet-side{display:grid;grid-template-columns:1fr;gap:12px}
.city-detail{padding:20px}
.city-detail .tiny-cap{font-size:8px}
.city-detail h2{font-size:24px;margin:10px 0}
.city-detail>p{font-size:12px}
.mood-share{margin:14px 0 0;padding:14px 0 0;align-items:center}
.mood-share strong{font-size:13px}
.mood-share small{display:block;font-size:11px}
.privacy-card{padding:20px}
.privacy-card h3{font-size:15px}
.privacy-card p{font-size:12px;line-height:1.8}
.privacy-card small{font-size:11px}
.privacy-card .quiet-button{font-size:12px;min-height:44px;padding:10px 12px}
.muted-text{font-size:10px}
.peer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.peer-info h3{font-size:14px}
.peer-info p{font-size:11px}
.peer-info small{font-size:9px}
.memory-hero{height:255px;padding:22px}
.memory-hero h2{font-size:24px;line-height:1.6}
.memory-hero p{font-size:12px}
.memory-hero .tiny-cap{font-size:8px}
.memory-sticker small{font-size:9px}
.memory-item h3{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.memory-item p,.memory-item time{font-size:11px;line-height:1.8}
.memory-item .icon-only{width:44px;height:44px;flex-shrink:0}
.empty-state h3{font-size:17px}
.empty-state p{font-size:13px;line-height:1.8}
.empty-state .primary-button{font-size:13px;min-height:48px}
.modal-backdrop{inset:0 auto 0 50%;transform:translateX(-50%);width:min(100%,480px);padding:0;align-items:stretch;background:var(--paper);backdrop-filter:none;overflow:hidden}
.modal,.play-modal,.postcard-modal{border-radius:0;width:100%;max-width:none;max-height:100dvh;min-height:100%;box-shadow:none;padding:calc(24px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));overscroll-behavior:contain;scrollbar-width:none}
.modal-close{top:calc(14px + env(safe-area-inset-top));right:14px;width:44px;height:44px;background:#f1ebf5;color:#8f78a4}
.modal-close .icon{width:19px;height:19px}
.modal-kicker{font-size:9px;line-height:1.7;letter-spacing:1.2px;padding-right:45px;margin:10px 0 19px}
.modal h2{font-size:23px;padding-right:38px;margin-bottom:12px}
.modal-description{font-size:14px;line-height:1.85}
.field-label{font-size:13px;line-height:1.7}
.field-label>span,.field-label small{font-size:11px}
.modal input:not([type=checkbox]):not([type=radio]),.modal textarea,.modal select{font-size:16px;min-height:48px;max-width:100%}
.field-pair{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
.field-pair>*{min-width:0}
.trait-picker span{min-height:44px;display:flex;align-items:center;font-size:12px;padding:10px 11px}
.theme-picker label{min-height:44px;font-size:11px;padding:9px}
.consent{font-size:12px;line-height:1.8;padding:12px 0}
.modal .primary-button,.modal .quiet-button{font-size:14px;min-height:48px}
.micro-copy{font-size:11px;line-height:1.9}
.play-top{padding:0 52px 0 0;min-height:44px}
.play-top .play-type{font-size:13px}
.play-top .circle-button{width:44px;height:44px}
.play-top .circle-button .icon{width:20px;height:20px}
.play-modal h2{font-size:24px;padding:0;margin:14px 0 6px}
.play-sub{font-size:13px;line-height:1.8}
.wood-stage{height:clamp(250px,45dvh,440px);margin-top:18px;border-radius:22px}
.wood-hit-hint{font-size:11px;padding:9px 13px}
.hit-score{padding:18px 0}
.hit-score>span,.hit-score p{font-size:12px}
.hit-score strong{font-size:40px;margin:8px 0}
.breathing-area{height:290px}
.breath-status strong{font-size:20px}
.breath-status>span{font-size:12px}
.capsule-result strong{font-size:15px;line-height:1.8}
.postcard-preview h3{font-size:17px;line-height:1.8}
.postcard-preview small{font-size:11px}
.button-pair .quiet-button,.postcard-modal .button-pair .primary-button{font-size:12px;min-height:48px}
.toy-option{min-height:90px}
.toy-option strong{font-size:14px}
.toy-option small,.toy-option em{font-size:11px;line-height:1.7}
.setting-list>button{min-height:58px;font-size:14px}
.setting-list strong{font-size:12px}
#toast{max-width:calc(min(100vw,480px) - 36px);font-size:13px;bottom:calc(92px + env(safe-area-inset-bottom));line-height:1.7}
.unknown-page{min-height:100dvh;padding:28px 20px}
.unknown-page p{font-size:14px;overflow-wrap:anywhere}
@media(max-width:360px){.wordmark small{font-size:9px}.wordmark{font-size:31px}.h5-welcome h1{font-size:20px}.h5-welcome .eyebrow{font-size:10px}.companion-card{height:324px;min-height:324px}.companion-art{height:262px}.app-card,.apps-library .app-card{padding:16px 12px}.app-card h3,.apps-library .app-card h3{font-size:16px}.theme-picker{grid-template-columns:1fr 1fr}}
@media print{html,body{background:white}#app{box-shadow:none}.bottom-nav,.site-header,.site-footer,.demo-banner{display:none}.modal-backdrop{position:static;transform:none;width:100%}}
