.player-shell{--home-ink:#304c3a;--home-muted:#647060;--home-paper:#fffaf0;--home-line:#d6dcc6;color:var(--home-ink);background:#eef0df;min-height:100vh;padding-bottom:100px}
html:has(.player-shell){scroll-padding-top:140px;scroll-padding-bottom:110px}.player-shell header{position:sticky;top:0;z-index:21}
.player-shell *{box-sizing:border-box}.player-shell header{background:#fffaf0;color:var(--home-ink);border-bottom:1px solid var(--home-line);padding:16px 4vw;gap:12px;min-height:76px;box-shadow:none}.player-shell .brand{color:#395e44;font-family:Georgia,serif;font-size:1.5rem}.player-shell .brand span{font-family:inherit;color:#647060}.player-shell button,.player-shell a{touch-action:manipulation}.player-shell header button{background:transparent;color:var(--home-ink);border:1px solid var(--home-line);min-height:44px}.player-shell .party-shortcuts a,.player-shell .party-shortcuts button{display:flex;align-items:center;justify-content:center;gap:3px;min-height:44px;min-width:44px;padding:6px;color:var(--home-ink);text-decoration:none}.party-shortcuts svg{width:21px;height:21px}.player-shell .party-shortcuts [aria-disabled="true"]{opacity:1;color:#6b705f;background:#f2eee3}.player-shell .app-shell{display:block;background:transparent}.player-shell .side-nav{display:none}.player-shell .workspace{max-width:1440px;margin:auto;padding:24px 4vw;background:transparent;min-width:0}.player-shell .page-heading{color:var(--home-ink)}.player-shell .workspace:has([data-home-view])>.page-heading{display:none}.player-shell .player-page{max-width:none;color:var(--home-ink)}
.home-experience{color:var(--home-ink)}.home-context{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px}.home-context h2{font-family:Georgia,serif;font-size:clamp(1.6rem,2.6vw,2.3rem);font-weight:600;margin:4px 0;color:var(--home-ink)}.home-overline{color:var(--home-muted);font-size:.85rem;font-weight:600;margin:0 0 8px}.home-activity{display:flex;align-items:center;gap:14px}.player-shell label{color:var(--home-ink)}.player-shell input,.player-shell textarea,.player-shell select{color:#304c3a;background:#fffdf6;border:1px solid #c6cdb9;border-radius:10px;min-height:44px;max-width:100%;padding:10px 12px}.home-activity label{display:flex;gap:8px;align-items:center;white-space:nowrap}.home-scope{font-size:.8rem;white-space:nowrap}.home-current{min-height:54px;display:flex;align-items:center;gap:12px;margin-bottom:14px;color:var(--home-muted)}.home-current label{display:flex;align-items:center;gap:12px}.home-current select{width:min(420px,55vw)}.home-current>span{font-size:.85rem}
.home-landscape{position:relative;height:clamp(460px,41vw,620px);overflow:hidden;border-radius:26px;box-shadow:0 12px 40px #344b2520;background:#afbf8c}.home-scene{position:absolute;inset:0;background:url('./home-cafe-garden.svg') left center/cover no-repeat}.home-animals{position:absolute;inset:0;pointer-events:none}.home-protagonist{position:absolute;left:24%;bottom:9%;width:clamp(180px,20vw,270px);height:auto;filter:drop-shadow(0 12px 8px #47381735)}.home-companion{position:absolute;height:auto;filter:drop-shadow(0 10px 6px #47381725)}.companion-dog{left:7%;bottom:15%;width:160px}.companion-rabbit{left:42%;bottom:5%;width:120px}.home-scene-note{position:absolute;bottom:10px;left:14px;background:#fffaf0df;color:#4c5946;padding:5px 10px;border-radius:8px;margin:0;font-size:.75rem;max-width:calc(100% - 28px)}
.home-quest{position:absolute;right:4%;top:9%;width:34%;max-width:400px;background:#fffaf0f7;border:1px solid #e0d5b7;border-radius:22px;padding:26px;box-shadow:0 12px 30px #473b2028;color:var(--home-ink)}.home-quest h3{font-size:clamp(1.2rem,1.7vw,1.5rem);line-height:1.5;margin:0 0 14px;color:var(--home-ink)}.home-quest>p:not(.home-overline){color:#52614d;line-height:1.7;margin-bottom:16px}.player-shell .home-primary{width:100%;background:#456b49;color:#fffaf0;border:0;border-radius:13px;min-height:56px;padding:14px;font-size:1rem;font-weight:650;white-space:normal;box-shadow:0 3px 0 #304b32}.home-next{border-top:1px solid #ddd7c0;margin-top:20px;padding-top:16px}.home-next>span{font-size:.8rem;color:#647060}.home-next p{margin:5px 0 0;font-size:.9rem;line-height:1.6}.home-tools{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 0}.player-shell .secondary{background:#fffaf0;color:#3f5940;border:1px solid #cfd6bd;min-height:44px;border-radius:12px;padding:10px 14px;white-space:normal}.home-tools button{display:flex;align-items:center;gap:8px;font-size:.9rem}.home-tools svg{width:22px;height:22px}.home-private-note{font-size:.8rem;color:var(--home-muted);margin:14px 0 0}
.player-shell .bottom-nav{position:fixed;z-index:20;left:50%;right:auto;bottom:18px;transform:translateX(-50%);width:min(660px,calc(100% - 40px));display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 10px;background:#fffaf0f5;color:var(--home-ink);border:1px solid #d1d6bc;border-radius:22px;box-shadow:0 9px 30px #35432d24;gap:5px}.player-shell .bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:60px;font-size:.8rem;color:#65715d;background:transparent;border:0;padding:7px 3px;border-radius:14px;white-space:normal;line-height:1.3}.player-shell .bottom-nav button.active{background:#e1e8d2;color:#355f3d}.player-shell .bottom-nav svg{width:24px;height:24px}.player-shell .mobile-menu{display:none}
.player-shell :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #93643a;outline-offset:3px}.player-shell .card{background:var(--home-paper);color:var(--home-ink);border:1px solid var(--home-line)}.player-shell .card :is(h2,h3,p){color:inherit}.player-shell .card button:not(.secondary){background:#456b49;color:#fffaf0;min-height:48px}.player-shell .base-drawers>details{background:var(--home-paper);color:var(--home-ink);border-color:var(--home-line)}.player-shell .base-drawers dl>div{border-color:var(--home-line)}.player-shell .base-private{color:var(--home-muted)}.player-shell [data-home-view="home"]>.base-drawers,.player-shell [data-home-view="quests"]>.base-drawers,.player-shell [data-home-view="home"]>.base-private,.player-shell [data-home-view="home"]>#addBusiness{display:none}.player-shell [data-home-view="inventory"] .base-drawers>details:not(#baseInventory),.player-shell [data-home-view="connections"] .base-drawers>details:not(#baseConnections),.player-shell [data-home-view="status"] .base-drawers>details:not(#baseStatus){display:none}.player-shell [data-home-view]:not([data-home-view="home"]):not([data-home-view="quests"]) .base-drawers{display:block;margin-top:20px}.player-shell [data-home-view]:not([data-home-view="home"]):not([data-home-view="quests"]) .home-landscape{height:260px}.player-shell [data-home-view]:not([data-home-view="home"]):not([data-home-view="quests"]) .home-quest{display:none}
@media(max-width:700px){.player-shell{padding-bottom:100px}.player-shell header{padding:10px 14px!important;gap:7px!important}.player-shell .brand{font-size:1.25rem;width:auto;flex:1 1 160px}.player-shell .brand span{font-size:.72rem;display:block}.player-shell header .base-return[data-nav="home"]{display:none}.player-shell header #logout{font-size:.8rem;padding:8px}.player-shell .workspace{padding:18px 14px 25px!important}.home-context{display:block;margin-bottom:10px}.home-context h2{font-size:1.6rem;margin-bottom:14px;overflow-wrap:anywhere}.home-activity{justify-content:space-between;gap:8px;align-items:center}.home-activity label{display:block;font-size:.8rem;flex:1;min-width:0}.home-activity select{display:block;width:100%;margin-top:4px}.home-scope{font-size:.72rem}.home-current{align-items:end;margin:10px 0 14px;min-height:50px}.home-current label{display:block;font-size:.8rem;flex:1;min-width:0}.home-current select{display:block;width:100%;margin-top:4px;font-size:.9rem}.home-landscape{height:auto;overflow:hidden;background:transparent;border-radius:20px;box-shadow:none;padding-top:295px}.home-scene{height:295px;bottom:auto;border-radius:20px;background-position:22% center;background-size:auto 100%}.home-animals{height:295px;bottom:auto}.home-protagonist{left:34%;bottom:10%;width:136px}.companion-dog{left:5%;bottom:14%;width:110px}.companion-rabbit{left:69%;bottom:8%;width:77px}.home-scene-note{top:260px;bottom:auto;left:8px;font-size:.7rem;padding:5px 8px;max-width:calc(100% - 16px)}.home-quest{position:relative;right:auto;top:auto;width:100%;max-width:none;margin-top:12px;padding:22px;background:#fffaf0;box-shadow:none}.home-quest h3{font-size:1.2rem}.home-quest p{font-size:.9rem}.home-next{margin-top:16px;padding-top:12px}.home-tools{gap:8px;margin-top:14px}.home-tools button{font-size:.8rem;flex:1 1 145px;padding:10px}.home-private-note{font-size:.75rem;line-height:1.6}.player-shell .bottom-nav{bottom:0;width:100%;border-radius:18px 18px 0 0;padding:5px 5px calc(5px + env(safe-area-inset-bottom));gap:2px;min-height:75px}.player-shell .bottom-nav button{min-height:60px;font-size:.7rem}.player-shell [data-home-view]:not([data-home-view="home"]):not([data-home-view="quests"]) .home-landscape{height:200px;padding-top:200px}.player-shell [data-home-view]:not([data-home-view="home"]):not([data-home-view="quests"]) :is(.home-scene,.home-animals){height:200px}.player-shell [data-home-view]:not([data-home-view="home"]):not([data-home-view="quests"]) .home-scene-note{top:166px}.player-shell .form-grid{grid-template-columns:1fr!important}.player-shell .player-page .card>button{white-space:normal}.player-shell #methodForm button{width:100%;margin-top:16px}}
@media(max-width:700px){.home-context>.home-context-welcome{display:none}.home-context>div>.home-overline{display:none}.home-context h2{margin:0 0 8px}.home-activity label{display:flex;gap:8px;align-items:center}.home-activity select{margin:0;flex:1;min-width:0}.home-current{margin:8px 0 12px;min-height:44px}.home-current label{display:flex;align-items:center;gap:7px;white-space:nowrap}.home-current select{margin:0;flex:1;min-width:0}.home-current>span{max-width:125px;line-height:1.5;font-size:.75rem}.home-landscape{padding-top:210px}.home-scene,.home-animals{height:210px}.home-protagonist{width:106px;left:35%}.companion-dog{width:87px}.companion-rabbit{width:64px}.home-scene-note{top:178px;font-size:.68rem}.home-quest{padding:18px}.home-quest>p:not(.home-overline){margin-bottom:8px}.home-quest h3{margin-bottom:8px}}
.player-shell{--home-ink:#163f35;--home-paper:#fbf8ec;--home-muted:#607067}.home-context h2{display:flex;flex-direction:column;gap:3px;font-family:system-ui,sans-serif;font-weight:750;font-size:clamp(1.8rem,3.5vw,3rem)}.home-owner{font-size:.85rem;font-weight:500;color:var(--home-muted)}.home-tagline{margin:6px 0;color:var(--home-muted);font-size:.95rem}.player-shell .home-primary{background:#174e3e;border-radius:28px;box-shadow:0 3px 5px #143e3525}.player-shell .bottom-nav button.active{background:#174e3e;color:#fffaf0;border-radius:50%}.home-landscape{border-radius:30px}.home-scene{background-image:var(--home-background,url('./home-cafe-garden.svg'))}.home-quest{border-radius:26px}.home-quest>.home-overline{color:#9a5f14}.home-next{color:#173f35}@media(max-width:700px){.home-context h2{font-size:1.8rem;gap:0}.home-owner{font-size:.75rem}.home-tagline{font-size:.8rem;margin:3px 0 9px}.home-landscape{border-radius:20px}.home-quest{border-radius:24px}.home-activity label{font-size:.72rem}.home-scope{max-width:80px;white-space:normal;line-height:1.4}}
@media(max-width:700px){.player-shell header .brand{flex:1 1 78px;min-width:0;font-size:1.1rem}.player-shell header .brand span{display:none}.player-shell header :is(#logout,[data-nav="player-settings"]){font-size:.72rem;padding:6px;min-width:44px}.player-shell header .party-shortcuts{gap:2px}.player-shell header .party-shortcuts :is(a,button){padding:4px}.home-landscape{padding-top:180px}.home-scene,.home-animals{height:180px}.home-scene-note{top:148px}}
/* Independent environment and pose layers from the adopted artwork. */
.player-shell{--home-background:url('./home-art/background-pc-v1.png')}
.home-scene{background-position:center center}
.home-protagonist{left:28%;bottom:23%;width:clamp(180px,20vw,250px)}
.companion-rabbit{left:13%;bottom:5%;width:150px}
.companion-dog{left:34%;bottom:2%;width:155px}
.companion-red-panda{left:48%;bottom:3%;width:160px}
@media(max-width:700px){.player-shell{--home-background:url('./home-art/background-mobile-v1.png')}.home-scene{background-size:100% auto;background-position:center 40%}.home-protagonist{left:35%;bottom:23%;width:106px}.companion-rabbit{left:4%;bottom:1%;width:69px}.companion-dog{left:29%;bottom:0;width:66px}.companion-red-panda{left:69%;bottom:0;width:73px}}
/* Scene depth: environment < chosen host < foreground guests < live UI. */
.home-landscape{isolation:isolate}
.home-scene{z-index:0}
.home-animals{z-index:1}
.home-protagonist{z-index:1}
.home-companion{z-index:2}
.owner-avatar,.header-avatar{display:inline-flex;align-items:center;gap:6px;background:transparent;color:inherit;border:1px solid #b5bda6;border-radius:999px;padding:4px}
.owner-avatar img,.header-avatar img{object-fit:contain;border-radius:50%}
.owner-avatar{float:left;margin-right:10px}
.player-guide-dialog{border:1px solid #aab68c;border-radius:20px;background:#f6f1df;color:#244237;width:min(430px,calc(100vw - 40px));padding:24px;text-align:center;max-height:calc(100dvh - 48px);overflow:auto}
.player-guide-dialog::backdrop{background:#10271bcc}
.player-guide-dialog>img{object-fit:contain}
.player-guide-dialog .check{display:flex;justify-content:center;gap:8px;align-items:center;margin:18px 0}
.guide-buttons{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.guide-message{display:flex;align-items:center;gap:8px}
.publication-fields{grid-column:1/-1;padding:12px;border:1px solid #acb596;border-radius:12px}
.publication-fields label{display:flex;align-items:center;gap:8px;margin:10px 0}
.publication-fields select{width:auto;flex:1;min-width:100px}
.draft-note{grid-column:1/-1;background:#f3e6bf;color:#423b23;padding:10px;border-radius:8px}
@media(max-width:640px){.header-avatar span{display:none}.player-shell header{flex-wrap:wrap;gap:6px}.header-avatar img{width:30px;height:30px}.player-guide-dialog{padding:18px}}
.home-quest,.home-scene-note{z-index:2}

/* 私の拠点の横から地図へ */
.home-context .home-heading-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;max-width:100%}.home-context .home-heading-row h2{flex:1 1 150px;min-width:0;margin:0;overflow-wrap:anywhere}.home-context .home-departure{flex:0 0 auto;max-width:100%;padding:10px 16px;white-space:normal;font-size:14px;font-weight:650;margin-bottom:3px}

/* Existing world map thumbnail: same shared departure button and navigation. */
.home-context .home-departure.home-world-thumbnail{display:flex;flex-direction:column;align-items:stretch;gap:3px;flex:0 0 auto;width:148px;max-width:100%;padding:4px;border:1px solid #78957f;border-radius:12px;background:#fbf9ed;color:var(--home-ink);margin-bottom:3px;overflow:hidden;white-space:normal}
.home-world-thumbnail img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:148/84;object-fit:contain;border-radius:8px}
.home-world-thumbnail span{display:block;text-align:center;font-size:10px;font-weight:700;line-height:1.4;letter-spacing:.08em;padding:0 2px 2px}
.home-context .home-world-thumbnail:focus-visible{outline:3px solid var(--home-ink);outline-offset:4px}
@media(max-width:640px){.home-context .home-departure.home-world-thumbnail{width:128px}.home-context .home-heading-row{align-items:center}}

/* BASE-HOUSES-1: descriptive scenery only. */
.base-houses{margin:22px 0;padding:20px;border:1px solid #c2cfad;border-radius:20px;background:#f7f6e9;color:#354e3b}
.base-houses-heading h3{font-size:1.2rem;margin:2px 0 10px}
.base-houses-overline{font-size:.72rem;letter-spacing:.12em;color:#6a7e5c;margin:0 0 4px}
.base-houses-story{font-size:.85rem;line-height:1.85;margin:0;max-width:52em}
.base-houses-garden{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0;padding:20px 12px 16px;border-radius:16px;background:radial-gradient(ellipse at 50% 74%,#d6dfb7 0 28%,transparent 29%),linear-gradient(135deg,#e7edcf,#dbe5c1)}
.base-houses .base-house{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;width:100%;padding:9px 6px 12px;border:2px solid transparent;border-radius:16px;background:transparent;color:#304c37;box-shadow:none;cursor:pointer}
.base-house svg{display:block;width:min(100%,150px);height:130px;flex:none;overflow:visible}
.base-house>span{display:block;line-height:1.6;font-size:.88rem;font-weight:700;min-height:2.8em;overflow-wrap:anywhere}
.base-houses .base-house:hover,.base-houses .base-house.is-selected{background:#fff9e9b8;border-color:#a4b48b}
.base-houses .base-house:focus-visible{outline:3px solid #447653;outline-offset:3px;background:#fff9e9}
.base-house-detail{min-height:96px;padding:14px 17px;border-radius:12px;background:#fffdf4;border:1px solid #d9dfc7}
.base-house-detail h4{font-size:.95rem;margin:0 0 5px}.base-house-detail p{font-size:.86rem;line-height:1.8;margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.base-houses{padding:15px;margin:18px 0}.base-houses-garden{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 5px}.base-house svg{height:112px;width:min(100%,126px)}.base-houses .base-house{padding:6px 3px 8px}.base-house>span{font-size:.79rem;min-height:3.2em}.base-houses-story{font-size:.78rem}.base-house-detail{padding:12px;min-height:110px}}
/* PRO-BASE-FIELD-1（11/18 正浩さん「拠点は自分の敷地。初めは野原だけ。原っぱには自分のキャラクターだけ」）：カフェと庭の絵と、ほかの動物を外す */
.home-scene.home-field{background:url('./home-field.svg') center/cover no-repeat!important}
.home-protagonist.home-self{left:50%;transform:translateX(-50%)}
/* QUEST-LOGIN-PPQ-1: optional overlay; existing buttons remain usable in every state. */
.quest-daily-header{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px}
.quest-daily-header img{width:23px;height:23px;object-fit:contain;flex:none}
.quest-daily-header img[hidden]{display:none}
.quest-daily-note{font-size:12px;line-height:1.7;color:#4d5f44;margin:10px 0 0;overflow-wrap:anywhere}
.quest-target-glow{outline:3px solid #e5c568;outline-offset:5px;box-shadow:0 0 20px #ffe69999}
.quest-daily-flight{position:fixed;top:0;left:0;width:40px;height:40px;z-index:2147483601;pointer-events:none;object-fit:contain}
@media(prefers-reduced-motion:reduce){.quest-target-glow{box-shadow:none}.quest-daily-flight{display:none}}

/* 今日のPPQがまだのとき、下のメニューの［クエスト］と今日のクエストのボタンに出すコイン（2026-11-19 正浩さん「お知らせみたいに」。位置はボタンの中の右下＝正浩さんの赤い印） */
.bottom-nav button:has(.daily-coin-badge),#primaryQuest{position:relative}
.daily-coin-badge{position:absolute;right:10px;bottom:6px;width:24px;height:24px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
#primaryQuest .daily-coin-badge{right:14px;bottom:8px;width:26px;height:26px}
.daily-coin-badge[hidden]{display:none}
