/* Arsenal is the single interface face for the player and administration UI.
   Printed booklet copy uses the dedicated newsprint token below. The files are
   self-hosted so Telegram WebViews never depend on Google Fonts. */
@font-face {
  font-family: "Arsenal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-Regular-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Arsenal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-Regular-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Arsenal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-Bold-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Arsenal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-Bold-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Arsenal";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-Italic-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Arsenal";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-Italic-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Arsenal";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-BoldItalic-Cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Arsenal";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/arsenal/Arsenal-BoldItalic-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-game: "Arsenal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-booklet-newsprint: Georgia, "Times New Roman", serif;

  --type-display-size: 28px;
  --type-display-line: 32px;
  --type-title-size: 20px;
  --type-title-line: 24px;
  --type-heading-size: 16px;
  --type-heading-line: 21px;
  --type-body-size: 14px;
  --type-body-line: 21px;
  --type-compact-size: 13px;
  --type-compact-line: 18px;
  --type-control-size: 12px;
  --type-control-line: 16px;
  --type-caption-size: 11px;
  --type-caption-line: 15px;

  --tracking-display: -.012em;
  --tracking-title: -.008em;
  --tracking-body: 0;
  --tracking-control: .01em;
  --tracking-uppercase: .075em;
}

/* Applied by game-prose.js only after the text occupies more than two real
   visual lines. One- and two-line text keeps its feature-owned alignment. */
p.game-prose-justify,
[data-game-prose].game-prose-justify {
  text-align:justify;
  text-align-last:left;
  text-justify:inter-word;
}

html,
body,
button,
input,
textarea,
select,
option {
  font-family: var(--font-game);
  font-kerning: normal;
  font-synthesis: none;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  letter-spacing: var(--tracking-control);
}
