/* The app serves its own fonts. scripts/fonts/build_fonts.py builds the files.
   There is no 500 file. For weight 500 the browser uses the 400 file. */
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/BeVietnamPro-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/BeVietnamPro-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/BeVietnamPro-700.woff2') format('woff2');
}
/* --f-display used Baloo 2 before. Be Vietnam Pro Bold sets the same text
   about 12 percent wider, so this alias shrinks it to the old width.
   The alias uses the 700 file, so the browser downloads no extra file. */
@font-face {
    font-family: 'Be Vietnam Pro Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/BeVietnamPro-700.woff2') format('woff2');
    size-adjust: 89%;
}
@font-face {
    font-family: 'Phudu';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('fonts/Phudu.woff2') format('woff2');
}
/* Saigon Digits holds the tabular digits of Baloo 2. size-adjust brings the
   digits near the height of the Be Vietnam Pro digits.
   The metric overrides copy Be Vietnam Pro, so the line height stays the same.
   Chrome multiplies the overrides by size-adjust, so each value is divided by 1.1. */
@font-face {
    font-family: 'Saigon Digits';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/SaigonDigits.woff2') format('woff2');
    unicode-range: U+0020, U+002C, U+002E, U+0030-003A;
    size-adjust: 110%;
    ascent-override: 90.9%;
    descent-override: 24.1%;
    line-gap-override: 0%;
}

/* Phudu has capital letters only. Capitals are hard to read in small labels,
   so only the large headings use Phudu. */
.logo,
.lobby-hero h1,
.wr-head h2,
.ticket h3,
.rules-head-row > span {
    font-family: var(--f-title);
}

/* Be Vietnam Pro has no tabular digits. Saigon Digits gives each
   digit the same width, so a timer or an amount does not move when it changes. */
.num,
.tile .price,
.turn-pill .t,
.rent-table div b {
    font-family: var(--f-ui-num);
}
.player-card .cash,
.price-row b,
.auction-bid .v,
.auc-ring,
.go-pod-worth {
    font-family: var(--f-display-num);
}
