/* Canonical reading scale; table HUD, game settings and artwork are untouched. */
@font-face{font-family:"Simply Arcade UI";src:url('./fonts/noto-sans-sc-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:block}
/* Latin punctuation uses its proportional Noto Sans glyphs, not CJK advances. */
@font-face{font-family:"Simply Arcade UI";src:url('./fonts/noto-sans-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:block;unicode-range:U+0000-2FFF,U+A720-A7FF,U+AB30-AB6F}
:root{--ui-text-min:16px;--ui-font-family:"Simply Arcade UI",sans-serif}
.card-game-page .player-name-with-flag>.player-name-text[data-cjk-name]{font-size:.9em!important}
.toast,.credit-assistance-toast p,.credit-assistance-toast strong,.credit-assistance-toast>span{font-size:var(--ui-text-min)}
.toast,.credit-assistance-toast{font-family:var(--ui-font-family);font-feature-settings:"palt" 1}
#app:is([data-view=home],[data-view=lobby]) .shell{font-family:var(--ui-font-family);font-feature-settings:"palt" 1}
#app[data-view=home] .header-account{font-size:var(--ui-text-min)}
.app-dialog :is(.history-panel,.account-panel,.friends-panel,.premium-panel,.house-promo-panel,.credit-reward-panel,.game-guide-panel){font-family:var(--ui-font-family)}
.history-panel .history-totals{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.history-panel .history-totals>div{min-height:58px;overflow:visible}
.history-panel .history-totals span{white-space:normal;line-height:1.3;overflow:visible}
.history-panel .history-totals b{font-size:max(var(--ui-text-min),clamp(16px,4vw,18px));white-space:normal;overflow-wrap:anywhere}
.history-record-main,.history-record-details{flex-wrap:wrap}
.history-record-details .history-changes{flex-wrap:wrap}
.history-panel .game-progress-row{min-width:0}
.history-panel .game-mastery>span{flex-wrap:wrap}
.history-panel .game-mastery>span small{white-space:normal}
.friends-panel .friend-identity{flex-wrap:wrap}
.friends-panel .friend-identity small{flex-basis:100%;white-space:normal}
.credit-reward-entry{flex-wrap:wrap}
.credit-reward-entry>button{max-width:100%}
.leaderboard-slide>small,.leaderboard-level,.leaderboard-tabs button,.leaderboard-row,.leaderboard-category,.leaderboard-empty{font-size:var(--ui-text-min)}
.leaderboard-slide>span{font-size:var(--ui-text-min)}
.leaderboard-banner{min-height:70px}
.leaderboard-tabs button{white-space:normal}
.leaderboard-row-content{min-width:0;flex-wrap:wrap}
.leaderboard-row .leaderboard-identity{min-width:0}
.premium-price del{font-size:inherit}
@media(max-width:460px){
 .history-panel .game-progress-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"name name" "skill mastery"}
 .history-panel .game-progress-name{grid-column:1/-1}
 .history-panel .game-mastery{grid-row:2;padding-left:0}
 .history-record-main .history-timestamp{margin-left:0;text-align:left}
}
