/* A small home screen with one-tap modes. */
body:has(dialog[open]){overflow:hidden}
body>header{max-width:1080px;min-height:65px;padding:12px 24px}
body>header .brand{font-size:21px}
body>header .brand-icon{font-size:33px}
body>main{max-width:1080px;margin:auto;padding:17px 24px 110px}
.intro{margin-bottom:16px;align-items:center;gap:12px}
.intro .eyebrow{display:none}
.intro h1{font-size:25px;line-height:1.3;margin:0 0 6px;max-width:none}
.intro p{font-size:11px;line-height:1.5;margin:0}
.heart-wallet{padding:8px 14px;min-width:85px}
.heart-wallet b{font-size:23px}
.heart-wallet small{font-size:8px}
.game-layout{display:block}
.home-panel{border-radius:20px;overflow:hidden}
.room-heading{padding:12px 20px}
.room{height:clamp(380px,56dvh,620px)}
.view-tools{padding:7px 18px}
.pet-info{padding:12px 20px 8px}
.name-row h2{font-size:23px}
.species-label{font-size:9px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:8px 20px 16px}
.stats label{font-size:10px;gap:3px}
.stats .track{height:6px}
.actions{padding:0 16px 16px;gap:10px}
.actions button{padding:9px 5px;min-height:52px}
.actions button>span{font-size:22px}
.actions b{font-size:11px}
.actions small{display:none}
main>footer{justify-content:center;margin-top:16px;padding:0;border:0}
.footer-links{gap:20px;justify-content:center}
.footer-links a,.footer-links button{font-size:10px}
.play-dock{position:fixed;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;width:min(808px,calc(100% - 28px));padding:8px;background:#fffcf5f5;border:1px solid #e3dccb;border-radius:22px;box-shadow:0 5px 30px #64563c20;backdrop-filter:blur(12px)}
.play-dock button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:62px;padding:5px 2px;background:none;border:0;border-radius:13px;color:#776a53;line-height:1.3}
.play-dock button:hover{background:#eef1e4}
.play-dock button:active{background:#e5ecd9;transform:scale(.95)}
.dock-icon{font-size:26px;line-height:1.1}
.play-dock b{font-size:11px;font-weight:700;white-space:nowrap}
.play-dock small{position:absolute;top:0;right:3px;background:#b88371;color:white;padding:3px 5px;border-radius:8px;font-size:8px;line-height:1.2;box-shadow:0 0 0 2px #fffcf5}
.play-dock small.ready{background:#758759}
#mode-dialog{width:min(780px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 36px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #e3dbc9;border-radius:24px;background:#fffcf4;color:#665b48;box-shadow:0 20px 70px #39352830}
#mode-dialog::backdrop{background:#3c3b3266;backdrop-filter:blur(4px)}
.mode-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 25px 18px;border-bottom:1px solid #e9e1d1;background:#fffcf4f7;backdrop-filter:blur(12px)}
.mode-header h2{font-size:24px;margin:7px 0 0}
.mode-header .eyebrow{font-size:9px;letter-spacing:1px}
.mode-header-right{display:flex;align-items:center;gap:14px;flex-shrink:0}
.mode-wallet{color:#ae7c76;font-size:13px;white-space:nowrap}
#close-mode{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:0;background:#eee8d9;color:#897b62;font-size:28px;line-height:1}
.mode-content{padding:0}
.mode-content .hub-panel{padding:23px}
.mode-footer{padding:0 23px 22px}
.mode-footer button{width:100%}
#mode-feedback{margin:16px 23px 0;padding:12px 15px;border:1px solid #dce3cc;border-radius:12px;background:#eef3e3;font-size:12px;line-height:1.7;color:#65744e}
#panel-friends .friends-panel{padding:0;border:0;background:none;box-shadow:none}
#panel-friends #friend-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#panel-friends .friend-grid{grid-template-columns:1fr}
#panel-friends .friend{display:flex;align-items:center;gap:10px;padding:8px;min-height:64px}
#panel-friends .friend img{width:60px;height:48px;margin:0;object-fit:contain}
#panel-friends .friend span{font-size:11px}
#panel-friends .friend-group h3{margin-top:0}
#panel-gifts .welcome-strip{margin:0 0 20px;padding:20px}
#panel-gifts .daily-panel{margin:0;border:1px solid #e6decc;padding:20px}
#mode-dialog .route-card{padding:18px}
#mode-dialog .route-art{font-size:42px;margin-bottom:16px}
#mode-dialog .activity-card h3{font-size:19px}
#play-dialog,#mini-dialog{max-height:calc(100dvh - 28px);overscroll-behavior:contain;overflow:auto}
#mini-dialog .panel-note{margin-top:12px}
/* Keep the drawing fallback in the same smaller proportions as the 3D pets. */
.room:not(.three-ready) .pet-button{width:165px;height:129px}
.room:not(.three-ready) .pet-button.grown{width:182px;height:138px}
.room:not(.three-ready) .pet-button.adult{width:196px;height:147px}
#room-accessory{bottom:133px;font-size:25px}
#room-accessory[data-kind=bow]{bottom:99px;font-size:22px}
@media(max-width:680px){
 body>header{min-height:54px;padding:9px 16px}.brand small{letter-spacing:2px}
 body>main{padding:12px 12px calc(150px + env(safe-area-inset-bottom))}
 .intro{margin-bottom:12px}.intro h1{font-size:20px;letter-spacing:-.6px;margin-bottom:3px}.intro p{font-size:10px;max-width:none}
 .heart-wallet{padding:7px 11px;min-width:74px;column-gap:6px}.heart-wallet b{font-size:21px}.heart-wallet>span{font-size:20px}
 .home-panel{border-radius:17px}.room-heading{padding:10px 14px;font-size:11px}.room{height:clamp(340px,52dvh,510px)}
 .view-tools{padding:6px 12px;gap:7px}.view-tools>span{font-size:8px;max-width:155px;line-height:1.45}.view-tools button{height:28px;min-width:28px}
 .pet-info{padding:9px 14px 5px}.name-row h2{font-size:22px}.name-row{gap:7px}.species-label{font-size:8px}.level{width:105px}
 .stats{padding:7px 14px 12px;gap:10px}.stats label{font-size:9px}.stats .track{height:5px}
 .actions{padding:0 12px 12px;gap:7px}.actions button{min-height:49px;padding:7px 2px}.actions button>span{font-size:20px}.actions b{font-size:10px}
 .play-dock{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px 5px;padding:6px 8px;width:calc(100% - 20px);border-radius:20px;bottom:max(7px,env(safe-area-inset-bottom))}
 .play-dock button{min-height:55px;padding:4px 2px;gap:3px}.dock-icon{font-size:24px}.play-dock b{font-size:10px}.play-dock small{right:7px;top:1px;font-size:8px}
 #mode-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 20px);border-radius:20px}.mode-header{padding:17px 17px 14px}.mode-header h2{font-size:22px}.mode-header-right{gap:10px}.mode-wallet{font-size:12px}#close-mode{width:38px;height:38px}
 .mode-content .hub-panel{padding:17px}.mode-footer{padding:0 17px 17px}#mode-feedback{margin:13px 17px 0;font-size:11px}
 #panel-friends #friend-list{gap:8px}#panel-friends .friend{flex-direction:column;gap:3px;min-height:90px;padding:9px 5px}#panel-friends .friend img{width:66px;height:54px}#panel-friends .friend span{font-size:10px}
 #panel-gifts .welcome-strip{padding:17px}.mode-content .collection-grid{margin-bottom:25px}
 #mode-dialog .route-card{min-height:190px;padding:18px}#mode-dialog .route-art{font-size:42px}
 .room:not(.three-ready) .window{width:65px;height:65px;top:14px}.room:not(.three-ready) .picture{top:15px;width:38px;height:43px}.room:not(.three-ready) .speech{top:16px;z-index:8}.room:not(.three-ready) .plant{transform:scale(.6)}
 .room:not(.three-ready) .pet-button{width:120px;height:90px;bottom:27px}.room:not(.three-ready) .pet-button.grown{width:132px;height:99px;bottom:27px}.room:not(.three-ready) .pet-button.adult{width:144px;height:108px;bottom:27px}.room:not(.three-ready) .rug{bottom:14px;width:220px;height:55px}.room:not(.three-ready) .room-hint{display:none}
 #room-accessory{bottom:104px;font-size:21px}#room-accessory[data-kind=bow]{bottom:63px;font-size:18px}#room-decor{bottom:45px;font-size:25px}#away-note{bottom:40px;font-size:10px;padding:8px 10px}
}
@media(max-height:560px) and (min-width:681px){body>main{padding-bottom:100px}.room{height:250px}.play-dock button{min-height:48px}.dock-icon{font-size:22px}}
