.hoshi-language{display:flex;justify-content:center;gap:10px;margin:18px 0 4px;flex-wrap:wrap}
.hoshi-language button{font:inherit;font-size:14px;min-height:44px;min-width:90px;padding:8px 16px;border:1px solid #546575;border-radius:4px;background:#0c1120;color:#f2f5f9;touch-action:manipulation}
.hoshi-language button[aria-pressed=true]{border-color:#49e7d9;color:#8cf4e8;box-shadow:0 0 0 1px #49e7d950}
html[lang=en] body{font-family:Georgia,"Times New Roman",serif}
html[lang=en] #title h1{letter-spacing:.04em;font-size:clamp(30px,8vw,52px)}
html[lang=en] #title .chap,html[lang=en] #title .sub{letter-spacing:.03em}
html[lang=en] #dlgBox{max-height:80vh;max-height:80dvh;display:flex;flex-direction:column;padding-bottom:28px}
html[lang=en] #dlgText{line-height:1.5;letter-spacing:0;white-space:pre-line;overflow-y:auto;overflow-wrap:break-word;min-height:2.8em;max-height:45vh;max-height:45dvh;touch-action:pan-y;-webkit-overflow-scrolling:touch}
html[lang=en] #dlgName{letter-spacing:.02em;flex-shrink:0}
html[lang=en] #dlgChoices{overflow-y:auto;min-height:0;flex-shrink:1;touch-action:pan-y}
html[lang=en] .choice{letter-spacing:0;line-height:1.35;min-height:44px;overflow-wrap:break-word;flex-shrink:0}
html[lang=en] #dlgArr{min-width:32px;min-height:24px;display:flex;align-items:center;justify-content:center;bottom:2px;cursor:pointer}
html[lang=en] .mbtn,html[lang=en] .ovl2 h2,html[lang=en] #cmd button{letter-spacing:0;overflow-wrap:break-word}
html[lang=en] #m2 .m2rowname,html[lang=en] #m2 .m2rowplace,html[lang=en] #m2 .m2rowmeta{white-space:normal;overflow-wrap:break-word;word-break:normal;line-break:auto}
html[lang=en] #m2 .m2btn,html[lang=en] #m2 .m2tab,html[lang=en] #m2 .m2row,html[lang=en] #m2 .m2ttl{letter-spacing:0;line-break:auto;word-break:normal;white-space:normal}
html[lang=en] #place,html[lang=en] #areaTitle{letter-spacing:.02em;overflow-wrap:break-word}
html[lang=en] #blog{letter-spacing:0;line-height:1.35;overflow-y:auto;touch-action:pan-y}
html[lang=en] #place{max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[lang=en] #goal{top:calc(3.2% + 38px);max-width:58%}
html[lang=en] #goal,html[lang=en] #ch1goal{letter-spacing:0;overflow-wrap:break-word}
/* This chapter HUD already includes the next-exit hint. Keep the English copy
   clear of the separate legacy hint and the menu buttons. */
html[lang=en] #m5goal_v10{top:calc(3.2% + 24px)!important;max-width:58%!important;box-sizing:border-box;letter-spacing:0;overflow-wrap:break-word}
html[lang=en] body:has(#m5goal_v10[style*="display: block"]) #goal{visibility:hidden}
html[lang=en] #hint{top:calc(3.2% + 130px);left:3%;right:3%;transform:none;white-space:normal;max-width:none;overflow:visible;text-overflow:clip;line-height:1.4;border-radius:5px;letter-spacing:0}
@media(max-height:480px){html[lang=en] #dlgBox{left:2%;right:2%;bottom:2%;padding:8px 12px 25px}html[lang=en] #dlgText{font-size:14px;max-height:36vh}html[lang=en] #dlgName{font-size:14px;margin-bottom:2px}html[lang=en] #dlgChoices{margin-top:5px;gap:4px}html[lang=en] .choice{font-size:13px;padding:6px 9px;min-height:38px}}
/* Keep long English chapter endings and their continue control within the screen. */
html[lang=en] #ending{padding:clamp(14px,4vw,32px);gap:clamp(8px,2vh,16px);box-sizing:border-box;overflow:hidden}
html[lang=en] #ending>*{max-width:100%;box-sizing:border-box;overflow-wrap:break-word}
html[lang=en] #endSmall{flex-shrink:0;letter-spacing:.03em}
html[lang=en] #endTitle{font-size:clamp(20px,5vw,30px);line-height:1.25;letter-spacing:.02em;margin:0;flex-shrink:0}
html[lang=en] #endText{font-size:clamp(14px,3vw,18px);line-height:1.5;letter-spacing:0;margin:0;min-height:0;max-height:40vh;max-height:40dvh;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}
html[lang=en] #endBtn{flex-shrink:0;margin:0;letter-spacing:0;white-space:normal;min-height:44px}
