@font-face {
  font-family: 'Lineage Native UI';
  src: url('/assets/client/ui-font/lineage-native.woff2?v=20261028clear2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 83.3333%;
  descent-override: 16.6667%;
  line-gap-override: 0%;
}

:root {
  --lineage-ui-font: 'Lineage Native UI', 'MingLiU', 'PMingLiU', serif;
}

/* Keep existing sizes, spacing, colours and controls; share one face everywhere. */
body, body * {
  font-family: var(--lineage-ui-font) !important;
  font-synthesis: none;
  font-kerning: none;
}

/* Overhead chat uses the same scalable face, with a single crisp shadow. */
.game-ui .native-overhead-chat{font-family:var(--lineage-ui-font)!important;text-shadow:1px 1px 0 #000}
.game-ui .native-overhead-chat>span{font-family:inherit!important;font-size:inherit;font-weight:inherit}

/* Chat needs scalable Latin at arbitrary desktop/mobile sizes. The CJK face
   is the same Chinese source; its Unicode range excludes bitmap ASCII. */
@font-face{
 font-family:'Lineage Chat CJK';
 src:url('/assets/client/ui-font/lineage-native.woff2?v=20261028clear2') format('woff2');
 font-style:normal;font-weight:100 900;font-display:swap;
 unicode-range:U+0080-10FFFF;
 ascent-override:83.3333%;descent-override:16.6667%;line-gap-override:0%;
}
.game-ui .classic-feed,.game-ui .classic-feed *,
.game-ui .classic-compose input,
.game-ui .mobile-chat-preview,.game-ui .mobile-chat-preview *{
 font-family:Arial,'Lineage Chat CJK','MingLiU','PMingLiU',sans-serif!important;
 font-kerning:normal;letter-spacing:normal;
 text-shadow:0 1px 0 #000;
 -webkit-text-stroke:0;
}

/* Touch layouts use scalable system glyphs instead of enlarging bitmap ASCII.
   Keep the desktop classic face and the existing layout sizes. */
.game-ui.mobile-ui, .game-ui.mobile-ui * {
 font-family:Arial,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif!important;
 font-synthesis:weight; font-kerning:normal;
}
.game-ui.mobile-ui .mobile-chat-preview,
.game-ui.mobile-ui .mobile-chat-preview * {
 font-weight:600; -webkit-text-stroke:0;
 text-shadow:-1px 0 0 #000,1px 0 0 #000,0 -1px 0 #000,0 1px 0 #000;
}
.game-ui.mobile-ui .mobile-chat-preview {
 padding:3px 6px; border-radius:3px; background:rgba(0,0,0,.38);
}
.game-ui.mobile-ui .currency-hud .currency-amount,
.game-ui.mobile-ui .currency-hud .currency-digit,
.game-ui.mobile-ui .currency-hud .currency-comma {
 font-variant-numeric:tabular-nums; font-weight:700; letter-spacing:0;
 -webkit-text-stroke:0; -webkit-text-fill-color:#fff0b3;
 filter:none; text-shadow:1px 1px 0 #000,-1px -1px 0 #000;
}

/* Five complete mobile preview lines; padding must not consume line height.
   The negative bottom margin places the text a few pixels closer to the hotbar. */
.game-ui.mobile-ui .mobile-chat-preview {
 box-sizing:content-box; height:6.5em; margin-bottom:-6px;
}
