/* 0tded DATA LAB — ธีมห้องแล็บข้อมูลกลางคืน: พื้นน้ำเงินเข้ม · ตัวเลขโมโน · เขียวมะนาว = ไฮไลต์ · ฟ้า = เจ้าบ้าน · ส้ม = ทีมเยือน */
:root {
  --bg: #0a111f; --bg2: #0e1728; --panel: #111c31; --panel2: #16233c; --line: #22314f; --line2: #2c3e62;
  --text: #e7eef9; --soft: #a9b8d3; --muted: #7488a8;
  --lime: #c3f53c; --lime-d: #9ad11a; --home: #38bdf8; --away: #fb923c; --draw: #64748b;
  --win: #22c55e; --loss: #ef4444; --dr: #eab308;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "IBM Plex Sans Thai", "Segoe UI", sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 500px at 80% -10%, rgba(56, 189, 248, .08), transparent 60%), radial-gradient(900px 400px at -10% 10%, rgba(195, 245, 60, .05), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px; background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }

/* ---------- หัวเว็บ ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: rgba(10, 17, 31, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--lime); }
.logo b { color: var(--text); }
.tag { padding: 2px 7px; border: 1px solid var(--lime-d); border-radius: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--lime); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 8px; font-weight: 600; color: var(--soft); }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.on { color: var(--bg); background: var(--lime); }
.clock { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.clock b { font-family: var(--mono); font-size: 20px; } .clock small { font-size: 11.5px; color: var(--muted); }

/* ---------- ส่วนหัวหน้า ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -.5px; }
.hero h1 span { display: block; font-size: 17px; font-weight: 500; color: var(--lime); letter-spacing: 0; }
.hero p { max-width: 620px; margin: 6px 0 0; color: var(--soft); font-size: 14px; }
.hero.slim { align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 8px; }
.kpis div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.kpis b { display: block; font-family: var(--mono); font-size: 26px; line-height: 1.1; color: var(--lime); }
.kpis small { font-size: 12px; color: var(--muted); }
.kpis .live b { color: #ff5d5d; }

/* ---------- ตัวเลขเด่นวันนี้ ---------- */
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.board { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.board h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 8px; font-size: 15px; }
.board h2 i { font-style: normal; }
.board h2 small { flex-basis: 100%; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.board ol { margin: 0; padding: 0; list-style: none; counter-reset: b; }
.board li a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 12.5px; }
.board li:first-child a { border-top: 0; }
.board li a:hover .nm { color: var(--lime); }
.board .t { font-family: var(--mono); color: var(--muted); }
.board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board .nm em { color: var(--muted); font-style: normal; }
.board .v { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 22px; }
.board .v i { position: absolute; left: 0; right: 40px; top: 50%; height: 6px; width: calc(var(--w) - 40px); max-width: calc(100% - 40px); transform: translateY(-50%); border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(195, 245, 60, .45)); }
.board .v b { position: relative; font-family: var(--mono); font-size: 14px; color: var(--lime); }

/* ---------- ตัวกรอง ---------- */
.ctl { position: sticky; top: 57px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 -16px 8px; padding: 10px 16px; background: rgba(10, 17, 31, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hero .ctl { position: static; margin: 0; padding: 0; background: none; border: 0; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.seg button { padding: 6px 12px; border: 0; border-radius: 7px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--soft); background: none; cursor: pointer; }
.seg button.on { color: var(--bg); background: var(--lime); }
.ctl select, .ctl input[type=search] { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--panel); }
.ctl select { max-width: 260px; }
.ctl input[type=search] { width: 170px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--soft); cursor: pointer; }
.chk input { accent-color: var(--lime); width: 16px; height: 16px; }
.count { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- ตารางคู่ ---------- */
.thead, .row { display: grid; grid-template-columns: 66px minmax(200px, 1.5fr) minmax(170px, 1.2fr) 84px 132px 64px minmax(140px, 1fr); align-items: center; gap: 12px; }
.thead { padding: 4px 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.rows { display: grid; gap: 6px; }
.row { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .15s, background .15s, transform .15s; }
.row:hover { border-color: var(--lime-d); background: var(--panel2); }
.row.is-live { border-left: 3px solid #ff5d5d; }
.c-time { display: flex; flex-direction: column; line-height: 1.2; }
.c-time b { font-family: var(--mono); font-size: 18px; } .c-time small { font-size: 11.5px; color: var(--muted); }
.lv { font-style: normal; font-weight: 800; color: #ff5d5d; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.c-teams { display: grid; gap: 3px; min-width: 0; }
.c-teams .lg { overflow: hidden; font-size: 11px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.tm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tm b { overflow: hidden; font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rk { flex: none; padding: 0 5px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--soft); background: var(--bg2); border: 1px solid var(--line); }
.bd { flex: none; width: 22px; height: 22px; object-fit: contain; }
.bd.flag { border-radius: 3px; object-fit: cover; }
.bd.mono { display: inline-grid; place-items: center; border-radius: 50%; font-size: 9.5px; font-weight: 800; color: #fff; background: hsl(var(--h) 45% 38%); }
.bd.xl { width: 72px; height: 72px; } .bd.mono.xl { font-size: 24px; }
.tri { display: flex; height: 10px; overflow: hidden; border-radius: 5px; background: var(--bg2); }
.tri i { width: calc(var(--p) * 1%); } .tri .h { background: var(--home); } .tri .d { background: var(--draw); } .tri .a { background: var(--away); }
.tri.lg { height: 14px; border-radius: 7px; margin: 8px 0 6px; }
.tri-n { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.tri-n b:first-child.up { color: var(--home); } .tri-n b:last-child.up { color: var(--away); }
.c-xg { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.c-xg b { font-family: var(--mono); font-size: 22px; color: var(--lime); } .c-xg small { font-size: 11px; color: var(--muted); }
.hi { font-style: normal; color: var(--lime); } .lo { font-style: normal; color: var(--home); }
.c-gf { display: grid; gap: 2px; font-family: var(--mono); font-size: 13px; }
.c-gf span { display: flex; align-items: baseline; gap: 5px; } .c-gf i { width: 34px; font-family: var(--sans); font-size: 11px; font-style: normal; color: var(--muted); }
.c-gf em { font-style: normal; color: var(--muted); } .c-gf .ga { color: var(--soft); font-weight: 500; }
.c-line { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.c-line span { display: inline-flex; align-items: baseline; gap: 5px; } .c-line i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.c-line b { font-family: var(--mono); } .c-line .od { flex-basis: 100%; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- แฟ้มสถิติ ---------- */
.back { display: inline-block; margin-bottom: 10px; font-size: 13.5px; color: var(--soft); } .back:hover { color: var(--lime); }
.sb { padding: 18px; border: 1px solid var(--line2); border-radius: 18px; background: linear-gradient(160deg, #13223f, #0e1830 60%); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.sb-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; color: var(--soft); }
.sb-meta span + span::before { content: "·"; margin-right: 14px; color: var(--muted); }
.sb-teams { display: grid; grid-template-columns: 1fr minmax(240px, 1.2fr) 1fr; align-items: center; gap: 14px; margin-top: 14px; }
.sb-t { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sb-t b { font-size: 20px; line-height: 1.2; } .sb-t small { font-size: 12.5px; color: var(--muted); }
.sb-t.h b { color: var(--home); } .sb-t.a b { color: var(--away); }
.sb-mid { text-align: center; }
.big-p { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--mono); }
.big-p b { font-size: 38px; line-height: 1; color: var(--soft); } .big-p b small { font-size: 16px; }
.big-p b:first-child.up { color: var(--home); } .big-p b:last-child.up { color: var(--away); }
.big-p i { font-family: var(--sans); font-size: 12.5px; font-style: normal; color: var(--muted); }
.jump { position: sticky; top: 57px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; margin: 12px -16px; padding: 8px 16px; background: rgba(10, 17, 31, .92); backdrop-filter: blur(8px); scrollbar-width: none; }
.jump a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--soft); background: var(--panel); }
.jump a:hover { color: var(--bg); background: var(--lime); border-color: var(--lime); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); scroll-margin-top: 110px; }
.card.wide { grid-column: 1 / -1; }
.card h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; font-size: 17px; }
.card h2 small { font-size: 12px; font-weight: 400; color: var(--muted); }
.note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.mk { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mk th { padding: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; }
.mk td { padding: 7px 6px; border-top: 1px solid var(--line); text-align: center; font-family: var(--mono); }
.mk td:first-child { text-align: left; font-family: var(--sans); color: var(--soft); }
.mk em { margin-left: 4px; font-size: 11px; font-style: normal; } .mk em.dn { color: var(--win); } .mk em.up { color: var(--loss); }
.mk small { color: var(--muted); }
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.lines div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.lines i { font-size: 11.5px; font-style: normal; color: var(--muted); } .lines b { font-family: var(--mono); font-size: 22px; } .lines small { font-size: 12px; color: var(--soft); }
.lines .xg b { color: var(--lime); }
.tabs { display: inline-flex; gap: 4px; margin-left: auto; }
.tabs button { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 12px; color: var(--soft); background: none; cursor: pointer; }
.tabs button.on { color: var(--bg); background: var(--lime); border-color: var(--lime); }
.cmp-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.cmp-head span { display: flex; align-items: center; gap: 6px; } .cmp-head span:first-child { color: var(--home); } .cmp-head span:last-child { color: var(--away); }
.cmp { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; padding: 5px 0; }
.cmp > b { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--soft); text-align: center; }
.cmp > b.best { font-weight: 800; color: var(--text); }
.cmp .bar { position: relative; display: flex; height: 22px; overflow: hidden; border-radius: 6px; background: var(--bg2); }
.cmp .bar i { height: 100%; width: var(--p); } .cmp .bar .h { background: linear-gradient(90deg, rgba(56, 189, 248, .25), var(--home)); } .cmp .bar .a { background: linear-gradient(90deg, var(--away), rgba(251, 146, 60, .25)); }
.cmp .bar em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-style: normal; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.rate { display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.rate .lbl { font-size: 13px; color: var(--soft); }
.rv { position: relative; display: flex; align-items: center; height: 24px; padding: 0 8px; overflow: hidden; border-radius: 6px; background: var(--bg2); }
.rv i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); opacity: .5; } .rv.h i { background: var(--home); } .rv.a i { background: var(--away); }
.rv b { position: relative; font-family: var(--mono); font-size: 13px; }
.rv.txt { height: auto; padding: 4px 8px; flex-direction: column; align-items: flex-start; } .rv.txt small { position: relative; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; }
.legend .h::before { background: var(--home); } .legend .a::before { background: var(--away); }
.fr { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.fr:first-of-type { border-top: 0; }
.fr-n { display: flex; align-items: center; gap: 8px; min-width: 0; } .fr-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.fc { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 8px; border-top: 3px solid; background: var(--bg2); line-height: 1.15; min-width: 0; }
.fc.w { border-color: var(--win); } .fc.d { border-color: var(--dr); } .fc.l { border-color: var(--loss); }
.fc b { font-family: var(--mono); font-size: 14px; } .fc small { max-width: 100%; overflow: hidden; font-size: 10px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.fc em { font-size: 9.5px; font-style: normal; color: var(--soft); }
.h2h-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; text-align: center; }
.h2h-sum div { padding: 8px 4px; border-radius: 10px; background: var(--bg2); }
.h2h-sum b { display: block; font-family: var(--mono); font-size: 20px; color: var(--lime); } .h2h-sum small { display: block; overflow: hidden; font-size: 10.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.h2h { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.h2h li { display: grid; grid-template-columns: 82px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.h2h .d { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.h2h .hm { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .h2h .aw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h .win { font-weight: 700; color: var(--lime); }
.h2h b { font-family: var(--mono); text-align: center; }
.xi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xi h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14.5px; }
.xi ol { margin: 0; padding: 0; list-style: none; columns: 2; font-size: 13px; }
.xi li { padding: 3px 0; break-inside: avoid; } .xi li i { display: inline-block; width: 26px; font-family: var(--mono); font-style: normal; color: var(--lime); }
.st { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st th { padding: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; }
.st td { padding: 7px 6px; border-top: 1px solid var(--line); text-align: center; font-family: var(--mono); }
.st .tn { display: flex; align-items: center; gap: 8px; font-family: var(--sans); text-align: left; }
.st th:nth-child(2) { text-align: left; }
.st tr.me td { background: rgba(195, 245, 60, .08); } .st tr.me td:first-child { box-shadow: inset 3px 0 var(--lime); }
.st tbody tr:hover td { background: var(--panel2); }
.bar-c { display: flex; align-items: center; gap: 8px; } .bar-c small { color: var(--muted); }
.pbar { flex: 1; height: 8px; min-width: 60px; overflow: hidden; border-radius: 4px; background: var(--bg2); } .pbar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--lime-d), var(--lime)); }
.more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--lime); }
.foot { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; font-size: 12.5px; color: var(--muted); }
.foot b { color: var(--lime); }

/* ---------- มือถือ ---------- */
@media (max-width: 1080px) {
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thead { display: none; }
  .row { grid-template-columns: 56px minmax(0, 1fr) 64px 70px; grid-template-areas: "time teams hex xg" "prob prob prob prob" "gf gf line line"; gap: 8px 12px; }
  .c-hex { grid-area: hex; }
  .c-time { grid-area: time; } .c-teams { grid-area: teams; } .c-xg { grid-area: xg; } .c-prob { grid-area: prob; } .c-gf { grid-area: gf; grid-template-columns: 1fr 1fr; } .c-line { grid-area: line; justify-content: flex-end; }
  .c-line .od { text-align: right; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .top { gap: 10px; padding: 8px 12px; } .logo { font-size: 22px; } .tag { display: none; }
  .nav a { padding: 6px 8px; font-size: 13.5px; } .clock b { font-size: 16px; }
  .hero h1 { font-size: 26px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; } .kpis div { padding: 8px; } .kpis b { font-size: 20px; } .kpis small { font-size: 10.5px; }
  .boards { grid-template-columns: minmax(0, 1fr); }
  .ctl { top: 49px; } .ctl select { flex: 1 1 45%; max-width: none; } .ctl input[type=search] { flex: 1 1 45%; width: auto; } .count { margin-left: 0; }
  .row { grid-template-columns: 50px minmax(0, 1fr) 52px 56px; padding: 10px; }
  .c-gf { grid-template-columns: 1fr; }
  .jump { top: 49px; }
  .sb-teams { grid-template-columns: 1fr 1fr; } .sb-mid { grid-column: 1 / -1; order: 3; }
  .bd.xl { width: 54px; height: 54px; } .sb-t b { font-size: 16px; } .big-p b { font-size: 30px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .rate { grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr); }
  .fr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fr-cells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .h2h-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h2h li { grid-template-columns: 70px minmax(0, 1fr) 44px minmax(0, 1fr); font-size: 12px; }
  .xi { grid-template-columns: 1fr; }
  .st .bar-h, .st .bar-c { display: none; }
}

/* =====================================================================
   ลูกเล่น: หกเหลี่ยม 6 ด้าน · OVR · แมตช์ไฮไลต์ · DNA · มุมมองการ์ด · ทำนายสกอร์ · เงินไหล · เส้นฟอร์ม
   ===================================================================== */
/* พื้นหลังลายรังผึ้งจางๆ ขยับช้า ให้บรรยากาศห้องแล็บ */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23c3f53c' stroke-opacity='.05'/%3E%3C/svg%3E");
  animation: drift 60s linear infinite; }
@keyframes drift { to { background-position: 56px 98px; } }

/* หกเหลี่ยม */
.hex { display: block; overflow: visible; }
.hex .hx-g { fill: none; stroke: rgba(169, 184, 211, .16); stroke-width: .5; }
.hex .hx-s { stroke-width: 1.2; stroke-linejoin: round; transform-origin: 50px 50px; animation: hexgrow .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.hex .hx-s.h { fill: rgba(56, 189, 248, .28); stroke: var(--home); filter: drop-shadow(0 0 2px rgba(56, 189, 248, .8)); }
.hex .hx-s.a { fill: rgba(251, 146, 60, .26); stroke: var(--away); filter: drop-shadow(0 0 2px rgba(251, 146, 60, .8)); animation-delay: .15s; }
.hex.mini .hx-s { stroke-width: 2; }
.hex.mini .hx-g { stroke-width: 1; }
.hex .hx-l { font-family: var(--sans); font-size: 5.4px; font-weight: 600; fill: var(--soft); }
.hex .hx-v { font-family: var(--mono); font-size: 5px; font-weight: 700; } .hex .hx-v .h { fill: var(--home); } .hex .hx-v .a { fill: var(--away); }
@keyframes hexgrow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hex .hx-s, body::before, .spot::before { animation: none !important; } }
.c-hex { display: grid; place-items: center; }
.c-hex .hex { width: 58px; height: 58px; }

/* OVR ป้ายตัวเลขแบบการ์ดนักเตะ */
.ov { flex: none; padding: 0 5px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 800; font-style: normal; color: #06101f; }
.ov.h { background: var(--home); } .ov.a { background: var(--away); }

/* DNA แมตช์ */
.dnas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.dna { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid; }
.dna small { font-weight: 400; opacity: .8; }
.dna.d-hot { color: #ffb4a2; border-color: rgba(255, 120, 90, .45); background: rgba(255, 90, 60, .12); }
.dna.d-cold { color: #a5d8ff; border-color: rgba(120, 180, 255, .4); background: rgba(80, 150, 255, .1); }
.dna.d-even { color: #e2e8f0; border-color: rgba(226, 232, 240, .3); background: rgba(226, 232, 240, .07); }
.dna.d-fav { color: var(--lime); border-color: rgba(195, 245, 60, .45); background: rgba(195, 245, 60, .1); }
.dna.d-flow { color: #86efac; border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); }
.dna.d-cor { color: #fda4af; border-color: rgba(244, 63, 94, .4); background: rgba(244, 63, 94, .1); }
.dna.d-card { color: #fde047; border-color: rgba(234, 179, 8, .45); background: rgba(234, 179, 8, .1); }

/* ⭐ แมตช์ไฮไลต์ — ขอบไล่สีหมุน */
.spot { position: relative; display: block; margin-bottom: 18px; padding: 18px 20px 16px; border-radius: 22px; isolation: isolate; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from var(--ang, 0deg), var(--home), var(--lime), var(--away), var(--home)); animation: spin 6s linear infinite; }
.spot::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 20px; background: linear-gradient(160deg, #13223f, #0b1427 70%); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.spot-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #06101f; background: var(--lime); box-shadow: 0 0 16px rgba(195, 245, 60, .5); }
.spot-meta { margin-top: 6px; font-size: 13px; color: var(--soft); }
.spot-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 6px; }
.spot-t { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.spot-t b { font-size: 20px; line-height: 1.2; } .spot-t.h b { color: var(--home); } .spot-t.a b { color: var(--away); }
.ovr { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 12px; border-radius: 10px; font-family: var(--mono); font-size: 30px; font-weight: 800; line-height: 1.1; color: #06101f; }
.ovr small { font-size: 11px; } .ovr.h { background: var(--home); box-shadow: 0 0 18px rgba(56, 189, 248, .45); } .ovr.a { background: var(--away); box-shadow: 0 0 18px rgba(251, 146, 60, .45); }
.spot-hex .hex { width: 330px; height: 330px; }
.spot-foot { max-width: 620px; margin: 4px auto 0; text-align: center; }
.spot-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 6px 0 8px; }
.spot-nums span { display: flex; flex-direction: column; } .spot-nums small { font-size: 11.5px; color: var(--muted); }
.spot-nums b { font-family: var(--mono); font-size: 18px; } .spot-nums em { font-size: 12px; font-style: normal; color: var(--lime); }
.spot .dnas { justify-content: center; }
.spot:hover .spot-tag { filter: brightness(1.1); }

/* ปุ่มสลับมุมมอง + มุมมองการ์ด */
.seg.view button { font-size: 13px; }
.rows.cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.rows.cards .row { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "time hex" "teams hex" "prob prob" "xg line" "gf gf"; align-content: start; gap: 8px; padding: 14px; }
.rows.cards .c-time { grid-area: time; flex-direction: row; align-items: baseline; gap: 8px; } .rows.cards .c-teams { grid-area: teams; }
.rows.cards .c-hex { grid-area: hex; } .rows.cards .c-hex .hex { width: 96px; height: 96px; }
.rows.cards .c-prob { grid-area: prob; } .rows.cards .c-xg { grid-area: xg; align-items: flex-start; } .rows.cards .c-line { grid-area: line; justify-content: flex-end; }
.rows.cards .c-gf { grid-area: gf; grid-template-columns: 1fr 1fr; }
.wrap:has(.rows.cards) .thead { display: none; }
.rows.cards .empty { grid-column: 1 / -1; }

/* แฟ้มสถิติ: หกเหลี่ยมใหญ่ + OVR */
.sb-dna { margin-top: 12px; } .sb-dna .dnas { justify-content: center; } .sb-dna .dna { font-size: 12.5px; padding: 3px 10px; }
.hexcard { background: radial-gradient(60% 80% at 50% 50%, rgba(56, 189, 248, .06), transparent 70%), var(--panel); }
.hex-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hex-mid .hex { width: 340px; height: 340px; }
.hex-side { flex: 1; max-width: 280px; }
.ovr-card { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); }
.ovr-card b { font-family: var(--mono); font-size: 44px; line-height: 1; } .ovr-card.h b { color: var(--home); text-shadow: 0 0 20px rgba(56, 189, 248, .5); } .ovr-card.a b { color: var(--away); text-shadow: 0 0 20px rgba(251, 146, 60, .5); }
.ovr-card small { font-size: 12px; color: var(--muted); text-align: center; }
.axes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.axes li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 12.5px; }
.axes span { color: var(--soft); } .axes b { font-family: var(--mono); text-align: right; }
.axes i { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--bg2), var(--c, var(--home))) 0 0 / var(--p) 100% no-repeat, var(--bg2); }
.hex-side.a .axes i { --c: var(--away); }

/* ทำนายสกอร์ */
.score-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.matrix { position: relative; padding: 20px 0 0 20px; }
.ax-y { position: absolute; left: 0; top: 20px; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--home); text-align: center; }
.ax-x { position: absolute; top: 0; left: 42px; right: 0; font-size: 11px; color: var(--away); text-align: center; }
.mx { display: grid; grid-template-columns: 22px repeat(6, minmax(0, 1fr)); gap: 3px; }
.mx i { display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--muted); }
.mx b { display: grid; place-items: center; aspect-ratio: 1.4; border-radius: 6px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); transition: transform .15s; }
.mx b.hw { background: rgba(56, 189, 248, calc(.08 + var(--a) * .85)); } .mx b.aw { background: rgba(251, 146, 60, calc(.08 + var(--a) * .85)); } .mx b.dr { background: rgba(148, 163, 184, calc(.08 + var(--a) * .8)); }
.mx b:hover { transform: scale(1.12); outline: 2px solid var(--lime); }
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.top3 div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); }
.top3 b { font-family: var(--mono); font-size: 24px; } .top3 small { font-size: 12px; color: var(--muted); }
.top3 .t0 { border-color: var(--lime-d); box-shadow: 0 0 18px rgba(195, 245, 60, .18); } .top3 .t0 b { color: var(--lime); }

/* มาตรเงินไหล */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 2fr minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.fl-l { overflow: hidden; color: var(--home); text-align: right; text-overflow: ellipsis; white-space: nowrap; } .fl-r { overflow: hidden; color: var(--away); text-overflow: ellipsis; white-space: nowrap; }
.fl-bar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(56, 189, 248, .35), var(--bg2) 45% 55%, rgba(251, 146, 60, .35)); }
.fl-bar em { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--muted); }
.fl-bar i { position: absolute; top: 50%; left: calc(50% - var(--f) * .5%); width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); transform: translate(-50%, -50%); }
.flow-t { margin: 6px 0 0; font-size: 12.5px; color: var(--soft); text-align: center; } .flow-t b { color: var(--lime); }

/* เส้นฟอร์ม */
.fr-n { flex-wrap: wrap; }
.spark { width: 160px; height: 36px; overflow: visible; }
.spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; } .spark.h polyline { stroke: var(--home); } .spark.a polyline { stroke: var(--away); }
.spark .max { stroke: var(--line2); stroke-dasharray: 3 3; }
.spark circle { stroke: var(--bg); stroke-width: 1.5; } .spark .w { fill: var(--win); } .spark .d { fill: var(--dr); } .spark .l { fill: var(--loss); }

@media (max-width: 1080px) {
  .hex-wrap { flex-wrap: wrap; } .hex-mid { order: 0 !important; flex-basis: 100%; display: grid; place-items: center; }
  .hex-side { max-width: none; }
  .score-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .spot { padding: 14px 12px; } .spot-body { grid-template-columns: 1fr 1fr; } .spot-hex { grid-column: 1 / -1; order: 3; display: grid; place-items: center; }
  .spot-hex .hex { width: 240px; height: 240px; } .spot-t b { font-size: 16px; } .ovr { font-size: 24px; }
  .hex-mid .hex { width: 300px; height: 300px; }
  .hex-side { flex-basis: 100%; }
  .c-hex .hex { width: 50px; height: 50px; }
  .rows.cards { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   หน้าใหม่: ห้องดวล · แผนที่ความร้อนลีก · ความแม่น · กราฟราคาไหล · การ์ดแชร์
   ===================================================================== */
.nav { overflow-x: auto; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; } .nav a { white-space: nowrap; }
.seg a { padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--soft); }
.seg a.on { color: var(--bg); background: var(--lime); }
.btn-share, .btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-share { border: 0; color: #06101f; background: var(--lime); box-shadow: 0 0 18px rgba(195, 245, 60, .35); }
.btn-share:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--lime-d); }
.sb-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }

/* กราฟราคาไหล */
.card h3.sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 16px 0 6px; font-size: 14.5px; }
.card h3.sub small { font-size: 12px; font-weight: 400; color: var(--muted); }
.ochart { width: 100%; height: auto; }
.ochart .og { stroke: var(--line); stroke-width: 1; } .ochart .ot { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.ochart .ol { fill: none; stroke-width: 2.5; stroke-linejoin: round; } .ochart .ol.h { stroke: var(--home); } .ochart .ol.d { stroke: var(--draw); } .ochart .ol.a { stroke: var(--away); }
.ochart .oc.h { fill: var(--home); } .ochart .oc.d { fill: var(--draw); } .ochart .oc.a { fill: var(--away); }
.legend .d::before { background: var(--draw); }

/* การ์ดแชร์ */
.share-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 7, 15, .82); backdrop-filter: blur(6px); }
.share-modal[hidden] { display: none; }
.share-box { display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.share-box canvas { width: min(420px, 86vw); height: auto; max-height: 76vh; object-fit: contain; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.share-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ห้องดวล */
.duel-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.dp { display: flex; flex: 1 1 220px; flex-direction: column; gap: 4px; }
.dp small { font-size: 12px; font-weight: 600; } .dp.h small { color: var(--home); } .dp.a small { color: var(--away); }
.dp input { height: 42px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg2); }
.dp.h input:focus { outline: 2px solid var(--home); } .dp.a input:focus { outline: 2px solid var(--away); }
.swap { width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 50%; font-size: 18px; color: var(--lime); background: var(--bg2); cursor: pointer; }
.duel .axes li.win b { color: var(--lime); }
.duel-w { margin: 10px 0 0; font-size: 13px; color: var(--soft); text-align: center; } .duel-w b { font-family: var(--mono); font-size: 18px; color: var(--lime); }
.duel-verdict { margin: 16px 0 0; padding: 12px; border-radius: 12px; font-size: 16px; text-align: center; background: var(--bg2); } .duel-verdict b { color: var(--lime); }
.duel .card, .card.duel { margin-bottom: 12px; }
.duel-links { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; } .duel-links a { color: var(--soft); } .duel-links a:hover { color: var(--lime); }
#score.card { margin-bottom: 12px; }

/* แผนที่ความร้อนลีก */
.heat-scroll { overflow-x: auto; }
.heat { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 3px; font-size: 13.5px; }
.heat th { padding: 6px 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.heat th a:hover, .heat th.on { color: var(--lime); }
.heat th.lg, .heat td.lg { text-align: left; }
.heat td { padding: 9px 6px; border-radius: 6px; font-family: var(--mono); text-align: center; color: var(--text); background: rgba(195, 245, 60, calc(.04 + var(--h) * .5)); }
.heat td[style*="--h:1"] { font-weight: 800; color: #06101f; }
.heat td.plain { background: var(--bg2); }
.heat td.lg { max-width: 280px; overflow: hidden; font-family: var(--sans); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; background: var(--bg2); }
.heat td.lg a:hover { color: var(--lime); }

/* ความแม่น */
.acc-kpi { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.acc-kpi div { display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.acc-kpi b { font-family: var(--mono); font-size: 30px; line-height: 1.1; color: var(--lime); } .acc-kpi small { font-size: 12px; color: var(--muted); }
.acc-kpi .big { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; border-color: var(--lime-d); background: linear-gradient(160deg, #1a2d14, var(--panel)); }
.acc-kpi .big b { font-size: 56px; } .acc-kpi .big i { font-family: var(--mono); font-size: 24px; font-style: normal; color: var(--lime); } .acc-kpi .big small { flex-basis: 100%; }
.calib { display: grid; gap: 8px; }
.cb { display: grid; grid-template-columns: 96px minmax(0, 1fr) 50px 56px; align-items: center; gap: 8px; font-size: 13px; }
.cb > span { color: var(--soft); } .cb > b { font-family: var(--mono); text-align: right; } .cb > small { color: var(--muted); }
.cb > i { position: relative; height: 16px; border-radius: 5px; background: var(--bg2); }
.cb em { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 5px; background: linear-gradient(90deg, #15803d, var(--win)); }
.cb u { position: absolute; top: -3px; bottom: -3px; left: var(--p); width: 2px; background: #fff; }
.acc-days { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.acc-days > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; min-width: 0; }
.acc-days .bar { position: relative; width: 70%; max-width: 34px; height: calc(var(--h) * .7); min-height: 6px; overflow: hidden; border-radius: 6px 6px 2px 2px; background: rgba(239, 68, 68, .45); }
.acc-days .bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--w); background: var(--win); }
.acc-days b { font-family: var(--mono); font-size: 12px; } .acc-days small { font-size: 10.5px; color: var(--muted); }
.acc-list { display: grid; gap: 4px; }
.acc-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 110px 70px 150px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); font-size: 13.5px; }
.acc-row:hover { outline: 1px solid var(--lime-d); }
.acc-row .d { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.acc-row .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acc-row .t em { font-style: normal; color: var(--muted); } .acc-row .t small { display: block; overflow: hidden; font-size: 11px; color: var(--muted); text-overflow: ellipsis; }
.acc-row .p, .acc-row .r { display: flex; flex-direction: column; line-height: 1.2; } .acc-row .p small, .acc-row .r small { font-size: 10.5px; color: var(--muted); }
.acc-row .p b, .acc-row .r b { font-family: var(--mono); font-size: 16px; } .acc-row .r b { color: var(--lime); } .acc-row .p i { font-size: 11px; font-style: normal; color: var(--soft); }
.acc-row .ok { display: flex; gap: 4px; justify-content: flex-end; }
.acc-row .ok i { padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 10.5px; font-style: normal; font-weight: 700; }
.acc-row .ok i.y { color: #06101f; background: var(--win); } .acc-row .ok i.n { color: #fca5a5; background: rgba(239, 68, 68, .18); }
.acc-row .ok i.star { background: var(--lime); }
@media (max-width: 760px) {
  .acc-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acc-kpi .big { grid-column: 1 / -1; }
  .acc-row { grid-template-columns: 40px minmax(0, 1fr) 64px 50px; } .acc-row .ok { grid-column: 2 / -1; justify-content: flex-start; }
  .cb { grid-template-columns: 76px minmax(0, 1fr) 42px; } .cb > small { display: none; }
  .swap { order: 3; } .duel-pick .btn-share, .duel-pick .btn-ghost { flex: 1; justify-content: center; }
}

/* =====================================================================
   ธีม "ศูนย์ข้อมูลฟุตบอล": สนามหญ้ากลางคืน + การ์ดทีมแบบ FUT (ทอง/เงิน/ทองแดงตาม OVR) · ✓ ติ๊กฝั่งที่ดีกว่า
   (ทับค่าสีเดิมด้านบน — หน้าอื่นเปลี่ยนโทนตามอัตโนมัติ)
   ===================================================================== */
:root {
  --bg: #051310; --bg2: #0a1e18; --panel: #0c231c; --panel2: #113026; --line: #1b3d31; --line2: #27543f;
  --text: #eef8f1; --soft: #b6cfc1; --muted: #7fa190;
  --lime: #f5c542; --lime-d: #c99a1c; --home: #4cc9f0; --away: #ff7a59; --draw: #7b8f86;
  --tick: #22c55e;
}
body {
  background: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(80, 200, 120, .16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 90px, transparent 90px 180px),
    radial-gradient(circle at 50% 50%, transparent 0 139px, rgba(255, 255, 255, .03) 140px 142px, transparent 143px);
  background-attachment: fixed;
}
body::before { display: none; }
.top { background: rgba(5, 19, 16, .9); border-bottom: 1px solid var(--line); }
.logo { color: var(--lime); }
.tag { border-color: var(--lime-d); color: var(--lime); }
.nav a.on { color: #1c1400; background: linear-gradient(135deg, #ffe58a, var(--lime)); }
.wrap { max-width: 1680px; }
.foot { max-width: none; padding: 20px 24px 40px; }

/* ---------- โครง 3 แผงเต็มจอ ---------- */
.center { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 16px; padding: 16px 20px 30px; align-items: start; }
.side { position: sticky; top: 66px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 80px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.panel { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.panel h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.panel h3 small { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.panel.grow { flex: 1; min-height: 200px; display: flex; flex-direction: column; }
.panel input[type=search], .panel select { width: 100%; height: 38px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--bg2); }
.vseg { display: grid; gap: 4px; }
.vseg button, .lglist button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--soft); text-align: left; background: none; cursor: pointer; }
.vseg button i, .lglist button i { flex: none; padding: 0 7px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; font-style: normal; color: var(--muted); background: var(--bg2); }
.vseg button:hover, .lglist button:hover { background: var(--bg2); color: var(--text); }
.vseg button.on, .lglist button.on { color: #1c1400; background: linear-gradient(135deg, #ffe58a, var(--lime)); }
.vseg button.on i, .lglist button.on i { color: #1c1400; background: rgba(255, 255, 255, .45); }
.lglist { display: grid; gap: 2px; overflow: auto; min-height: 0; flex: 1; }
.lglist button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mbar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mbar h1 { margin: 0; font-size: 26px; } .mbar h1 span { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--tick); }
.mcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; }
.mcs .empty { grid-column: 1 / -1; }

/* ---------- การ์ดคู่ ---------- */
.mc { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; content-visibility: auto; contain-intrinsic-size: 440px 330px;
  background: radial-gradient(90% 60% at 50% 45%, rgba(80, 200, 120, .07), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); transition: border-color .15s, transform .15s; }
.mc:hover { border-color: var(--lime-d); transform: translateY(-2px); }
.mc.is-live { border-color: rgba(255, 93, 93, .6); }
.mc[hidden] { display: none; }
.mc-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.mc-head .lg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mc-head .tm { flex: none; } .mc-head .tm b { font-family: var(--mono); font-size: 15px; color: var(--text); }
.mc-body { display: grid; grid-template-columns: 108px minmax(0, 1fr) 108px; align-items: start; gap: 10px; }
.mc-mid { min-width: 0; }
.tally { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.tally b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--mono); font-size: 18px; color: var(--soft); background: var(--bg2); border: 2px solid var(--line2); }
.tally b.lead { color: #03140a; background: var(--tick); border-color: #7af0a5; box-shadow: 0 0 14px rgba(34, 197, 94, .5); }
.tally i { font-size: 11.5px; font-style: normal; font-weight: 700; color: var(--tick); }
.mc-foot { display: grid; gap: 6px; }
.mc-foot .tri { height: 8px; }
.pn { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 13px; }
.pn .h { color: var(--home); } .pn .a { color: var(--away); } .pn small { font-family: var(--sans); font-size: 11.5px; color: var(--muted); }
.mini { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.mini span { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 4px 6px; border-radius: 8px; background: var(--bg2); }
.mini small { font-size: 10.5px; color: var(--muted); } .mini b { font-family: var(--mono); font-size: 14px; color: var(--lime); }
.mc .dnas { justify-content: center; }

/* ---------- ✓ รายการใครดีกว่า ---------- */
.cks { display: grid; gap: 3px; }
.ck { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 7px; font-size: 12px; background: rgba(255, 255, 255, .025); }
.ck-l { color: var(--soft); text-align: center; white-space: nowrap; }
.ck-h { display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
.ck-a { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ck em { font-family: var(--mono); font-size: 12.5px; font-style: normal; color: var(--muted); }
.ck.w-h { background: linear-gradient(90deg, rgba(34, 197, 94, .18), transparent 60%); } .ck.w-a { background: linear-gradient(270deg, rgba(34, 197, 94, .18), transparent 60%); }
.ck.w-h .ck-h em, .ck.w-a .ck-a em { color: var(--text); font-weight: 700; }
.ck.w-h .ck-l, .ck.w-a .ck-l { color: var(--text); }
.ck.tie { opacity: .55; }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; font-weight: 900; font-style: normal; color: #03140a; background: var(--tick); box-shadow: 0 0 8px rgba(34, 197, 94, .6); }
.mc .ck { padding: 2px 4px; font-size: 11.5px; } .mc .tick { width: 16px; height: 16px; font-size: 11px; }
.ck-card .cks { gap: 5px; } .ck-card .ck { padding: 7px 12px; font-size: 14px; } .ck-card .ck em { font-size: 15px; } .ck-card .tick { width: 24px; height: 24px; font-size: 15px; }
.ck-card .verdict { margin: 12px 0 0; padding: 12px; border-radius: 12px; text-align: center; font-size: 16px; background: var(--bg2); } .ck-card .verdict b { color: var(--tick); }
.ck-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.ck-head span { display: flex; align-items: center; gap: 8px; font-weight: 700; } .ck-head span:first-child { color: var(--home); } .ck-head span:last-child { justify-content: flex-end; color: var(--away); }

/* ---------- การ์ดทีม FUT ---------- */
.fut { position: relative; display: flex; flex-direction: column; align-items: center; width: 132px; padding: 12px 10px 16px; color: #2a1d00; text-align: center;
  clip-path: polygon(50% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%, 0 7%); background: #33443d; isolation: isolate; }
.fut::before { content: ""; position: absolute; inset: 4px; z-index: -1; clip-path: inherit; background: inherit; filter: brightness(1.08); }
.fut::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); background-size: 250% 100%; background-position: 100% 0; transition: background-position .8s; }
a:hover .fut::after, .fut:hover::after { background-position: -50% 0; }
.fut.gold { background: linear-gradient(160deg, #fff4c2 0%, #f5c542 34%, #d6a52a 62%, #8f6813 100%); color: #2a1d00; }
.fut.silver { background: linear-gradient(160deg, #ffffff 0%, #dfe5ea 36%, #a7b1bb 70%, #6d7780 100%); color: #182028; }
.fut.bronze { background: linear-gradient(160deg, #ffe0bd 0%, #df9f63 38%, #ad6a33 72%, #6f3e18 100%); color: #2b1405; }
.fut.none { color: var(--soft); }
.fut-top { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; margin: 6px 0 -18px 6px; line-height: 1; }
.fut-ovr { font-family: var(--mono); font-size: 28px; font-weight: 800; }
.fut-top small { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.fut.h .fut-top small { color: #0b4f70; } .fut.a .fut-top small { color: #8a2a12; }
.fut-logo .bd.xl { width: 58px; height: 58px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.fut-name { max-width: 100%; margin-top: 4px; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.fut.h .fut-name { box-shadow: inset 0 -3px var(--home); } .fut.a .fut-name { box-shadow: inset 0 -3px var(--away); }
.fut-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px 6px; margin-top: 5px; font-size: 9.5px; font-weight: 600; line-height: 1.2; }
.fut-stats span { display: flex; flex-direction: column; } .fut-stats b { font-family: var(--mono); font-size: 12px; font-weight: 800; }
.fut.sm { width: 108px; padding: 10px 8px 14px; } .fut.sm .fut-ovr { font-size: 22px; } .fut.sm .fut-logo .bd.xl { width: 44px; height: 44px; }
.fut.sm .fut-name { font-size: 11.5px; } .fut.sm .fut-stats { font-size: 8.5px; gap: 0 4px; } .fut.sm .fut-stats b { font-size: 10.5px; }
.fut.lg { width: 190px; padding: 16px 14px 22px; } .fut.lg .fut-ovr { font-size: 40px; } .fut.lg .fut-logo .bd.xl { width: 84px; height: 84px; }
.fut.lg .fut-name { font-size: 16px; } .fut.lg .fut-stats { font-size: 11px; } .fut.lg .fut-stats b { font-size: 15px; }

/* ---------- แผงขวา ---------- */
.spot2 { border-color: var(--lime-d); box-shadow: 0 0 24px rgba(245, 197, 66, .12); }
.sp-cards { display: flex; justify-content: center; gap: 12px; }
.sp-hex { display: grid; place-items: center; margin-top: -4px; } .sp-hex .hex { width: 240px; height: 240px; }
.sp-v { margin: 0; font-size: 13px; text-align: center; color: var(--soft); } .sp-v b { color: var(--tick); }
.kpi4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi4 div { padding: 8px 10px; border-radius: 10px; background: var(--bg2); }
.kpi4 b { display: block; font-family: var(--mono); font-size: 22px; color: var(--lime); } .kpi4 small { font-size: 11.5px; color: var(--muted); }
.kpi4 .live b { color: #ff5d5d; }
.accm > div { display: flex; gap: 8px; } .accm span { flex: 1; padding: 8px 10px; border-radius: 10px; background: var(--bg2); }
.accm b { display: block; font-family: var(--mono); font-size: 22px; color: var(--tick); } .accm small { font-size: 11.5px; color: var(--muted); }
.board2 ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.board2 li a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 12.5px; counter-increment: r; }
.board2 li a::before { content: counter(r); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.board2 li:first-child a { border-top: 0; }
.board2 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board2 b { font-family: var(--mono); color: var(--lime); }
.board2 li a:hover .nm { color: var(--lime); }
.links2 { display: grid; gap: 6px; } .links2 a { padding: 8px 10px; border-radius: 9px; font-weight: 600; background: var(--bg2); } .links2 a:hover { color: var(--lime); }

/* ---------- หน้าแฟ้มสถิติ ---------- */
.sb { background: radial-gradient(80% 90% at 50% 0%, rgba(80, 200, 120, .16), transparent 70%), linear-gradient(160deg, #0f2c22, #081a14 70%); border-color: var(--line2); }
.hexcard { background: radial-gradient(60% 80% at 50% 50%, rgba(80, 200, 120, .08), transparent 70%), var(--panel); }
.hex-side .fut { margin: 0 auto 12px; }
.btn-share { color: #1c1400; background: linear-gradient(135deg, #ffe58a, var(--lime)); box-shadow: 0 0 18px rgba(245, 197, 66, .3); }
.spot::before { background: conic-gradient(from var(--ang, 0deg), var(--home), var(--lime), var(--away), var(--home)); }

@media (max-width: 1400px) {
  .center { grid-template-columns: 230px minmax(0, 1fr); }
  .side.right { grid-column: 1 / -1; position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
  .spot2 { grid-row: span 2; }
}
@media (max-width: 900px) {
  .center { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .side.left { position: static; max-height: none; }
  .side.left .panel.grow { min-height: 0; }
  .lglist { display: flex; overflow-x: auto; flex: none; padding-bottom: 4px; }
  .lglist button { flex: none; width: auto; max-width: 240px; }
  .vseg { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vseg button { justify-content: center; flex-direction: column; gap: 2px; padding: 6px 4px; }
  .mcs { grid-template-columns: minmax(0, 1fr); }
  .mc-body { grid-template-columns: 96px minmax(0, 1fr) 96px; gap: 6px; }
  .fut.sm { width: 96px; padding: 9px 6px 13px; } .fut.sm .fut-stats { display: none; }
  .mbar h1 { font-size: 20px; } .mbar h1 span { display: block; margin: 2px 0 0; }
}

/* แฟ้มสถิติ: ✓ ใครดีกว่า + การ์ด FUT สองข้าง */
.ck-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; align-items: center; gap: 18px; }
.ck-wrap > .fut { justify-self: center; }
.ck-main { min-width: 0; }
@media (max-width: 1000px) { .ck-wrap { grid-template-columns: 1fr 1fr; } .ck-main { grid-column: 1 / -1; order: 3; } .ck-wrap > .fut.lg { width: 150px; } }
.jump, .ctl { background: rgba(5, 19, 16, .92); }
.jump a:hover { color: #1c1400; }

/* =====================================================================
   4 หมวดคัดเข้ม: การ์ดเลือกบนศูนย์ข้อมูล + หน้าคัด (pick.php)
   ===================================================================== */
.pk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pk { --c: var(--lime); position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic t n" "best best best" "go go go"; align-items: center; gap: 8px 12px;
  padding: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: 18px; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%), linear-gradient(180deg, var(--panel2), var(--panel));
  transition: transform .15s, box-shadow .15s; }
.pk::after { content: ""; position: absolute; right: -30px; bottom: -40px; z-index: -1; width: 140px; height: 140px; border-radius: 50%; border: 18px solid color-mix(in srgb, var(--c) 14%, transparent); }
.pk:hover { transform: translateY(-3px); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 25%, transparent); border-color: var(--c); }
.pk.home { --c: #4cc9f0; } .pk.away { --c: #ff7a59; } .pk.over { --c: #ff4d6d; } .pk.under { --c: #7dd3fc; }
.pk-ic { grid-area: ic; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 26px; background: color-mix(in srgb, var(--c) 22%, var(--bg2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.pk-ic.big { width: 72px; height: 72px; font-size: 38px; border-radius: 18px; }
.pk-t { grid-area: t; display: flex; flex-direction: column; min-width: 0; } .pk-t b { font-size: 20px; line-height: 1.15; } .pk-t small { font-size: 12px; color: var(--muted); }
.pk-n { grid-area: n; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.pk-n b { font-family: var(--mono); font-size: 36px; color: var(--c); } .pk-n small { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.pk-best { grid-area: best; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.pk-best small { font-size: 10.5px; color: var(--muted); } .pk-best b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pk-best em { font-family: var(--mono); font-size: 13px; font-style: normal; font-weight: 700; color: var(--c); }
.pk-best.none small { font-size: 12px; }
.pk-go { grid-area: go; justify-self: stretch; padding: 8px; border-radius: 10px; font-size: 13.5px; font-weight: 800; text-align: center; color: #06101f; background: var(--c); }

/* หน้าคัด */
.pick-page { --c: var(--lime); } .pick-page.home { --c: #4cc9f0; } .pick-page.away { --c: #ff7a59; } .pick-page.over { --c: #ff4d6d; } .pick-page.under { --c: #7dd3fc; }
.pk-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pk-tabs a { --c: var(--lime); display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; background: var(--panel); }
.pk-tabs a.home { --c: #4cc9f0; } .pk-tabs a.away { --c: #ff7a59; } .pk-tabs a.over { --c: #ff4d6d; } .pk-tabs a.under { --c: #7dd3fc; }
.pk-tabs a span { font-size: 20px; } .pk-tabs a i { margin-left: auto; padding: 0 8px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-style: normal; background: var(--bg2); }
.pk-tabs a.on { border-color: var(--c); color: #06101f; background: var(--c); } .pk-tabs a.on i { background: rgba(255, 255, 255, .45); }
.pk-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: 18px;
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 60%), var(--panel); }
.pk-hero-t { display: flex; align-items: center; gap: 14px; }
.pk-hero h1 { margin: 0; font-size: 30px; } .pk-hero h1 small { padding: 2px 8px; border-radius: 6px; font-size: 13px; color: #06101f; background: var(--c); vertical-align: middle; }
.pk-hero p { margin: 4px 0 0; color: var(--soft); font-size: 14px; } .pk-hero p b { color: var(--c); }
.pk-hero-n { display: flex; align-items: center; gap: 10px; } .pk-hero-n b { font-family: var(--mono); font-size: 52px; line-height: 1; color: var(--c); } .pk-hero-n small { font-size: 12.5px; color: var(--muted); }
.pk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 12px; }
.pk-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cards info" "rules rules"; gap: 10px 14px; padding: 14px 14px 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 16px; background: linear-gradient(180deg, var(--panel2), var(--panel)); transition: border-color .15s; }
.pk-item:hover { border-color: var(--c); }
.pk-rank { position: absolute; top: -8px; left: -8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--mono); font-weight: 800; color: #06101f; background: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.pk-cards2 { grid-area: cards; display: flex; gap: 6px; }
.pk-cards2 .fut.sm { width: 96px; } .pk-cards2 .fut.sm .fut-stats { display: none; }
.pk-info { grid-area: info; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.pk-meta { font-size: 12px; color: var(--muted); } .pk-meta b { font-family: var(--mono); font-size: 14px; color: var(--text); }
.pk-teams { font-size: 17px; font-weight: 700; line-height: 1.25; } .pk-teams em { font-size: 12px; font-style: normal; color: var(--muted); }
.pk-bet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pk-bet span { padding: 4px 12px; border-radius: 10px; font-weight: 800; color: #06101f; background: var(--c); } .pk-bet b { font-family: var(--mono); font-size: 16px; color: var(--lime); }
.pk-conf { position: relative; height: 18px; border-radius: 9px; overflow: hidden; background: var(--bg2); }
.pk-conf i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), var(--c)); }
.pk-conf small { position: relative; display: block; padding: 0 8px; font-size: 11.5px; font-weight: 700; line-height: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.pk-rules { grid-area: rules; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; margin: 0; padding: 10px 12px; list-style: none; border-radius: 12px; background: rgba(34, 197, 94, .07); }
.pk-rules li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.pk-near-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 22px 0 10px; font-size: 17px; } .pk-near-h small { font-size: 12px; font-weight: 400; color: var(--muted); }
.pk-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.pk-near a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--panel); }
.pk-near b { font-size: 13.5px; } .pk-near small { font-size: 12px; color: var(--soft); } .pk-near em { font-size: 11.5px; font-style: normal; color: #fca5a5; }
@media (max-width: 1400px) { .pk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pk-cards { grid-template-columns: 1fr 1fr; gap: 8px; } .pk { grid-template-areas: "ic n" "t t" "best best" "go go"; grid-template-columns: auto 1fr; padding: 12px; }
  .pk-t b { font-size: 16px; } .pk-n b { font-size: 28px; } .pk-best { display: none; }
  .pk-tabs { grid-template-columns: 1fr 1fr; } .pk-list { grid-template-columns: minmax(0, 1fr); }
  .pk-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "cards" "rules"; } .pk-cards2 { justify-content: center; }
  .pk-hero h1 { font-size: 24px; } .pk-hero-n b { font-size: 40px; }
}

/* =====================================================================
   ลูกเล่นแนวเกม: ระดับ S/A/B/C · เปิดซอง · เกจ · XP/เลเวล · ตั๋วของฉัน · หน้าจอ VS · ตราความสำเร็จ
   ===================================================================== */
/* ระดับ */
.tier { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-weight: 800; line-height: 1; color: #120c00; }
.tier b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--mono); font-size: 16px; background: rgba(0, 0, 0, .18); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tier small { font-size: 11.5px; }
.tier.t-s { color: #fff; background: linear-gradient(90deg, #ff4d6d, #ffb703, #3ddc97, #4cc9f0, #b388ff, #ff4d6d); background-size: 300% 100%; animation: holo 3s linear infinite; box-shadow: 0 0 16px rgba(255, 183, 3, .55); }
.tier.t-a { background: linear-gradient(135deg, #fff1b8, #f5c542 55%, #b8860b); box-shadow: 0 0 10px rgba(245, 197, 66, .4); }
.tier.t-b { background: linear-gradient(135deg, #ffffff, #cfd8e3 55%, #8f9aa6); }
.tier.t-c { background: linear-gradient(135deg, #ffd6ad, #d08b4f 55%, #8a4e21); }
.tier.sm { padding: 2px 8px 2px 3px; } .tier.sm b { width: 22px; height: 22px; font-size: 13px; }
.tier.xs { gap: 3px; padding: 1px 6px 1px 2px; } .tier.xs b { width: 17px; height: 17px; font-size: 11px; } .tier.xs small { font-size: 10.5px; }
@keyframes holo { to { background-position: 300% 0; } }
.pk-tc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.pk-tiers { display: flex; flex-wrap: wrap; gap: 6px; }

/* เปิดซอง: การ์ดพลิก 3 มิติ */
.pk-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 14px; color: var(--soft); }
.pk-flip { perspective: 1400px; }
.pk-in { position: relative; display: grid; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.pk-in > * { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pk-item { transform: rotateY(180deg); }
.pk-flip.open .pk-in { transform: rotateY(180deg); }
.pk-back { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; padding: 20px; border: 2px solid var(--line2); border-radius: 16px; font: inherit; color: var(--text); cursor: pointer; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px), radial-gradient(80% 90% at 50% 40%, #16402f, #081a13); }
.pk-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 2.8s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -80% 0; } }
.pk-back:hover { border-color: var(--lime); }
.pb-rank { position: absolute; top: 12px; left: 14px; font-family: var(--mono); font-size: 18px; font-weight: 800; color: var(--muted); }
.pb-logo { font-family: var(--mono); font-size: 36px; font-weight: 800; color: var(--lime); } .pb-logo b { color: var(--text); }
.pb-tier { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: var(--mono); font-size: 34px; font-weight: 800; color: #fff; border: 3px solid rgba(255, 255, 255, .3); }
.pb-hint { font-size: 12.5px; color: var(--soft); }
.pk-flip.t-s .pk-back { border-color: #ffb703; box-shadow: 0 0 26px rgba(255, 183, 3, .35), inset 0 0 40px rgba(255, 77, 109, .15); }
.pk-flip.t-s .pb-tier { background: linear-gradient(90deg, #ff4d6d, #ffb703, #3ddc97, #4cc9f0, #b388ff, #ff4d6d); background-size: 300% 100%; animation: holo 3s linear infinite; }
.pk-flip.t-a .pb-tier { background: linear-gradient(135deg, #fff1b8, #f5c542, #b8860b); color: #3a2800; }
.pk-flip.t-b .pb-tier { background: linear-gradient(135deg, #fff, #cfd8e3, #8f9aa6); color: #1e2630; }
.pk-flip.t-c .pb-tier { background: linear-gradient(135deg, #ffd6ad, #d08b4f, #8a4e21); color: #2b1405; }
.pk-flip.t-a .pk-back { border-color: var(--lime-d); }
.pk-flip.burst .pk-item { animation: reveal .9s ease-out; }
@keyframes reveal { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, .8); } 40% { box-shadow: 0 0 40px 10px rgba(245, 197, 66, .45); } 100% { box-shadow: 0 0 0 0 transparent; } }
.pk-flip.t-s.burst .pk-item { animation: reveal-s 1.1s ease-out; }
@keyframes reveal-s { 0% { box-shadow: 0 0 0 0 #ffb703; } 30% { box-shadow: 0 0 60px 18px rgba(255, 77, 109, .5), 0 0 30px 6px rgba(76, 201, 240, .5); } 100% { box-shadow: none; } }
.pk-item { grid-template-columns: auto minmax(0, 1fr) 120px; grid-template-areas: "cards info gauge" "rules rules rules"; }
.pk-item > .tier { position: absolute; top: 10px; right: 12px; z-index: 2; }
.pk-gauge { grid-area: gauge; align-self: center; }
a.pk-teams:hover { color: var(--lime); } .pk-teams small { font-size: 12px; font-weight: 500; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pk-in { transition: none; } .tier.t-s, .pk-back::after, .pk-flip.t-s .pb-tier { animation: none; } }

/* เกจ */
.gauge { width: 100%; max-width: 140px; height: auto; overflow: visible; }
.gauge .g-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 9; stroke-linecap: round; }
.gauge .g-fg { fill: none; stroke: url(#none); stroke: var(--c, var(--lime)); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--c, var(--lime))); transition: stroke-dashoffset 1.2s; }
.gauge .g-nd { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; } .gauge .g-hub { fill: var(--text); }
.gauge .g-knob { fill: #fff; stroke: var(--c, var(--lime)); stroke-width: 3; filter: drop-shadow(0 0 5px var(--c, var(--lime))); }
.gauge .g-v { font-family: var(--mono); font-size: 17px; font-weight: 800; fill: var(--text); } .gauge .g-l { font-family: var(--sans); font-size: 7.5px; fill: var(--muted); }

/* XP / เลเวล บนหัวเว็บ */
.xpbar { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 999px; font: inherit; color: var(--text); background: var(--bg2); cursor: pointer; }
.xpbar b { font-family: var(--mono); font-size: 13px; color: var(--lime); }
.xpbar span { width: 80px; height: 7px; overflow: hidden; border-radius: 4px; background: var(--panel2); } .xpbar span i { display: block; height: 100%; background: linear-gradient(90deg, var(--tick), var(--lime)); }
.xpbar small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.top .clock { margin-left: 12px; }

/* ตั๋วของฉัน */
.slip-add { margin-left: auto; padding: 6px 12px; border: 1px dashed var(--lime-d); border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; color: var(--lime); background: rgba(245, 197, 66, .08); cursor: pointer; }
.slip-add.on { border-style: solid; color: #03140a; background: var(--tick); border-color: var(--tick); }
.slip-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--line2); border-radius: 999px; font: inherit; font-weight: 700; color: var(--text); background: var(--panel2); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); cursor: pointer; }
.slip-fab b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; font-family: var(--mono); color: #1c1400; background: var(--lime); }
.slip-fab small { font-size: 12.5px; }
.slip-fab.has { border-color: var(--lime-d); box-shadow: 0 0 20px rgba(245, 197, 66, .35); }
.slip-fab.pop { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); } @keyframes pop { 50% { transform: scale(1.18); } }
.slip-panel { position: fixed; right: 18px; bottom: 76px; z-index: 61; width: min(380px, calc(100vw - 36px)); max-height: 72vh; overflow: auto; padding: 14px; border: 1px solid var(--line2); border-radius: 16px; background: #0b211a; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.slip-panel[hidden] { display: none; }
.sp-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .sp-h b { font-size: 16px; }
.sp-h button, .sp-list button { border: 0; font: inherit; color: var(--muted); background: none; cursor: pointer; }
.sp-list, .sp-hist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-list li, .sp-hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); }
.sp-list .tr { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 800; color: #fff; background: #7a5a2b; }
.sp-list .t-s .tr { background: linear-gradient(90deg, #ff4d6d, #ffb703, #4cc9f0); } .sp-list .t-a .tr { background: #c99a1c; } .sp-list .t-b .tr { background: #8f9aa6; }
.sp-list b, .sp-hist b { font-size: 13.5px; } .sp-list em { font-family: var(--mono); font-style: normal; color: var(--lime); } .sp-list small, .sp-hist small { display: block; font-size: 11.5px; color: var(--muted); }
.sp-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.sp-sum > div { padding: 8px 10px; border-radius: 10px; background: var(--bg2); } .sp-sum small { display: block; font-size: 11px; color: var(--muted); } .sp-sum b { font-family: var(--mono); font-size: 18px; color: var(--lime); }
.sp-pow { grid-column: 1 / -1; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.sp-pow span { height: 10px; overflow: hidden; border-radius: 5px; background: var(--panel2); } .sp-pow i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a59, var(--lime), var(--tick)); }
.sp-note, .sp-empty { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.sp-clear { margin-top: 8px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 8px; font: inherit; font-size: 12.5px; color: var(--soft); background: none; cursor: pointer; }
.sp-me { margin-top: 12px; padding: 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(245, 197, 66, .12), rgba(34, 197, 94, .1)); } .sp-me b { color: var(--lime); } .sp-me small { display: block; font-size: 12px; color: var(--soft); }
.slip-panel h4 { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.sp-hist li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 900; }
.sp-hist .win > span { color: #03140a; background: var(--tick); } .sp-hist .lose > span { color: #fff; background: var(--loss); } .sp-hist .push > span { background: var(--draw); }
.sp-hist em { font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--lime); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 10px 18px; border-radius: 12px; font-size: 14px; color: var(--text); background: #123a2c; border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: tin .3s ease-out; }
.toast b { color: var(--lime); } .toast.good { border-color: var(--tick); } .toast.bad { border-color: var(--loss); }
.toast.lvl { font-size: 18px; border-color: var(--lime); background: linear-gradient(135deg, #3a2c00, #123a2c); box-shadow: 0 0 40px rgba(245, 197, 66, .5); }
.toast.out { opacity: 0; transition: opacity .5s; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 20px); } }

/* หน้าจอ VS แบบเกมต่อสู้ */
.vs-fight { background: radial-gradient(60% 120% at 50% 0%, rgba(245, 197, 66, .14), transparent 70%), linear-gradient(180deg, #102b21, #0a1c16); border-color: var(--lime-d); }
.vf-row { display: flex; align-items: center; gap: 18px; }
.vf-side { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vf-side.a { align-items: flex-end; text-align: right; }
.vf-name { display: flex; align-items: center; gap: 8px; min-width: 0; } .vf-side.a .vf-name { flex-direction: row-reverse; }
.vf-name b { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; } .vf-side.h .vf-name b { color: var(--home); } .vf-side.a .vf-name b { color: var(--away); }
.vf-lv { flex: none; padding: 1px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 800; color: #1c1400; background: var(--lime); }
.hp { position: relative; display: block; width: 100%; height: 22px; overflow: hidden; border: 2px solid #0b0f0d; border-radius: 4px; background: #3a0d0d; box-shadow: 0 0 0 2px var(--line2); transform: skewX(-12deg); }
.hp i { position: absolute; top: 0; bottom: 0; width: var(--hp); animation: hpfill 1.4s cubic-bezier(.2, .9, .3, 1) both; }
.hp.h i { left: 0; background: linear-gradient(180deg, #7ee8ff, #1fa3d6 60%, #127aa3); } .hp.a i { right: 0; background: linear-gradient(180deg, #ffb199, #ff6a3d 60%, #c2410c); }
.hp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9.6%, rgba(0, 0, 0, .35) 9.6% 10%); }
.hp em { position: absolute; top: 50%; z-index: 1; font-family: var(--mono); font-size: 12px; font-style: normal; font-weight: 800; transform: translateY(-50%) skewX(12deg); text-shadow: 0 1px 2px #000; }
.hp.h em { left: 8px; } .hp.a em { right: 8px; }
@keyframes hpfill { from { width: 0; } }
.vf-stats { display: flex; gap: 8px; } .vf-stats span { display: flex; flex-direction: column; padding: 4px 12px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.vf-stats small { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); } .vf-stats b { font-family: var(--mono); font-size: 20px; }
.vf-stats .combo b { color: var(--tick); } .vf-stats .combo.lead { box-shadow: 0 0 0 1px var(--tick), 0 0 16px rgba(34, 197, 94, .35); }
.vf-mid { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vf-vs { font-family: var(--mono); font-size: 54px; font-weight: 800; font-style: italic; line-height: 1; color: var(--lime); text-shadow: 0 0 20px rgba(245, 197, 66, .6), 3px 3px 0 #7a1020; animation: vspulse 1.8s ease-in-out infinite; }
@keyframes vspulse { 50% { transform: scale(1.08); } }
.vf-mid small { font-size: 12px; color: var(--soft); }
.achs { display: flex; flex-wrap: wrap; gap: 6px; } .vf-side.a .achs { justify-content: flex-end; }
.ach { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line2); background: var(--bg2); }
.ach i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; background: rgba(255, 255, 255, .08); }
.ach.hot { color: #ffb4a2; border-color: rgba(255, 120, 90, .5); } .ach.good { color: #86efac; border-color: rgba(34, 197, 94, .5); } .ach.bad { color: #a5b4fc; border-color: rgba(129, 140, 248, .4); }
.ach.none { padding: 3px 10px; color: var(--muted); }
.vf-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; justify-items: center; }
.vf-gauges > div:first-child .gauge { --c: var(--home); } .vf-gauges > div:last-child .gauge { --c: var(--away); }
@media (prefers-reduced-motion: reduce) { .vf-vs, .hp i { animation: none; } }
@media (max-width: 760px) {
  .xpbar small, .xpbar span { display: none; }
  .vf-row { flex-wrap: wrap; } .vf-side { flex-basis: 100%; } .vf-mid { order: 1 !important; flex-basis: 100%; } .vf-side.a { order: 2 !important; }
  .vf-vs { font-size: 40px; }
  .pk-item { grid-template-columns: minmax(0, 1fr) 100px; grid-template-areas: "info gauge" "cards cards" "rules rules"; }
  .slip-fab small { display: none; }
}

/* =====================================================================
   การ์ดตัวเลือก 4 หมวด โทนทองอ่อน (เด่นกว่าส่วนอื่นของหน้า) — สีหมวด (--c) ใช้ที่ไอคอน/ปุ่ม/วงแหวน
   ===================================================================== */
.pk.gold { --ink: #2b1d00; --ink2: #6b5418; color: var(--ink); border: 1px solid #e9cf7a; grid-template-columns: auto 1fr auto; grid-template-areas: "ic t ring" "row row row" "best best best" "cd cd cd" "go go go";
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .9), transparent 55%), linear-gradient(160deg, #fffaf0 0%, #fbe9b7 38%, #f1d27e 75%, #e2b95a 100%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pk.gold::after { right: -36px; bottom: -46px; border-color: rgba(201, 154, 28, .18); }
.pk.gold::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: goldsweep 5s ease-in-out infinite; }
.pk.gold:nth-child(2)::before { animation-delay: 1.2s; } .pk.gold:nth-child(3)::before { animation-delay: 2.4s; } .pk.gold:nth-child(4)::before { animation-delay: 3.6s; }
@keyframes goldsweep { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -40% 0; } }
.pk.gold:hover { border-color: #c99a1c; box-shadow: 0 12px 34px rgba(201, 154, 28, .45), inset 0 1px 0 #fff; }
.pk.gold .pk-ic { background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--c) 30%, #fff)); box-shadow: 0 3px 8px rgba(120, 80, 0, .25), inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, #fff); }
.pk.gold .pk-t b { color: var(--ink); font-size: 21px; } .pk.gold .pk-t small { color: var(--ink2); }
.pk-ring { grid-area: ring; position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(107, 84, 24, .18) 0); }
.pk-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff8e6; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15); }
.pk-ring b, .pk-ring small { position: relative; line-height: 1; } .pk-ring b { font-family: var(--mono); font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 6px; } .pk-ring small { font-size: 9px; color: var(--ink2); margin-top: -12px; }
.pk-row { grid-area: row; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk.gold .pk-n { flex-direction: row; align-items: baseline; gap: 6px; } .pk.gold .pk-n b { font-size: 34px; color: var(--ink); } .pk.gold .pk-n small { font-size: 12px; color: var(--ink2); }
.pk.gold .pk-tc { grid-column: auto; justify-content: flex-end; }
.pk.gold .pk-best { position: relative; padding: 9px 12px 9px 12px; border: 1px solid rgba(201, 154, 28, .35); background: rgba(255, 255, 255, .55); }
.pk.gold .pk-best small { color: var(--ink2); } .pk.gold .pk-best b { color: var(--ink); } .pk.gold .pk-best em { color: color-mix(in srgb, var(--c) 70%, #2b1d00); }
.pk-logos { position: absolute; top: 8px; right: 10px; display: flex; }
.pk-logos .bd { width: 26px; height: 26px; margin-left: -8px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pk-logos .bd.mono { font-size: 9px; }
.pk-cd { grid-area: cd; font-size: 12.5px; color: var(--ink2); } .pk-cd b { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.pk.gold .pk-go { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000), var(--c)); box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pk.gold.home { --c: #1d9bd1; } .pk.gold.away { --c: #e5572f; } .pk.gold.over { --c: #e2334f; } .pk.gold.under { --c: #2f8fcf; }
.pk-ribbon { position: absolute; top: 14px; right: -34px; z-index: 4; padding: 3px 38px; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #ff4d6d, #ff7a00); transform: rotate(35deg); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.pk.gold.is-hot { border-color: #ff7a00; box-shadow: 0 0 0 2px rgba(255, 122, 0, .45), 0 10px 30px rgba(255, 122, 0, .3); animation: hotglow 2.4s ease-in-out infinite; }
@keyframes hotglow { 50% { box-shadow: 0 0 0 3px rgba(255, 122, 0, .65), 0 12px 40px rgba(255, 122, 0, .45); } }
.pk.gold.is-hot .pk-ring { margin-right: 26px; }
.pk.gold .pk-best.none { background: rgba(255, 255, 255, .4); } .pk.gold .pk-best.none small { color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .pk.gold::before, .pk.gold.is-hot { animation: none; } }
@media (max-width: 760px) {
  .pk.gold { grid-template-areas: "ic ring" "t t" "row row" "cd cd" "go go"; grid-template-columns: auto 1fr; } .pk-ring { justify-self: end; width: 50px; height: 50px; }
  .pk.gold .pk-n b { font-size: 26px; } .pk.gold .pk-tc { display: none; } .pk.gold .pk-t b { font-size: 16px; }
  .pk-ribbon { top: 10px; right: -40px; font-size: 9.5px; } .pk.gold.is-hot .pk-ring { margin-right: 0; }
}
.pk-logos .bd.mono { background: hsl(var(--h) 45% 38%); color: #fff; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .25); }
.pk.gold .pk-best { padding-right: 96px; }
.pk.gold .pk-best b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================
   จุดเด่นโทนอ่อน: ป้ายรายการ (โลโก้ลีก/ถ้วย) · ป้ายราคา (เต็ง = ทองอ่อน · คุ้ม = มิ้นต์) · DNA พาสเทล
   ===================================================================== */
.lgc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 12px; line-height: 1.2; color: #3b2a00;
  background: linear-gradient(135deg, #fffaf0, #f7e3a6); border: 1px solid #ecd48a; box-shadow: inset 0 1px 0 #fff; }
.lgc b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lgc-logo { flex: none; width: 22px; height: 22px; padding: 2px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.lgc-cup { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; background: radial-gradient(circle at 35% 30%, #fff, #f5d77a); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.lgc-flag { flex: none; width: 18px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lgc.top { background: linear-gradient(135deg, #fff6d6, #f5cf5c 60%, #e9b937); border-color: #d9a520; box-shadow: 0 0 12px rgba(245, 197, 66, .45), inset 0 1px 0 #fff; }
.lgc.top .lgc-logo, .lgc.top .lgc-cup { width: 26px; height: 26px; }
.mc-head { align-items: center; } .mc-head .lgc { flex: 1 1 auto; margin-right: 8px; }
.lglist .lgc.side { padding: 2px 8px 2px 3px; background: none; border-color: transparent; box-shadow: none; color: inherit; font-size: 12.5px; }
.lglist .lgc.side b { font-weight: 500; } .lglist .lgc.side.top { background: rgba(245, 197, 66, .12); border-color: rgba(245, 197, 66, .35); }
.lglist button.on .lgc.side { color: #1c1400; }
.lglist button { gap: 4px; } .lglist button > .lgc { flex: 1; }
.lgc.big { padding: 4px 14px 4px 5px; font-size: 14px; } .lgc.big .lgc-logo, .lgc.big .lgc-cup { width: 30px; height: 30px; }
.sb-meta { align-items: center; }
.pk-meta .lgc { margin-right: 6px; vertical-align: middle; }

.pcs { display: flex; flex-wrap: wrap; gap: 5px; }
.pc { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 9px; font-size: 12px; color: #1f2a37; background: #e8eef5; border: 1px solid #d3dde9; }
.pc i { font-size: 10.5px; font-style: normal; font-weight: 700; color: #5b6b7e; }
.pc b { font-family: var(--mono); font-size: 13.5px; }
.pc em { font-size: 10.5px; font-style: normal; font-weight: 800; }
.pc.fav { color: #3b2a00; background: linear-gradient(135deg, #fff8dc, #f7df94); border-color: #e7c65a; } .pc.fav em { color: #9a6a00; }
.pc.val { color: #053b2a; background: linear-gradient(135deg, #eafff6, #b9f3d8); border-color: #7fdcb2; box-shadow: 0 0 10px rgba(52, 211, 153, .35); } .pc.val em { color: #0b7a4f; }
.pc.line { color: #1e2a4a; background: #e6ecff; border-color: #c9d4f7; } .pc.line i { color: #55608a; }
.mc-foot .pcs { justify-content: center; }
.sb-mid .pcs { justify-content: center; margin-top: 10px; }

/* DNA โทนพาสเทลอ่อน ตัวหนังสือเข้ม ให้เด่นบนพื้นเข้ม */
.dna { border: 0; color: #2a2a2a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.dna.d-hot { color: #7a1d0d; background: #ffe1d6; } .dna.d-cold { color: #0d3a6b; background: #dcecff; } .dna.d-even { color: #2f3a45; background: #eef1f4; }
.dna.d-fav { color: #5a4100; background: #fff1bf; } .dna.d-flow { color: #0b5033; background: #d6f7e6; } .dna.d-cor { color: #7a1030; background: #ffdbe5; } .dna.d-card { color: #5b4400; background: #fff3a8; }
.dna small { color: inherit; opacity: .75; }
.lglist button { justify-content: flex-start; } .lglist button > span:not(.lgi) { flex: 1; min-width: 0; } .lglist button > .lgi { flex: none; width: 20px; } .lglist button > i { margin-left: auto; }
.lgi { flex: none; width: 20px; height: 20px; padding: 1px; border-radius: 50%; object-fit: contain; background: #fff; }
.lgi.cup { display: grid; place-items: center; font-size: 11px; background: radial-gradient(circle at 35% 30%, #fff, #f5d77a); }
.lglist button.top > span { color: #f7dd8a; font-weight: 700; } .lglist button.top.on > span { color: #1c1400; }
.mc-head .lgc { flex: 0 1 auto; }
.lglist { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }

/* =====================================================================
   โลโก้ดาว 5 แฉกลายเส้น · ปุ่มสมาชิก · หน้าสมัคร/เข้าสู่ระบบ · แถบราคาไทย · โลโก้ทีมใหญ่ขึ้น
   ===================================================================== */
.top { padding: 8px 20px; }
.brand { gap: 10px; }
.brand .logo { font-size: 38px; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(100deg, #f5c542 0%, #fff3b0 40%, #f5c542 55%, #c99a1c 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordshine 6s linear infinite; }
.brand .logo b { color: var(--text); -webkit-text-fill-color: var(--text); }
@keyframes wordshine { to { background-position: -220% 0; } }
.lgo { flex: none; overflow: visible; filter: drop-shadow(0 0 6px rgba(245, 197, 66, .55)); }
.lgo-ring { fill: rgba(245, 197, 66, .06); stroke: url(#lgoG); stroke-width: 3; }
.lgo-star { fill: none; stroke: url(#lgoG); stroke-width: 3.2; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: stardraw 1.8s .2s ease-out forwards; }
.lgo-rays line { stroke: rgba(245, 197, 66, .35); stroke-width: 1; stroke-dasharray: 2 3; }
.lgo-pent { fill: url(#lgoG); stroke: #1c1400; stroke-width: 1.5; }
.lgo-spin { transform-origin: 50px 50px; animation: starspin 24s linear infinite; }
@keyframes stardraw { to { stroke-dashoffset: 0; } }
@keyframes starspin { to { transform: rotate(360deg); } }
.brand:hover .lgo-spin { animation-duration: 3s; }
@media (prefers-reduced-motion: reduce) { .lgo-star { animation: none; stroke-dashoffset: 0; } .lgo-spin, .brand .logo { animation: none; } }

/* ปุ่มสมาชิก */
.auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.auth a, .auth button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.auth .signup { color: #1c1400; background: linear-gradient(135deg, #fff3b0, #f5c542 55%, #e0ac2a); box-shadow: 0 0 16px rgba(245, 197, 66, .4); }
.auth .signup:hover { filter: brightness(1.06); }
.auth .login { color: var(--text); border: 1px solid var(--lime-d); background: rgba(245, 197, 66, .08); }
.auth .me { color: var(--lime); border: 1px solid var(--line2); background: var(--bg2); }
.auth form { margin: 0; } .auth .out { border: 1px solid var(--line2); color: var(--soft); background: none; }
.xpbar { margin-left: 8px; }

/* หน้าสมัคร/เข้าสู่ระบบ */
.auth-page { display: grid; place-items: center; min-height: calc(100vh - 180px); }
.auth-card { width: min(440px, 100%); padding: 26px 24px; border: 1px solid #e9cf7a; border-radius: 22px; text-align: center; color: #2b1d00;
  background: radial-gradient(120% 80% at 100% 0%, #fff, transparent 55%), linear-gradient(160deg, #fffaf0, #fbe9b7 45%, #f1d27e); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.auth-logo .lgo { filter: drop-shadow(0 0 10px rgba(201, 154, 28, .6)); } .auth-logo .lgo-ring { fill: rgba(255, 255, 255, .5); }
.auth-card h1 { margin: 8px 0 4px; font-size: 26px; } .auth-sub { margin: 0 0 12px; color: #6b5418; font-size: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 14px; padding: 4px; border-radius: 12px; background: rgba(107, 84, 24, .12); }
.auth-tabs a { padding: 9px; border-radius: 9px; font-weight: 800; color: #6b5418; }
.auth-tabs a.on { color: #1c1400; background: #fff; box-shadow: 0 2px 8px rgba(107, 84, 24, .2); }
.auth-form { display: grid; gap: 10px; text-align: left; }
.auth-form label { display: grid; gap: 4px; } .auth-form span { font-size: 13px; font-weight: 700; color: #6b5418; }
.auth-form input { height: 46px; padding: 0 14px; border: 1px solid #e0c170; border-radius: 12px; font: inherit; font-size: 16px; color: #1c1400; background: #fffdf6; }
.auth-form input:focus { outline: 2px solid #c99a1c; }
.auth-hint { font-size: 12px; color: #6b5418; }
.auth-form .btn-share.big { justify-content: center; padding: 13px; font-size: 16px; color: #fff; background: linear-gradient(135deg, #1f7a4d, #22a05f); box-shadow: 0 6px 16px rgba(34, 160, 95, .35); }
.auth-err { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; font-weight: 700; color: #7f1d1d; background: #fde2e2; }
.auth-perks { display: grid; gap: 4px; margin: 16px 0 0; padding: 12px; list-style: none; border-radius: 12px; font-size: 13px; text-align: left; color: #4a3a0a; background: rgba(255, 255, 255, .55); }
.auth-stat { display: inline-flex; flex-direction: column; margin: 6px 0 14px; padding: 10px 22px; border-radius: 14px; background: #fff; } .auth-stat b { font-family: var(--mono); font-size: 30px; } .auth-stat small { color: #6b5418; }
.auth-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .auth-btns form { margin: 0; } .auth-card .btn-ghost { color: #2b1d00; border-color: #d9b75a; background: #fff8e0; }

/* แถบราคา + สถิติแบบไทย (ด้านบนการ์ดคู่) */
.th { display: grid; gap: 4px; }
.th-i { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; color: #1f2a37; background: #eef3f8; border: 1px solid #d6e0ea; }
.th-i i { grid-row: span 2; font-size: 18px; font-style: normal; }
.th-i b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; } .th-i small { font-size: 11.5px; color: #55657a; }
.th-i.h { color: #073b52; background: linear-gradient(90deg, #e2f6ff, #f4fbff); border-color: #b9e3f5; }
.th-i.a { color: #5a1d0b; background: linear-gradient(90deg, #ffe9e1, #fff6f2); border-color: #f7c9b8; }
.th-i.eq { color: #2f3a45; background: #f1f3f5; }
.th-i.ou { color: #3b2a00; background: linear-gradient(90deg, #fff4cf, #fffaea); border-color: #f0dc95; }
.th-i.st { color: #0f3b26; background: linear-gradient(90deg, #dff7ea, #f3fcf7); border-color: #b5e6cb; }
.th-i.st b { white-space: normal; }
.sb-mid .th { max-width: 560px; margin: 10px auto 0; text-align: left; }

/* โลโก้ทีมใหญ่ขึ้น */
.bd { width: 28px; height: 28px; }
.fut-logo .bd.xl { width: 70px; height: 70px; }
.fut.sm { width: 118px; } .fut.sm .fut-logo .bd.xl { width: 58px; height: 58px; }
.fut.lg .fut-logo .bd.xl { width: 104px; height: 104px; }
.mc-body { grid-template-columns: 118px minmax(0, 1fr) 118px; }
.bd.xl { width: 84px; height: 84px; }
.sb-t .bd.xl { width: 96px; height: 96px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.pk-cards2 .fut.sm { width: 108px; }
@media (max-width: 900px) {
  .brand .logo { font-size: 28px; } .lgo { width: 36px; height: 36px; }
  .auth a, .auth button { padding: 6px 10px; font-size: 12.5px; } .auth .login { display: none; }
  .mc-body { grid-template-columns: 100px minmax(0, 1fr) 100px; } .fut.sm { width: 100px; } .fut.sm .fut-logo .bd.xl { width: 48px; height: 48px; }
}

/* แถบราคาต่อแบบไทย (บรรทัดเดียว) — กระจกเข้ม ขอบทอง สีฝั่งที่ต่อไล่จางจากซ้าย คำราคาเป็นทองอ่อนเด่น */
.tha { --s: 245, 197, 66; position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 12px 7px 14px; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(245, 197, 66, .38); background: linear-gradient(90deg, rgba(var(--s), .24), rgba(245, 197, 66, .07) 55%, rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tha::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgb(var(--s)); box-shadow: 0 0 12px rgb(var(--s)); }
.tha.h { --s: 76, 201, 240; } .tha.a { --s: 255, 122, 89; } .tha.eq { --s: 180, 196, 188; }
.tha-k { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: #2b1d00; background: linear-gradient(135deg, #fff3c4, #f5d06a); }
.tha-t { min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 700; color: rgb(var(--s)); text-overflow: ellipsis; white-space: nowrap; }
.tha-g { flex: none; font-size: 12.5px; color: var(--soft); }
.tha-w { flex: none; font-size: 17px; font-weight: 800; color: #ffe7a0; text-shadow: 0 0 12px rgba(245, 197, 66, .35); }
.tha-n { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--soft); background: rgba(0, 0, 0, .28); }
.tha.eq .tha-w { color: #e6efe9; } .tha.eq .tha-t { color: var(--muted); font-weight: 500; }
.sb-mid .tha { max-width: 520px; margin: 10px auto 0; }
.pc.ou { color: #3b2a00; background: linear-gradient(135deg, #fffbe8, #fbe7a6); border-color: #ecd48a; } .pc.ou i { color: #7a5b10; }
.pc.ou b.thw { font-family: var(--sans); font-size: 13px; font-weight: 800; }
@media (max-width: 760px) { .tha-k { display: none; } .tha-w { font-size: 15px; } }

/* 💡 ราคาที่ควรเป็นจาก OVR */
.ovv { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #053b2a; background: linear-gradient(135deg, #eafff6, #b9f3d8); border: 1px solid #7fdcb2; cursor: help; }
.valcard { background: radial-gradient(70% 90% at 50% 0%, rgba(52, 211, 153, .08), transparent 70%), var(--panel); }
.val-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.val-gap { display: flex; align-items: baseline; gap: 10px; }
.val-gap span { font-family: var(--mono); font-size: 40px; font-weight: 800; line-height: 1; } .val-gap .h { color: var(--home); } .val-gap .a { color: var(--away); }
.val-gap i { font-style: normal; color: var(--muted); } .val-gap small { font-size: 13px; color: var(--soft); } .val-gap small b { font-family: var(--mono); font-size: 18px; color: var(--lime); }
.val-verdict { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; color: #1f2a37; background: #eef1f4; }
.val-verdict i { font-size: 26px; font-style: normal; } .val-verdict b { display: block; font-size: 16px; } .val-verdict small { font-size: 12.5px; opacity: .8; }
.val-verdict.h, .val-verdict.a { color: #053b2a; background: linear-gradient(135deg, #eafff6, #b9f3d8); box-shadow: 0 0 18px rgba(52, 211, 153, .25); }
.val-scale { margin: 22px 6px 8px; padding: 26px 0 30px; }
.vs-track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(255, 122, 89, .55), rgba(255, 255, 255, .08) 45% 55%, rgba(76, 201, 240, .55)); }
.vs-track .lbl { position: absolute; top: 18px; font-size: 11.5px; color: var(--muted); white-space: nowrap; } .vs-track .l { left: 0; } .vs-track .r { right: 0; } .vs-track .c { left: 50%; transform: translateX(-50%); }
.vs-track .tk { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--muted); }
.vs-track .mk { position: absolute; top: 50%; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); }
.vs-track .mk::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.vs-track .mk em, .vs-track .mk b { position: absolute; white-space: nowrap; font-style: normal; }
.vs-track .mk.mkt::before { background: #e8eef5; } .vs-track .mk.mkt em { bottom: 24px; font-size: 11px; color: var(--soft); } .vs-track .mk.mkt b { bottom: 38px; font-size: 13px; color: var(--text); }
.vs-track .mk.fair::before { background: var(--lime); box-shadow: 0 0 14px var(--lime); } .vs-track .mk.fair em { top: 24px; font-size: 11px; color: var(--lime); } .vs-track .mk.fair b { top: 38px; font-size: 13px; color: #ffe7a0; }
.val-line { margin: 26px 0 10px; font-size: 14px; color: var(--soft); } .val-line b { color: var(--text); }
.val-odds td .vt { padding: 2px 8px; border-radius: 999px; font-family: var(--sans); font-size: 12px; font-weight: 800; }
.vt.cheap { color: #053b2a; background: #c9f5df; } .vt.dear { color: #7a1d0d; background: #ffe1d6; } .vt.ok { color: #2f3a45; background: #e8eef5; }

/* =====================================================================
   🌟 คู่เด่นจริง: การ์ดทองน่ากด + กรอบทองในรายการทุกคู่
   ===================================================================== */
.gold-h h2 { margin: 0; font-size: 22px; color: #ffe7a0; text-shadow: 0 0 16px rgba(245, 197, 66, .45); }
.gold-h h2 span { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--soft); text-shadow: none; }
.gcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 22px; }
.gc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; overflow: hidden; border-radius: 20px; color: #2b1d00; isolation: isolate;
  border: 2px solid #e8c45a;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .95), transparent 60%), linear-gradient(165deg, #fffaf0 0%, #fbe7ad 40%, #f2cf6f 75%, #deae42 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 0 26px rgba(245, 197, 66, .25);
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s; }
.gc::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .8) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: goldsweep 4.5s ease-in-out infinite; }
.gc:nth-child(2n)::before { animation-delay: 1.5s; } .gc:nth-child(3n)::before { animation-delay: 3s; }
.gc::after { content: ""; position: absolute; right: -60px; top: -60px; z-index: -1; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .6), transparent 70%); }
.gc:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 40px rgba(245, 197, 66, .55); border-color: #c99a1c; }
.gc.first { border-color: #ff9f1c; box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 159, 28, .35), 0 0 36px rgba(255, 159, 28, .45); animation: hotglow 2.6s ease-in-out infinite; }
.gc-rib { position: absolute; top: 14px; right: -38px; z-index: 4; padding: 4px 44px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #ff4d6d, #ff9f1c); transform: rotate(35deg); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.gc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 50px; }
.gc-head .lgc { flex: 0 1 auto; background: rgba(255, 255, 255, .7); }
.gc-time { flex: none; font-size: 12px; color: #6b5418; } .gc-time b { font-family: var(--mono); font-size: 16px; color: #2b1d00; }
.gc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.gc-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.gc-t .bd.xl { width: 64px; height: 64px; filter: drop-shadow(0 4px 6px rgba(107, 84, 24, .35)); }
.gc-t b { max-width: 100%; overflow: hidden; font-size: 14.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gc-t.h b { color: #0b5f86; } .gc-t.a b { color: #a33a18; }
.gc-ovr { position: absolute; top: -4px; right: 14%; padding: 1px 7px; border-radius: 8px; font-family: var(--mono); font-size: 13px; font-weight: 800; font-style: normal; color: #fff; background: #2b1d00; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.gc-vs { font-family: var(--mono); font-size: 22px; font-weight: 800; font-style: italic; color: #c99a1c; text-shadow: 0 1px 0 #fff; }
.gc-bet { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.gc-pick { padding: 6px 14px; border-radius: 12px; font-size: 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1f7a4d, #22a05f); box-shadow: 0 4px 12px rgba(34, 160, 95, .35); }
.gc-price { font-family: var(--mono); font-size: 20px; color: #2b1d00; }
.gc-ah { padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; color: #3b2a00; background: rgba(255, 255, 255, .55); border: 1px solid rgba(201, 154, 28, .35); }
.gc-why { display: grid; gap: 4px; margin: 0; padding: 8px 10px; list-style: none; border-radius: 12px; background: rgba(255, 255, 255, .5); }
.gc-why li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.gc-go { margin-top: auto; padding: 10px; border-radius: 12px; font-size: 15px; font-weight: 800; text-align: center; color: #fff; background: linear-gradient(135deg, #2b1d00, #5a3d00); box-shadow: 0 4px 12px rgba(43, 29, 0, .35); transition: filter .15s; }
.gc:hover .gc-go { filter: brightness(1.25); }

/* กรอบทองในรายการทุกคู่ */
.mc.star { position: relative; border: 2px solid #e8c45a; box-shadow: 0 0 22px rgba(245, 197, 66, .3); background: radial-gradient(90% 60% at 50% 0%, rgba(245, 197, 66, .14), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.mc-star { position: absolute; top: -10px; left: 16px; z-index: 2; padding: 2px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #2b1d00; background: linear-gradient(135deg, #fff3c4, #f5c542); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mc { position: relative; }
@media (prefers-reduced-motion: reduce) { .gc::before, .gc.first { animation: none; } }
@media (max-width: 760px) { .gcs { grid-template-columns: minmax(0, 1fr); } .gold-h h2 span { display: block; margin: 2px 0 0; } }

/* SEO: หัวข้อหลัก H1 + บล็อกข้อความท้ายเว็บ + ลิงก์พันธมิตร */
.seo-h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; font-size: 26px; line-height: 1.2; color: #ffe7a0; text-shadow: 0 0 18px rgba(245, 197, 66, .35); }
.seo-h1 span { font-size: 15px; font-weight: 600; color: var(--soft); text-shadow: none; }
.mbar .h1like { margin: 0; font-size: 26px; } .mbar .h1like span { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--tick); }
.foot-seo { max-width: 980px; margin: 0 auto 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.foot-seo h2 { margin: 0 0 8px; font-size: 17px; color: #ffe7a0; }
.foot-seo p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; color: var(--soft); } .foot-seo p b { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.foot-links a { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #3b2a00; background: linear-gradient(135deg, #fff7da, #f7df94); }
.foot-partner a { font-weight: 800; color: #ffe7a0; text-decoration: underline; text-underline-offset: 3px; }
.foot > p { text-align: center; }
@media (max-width: 760px) { .seo-h1 { font-size: 21px; } .seo-h1 span { font-size: 13px; } }
.brand .tag { font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: 0; padding: 3px 10px; color: #1c1400; background: linear-gradient(135deg, #fff3b0, #f5c542); border: 0; box-shadow: 0 0 12px rgba(245, 197, 66, .35); }
@media (max-width: 900px) { .brand .tag { display: inline-block; font-size: 12px; padding: 2px 7px; } }

/* หน้าคัด: เห็นทุกคู่ทันที (ไม่มีคว่ำการ์ด) · ความมั่นใจสีสดตามระดับ · S/A กรอบเรืองแสง */
.pk-card .pk-item { transform: none; }
.pk-card { --tc: #7dd3fc; }
.pk-card.t-s { --tc: #ff4d8d; } .pk-card.t-a { --tc: #ffc21a; } .pk-card.t-b { --tc: #34d399; } .pk-card.t-c { --tc: #7dd3fc; }
.pk-card .pk-item { border-left-color: var(--tc); }
.pk-card.t-s .pk-item { border: 2px solid #ff4d8d; box-shadow: 0 0 0 1px rgba(255, 77, 141, .35), 0 0 28px rgba(255, 77, 141, .35); background: radial-gradient(80% 60% at 100% 0%, rgba(255, 77, 141, .16), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.pk-card.t-a .pk-item { border: 2px solid #ffc21a; box-shadow: 0 0 22px rgba(255, 194, 26, .3); background: radial-gradient(80% 60% at 100% 0%, rgba(255, 194, 26, .14), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.pk-card .pk-rank { background: var(--tc); box-shadow: 0 0 14px var(--tc); }
.pk-card .gauge { --c: var(--tc); }
.pk-cf { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px; padding: 6px 12px; overflow: hidden; border-radius: 12px; color: #fff; background: rgba(0, 0, 0, .3); border: 1px solid var(--tc, #7dd3fc); }
.pk-cf > i { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; width: var(--p); opacity: .9; }
.pk-cf > * { position: relative; z-index: 1; }
.pk-cf span { font-size: 12px; font-weight: 700; } .pk-cf b { font-family: var(--mono); font-size: 26px; line-height: 1; } .pk-cf em { justify-self: end; font-size: 12px; font-style: normal; font-weight: 800; }
.pk-cf.t-s { --tc: #ff4d8d; } .pk-cf.t-s > i { background: linear-gradient(90deg, #ff4d8d, #ff8a3d, #ffd23f); background-size: 200% 100%; animation: holo 3s linear infinite; }
.pk-cf.t-a { --tc: #ffc21a; } .pk-cf.t-a > i { background: linear-gradient(90deg, #d99a00, #ffc21a, #ffe38a); } .pk-cf.t-a { color: #1c1400; } .pk-cf.t-a span, .pk-cf.t-a em { color: #1c1400; }
.pk-cf.t-b { --tc: #34d399; } .pk-cf.t-b > i { background: linear-gradient(90deg, #059669, #34d399); }
.pk-cf.t-c { --tc: #7dd3fc; } .pk-cf.t-c > i { background: linear-gradient(90deg, #0284c7, #7dd3fc); }
.pk-cf b, .pk-cf span, .pk-cf em { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); } .pk-cf.t-a b, .pk-cf.t-a span, .pk-cf.t-a em { text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.pk-meta .lgc b { font-family: var(--sans); font-size: 12px; color: #3b2a00; }
.pk-cf.t-a em { color: #ffe38a; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pk-cf em { color: #fff; }

/* หน้าแรก: เกจ + แถบความมั่นใจ + ระดับ ของคำแนะนำที่ดีที่สุดในแต่ละคู่ */
.mc-pick { --tc: #7dd3fc; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.mc-pick.t-s { --tc: #ff4d8d; border-color: rgba(255, 77, 141, .55); box-shadow: 0 0 18px rgba(255, 77, 141, .25); } .mc-pick.t-a { --tc: #ffc21a; border-color: rgba(255, 194, 26, .5); box-shadow: 0 0 14px rgba(255, 194, 26, .2); }
.mc-pick.t-b { --tc: #34d399; } .mc-pick.t-c { --tc: #7dd3fc; } .mc-pick.t-x { --tc: #7b8f86; }
.mcp-g .gauge { --c: var(--tc); max-width: 96px; }
.mcp-r { display: grid; gap: 6px; min-width: 0; }
.mcp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.mcp-bet { overflow: hidden; font-size: 14px; font-weight: 800; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.mcp-price { font-family: var(--mono); font-size: 15px; color: var(--lime); }
.tier.t-x { color: #cfd8d3; background: #2a3a33; } .tier.t-x b { background: rgba(255, 255, 255, .08); }
.pk-cf.t-x { --tc: #5d6f67; } .pk-cf.t-x > i { background: linear-gradient(90deg, #3a4a43, #5d6f67); } .pk-cf.t-x b { font-size: 20px; }
.mc-pick .pk-cf { padding: 4px 10px; } .mc-pick .pk-cf b { font-size: 20px; }
@media (max-width: 760px) { .mc-pick { grid-template-columns: 70px minmax(0, 1fr); } .mcp-g .gauge { max-width: 70px; } }
/* เกจโค้ง = มั่นใจสูง · แถบตรง = มั่นใจเต็ง */
.mc-pick { --tc: initial; }
.mcp-g { --tc: #7b8f86; display: flex; flex-direction: column; align-items: center; gap: 0; }
.mcp-g.t-s { --tc: #ff4d8d; } .mcp-g.t-a { --tc: #ffc21a; } .mcp-g.t-b { --tc: #34d399; } .mcp-g.t-c { --tc: #7dd3fc; } .mcp-g.t-x { --tc: #ff8a5b; }
.mcp-cap { font-size: 11px; font-weight: 800; color: var(--soft); white-space: nowrap; }
.mcp-g .mcp-cap { margin-top: -2px; color: var(--tc); }
.mcp-top .mcp-cap { padding: 2px 8px; border-radius: 999px; color: #1c1400; background: linear-gradient(135deg, #fff3c4, #f5d06a); }
.mcp-g .gauge .g-l { display: none; }

/* หน้าคัด + แฟ้มสถิติ: บล็อก เกจโค้ง = มั่นใจสูง · แถบ = มั่นใจเต็ง */
.pk-card .pk-item { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cards info" "duo duo" "rules rules"; }
.pk-duo { grid-area: duo; }
.sb-duo { max-width: 560px; margin: 10px auto 0; text-align: left; }
@media (max-width: 760px) { .pk-card .pk-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "cards" "duo" "rules"; } }

/* =====================================================================
   หน้าแรกแบ่ง 3 โซน: ① เลือกหมวด (ทองอ่อน) · ② คู่เด่นจริง (ดำขอบทอง ย่อ 6 ใบ/แถว) · ③ ทุกคู่
   ===================================================================== */
.zone { margin-bottom: 22px; padding: 14px 14px 16px; border-radius: 22px; }
.zone.z1 { background: linear-gradient(180deg, rgba(245, 197, 66, .09), rgba(245, 197, 66, .02)); border: 1px solid rgba(245, 197, 66, .25); }
.zone.z2 { background: linear-gradient(180deg, #0a0a09, #111009); border: 1px solid #3a2f12; box-shadow: inset 0 1px 0 rgba(245, 197, 66, .15); }
.zone .pk-cards { margin-bottom: 0; }
.zone-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; }
.zone-h h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.zone-h small { font-size: 12.5px; color: var(--muted); }
.zone-h .count { margin-left: auto; }
.zn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--mono); font-size: 15px; font-weight: 800; color: #1c1400; background: linear-gradient(135deg, #fff3c4, #f5c542); box-shadow: 0 0 12px rgba(245, 197, 66, .4); }
.z1 .zone-h h2 { color: #ffe7a0; }
.z2 .zone-h h2 { color: #f5c542; } .z2 .zn { color: #f5c542; background: #1a160a; border: 1.5px solid #c99a1c; box-shadow: none; }
.z3h { padding: 10px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.z3h .zn { color: var(--text); background: var(--panel2); border: 1.5px solid var(--line2); box-shadow: none; }

/* การ์ดคู่เด่น (ดำขอบทอง ย่อ) */
.gss { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.gs { --tc: #7dd3fc; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 8px; overflow: hidden; border-radius: 14px; color: #f3ead2;
  background: radial-gradient(120% 70% at 50% 0%, rgba(245, 197, 66, .14), transparent 60%), linear-gradient(170deg, #1b1a16, #0d0c0a);
  border: 1.5px solid #6b5418; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), border-color .15s, box-shadow .15s; }
.gs.t-s { --tc: #ff4d8d; border-color: #ff4d8d; box-shadow: 0 0 16px rgba(255, 77, 141, .35), 0 6px 16px rgba(0, 0, 0, .5); }
.gs.t-a { --tc: #ffc21a; border-color: #d9a520; } .gs.t-b { --tc: #34d399; } .gs.t-c { --tc: #7dd3fc; }
.gs:hover { transform: translateY(-4px); border-color: #f5c542; box-shadow: 0 0 22px rgba(245, 197, 66, .45), 0 10px 22px rgba(0, 0, 0, .55); }
.gs::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 235, 170, .18) 50%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; transition: background-position .8s; }
.gs:hover::after { background-position: -40% 0; }
.gs-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gs-rank { font-family: var(--mono); font-size: 13px; font-weight: 800; color: #f5c542; }
.gs-time { font-size: 11px; color: #b9a978; } .gs-time b { font-family: var(--mono); font-size: 13px; color: #f3ead2; }
.gs-logos { display: flex; align-items: center; justify-content: center; gap: 6px; }
.gs-logos .bd.xl { width: 42px; height: 42px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.gs-logos .bd.mono.xl { font-size: 14px; }
.gs-logos i { font-family: var(--mono); font-size: 11px; font-weight: 800; font-style: italic; color: #c99a1c; }
.gs-names { display: grid; gap: 1px; text-align: center; }
.gs-names b { overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.gs-bet { overflow: hidden; padding: 4px 6px; border-radius: 8px; font-size: 12.5px; font-weight: 800; text-align: center; text-overflow: ellipsis; white-space: nowrap; color: #1c1400; background: linear-gradient(135deg, #fff3c4, #f5c542); }
.gs-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gs-price { font-family: var(--mono); font-size: 15px; color: #f5c542; }
.gs-bar { position: relative; display: block; height: 16px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.gs-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--tc); opacity: .85; }
.gs.t-s .gs-bar i { background: linear-gradient(90deg, #ff4d8d, #ff8a3d, #ffd23f); }
.gs-bar em { position: relative; display: block; padding: 0 6px; font-size: 10.5px; font-weight: 800; font-style: normal; line-height: 16px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
@media (max-width: 1700px) { .gss { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .gss { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gss { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zone { padding: 10px; } }

/* =====================================================================
   สีตามความหายาก (ทั้งเว็บ): S ตำนาน = แพลทินัม · A เอพิก = ทอง · B แรร์ = เงิน · C ธรรมดา = ทองแดง
   ===================================================================== */
:root {
  --plat: linear-gradient(135deg, #ffffff 0%, #e8f0ff 22%, #b8c9e6 48%, #eef3ff 62%, #9fb3d6 82%, #dfe8f7 100%);
  --gold: linear-gradient(135deg, #fff6d0 0%, #f7d66b 35%, #e2ae2e 65%, #fff0b3 82%, #c8921b 100%);
  --silv: linear-gradient(135deg, #ffffff 0%, #e7ebef 30%, #b9c1ca 60%, #f1f4f6 78%, #9aa4af 100%);
  --brnz: linear-gradient(135deg, #ffe2c4 0%, #e0a26a 35%, #b8733e 65%, #f0c090 82%, #8a4e21 100%);
}
@keyframes platshine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ป้ายระดับ */
.tier.t-s { color: #1b2a44; background: var(--plat); background-size: 200% 200%; animation: platshine 4s linear infinite; box-shadow: 0 0 14px rgba(170, 200, 255, .65); }
.tier.t-s b { color: #fff; background: linear-gradient(135deg, #6f88b8, #3d5687); text-shadow: none; }
.tier.t-a { color: #3a2800; background: var(--gold); box-shadow: 0 0 10px rgba(245, 197, 66, .45); } .tier.t-a b { color: #fff; background: #a87612; }
.tier.t-b { color: #1f2a33; background: var(--silv); } .tier.t-b b { color: #fff; background: #6b7682; }
.tier.t-c { color: #2b1405; background: var(--brnz); } .tier.t-c b { color: #fff; background: #7a441b; }

/* แถบความมั่นใจ / เกจ / กรอบ ใช้สีโลหะเดียวกัน */
.pk-cf.t-s { --tc: #b9cff5; color: #1b2a44; } .pk-cf.t-s > i { background: var(--plat); background-size: 200% 200%; animation: platshine 4s linear infinite; } .pk-cf.t-s span, .pk-cf.t-s b { color: #1b2a44; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.pk-cf.t-a { --tc: #f5c542; } .pk-cf.t-a > i { background: var(--gold); }
.pk-cf.t-b { --tc: #cfd6de; color: #1f2a33; } .pk-cf.t-b > i { background: var(--silv); } .pk-cf.t-b span, .pk-cf.t-b b { color: #1f2a33; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.pk-cf.t-c { --tc: #d08b4f; } .pk-cf.t-c > i { background: var(--brnz); } .pk-cf.t-c span, .pk-cf.t-c b { color: #2b1405; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.pk-cf.t-s em, .pk-cf.t-b em, .pk-cf.t-c em { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.mcp-g.t-s { --tc: #b9cff5; } .mcp-g.t-a { --tc: #f5c542; } .mcp-g.t-b { --tc: #cfd6de; } .mcp-g.t-c { --tc: #d08b4f; }
.pk-card.t-s { --tc: #b9cff5; } .pk-card.t-a { --tc: #f5c542; } .pk-card.t-b { --tc: #cfd6de; } .pk-card.t-c { --tc: #d08b4f; }
.pk-card.t-s .pk-item { border: 2px solid #c9dbff; box-shadow: 0 0 0 1px rgba(201, 219, 255, .35), 0 0 28px rgba(170, 200, 255, .4); background: radial-gradient(80% 60% at 100% 0%, rgba(201, 219, 255, .16), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.pk-card.t-a .pk-item { border-color: #f5c542; }
.pk-card .pk-rank { color: #111; }

/* ป้ายอธิบายสีในโซนคู่เด่น */
.rarity { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.rr { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.rr small { font-size: 11px; font-weight: 600; opacity: .8; }
.rr.t-s { color: #1b2a44; background: var(--plat); background-size: 200% 200%; animation: platshine 4s linear infinite; box-shadow: 0 0 12px rgba(170, 200, 255, .5); }
.rr.t-a { color: #3a2800; background: var(--gold); } .rr.t-b { color: #1f2a33; background: var(--silv); } .rr.t-c { color: #2b1405; background: var(--brnz); }

/* การ์ดคู่เด่น: พื้นการ์ดเป็นโลหะตามระดับ */
.gs { color: #1c1c1c; border-width: 2px; }
.gs.t-s { background: var(--plat); background-size: 220% 220%; animation: platshine 6s linear infinite; border-color: #eef4ff; box-shadow: 0 0 22px rgba(170, 200, 255, .55), 0 6px 16px rgba(0, 0, 0, .5); }
.gs.t-a { background: var(--gold); border-color: #fff0b3; box-shadow: 0 0 16px rgba(245, 197, 66, .4), 0 6px 16px rgba(0, 0, 0, .5); }
.gs.t-b { background: var(--silv); border-color: #ffffff; }
.gs.t-c { background: var(--brnz); border-color: #f0c090; }
.gs-rank { color: #111; } .gs-time { color: rgba(0, 0, 0, .6); } .gs-time b { color: #111; }
.gs-logos i { color: rgba(0, 0, 0, .55); }
.gs-logos .bd.xl { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.gs-names b { color: #141414; }
.gs-bet { color: #fff; background: rgba(0, 0, 0, .78); }
.gs-price { color: #111; }
.gs-foot .tier { box-shadow: none; }
.gs-conf { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.gs-conf small { font-size: 10.5px; font-weight: 700; color: rgba(0, 0, 0, .6); } .gs-conf b { font-family: var(--mono); font-size: 22px; line-height: 1; color: #111; }
.gs-bar { height: 8px; background: rgba(0, 0, 0, .18); }
.gs-bar i { opacity: 1; background: #1c1c1c; }
.gs.t-s .gs-bar i { background: linear-gradient(90deg, #3d5687, #6f88b8); } .gs.t-a .gs-bar i { background: linear-gradient(90deg, #8a5a00, #c68a12); }
.gs.t-b .gs-bar i { background: linear-gradient(90deg, #4b5560, #7d8791); } .gs.t-c .gs-bar i { background: linear-gradient(90deg, #5a2e0e, #8a4e21); }
.gs::after { background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; }
.gs:hover { border-color: #fff; box-shadow: 0 0 26px rgba(255, 255, 255, .45), 0 10px 22px rgba(0, 0, 0, .55); }
@media (prefers-reduced-motion: reduce) { .tier.t-s, .pk-cf.t-s > i, .rr.t-s, .gs.t-s { animation: none; } }
/* แพลทินัม (ตำนาน) ให้ต่างจากเงินชัดๆ: อมฟ้า-ม่วงแบบรุ้งเพชร + เรืองแสงฟ้า + 💎 มุมการ์ด */
:root { --plat: linear-gradient(125deg, #f7fbff 0%, #cfe3ff 18%, #b9c8ff 34%, #e4d6ff 50%, #bfe9ff 66%, #d9c9ff 82%, #f2f7ff 100%); }
.gs.t-s { border-color: #a9d4ff; box-shadow: 0 0 0 1px rgba(169, 212, 255, .6), 0 0 26px rgba(120, 180, 255, .7), 0 6px 16px rgba(0, 0, 0, .5); }
.gs.t-s::before { content: "💎"; position: absolute; top: 30px; right: 8px; font-size: 18px; filter: drop-shadow(0 0 6px rgba(120, 180, 255, .9)); animation: gemfloat 2.4s ease-in-out infinite; }
@keyframes gemfloat { 50% { transform: translateY(-3px) rotate(8deg); } }
.tier.t-s, .rr.t-s { box-shadow: 0 0 14px rgba(120, 180, 255, .75); }
@media (prefers-reduced-motion: reduce) { .gs.t-s::before { animation: none; } }

/* ธงผ้าคาดบนการ์ดคู่เด่น: ปลายตัดหางธง (ไม่มน) + มุมพับเงา · สีตามแบบที่เล่น */
.gss { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gs { overflow: visible; padding-top: 10px; }
.gs-flag { --f1: #b3122c; --f2: #e0283f; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 2px -16px 2px; padding: 5px 22px 6px; color: #fff; text-align: center;
  background: linear-gradient(180deg, var(--f2), var(--f1)); clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); }
.gs-flag::before, .gs-flag::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; }
.gs-flag small { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; opacity: .92; text-transform: none; }
.gs-flag span { display: flex; align-items: baseline; justify-content: center; gap: 6px; max-width: 100%; }
.gs-flag b { overflow: hidden; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.gs-flag em { flex: none; padding: 0 6px; font-family: var(--mono); font-size: 16px; font-weight: 800; font-style: normal; color: #1c1400; background: #ffe38a; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.gs-flag.f-home, .gs-flag.f-away { --f1: #8f0f24; --f2: #d7263d; }
.gs-flag.f-over { --f1: #b83a0b; --f2: #ff6a2b; }
.gs-flag.f-under { --f1: #0c3f8a; --f2: #2f7de0; }
/* เงาพับผ้าใต้ปลายธง */
.gs { --fold: rgba(0, 0, 0, .35); }
.gs-foot { justify-content: center; }
@media (max-width: 1700px) { .gss { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .gss { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gss { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gs-flag { margin: 2px -12px; } }
.gs.t-s::before { top: auto; bottom: 62px; right: 10px; z-index: 2; }

/* ธงแบบใหม่ (ยื่นออกด้านเดียว): ติดขอบซ้าย มีมุมผ้าพับหลังการ์ด · ปลายขวาเป็นหางธง · อยู่ใต้ชื่อทีม */
.gs-flagw { position: relative; margin: 4px 0 2px -18px; }
.gs-flagw::before { content: ""; position: absolute; left: 0; bottom: -7px; border-top: 7px solid rgba(0, 0, 0, .55); border-left: 8px solid transparent; }
.gs-flag { margin: 0; padding: 5px 26px 6px 16px; align-items: flex-start; text-align: left;
  clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%); }
.gs-flag span { justify-content: flex-start; }
.gs-flag small { font-size: 10.5px; }
.gs-flagw::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: rgba(255, 255, 255, .25); pointer-events: none; }

/* โลโก้สโมสร: สัดส่วนจริง ไม่บีบ ใหญ่ขึ้น */
.gs-logos { min-height: 58px; gap: 10px; }
.gs-logos img.bd.xl { width: auto; height: 54px; max-width: 70px; object-fit: contain; border-radius: 0; }
.gs-logos img.bd.flag.xl { height: 40px; max-width: 62px; border-radius: 4px; object-fit: contain; }
.gs-logos .bd.mono.xl { width: 50px; height: 50px; font-size: 15px; }
