header{z-index:6}header>div{flex:1;min-width:0}#game-menu-open,#menu-jump{white-space:nowrap;background:#f0dfbbed;color:#263e36;box-shadow:0 3px 12px #172a2940}#game-menu{width:min(800px,94vw);color:#2c4138;background:#fbf5e7;border:1px solid #bba779;border-radius:18px;padding:26px;max-height:90dvh;line-height:1.8}#game-menu::backdrop{background:#0c222a99;backdrop-filter:blur(5px)}#game-menu .eyebrow{color:#856438}#game-menu h2{font:700 28px var(--map-font);margin:4px 0}.menu-heading,.menu-settings,.menu-footer{display:flex;gap:12px;justify-content:space-between;align-items:center}.menu-heading button{font-size:13px;white-space:nowrap}.menu-creator{display:flex;gap:14px;align-items:center;margin:20px 0;padding:16px 0;border-top:1px solid #d5c7aa;border-bottom:1px solid #d5c7aa}.menu-creator img{width:44px;height:44px;object-fit:contain;border-radius:8px}.menu-creator p{font-size:13px;margin:2px 0}.menu-settings{justify-content:flex-start;flex-wrap:wrap;margin-bottom:16px}#game-menu details{border-bottom:1px solid #ddd0b6;padding:12px 0}#game-menu summary{font-weight:700;cursor:pointer;min-height:44px;display:list-item;padding:8px}#game-menu details p{font-size:14px;padding:0 8px;margin:8px 0}#game-menu button{font-size:13px}#menu-chapters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}#menu-chapters a,.menu-footer a{color:#264639;text-decoration:none;padding:10px 12px;border:1px solid #b4b8a3;border-radius:8px;min-height:44px}#menu-chapters a[aria-current]{background:#e1e7d9;border:2px solid #4d6c53}#menu-chapters small{display:block;font-size:12px;color:#65715b}.menu-footer{margin-top:20px;flex-wrap:wrap;font-size:13px}#menu-restart{background:transparent;color:#80503d;border:1px solid #c8ad99}#menu-status{font-size:13px;color:#80503d}@media(max-width:600px){header{padding:16px;gap:6px}header h1{font-size:17px}header .eyebrow{font-size:9px}header button{font-size:10px;padding:8px 10px}#game-menu{padding:16px}#game-menu h2{font-size:23px}.menu-heading{align-items:flex-start}.menu-heading button{font-size:11px;padding:8px 10px}#menu-chapters{grid-template-columns:1fr}.intro{max-height:calc(100dvh - 130px);overflow:auto;margin-top:110px}.intro h2{font-size:34px}.intro button{margin:8px 0}.intro .stamp{display:none}}
#game-menu button{width:auto;margin:0}#game-menu .menu-heading>div{flex:1}#game-menu h2{white-space:nowrap}#game-menu .menu-heading button{flex:none}#game-menu .menu-settings button{flex:1}@media(max-width:500px){#game-menu .menu-heading{flex-wrap:wrap}#game-menu .menu-heading button{margin-left:auto}#game-menu .menu-settings button{flex:1 1 100%}}
.menu-current{padding:12px 16px;background:#e7eadc;border-radius:10px;font-size:14px}.menu-current p{margin:4px 0;line-height:1.8}
#game-menu-open,#menu-jump,#menu-close{min-height:44px;min-width:44px}
#motion[hidden],#restart[hidden]{display:none}
header>.header-actions{flex:none;display:flex;gap:8px;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap;pointer-events:none}.header-actions button{pointer-events:auto;margin:0}
.intro .credit{font-size:12px;letter-spacing:.08em;color:#e8dcb8;margin:0 0 6px;text-align:left}
@media(max-width:600px){header>.header-actions{flex-direction:column;align-items:stretch;gap:6px}.header-actions button{min-height:44px;font-size:11px;padding:8px 12px}.intro{margin-top:124px;max-height:calc(100dvh - 140px)}}
#game-menu p,#game-menu details p{word-break:keep-all;overflow-wrap:break-word}

.creator-credit{display:block;font-size:11px;color:#f6e7be;margin-bottom:4px;letter-spacing:.04em}.intro h2,.intro p{word-break:keep-all;overflow-wrap:break-word}#game-menu .menu-heading{position:sticky;top:-26px;z-index:2;background:#fbf5e7;padding:12px 0;border-bottom:1px solid #ddd0b6}#menu-chapter-details{scroll-margin-top:100px}#menu-chapters a{scroll-margin-top:100px}@media(max-width:600px){#game-menu .menu-heading{top:-16px}.creator-credit{font-size:10px}header .eyebrow{letter-spacing:.04em}}
#menu-chapters button:disabled{display:block;text-align:left;white-space:normal;color:#737267;background:#eae7dd;border:1px dashed #aaa58f;border-radius:8px;padding:10px 12px;min-height:60px;opacity:1;cursor:not-allowed}
