/* ============================================================================
   Murphy-TH Global Typography System (Noto Sans Thai - Regular & SemiBold)
   - Regular (400 / 100-500): Body text, descriptions, guides, inputs, notes
   - SemiBold (600 / 600-900): Headings, buttons, nav, badges, emphasis
   ============================================================================ */

@font-face {
  font-family: 'NotoSansThai Custom';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansThai Custom';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* Override legacy font names so every existing CSS rule resolves cleanly */
@font-face {
  font-family: 'Prompt Custom';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt Custom';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Murphy Thai';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Murphy Thai';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kanit';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kanit';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sarabun';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('NotoSansThai-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('NotoSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
  --font-pixel: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
  --font-mono: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
}

html,
body,
*,
*::before,
*::after,
button,
input,
select,
textarea,
optgroup,
code,
pre,
kbd,
samp,
svg,
svg text,
tspan,
html body .font-pixel,
html body .font-mono,
html body .font-sans,
html body .font-serif {
  font-family: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
  font-synthesis-weight: none;
}

/* Harmonized Typographic Weight Hierarchy (Regular vs SemiBold) */
body {
  font-weight: 400;
}

h1:not(.font-normal),
h2:not(.font-normal),
h3:not(.font-normal),
h4:not(.font-normal),
strong,
b,
th,
.panel-heading h2,
.section-heading,
.font-pixel,
.retro-btn,
.mth-mobile-item,
.vote-btn,
.pinned-badge-pill,
.game-card__title,
.game-card__new-mod-tag,
.game-card__update-tag,
.game-card__custom-badge,
.game-card__platform,
.game-card__version,
.patch-program__badge,
.patch-detail__eyebrow,
.contact-modal__eyebrow {
  font-weight: 600;
}

/* Keep badges previously tuned for wide Press Start 2P legible in Noto Sans Thai */
.game-card__new-mod-tag,
.game-card__update-tag,
.game-card__custom-badge,
.game-card__platform,
.game-card__version,
.patch-program__badge,
.patch-detail__eyebrow,
.contact-modal__eyebrow {
  font-size: 0.7rem !important;
  line-height: 1.35 !important;
}
