body[data-screen="home"]>.site-header{display:none!important}
body[data-screen="home"] #top{padding-top:0!important}
body[data-screen="home"] .shrine-stage{padding:0!important;width:min(100%,1000px)!important;margin-top:0!important}
body[data-screen="home"] .character-stage{margin:0!important;width:100%!important}
body[data-screen="home"] .courtyard-scene{height:clamp(480px,80dvh,820px)!important;border-radius:0!important}
body[data-screen="home"] .courtyard-scene>.brand{position:absolute;left:10px;top:calc(8px + env(safe-area-inset-top,0px));z-index:20;display:flex;gap:5px;padding:4px 6px;max-width:calc(100% - 224px);color:#fff3d5;text-shadow:0 2px 3px #2b180c;background:#2a1b14aa;border-radius:8px;white-space:nowrap}
body[data-screen="home"] .courtyard-scene>.brand b{font-size:17px;line-height:24px;white-space:nowrap}
body[data-screen="home"] .courtyard-scene>.brand small{display:none}
body[data-screen="home"] .courtyard-scene>.brand .brand-mark{width:25px;height:25px;flex:0 0 25px}
body[data-screen="home"] .community-counters{position:absolute!important;top:calc(49px + env(safe-area-inset-top,0px));left:8px;right:8px;z-index:15;display:flex!important;justify-content:center;gap:12px;margin:0!important;padding:5px 7px!important;width:auto!important;min-height:0!important;background:#261a13a6!important;color:#fff5d9!important;border:1px solid #ddbd7766;border-radius:8px;font-size:12px!important;white-space:nowrap}
body[data-screen="home"] .community-counters p{margin:0!important;font-size:12px!important;line-height:20px!important}
body[data-screen="home"] .community-counters strong{font-size:15px!important;color:#ffe49a!important}
body[data-screen="home"] #communityStatus:empty{display:none}
body[data-screen="home"] .courtyard-scene>.character-name{position:absolute!important;left:8px;right:8px;bottom:calc(var(--motion-foot-space,120px) + 5px);z-index:10;margin:0!important;padding:4px 8px!important;min-height:0!important;background:#251810a6!important;color:#fff3d4!important;border:1px solid #d2af6b66;border-radius:8px;display:flex!important;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;font-size:12px!important}
body[data-screen="home"] .character-name :is(small,#weekdayDivinityTheme,#characterVoiceHint){display:none!important}
body[data-screen="home"] .character-name :is(strong,time,span){font-size:12px!important;line-height:18px!important;color:inherit!important}

body[data-screen="home"] #communityStatus{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}

/* Ivory lettering on a restrained gold shrine plaque. */
body[data-screen="home"] .courtyard-scene>.brand{background:linear-gradient(145deg,#35291ff2,#181612ed)!important;border:1px solid #b99b62!important;box-shadow:inset 0 0 0 1px #e9d6a72b,0 2px 4px #0005!important;border-radius:5px!important}
body[data-screen="home"] .courtyard-scene>.brand b{color:#fff3d8!important;-webkit-text-fill-color:#fff3d8!important;-webkit-text-stroke:.25px #c1a367;background:none!important;font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif!important;font-weight:700!important;text-shadow:0 1px 1px #100d09!important;animation:none!important}

/* Restore the original Kizuna illustration and readable tags beneath the scene. */
body[data-screen="home"][data-character="kizuna"] .character-stage .courtyard-scene #weekdayGoddess{opacity:1!important;height:calc(100% - 88px)!important;max-height:none!important;max-width:100%!important;width:auto!important;object-fit:contain;bottom:0!important;left:50%!important;transform:translateX(-50%)}
body[data-screen="home"] .character-stage>.character-name{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;display:flex!important;flex-direction:column;align-items:center;gap:3px;width:100%!important;max-width:100%!important;box-sizing:border-box;margin:0!important;padding:8px 10px!important;background:linear-gradient(135deg,#35291f,#191813)!important;border:1px solid #b99b62!important;border-radius:0 0 8px 8px!important;color:#fff3d8!important;text-shadow:0 1px 2px #000}
body[data-screen="home"] .character-stage>.character-name :is(time,.character-person-name,#weekdayDivinityName){display:block!important;color:#fff3d8!important;line-height:1.4!important}
body[data-screen="home"] .character-stage>.character-name .character-person-name{font-size:18px!important;font-weight:700}
body[data-screen="home"] .character-stage>.character-name #weekdayDivinityName{font-size:16px!important}
body[data-screen="home"] .character-stage>.character-name time{font-size:12px!important;margin:0!important}
body[data-screen="home"] .character-stage>.character-name #weekdayDivinityTheme{display:block!important;font-size:12px!important;color:#e9d6ad!important;line-height:1.5!important;margin:0!important}
body[data-screen="home"] .character-stage>.character-name :is(#characterVoiceHint,.scene-label){display:none!important}


body[data-screen="home"] .kizuna-composite-motion{position:absolute;left:50%;bottom:0;height:calc(100% - 88px);width:auto;max-width:100%;object-fit:contain;transform:translateX(-50%);z-index:3;pointer-events:none}
body[data-screen="home"][data-character="kizuna"] .character-stage .courtyard-scene.kizuna-composite-ready #weekdayGoddess{opacity:0!important;animation:none!important}
body[data-screen="home"] .courtyard-scene.kizuna-composite-ready .character-motion-pose{display:none!important}
body[data-screen="home"] .character-stage>.character-name{border:2px solid #b99b62!important;box-shadow:inset 0 0 0 2px #eed6a332,inset 0 0 12px #f3d69512; padding:9px 10px!important}
body[data-screen="home"] .character-stage>.character-name .character-person-name{font-size:19px!important}
body[data-screen="home"] .character-stage>.character-name #weekdayDivinityName{font-size:17px!important}
body[data-screen="home"] #siteSwitchDock{gap:4px!important}
body[data-screen="home"] #siteSwitchDock .analog-switch{width:83px!important;min-width:0!important;font-size:10px!important;padding-left:5px!important;padding-right:5px!important}
body[data-screen="home"] #todayRokuyo{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:39px;min-width:39px;height:30px;margin:0!important;padding:2px!important;border:1px solid #b99b62;border-radius:4px;background:linear-gradient(145deg,#35291f,#181612);color:#fff3d8!important;font:700 12px "Yu Mincho",serif;white-space:nowrap}
body[data-screen="home"] .courtyard-scene>.brand{max-width:calc(100% - 225px)!important;gap:2px!important;padding:3px!important;left:5px!important}
body[data-screen="home"] .courtyard-scene>.brand .brand-mark{width:17px;height:17px;flex-basis:17px}
body[data-screen="home"] .courtyard-scene>.brand b{font-size:14px!important}
body[data-screen="home"] #dailyNews{display:grid!important;visibility:visible!important;opacity:1!important}
body[data-screen="home"] #newsTrack{display:flex!important;min-height:23px}
@media(max-width:350px){body[data-screen="home"] #siteSwitchDock .analog-switch{width:72px!important;font-size:9px!important}body[data-screen="home"] .courtyard-scene>.brand{max-width:calc(100% - 200px)!important}body[data-screen="home"] .courtyard-scene>.brand .brand-mark{display:none}body[data-screen="home"] .courtyard-scene>.brand b{font-size:12px!important}}

/* Use the available header width rather than shrinking plaques to their text. */
body[data-screen="home"] .courtyard-scene>.brand{box-sizing:border-box!important;width:calc(100% - 232px)!important;max-width:none!important;justify-content:center!important;gap:4px!important;padding:3px 4px!important;height:32px!important}
body[data-screen="home"] .courtyard-scene>.brand b{font-size:16px!important}
body[data-screen="home"] #todayRokuyo{width:42px!important;min-width:42px!important;font-size:14px!important;height:32px!important}
body[data-screen="home"] .character-stage>.character-name{position:relative!important;border:4px double #e5c47a!important;border-radius:8px!important;padding:12px 22px!important;background:radial-gradient(ellipse at 50% 0,#594029,#231b16 65%)!important;box-shadow:inset 0 0 0 3px #231710,inset 0 0 0 4px #bd914b88,inset 0 0 22px #e6bc6b20,0 3px 7px #0005!important;gap:4px!important}
body[data-screen="home"] .character-stage>.character-name::before{content:"";position:absolute;inset:7px;pointer-events:none;border:1px solid #cda65a70;border-radius:4px;background:linear-gradient(#ecd08c,#ecd08c) top left/15px 2px no-repeat,linear-gradient(#ecd08c,#ecd08c) top left/2px 15px no-repeat,linear-gradient(#ecd08c,#ecd08c) top right/15px 2px no-repeat,linear-gradient(#ecd08c,#ecd08c) top right/2px 15px no-repeat,linear-gradient(#ecd08c,#ecd08c) bottom left/15px 2px no-repeat,linear-gradient(#ecd08c,#ecd08c) bottom left/2px 15px no-repeat,linear-gradient(#ecd08c,#ecd08c) bottom right/15px 2px no-repeat,linear-gradient(#ecd08c,#ecd08c) bottom right/2px 15px no-repeat}
body[data-screen="home"] .character-stage>.character-name .character-person-name{color:#ffe3a3!important;letter-spacing:.08em;font-size:20px!important;text-shadow:0 1px 2px #000,0 0 8px #c8a05835}
body[data-screen="home"] .character-stage>.character-name time{font-size:13px!important;letter-spacing:.04em;color:#f3dfb8!important}
@media(max-width:350px){body[data-screen="home"] .courtyard-scene>.brand{width:calc(100% - 210px)!important;max-width:none!important}body[data-screen="home"] .courtyard-scene>.brand b{font-size:13px!important}}
body[data-screen="home"] #siteSwitchDock .analog-switch{width:75px!important}
body[data-screen="home"] #siteSwitchDock .dock-bgm{width:71px!important}
body[data-screen="home"] #todayRokuyo{width:56px!important;min-width:56px!important;font-size:15px!important}
body[data-screen="home"] .courtyard-scene>.brand{width:calc(100% - 224px)!important}
body[data-screen="home"] .courtyard-scene>.brand b{font-size:17px!important}
@media(max-width:350px){body[data-screen="home"] #siteSwitchDock .analog-switch{width:68px!important}body[data-screen="home"] #siteSwitchDock .dock-bgm{width:64px!important}body[data-screen="home"] #todayRokuyo{width:50px!important;min-width:50px!important;font-size:14px!important}body[data-screen="home"] .courtyard-scene>.brand{width:calc(100% - 206px)!important}body[data-screen="home"] .courtyard-scene>.brand b{font-size:13px!important}}
#characterAdminPreview[hidden]{display:none!important}
#characterAdminPreview{margin:8px;padding:10px;border:1px solid #c9a35c;border-radius:8px;background:#29211b;color:#ffe8b5;font-size:13px}
#characterAdminPreview summary{cursor:pointer;font-weight:700}
#characterAdminPreview .preview-controls,#characterAdminPreview .preview-days{display:flex;gap:5px;margin-top:8px}
#characterAdminPreview button{flex:1;min-width:0;padding:8px 3px;color:#fff1cf;background:#453524;border:1px solid #b59457;border-radius:5px;font-size:12px}
#characterAdminPreview button[aria-pressed=true]{background:#855c25;border-color:#f7d785}
#characterAdminPreview p{margin:8px 0;font-size:12px}

body[data-screen="home"] .courtyard-scene>#siteSwitchDock{position:absolute!important;inset:calc(env(safe-area-inset-top,0px) + 7px) 8px auto auto!important}

/* V34: whole-body frames, never split at skirt or hips. */
.character-fullbody-motion{position:absolute;z-index:3;left:50%;bottom:0;transform:translateX(-50%);pointer-events:none;filter:drop-shadow(2px 3px 3px #19171333)}
body[data-divine="true"] .character-fullbody-motion{display:none!important}
body:not([data-divine="true"]) .character-fullbody-ready #weekdayGoddess,body:not([data-divine="true"]) .character-fullbody-ready #koyoriPortrait{opacity:0!important;animation:none!important}
body[data-screen="home"][data-character="kizuna"]:not([data-divine="true"]) .character-stage .courtyard-scene.character-fullbody-ready #weekdayGoddess,
body[data-screen="home"][data-character="koyori"]:not([data-divine="true"]) .character-stage .courtyard-scene.character-fullbody-ready #koyoriPortrait{opacity:0!important;animation:none!important}
