.language-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--panel,#fff);border:1px solid #b5bdcc;border-radius:14px;color:var(--ink,#253047);font-size:12px;line-height:1.5;max-width:100%;box-sizing:border-box}
.language-control>span{white-space:nowrap}.language-select{min-width:0;max-width:55%;min-height:42px;font:inherit;font-size:14px;background:#fff;color:#1b293d;border:1px solid #a3aec0;border-radius:9px;padding:7px 10px}
#title>.language-control{position:absolute;left:16px;right:16px;top:max(14px,env(safe-area-inset-top));z-index:4;background:#ffffffed;box-shadow:0 3px 14px #0002}
#view>.language-control{margin:12px}
.copy-text ruby{ruby-align:center;white-space:nowrap;display:inline ruby;line-height:2.1}.copy-text rt{font-size:.55em;letter-spacing:.02em;line-height:1.2;user-select:none}
html[data-language=ruby] :is(.btn,.gbtn,.upbtn,.act,.mrow){padding-top:13px;padding-bottom:13px}
html[data-language=ruby] #nav .tab{min-height:72px;gap:5px}
html[data-language=ruby] .btext h2{line-height:2}
html:is([lang=en],[lang=es]) body{word-break:normal;overflow-wrap:anywhere;hyphens:auto;letter-spacing:0}
html:is([lang=en],[lang=es]) .copy-text{word-break:normal;overflow-wrap:anywhere}
html:is([lang=en],[lang=es]) #nav .tab>span{font-size:10px;white-space:normal;line-height:1.2;min-height:25px;display:grid;place-items:center}
html:is([lang=en],[lang=es]) :is(.upgrades,.ups,.acts){grid-template-columns:repeat(2,minmax(0,1fr))}
html:is([lang=en],[lang=es]) :is(.upbtn,.act):last-child:nth-child(odd){grid-column:1/-1}
html:is([lang=en],[lang=es]) .journey-actions{grid-template-columns:1fr!important}
html:is([lang=en],[lang=es]) .prod .pname{font-size:15px}
html:is([lang=en],[lang=es]) .side .sidebtn span{font-size:9px;white-space:normal;overflow-wrap:anywhere}
html:is([lang=en],[lang=es]) .tlogo h1{font-size:clamp(28px,8vw,48px)}
html[lang=zh-CN] body{font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;word-break:normal;line-break:strict;overflow-wrap:normal;letter-spacing:.025em}
html[lang=zh-CN] .copy-text{word-break:normal;line-break:strict}
html[data-language=hira] :is(.pdesc,.sctext,.btext p){line-height:1.9;letter-spacing:.04em}
html[data-language=hira] #nav .tab>span{font-size:10px;white-space:normal}
.clbar::after{content:none}.clbar{margin-bottom:28px}.clbar .cl-goal{position:absolute;right:0;top:13px;max-width:90%;text-align:right;font-size:11px;font-weight:800;color:#9c6b13;line-height:1.5}
/* Use the explicit word boundaries in reading modes; avoid rebalancing ruby. */
html:is([data-language=hira],[data-language=ruby]) body *{text-wrap:wrap!important}
