:root{--f-display:'Cormorant Garamond',Georgia,serif;--f-story:'Cormorant Garamond',Georgia,serif;--f-ui:'DM Sans',system-ui,sans-serif;--f-mono:ui-monospace,monospace;--hyakki-bar-height:76px}
html{scroll-padding-top:94px}
body{padding-top:76px}
.hyakki-modebar{position:fixed;inset:0 0 auto;z-index:90;min-height:76px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;background:#101b1cf5;border-bottom:1px solid #bd9c6655;backdrop-filter:blur(16px);color:#f2ead8;font-family:'DM Sans',system-ui,sans-serif}
.hyakki-home{display:flex;align-items:center;gap:12px;text-decoration:none!important;color:#f2ead8!important;flex-shrink:0}
.hyakki-seal{display:grid;place-items:center;width:40px;height:40px;border:1px solid #bc9b66;color:#d4b272;font-family:serif;font-size:25px;background:#b5914320}
.hyakki-home strong{display:block;font-size:15px;letter-spacing:2px;line-height:1.5}
.hyakki-home small{display:block;font-size:13px;color:#b8c0ae;line-height:1.5}
.hyakki-mode-tools{display:flex;align-items:center;gap:18px;font-size:14px}
.hyakki-mode-tools a,.hyakki-mode-tools button{color:#e3d0a6;background:transparent;border:1px solid #c6a76e55;padding:9px 14px;text-decoration:none;font:inherit;cursor:pointer;white-space:nowrap;border-radius:0}
.hyakki-mode-tools a:hover,.hyakki-mode-tools button:hover{background:#d2b17b15;border-color:#d2b17b}
.hyakki-save{font-size:13px;color:#b8c0ae;max-width:220px;line-height:1.4}
.hyakki-save.error{color:#ffb5a9}
.hyakki-modebar a:focus-visible,.hyakki-modebar button:focus-visible,.hyakki-backup :focus-visible{outline:2px solid #e3bd73;outline-offset:4px}
body.lb-on #intro.lb .lb-top{padding-top:90px!important}
body.lb-on.lb-s2 #lb2{top:var(--hyakki-bar-height)}
body.lb-on #lb2 .l2-ui{padding-top:0!important;box-sizing:border-box}
.dlg,#birth,#lbAbout,#lbRec,#lbBond{top:var(--hyakki-bar-height)!important}
body.lb-on #intro.lb .lb-screen{top:76px!important}
.lang-pick,.l2-lang,#installBtn,#fbBtn,#statPair,#ghostPair,#syncSec,#ghnRow{display:none!important}
#langNote{font-family:var(--f-ui);font-size:14px;line-height:1.65}
.lang-en .title{font-size:clamp(44px,6vw,76px)}
body.lb-on #lb2 .l2-title{font-size:clamp(34px,4vw,54px);line-height:1.05}
.hyakki-backup{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;border:1px solid #c2a06c;background:#172426;color:#e7e0ce;padding:32px;font:16px/1.7 'DM Sans',system-ui,sans-serif;box-shadow:0 30px 100px #0009}
.hyakki-backup::backdrop{background:#060d10cc;backdrop-filter:blur(5px)}
.hyakki-backup h2{font:500 38px/1.1 'Cormorant Garamond',serif;margin:12px 0 20px;color:#efdfba}
.hyakki-backup p{font:inherit;color:#c2c9bb;margin:12px 0}
.hyakki-kicker{font-size:13px;letter-spacing:2px;color:#c9ab76}
.hyakki-close{float:right;background:none;border:0;color:#dac69c;font:22px/1 system-ui;cursor:pointer;padding:0 0 10px 16px}
.hyakki-backup-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
.hyakki-backup-actions button,.hyakki-import,#hyakkiRestore{position:relative;display:inline-block;background:#c7a36715;border:1px solid #d0ac71;color:#efdfba;padding:11px 16px;cursor:pointer;font:500 15px/1.4 'DM Sans',system-ui,sans-serif;border-radius:0}
.hyakki-import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.hyakki-import:focus-within{outline:2px solid #e3bd73;outline-offset:4px}
.hyakki-backup p.hyakki-backup-note{font-size:14px;line-height:1.7}
.hyakki-backup-message{color:#e3c28c!important;min-height:24px}
.hyakki-credit{font-size:13px;color:#abbaa9;text-decoration:underline;display:block;margin-top:18px}
@media(max-width:700px){:root{--hyakki-bar-height:112px}body{padding-top:112px}.hyakki-modebar{min-height:112px;gap:8px;flex-wrap:wrap;padding:10px 14px}.hyakki-home strong{font-size:14px}.hyakki-home small{font-size:12px}.hyakki-seal{width:34px;height:34px;font-size:22px}.hyakki-mode-tools{width:100%;justify-content:flex-end;gap:9px;font-size:13px}.hyakki-save{margin-right:auto;font-size:12px;max-width:130px}.hyakki-mode-tools a,.hyakki-mode-tools button{padding:6px 9px}.hyakki-backup{padding:24px}.hyakki-backup h2{font-size:32px}body.lb-on #intro.lb .lb-screen{top:112px!important}body.lb-on #intro.lb .lb-top{padding-top:125px!important}body.lb-on #lb2 .l2-title{font-size:36px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.hyakki-load-recovery{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px;background:#07060b;color:#e7e0ce;text-align:center;font:16px/1.6 'DM Sans',system-ui,sans-serif}
.hyakki-load-recovery[hidden]{display:none}
.hyakki-load-recovery h1{max-width:520px;font:500 clamp(28px,5vw,40px)/1.2 'Cormorant Garamond',Georgia,serif;color:#efdfba}
.hyakki-load-recovery p{margin:12px 0 24px}
.hyakki-load-recovery>div{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.hyakki-load-recovery button,.hyakki-load-recovery a{border:1px solid #d0ac71;padding:12px 18px;background:#c7a36715;color:#efdfba;text-decoration:none;font:inherit;cursor:pointer}
.hyakki-load-recovery button:focus-visible,.hyakki-load-recovery a:focus-visible{outline:2px solid #e3bd73;outline-offset:4px}
.hyakki-lobby-stars{position:absolute;inset:0;pointer-events:none}
.hyakki-lobby-stars i{position:absolute;display:block;transform:translate(-50%,-50%);border-radius:50%;background:currentColor;box-shadow:0 0 8px 2px currentColor}
#lbStage .hyakki-lobby-lit{transition:opacity 1s}
