/* Generated stylesheet. */
/* SOURCE: styles.css */
:root{font-family:Inter,"Noto Sans TC",system-ui,sans-serif;color:#40352c;background:#ddeaf0}*{box-sizing:border-box}body{margin:0;min-height:100vh}.app{width:min(100%,430px);min-height:100dvh;margin:auto;position:relative;overflow:hidden;background:#f7f0e5;box-shadow:0 0 40px #26465730}.screen{display:none;min-height:calc(100dvh - 72px);padding:18px 16px 94px}.screen.active{display:block}.topbar{display:flex;gap:7px;position:relative;z-index:5}.topbar>*{border:0;border-radius:14px;padding:9px 10px;background:#075f89e8;color:white;font-size:12px}.topbar span{margin-right:auto}.helper-card{position:absolute;z-index:4;top:70px;left:16px;display:flex;gap:9px;width:180px;padding:10px;background:#fffdeee8;border-radius:16px;box-shadow:0 5px 18px #17334825}.helper-avatar{font-size:38px}.helper-card small,.helper-card strong{display:block}.helper-card strong{color:#19954c}.helper-card p{font-size:11px;margin:4px 0}.world{position:absolute;inset:0 0 72px;background:linear-gradient(#2aa4e8 0 27%,#a8e6fb 27% 42%,#48b0cc 42% 55%,#c5a674 55%);overflow:hidden}.world:before{content:"";position:absolute;left:-15%;right:-15%;bottom:0;height:53%;background:linear-gradient(145deg,#629350 0 24%,#e7d5a8 24% 52%,#488e9c 52%);clip-path:polygon(0 42%,23% 26%,43% 39%,67% 8%,100% 28%,100% 100%,0 100%)}.theme-neon .world{background:linear-gradient(#100d35,#302064 45%,#110f2a)}.theme-neon .world:before{background:linear-gradient(145deg,#38185d 0 28%,#172c62 28% 57%,#11182e 57%);filter:drop-shadow(0 0 12px #ff3de8);clip-path:polygon(0 30%,25% 17%,46% 31%,65% 12%,100% 24%,100% 100%,0 100%)}.sun{position:absolute;right:22px;top:80px;width:48px;height:48px;background:#ffdb67;border-radius:50%;box-shadow:0 0 30px #fff08e}.theme-neon .sun{background:#b63cff;box-shadow:0 0 30px #00e5ff}.lighthouse{position:absolute;z-index:1;right:50px;top:150px;width:48px;height:140px;background:repeating-linear-gradient(#fff 0 24px,#ef5757 24px 42px);clip-path:polygon(25% 0,75% 0,90% 100%,10% 100%)}.lighthouse i{display:block;width:100%;height:22px;background:#273850}.house{position:absolute;z-index:2;left:45px;top:295px;width:190px;height:145px;border:10px solid #6b492f;border-top-width:48px;background:#f5d79a;clip-path:polygon(50% 0,100% 34%,94% 100%,6% 100%,0 34%)}.house b{position:absolute;bottom:10px;left:35px;background:#205d78;color:white;padding:7px}.theme-neon .house{border-color:#541d70;background:#1f254d;box-shadow:0 0 22px #ff40ea}.dock{position:absolute;z-index:2;left:130px;bottom:0;width:180px;height:140px;background:repeating-linear-gradient(90deg,#7d5735 0 16px,#ac7a48 16px 22px);clip-path:polygon(38% 0,67% 0,100% 100%,0 100%)}.sprite{position:absolute;z-index:3;border:0;background:none;font-size:43px;filter:drop-shadow(0 5px 3px #0005);animation:bob 2s ease-in-out infinite}.tao{left:45px;bottom:160px}.yapi{left:174px;bottom:174px}.yume{right:52px;bottom:155px}.interaction{position:absolute;z-index:4;right:107px;bottom:230px;padding:7px;background:white;border-radius:12px;animation:bob 1.5s infinite}@keyframes bob{50%{transform:translateY(-6px)}}.event-card{position:absolute;z-index:6;left:16px;right:16px;bottom:85px;display:flex;align-items:end;gap:10px;padding:14px;background:#fffaf0ed;border-radius:20px;box-shadow:0 7px 22px #17334835}.event-card small{color:#dc3f78}.event-card h2{font-size:20px;margin:3px 0}.event-card p{font-size:12px;margin:0}.event-card button,.primary,.event-detail button,.next-trip button,.theme-status button{border:0;border-radius:13px;background:#ed477d;color:#fff;padding:12px;font-weight:700}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.page-title h1{margin:0}.page-title span{font-size:13px}.map{height:64dvh;position:relative;background:linear-gradient(#40a9df,#75c1d0);border-radius:24px;overflow:hidden}.map:before{content:"";position:absolute;inset:8% 15%;background:#6fa959;clip-path:polygon(50% 0,79% 17%,100% 44%,79% 72%,57% 100%,24% 84%,0 60%,12% 27%)}.place{position:absolute;z-index:2;border:0;border-radius:13px;background:#fffdf1;padding:8px;display:grid;box-shadow:0 4px 10px #0003}.place small{color:#e83d76}.active-place{top:12%;left:30%}.neon{top:36%;right:6%}.manor{top:53%;left:8%}.beach{bottom:10%;left:35%}.locked{bottom:24%;right:8%;filter:grayscale(1)}.primary{width:100%;margin-top:14px}.companion-list{display:grid;gap:12px}.companion-card{display:flex;align-items:center;gap:14px;padding:14px;background:#fff;border-radius:18px;box-shadow:0 5px 15px #5a47351c}.companion-card .face{font-size:48px}.companion-card div{flex:1}.companion-card h2,.companion-card p{margin:3px}.companion-card button{border:0;border-radius:12px;background:#f1dce5;padding:9px;color:#a52e5b}.companion-card.resident-card{outline:2px solid #ed477d}.event-detail{margin-top:18px;padding:18px;background:#fff;border-radius:22px;text-align:center}.event-detail small{color:#e23872}.event-detail h2{margin:5px}.portraits{display:flex;justify-content:center}.portraits span{font-size:40px;width:62px;height:62px;display:grid;place-items:center;background:#f5e8da;border-radius:50%;margin:-4px}.event-detail strong{display:block;color:#e23872;font-size:20px}.actions{display:flex;gap:6px;margin-top:14px}.actions button{flex:1;padding:9px;font-size:11px}.tabs{display:flex;gap:6px;overflow:auto;margin-bottom:14px}.tabs button{border:0;border-radius:10px;padding:8px 12px;background:#e5ded3}.tabs .selected{background:#ed477d;color:white}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.collectible{min-height:120px;padding:10px 5px;background:#fff;border-radius:15px;text-align:center;box-shadow:0 4px 10px #00000012}.collectible span{font-size:45px;display:block}.collectible b{font-size:13px}.collectible.locked-item{filter:grayscale(1);opacity:.5}.unlock-note{margin-top:15px;padding:14px;background:#fff;border-radius:16px}.profile-card,.resident,.theme-status,.next-trip{display:flex;align-items:center;gap:14px;padding:16px;background:#fff;border-radius:20px;margin-bottom:12px}.profile-avatar{font-size:48px}.profile-card h2,.profile-card p{margin:2px}.profile-card progress{accent-color:#ed477d}.resident strong{margin-right:auto}.resident button,.page-title button{border:0;background:#f3e4e9;border-radius:10px;padding:9px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.stats div{background:#fff;border-radius:16px;padding:16px;text-align:center}.stats b,.stats span{display:block}.stats b{font-size:24px;color:#e43f78}.theme-status div,.next-trip{flex:1}.theme-status h2,.next-trip h2{margin:2px}.next-trip{display:block}.next-trip button{margin-top:8px}.bottom-nav{position:absolute;z-index:20;left:0;right:0;bottom:0;height:72px;display:flex;background:#385b69ee;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{flex:1;border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:22px;opacity:.75}.bottom-nav span{font-size:12px}.bottom-nav .active{color:#ff72a4;opacity:1}dialog{border:0;border-radius:24px;width:min(92%,410px);background:#faf3e8;color:#40352c;padding:0}dialog::backdrop{background:#10263399}dialog form{padding:18px}dialog header{display:flex;justify-content:space-between;align-items:center}dialog header h2{margin:0}dialog header button{border:0;background:none;font-size:20px}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.theme-options button{border:0;border-radius:18px;background:white;padding:8px}.theme-preview{height:130px;display:grid;place-items:center;font-size:50px;border-radius:13px}.coast-preview{background:linear-gradient(#42aff0,#73d3d2,#cdb77a)}.neon-preview{background:linear-gradient(#171244,#572477,#e83cca)}.theme-options b,.theme-options small{display:block;margin-top:5px}.ticket{display:flex;align-items:center;gap:10px;background:#fff;border-radius:18px;padding:12px;margin-top:12px}.ticket time{text-align:center;color:#e43f78}.ticket div{flex:1}.ticket h3,.ticket p{margin:2px}.ticket p,.ticket span{font-size:11px}.ticket span{color:#d43d70}.ticket button{border:1px solid #ddd;background:#fff;padding:10px}.helper-line{padding:13px;background:#e7f4dc;border-radius:14px}
@media(min-width:700px){body{padding:24px}.app{min-height:820px;border-radius:32px}.screen{min-height:748px}}

/* Production pixel-art assets */
.world{background:url("./assets/home-coast-v2.png") center/cover no-repeat}
.theme-neon .world{background:url("./assets/home-neon.png") center/cover no-repeat}
.world #homeCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:3;image-rendering:pixelated}
.world.canvas-ready{background:none}
.world.canvas-ready>.sprite{display:none}
.world:before,.sun,.lighthouse,.house,.dock{display:none}
.sprite{width:104px;height:124px;border:0;background-image:url("./assets/companions.png");background-repeat:no-repeat;background-size:300% 100%;font-size:0}
.tao{left:34px;bottom:150px;background-position:0 center}
.yapi{left:160px;bottom:160px;background-position:50% center}
.yume{right:30px;bottom:148px;background-position:100% center}
.sprite.yume{
  width:128px;
  height:128px;
  background-image:url("./assets/companions/yume/yume-walk.png");
  background-size:768px 512px;
  background-position:0 0;
  image-rendering:pixelated;
  right:auto;
  bottom:auto;
  animation:none;
  filter:drop-shadow(0 5px 3px #10252c66);
  will-change:left,top,background-position;
}
.companion-card .face{display:block;width:62px;height:74px;background-image:url("./assets/companions.png");background-repeat:no-repeat;background-size:300% 100%;font-size:0;flex:0 0 62px}
.companion-card .tao-face{background-position:0 center}
.companion-card .yapi-face{background-position:50% center}
.companion-card .yume-face{background-position:100% center}
.coast-preview{background:url("./assets/home-coast-v2.png") center/cover}
.neon-preview{background:url("./assets/home-neon.png") center/cover}

.scene-hotspot{position:absolute;z-index:7;border:0;border-radius:14px;background:#183d4fd9;color:#fff;padding:8px 11px;box-shadow:0 4px 14px #0004;font-size:11px}
.scene-hotspot span{display:block}.board-hotspot{left:24px;bottom:305px}.board-hotspot span{position:absolute;right:-5px;top:-6px;width:19px;height:19px;border-radius:50%;background:#ed477d;display:grid;place-items:center}.center-hotspot{right:28px;top:225px;width:58px;height:58px;border-radius:50%;border:2px solid #fff8;background:#213e50bb}.center-hotspot span{position:absolute;top:62px;left:50%;width:74px;transform:translateX(-50%);background:#173448d9;padding:5px;border-radius:8px}
.drawer-shade{position:absolute;z-index:38;inset:0;background:#07151a9c;backdrop-filter:blur(2px)}
.companion-drawer{position:absolute;z-index:40;top:0;right:0;bottom:72px;width:88%;max-width:360px;padding:20px;background:#f8f0e5;box-shadow:-12px 0 30px #06131955;transform:translateX(105%);transition:transform .24s ease;overflow:auto}
.companion-drawer.open{transform:translateX(0)}
.companion-drawer>header{display:flex;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #d7cbbb}
.companion-drawer header h2,.companion-drawer header p{margin:2px}.companion-drawer header p{font-size:12px}.companion-drawer header button{margin-left:auto;align-self:flex-start;border:0;background:#e7ddd0;border-radius:50%;width:34px;height:34px}
.drawer-portrait{width:76px;height:88px;flex:0 0 76px;background:url("./assets/companions.png") no-repeat;background-size:300% 100%}
.drawer-portrait.tao-face{background-position:0 center}.drawer-portrait.yapi-face{background-position:50% center}.drawer-portrait.yume-face{background-position:100% center}
.drawer-status{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;padding:15px 0}.drawer-status progress{grid-column:1/-1;width:100%;accent-color:#ed477d}.companion-drawer section{background:#fff;border-radius:17px;padding:14px;margin-bottom:12px}.companion-drawer h3{font-size:14px;margin:0 0 10px}
.current-action{display:flex;gap:10px;align-items:center}.current-action i{color:#39a566}.current-action b,.current-action small{display:block}.current-action small{margin-top:4px;color:#746c65}
.drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drawer-actions button{border:0;border-radius:12px;background:#f4ebe2;padding:12px 7px;font-size:18px}.drawer-actions span{display:block;font-size:11px;margin-top:4px}.drawer-log p{font-size:12px;line-height:1.6;margin:0}
@media(max-width:520px){.companion-drawer{top:auto;left:0;right:0;bottom:0;width:100%;max-width:none;max-height:74%;border-radius:24px 24px 0 0;transform:translateY(105%)}.companion-drawer.open{transform:translateY(0)}}

/* Main companion conversation */
.chat-screen{position:relative;padding:0 0 86px;background:#16394b;overflow:hidden}
.chat-screen:before{content:"";position:absolute;inset:0 0 42%;background:url("./assets/home-coast-v2.png") center/cover no-repeat;filter:saturate(.9) brightness(.82)}
.theme-neon .chat-screen:before{background-image:url("./assets/home-neon.png")}
.chat-header{position:relative;z-index:3;display:flex;align-items:center;gap:12px;padding:16px;color:#fff;background:linear-gradient(#102d3dcc,transparent)}
.chat-header button{width:40px;height:40px;border:1px solid #ffffff55;border-radius:50%;background:#173748b8;color:#fff;font-size:25px}
.chat-header div{flex:1}.chat-header small,.chat-header strong{display:block}.chat-header small{font-size:11px;opacity:.8}.chat-header strong{font-size:17px}
.chat-stage{position:relative;z-index:2;height:46dvh;min-height:330px;display:flex;align-items:flex-end;justify-content:center}
.chat-character{width:260px;height:378px;background:url("./assets/companions.png") no-repeat;background-size:300% 100%;filter:drop-shadow(0 12px 10px #07182188);animation:chat-breathe 2.4s ease-in-out infinite;image-rendering:auto}
.chat-character.tao-face{background-position:0 center}.chat-character.yapi-face{background-position:50% center}.chat-character.yume-face{background-position:100% center}
.chat-character.video-mode,.resident-hero-character.video-mode{background:none;overflow:hidden}
.chat-character.video-mode>div,.resident-hero-character.video-mode>div{width:100%;height:100%}
.chat-mood{position:absolute;right:18px;top:58px;padding:8px 12px;border-radius:18px;background:#173748d9;color:#fff;font-size:12px}
.chat-content{position:relative;z-index:4;margin-top:-20px;padding:0 14px}
.dialogue-card{padding:17px;background:#fffaf0f2;border:1px solid #fff8;border-radius:23px;box-shadow:0 14px 34px #06151e66;backdrop-filter:blur(12px)}
.dialogue-card>small{color:#e43d78;font-weight:800}.dialogue-card>p{min-height:72px;margin:8px 0 13px;line-height:1.6;font-size:15px}
.quick-replies{display:flex;gap:6px;overflow-x:auto}.quick-replies button{flex:0 0 auto;border:1px solid #e8bfd0;border-radius:14px;padding:8px 10px;background:#fff;color:#a32e5c;font-size:11px}
.chat-input{display:flex;gap:8px;margin-top:10px}.chat-input input{min-width:0;flex:1;border:1px solid #ffffff55;border-radius:20px;padding:12px 14px;background:#ffffffea;font-size:15px}.chat-input button{width:44px;border:0;border-radius:50%;background:#ed3e86;color:#fff;font-size:18px}.chat-input button:first-child{background:#284c5d}
.chat-tools{display:flex;justify-content:space-around;margin-top:8px}.chat-tools button{border:0;background:none;color:#fff;font-size:20px}.chat-tools span{display:block;font-size:10px;margin-top:2px}
@keyframes chat-breathe{50%{transform:translateY(-5px) scale(1.01)}}

/* Resident companion main experience */
.resident-screen{position:relative;padding:0 0 86px;background:#143a4c;overflow:hidden}
.home-page-label{position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;padding:10px 15px 0;color:#fff}.home-page-label b{font-size:18px}.home-page-label span{padding:4px 7px;border:1px solid #ffffff55;border-radius:9px;background:#102d3dbb;font-size:9px;letter-spacing:.08em}
.resident-bg{position:absolute;inset:0;background:url("./assets/home-coast-v2.png") center/cover no-repeat;filter:brightness(.78) saturate(1.08);transform:scale(1.03)}
.theme-neon .resident-bg{background-image:url("./assets/home-neon.png")}
.resident-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(#071c2b44 0 45%,#132a32cc 70%,#142630 100%)}
.resident-topbar{position:relative;z-index:3;display:flex;gap:8px;padding:14px 13px}
.resident-topbar button{display:flex;align-items:center;gap:7px;min-width:0;border:1px solid #ffffff42;border-radius:17px;padding:8px 10px;background:#133243c9;color:#fff;text-align:left;backdrop-filter:blur(9px)}
.resident-topbar button:first-child{flex:1}.resident-topbar small,.resident-topbar strong{display:block}.resident-topbar small{font-size:9px;opacity:.72}.resident-topbar strong{font-size:12px}.resident-topbar span{margin-left:auto}
.resident-hero{position:relative;z-index:2;height:46dvh;min-height:330px;display:flex;align-items:flex-end;justify-content:center}
.resident-hero-character{width:300px;height:415px;background:url("./assets/companions.png") no-repeat;background-size:300% 100%;filter:drop-shadow(0 14px 11px #05151d99);animation:chat-breathe 2.5s ease-in-out infinite}
.resident-hero-character.tao-face{background-position:0 center}.resident-hero-character.yapi-face{background-position:50% center}.resident-hero-character.yume-face{background-position:100% center}
.resident-mood{position:absolute;top:55px;right:18px;padding:8px 12px;border-radius:18px;background:#18394ddd;color:white;font-size:12px}
.home-portal{position:absolute;left:14px;bottom:36px;display:grid;grid-template-columns:auto 1fr;gap:0 7px;border:1px solid #ffffff55;border-radius:17px;padding:9px 11px;background:#15394bd9;color:#fff;text-align:left;box-shadow:0 6px 18px #06151f55}.home-portal b{grid-row:1/3;font-size:23px}.home-portal span{font-size:12px;font-weight:800}.home-portal small{font-size:9px;opacity:.75}
.resident-interface{position:relative;z-index:4;margin-top:-30px;padding:0 14px}
.resident-dialogue{padding:16px;background:#2a211be8;color:#fff;border:1px solid #ffffff25;border-radius:24px;box-shadow:0 12px 32px #07161e77;backdrop-filter:blur(14px)}
.resident-dialogue>small{color:#ff4b9a;font-weight:800}.resident-dialogue>p{min-height:68px;margin:8px 0 12px;line-height:1.65;font-size:14px}
.resident-chips{display:flex;gap:7px;overflow:auto}.resident-chips button{border:1px solid #ffffff36;border-radius:15px;padding:8px 10px;background:#ffffff12;color:#fff;font-size:10px}
.main-chat-input{display:flex;gap:8px;margin-top:9px}.main-chat-input input{min-width:0;flex:1;border:1px solid #ffffff4a;border-radius:21px;padding:12px 14px;background:#3a322dcc;color:#fff;font-size:14px}.main-chat-input input::placeholder{color:#ffffff88}.main-chat-input button{width:43px;border:0;border-radius:50%;background:linear-gradient(135deg,#ff218f,#a725eb);color:#fff;font-size:18px}.main-chat-input button:first-child{background:#342e38cc}
.main-actions{display:flex;justify-content:center;gap:12px;margin-top:9px}.main-actions button{position:relative;width:57px;border:0;background:none;color:#fff}.main-actions i{width:43px;height:43px;margin:auto;display:grid;place-items:center;border:1px solid #ffffff55;border-radius:50%;background:#203b49aa;font-size:20px;font-style:normal}.main-actions span{display:block;margin-top:3px;font-size:9px}.main-actions b{position:absolute;right:2px;top:-3px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#ee356b;font-size:9px}
.selector-dialog header>div{flex:1}.selector-dialog header small{color:#a45b72}.selector-options,.experience-options{display:grid;gap:9px;margin-top:15px}.selector-options button,.experience-options button{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #eadfd3;border-radius:17px;padding:10px;background:#fff;text-align:left}.selector-options button.selected{border:2px solid #ee4781;background:#fff2f7}.selector-options div,.experience-options div{flex:1}.selector-options b,.selector-options small,.experience-options b,.experience-options small{display:block}.selector-options small,.experience-options small{margin-top:3px;color:#7d746b;font-size:10px}.selector-options em,.experience-options em{color:#dd3f77;font-size:11px;font-style:normal}.mini-character{display:block;width:54px;height:64px;background:url("./assets/companions.png") no-repeat;background-size:300% 100%}.mini-character.tao-face{background-position:0 center}.mini-character.yapi-face{background-position:50% center}.mini-character.yume-face{background-position:100% center}.selector-note{padding:10px;background:#efe8df;border-radius:12px;color:#746b63;font-size:10px}.experience-cover{width:70px;height:57px;flex:0 0 70px;display:grid;place-items:center;border-radius:12px;font-size:27px}.yehliu-cover{background:linear-gradient(#53b6e9,#76d2c7,#dfc887)}.shinsuya-cover{background:linear-gradient(#241247,#813e96,#eb5fc5)}
.bottom-nav button{font-size:19px}

/* Visual system aligned with the pixel-art concept boards */
:root{--ink:#2d251d;--panel:#33291f;--panel-2:#443522;--gold:#bb8b49;--cream:#f5eee2;--pink:#ec4a8c;--line:#765a32}
.affinity-pill{position:absolute;z-index:5;top:54px;left:14px;display:grid;grid-template-columns:auto auto auto;align-items:center;gap:4px;padding:7px 10px;border:1px solid #ffffff48;border-radius:18px;background:#17394bd8;color:#fff;font-size:11px}.affinity-pill i{grid-column:2/4;width:80px;height:4px;border-radius:3px;background:linear-gradient(90deg,var(--pink) 72%,#ffffff35 72%)}
.page-title small{display:block;margin-bottom:3px;color:#a88c65;font-size:10px;letter-spacing:.05em}.screen[data-screen="explore"],.screen[data-screen="collection"],.screen[data-screen="profile"],.screen[data-screen="companions"]{background:linear-gradient(150deg,#30271f,#171c1c);color:#f8eddb}
.screen[data-screen="explore"] .page-title span,.screen[data-screen="collection"] .page-title span{padding:6px 9px;border:1px solid #806540;border-radius:12px;background:#3d3022;color:#f4d7a5}
.screen[data-screen="explore"] .map{height:68dvh;background:url("./assets/home-coast-v2.png") center/cover no-repeat;border:2px solid #6f5736;box-shadow:inset 0 0 40px #0008,0 10px 25px #0004}
.screen[data-screen="explore"] .map:before{display:none}.screen[data-screen="explore"] .place{border:1px solid #8c6c40;background:#34291fe9;color:#f8eddb;box-shadow:0 5px 14px #0008}.screen[data-screen="explore"] .place small{color:#69cf84}.screen[data-screen="explore"] .primary{background:linear-gradient(90deg,#db3d7d,#f06499);box-shadow:0 7px 18px #e8457a44}
.screen[data-screen="collection"] .tabs button{border:1px solid #6e5536;background:#3c3023;color:#d8c5a7}.screen[data-screen="collection"] .tabs .selected{border-color:#f05a93;background:var(--pink);color:white}
.screen[data-screen="collection"] .collection-grid{grid-template-columns:repeat(3,1fr)}.screen[data-screen="collection"] .collectible{min-height:112px;border:1px solid #755a35;background:linear-gradient(#5a472f,#35291c);color:#f6e8d2;box-shadow:inset 0 0 0 2px #2a211a,0 4px 10px #0005}.screen[data-screen="collection"] .collectible span{height:70px;display:grid;place-items:center;border-radius:9px;background:#b79d7133}.screen[data-screen="collection"] .unlock-note{border:1px solid #725936;background:#3a2d21;color:#f3dfc0}
.screen[data-screen="profile"] .profile-card,.screen[data-screen="profile"] .resident,.screen[data-screen="profile"] .theme-status,.screen[data-screen="profile"] .next-trip{border:1px solid #735a38;background:linear-gradient(135deg,#493722,#2d251c);color:#f7e8d3}.screen[data-screen="profile"] .stats div{border:1px solid #745a36;background:#392d21}.screen[data-screen="profile"] .stats b{color:#f15b95}.achievement-panel{padding:16px;border:1px solid #735a38;border-radius:20px;background:#352a20}.achievement-panel>small{color:#d9bd91}.achievement-panel>div{display:flex;gap:8px;margin-top:10px;overflow:auto}.achievement-panel span{min-width:72px;text-align:center;font-size:32px}.achievement-panel b{display:block;margin-top:4px;font-size:9px;color:#f4dfc1}.achievement-panel .locked-badge{filter:grayscale(1);opacity:.55}
.screen[data-screen="companions"] .companion-card,.screen[data-screen="companions"] .event-detail{border:1px solid #755a37;background:#3b2e21;color:#f7e7d0}.screen[data-screen="companions"] .companion-card.resident-card{outline:2px solid var(--pink)}
dialog{background:var(--cream)}#scheduleDialog{background:linear-gradient(145deg,#362a20,#1e1b18);color:#f8ead5}#scheduleDialog .ticket{border:1px solid #765a34;background:linear-gradient(135deg,#4b3824,#30251c);color:#f8ead5}#scheduleDialog .ticket time{color:#f4d4a0}#scheduleDialog .helper-line{background:#465a32;color:#eff4d4}.qr-code{width:45px;height:45px;padding:0!important;border:5px solid #fff!important;background:repeating-conic-gradient(#1b1815 0 25%,#fff 0 50%) 50%/10px 10px!important;box-shadow:0 0 0 2px #d2b68e}
.event-card{border:1px solid #ffffffa0;background:#f8f0e4f2}.helper-card{border:1px solid #ffffffaa}.topbar>*{box-shadow:inset 0 0 0 1px #ffffff29}.resident-dialogue{border-color:#9c7950;background:linear-gradient(135deg,#392a20ee,#201b17ee)}

.collectible-art{height:72px!important;background-image:url("./assets/collectibles-sheet.png")!important;background-repeat:no-repeat!important;background-size:400% 400%!important;background-position:calc(var(--ix) * 33.333%) calc(var(--iy) * 33.333%)!important;image-rendering:auto}
.achievement-panel span{font-size:inherit}.badge-art{display:block;width:66px;height:66px;margin:auto;background-image:url("./assets/badges-sheet.png");background-repeat:no-repeat;background-size:400% 200%;border-radius:50%}.badge-0{background-position:0 0}.badge-1{background-position:33.333% 0}.badge-2{background-position:66.666% 0}.badge-3{background-position:100% 0}.badge-4{background-position:0 100%}.badge-5{background-position:33.333% 100%}.badge-6{background-position:66.666% 100%}.badge-7{background-position:100% 100%}

/* SOURCE: services.css */
/* Exploration and venue handoff, retained independently from home styling. */
.screen[data-screen="explore"]{background:#f6f5ec;color:#334b43;padding-top:24px}
.screen[data-screen="explore"] .page-title small{font-size:14px;color:#54745f}
.venue-source{font-size:14px;line-height:1.6;min-height:44px;color:#597164}
.venue-map{position:relative;height:320px;border-radius:22px;background:linear-gradient(#15364711,#15364755),url('./assets/home-coast-v2.png') center 45%/cover;overflow:hidden}
.venue-map>small{position:absolute;top:12px;left:12px;background:#fffef1ed;padding:7px 10px;border-radius:10px;font-size:12px}
.venue-pin{position:absolute;padding:12px;background:#fffef0;border:2px solid white;color:#2f5546;border-radius:14px;max-width:46%;font-size:14px;box-shadow:0 4px 10px #13363133}
.pin-0{top:24%;left:8%}
.pin-1{top:52%;right:8%}
.pin-2{bottom:8%;left:5%}
.pin-3{top:17%;right:2%}
.venue-pin[aria-pressed=true]{border-color:#e64a86;background:#fff2f6}

.venue-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.venue-toolbar h2{font-size:18px}
.venue-toolbar button{border:0;background:transparent;color:#37674f;font-size:14px;min-height:44px}
.venue-list{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
.venue-list button{border:1px solid #b8c9b8;background:white;color:#3d5d4a;padding:12px;border-radius:12px;font-size:14px}
.venue-list button[aria-pressed=true]{background:#37684f;color:white}
.venue-detail{background:#fffdf7;border:1px solid #d6ddcf;border-radius:18px;padding:18px}
.venue-detail h2{font-size:22px;margin:8px 0}
.venue-detail p{font-size:16px;line-height:1.6}
.venue-detail>small{color:#507b59;font-size:14px}
#venueLaunchNote{font-size:14px;color:#68786b}
.venue-actions{display:grid;gap:10px}
.venue-actions a,.venue-actions button{display:block;text-align:center;border:1px solid #bdd0bd;border-radius:12px;padding:13px;background:white;color:#37634b;font-size:16px;text-decoration:none}
.venue-actions a:first-child{background:#37684f;color:white;border-color:#37684f}
#visitTime{display:block;width:100%;margin:12px 0;padding:12px;border:1px solid #b8c9b8;border-radius:12px;font-size:16px;min-width:0}
#planError{color:#a43349}
button:disabled{opacity:.55;cursor:wait}
.ticket div{min-width:0}
.ticket h3{overflow-wrap:anywhere}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}
}


/* SOURCE: home.css */
/* v28: home scene geometry and shared controls. Legacy exploration lives in services.css. */
:root{--home-ink:#163c4d;--home-pink:#e44982;--home-blue:#197f9f;--home-cream:#fff5e4;font-family:system-ui,"Noto Sans TC",sans-serif}
*{box-sizing:border-box}
body{margin:0;padding:0;background:#d9e5e9}
button,input,a{font:inherit}
button{cursor:pointer}
button,[role=button]{min-height:44px}
button[hidden],[hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #00a6d7;outline-offset:3px}
.icon{display:block;width:24px;height:24px;flex:none;fill:currentColor}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}
.icon-duotone{display:none}
.active [data-icon-active] .icon-regular{display:none}
.active [data-icon-active] .icon-duotone{display:block}

#app{width:min(100%,460px);height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;margin:auto;border-radius:0;overflow:hidden;background:#193947;box-shadow:0 0 42px #1c3d4b30}
#app>.screen{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding-bottom:24px}
#app>.screen.active{display:block}
#app>.home-screen{position:relative;padding:0;background:linear-gradient(#16374944,#163749cc),url("./assets/indoor/room.png") center bottom/cover;color:#fff8eb}
#app>.home-screen.active{display:block}

.home-scene-window{height:auto;aspect-ratio:1;position:relative;overflow:hidden;isolation:isolate}
.home-stage{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;isolation:isolate}
.home-room-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0}
.home-header{position:absolute;z-index:6;top:0;left:0;right:0;padding:10px 14px 4px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(#1a3b5480,transparent);color:#fff9ee}
.home-header h1{font-size:24px;line-height:1.2;margin:0;text-shadow:0 2px 8px #173f54}
.home-header>div{display:flex;align-items:center;gap:9px}
.home-header button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #fff8;background:#1c415bc9;color:#fff8ec;border-radius:50%;backdrop-filter:blur(10px)}
.home-affinity{display:flex;align-items:center;gap:6px;padding:6px 9px;background:#203e53b8;border:1px solid #ffffff66;border-radius:16px;font-size:12px;backdrop-filter:blur(8px)}
.home-affinity .icon{width:16px;height:16px;color:#ff93b8}

.home-context{position:absolute;z-index:6;top:62px;left:14px;right:14px;display:flex;gap:7px}
.home-context button{display:flex;align-items:center;gap:7px;min-height:44px;min-width:0;max-width:65%;padding:6px 10px;border:1px solid #fff7;background:#193c51c9;color:#fff9ee;backdrop-filter:blur(10px);border-radius:14px;font-size:14px}
.home-context button>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-context .icon{width:17px;height:17px}
.home-context #residentSwitchButton{margin-left:auto}
.home-mood{position:absolute;right:12px;bottom:64px;z-index:4;padding:6px 10px;border:1px solid #fff7;background:#173b50b8;color:#fff9ec;font-size:12px;border-radius:18px;backdrop-filter:blur(8px)}

.home-avatar,.home-avatar-fallback{position:absolute;z-index:2;left:27%;bottom:10%;width:47%;height:61%;pointer-events:none;filter:drop-shadow(0 7px 5px #18363b35)}
.home-avatar>div{width:100%;height:100%}
.home-avatar-fallback{left:50%;width:auto;aspect-ratio:572.333 / 916;transform:translateX(-50%);background-image:url('./assets/companions.png');background-repeat:no-repeat;background-size:300% 100%}
.home-avatar-fallback.yapi-face{background-position:50% center}
.home-avatar-fallback.tao-face{background-position:0 center}
.home-avatar-fallback.yume-face{background-position:100% center}
.home-character-touch{position:absolute;z-index:3;left:29%;bottom:12%;width:43%;height:56%;background:transparent;border:0;border-radius:40%}
.home-character-touch:disabled{pointer-events:none}

.home-object{position:absolute;z-index:4;width:15%;aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:8px;background:transparent;transform:translate(-50%,-100%);min-height:44px;min-width:44px}
.home-object img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.home-object:disabled{opacity:1;pointer-events:none}
.home-object.empty:disabled{visibility:hidden}
.home-object.empty{color:white;font-size:26px}
.home-object.slot-0{left:9.3%;top:27%}
.home-object.slot-1{left:9.3%;top:44%}
.home-object.slot-2{left:9.3%;top:60.7%}
.editing .home-object{border:2px dashed white;background:#ffc95c33;box-shadow:0 0 0 1px #6c512e}
.home-scene-actions{position:absolute;z-index:6;bottom:10px;left:14px;right:14px;display:flex;justify-content:space-between;gap:8px}
.home-scene-actions button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;border-radius:14px;border:1px solid #fff8e9;background:#fff4e4e6;backdrop-filter:blur(8px);color:#163e52;font-weight:650;font-size:14px;box-shadow:0 3px 10px #19394a22}
.home-scene-actions .icon{width:20px;height:20px}
.home-scene-actions #finishDecorating{background:#245e55e8;color:white}

.home-content{position:relative;z-index:7;display:flex;flex-direction:column;gap:8px;padding:8px 12px 10px}
.home-video-status{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.4;color:#e9f1f4;padding:4px 6px}
.home-video-status span{flex:1}
.home-video-status button{flex:none;min-height:36px;background:#2b5368;color:white;border:1px solid #86a9b8;border-radius:10px;padding:5px 10px;font-size:12px}
.home-edit-hint{margin:0;padding:12px;border:1px solid #f0d49b;background:#fff0d8;color:#4c4938;border-radius:14px;line-height:1.5;font-size:14px}
.home-screen.is-editing .home-video-status,.home-screen.is-editing .home-reminder,.home-screen.is-editing .home-talk,.home-screen.is-editing .home-mood{display:none}

.home-reminder{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;border:1px solid #fff1d9;background:#fff4e5d6;color:#244052;box-shadow:0 4px 14px #0f293a2b,inset 0 1px #fff;backdrop-filter:blur(10px)}
.home-reminder>div{flex:1;min-width:0}
.home-reminder small{display:block;font-size:12px;color:#667784}
.home-reminder h2{font-size:16px;margin:3px 0;line-height:1.3;overflow-wrap:anywhere}
.home-reminder p{font-size:14px;margin:0;line-height:1.4}
.home-reminder>span{color:#197e9f}
.home-reminder button{display:grid;place-items:center;flex:none;width:44px;padding:0;border:1px solid #e674a0;border-radius:12px;background:#fff8f4;color:#d73476}

.home-talk{border:1px solid #f7dba284;border-radius:20px;padding:12px;background:linear-gradient(135deg,#233f52c9,#182e40d9);box-shadow:0 5px 20px #061d3040,inset 0 1px #fff2;backdrop-filter:blur(12px)}
.home-talk>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-talk strong{font-size:15px;color:#ff99be}
.home-talk small{font-size:12px;color:#b9cbd6}
.home-talk>p{font-size:16px;line-height:1.5;margin:7px 0 10px;overflow-wrap:anywhere}
.home-replies{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.home-replies button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 6px;min-height:40px;border-radius:14px;border:1px solid #ea84aa;background:#bd467341;color:#ffe7f0;font-size:14px}
.home-replies button+button{background:#218bac3a;border-color:#72c4e0;color:#daf7ff}
.home-replies .icon{width:18px;height:18px}
.home-input{display:flex;gap:8px;margin-top:10px}
.home-input input{display:block;flex:1;min-width:0;padding:10px 12px;min-height:44px;font-size:16px;border:1px solid #fff9;border-radius:14px;background:#fff8eef2;color:#224253}
.home-input input::placeholder{color:#6a7b83}
.home-input button{display:grid;place-items:center;flex:0 0 44px;border-radius:14px;border:1px solid #ffabc9;background:#e54883;color:white}
.home-outdoor{display:flex;gap:7px;align-items:center;justify-content:center;align-self:center;border:0;background:transparent;color:#d8e8ec;font-size:12px;min-height:32px;padding:4px 6px}
.home-outdoor .icon{width:16px;height:16px}

#app>.bottom-nav{position:relative;inset:auto;transform:none;flex:none;display:flex;width:100%;height:auto;min-height:64px;border-radius:20px 20px 0 0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#fff5e8f2;border:1px solid #fff1d7;box-shadow:0 -4px 16px #092c3a20;z-index:20;backdrop-filter:blur(12px)}
.bottom-nav button{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#677580;background:transparent;border:0;opacity:1;min-height:48px}
.bottom-nav button>[data-icon]{display:grid;place-items:center;width:46px;height:29px;border-radius:14px}
.bottom-nav button>span:not([data-icon]){font-size:12px;margin:0}
.bottom-nav button.active{color:#d83978}
.bottom-nav button.active>[data-icon]{background:#f9dce9}

dialog{max-height:88dvh;overflow:auto;overscroll-behavior:contain}
dialog form{padding:18px}
dialog p{font-size:16px;line-height:1.6}
dialog header h2{font-size:20px}
dialog header button{display:grid;place-items:center;min-width:44px;min-height:44px}
dialog::backdrop{background:#12354880;backdrop-filter:blur(4px)}
#roomDialog,#scheduleDialog,#friendsDialog,#planDialog{position:fixed;inset:auto 0 0;width:min(100%,460px);max-width:100%;max-height:85dvh;margin:0 auto;border-radius:24px 24px 0 0;border:1px solid #e4d3b8;background:#fff7eb;color:#244453;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -10px 32px #0f2c4033}
#scheduleDialog .ticket{background:#fffdf5;color:#254456;border:1px solid #d9d7c6}
#scheduleDialog .ticket p{font-size:14px}
#scheduleDialog .helper-line{color:#425f57;background:#e4eee1}
#toggleReminder{padding:10px;background:white;border:1px solid #b5cbbf;border-radius:12px;color:#365c4d}
.slot-tabs{display:flex;gap:7px;margin:12px 0}
.slot-tabs button{flex:1;background:white;border:1px solid #b8c8bd;border-radius:10px;color:#315d50;font-size:14px}
.slot-tabs button[aria-pressed=true]{background:#285f58;color:white}
.room-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.room-options button{border:1px solid #d0d5c3;border-radius:14px;background:white;padding:12px;color:#365748;font-size:14px}
.room-options button[aria-pressed=true]{outline:3px solid #45857c;background:#edf6ed}
.room-options img{display:block;width:72px;height:72px;object-fit:contain;margin:auto}
.room-note{font-size:14px!important;color:#69796f}
.room-save{width:100%;padding:12px;border:0;background:#2b665c;color:white;border-radius:12px}
#visitTime{display:block;width:100%;min-width:0;padding:12px;border:1px solid #b5c8bf;border-radius:12px;font-size:16px;margin:10px 0}
#planError{color:#a63b55}
.ui-toast{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:90%;z-index:50;padding:12px 18px;border-radius:14px;background:#244e48;color:white;box-shadow:0 4px 18px #123e4044;font-size:14px;pointer-events:none}
.license-link{display:block;padding:16px 0;color:#d8e7d5;font-size:14px}

@media(min-width:700px){body{padding:16px}
#app{height:calc(100dvh - 32px);border-radius:26px}
}
@media(max-width:350px){.home-header h1{font-size:22px}
.home-content{padding-inline:10px}
.home-talk{padding:10px}
.home-replies button{font-size:14px;gap:4px}
.home-context{left:10px;right:10px}
}
@media(prefers-reduced-motion:no-preference){dialog[open]{animation:panel-in .16s ease-out}
.bottom-nav button{transition:color .16s}
.home-object{transition:background-color .16s}
}
@keyframes panel-in{from{opacity:0;transform:translateY(12px)}
to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


.home-screen:focus-within .home-input{scroll-margin-bottom:20px}

.home-object{touch-action:manipulation}

.home-screen.is-editing .home-context{visibility:hidden}

.home-video-status[data-state="loading"]{min-height:36px}

.home-video-status[data-state="error"]{border:1px solid #fff5;border-radius:12px;background:#193c51d9}


/* SOURCE: motion.css */
/* Outdoor owns its positioning context; navigation occupies its own flex row. */
#app>.screen[data-screen="home"]{position:relative;padding:12px;overflow:hidden;isolation:isolate}
#app [data-screen="home"] .world{inset:0;background-color:#193947;background-size:contain;background-position:center;background-repeat:no-repeat}
#app .world #homeCanvas{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:auto;height:auto;max-width:none;max-height:none}
#app [data-screen="home"] .topbar{flex-wrap:wrap;gap:6px}
#app [data-screen="home"] .topbar button{min-height:40px;background:#153f55c9;backdrop-filter:blur(10px);border:1px solid #ffffff40}
#app [data-screen="home"] .helper-card{top:112px;max-width:45%;background:#fffdeecc;backdrop-filter:blur(10px);pointer-events:none}
#app [data-screen="home"] .event-card{bottom:12px;background:#fff4e4cf;backdrop-filter:blur(12px)}
#app [data-screen="home"] .board-hotspot{left:12px;top:auto;bottom:130px}
#app [data-screen="home"] .center-hotspot{right:12px;left:auto;top:auto;bottom:130px}
#app>.bottom-nav{z-index:20}
button,a{-webkit-tap-highlight-color:transparent}
button:active{filter:brightness(.94)}
button:focus-visible,a:focus-visible{outline:3px solid #f2ad58;outline-offset:3px}
@media(max-height:600px){#app [data-screen="home"] .helper-card{display:none}#app [data-screen="home"] .event-card p{display:none}#app [data-screen="home"] .board-hotspot,#app [data-screen="home"] .center-hotspot{bottom:96px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* This version's interruptible controller owns dialog motion. */
dialog[open]{animation:none}
/* Auxiliary tasks slide from the bottom; desktop keeps a centered dialog. */
@media(max-width:699px){dialog{margin:auto auto 0;width:min(100%,460px);max-width:100%;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}}

/* SOURCE: rebuild.css */
/* v30: Pixel world + quiet, legible interface. Shared routes remain compatible. */
:root{--ink:#233f43;--teal:#287a78;--paper:#f6f1e6;--line:#365a4c26;--glass:#fffaf0e8}
body{background:#dfe8e2;color:var(--ink)}
#app{background:var(--paper);box-shadow:0 20px 70px #1a473723}
#app>.home-screen{background:var(--paper);color:var(--ink)}
.home-scene-window{padding-top:110px;aspect-ratio:auto;height:auto;overflow:visible;background:#f6f1e6}
.home-stage{position:relative;inset:auto;aspect-ratio:1;width:100%;height:auto;overflow:hidden}
.home-room-art{object-fit:contain;image-rendering:pixelated}
.home-header{height:66px;padding:12px 18px;background:none;color:var(--ink)}
.home-header h1{font-size:23px;letter-spacing:-.7px;text-shadow:none;font-weight:750}
.home-header h1 small{display:block;font-size:10px;font-weight:600;letter-spacing:1.3px;color:#627b70;margin-bottom:4px}
.home-header button{background:#fff9ef;color:var(--ink);border-color:var(--line);box-shadow:none;backdrop-filter:none}
.home-affinity{background:none;border:0;color:#5d7269;gap:4px;padding:0;font-size:11px;backdrop-filter:none}
.home-affinity .icon{color:#a5746a}
.home-context{top:66px;left:18px;right:18px;gap:8px;height:44px}
.home-context button{min-height:38px;height:38px;background:#e9eee6;border-color:transparent;color:var(--ink);border-radius:10px;font-size:12px;backdrop-filter:none}
.home-avatar{display:none}
#pixelResident{position:absolute;z-index:2;width:35%;height:auto;left:32.5%;bottom:13%;image-rendering:pixelated;filter:drop-shadow(0 5px 2px #25423229);pointer-events:none}
.home-avatar-fallback{height:40%;bottom:13%}
.home-character-touch{left:32%;bottom:13%;width:36%;height:40%;border-radius:18px}
.home-scene-actions{left:16px;right:auto;bottom:12px;gap:6px}
.home-scene-actions button{background:var(--glass);border:1px solid #fff9;box-shadow:0 3px 12px #28392916;border-radius:11px;min-height:40px;padding:7px 10px;font-size:12px;color:var(--ink)}
.home-scene-actions .icon{width:17px;height:17px}
.home-mood{right:14px;bottom:16px;max-width:35%;background:#fff7e6df;color:#405b51;border-color:#fff9;backdrop-filter:none}
.home-object{width:13%;min-width:0;min-height:0;border-radius:6px}
.home-object.slot-0{left:9.3%;top:27%}
.home-object.slot-1{left:9.3%;top:44%}
.home-object.slot-2{left:9.3%;top:60.7%}
.home-content{padding:14px 16px 8px;gap:10px;background:linear-gradient(#ece5d3,var(--paper) 80px)}
.home-talk{background:var(--glass);color:var(--ink);border:1px solid #fff;border-radius:18px;box-shadow:0 6px 20px #35483a0d;padding:14px}
.home-talk strong{color:#286e6b;font-size:13px}
.home-talk small{color:#7d8175;font-size:10px}
.home-talk>p{font-size:16px;line-height:1.65;margin:7px 0 12px}
.home-input{margin-top:0;gap:8px}
.home-input input{background:#edf0e8;border:1px solid #dce3d6;color:var(--ink);border-radius:12px}
.home-input button{background:var(--teal);border:0;border-radius:12px}
.home-reminder{background:transparent;border:1px solid #cdd4c6;box-shadow:none;border-radius:14px;padding:10px;backdrop-filter:none;gap:9px;color:var(--ink)}
.home-reminder>span{color:var(--teal)}
.home-reminder h2{font-size:14px;margin:2px 0}
.home-reminder small,.home-reminder p{font-size:11px;color:#626f64}
.home-reminder button{background:#e4ebe0;border:0;color:var(--teal);border-radius:10px}
.home-outdoor{color:#426d62;min-height:44px;font-size:12px}
.home-video-status{color:#725546}
#app>.bottom-nav{background:#fffcf3;border-top:1px solid var(--line);box-shadow:0 -4px 20px #29463508;padding-bottom:max(8px,env(safe-area-inset-bottom))}
#app>.bottom-nav button{color:#768278;font-size:11px}
#app>.bottom-nav button.active{color:var(--teal)}
#app>.bottom-nav .icon{width:23px;height:23px}
#app>[data-screen="explore"]{background:var(--paper);color:var(--ink);padding:22px 16px 18px}
[data-screen="explore"] .page-title{margin-bottom:8px}
[data-screen="explore"] .page-title h1{font-size:27px;letter-spacing:-.8px;margin:4px 0}
[data-screen="explore"] .page-title small{font-size:11px;letter-spacing:1px;color:#648073}
.venue-source{font-size:11px;min-height:0;margin:8px 0 12px;line-height:1.6;color:#68776b}
.venue-map{height:290px;border-radius:20px 20px 0 0;background-position:center 40%;image-rendering:pixelated;border:1px solid #d6dfd0;border-bottom:0}
.venue-map>small{font-size:10px;background:#fffaf0ed;color:#536756}
.venue-pin{font-size:12px;padding:9px 12px;background:#fffdf3;border-color:#fff;border-radius:12px;color:#274a43;min-height:44px}
.venue-pin[aria-pressed=true]{background:#286f6c;color:#fff;border-color:#cce8d6;box-shadow:0 0 0 5px #f7fff433}
.venue-detail{position:relative;background:#fffdf5;border:1px solid #d6dfd0;border-radius:0 0 20px 20px;padding:18px;margin-top:0;box-shadow:0 8px 18px #25442b09}
.venue-detail::before{content:'';display:block;width:30px;height:3px;background:#d0d6c9;border-radius:4px;margin:-7px auto 14px}
.venue-detail>small{font-size:11px;background:#edf1e5;padding:5px 8px;border-radius:6px;color:#4c7963}
.venue-detail h2{font-size:23px;margin:12px 0 6px;letter-spacing:-.5px}
.venue-detail p{font-size:13px;line-height:1.6;margin:5px 0;color:#617063}
#venueLaunchNote{font-size:11px;margin-bottom:14px;color:#7b8175}
.venue-actions{grid-template-columns:1fr 1fr;gap:8px}
.venue-actions a,.venue-actions button{font-size:13px;padding:12px 8px;border-color:#c4d2c3;border-radius:10px;min-height:44px;color:#38685e}
.venue-actions a:first-child{grid-column:1/-1;background:var(--teal);border-color:var(--teal);color:#fff}
.venue-toolbar{margin-top:18px}.venue-toolbar h2{font-size:15px}.venue-toolbar button{font-size:12px}
.venue-list{gap:7px;margin-bottom:0}.venue-list button{font-size:12px;border-radius:10px;padding:9px 12px;background:#fdfcf5}
.venue-list button[aria-pressed=true]{background:#dfebe0;color:#285b4b;border-color:#98bba8}
dialog{background:#fffaf0;color:var(--ink)}
@media(min-width:700px){body{padding:24px;background:radial-gradient(ellipse at 20% 20%,#f5eedb,transparent 60%),#dae6df}#app{height:calc(100dvh - 48px);border:1px solid #ffffff9c;border-radius:26px}}
@media(max-width:350px){.home-header{padding-left:12px;padding-right:12px}.home-header h1{font-size:20px}.home-affinity{display:none}.home-content{padding:12px}.home-mood{font-size:10px}}

/* SOURCE: explore-world.css */
/* A map workspace: controls and sheet have their own space so attribution stays visible. */
#app>.screen.explore-world{padding:0;overflow:hidden;background:#f6f1e6;color:#233f43;min-height:0}
#app>.screen.explore-world.active{display:flex;flex-direction:column}
.explore-header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 10px;flex:none;gap:8px}
.explore-header small{font-size:10px;letter-spacing:1px;color:#678276}
.explore-header h1{font-size:24px;letter-spacing:-.7px;margin:5px 0 0;line-height:1.2}
.explore-header button{border:1px solid #d4ded0;background:#fffcf5;color:#3d6c61;border-radius:12px;padding:8px 12px;font-size:12px}
.explore-search{display:flex;align-items:center;gap:9px;margin:0 16px;background:#fffcf6;border:1px solid #d3ddcf;border-radius:14px;padding:0 12px;min-height:46px;flex:none;box-shadow:0 3px 12px #29423006}
.explore-search svg{width:19px;height:19px;fill:none;stroke:#568077;stroke-width:1.8;flex:none}
.explore-search input{min-width:0;width:100%;border:0;background:transparent;font:inherit;font-size:16px;min-height:44px;color:#244440;outline-offset:0}
.explore-search>span{white-space:nowrap;font-size:11px;color:#668373}
.explore-filters{display:flex;gap:7px;padding:8px 16px 10px;flex:none;overflow-x:auto}
.explore-filters button{white-space:nowrap;border:1px solid #d0dacb;border-radius:22px;padding:7px 13px;font-size:12px;color:#557366;background:transparent;min-height:36px}
.explore-filters button[aria-pressed=true]{background:#286e66;border-color:#286e66;color:#fff9e9;box-shadow:0 3px 8px #286e6620}
.explore-map-wrap{position:relative;flex:1;min-height:150px;border-top:1px solid #d6e0ce;isolation:isolate;background:#dfe8d9}
#worldMap{position:absolute;inset:0;background:#e2eadb;font-family:inherit}
.map-tools{position:absolute;top:12px;right:12px;z-index:500;display:flex;flex-direction:column;gap:6px}
.map-tools button{min-height:40px;min-width:62px;border:1px solid #fff;background:#fffdf4f2;color:#365f55;border-radius:11px;padding:7px 10px;font-size:11px;box-shadow:0 3px 12px #243e3420}
.map-notice{position:absolute;top:12px;left:12px;right:89px;z-index:501;pointer-events:none}
.map-notice span:not([hidden]){display:block;background:#fff9e8f5;border:1px solid #d9dbc3;border-radius:10px;padding:8px 10px;font-size:11px;line-height:1.5;box-shadow:0 2px 8px #173c3020}
.map-notice button{pointer-events:auto;background:#286e66;color:white;border:0;border-radius:8px;font-size:11px;padding:6px 12px;margin-top:6px}
#worldMap .leaflet-control-attribution{font-size:10px;max-width:100%;background:#fffdf3f5;line-height:1.5;color:#315d55;padding:3px 6px}
#worldMap .leaflet-control-attribution a{color:#315d55}
#worldMap .leaflet-control-zoom{border:1px solid #b5c7b7;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px #24443320}
#worldMap .leaflet-control-zoom a{width:38px;height:38px;line-height:38px;background:#fffdf4;color:#3c665b}
.yupa-marker{background:none;border:0}
.place-marker{display:flex;flex-direction:column;align-items:center;min-width:48px;filter:drop-shadow(0 3px 3px #263b3c30)}
.place-marker-badge{display:grid;place-items:center;width:42px;height:42px;background:#fffaf0;border:3px solid white;color:#3b7264;border-radius:15px 15px 15px 3px;font-size:15px;font-weight:700}
.place-marker.selected .place-marker-badge{background:#2b7469;color:white;border-color:#fdfbf0;outline:4px solid #3f8f7133}
.place-marker-name{display:block;white-space:nowrap;background:#fffdf3f5;border-radius:7px;font-size:11px;line-height:1.3;color:#315747;padding:4px 7px;margin-top:4px}
.explore-sheet{flex:none;max-height:43%;display:flex;flex-direction:column;background:#fffaf0;border-top:1px solid #dce2d0;box-shadow:0 -8px 24px #233f3610;z-index:2}
.sheet-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;border:0;background:transparent;color:#4c7165;font-size:11px;width:100%;flex:none;min-height:38px}
.sheet-grip{height:4px;width:28px;background:#c2cfc0;border-radius:4px}
#exploreSheetBody{overflow-y:auto;overscroll-behavior:contain;padding:0 16px 16px;min-height:0}
.explore-result-heading{display:flex;align-items:baseline;gap:10px;justify-content:space-between;margin:2px 0 7px}
.explore-result-heading>span{font-size:11px;font-weight:700;white-space:nowrap;letter-spacing:.6px;color:#69846e}
.explore-result-heading small{font-size:10px;color:#7b8273;line-height:1.4;text-align:right;max-width:65%}
.explore-world .venue-list{display:flex;flex-wrap:nowrap;overflow-x:auto;margin:0 0 10px;gap:7px}
.explore-world .venue-list button{flex:none;font-size:11px;min-height:36px;border-radius:9px;padding:6px 10px}
.explore-world .venue-detail{border:0;border-radius:0;padding:0;margin:0;box-shadow:none;background:none}
.explore-world .venue-detail::before{display:none}
.venue-card-heading{display:flex;align-items:center;gap:12px}
.venue-card-heading>div:last-child{min-width:0}
.venue-emblem{width:57px;height:66px;flex:none;background:#e4eddf;border:1px solid #d4e1cb;border-radius:14px;display:grid;place-items:center;overflow:hidden}
.venue-emblem img{width:50px;height:57px;object-fit:contain;image-rendering:pixelated}
.explore-world #venueRegion{font-size:10px;letter-spacing:.5px;color:#688367}
.explore-world #venueTitle{font-size:21px;line-height:1.3;margin:4px 0;color:#294d43}
.explore-world #venueAddress{font-size:11px;color:#7a8476;margin:0}
.explore-world #venueDescription{font-size:13px;margin:10px 0 6px;line-height:1.5}
.explore-world #venueCoordinateNote{font-size:11px;color:#886532}
.explore-world #venueCoordinateNote:empty{display:none}
.explore-world #venueLaunchNote{font-size:10px;line-height:1.5;margin-bottom:10px}
.explore-world .venue-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:7px}
.explore-world .venue-actions a:first-child{grid-column:auto}
.explore-world .venue-actions a:last-child{grid-column:1/-1;border:0;background:transparent;padding:6px;min-height:36px;font-size:11px}
.explore-world .venue-actions a,.explore-world .venue-actions button{font-size:12px;border-radius:11px;padding:11px 8px}
#venueEmpty{font-size:13px;color:#637963;padding:10px 0}
@media(max-height:650px){.explore-header{padding:10px 14px 7px}.explore-header h1{font-size:20px}.explore-header small{display:none}.explore-filters{padding-bottom:7px}.explore-sheet{max-height:37%}.explore-map-wrap{min-height:100px}}
@media(max-width:350px){.explore-header h1{font-size:21px}.explore-search{margin:0 12px}.explore-filters{padding-left:12px;padding-right:12px}.explore-filters button{padding:7px 10px}}

/* SOURCE: companion-shell.css */
/* v32: companion-first layout. Scene geometry stays proportional in both modes. */
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;--ink:#233f43;--muted:#60736e;--accent:#197773;--paper:#f7f4ec;--edge:#dce3d9;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%}
body,button,input,textarea,select{font-family:inherit;line-height:1.5;letter-spacing:.015em}body{font-size:16px}button,input,textarea,select{font-size:16px}h1,h2,h3,p{overflow-wrap:anywhere}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #157f86;outline-offset:3px}button{font-weight:600}button:disabled{cursor:default}#app{background:var(--paper)}
#app>.home-screen{background:var(--paper)}
.home-scene-window{padding-top:116px;overflow:hidden;background:var(--paper)}
.home-header{height:72px;padding:16px 20px 8px}.home-header h1{font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.025em}.home-header h1 small{font-size:11px;line-height:1.5;letter-spacing:.08em;margin-bottom:3px}.home-header button{background:#fffdf7;border:1px solid var(--edge)}.home-affinity{display:none}
.home-context{top:72px;left:20px;right:20px;height:44px;justify-content:space-between}.home-context button{font-size:13px;border:1px solid var(--edge);background:#fffdf7;min-height:40px;height:40px;border-radius:12px;color:var(--muted)}
.home-stage{width:calc(100% - 24px);margin:8px 12px 0;height:auto;aspect-ratio:1.65;overflow:hidden;border-radius:22px;box-shadow:inset 0 0 0 1px #ffffff60}
.home-room-art{height:100%;object-fit:cover;object-position:center 66%}
.home-screen:not(.room-mode) .home-object{display:none}
#pixelResident{width:43%;left:28.5%;bottom:3%;filter:drop-shadow(0 4px 2px #203e3626)}
.home-character-touch{width:43%;left:28.5%;height:90%;bottom:3%}
.home-screen:not(.room-mode) .home-scene-actions{display:none}
.home-mood{right:26px;bottom:14px;max-width:32%;padding:7px 11px;font-size:12px;border:1px solid #fff9;background:#fffaf0ed;box-shadow:0 3px 12px #25483a12}
.home-content{position:relative;padding:12px 16px 20px;gap:12px;background:none}
.home-talk{padding:16px;border-radius:22px;background:#fffdf7eF;border:1px solid #fff;box-shadow:0 8px 24px #29473809;backdrop-filter:blur(12px)}
.home-talk header{align-items:center}.home-talk strong{font-size:13px;font-weight:700;letter-spacing:.06em}.home-talk small{font-size:12px;color:var(--muted)}.home-talk>p{font-size:17px;line-height:1.65;margin:8px 0 14px;letter-spacing:.01em;color:var(--ink)}
.home-input{display:flex;gap:8px}.home-input input{min-width:0;flex:1;min-height:48px;font-size:16px;padding:11px 12px;border:1px solid #d1ddd4;background:#f1f4ec;border-radius:14px}.home-input input::placeholder{color:#657872}.home-input button{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:var(--accent);color:#fff;display:grid;place-items:center}
.home-reminder{padding:13px;gap:11px;background:#fffdf7;border:1px solid var(--edge);border-radius:18px}.home-reminder>div{min-width:0;flex:1}.home-reminder h2{font-size:15px;line-height:1.5;font-weight:600;margin:2px 0}.home-reminder p,.home-reminder small{font-size:12px;line-height:1.5;color:var(--muted)}.home-reminder button{width:44px;flex:0 0 44px;background:#eef3eb}
.home-entry{display:grid;grid-template-columns:80px minmax(0,1fr);gap:13px;align-items:center;border:1px solid var(--edge);border-radius:20px;background:#fffdf7;padding:12px}.home-entry>img{width:80px;height:96px;object-fit:cover;border-radius:13px;image-rendering:pixelated}.home-entry h2{margin:0;font-size:16px;line-height:1.4;font-weight:700}.home-entry p{font-size:12px;color:var(--muted);margin:4px 0 8px}.home-entry-actions{display:flex;gap:7px}.home-entry-actions button{flex:1;min-height:44px;padding:8px 9px;white-space:nowrap;border:1px solid #b5cdbe;border-radius:12px;background:#fffdf7;color:var(--accent);font-size:13px}.home-entry-actions button:first-child{background:var(--accent);border-color:var(--accent);color:white}.home-entry-actions span{margin-left:3px}
#app>.bottom-nav{border-radius:22px 22px 0 0;background:#fffdf7;box-shadow:0 -4px 18px #2b483509;min-height:72px;height:auto;padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:4px}#app>.bottom-nav button{gap:3px;opacity:1;color:#5e746c;min-height:52px}#app>.bottom-nav button>span:last-child{font-size:12px;line-height:1.4;font-weight:500}#app>.bottom-nav button>[data-icon]{min-width:48px;height:28px;border-radius:18px}.bottom-nav button.active>[data-icon]{background:#d8eae0;color:#116c68}#app>.bottom-nav button.active{color:#116c68}
.room-mode-header{padding:14px 16px 10px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.room-mode-header>button{border:0;background:transparent;color:var(--accent);padding:5px 8px;font-size:14px}.room-mode-header>strong{font-size:16px}.room-tabs{display:flex;width:100%;background:#e9eee5;border-radius:16px;padding:4px;gap:4px}.room-tabs button{flex:1;border:0;border-radius:12px;font-size:14px;background:transparent;color:var(--muted)}.room-tabs [aria-pressed=true]{background:var(--accent);color:#fff}
.room-mode .home-header,.room-mode .home-context,.room-mode .home-entry,.room-mode .home-reminder{display:none}.room-mode .home-scene-window{padding-top:0}.room-mode .home-stage{aspect-ratio:1}.room-mode .home-room-art{object-fit:contain;object-position:center}.room-mode #pixelResident{width:35%;left:32.5%;bottom:13%}.room-mode .home-character-touch{width:36%;left:32%;height:40%;bottom:13%}.room-mode .home-scene-actions{left:24px;bottom:14px}.room-mode .home-scene-actions button{min-height:44px;font-size:14px;backdrop-filter:blur(10px)}.room-mode .home-object.slot-0{left:9.3%;top:27%}.room-mode .home-object.slot-1{left:9.3%;top:44%}.room-mode .home-object.slot-2{left:9.3%;top:60.7%}
.explore-header h1{font-size:26px;line-height:1.3;letter-spacing:-.025em}.explore-search input{font-size:16px}.explore-filters button{font-size:13px}.venue-detail h2{font-size:21px;line-height:1.4}.venue-detail p{font-size:14px;line-height:1.65}dialog{max-height:85dvh;overflow:auto}dialog h2{font-size:21px;line-height:1.4}dialog p{line-height:1.65}#app>[data-screen=home] .topbar{flex-wrap:wrap;gap:6px}#app>[data-screen=home] .topbar button{font-size:12px;min-height:44px;background:#fffaf0ee;color:var(--ink);border:1px solid #fff9}
@media(max-width:360px){.home-header{padding-left:16px;padding-right:16px}.home-header h1{font-size:22px}.home-content{padding:10px 12px 16px}.home-talk{padding:13px}.home-talk>p{font-size:16px}.home-entry{grid-template-columns:60px minmax(0,1fr);gap:9px;padding:10px}.home-entry>img{width:60px;height:94px}.home-entry-actions button{padding:8px 5px;font-size:12px}.home-entry h2{font-size:15px}}
@media(max-height:740px){.home-screen:not(.room-mode) .home-stage{aspect-ratio:1.95}.home-content{gap:9px}.home-talk{padding:12px 14px}.home-talk>p{margin:6px 0 10px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .16s,color .16s,box-shadow .16s}button:active{filter:brightness(.96)}}

/* SOURCE: scene-surface.css */
/* V33 surfaces: one continuous world; readable controls, separate pixel home mode. */
:root{--scene-text:#fff9ee;--scene-glass:#173d4bc9;--scene-line:#edf9f34d;--ui-radius:18px;--ui-space:16px}
#app>.home-screen:not(.room-mode){background:linear-gradient(180deg,#163b4c15 0%,#11364638 32%,#123444eb 76%,#123444 100%),url('./assets/home-coast-v2.png') center top/cover no-repeat;color:var(--scene-text)}
.home-screen:not(.room-mode) .home-scene-window{padding-top:114px;overflow:visible;background:none}
.home-screen:not(.room-mode) .home-stage{width:100%;margin:0;border-radius:0;aspect-ratio:auto;height:clamp(240px,38dvh,340px);overflow:visible;box-shadow:none}
.home-screen:not(.room-mode) .home-room-art,.home-screen:not(.room-mode) #pixelResident{display:none}
.home-screen:not(.room-mode) .home-avatar{display:block;left:14%;width:72%;bottom:0;height:100%;filter:drop-shadow(0 10px 8px #06223135)}
.home-screen:not(.room-mode) .home-avatar-fallback{height:88%;bottom:0}
.home-screen[data-media-state=ready]:not(.room-mode) .home-avatar{opacity:1}
.home-screen:not([data-media-state=ready]):not(.room-mode) .home-avatar{opacity:0}
.home-screen:not(.room-mode) .home-character-touch{left:22%;width:56%;bottom:0;height:95%}
.home-screen:not(.room-mode) .home-header{color:var(--scene-text);background:linear-gradient(#123746d9,transparent);padding-top:16px}
.home-screen:not(.room-mode) .home-header h1{font-size:22px;color:var(--scene-text);text-shadow:0 2px 8px #14333a55}
.home-screen:not(.room-mode) .home-header h1 small{color:#d1e7df}
.home-screen:not(.room-mode) .home-header button,.home-screen:not(.room-mode) .home-context button{background:var(--scene-glass);color:var(--scene-text);border:1px solid var(--scene-line);backdrop-filter:blur(12px)}
.home-screen:not(.room-mode) .home-mood{background:var(--scene-glass);color:var(--scene-text);border:1px solid var(--scene-line);backdrop-filter:blur(12px);bottom:16px}
.home-screen:not(.room-mode) .home-content{background:none;gap:0;padding:0 16px 20px}
.home-screen:not(.room-mode) .home-talk{background:#fff9eef0;color:var(--ink);border:1px solid #fff9;border-radius:22px;box-shadow:0 10px 30px #082a3820;backdrop-filter:blur(16px)}
.expression-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0 12px;font-size:12px;color:#e5eee5}.expression-controls>span{margin-right:auto}.expression-controls button{min-height:36px;padding:6px 12px;border:1px solid var(--scene-line);border-radius:22px;background:var(--scene-glass);color:var(--scene-text);font-size:12px}.expression-controls button:disabled{opacity:.45}.expression-controls small:empty{display:none}.expression-controls small{flex-basis:100%;font-size:12px}
.home-screen:not(.room-mode) .home-reminder{margin-top:14px;padding:14px 0;background:none;color:var(--scene-text);border:0;border-bottom:1px solid var(--scene-line);border-radius:0;box-shadow:none}.home-screen:not(.room-mode) .home-reminder h2{font-size:15px;color:var(--scene-text)}.home-screen:not(.room-mode) .home-reminder small,.home-screen:not(.room-mode) .home-reminder p{color:#d0e0d7}.home-screen:not(.room-mode) .home-reminder>span{color:#d0e0d7}.home-screen:not(.room-mode) .home-reminder button{color:var(--scene-text);background:#ffffff16}
.home-screen:not(.room-mode) .home-entry{display:block;margin-top:4px;padding:14px 0 0;border:0;border-radius:0;background:none;color:var(--scene-text)}.home-screen:not(.room-mode) .home-entry>img{display:none}.home-screen:not(.room-mode) .home-entry>div{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px}.home-screen:not(.room-mode) .home-entry h2{font-size:15px}.home-screen:not(.room-mode) .home-entry p{grid-column:1;font-size:12px;color:#d0e0d7;margin-bottom:0}.home-screen:not(.room-mode) .home-entry-actions{grid-column:2;grid-row:1/3}.home-screen:not(.room-mode) .home-entry-actions button{background:#fff7e9ed;color:#214e50;border:1px solid #fff9;padding:8px 12px}
.home-video-status{color:#f2edce;font-size:12px;line-height:1.5;padding:10px 0;display:flex;align-items:center;gap:10px}.home-video-status button{font-size:12px;padding:6px 10px;border:1px solid var(--scene-line);border-radius:10px;background:#fff9e9;color:var(--ink);min-height:40px}
.room-mode .expression-controls,.room-mode .home-avatar{display:none}.room-mode #pixelResident{display:block}
#app:has(>.home-screen.active:not(.room-mode))>.bottom-nav{background:#123444;border-radius:0;border-top:1px solid #ffffff26;box-shadow:none}#app:has(>.home-screen.active:not(.room-mode))>.bottom-nav button{color:#c7ddd7}#app:has(>.home-screen.active:not(.room-mode))>.bottom-nav button.active{color:#fff6e8}#app:has(>.home-screen.active:not(.room-mode))>.bottom-nav button.active>[data-icon]{background:#ffffff20;color:#fff6e8}
/* Explore keeps the attribution unobscured: compact floating controls inside its map,
   sheet is an adjacent scroll region instead of covering map credits. */
.explore-header{padding:12px 16px 8px}.explore-header small{display:none}.explore-header h1{font-size:21px;margin:0}.explore-filters{padding-bottom:8px}.explore-filters button{min-height:38px}.explore-sheet{border-radius:22px 22px 0 0;max-height:40%;border-top:0}.map-tools{left:10px;right:auto;top:10px;flex-direction:row;gap:5px}.map-tools button{min-width:0;min-height:40px;padding:7px 10px}.map-notice{top:58px;left:10px;right:10px}.explore-map-wrap{border-top:0;min-height:180px}.explore-result-heading small{font-size:11px}#worldMap .leaflet-control-zoom a{width:44px;height:44px;line-height:44px}
@media(max-height:740px){.home-screen:not(.room-mode) .home-stage{height:235px}.explore-map-wrap{min-height:120px}}
@media(max-width:360px){.home-screen:not(.room-mode) .home-header h1{font-size:20px}.home-screen:not(.room-mode) .home-content{padding-inline:12px}.home-screen:not(.room-mode) .home-entry-actions button{padding:8px 10px}}

/* SOURCE: schedule.css */
/* Schedule shares the existing cream dialogs, teal actions and type scale. */
.schedule-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:16px 0}.schedule-toolbar label{font-size:12px;color:#53716a;display:grid;gap:4px;flex:1;min-width:140px}.schedule-toolbar button,.schedule-toolbar input{min-height:44px;border:1px solid #bdcec5;border-radius:12px;padding:8px 12px;background:#fffdf7;color:#235d58;font-size:14px}#newSchedule{background:#197773;color:#fff;border-color:#197773}.schedule-event{padding:16px 0;border-bottom:1px solid #d9e1d7}.schedule-event h3{font-size:17px;line-height:1.5;margin:0 0 6px;color:#234e49}.schedule-event p{font-size:14px;line-height:1.6;margin:4px 0;overflow-wrap:anywhere}.schedule-event small{font-size:12px;color:#5b746b}.schedule-note{white-space:pre-wrap;color:#5b746b}.schedule-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.schedule-actions button,.schedule-actions a{min-height:44px;border:1px solid #cad8cf;border-radius:10px;padding:10px;background:#fffdf7;color:#235d58;font-size:13px;display:inline-flex;align-items:center;text-decoration:none}.schedule-actions button[data-confirm=yes]{color:#943d32;border-color:#943d32}.schedule-empty{font-size:15px;line-height:1.7;padding:16px 0;color:#60736e}#scheduleSaveStatus:empty{display:none}#scheduleSaveStatus,#planError{font-size:13px;color:#85442d}
#planVisitForm{display:grid;gap:8px}#planVisitForm label{font-size:13px;color:#4b6860;margin-top:6px}#planVisitForm input,#planVisitForm select,#planVisitForm textarea{width:100%;min-width:0;min-height:44px;border:1px solid #bdcec5;border-radius:11px;background:#fffdf7;padding:10px;color:#233f43;font:inherit;font-size:16px}#planVisitForm textarea{resize:vertical}#planVisitForm .room-note{font-size:12px;line-height:1.6}#planVenueName:empty{display:none}
.due-reminder{margin-top:14px;padding:14px;border:1px solid #d5b774;border-radius:16px;background:#fff1ce;color:#4f452d}.due-reminder strong{font-size:14px}.due-reminder p{font-size:14px;line-height:1.6}.due-reminder button{min-height:44px;padding:8px 12px;border:1px solid #b5a378;border-radius:10px;background:#fffaf0;color:#4f452d;margin-right:6px;font-size:13px}
