/* Shared game/prototype typography and category navigation. */
:root{--ui-font:"Microsoft JhengHei UI","Microsoft JhengHei","PingFang TC",sans-serif}
body{font-family:var(--ui-font);font-weight:700}
body button,body input,body select,body textarea{font-family:var(--ui-font);font-weight:700}
:is(#app .category-tabs,.game>.tabs){display:flex;align-items:stretch;justify-content:space-evenly;gap:4px;flex:none;order:10;min-height:44px;margin:0;padding:0 10px;border:0;border-top:1px solid #8a6a5d88;background:#251b24f5;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;scrollbar-width:none}
:is(#app .category-tabs,.game>.tabs)>button{position:relative;display:flex;align-items:center;justify-content:center;flex:1 0 48px;min-width:48px;min-height:44px;margin:0;padding:0 8px;border:0;border-image:none;border-radius:0;background:none;box-shadow:none;color:#bfadba;font-size:14px;line-height:1.25;font-weight:700;white-space:nowrap;transform:none}
:is(#app .category-tabs,.game>.tabs)>button.selected{color:#ffe0a0;background:none;font-weight:700}
:is(#app .category-tabs,.game>.tabs)>button.selected:after{content:"";position:absolute;bottom:2px;left:18%;right:18%;height:3px;background:#f2c878;border-radius:2px;box-shadow:0 0 9px #ffc65b66;animation:category-underline-in .18s ease-out}
:is(#app .category-tabs,.game>.tabs)>button:focus-visible{outline:2px solid #ffe2a4;outline-offset:-4px}
@keyframes category-underline-in{from{transform:scaleX(.55);opacity:.4}to{transform:scaleX(1);opacity:1}}
@media(prefers-reduced-motion:reduce){:is(#app .category-tabs,.game>.tabs)>button.selected:after{animation:none}}
