/*
  PTCG Telop Local Font Definitions
  出典: lwb058/ptcg-telop graphics/css/fonts.css (MIT)
  Rails 向け調整:
    - フォントパスを Propshaft ロードパス (app/assets/fonts) に合わせて書き直し
    - 未参照フォント (MochiyPopP / MPLUS1p {Thin,Light,Medium,ExtraBold}) の
      font-face 宣言は同梱しない
*/

/* --- 1. Font Face Declarations --- */

/* Numeric & Monospace Font Definitions (Universal) */
@font-face {
  font-family: 'Sora';
  src: url("/assets/ptcg_telop/common/Sora-VariableFont_wght-75e0abdc.ttf") format('truetype');
}

@font-face {
  font-family: 'Damage-Font';
  src: url("/assets/ptcg_telop/common/Roboto-VariableFont_wdth,wght-d7dcc7ab.ttf") format('truetype');
  font-weight: 800;
}

@font-face {
  font-family: 'Font-Player-Name';
  src: url("/assets/ptcg_telop/common/NotoSans-VariableFont_wdth,wght-88633559.ttf") format('truetype');
  font-weight: 900;
}

/* Japanese Font Definitions */
@font-face {
  font-family: 'PTCG-Main-JP';
  src: url("/assets/ptcg_telop/common/MPLUS1p-Regular-34e67587.ttf") format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'PTCG-Main-JP';
  src: url("/assets/ptcg_telop/common/MPLUS1p-Bold-6f6a09bd.ttf") format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'PTCG-Main-JP';
  src: url("/assets/ptcg_telop/common/MPLUS1p-Black-d687074f.ttf") format('truetype');
  font-weight: 900;
}

@font-face {
  font-family: 'PTCG-Attack-JP';
  src: url("/assets/ptcg_telop/common/DelaGothicOne-Regular-1f846d5d.ttf") format('truetype');
  font-weight: 400;
}

/* 簡体字中国語 */
@font-face {
  font-family: 'PTCG-Main-CHS';
  src: url("/assets/ptcg_telop/common/NotoSans-VariableFont_wdth,wght-88633559.ttf") format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'PTCG-Attack-CHS';
  src: url("/assets/ptcg_telop/common/UnboundedSans-f3072c28.ttf") format('truetype');
  font-weight: 400;
}

/* 繁体字中国語 */
@font-face {
  font-family: 'PTCG-Main-CHT';
  src: url("/assets/ptcg_telop/common/NotoSans-VariableFont_wdth,wght-88633559.ttf") format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'PTCG-Attack-CHT';
  src: url("/assets/ptcg_telop/common/MantouSans-Regular-6267e3bd.ttf") format('truetype');
  font-weight: 400;
}

/* Mugen テーマ専用 (Matisse Pro は商用フォントのため代替として Zen Old Mincho Black を使う) */
@font-face {
  font-family: 'Font-Player-Mugen';
  src: url("/assets/ptcg_telop/mugen/ZenOldMincho-Black-5ac3f69c.ttf") format('truetype');
  font-weight: 900;
}

/* --- 2. Language-based Switching Logic --- */

.ptcg-telop-overlay-root.lang-jp,
.ptcg-telop-overlay-root:not(.lang-chs):not(.lang-cht) {
  --font-main-lang: 'PTCG-Main-JP';
  --font-attack-lang: 'PTCG-Attack-JP';
  --font-player-lang: 'Font-Player-Name';
}

.ptcg-telop-overlay-root.lang-chs {
  --font-main-lang: 'PTCG-Main-CHS';
  --font-attack-lang: 'PTCG-Attack-CHS';
  --font-player-lang: 'Font-Player-Name';
}

.ptcg-telop-overlay-root.lang-cht {
  --font-main-lang: 'PTCG-Main-CHT';
  --font-attack-lang: 'PTCG-Attack-CHT';
  --font-player-lang: 'Font-Player-Name';
}
