/* หัวหน้าแทง — ธง SVG (Wikimedia Commons, public domain) ผสานโทนหัวการ์ด */
.bet-head--with-flag {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.bet-head-flag {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}
.bet-head-flag--th {
    background-image: url('../images/flags/thailand.svg');
    background-size: auto 142%;
    background-position: 90% 50%;
    mix-blend-mode: soft-light;
    opacity: 0.5;
    filter: saturate(1.12) brightness(1.08);
    mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.2) 28%, #000 52%, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.2) 28%, #000 52%, #000 78%, transparent 100%);
}
.bet-head-flag--la {
    background-image: url('../images/flags/laos.svg');
    background-size: auto 168%;
    background-position: 78% 50%;
    mix-blend-mode: soft-light;
    opacity: 0.48;
    filter: saturate(1.15) brightness(1.06);
    mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.18) 32%, #000 58%, #000 76%, transparent 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.18) 32%, #000 58%, #000 76%, transparent 100%);
}
.bet-head-flag--vn {
    background-image: url('../images/flags/vietnam.svg');
    background-size: auto 165%;
    background-position: 88% 48%;
    mix-blend-mode: soft-light;
    opacity: 0.46;
    filter: saturate(1.1) brightness(1.12) hue-rotate(-4deg);
    mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.2) 30%, #000 55%, #000 74%, transparent 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.2) 30%, #000 55%, #000 74%, transparent 100%);
}
.bet-head--flag-photo.bet-page-head--thai::before,
.bet-head--flag-photo.bet-page-head--thai::after {
    opacity: 0.06 !important;
}
.bet-head--flag-photo.bet-page-head--yiki::before,
.bet-head--flag-photo.bet-page-head--yiki::after {
    opacity: 0.06 !important;
}
.bet-head--lao-grad {
    background: linear-gradient(118deg, rgba(20, 83, 45, 0.35) 0%, rgba(15, 23, 42, 0.96) 45%, rgba(15, 23, 42, 0.98) 100%);
}
.bet-head--vn-grad {
    background: linear-gradient(125deg, rgba(76, 29, 149, 0.4) 0%, rgba(15, 23, 42, 0.96) 48%, rgba(15, 23, 42, 0.98) 100%);
}
