/* 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: #0875ea;
  --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: #91aae4; 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: #479ffd; border-color: rgba(8, 117, 234, .45); background: rgba(8, 117, 234, .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; }

#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, #152a5a, 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, #1e4cb8, 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; }
}

/* =====================================================================
   ธีม "ศูนย์ข้อมูลฟุตบอล": สนามหญ้ากลางคืน + การ์ดทีมแบบ FUT (ทอง/เงิน/ทองแดงตาม OVR) · ✓ ติ๊กฝั่งที่ดีกว่า
   (ทับค่าสีเดิมด้านบน — หน้าอื่นเปลี่ยนโทนตามอัตโนมัติ)
   ===================================================================== */
:root {
  --bg: #091226; --bg2: #0e1b3a; --panel: #101f43; --panel2: #152a5a; --line: #1c3777; --line2: #264ca3;
  --text: #eef1f8; --soft: #b6bdcf; --muted: #7c88a4;
  --lime: #4299f5; --lime-d: #1c70c9; --home: #4cc9f0; --away: #ff7a59; --draw: #6f7c9b;
  --tick: #22c55e;
}
body {
  background: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(80, 116, 200, .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(9, 18, 38, .9); border-bottom: 1px solid var(--line); }
.logo { color: var(--lime); }
.tag { border-color: var(--lime-d); color: var(--lime); }
.nav a.on { color: #000e1c; background: linear-gradient(135deg, #8ac3ff, 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; }
/* แถบขวา: ย่อเป็นค่าเริ่มต้น กดขยายได้ */
.center.r-off { grid-template-columns: 250px minmax(0, 1fr) 44px; }
.r-off .side.right > :not(.rt-tg) { display: none; }
.rt-tg { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 10px; border: 1px solid var(--lime-d); border-radius: 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--lime); background: linear-gradient(180deg, var(--panel2), var(--panel)); cursor: pointer; }
.rt-tg:hover { box-shadow: 0 0 16px rgba(66, 153, 245, .2); }
.rt-tg .rt-o, .r-off .rt-tg .rt-c { display: none; }
.r-off .rt-tg .rt-o { display: inline; }
.r-off .rt-tg { writing-mode: vertical-rl; min-height: 200px; padding: 14px 0; letter-spacing: .5px; }
.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: #000e1c; background: linear-gradient(135deg, #8ac3ff, var(--lime)); }
.vseg button.on i, .lglist button.on i { color: #000e1c; 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, 116, 200, .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: #061028; background: var(--tick); border-color: #89a3e1; 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: #061028; 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: #00142a; text-align: center;
  clip-path: polygon(50% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%, 0 7%); background: #25499e; 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, #c2dfff 0%, #4299f5 34%, #2a7dd6 62%, #134f8f 100%); color: #00142a; }
.fut.silver { background: linear-gradient(160deg, #ffffff 0%, #dfe5ea 36%, #a7b1bb 70%, #6d7780 100%); color: #182028; }
.fut.bronze { background: linear-gradient(160deg, #bdddff 0%, #639fdf 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(66, 153, 245, .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, 116, 200, .16), transparent 70%), linear-gradient(160deg, #132652, #0c1833 70%); border-color: var(--line2); }
.hexcard { background: radial-gradient(60% 80% at 50% 50%, rgba(80, 116, 200, .08), transparent 70%), var(--panel); }
.hex-side .fut { margin: 0 auto 12px; }
.btn-share { color: #000e1c; background: linear-gradient(135deg, #8ac3ff, var(--lime)); box-shadow: 0 0 18px rgba(66, 153, 245, .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; }
  .center.r-off { grid-template-columns: 230px minmax(0, 1fr); }
  .side.right .rt-tg { grid-column: 1 / -1; }
  .r-off .rt-tg { writing-mode: horizontal-tb; min-height: 0; padding: 10px; }
}
@media (max-width: 900px) {
  .center, .center.r-off { 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(9, 18, 38, .92); }
.jump a:hover { color: #000e1c; }

/* =====================================================================
   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: #000912; }
.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, #037dff, #3ddc97, #4cc9f0, #b388ff, #ff4d6d); background-size: 300% 100%; animation: holo 3s linear infinite; box-shadow: 0 0 16px rgba(3, 125, 255, .55); }
.tier.t-a { background: linear-gradient(135deg, #b8daff, #4299f5 55%, #0b5fb8); box-shadow: 0 0 10px rgba(66, 153, 245, .4); }
.tier.t-b { background: linear-gradient(135deg, #ffffff, #cfd8e3 55%, #8f9aa6); }
.tier.t-c { background: linear-gradient(135deg, #add5ff, #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%, #1b3674, #0c1833); }
.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: #037dff; box-shadow: 0 0 26px rgba(3, 125, 255, .35), inset 0 0 40px rgba(255, 77, 109, .15); }
.pk-flip.t-s .pb-tier { background: linear-gradient(90deg, #ff4d6d, #037dff, #3ddc97, #4cc9f0, #b388ff, #ff4d6d); background-size: 300% 100%; animation: holo 3s linear infinite; }
.pk-flip.t-a .pb-tier { background: linear-gradient(135deg, #b8daff, #4299f5, #0b5fb8); color: #001c3a; }
.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, #add5ff, #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(66, 153, 245, .8); } 40% { box-shadow: 0 0 40px 10px rgba(66, 153, 245, .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 #037dff; } 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(66, 153, 245, .08); cursor: pointer; }
.slip-add.on { border-style: solid; color: #061028; 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: #000e1c; background: var(--lime); }
.slip-fab small { font-size: 12.5px; }
.slip-fab.has { border-color: var(--lime-d); box-shadow: 0 0 20px rgba(66, 153, 245, .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: #0f1d40; 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: #2b517a; }
.sp-list .t-s .tr { background: linear-gradient(90deg, #ff4d6d, #037dff, #4cc9f0); } .sp-list .t-a .tr { background: #1c70c9; } .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(66, 153, 245, .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: #061028; 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: #183068; 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, #001c3a, #183068); box-shadow: 0 0 40px rgba(66, 153, 245, .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(66, 153, 245, .14), transparent 70%), linear-gradient(180deg, #132652, #0d1a38); 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: #000e1c; background: var(--lime); }
.hp { position: relative; display: block; width: 100%; height: 22px; overflow: hidden; border: 2px solid #0a1329; 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(66, 153, 245, .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: #91aae4; 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: #00152b; --ink2: #18406b; color: var(--ink); border: 1px solid #7ab0e9; 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, #f0f7ff 0%, #b7d8fb 38%, #7eb6f1 75%, #5a9ce2 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(28, 112, 201, .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: #1c70c9; box-shadow: 0 12px 34px rgba(28, 112, 201, .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(0, 58, 120, .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(24, 64, 107, .18) 0); }
.pk-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #e6f2ff; 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(28, 112, 201, .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%, #00152b); }
.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); }
/* ไพ่มังกรประจำหมวด: รูปมังกรเต็มใบ สัดส่วนไพ่ 5:7 · ตัวหนังสือขาวบนม่านเงา (รูป public domain — ดู img/dragon/SOURCES.txt) */
.pk.gold.drg { --ink: #fff; --ink2: rgba(200, 227, 255, .85); aspect-ratio: 5 / 7; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto auto auto;
  grid-template-areas: "t ring" "sp sp" "row row" "best best" "cd cd" "go go"; align-items: end; border: 2px solid #7ab0e9; background: #040b12;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pk.gold.drg > .pk-t, .pk.gold.drg > .pk-ring { align-self: start; }
.pk-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pk.gold.drg:hover .pk-art { transform: scale(1.05); }
.pk.gold.drg::after { inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; border: 0; border-radius: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 5, 10, .78) 0%, rgba(0, 5, 10, .2) 20%, transparent 30%, transparent 50%, rgba(0, 5, 10, .72) 68%, rgba(0, 5, 10, .9) 100%); }
.pk.gold.drg::before { opacity: .45; }
.pk.gold.drg .pk-t b { color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); } .pk.gold.drg .pk-t small { color: var(--ink2); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.pk.gold.drg .pk-ring::before { background: rgba(4, 11, 18, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.pk.gold.drg .pk-n b { text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.pk.gold.drg .pk-best { border-color: rgba(122, 176, 233, .45); background: rgba(4, 11, 18, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pk.gold.drg .pk-best em { color: color-mix(in srgb, var(--c) 55%, #fff); }
.pk.gold.drg .pk-best.none { background: rgba(4, 11, 18, .62); }
.pk.gold.drg .pk-cd { text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.pk.gold.drg:hover { border-color: #8ac3ff; box-shadow: 0 14px 36px rgba(28, 112, 201, .45), inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (prefers-reduced-motion: reduce) { .pk-art { transition: none; } }
@media (max-width: 1400px) { .pk.gold.drg { aspect-ratio: auto; min-height: 480px; } }
@media (max-width: 760px) { .pk.gold.drg { min-height: 400px; } }
.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, #007bff); transform: rotate(35deg); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.pk.gold.is-hot { border-color: #007bff; box-shadow: 0 0 0 2px rgba(0, 123, 255, .45), 0 10px 30px rgba(0, 123, 255, .3); animation: hotglow 2.4s ease-in-out infinite; }
@keyframes hotglow { 50% { box-shadow: 0 0 0 3px rgba(0, 123, 255, .65), 0 12px 40px rgba(0, 123, 255, .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: #001d3b;
  background: linear-gradient(135deg, #f0f7ff, #a6cdf7); border: 1px solid #8ab9ec; 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, #7ab5f5); 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, #d6eaff, #5ca6f5 60%, #378de9); border-color: #2079d9; box-shadow: 0 0 12px rgba(66, 153, 245, .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(66, 153, 245, .12); border-color: rgba(66, 153, 245, .35); }
.lglist button.on .lgc.side { color: #000e1c; }
.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: #001d3b; background: linear-gradient(135deg, #dcedff, #94c4f7); border-color: #5a9ee7; } .pc.fav em { color: #004a9a; }
.pc.val { color: #092465; background: linear-gradient(135deg, #eef2fb, #bdccef); border-color: #7f9bdc; box-shadow: 0 0 10px rgba(52, 211, 153, .35); } .pc.val em { color: #1247c4; }
.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: #002b5a; background: #bfdeff; } .dna.d-flow { color: #123585; background: #d8e1f5; } .dna.d-cor { color: #7a1030; background: #ffdbe5; } .dna.d-card { color: #002c5b; background: #a8d2ff; }
.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, #7ab5f5); }
.lglist button.top > span { color: #8abff7; font-weight: 700; } .lglist button.top.on > span { color: #000e1c; }
.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, #4299f5 0%, #b0d6ff 40%, #4299f5 55%, #1c70c9 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(66, 153, 245, .55)); }
.lgo-ring { fill: rgba(66, 153, 245, .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(66, 153, 245, .35); stroke-width: 1; stroke-dasharray: 2 3; }
.lgo-pent { fill: url(#lgoG); stroke: #000e1c; 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: #000e1c; background: linear-gradient(135deg, #b0d6ff, #4299f5 55%, #2a82e0); box-shadow: 0 0 16px rgba(66, 153, 245, .4); }
.auth .signup:hover { filter: brightness(1.06); }
.auth .login { color: var(--text); border: 1px solid var(--lime-d); background: rgba(66, 153, 245, .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 #7ab0e9; border-radius: 22px; text-align: center; color: #00152b;
  background: radial-gradient(120% 80% at 100% 0%, #fff, transparent 55%), linear-gradient(160deg, #f0f7ff, #b7d8fb 45%, #7eb6f1); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.auth-logo .lgo { filter: drop-shadow(0 0 10px rgba(28, 112, 201, .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: #18406b; 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(24, 64, 107, .12); }
.auth-tabs a { padding: 9px; border-radius: 9px; font-weight: 800; color: #18406b; }
.auth-tabs a.on { color: #000e1c; background: #fff; box-shadow: 0 2px 8px rgba(24, 64, 107, .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: #18406b; }
.auth-form input { height: 46px; padding: 0 14px; border: 1px solid #70a6e0; border-radius: 12px; font: inherit; font-size: 16px; color: #000e1c; background: #f6faff; }
.auth-form input:focus { outline: 2px solid #1c70c9; }
.auth-hint { font-size: 12px; color: #18406b; }
.auth-form .btn-share.big { justify-content: center; padding: 13px; font-size: 16px; color: #fff; background: linear-gradient(135deg, #2951ae, #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: #0a294a; 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: #18406b; }
.auth-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .auth-btns form { margin: 0; } .auth-card .btn-ghost { color: #00152b; border-color: #5a97d9; background: #e0efff; }

/* แถบราคา + สถิติแบบไทย (ด้านบนการ์ดคู่) */
.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: #001d3b; background: linear-gradient(90deg, #cfe6ff, #eaf4ff); border-color: #95c1f0; }
.th-i.st { color: #182f65; background: linear-gradient(90deg, #dfe6f7, #f3f6fc); border-color: #b5c4e6; }
.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: 108, 184, 255; 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(66, 153, 245, .38); background: linear-gradient(90deg, rgba(var(--s), .24), rgba(66, 153, 245, .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: #00152b; background: linear-gradient(135deg, #c4e1ff, #6aadf5); }
.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: #a0ceff; text-shadow: 0 0 12px rgba(66, 153, 245, .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: #e6e9ef; } .tha.eq .tha-t { color: var(--muted); font-weight: 500; }
.sb-mid .tha { max-width: 520px; margin: 10px auto 0; }
.pc.ou { color: #001d3b; background: linear-gradient(135deg, #e8f3ff, #a6cffb); border-color: #8ab9ec; } .pc.ou i { color: #10437a; }
.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: #092465; background: linear-gradient(135deg, #eef2fb, #bdccef); border: 1px solid #7f9bdc; 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: #092465; background: linear-gradient(135deg, #eef2fb, #bdccef); 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: #a0ceff; }
.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: #092465; background: #ccd7f2; } .vt.dear { color: #7a1d0d; background: #ffe1d6; } .vt.ok { color: #2f3a45; background: #e8eef5; }

/* =====================================================================
   🌟 คู่เด่นจริง: การ์ดทองน่ากด + กรอบทองในรายการทุกคู่
   ===================================================================== */
.gold-h h2 { margin: 0; font-size: 22px; color: #a0ceff; text-shadow: 0 0 16px rgba(66, 153, 245, .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: #00152b; isolation: isolate;
  border: 2px solid #5a9fe8;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .95), transparent 60%), linear-gradient(165deg, #f0f7ff 0%, #add3fb 40%, #6faef2 75%, #428dde 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(66, 153, 245, .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(66, 153, 245, .55); border-color: #1c70c9; }
.gc.first { border-color: #1c8aff; box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 3px rgba(28, 138, 255, .35), 0 0 36px rgba(28, 138, 255, .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, #1c8aff); 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: #18406b; } .gc-time b { font-family: var(--mono); font-size: 16px; color: #00152b; }
.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(24, 64, 107, .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: #00152b; 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: #1c70c9; 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, #2951ae, #22a05f); box-shadow: 0 4px 12px rgba(34, 160, 95, .35); }
.gc-price { font-family: var(--mono); font-size: 20px; color: #00152b; }
.gc-ah { padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; color: #001d3b; background: rgba(255, 255, 255, .55); border: 1px solid rgba(28, 112, 201, .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, #00152b, #002b5a); box-shadow: 0 4px 12px rgba(0, 21, 43, .35); transition: filter .15s; }
.gc:hover .gc-go { filter: brightness(1.25); }

/* กรอบทองในรายการทุกคู่ */
.mc.star { position: relative; border: 2px solid #5a9fe8; box-shadow: 0 0 22px rgba(66, 153, 245, .3); background: radial-gradient(90% 60% at 50% 0%, rgba(66, 153, 245, .14), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.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: #a0ceff; text-shadow: 0 0 18px rgba(66, 153, 245, .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: #a0ceff; }
.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: #001d3b; background: linear-gradient(135deg, #daecff, #94c4f7); }
.foot-partner a { font-weight: 800; color: #a0ceff; text-decoration: underline; text-underline-offset: 3px; }
.foot-social a { display: inline-block; margin: 4px 6px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: #1d4ed8; }
.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: #000e1c; background: linear-gradient(135deg, #b0d6ff, #4299f5); border: 0; box-shadow: 0 0 12px rgba(66, 153, 245, .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: #1a89ff; } .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 #1a89ff; box-shadow: 0 0 22px rgba(26, 137, 255, .3); background: radial-gradient(80% 60% at 100% 0%, rgba(26, 137, 255, .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, #3f9cff); background-size: 200% 100%; animation: holo 3s linear infinite; }
.pk-cf.t-a { --tc: #1a89ff; } .pk-cf.t-a > i { background: linear-gradient(90deg, #0069d9, #1a89ff, #8ac3ff); } .pk-cf.t-a { color: #000e1c; } .pk-cf.t-a span, .pk-cf.t-a em { color: #000e1c; }
.pk-cf.t-b { --tc: #34d399; } .pk-cf.t-b > i { background: linear-gradient(90deg, #0743cf, #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: #001d3b; }
.pk-cf.t-a em { color: #8ac3ff; 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: #1a89ff; border-color: rgba(26, 137, 255, .5); box-shadow: 0 0 14px rgba(26, 137, 255, .2); }
.mc-pick.t-b { --tc: #34d399; } .mc-pick.t-c { --tc: #7dd3fc; } .mc-pick.t-x { --tc: #6f7c9b; }
.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: #ccd0db; background: #1f3e86; } .tier.t-x b { background: rgba(255, 255, 255, .08); }
.pk-cf.t-x { --tc: #545f78; } .pk-cf.t-x > i { background: linear-gradient(90deg, #2951ae, #545f78); } .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: #6f7c9b; display: flex; flex-direction: column; align-items: center; gap: 0; }
.mcp-g.t-s { --tc: #ff4d8d; } .mcp-g.t-a { --tc: #1a89ff; } .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: #000e1c; background: linear-gradient(135deg, #c4e1ff, #6aadf5); }
.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(66, 153, 245, .09), rgba(66, 153, 245, .02)); border: 1px solid rgba(66, 153, 245, .25); }
.zone.z2 { background: linear-gradient(180deg, #0a0a09, #111009); border: 1px solid #12253a; box-shadow: inset 0 1px 0 rgba(66, 153, 245, .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, .zone-h h1 { 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: #000e1c; background: linear-gradient(135deg, #c4e1ff, #4299f5); box-shadow: 0 0 12px rgba(66, 153, 245, .4); }
.z1 .zone-h h2 { color: #a0ceff; }
.z2 .zone-h h2, .z2 .zone-h h1 { color: #4299f5; } .z2 .zn { color: #4299f5; background: #0a121a; border: 1.5px solid #1c70c9; 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: #d2e2f3;
  background: radial-gradient(120% 70% at 50% 0%, rgba(66, 153, 245, .14), transparent 60%), linear-gradient(170deg, #1b1a16, #0d0c0a);
  border: 1.5px solid #18406b; 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: #1a89ff; border-color: #2079d9; } .gs.t-b { --tc: #34d399; } .gs.t-c { --tc: #7dd3fc; }
.gs:hover { transform: translateY(-4px); border-color: #4299f5; box-shadow: 0 0 22px rgba(66, 153, 245, .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(170, 211, 255, .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: #4299f5; }
.gs-time { font-size: 11px; color: #b9a978; } .gs-time b { font-family: var(--mono); font-size: 13px; color: #d2e2f3; }
.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: #1c70c9; }
.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: #000e1c; background: linear-gradient(135deg, #c4e1ff, #4299f5); }
.gs-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gs-price { font-family: var(--mono); font-size: 15px; color: #4299f5; }
.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, #3f9cff); }
.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: #001c3a; background: var(--gold); box-shadow: 0 0 10px rgba(66, 153, 245, .45); } .tier.t-a b { color: #fff; background: #125aa8; }
.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: #4299f5; } .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: #4299f5; } .mcp-g.t-b { --tc: #cfd6de; } .mcp-g.t-c { --tc: #d08b4f; }
.pk-card.t-s { --tc: #b9cff5; } .pk-card.t-a { --tc: #4299f5; } .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: #4299f5; }
.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: #001c3a; 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: #b3d8ff; box-shadow: 0 0 16px rgba(66, 153, 245, .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: #90bef0; }
.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, #00438a, #1269c6); }
.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: #000e1c; background: #8ac3ff; 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; }

/* ---------- 🐉 ไพ่คัดวางทับ: คู่ที่ผ่านหมวดไหน → การ์ดคู่เป็นกระดาษสีอ่อน + ไพ่มังกรเอียงทับมุมขวาบน ---------- */
.mc.pk-on { --text: #1f2635; --soft: #4b5670; --muted: #6d7891; --panel: #f0f7ff; --panel2: #ffffff; --bg2: #dce7f3; --line: #bbcee2; --line2: #9bb6d3;
  position: relative; z-index: 1; content-visibility: visible; color: var(--text); border: 2px solid #5a9fe8;
  background: radial-gradient(120% 70% at 100% 0%, rgba(102, 176, 255, .35), transparent 55%), linear-gradient(180deg, #f7fbff, #ddeaf8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), inset 0 0 0 1px #fff; }
.mc.pk-on:hover { z-index: 4; border-color: #1c70c9; }
.mc.pk-on.star { border-color: #ff4d8d; box-shadow: 0 0 0 2px rgba(255, 77, 141, .25), 0 8px 26px rgba(0, 0, 0, .45); }
.mc.pk-on > :nth-child(2), .mc.pk-on > :nth-child(3), .mc.pk-on > :nth-child(4) { margin-right: 112px; }
/* สีตายตัวของชิ้นส่วนที่ออกแบบไว้บนพื้นมืด → ปรับให้อ่านบนกระดาษ */
.mc.pk-on .tha { background: #fff; box-shadow: inset 0 0 0 1px var(--line); } .mc.pk-on .tha-w { color: #00438a; text-shadow: none; } .mc.pk-on .tha.eq .tha-w { color: #3b4455; }
.mc.pk-on .tha-n { background: #d2e1f1; color: #223e5b; } .mc.pk-on .tha-t { filter: brightness(.75) saturate(1.3); }
.mc.pk-on .mc-head .tm b { color: #1f2635; }
.mc.pk-on .mc-pick { background: #fff; border-color: var(--line); box-shadow: 0 1px 4px rgba(20, 68, 120, .12); }
.mc.pk-on .mcp-price, .mc.pk-on .price-chips b, .mc.pk-on .mini b { color: #003b7a; }
.mc.pk-on .gauge text, .mc.pk-on .gauge b { fill: var(--text); color: var(--text); }

.mc-cards { position: absolute; top: -16px; right: -14px; z-index: 5; width: 124px; height: 174px; pointer-events: none; }
.pcard { --tc: #4f8ccd; position: absolute; inset: 0; display: block; overflow: hidden; border: 3px solid #fff; border-radius: 10px; background: #06101a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .5), 0 0 0 1.5px var(--tc); transform: rotate(8deg); transform-origin: 70% 90%; transition: transform .25s ease; }
.mc-cards.n2 .pcard:first-child { transform: rotate(-10deg) translate(-26px, 6px); filter: brightness(.85); }
.mc-cards.n3 .pcard:first-child { transform: rotate(-16deg) translate(-40px, 10px); filter: brightness(.8); }
.mc-cards.n3 .pcard:nth-child(2) { transform: rotate(-4deg) translate(-18px, 4px); filter: brightness(.9); }
.mc.pk-on:hover .pcard:last-child { transform: rotate(3deg) translateY(-6px) scale(1.06); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 26%, transparent 56%, rgba(0, 0, 0, .85) 100%); }
.pc-top, .pc-conf, .pc-bot, .pc-star { position: absolute; z-index: 1; }
.pc-top { top: 5px; left: 6px; right: 6px; overflow: hidden; font-size: 11px; font-weight: 800; color: #fff; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.pc-conf { top: 23px; right: 4px; display: flex; flex-direction: column; align-items: center; min-width: 36px; padding: 2px 4px 3px; border-radius: 8px; line-height: 1; color: #06101a; background: var(--tc); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.pc-conf b { font-family: var(--mono); font-size: 20px; font-weight: 800; } .pc-conf small { font-size: 8.5px; font-weight: 800; }
.pc-bot { left: 5px; right: 5px; bottom: 5px; display: flex; flex-direction: column; line-height: 1.15; color: #fff; text-shadow: 0 1px 3px #000; }
.pc-bot b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .pc-bot em { font-family: var(--mono); font-size: 15px; font-style: normal; font-weight: 800; color: #8ac3ff; }
.pc-star { top: 50%; left: -3px; right: -3px; padding: 1px 0; font-size: 9.5px; font-weight: 800; text-align: center; color: #fff; background: linear-gradient(90deg, #ff4d8d, #007bff); transform: translateY(-50%); }
.pcard.t-s { --tc: #ff7eb0; } .pcard.t-a { --tc: #1a89ff; } .pcard.t-b { --tc: #d7dee6; } .pcard.t-c { --tc: #6ca4e0; }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }
@media (max-width: 760px) { .mc-cards { width: 84px; height: 118px; right: -6px; } .mc.pk-on > :nth-child(2), .mc.pk-on > :nth-child(3), .mc.pk-on > :nth-child(4) { margin-right: 72px; } }
.stars-page .zone { margin-top: 10px; }


/* ปุ่มเรียง: บรรทัดรองอธิบายสั้น ๆ */
.sortseg button small { margin-left: auto; font-size: 11px; font-weight: 400; opacity: .7; }
.side h3 small.tot { color: var(--soft); } .side h3 small.tot b { font-family: var(--mono); font-size: 13px; color: var(--lime); }

/* ---------- สมัครสมาชิก: ติดต่อแอดมิน (LINE/โทร) + กล่อง VIP (ชุดเดียวกับ tdedus) ---------- */
.auth-page.has-vip { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 520px); justify-content: center; align-items: start; gap: 18px; }
.auth-page.has-vip .auth-card { margin: 0; max-width: none; }
.auth-forgot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; } .auth-forgot a { color: #06c755; font-weight: 700; }
.auth-contact { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); } .auth-contact > small { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.contact-btns { display: grid; gap: 8px; }
.line-btn, .tel-btn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.line-btn { background: linear-gradient(135deg, #06c755, #04a846); box-shadow: 0 4px 14px rgba(6, 199, 85, .3); }
.tel-btn { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.line-btn:hover, .tel-btn:hover { transform: translateY(-2px); }
.line-btn .line-logo { flex: none; width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 2px #fff; }
.tel-btn i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 8px; font-size: 18px; font-style: normal; background: rgba(255, 255, 255, .2); }
.line-btn span, .tel-btn span { display: flex; flex-direction: column; line-height: 1.2; } .line-btn b, .tel-btn b { font-size: 14.5px; } .line-btn small, .tel-btn small { font-family: var(--mono); font-size: 12px; opacity: .9; }
.vip-card { border-color: #5a9fe8; background: radial-gradient(90% 60% at 100% 0%, rgba(66, 153, 245, .18), transparent 60%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.vip-card { color: var(--text); text-align: left; } .vip-card h2, .vip-card > .auth-sub { text-align: center; } .vip-card > .auth-sub { color: var(--soft); }
.vip-card h2 { margin: 0 0 4px; font-size: 22px; color: #a0ceff; } .vip-card h2 b { font-family: var(--mono); font-size: 28px; color: #4299f5; }
.vip-perks { margin: 12px 0; padding: 12px; border: 1px solid rgba(66, 153, 245, .3); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.vip-perks-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .vip-perks-h .line-logo { width: 24px; height: 24px; border-radius: 6px; } .vip-perks-h b { color: #a0ceff; }
.vip-perks ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vip-perks li { display: flex; align-items: flex-start; gap: 10px; } .vip-perks li i { flex: none; width: 26px; font-size: 18px; font-style: normal; text-align: center; }
.vip-perks li span { display: flex; flex-direction: column; line-height: 1.3; } .vip-perks li b { font-size: 14px; } .vip-perks li small { font-size: 12px; color: var(--soft); }
.pay-box { margin-bottom: 10px; padding: 12px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.pay-h { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--soft); }
.pay-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.pay-row:first-of-type { border-top: 0; }
.pay-bank { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; } .pay-bank i { width: 10px; height: 10px; border-radius: 50%; background: var(--bk); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.pay-no { font-family: var(--mono); font-size: 16px; letter-spacing: .03em; color: #fff; }
.pay-copy { padding: 4px 10px; border: 1px solid var(--line2); border-radius: 8px; font: inherit; font-size: 12px; color: var(--text); background: var(--panel2); cursor: pointer; }
.pay-copy.ok { border-color: #06c755; color: #06c755; }
.pay-name { margin-top: 6px; font-size: 12.5px; color: var(--muted); } .pay-name b { color: var(--text); }
@media (max-width: 900px) { .auth-page.has-vip { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 🐉 อินโทรมังกรจีนเต็มตัว (canvas) 3 วิ ก่อนเข้าหน้าหมวด — พื้นหลังโปร่ง ---------- */
html.dz-on { overflow: hidden; }
.dz { --c: #38bdf8; --seal: #b3121f; position: fixed; inset: 0; z-index: 200; overflow: hidden; cursor: pointer;
  background: radial-gradient(70% 70% at 50% 50%, rgba(8, 5, 14, .35), rgba(8, 5, 14, .72)); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); animation: dzIn .2s ease-out both; }
.dz-home { --c: #6d8edb; } .dz-away { --c: #6bb3ff; } .dz-over { --c: #ff8a5b; } .dz-under { --c: #9bd7ff; }
@keyframes dzIn { from { opacity: 0; } }
.dz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dz-clouds i { position: absolute; top: var(--y); left: -30%; width: var(--w); opacity: 0; animation: dzCloud 1.5s var(--d) linear both; }
.dz-clouds i:nth-child(even) { left: auto; right: -30%; }
.dz-clouds svg { display: block; width: 100%; height: auto; overflow: visible; }
.dz-clouds path { fill: rgba(255, 255, 255, .1); stroke: color-mix(in srgb, var(--c) 70%, #6ab2ff); stroke-width: 2; }
.dz-clouds path.cu { fill: none; }
@keyframes dzCloud { 0% { opacity: 0; transform: translateX(0); } 20%, 80% { opacity: .9; } 100% { opacity: 0; transform: translateX(calc(var(--dir) * 70vw)); } }
.dz-seal { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 26px 12px; pointer-events: none;
  color: #a0ceff; background: var(--seal); border: 4px double #6ab2ff; border-radius: 10px; box-shadow: 0 0 0 5px var(--seal), 0 0 0 7px #6ab2ff, 0 16px 40px rgba(0, 0, 0, .6), 0 0 50px color-mix(in srgb, var(--c) 50%, transparent);
  transform: translate(-50%, -50%) rotate(-3deg); animation: dzSeal .3s .18s cubic-bezier(.2, 1.7, .4, 1) both, dzSealOut .22s 1.2s ease-in forwards; }
.dz-seal i { font-size: 30px; font-style: normal; line-height: 1; }
.dz-seal b { font-size: clamp(30px, 6vw, 50px); font-weight: 900; line-height: 1.1; letter-spacing: .03em; color: #c8e3ff; text-shadow: 3px 3px 0 #5e0610, 0 0 18px rgba(106, 178, 255, .45); }
.dz-seal small { font-size: 13px; font-weight: 700; color: #6ab2ff; }
.dz-seal em { margin-top: 4px; padding: 2px 12px; border-radius: 6px; font-family: var(--mono); font-size: 17px; font-style: normal; font-weight: 800; color: #5e0610; background: #6ab2ff; }
@keyframes dzSeal { from { opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(2.6); } }
@keyframes dzSealOut { to { opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(.85); } }
.dz-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; animation: dzFlash .32s 1.18s ease-in forwards; }
@keyframes dzFlash { 0% { opacity: 0; background: #fff; } 35% { opacity: .85; background: #e0efff; } 100% { opacity: 1; background: #0a111f; } }
.dz-skip { position: absolute; right: 18px; bottom: 18px; z-index: 4; padding: 8px 16px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); cursor: pointer; }
.dz-skip:hover { border-color: #fff; background: rgba(0, 0, 0, .7); }
/* ท่าเฉพาะตัว: บอลต่ำป้ายอยู่เหนือน้ำ · บอลสูงเมฆร่วงลง (รู้สึกว่ากำลังทะยาน) · เฝ้าวังป้ายเล็กลงให้เห็นมังกรขดรอบ */
.dz-under .dz-seal { top: 30%; }
.dz-under .dz-clouds i:nth-child(n+4) { display: none; }
.dz-over .dz-clouds i, .dz-over .dz-clouds i:nth-child(even) { left: calc(var(--y) * .9); right: auto; top: -20%; animation-name: dzCloudDown; }
@keyframes dzCloudDown { 0% { opacity: 0; transform: translateY(0); } 20%, 80% { opacity: .9; } 100% { opacity: 0; transform: translateY(140vh); } }
.dz-home .dz-seal { padding: 10px 20px 9px; } .dz-home .dz-seal b { font-size: clamp(26px, 4.6vw, 40px); }

/* ---------- อินโทรหน้าแรก: มังกร 4 ตัว + ศูนย์ทีเด็ด (2.5 วิ) ---------- */
.dz-splash { --c: #6ab2ff; }
.dz-splash.out { animation: dzOut .4s ease-in forwards; }
@keyframes dzOut { to { opacity: 0; } }
.dz-logo { position: absolute; left: 50%; top: 47%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; transform: translate(-50%, -50%);
  animation: dzLogo .4s .1s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes dzLogo { from { opacity: 0; transform: translate(-50%, -50%) scale(2.4); filter: blur(6px); } }
.dz-lg svg { width: clamp(64px, 11vw, 104px); height: auto; filter: drop-shadow(0 0 18px rgba(106, 178, 255, .7)); animation: dzLgSpin 1.1s ease-out both; }
@keyframes dzLgSpin { from { transform: rotate(-200deg) scale(.4); } }
.dz-logo b { font-size: clamp(40px, 8vw, 84px); font-weight: 900; line-height: 1.05; letter-spacing: .02em; color: #c8e3ff;
  background: linear-gradient(180deg, #e6f2ff 10%, #6ab2ff 55%, #1c70c9 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 #5e0610) drop-shadow(0 0 22px rgba(70, 159, 255, .55)); }
.dz-logo small { padding: 3px 14px; border: 2px solid #6ab2ff; border-radius: 999px; font-size: clamp(12px, 1.6vw, 15px); font-weight: 700; color: #a0ceff; background: rgba(120, 10, 20, .75); animation: dzUp .3s .35s both; }
@keyframes dzUp { from { opacity: 0; transform: translateY(14px); } }
.dz-four { display: flex; gap: 10px; margin-top: 4px; }
.dz-four i { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #6ab2ff; border-radius: 50%; font-size: 20px; font-style: normal; background: rgba(0, 0, 0, .55); animation: dzUp .35s both; }
.dz-four i.h { animation-delay: .45s; border-color: #6d8edb; } .dz-four i.a { animation-delay: .52s; border-color: #6bb3ff; } .dz-four i.o { animation-delay: .59s; border-color: #ff8a5b; } .dz-four i.u { animation-delay: .66s; border-color: #9bd7ff; }

/* ---------- ปุ่มสมัคร VIP บนหัวเว็บ (เด่น + ราคา) ---------- */
.vipbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px !important; overflow: hidden; border: 2px solid #8ac3ff; border-radius: 14px !important; color: #2b1400 !important;
  background: linear-gradient(135deg, #c9e3ff, #3f9cff 45%, #0b7cf5) !important; box-shadow: 0 0 0 3px rgba(63, 156, 255, .25), 0 4px 18px rgba(11, 124, 245, .55); animation: vipPulse 2.2s ease-in-out infinite; }
.vipbtn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; animation: vipShine 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes vipPulse { 50% { box-shadow: 0 0 0 5px rgba(63, 156, 255, .38), 0 6px 26px rgba(11, 124, 245, .8); } }
@keyframes vipShine { 0%, 50% { background-position: 130% 0; } 90%, 100% { background-position: -40% 0; } }
.vipbtn:hover { transform: translateY(-1px) scale(1.03); }
.vipbtn > i { font-size: 22px; font-style: normal; line-height: 1; filter: drop-shadow(0 1px 0 #fff); }
.vipbtn > span { display: flex; flex-direction: column; line-height: 1.05; } .vipbtn > span b { font-size: 15px; font-weight: 900; } .vipbtn > span small { font-size: 10px; font-weight: 700; opacity: .75; }
.vipbtn > em { display: flex; align-items: baseline; gap: 3px; padding: 4px 9px; border-radius: 10px; font-style: normal; color: #fff; background: linear-gradient(135deg, #e11d48, #9f1239); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .3); }
.vipbtn > em b { font-family: var(--mono); font-size: 20px; font-weight: 800; line-height: 1; } .vipbtn > em small { font-size: 10px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .vipbtn, .vipbtn::after { animation: none; } }
@media (max-width: 760px) { .vipbtn > span small { display: none; } .vipbtn > em b { font-size: 17px; } .auth .login { padding: 8px 10px; font-size: 13px; } }
@media (max-width: 480px) { .vipbtn { gap: 6px; padding: 4px 5px 4px 7px !important; } .vipbtn > i { font-size: 18px; } .vipbtn > span b { font-size: 13px; } .vipbtn > em { padding: 3px 7px; } .vipbtn > em b { font-size: 16px; } }
/* ตราราคาในกล่อง VIP หน้าสมัคร */
.vip-price { position: relative; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 8px; margin: 0 0 6px; padding: 16px 12px 12px; border-radius: 16px;
  background: radial-gradient(90% 120% at 50% 0%, rgba(63, 156, 255, .35), transparent 70%), linear-gradient(135deg, #7f1d1d, #3b0a0a); box-shadow: inset 0 0 0 2px #3f9cff, 0 8px 22px rgba(0, 0, 0, .45); }
.vp-tag { grid-column: 1 / -1; justify-self: center; margin-bottom: 4px; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #2b1400; background: linear-gradient(135deg, #c4e1ff, #3f9cff); }
.vip-price > b { font-family: var(--mono); font-size: clamp(56px, 9vw, 76px); font-weight: 800; line-height: 1; color: #8ac3ff; text-shadow: 0 3px 0 #7c2d12, 0 0 24px rgba(63, 156, 255, .6); }
.vp-unit { font-size: 16px; font-weight: 800; line-height: 1.15; text-align: left; color: #c8e3ff; }
.vp-day { grid-column: 1 / -1; justify-self: center; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #fca5a5; }
/* หัวเว็บบนมือถือ: แถว 1 = โลโก้ + ปุ่ม VIP/เข้าสู่ระบบ · แถว 2 = เมนู (เลื่อนข้าง) + ค้นหา · ซ่อนนาฬิกา — ไม่ให้ล้นจอ */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 8px; }
  .top .brand { order: 1; } .top .auth { order: 2; margin-left: auto; } .top .clock { display: none; }
  .top .nav { order: 3; flex: 1 1 calc(100% - 170px); min-width: 0; } .top .topsearch { order: 4; flex: 0 0 150px; }
  .top .topsearch input { width: 100%; }
}
@media (max-width: 420px) { .top .brand .tag { display: none; } .auth .login { padding: 7px 9px; } .top .brand { gap: 6px; } .top .brand svg { width: 32px; height: 32px; } .top .logo { font-size: 19px; } .top .auth { gap: 6px; } }

/* =====================================================================
   หน้าสมัคร/เข้าสู่ระบบ 0tded (แบบขั้นตอน — คนละแบบกับ tdedus): โทนกรมท่า + ทอง + สีมังกร
   ===================================================================== */
.jn { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.jn-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 22px; padding: 26px 28px; overflow: hidden;
  border: 1px solid rgba(106, 178, 255, .35); border-radius: 24px; background: radial-gradient(70% 90% at 100% 0%, rgba(70, 159, 255, .22), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(109, 142, 219, .12), transparent 60%), linear-gradient(135deg, #0f1a30, #0a111f); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.jh-k { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #0a111f; background: linear-gradient(135deg, #c4e1ff, #3f9cff); }
.jh-txt h1 { margin: 10px 0 6px; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.15; } .jh-txt h1 b { color: #6ab2ff; }
.jh-txt > p { margin: 0 0 14px; font-size: 15px; color: var(--soft); }
.jn-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jn-perks li { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1px solid rgba(106, 178, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.jn-perks li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; font-style: normal; background: rgba(106, 178, 255, .12); }
.jn-perks li span { display: flex; flex-direction: column; line-height: 1.2; } .jn-perks li b { font-size: 13px; } .jn-perks li small { display: none; }
/* ตั๋วราคา + ไพ่มังกรพัดหลัง */
.jn-ticket { position: relative; display: grid; place-items: center; min-height: 250px; }
.jn-fan { position: absolute; inset: 0; display: grid; place-items: center; }
.jn-fan img { position: absolute; width: 118px; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .55); transition: transform .4s; }
.jn-fan .f0 { transform: translate(-105px, 10px) rotate(-22deg); } .jn-fan .f1 { transform: translate(-38px, -12px) rotate(-8deg); }
.jn-fan .f2 { transform: translate(38px, -12px) rotate(8deg); } .jn-fan .f3 { transform: translate(105px, 10px) rotate(22deg); }
.jn-hero:hover .jn-fan .f0 { transform: translate(-125px, 4px) rotate(-26deg); } .jn-hero:hover .jn-fan .f3 { transform: translate(125px, 4px) rotate(26deg); }
.jt-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 14px 26px 12px; border-radius: 18px; transform: rotate(-3deg);
  background: radial-gradient(90% 120% at 50% 0%, rgba(63, 156, 255, .4), transparent 70%), linear-gradient(135deg, #8b1d1d, #3b0a0a); box-shadow: inset 0 0 0 2px #3f9cff, 0 0 0 5px rgba(10, 17, 31, .9), 0 16px 34px rgba(0, 0, 0, .6); }
.jt-card::before, .jt-card::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #0c1628; }
.jt-card::before { left: -9px; } .jt-card::after { right: -9px; }
.jt-k { font-size: 12.5px; font-weight: 800; color: #a0ceff; }
.jt-card > b { font-family: var(--mono); font-size: clamp(64px, 9vw, 88px); font-weight: 800; line-height: 1; color: #8ac3ff; text-shadow: 0 3px 0 #7c2d12, 0 0 26px rgba(63, 156, 255, .6); }
.jt-u { font-size: 16px; font-weight: 800; color: #c8e3ff; } .jt-d { margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fecaca; background: rgba(0, 0, 0, .3); }
/* 3 ขั้นตอน */
.jn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
.jn-steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.js { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line2); border-radius: 20px; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.js::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--sc); }
.js1 { --sc: #6d8edb; } .js2 { --sc: #3f9cff; } .js3 { --sc: #06c755; }
.js:not(:last-child)::after { content: "›"; position: absolute; top: 50%; right: -13px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; font-weight: 900; color: #0a111f; background: #6ab2ff; }
.js header { display: flex; align-items: center; gap: 12px; }
.jn-n { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; font-family: var(--mono); font-size: 22px; font-weight: 800; color: #0a111f; background: var(--sc); box-shadow: 0 0 16px color-mix(in srgb, var(--sc) 45%, transparent); }
.js h2 { margin: 0; font-size: 19px; } .js header small { font-size: 12.5px; color: var(--muted); }
.jn-form { display: grid; gap: 10px; }
.jn-form label { display: grid; gap: 4px; } .jn-form label span { font-size: 13px; font-weight: 700; color: var(--soft); }
.jn-form input { height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg2); }
.jn-form input:focus { outline: 2px solid var(--sc, #6ab2ff); outline-offset: 1px; border-color: transparent; }
.jn-hint { font-size: 12px; color: var(--muted); }
.jn-go { display: block; padding: 12px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 900; text-align: center; color: #0a111f; background: linear-gradient(135deg, #c4e1ff, #3f9cff 50%, #0b7cf5); box-shadow: 0 6px 18px rgba(11, 124, 245, .35); cursor: pointer; }
.jn-go:hover { filter: brightness(1.06); } .jn-go.ghost { color: var(--text); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.jn-err { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #fecaca; background: rgba(220, 38, 38, .18); border: 1px solid rgba(220, 38, 38, .45); }
.jn-alt { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; } .jn-alt a { color: #6ab2ff; font-weight: 700; } .jn-alt.small { font-size: 12px; }
.jb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); box-shadow: inset 4px 0 0 var(--bk); }
.jb-bank { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; } .jb-bank i { width: 10px; height: 10px; border-radius: 50%; background: var(--bk); box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.jb-row b { font-family: var(--mono); font-size: 17px; letter-spacing: .03em; }
.jb-name { margin: 0; font-size: 13px; color: var(--muted); } .jb-name b { color: var(--text); }
.js-note { margin: 0; font-size: 12.5px; color: var(--muted); } .js-note b { color: #6ab2ff; }
.jn-me { display: flex; justify-content: center; gap: 10px; margin-top: 16px; } .jn-me form { margin: 0; }
.jn-out { height: 100%; padding: 0 16px; border: 1px solid var(--line2); border-radius: 12px; font: inherit; font-weight: 700; color: var(--soft); background: none; cursor: pointer; }
/* เข้าสู่ระบบ: จอแบ่ง */
.jn-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 0; max-width: 980px; min-height: calc(100vh - 200px); align-items: stretch; }
.jl-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: 28px; overflow: hidden; border-radius: 24px 0 0 24px;
  background: radial-gradient(80% 70% at 50% 35%, rgba(70, 159, 255, .25), transparent 65%), linear-gradient(160deg, #13203a, #070c17); border: 1px solid rgba(106, 178, 255, .3); border-right: 0; }
.jl-art .jn-fan { inset: 0 0 30%; } .jn-fan.big img { width: 150px; }
.jl-art h2 { position: relative; margin: 0 0 6px; font-size: 30px; line-height: 1.15; } .jl-art h2 span { color: #6ab2ff; font-size: 40px; }
.jl-art p { position: relative; margin: 0; color: var(--soft); }
.jl-form { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 30px 28px; border: 1px solid rgba(106, 178, 255, .3); border-radius: 0 24px 24px 0; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.jl-form h1 { margin: 0 0 4px; font-size: 26px; }
.jl-vip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 10px 14px; border-radius: 14px; color: #c8e3ff; background: linear-gradient(135deg, #8b1d1d, #3b0a0a); box-shadow: inset 0 0 0 1.5px #3f9cff; }
.jl-vip b { font-family: var(--mono); font-size: 24px; color: #8ac3ff; } .jl-vip b small { font-family: var(--sans); font-size: 12px; color: #c8e3ff; }
@media (max-width: 900px) {
  .jn-hero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; } .jn-ticket { min-height: 220px; }
  .jn-steps, .jn-steps.two { grid-template-columns: minmax(0, 1fr); } .js:not(:last-child)::after { top: auto; bottom: -13px; right: 50%; margin: 0 -12px 0 0; transform: rotate(90deg); }
  .jn-login { grid-template-columns: minmax(0, 1fr); } .jl-art { min-height: 300px; border-radius: 24px 24px 0 0; border-right: 1px solid rgba(106, 178, 255, .3); border-bottom: 0; } .jl-form { border-radius: 0 0 24px 24px; }
}
@media (max-width: 420px) { .jn-fan img { width: 92px; } .jn-fan .f0 { transform: translate(-80px, 10px) rotate(-22deg); } .jn-fan .f3 { transform: translate(80px, 10px) rotate(22deg); } .jn-fan .f1 { transform: translate(-28px, -10px) rotate(-8deg); } .jn-fan .f2 { transform: translate(28px, -10px) rotate(8deg); } }
@media (max-width: 600px) { .jn-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .jn-perks li { padding: 6px 8px 6px 6px; } .jn-perks li i { width: 26px; height: 26px; font-size: 14px; } .jn-perks li b { font-size: 12px; } .jn-ticket { min-height: 200px; } }

/* ---------- หน้าแฟ้มคู่: สรุปง่าย (ไพ่มังกร · เต็ง · สูง) + พับข้อมูลละเอียด ---------- */
.qs { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 16px 0; }
.qp { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 18px; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.qp h2 { margin: 0; font-size: 22px; } .qp h2 small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.qf { border-top: 4px solid #38bdf8; } .qo { border-top: 4px solid #ff4d6d; }
.qp-bet { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; } .qp-bet b { font-size: 22px; } .qp-bet em { font-family: var(--mono); font-size: 20px; font-style: normal; font-weight: 800; color: #6ab2ff; }
/* แถบมั่นใจ (เต็ง) */
.qb { --tc: #6f7c9b; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.qb.t-s { --tc: #ff4d8d; } .qb.t-a { --tc: #1a89ff; } .qb.t-b { --tc: #cfd6de; } .qb.t-c { --tc: #d08b4f; }
.qb-track { position: relative; height: 26px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.qb-track i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, transparent), var(--tc)); box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 45%, transparent); }
.qb-m { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .45); font-size: 0; }
.qb-m::after { content: attr(data-l); }
.qb-track .qb-m { font-size: 10px; font-weight: 800; color: var(--muted); } .qb-track .qb-m { line-height: 0; }
.qb-v { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; } .qb-v b { font-family: var(--mono); font-size: 34px; font-weight: 800; color: var(--tc); } .qb-v small { margin-top: 4px; font-size: 12px; color: var(--soft); }
/* เกจ + เส้นประตู (สูง) */
.qo-top { display: flex; align-items: center; gap: 14px; }
.qo-g { --tc: #6f7c9b; display: flex; flex-direction: column; align-items: center; width: 120px; } .qo-g .gauge { --c: var(--tc); width: 120px; } .qo-g small { font-size: 12px; color: var(--soft); }
.qo-g.t-s { --tc: #ff4d8d; } .qo-g.t-a { --tc: #1a89ff; } .qo-g.t-b { --tc: #cfd6de; } .qo-g.t-c { --tc: #d08b4f; }
.gl { padding: 22px 6px 0; }
.gl-track { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #1e3a5f, #2f4a6e); }
.gl-over { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, rgba(255, 77, 109, .35), rgba(255, 77, 109, .75)); }
.gl-line { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; }
.gl-line em { position: absolute; bottom: 100%; left: 50%; margin-bottom: 2px; font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; color: #fff; transform: translateX(-50%); }
.gl-xg { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #fff; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 12px rgba(255, 77, 109, .8); }
.gl-xg.dn { background: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, .8); }
.gl-xg em { position: absolute; top: 100%; left: 50%; margin-top: 4px; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-style: normal; font-weight: 800; white-space: nowrap; color: #0a111f; background: #6ab2ff; transform: translateX(-50%); }
.gl-ax { position: relative; height: 16px; margin-top: 26px; } .gl-ax span { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.gl-say { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
/* เช็กลิสต์ ✓/✕ */
.qr { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.qr li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--soft); }
.qr li i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 900; }
.qr li.y i { color: #0b193a; background: #34d399; } .qr li.n i { color: #fff; background: #64748b; } .qr li.n { opacity: .75; }
/* ไพ่มังกรของคู่นี้ */
.qs-drg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.qd-fan { position: relative; width: 150px; height: 210px; margin-left: 36px; }
.qd { --tc: #4f8ccd; position: absolute; inset: 0; overflow: hidden; border: 3px solid #fff; border-radius: 12px; background: #06101a; box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 0 1.5px var(--tc); transition: transform .25s; }
.qd.t-s { --tc: #ff7eb0; } .qd.t-a { --tc: #1a89ff; } .qd.t-b { --tc: #d7dee6; } .qd.t-c { --tc: #6ca4e0; }
.qd-fan .qd:last-child { transform: rotate(4deg); } .qd-fan.n2 .qd:first-child { transform: rotate(-9deg) translate(-22px, 6px); filter: brightness(.85); }
.qd-fan.n3 .qd:first-child { transform: rotate(-14deg) translate(-34px, 10px); filter: brightness(.8); } .qd-fan.n3 .qd:nth-child(2) { transform: rotate(-4deg) translate(-14px, 4px); filter: brightness(.9); }
.qd:hover { transform: rotate(0) translateY(-6px) scale(1.04) !important; filter: none !important; z-index: 2; }
.qd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 28%, transparent 55%, rgba(0, 0, 0, .88)); }
.qd-top, .qd-conf, .qd-bot { position: absolute; z-index: 1; color: #fff; }
.qd-top { top: 6px; left: 8px; right: 8px; font-size: 12.5px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.qd-conf { top: 28px; right: 6px; display: flex; flex-direction: column; align-items: center; padding: 3px 6px; border-radius: 9px; line-height: 1; color: #06101a; background: var(--tc); }
.qd-conf b { font-family: var(--mono); font-size: 22px; font-weight: 800; } .qd-conf small { font-size: 9px; font-weight: 800; }
.qd-bot { left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 1px 3px #000; } .qd-bot b { font-size: 14px; } .qd-bot em { font-family: var(--mono); font-size: 16px; font-style: normal; font-weight: 800; color: #8ac3ff; }
.qd-cap { margin: 0; font-size: 13px; font-weight: 700; color: #6ab2ff; }
.qd.none { position: static; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 150px; height: 210px; padding: 12px; text-align: center; border: 2px dashed var(--line2); background: var(--panel); box-shadow: none; }
.qd.none::after { display: none; } .qd.none span { font-size: 40px; filter: grayscale(1); opacity: .6; } .qd.none b { color: var(--soft); } .qd.none small { font-size: 11.5px; color: var(--muted); }
/* กล่องข้อมูลละเอียด (พับไว้) */
.deep { margin-top: 6px; border: 1px solid var(--line2); border-radius: 18px; background: rgba(255, 255, 255, .02); }
.deep > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 14px 18px; list-style: none; cursor: pointer; }
.deep > summary::-webkit-details-marker { display: none; }
.deep > summary span { font-size: 17px; font-weight: 800; } .deep > summary small { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--muted); }
.deep > summary i::after { content: "เปิดดู ▾"; font-style: normal; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; color: #0a111f; background: #6ab2ff; }
.deep[open] > summary i::after { content: "พับ ▴"; }
.deep[open] > summary { border-bottom: 1px solid var(--line); }
.deep > .jump, .deep > .grid { margin: 12px; }
@media (max-width: 1000px) { .qs { grid-template-columns: minmax(0, 1fr); } .qs-drg { flex-direction: row; } }
@media (max-width: 600px) { .qp { padding: 14px; } .qp h2 { font-size: 20px; } .qb-v b { font-size: 28px; } .qo-top { flex-direction: column; align-items: flex-start; } }

/* ---------- กราฟในสรุปง่าย (หน้าแฟ้มคู่) ---------- */
.qc { padding: 12px 12px 10px; border-radius: 14px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--line); }
.qc h3 { margin: 0 0 10px; font-size: 14px; } .qc h3 small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.qc-note { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); } .qc-note b { font-family: var(--mono); color: var(--text); }
/* ตลาด vs โมเดล */
.t3 { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 6px; }
.t3-l { font-size: 12px; color: var(--soft); }
.t3-b { display: flex; gap: 2px; height: 22px; }
.t3-b i { display: grid; place-items: center; min-width: 0; font-family: var(--mono); font-size: 11px; font-style: normal; font-weight: 800; color: #06101f; }
.t3-b i:first-child { border-radius: 6px 0 0 6px; } .t3-b i:last-child { border-radius: 0 6px 6px 0; }
.t3-b .h { background: var(--home); } .t3-b .d { background: #94a3b8; } .t3-b .a { background: var(--away); }
.t3-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--soft); } .t3-key .h::first-letter { color: var(--home); } .t3-key .d::first-letter { color: #94a3b8; } .t3-key .a::first-letter { color: var(--away); }
/* กราฟผีเสื้อ */
.fly { display: grid; gap: 5px; }
.fly-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; } .fly-h .h { color: var(--home); } .fly-h .a { color: var(--away); }
.fly-r { display: grid; grid-template-columns: 58px minmax(0, 1fr) 104px minmax(0, 1fr) 58px; align-items: center; gap: 6px; }
.fly-r b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--soft); } .fly-r b:first-child { text-align: right; } .fly-r b.win { font-weight: 800; color: var(--text); }
.fly-r em { font-size: 11.5px; font-style: normal; text-align: center; color: var(--soft); } .fly-r em small { font-size: 9.5px; color: var(--muted); }
.fly-l, .fly-rr { position: relative; height: 12px; border-radius: 4px; background: var(--bg2); }
.fly-l i, .fly-rr i { position: absolute; top: 0; bottom: 0; width: var(--p); }
.fly-l i { right: 0; border-radius: 4px 0 0 4px; background: var(--home); } .fly-rr i { left: 0; border-radius: 0 4px 4px 0; background: var(--away); }
.fly-r:hover { background: rgba(255, 255, 255, .04); border-radius: 6px; }
/* ตัวเลขสั้น (สูง) */
.qn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.qn span { display: flex; flex-direction: column; padding: 7px 8px; border-radius: 10px; background: var(--bg2); }
.qn small { overflow: hidden; font-size: 10.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; } .qn b { font-family: var(--mono); font-size: 18px; } .qn b.h { color: var(--home); } .qn b.a { color: var(--away); }
/* ฮิสโตแกรมประตูรวม */
.gh { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; height: 168px; padding-top: 22px; }
.gh-c { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.gh-c small { font-family: var(--mono); font-size: 11px; color: var(--soft); }
.gh-c i { width: 100%; max-width: 38px; height: calc(var(--h) * .72); min-height: 3px; border-radius: 4px 4px 0 0; }
.gh-c.ov i { background: #ff4d6d; } .gh-c.un i { background: #60a5fa; } .gh-c.eq i { background: #94a3b8; }
.gh-c b { font-family: var(--mono); font-size: 12px; color: var(--text); }
.gh-c:hover i { filter: brightness(1.2); }
.gh-line { position: absolute; top: 0; bottom: 18px; width: 0; border-left: 2px dashed #fff; }
.gh-line em { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; color: #0a111f; background: #6ab2ff; }
/* 10 นัดล่าสุด */
.lt { display: grid; grid-template-columns: 110px minmax(0, 1fr) 38px; align-items: end; gap: 8px; margin-bottom: 8px; }
.lt-n { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .lt.h .lt-n { color: var(--home); } .lt.a .lt-n { color: var(--away); }
.lt-b { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 40px; border-bottom: 1px solid var(--line2); }
.lt-b::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--ln); border-top: 1.5px dashed rgba(255, 255, 255, .6); }
.lt-b i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; } .lt-b i.ov { background: #ff4d6d; } .lt-b i.un { background: #60a5fa; } .lt-b i.eq { background: #94a3b8; }
.lt > b { font-family: var(--mono); font-size: 15px; text-align: right; }
@media (max-width: 600px) { .fly-r { grid-template-columns: 46px minmax(0, 1fr) 84px minmax(0, 1fr) 46px; } .qn { grid-template-columns: 1fr 1fr; } .lt { grid-template-columns: 80px minmax(0, 1fr) 34px; } }

/* ---------- 🃏 การ์ดยืนยันคู่: การ์ดไพ่ (5:7) รูปมังกร + มุมดัชนี + แถบคำ · ลอยจากกลางจอฟาดลงบนสกอร์บอร์ด ---------- */
.stk-host { position: relative; }
.stk-layer { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.stk-layer[hidden] { display: none; }
.stk { --tc: #6ab2ff; position: absolute; left: 0; top: 0; width: clamp(92px, 8.4vw, 118px); aspect-ratio: 5 / 7; padding: 5px; pointer-events: auto; cursor: pointer; border: 0; border-radius: 11px; font: inherit;
  background: linear-gradient(145deg, #f6faff, #bfd6ef); transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r)); opacity: 0;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(20, 68, 120, .25); }
.stk.in { opacity: 1; }
.stk.slap { animation: stkSlap .3s ease-out; }
@keyframes stkSlap { 0% { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r)) scale(1.08); } 45% { transform: translate(var(--x, 0), var(--y, 0)) rotate(calc(var(--r) * .7)) scale(.96); } 100% { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r)) scale(1); } }
.stk:hover { z-index: 20 !important; transform: translate(var(--x, 0), calc(var(--y, 0) - 10px)) rotate(0deg) scale(1.08); transition: transform .2s; }
.stk.zoom { z-index: 30 !important; transform: translate(var(--x, 0), -30px) rotate(0deg) scale(1.6) !important; transition: transform .25s; }
.stk.fly { transition: transform .45s ease-in, opacity .45s; transform: translate(70px, -160px) rotate(50deg) scale(.6) !important; opacity: 0; }
.stk-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 7px; background: #120a14; box-shadow: 0 0 0 2px var(--tc), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.stk-art { position: absolute; inset: 0 0 34%; background-size: cover; background-position: 50% 40%; }
.stk-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 60%, rgba(18, 10, 20, 1)); }
.stk-ix { position: absolute; top: 4px; left: 4px; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 22px; padding: 2px 3px; border-radius: 6px; line-height: 1; background: rgba(246, 250, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.stk-ix i { font-size: 13px; font-style: normal; } .stk-ix em { margin-top: 1px; font-size: 7.5px; font-style: normal; font-weight: 900; color: #00152b; writing-mode: vertical-rl; }
.stk-ix.br { top: auto; left: auto; bottom: 4px; right: 4px; transform: rotate(180deg); }
.stk-band { position: absolute; left: 0; right: 0; bottom: 0; top: 60%; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 8px 6px 8px;
  text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 35%, #120a14), #120a14 70%); border-top: 2px solid var(--tc); }
.stk-band b { font-size: clamp(14px, 1.45vw, 19px); font-weight: 900; line-height: 1.05; color: #fff; text-shadow: 0 1px 0 #000, 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent); }
.stk-band small { display: -webkit-box; overflow: hidden; font-size: clamp(8.5px, .8vw, 10.5px); font-weight: 600; line-height: 1.25; color: color-mix(in srgb, var(--tc) 35%, #fff); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stk-foil { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%); background-size: 260% 100%; background-position: 140% 0; mix-blend-mode: overlay; }
.stk.in .stk-foil { animation: stkFoil 1.1s .15s ease-out both; }
@keyframes stkFoil { to { background-position: -40% 0; } }
.stk.t-gold { --tc: #0076f5; } .stk.t-red { --tc: #ff4d6d; } .stk.t-blue { --tc: #38bdf8; } .stk.t-green { --tc: #22c55e; } .stk.t-purple { --tc: #c084fc; } .stk.t-gray { --tc: #94a3b8; } .stk.t-drg { --tc: #ff7a45; }
.stk.t-drg { background: linear-gradient(145deg, #c4e1ff, #3f9cff 60%, #2680e0); }
.stk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: var(--soft); }
.stk-bar b { color: #6ab2ff; }
.stk-bar button { padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--bg2); cursor: pointer; }
.stk-bar button:hover { border-color: #6ab2ff; }
@media (max-width: 600px) { .stk { width: 84px; padding: 4px; } .stk-band small { display: none; } .stk-band b { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .stk.slap, .stk.in .stk-foil { animation: none; } }

/* ---------- 🃏 โต๊ะไพ่: สักหลาดเขียว ช่องวาง 4 ช่อง (เต็ง: เจ้าบ้าน/ทีมเยือน · สูง/ต่ำ) + กองไพ่กลางโต๊ะ ---------- */
.ctab { position: relative; margin: 16px 0; padding: 16px 18px 14px; border-radius: 26px; border: 3px solid #2a6fb8;
  background: radial-gradient(90% 80% at 50% 45%, #2951ae, #183068 70%, #11224a); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .25), inset 0 0 60px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .5); }
.ctab::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(106, 178, 255, .35); border-radius: 18px; pointer-events: none; }
.ctab-h { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.ctab-h h2 { margin: 0; font-size: 22px; color: #a0ceff; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); } .ctab-h small { color: rgba(210, 232, 255, .7); font-size: 12.5px; }
.ctab-re { margin-left: auto; padding: 4px 14px; border: 1px solid rgba(106, 178, 255, .6); border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; color: #a0ceff; background: rgba(0, 0, 0, .3); cursor: pointer; }
.ct-row { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.ct-rn { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: rgba(160, 206, 255, .75); }
.ct-slot { --zc: #6ab2ff; position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 206px; padding: 14px 12px 10px; border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--zc) 55%, transparent); background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 20px rgba(0, 0, 0, .25); transition: box-shadow .3s, border-color .3s; }
.ct-slot.z-home { --zc: #38bdf8; } .ct-slot.z-away { --zc: #fb923c; } .ct-slot.z-over { --zc: #ff4d6d; } .ct-slot.z-under { --zc: #7dd3fc; }
.ct-slot.hot { border-color: var(--zc); box-shadow: inset 0 0 26px color-mix(in srgb, var(--zc) 30%, transparent), 0 0 22px color-mix(in srgb, var(--zc) 45%, transparent); }
.ct-slot.hot::after { content: "ไพ่ชี้ทางนี้"; position: absolute; top: -11px; right: 14px; padding: 1px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #0a111f; background: var(--zc); }
.ct-lb { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ct-lb i { font-size: 30px; font-style: normal; line-height: 1; } .ct-lb b { font-size: 20px; font-weight: 900; color: #fff; } .ct-lb small { max-width: 110px; overflow: hidden; font-size: 11.5px; color: rgba(210, 232, 255, .75); text-overflow: ellipsis; white-space: nowrap; }
.ct-lb em { margin-top: 4px; padding: 1px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-style: normal; font-weight: 800; color: #0a111f; background: var(--zc); }
.ct-pile { position: relative; height: 180px; margin-top: 8px; }
.ct-empty { position: absolute; left: 0; top: 50%; display: grid; place-items: center; width: clamp(92px, 8.4vw, 118px); aspect-ratio: 5 / 7; margin-top: calc(clamp(92px, 8.4vw, 118px) * -0.7); border: 2px dashed rgba(210, 232, 255, .35);
  border-radius: 11px; font-size: 11.5px; line-height: 1.4; text-align: center; color: rgba(210, 232, 255, .45); }
.ct-slot.has .ct-empty { display: none; }
.ct-pile .stk { top: 50%; margin-top: calc(clamp(92px, 8.4vw, 118px) * -0.7); }
.ct-deck { position: absolute; left: 50%; top: 50%; width: 60px; aspect-ratio: 5 / 7; margin: -42px 0 0 -30px; pointer-events: none; opacity: .9; }
.ct-deck i { position: absolute; inset: 0; border-radius: 7px; border: 2px solid #fff; background: repeating-linear-gradient(45deg, #8b1d1d 0 6px, #6b1414 6px 12px); box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.ct-deck i:nth-child(2) { transform: translate(2px, -2px); } .ct-deck i:nth-child(3) { transform: translate(4px, -4px); }
.ct-deck i:nth-child(3)::after { content: "🐉"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.ct-call { position: relative; margin: 2px 0 0; padding-left: 40px; font-size: 16px; font-weight: 700; color: #d2e8ff; }
.ct-call b { padding: 2px 12px; border-radius: 999px; color: #0a111f; } .ct-call b.z-home { background: #38bdf8; } .ct-call b.z-away { background: #fb923c; } .ct-call b.z-over { background: #ff4d6d; color: #fff; } .ct-call b.z-under { background: #7dd3fc; }
.ct-call span { color: rgba(210, 232, 255, .6); font-weight: 400; }
@media (max-width: 900px) {
  .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ct-rn { grid-column: 1 / -1; writing-mode: horizontal-tb; transform: none; justify-self: start; }
  .ct-slot { grid-template-columns: minmax(0, 1fr); min-height: 0; } .ct-pile { height: 150px; } .ct-call { padding-left: 0; } .ct-deck { display: none; }
}
@media (max-width: 600px) { .ctab { padding: 12px; } .ct-row { gap: 8px; } .ct-slot { padding: 8px; } .ct-lb i { font-size: 22px; } .ct-lb b { font-size: 16px; } .ct-pile { height: 130px; }
  .ct-pile .stk, .ct-empty { width: 76px; margin-top: -53px; } }
/* ---------- โต๊ะไพ่: ผ้าปูโต๊ะสีฟ้าอ่อนเกือบขาว (ลายทอ + รอยพับ + ขอบเย็บ) บนโต๊ะไม้ · สองฝั่งแยกด้วยตะเข็บกลาง ---------- */
.ctab { margin: 22px 8px; padding: 20px 22px 16px; border: 0; border-radius: 22px;
  background:
    linear-gradient(104deg, transparent 22%, rgba(70, 100, 135, .07) 30%, transparent 38%),
    linear-gradient(82deg, transparent 58%, rgba(70, 100, 135, .06) 66%, rgba(255, 255, 255, .35) 69%, transparent 76%),
    radial-gradient(70% 60% at 35% 25%, rgba(255, 255, 255, .7), transparent 70%),
    repeating-linear-gradient(0deg, rgba(40, 70, 100, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(40, 70, 100, .04) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #eef4fa, #dde8f2 60%, #d3e0ec);
  box-shadow: 0 0 0 10px #7a4d27, 0 0 0 11px #5a3518, 0 0 0 14px #3c699a, 0 18px 40px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -8px 18px rgba(60, 90, 120, .15); }
.ctab::before { inset: 9px; border: 1.5px dashed rgba(70, 105, 145, .45); border-radius: 15px; }
.ctab-h h2 { color: #1e2d42; text-shadow: none; } .ctab-h small { color: #4d6079; }
.ctab-re { border-color: #7a93b0; color: #1e2d42; background: rgba(255, 255, 255, .6); }
.ct-rn { color: #5a6f8a; }
.ct-row::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: calc(28px + 12px + (100% - 40px) / 2); border-left: 2px dashed rgba(70, 105, 145, .4); }
.ct-slot { border: 2.5px solid color-mix(in srgb, var(--zc) 70%, #3b5470); background: color-mix(in srgb, var(--zc) 7%, rgba(255, 255, 255, .45)); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5), inset 0 2px 8px rgba(40, 70, 100, .12); }
.ct-slot.z-home { --zc: #1e88c7; } .ct-slot.z-away { --zc: #e8732c; } .ct-slot.z-over { --zc: #e03a58; } .ct-slot.z-under { --zc: #3b8fd4; }
.ct-slot.hot { border-color: var(--zc); background: color-mix(in srgb, var(--zc) 13%, rgba(255, 255, 255, .5)); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .55), 0 0 0 3px color-mix(in srgb, var(--zc) 30%, transparent), 0 6px 16px rgba(40, 70, 100, .2); }
.ct-slot.hot::after { color: #fff; }
.ct-lb b { color: #1e2d42; } .ct-lb small { color: #4d6079; } .ct-lb em { color: #fff; }
.ct-empty { border-color: rgba(60, 90, 125, .35); color: rgba(45, 70, 100, .55); background: rgba(255, 255, 255, .25); }
.ct-deck i { border-color: #fff; box-shadow: 0 4px 10px rgba(30, 45, 66, .45); }
.ct-call { color: #1e2d42; } .ct-call span { color: #6b7f99; }
.ctab .stk { box-shadow: 0 10px 18px rgba(30, 45, 66, .35), 0 2px 3px rgba(30, 45, 66, .3), inset 0 0 0 1px rgba(20, 68, 120, .25); }
@media (max-width: 900px) { .ct-row::after { top: 30px; left: 50%; } }
/* ---------- โต๊ะไพ่ v2: เนื้อผ้าจริง (เกรนทอ + รอยยับ + ขอบชายผ้า) · ขอบโต๊ะไม้มีลายไม้ · ลายพิมพ์บนผ้า · เหรียญ VS กลางตะเข็บ · เงาไพ่ตกบนผ้า ---------- */
.ctab { border: 14px solid transparent; border-radius: 28px; margin: 24px 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .18 0 0 0 0 .28 0 0 0 0 .42 0 0 0 .1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") padding-box,
    linear-gradient(112deg, transparent 18%, rgba(60, 95, 130, .09) 24%, rgba(255, 255, 255, .5) 26.5%, transparent 33%) padding-box,
    linear-gradient(72deg, transparent 55%, rgba(60, 95, 130, .08) 63%, rgba(255, 255, 255, .45) 65.5%, transparent 72%) padding-box,
    linear-gradient(170deg, transparent 70%, rgba(60, 95, 130, .07) 80%, transparent 90%) padding-box,
    radial-gradient(60% 55% at 30% 20%, rgba(255, 255, 255, .75), transparent 70%) padding-box,
    repeating-linear-gradient(0deg, rgba(40, 70, 100, .05) 0 1px, transparent 1px 3px) padding-box,
    repeating-linear-gradient(90deg, rgba(40, 70, 100, .045) 0 1px, transparent 1px 3px) padding-box,
    linear-gradient(160deg, #f1f6fb, #e0eaf4 55%, #d2dfeb) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 30%, rgba(0, 0, 0, .3)) border-box,
    repeating-linear-gradient(88deg, #7c4f28 0 6px, #6c421f 6px 8px, #2f5b8a 8px 15px, #74482a 15px 19px) border-box;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 0 26px rgba(50, 80, 115, .22), inset 0 3px 0 rgba(255, 255, 255, .9); }
.ctab::before { inset: 8px; border: 1.5px dashed rgba(60, 95, 135, .5); border-radius: 14px; }
.ct-row::after { border-left: 2px dashed rgba(60, 95, 135, .45); }
.ct-row::before { content: attr(data-mid); position: absolute; z-index: 2; top: 50%; left: calc(28px + 12px + (100% - 40px) / 2); display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; font-size: 13px; font-weight: 900; color: #1e2d42; background: radial-gradient(circle at 35% 30%, #ffffff, #dde7f1); box-shadow: 0 0 0 2px #7a93b0, 0 0 0 5px rgba(255, 255, 255, .7), 0 3px 8px rgba(30, 45, 66, .25); }
.ct-slot { overflow: visible; background: color-mix(in srgb, var(--zc) 6%, rgba(255, 255, 255, .35)); border-style: solid; border-width: 2.5px; border-radius: 18px; }
.ct-slot::before { content: attr(data-ic); position: absolute; right: 14px; bottom: -6px; font-size: 118px; line-height: 1; opacity: .09; filter: grayscale(.4); pointer-events: none; }
.ct-slot.hot { background: color-mix(in srgb, var(--zc) 12%, rgba(255, 255, 255, .45)); }
.ct-lb { position: relative; z-index: 1; } .ct-lb b { font-size: 22px; letter-spacing: .01em; } .ct-lb small { font-weight: 700; }
.ct-empty { box-shadow: inset 0 0 12px rgba(40, 70, 100, .08); }
.ctab .stk { filter: drop-shadow(0 9px 10px rgba(30, 45, 66, .32)); box-shadow: 0 1px 2px rgba(30, 45, 66, .35), inset 0 0 0 1px rgba(20, 68, 120, .25); }
.ctab .stk.slap { animation: stkSlap .3s ease-out, clothPress .45s ease-out; }
@keyframes clothPress { 0% { filter: drop-shadow(0 18px 16px rgba(30, 45, 66, .2)); } 100% { filter: drop-shadow(0 9px 10px rgba(30, 45, 66, .32)); } }
.ct-deck { width: 58px; margin: -41px 0 0 -29px; } .ct-deck i { border-radius: 6px; }
@media (max-width: 900px) { .ct-row::before { top: calc(50% + 12px); left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 11px; } .ctab { border-width: 10px; } .ct-slot::before { font-size: 80px; } }
.ct-slot.hot::after { left: 50%; right: auto; transform: translateX(-50%); box-shadow: 0 2px 6px rgba(30, 45, 66, .25); }
.ct-slot { grid-template-columns: 138px minmax(0, 1fr); } .ct-lb small { max-width: 134px; white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 900px) { .ct-slot { grid-template-columns: minmax(0, 1fr); } }

/* ---------- การ์ดเสริมทีม (บนสกอร์บอร์ดใต้ชื่อทีม) + โต๊ะ สูง/ต่ำ แบบเลือกง่าย ---------- */
.sb-t { min-width: 0; }
.ct-slot.tp { display: block; width: 100%; min-height: 0; margin-top: 10px; padding: 8px 10px 4px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--zc) 45%, transparent); background: rgba(0, 0, 0, .18); box-shadow: none; }
.ct-slot.tp::before { display: none; }
.ct-slot.tp.hot { border-color: var(--zc); box-shadow: 0 0 18px color-mix(in srgb, var(--zc) 40%, transparent); background: color-mix(in srgb, var(--zc) 10%, rgba(0, 0, 0, .18)); }
.ct-slot.tp.hot::after { content: "ไพ่ชี้ทีมนี้"; }
.tp-h { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12.5px; color: var(--soft); }
.tp-h b { max-width: 140px; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.tp-h em { padding: 0 8px; border-radius: 999px; font-family: var(--mono); font-style: normal; font-weight: 800; color: #0a111f; background: var(--zc); }
.ct-slot.tp .ct-pile { height: 176px; margin-top: 6px; }
.ct-slot.tp .ct-empty { left: 50%; margin-left: calc(clamp(92px, 8.4vw, 118px) / -2); border-color: rgba(255, 255, 255, .2); color: var(--muted); background: none; }
.sb-mid { position: relative; }
.tp-call { margin: 10px 0 0; font-size: 14px; font-weight: 700; } .tp-call b { padding: 1px 10px; border-radius: 999px; color: #0a111f; } .tp-call b.z-home { background: #38bdf8; } .tp-call b.z-away { background: #fb923c; } .tp-call small { color: var(--muted); font-family: var(--mono); }
.tp-deck { position: relative; width: 46px; height: 64px; margin: 10px auto 0; }
.tp-deck i { position: absolute; inset: 0; border: 2px solid #fff; border-radius: 6px; background: repeating-linear-gradient(45deg, #8b1d1d 0 5px, #6b1414 5px 10px); box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.tp-deck i:nth-child(2) { transform: translate(2px, -2px); } .tp-deck i:nth-child(3) { transform: translate(4px, -4px); }
/* โต๊ะ สูง/ต่ำ */
.ctab.ou .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ctab.ou .ct-row::before, .ctab.ou .ct-row::after { left: 50%; }
.ctab.ou .ct-rn { display: none; }
.ctab-h small b { color: #1e2d42; }
.ou-num { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: 12px; color: #4d6079; } .ou-num b { font-family: var(--mono); color: #1e2d42; }
.ou-tug { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 4px 6px 10px; font-weight: 800; color: #1e2d42; }
.ou-tug b { font-family: var(--mono); font-size: 20px; }
.ot-bar { position: relative; display: flex; height: 16px; border-radius: 999px; overflow: visible; box-shadow: inset 0 0 0 1px rgba(30, 45, 66, .2); }
.ot-bar i.ov { border-radius: 999px 0 0 999px; background: linear-gradient(90deg, #ff4d6d, #ff8a9e); } .ot-bar i.un { border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #9ad0f5, #3b8fd4); }
.ot-bar em { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid #fff; border-radius: 50%; background: #1e2d42; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ou-verdict { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 6px 4px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 2px rgba(30, 45, 66, .12); }
.ou-verdict b { font-size: 26px; font-weight: 900; color: #1e2d42; } .ou-verdict small { font-size: 14px; color: #4d6079; }
.ou-verdict.v-over { background: rgba(255, 77, 109, .14); box-shadow: inset 0 0 0 2px rgba(255, 77, 109, .5); } .ou-verdict.v-over b { color: #c81e3c; }
.ou-verdict.v-under { background: rgba(59, 143, 212, .14); box-shadow: inset 0 0 0 2px rgba(59, 143, 212, .5); } .ou-verdict.v-under b { color: #1d6fb3; }
.ctab.ou .ct-deck { top: 38%; }
@media (max-width: 900px) { .ct-slot.tp .ct-pile { height: 140px; } .ctab.ou .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ou-verdict b { font-size: 21px; } }
@media (max-width: 600px) { .tp-h { font-size: 11px; } .tp-h b { max-width: 90px; } .ct-slot.tp .ct-pile { height: 118px; } .ct-slot.tp .ct-empty { margin-left: -38px; } }
.ctab.ou .ct-deck { top: 22px; left: auto; right: 140px; margin: 0; width: 40px; }
.ctab.ou .ct-slot { grid-template-columns: 170px minmax(0, 1fr); } .ctab.ou .ct-lb small { max-width: 166px; }
@media (max-width: 900px) { .ctab.ou .ct-slot { grid-template-columns: minmax(0, 1fr); } .ctab.ou .ct-deck { display: none; } }

/* ---------- โหมดดูรายการ: ซ่อนหมวดทีเด็ด + แถบ 👑 ทีเด็ด VIP เด้งขึ้นแทน ---------- */
body.lab-filtered .z1 { display: none; }
.vip-pop { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; padding: 14px 18px; overflow: hidden; border-radius: 18px; scroll-margin-top: 80px;
  color: #c8e3ff; background: radial-gradient(90% 140% at 0% 0%, rgba(63, 156, 255, .35), transparent 60%), linear-gradient(120deg, #7f1d1d, #3b0a0a 70%);
  box-shadow: inset 0 0 0 2px #3f9cff, 0 10px 26px rgba(0, 0, 0, .45); animation: vppIn .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.vip-pop[hidden] { display: none; }
.vip-pop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); background-size: 250% 100%; animation: vipShine 3s ease-in-out infinite; pointer-events: none; }
@keyframes vppIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.vpp-crown { font-size: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); animation: vppBob 1.8s ease-in-out infinite; }
@keyframes vppBob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.vpp-t { display: flex; flex-direction: column; flex: 1; min-width: 200px; line-height: 1.25; } .vpp-t b { font-size: 22px; font-weight: 900; color: #8ac3ff; } .vpp-t small { font-size: 13px; color: #fecaca; }
.vpp-go { position: relative; z-index: 1; padding: 10px 18px; border-radius: 12px; font-weight: 900; color: #2b1400; background: linear-gradient(135deg, #c9e3ff, #3f9cff 45%, #0b7cf5); box-shadow: 0 4px 14px rgba(11, 124, 245, .5); white-space: nowrap; }
.vpp-go b { font-family: var(--mono); font-size: 20px; }
.vpp-back { position: relative; z-index: 1; padding: 8px 14px; border: 1px solid rgba(160, 206, 255, .5); border-radius: 12px; font: inherit; font-size: 13px; font-weight: 700; color: #a0ceff; background: rgba(0, 0, 0, .25); cursor: pointer; }
.z3h { scroll-margin-top: 80px; }
@media (max-width: 600px) { .vpp-t b { font-size: 18px; } .vpp-go, .vpp-back { flex: 1; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .vip-pop, .vpp-crown, .vip-pop::after { animation: none; } }

/* การ์ดเป็นแถว (ตำแหน่งจาก lab.js) + ย่อส่วนกลางสกอร์บอร์ดให้กองการ์ดทีมกว้างขึ้น */
.ct-pile .stk { top: 0; margin-top: 0; }
.ct-pile { transition: height .25s ease; }
.ct-pile .ct-empty { top: 0; margin-top: 0; }
.ct-slot.tp .ct-pile { height: auto; min-height: 176px; }
.sb-teams { grid-template-columns: minmax(0, 1.35fr) minmax(210px, .7fr) minmax(0, 1.35fr); align-items: start; }
.sb-mid { padding-top: 20px; } .sb-mid .big-p b { font-size: clamp(30px, 3.2vw, 44px); } .sb-mid .th-strip, .sb-mid .tha { font-size: 12.5px; }
@media (max-width: 900px) { .sb-teams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sb-mid { padding-top: 0; } .ct-slot.tp .ct-pile { min-height: 140px; } }
@media (max-width: 600px) { .ct-slot.tp .ct-pile { min-height: 118px; } }
/* กองการ์ดทีม: การ์ดเล็กลงนิดให้ 5 ใบเรียงได้ไม่ทับกัน อ่านคำได้ครบ */
.ct-slot.tp .stk, .ct-slot.tp .ct-empty { width: clamp(80px, 6.3vw, 98px); }
.ct-slot.tp .stk-band b { font-size: clamp(12px, 1.05vw, 15px); } .ct-slot.tp .stk-band small { font-size: clamp(8px, .7vw, 9.5px); }
@media (max-width: 600px) { .ct-slot.tp .stk, .ct-slot.tp .ct-empty { width: 74px; } }
.ct-slot.tp .stk-ix.br { display: none; }   /* การ์ดเล็กในกองทีม: เอาดัชนีมุมล่างออก ไม่ให้บังคำ */
.ct-slot.tp .stk-band { padding: 3px 4px 5px; }

/* ---------- ชื่อทีมแบบหน้าปกนิตยสาร (สกอร์บอร์ดหน้าแฟ้มคู่) ---------- */
.sb-t { --tcol: #38bdf8; } .sb-t.a { --tcol: #fb923c; }
.sb-logo { position: relative; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tcol) 28%, transparent), transparent 70%); }
.sb-logo::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid var(--tcol); box-shadow: 0 0 22px color-mix(in srgb, var(--tcol) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--tcol) 30%, transparent); }
.sb-logo .bd.xl { position: relative; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.sb-logo .bd.flag.xl { width: 92px; height: 62px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.sb-name { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 8px 6px 10px; overflow: hidden; isolation: isolate; }
.sb-name::before { content: attr(data-ghost); position: absolute; left: 50%; top: 50%; z-index: -1; width: 160%; font-family: "Kanit", var(--sans); font-size: clamp(56px, 6.2vw, 104px); font-style: italic; font-weight: 900;
  line-height: .85; text-align: center; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--tcol) 30%, transparent); transform: translate(-50%, -50%) rotate(-4deg); opacity: .9; }
.sb-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .22em; color: var(--tcol); }
.sb-kick::before, .sb-kick::after { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }
.sb-t .sb-name b { display: inline; padding: 0 .28em; font-family: "Kanit", var(--sans); font-size: clamp(30px, 3.4vw, 50px); font-style: italic; font-weight: 800; line-height: 1.12;
  letter-spacing: -.005em; text-transform: uppercase; color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--tcol) 75%, transparent) 58%, color-mix(in srgb, var(--tcol) 75%, transparent) 90%, transparent 90%);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .55), 0 0 18px color-mix(in srgb, var(--tcol) 35%, transparent); }
.sb-name.mid b { font-size: clamp(26px, 2.8vw, 42px); } .sb-name.long b { font-size: clamp(22px, 2.3vw, 34px); }
.sb-t.nopic .sb-name { padding: 22px 6px 16px; } .sb-t.nopic .sb-name b { font-size: clamp(34px, 3.9vw, 58px); }
.sb-t.nopic .sb-name.mid b { font-size: clamp(28px, 3.1vw, 46px); } .sb-t.nopic .sb-name.long b { font-size: clamp(24px, 2.6vw, 38px); }
.sb-t.nopic .sb-name::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--tcol), transparent); }
.sb-t > small { font-size: 12.5px; color: var(--soft); }
@media (max-width: 900px) { .sb-logo { width: 88px; height: 88px; } .sb-logo .bd.xl { width: 62px; height: 62px; } .sb-logo .bd.flag.xl { width: 70px; height: 47px; }
  .sb-t .sb-name b, .sb-t.nopic .sb-name b { font-size: 24px; } .sb-name.mid b, .sb-t.nopic .sb-name.mid b { font-size: 20px; } .sb-name.long b, .sb-t.nopic .sb-name.long b { font-size: 17px; }
  .sb-name::before { font-size: 54px; } .sb-kick { font-size: 9.5px; letter-spacing: .14em; } .sb-kick::before, .sb-kick::after { width: 12px; } }
/* การ์ดที่ถูกย่อให้พอดี 2 แถว: เหลือคำหลักอย่างเดียว */
.stk.tiny { padding: 3px; border-radius: 8px; } .stk.tiny .stk-in { border-radius: 5px; }
.stk.tiny .stk-band small, .stk.tiny .stk-ix.br { display: none; }
.stk.tiny .stk-band { top: 58%; padding: 2px 3px 4px; } .stk.tiny .stk-band b { font-size: 10.5px !important; }
.stk.tiny .stk-ix { top: 2px; left: 2px; min-width: 16px; padding: 1px 2px; } .stk.tiny .stk-ix i { font-size: 10px; } .stk.tiny .stk-ix em { display: none; }

/* ---------- สกอร์บอร์ดแผ่นเดียว: ทีม + การ์ดเสริมทีม + ป้ายในกลาง + เลือกสูง/ต่ำ (สไตล์เดียวกัน โทนมืดทอง) ---------- */
.sb-dna.in-mid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; }
.sb-dna.in-mid .dna { font-size: 11.5px; }
.ctab.ou.in-sb { margin: 16px 0 4px; padding: 14px 16px 12px; border: 2px solid rgba(106, 178, 255, .28); border-radius: 18px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 30px rgba(0, 0, 0, .25); }
.ctab.ou.in-sb::before { display: none; }
.ctab.ou.in-sb .ctab-h h2 { color: #a0ceff; font-size: 20px; } .ctab.ou.in-sb .ctab-h small { color: var(--soft); } .ctab.ou.in-sb .ctab-h small b { color: #6ab2ff; }
.ctab.ou.in-sb .ctab-re { border-color: rgba(106, 178, 255, .5); color: #a0ceff; background: rgba(0, 0, 0, .3); }
.ctab.ou.in-sb .ct-row::after { border-left-color: rgba(106, 178, 255, .3); }
.ctab.ou.in-sb .ct-row::before { color: #a0ceff; background: radial-gradient(circle at 35% 30%, #2a3a52, #111c31); box-shadow: 0 0 0 2px rgba(106, 178, 255, .55), 0 3px 8px rgba(0, 0, 0, .5); }
.ctab.ou.in-sb .ct-slot { border: 2px solid color-mix(in srgb, var(--zc) 45%, transparent); background: rgba(0, 0, 0, .18); box-shadow: none; }
.ctab.ou.in-sb .ct-slot.z-over { --zc: #ff4d6d; } .ctab.ou.in-sb .ct-slot.z-under { --zc: #38bdf8; }
.ctab.ou.in-sb .ct-slot.hot { border-color: var(--zc); background: color-mix(in srgb, var(--zc) 10%, rgba(0, 0, 0, .18)); box-shadow: 0 0 18px color-mix(in srgb, var(--zc) 40%, transparent); }
.ctab.ou.in-sb .ct-slot::before { opacity: .07; }
.ctab.ou.in-sb .ct-lb b { color: #fff; } .ctab.ou.in-sb .ct-lb small, .ctab.ou.in-sb .ou-num { color: var(--soft); } .ctab.ou.in-sb .ou-num b { color: #6ab2ff; }
.ctab.ou.in-sb .ct-empty { border-color: rgba(255, 255, 255, .2); color: var(--muted); background: none; box-shadow: none; }
.ctab.ou.in-sb .ou-tug { color: var(--text); }
.ctab.ou.in-sb .ot-bar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); } .ctab.ou.in-sb .ot-bar em { border-color: #a0ceff; background: #0a111f; }
.ctab.ou.in-sb .ou-verdict { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px rgba(106, 178, 255, .25); }
.ctab.ou.in-sb .ou-verdict b { color: #a0ceff; } .ctab.ou.in-sb .ou-verdict small { color: var(--soft); }
.ctab.ou.in-sb .ou-verdict.v-over { background: rgba(255, 77, 109, .12); box-shadow: inset 0 0 0 2px rgba(255, 77, 109, .55); } .ctab.ou.in-sb .ou-verdict.v-over b { color: #ff8a9e; }
.ctab.ou.in-sb .ou-verdict.v-under { background: rgba(56, 189, 248, .12); box-shadow: inset 0 0 0 2px rgba(56, 189, 248, .55); } .ctab.ou.in-sb .ou-verdict.v-under b { color: #7dd3fc; }
.ctab.ou.in-sb .stk { filter: none; box-shadow: 0 10px 20px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(20, 68, 120, .25); }
.ctab.ou.in-sb .ct-slot.hot::after { color: #0a111f; }
.sb-dna.in-mid .dnas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* ---------- 🏆 เต็งในสกอร์บอร์ด: แนวนอน 3 ช่อง สไตล์เดียวกับเลือกสูง/ต่ำ ---------- */
.ctab.fv.in-sb { margin: 16px 0 0; padding: 14px 16px 14px; border: 2px solid rgba(106, 178, 255, .28); border-radius: 18px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 30px rgba(0, 0, 0, .25); }
.ctab.fv.in-sb::before { display: none; }
.ctab.fv.in-sb .ctab-h h2 { color: #a0ceff; font-size: 20px; } .ctab.fv.in-sb .ctab-h small { color: var(--soft); }
.fv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, 1.3fr); gap: 12px; align-items: stretch; }
.fv-col { min-width: 0; }
.fv-a { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--line); }
.fv-a .qp-bet b { font-size: 20px; } .fv-a .qb-v b { font-size: 30px; }
.fv-grid .qc { margin: 0; }
.tp-h b { margin-left: 4px; color: #fff; }
.qs { grid-template-columns: 210px minmax(0, 1fr); }
@media (max-width: 1100px) { .fv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fv-grid .fv-col:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .fv-grid { grid-template-columns: minmax(0, 1fr); } .qs { grid-template-columns: minmax(0, 1fr); } }

/* แถวการ์ดเสริมเต็ง (ใต้สรุปเต็ง) — คอลัมน์เดียวกับหัวทีมด้านบน */
.tp-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(210px, .7fr) minmax(0, 1.35fr); gap: 14px; align-items: start; margin-top: 16px; }
.tp-row .ct-slot.tp { margin-top: 0; }
.tp-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 14px; text-align: center; }
.tp-mid .tp-call { margin: 0; } .tp-mid .tp-deck { margin: 4px auto; } .tp-mid .sb-dna.in-mid { margin: 0; }
@media (max-width: 900px) { .tp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tp-mid { grid-column: 1 / -1; order: -1; padding-top: 0; } .tp-mid .tp-deck { display: none; } }

/* ---------- 🔥 สูง/ต่ำ แผ่นเดียว: มิเตอร์ประตู (ลูกบอลวิ่งไปที่คาด) + การ์ด + กราฟ ---------- */
.gm { display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; align-items: center; gap: 16px; margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255, 138, 61, .12), transparent 70%), rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(106, 178, 255, .18); }
.gm-g { --tc: #6f7c9b; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.gm-g.t-s { --tc: #ff4d8d; } .gm-g.t-a { --tc: #1a89ff; } .gm-g.t-b { --tc: #cfd6de; } .gm-g.t-c { --tc: #d08b4f; }
.gm-g .gauge { --c: var(--tc); width: 130px; } .gm-g small { font-size: 12px; font-weight: 700; color: var(--soft); }
.gm-bet { margin: 4px 0 0; font-size: 15px; } .gm-bet em { font-family: var(--mono); font-style: normal; font-weight: 800; color: #6ab2ff; }
.gm-meter { position: relative; min-width: 0; }
.gm-say { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; }
.gm-say b { font-family: var(--mono); font-size: 44px; font-weight: 800; line-height: 1; } .gm-say.up b { color: #ff6b81; text-shadow: 0 0 18px rgba(255, 77, 109, .5); } .gm-say.dn b { color: #7dd3fc; text-shadow: 0 0 18px rgba(56, 189, 248, .5); }
.gm-say small { font-size: 13px; color: var(--muted); } .gm-say em { margin-left: auto; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-style: normal; font-weight: 800; }
.gm-say.up em { color: #fff; background: linear-gradient(135deg, #ff4d6d, #ff8a3d); } .gm-say.dn em { color: #06101f; background: linear-gradient(135deg, #7dd3fc, #38bdf8); }
.gm-track { position: relative; height: 34px; border-radius: 999px; overflow: visible;
  background: linear-gradient(90deg, #1d4ed8 0, #60a5fa calc(var(--ln) - .5%), #fff calc(var(--ln) - .5%), #fff calc(var(--ln) + .5%), #ff8a3d calc(var(--ln) + .5%), #ff2d55 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 255, 255, .1); }
.gm-track::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 20px); opacity: .5; }
.gm-zone { position: absolute; top: 50%; z-index: 1; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); transform: translateY(-50%); }
.gm-zone.un { left: 12px; } .gm-zone.ov { right: 12px; }
.gm-line { position: absolute; top: -10px; bottom: -10px; left: var(--ln); z-index: 2; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.gm-line em { position: absolute; top: -20px; left: 50%; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; color: #0a111f; background: #6ab2ff; transform: translateX(-50%); }
.gm-ball { position: absolute; top: 50%; left: 0; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; font-size: 30px; line-height: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 55%, transparent 58%); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55)); transition: left 1.4s cubic-bezier(.25, .8, .3, 1.05); }
.ctab.ou.go .gm-ball { left: var(--to); animation: gmRoll 1.4s cubic-bezier(.25, .8, .3, 1.05); }
@keyframes gmRoll { from { transform: rotate(-720deg); } }
.gm-ax { position: relative; height: 16px; margin-top: 12px; } .gm-ax span { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.gm-n { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gm-n span { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.gm-n small { overflow: hidden; font-size: 10.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; } .gm-n b { font-family: var(--mono); font-size: 20px; } .gm-n b.h { color: var(--home); } .gm-n b.a { color: var(--away); }
.gm-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.gm-bottom .qc { margin: 0; } .gm-bottom .qr { margin-top: 10px; }
/* แท่งกราฟโตขึ้นตอนเข้าจอ */
.ctab.ou .gh-c i { transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.ctab.ou.go .gh-c i { transform: scaleY(1); }
.ctab.ou.go .gh-c:nth-child(2) i { transition-delay: .06s; } .ctab.ou.go .gh-c:nth-child(3) i { transition-delay: .12s; } .ctab.ou.go .gh-c:nth-child(4) i { transition-delay: .18s; }
.ctab.ou.go .gh-c:nth-child(5) i { transition-delay: .24s; } .ctab.ou.go .gh-c:nth-child(6) i { transition-delay: .3s; } .ctab.ou.go .gh-c:nth-child(7) i { transition-delay: .36s; }
.ctab.ou .lt-b i { transform: scaleY(0); transform-origin: bottom; transition: transform .6s ease-out .3s; } .ctab.ou.go .lt-b i { transform: scaleY(1); }
/* คำตัดสิน: ไฟลุก / น้ำแข็ง */
.ctab.ou .ou-verdict.v-over b { animation: vHot 1.6s ease-in-out infinite; } .ctab.ou .ou-verdict.v-under b { animation: vCold 2s ease-in-out infinite; }
@keyframes vHot { 50% { text-shadow: 0 0 16px rgba(255, 77, 109, .9), 0 0 30px rgba(255, 138, 61, .6); } }
@keyframes vCold { 50% { text-shadow: 0 0 16px rgba(125, 211, 252, .9); } }
.qs { grid-template-columns: minmax(0, 1fr); justify-items: center; }
@media (max-width: 1000px) { .gm { grid-template-columns: 150px minmax(0, 1fr); } .gm-n { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gm { grid-template-columns: minmax(0, 1fr); } .gm-n { grid-template-columns: 1fr 1fr; } .gm-say b { font-size: 34px; } .gm-bottom { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .gm-ball { transition: none; } .ctab.ou.go .gm-ball { animation: none; } .ctab.ou .gh-c i, .ctab.ou .lt-b i { transition: none; } .ctab.ou .ou-verdict b { animation: none; } }
.ctab.ou.in-sb .ct-deck { top: 10px; right: 128px; width: 28px; margin: 0; } .ctab.ou.in-sb .ct-deck i { border-width: 1.5px; } .ctab.ou.in-sb .ct-deck i:nth-child(3)::after { font-size: 13px; }
.stk.alt .stk-art { transform: scaleX(-1); filter: hue-rotate(18deg) saturate(1.15); }   /* การ์ดแบบเดียวกันใบที่สอง: กลับด้านภาพ */

/* ---------- 🐉 การ์ด "ติดมังกร!": รัศมีรังสีทองหมุน + ประกายวิบวับ + ขอบเรืองแสงเต้น + แสงวาบเป็นระยะ ---------- */
.stk.t-drg { z-index: 40 !important; }
.stk.t-drg::before { content: ""; position: absolute; inset: -42%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(120, 185, 255, .7) 0 5deg, transparent 5deg 17deg),
              radial-gradient(closest-side, rgba(63, 156, 255, .75), rgba(255, 122, 69, .35) 45%, transparent 70%);
  -webkit-mask: radial-gradient(closest-side, #000 28%, transparent 72%); mask: radial-gradient(closest-side, #000 28%, transparent 72%);
  animation: drgRays 7s linear infinite; }
@keyframes drgRays { to { transform: rotate(360deg); } }
.stk.t-drg::after { content: ""; position: absolute; inset: -16px; z-index: 4; pointer-events: none;
  background:
    radial-gradient(circle at 8% 14%, #fff 0 2px, rgba(180, 216, 255, .8) 3px, transparent 6px),
    radial-gradient(circle at 92% 8%, #fff 0 2.5px, rgba(120, 185, 255, .8) 3.5px, transparent 7px),
    radial-gradient(circle at 96% 62%, #fff 0 1.8px, transparent 5px),
    radial-gradient(circle at 4% 78%, #fff 0 2.2px, rgba(90, 170, 255, .7) 3px, transparent 6px),
    radial-gradient(circle at 55% 2%, #fff 0 1.6px, transparent 4.5px),
    radial-gradient(circle at 40% 99%, #fff 0 2px, transparent 5px),
    radial-gradient(circle at 78% 94%, #e0efff 0 1.5px, transparent 4px);
  animation: drgTwinkle 1.3s ease-in-out infinite alternate; }
@keyframes drgTwinkle { 0% { opacity: .35; transform: scale(.96) rotate(-2deg); } 100% { opacity: 1; transform: scale(1.04) rotate(2deg); } }
.stk.t-drg .stk-in { box-shadow: 0 0 0 2px #3f9cff, inset 0 0 0 1px rgba(255, 255, 255, .35); animation: drgPulse 1.6s ease-in-out infinite; }
@keyframes drgPulse { 0%, 100% { box-shadow: 0 0 0 2px #3f9cff, 0 0 12px 2px rgba(63, 156, 255, .6); } 50% { box-shadow: 0 0 0 3px #b0d6ff, 0 0 26px 8px rgba(60, 154, 255, .85); } }
.stk.t-drg .stk-foil { animation: drgFoil 2.6s ease-in-out infinite !important; mix-blend-mode: screen; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .8) 48%, rgba(150, 201, 255, .6) 52%, transparent 62%); background-size: 260% 100%; }
@keyframes drgFoil { 0%, 55% { background-position: 140% 0; } 85%, 100% { background-position: -40% 0; } }
.stk.t-drg .stk-band b { color: #b0d6ff; text-shadow: 0 0 10px rgba(63, 156, 255, .9), 0 1px 0 #000; }
@media (prefers-reduced-motion: reduce) { .stk.t-drg::before, .stk.t-drg::after, .stk.t-drg .stk-in, .stk.t-drg .stk-foil { animation: none !important; } }

/* หน้าหมวด: การ์ดคู่แบบเดียวกับหน้าแรก + แถบอันดับ/ใส่ตั๋วใต้การ์ด */
.pk-mcs { margin-top: 18px; }
.pk-mc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pk-mc-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); }
.pk-mc-bar .pk-rank { position: static; display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; font-family: var(--mono); font-weight: 800; color: #0a111f; background: #6ab2ff; }
.pk-mc-bar b { font-size: 14px; } .pk-mc-bar em { font-family: var(--mono); font-style: normal; font-weight: 800; color: #6ab2ff; }
.pk-mc-bar .slip-add { margin-left: auto; }

/* ---------- ชื่อ "ศูนย์ทีเด็ด" ในอินโทรหน้าแรก: 10 ท่าเข้า (สุ่มทุกครั้ง) ---------- */
.dz-logo.tv1 { animation-name: tvDrop; } .dz-logo.tv2 { animation-name: tvSlide; } .dz-logo.tv3 { animation-name: tvFlip; } .dz-logo.tv4 { animation-name: tvSpin; }
.dz-logo.tv5 { animation-name: tvStamp; } .dz-logo.tv6 { animation-name: tvGlitch; animation-timing-function: steps(6, end); } .dz-logo.tv7 { animation-name: tvRise; }
.dz-logo.tv8 { animation-name: tvWipe; } .dz-logo.tv9 { animation-name: tvStretch; }
@keyframes tvDrop { 0% { opacity: 0; transform: translate(-50%, -260%); } 60% { opacity: 1; transform: translate(-50%, -42%); } 80% { transform: translate(-50%, -55%); } 100% { transform: translate(-50%, -50%); } }
@keyframes tvSlide { 0% { opacity: 0; transform: translate(-180%, -50%) skewX(-25deg); } 70% { opacity: 1; transform: translate(-44%, -50%) skewX(8deg); } 100% { transform: translate(-50%, -50%) skewX(0); } }
@keyframes tvFlip { 0% { opacity: 0; transform: translate(-50%, -50%) perspective(600px) rotateX(-95deg); } 100% { opacity: 1; transform: translate(-50%, -50%) perspective(600px) rotateX(0); } }
@keyframes tvSpin { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-540deg) scale(.1); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); } }
@keyframes tvStamp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(3.2) rotate(-8deg); } 55% { opacity: 1; transform: translate(-50%, -50%) scale(.92) rotate(2deg); } 75% { transform: translate(-51%, -49%) scale(1.03); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes tvGlitch { 0% { opacity: 0; transform: translate(-58%, -50%); filter: hue-rotate(90deg); } 30% { opacity: 1; transform: translate(-44%, -52%); filter: hue-rotate(-60deg); } 60% { transform: translate(-53%, -48%); filter: hue-rotate(30deg); } 100% { transform: translate(-50%, -50%); filter: none; } }
@keyframes tvRise { 0% { opacity: 0; transform: translate(-50%, 40%); filter: brightness(3) blur(4px); } 100% { opacity: 1; transform: translate(-50%, -50%); filter: none; } }
@keyframes tvWipe { 0% { opacity: 1; clip-path: inset(0 50% 0 50%); transform: translate(-50%, -50%) scale(1.15); } 100% { clip-path: inset(0 0 0 0); transform: translate(-50%, -50%) scale(1); } }
@keyframes tvStretch { 0% { opacity: 0; transform: translate(-50%, -50%) scaleX(.05) scaleY(1.8); } 60% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.25) scaleY(.85); } 80% { transform: translate(-50%, -50%) scaleX(.95) scaleY(1.05); } 100% { transform: translate(-50%, -50%) scale(1); } }
.dz-logo.tv1, .dz-logo.tv2, .dz-logo.tv5, .dz-logo.tv9 { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, 1, .3, 1); }
/* ฉากลอยค้าง/หมุน: ชื่อเรืองแสงมากขึ้นเล็กน้อย */
.dz-splash.sc1 .dz-logo b, .dz-splash.sc2 .dz-logo b, .dz-splash.sc7 .dz-logo b { filter: drop-shadow(3px 3px 0 #5e0610) drop-shadow(0 0 30px rgba(70, 159, 255, .8)); }
/* ---------- พื้นช่องวาง สูง/ต่ำ: สูง = ไฟลุก (เปลวไฟ + ถ่านลอยขึ้น) · ต่ำ = น้ำแข็ง (ลายเกล็ดน้ำแข็ง + หิมะโปรย) — รู้ทันทีว่าช่องไหน ---------- */
.ctab.ou .ct-slot.ou-s { isolation: isolate; }
.ctab.ou .ct-slot.ou-s > .ct-lb, .ctab.ou .ct-slot.ou-s > .ct-pile { position: relative; z-index: 1; }
.ctab.ou .ct-slot.ou-s::before { display: none; }
.ou-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.ou-fx::before, .ou-fx::after { content: ""; position: absolute; }
/* 🔥 สูง */
.z-over .ou-fx { background:
    radial-gradient(90% 55% at 50% 112%, rgba(40, 144, 255, .75), transparent 62%),
    radial-gradient(45% 45% at 18% 108%, rgba(255, 70, 50, .6), transparent 70%),
    radial-gradient(45% 45% at 82% 108%, rgba(60, 154, 255, .5), transparent 70%),
    linear-gradient(180deg, rgba(70, 5, 15, .55), rgba(150, 25, 20, .6));
  animation: ouFlicker 1.6s ease-in-out infinite alternate; }
@keyframes ouFlicker { 0% { filter: brightness(.92) saturate(1.1); } 100% { filter: brightness(1.12) saturate(1.3); } }
.z-over .ou-fx::before { content: "สูง ▲"; right: 12px; bottom: -8px; font-family: "Kanit", var(--sans); font-size: clamp(70px, 8vw, 132px); font-style: italic; font-weight: 900; line-height: 1;
  color: rgba(255, 110, 60, .12); -webkit-text-stroke: 2px rgba(90, 170, 255, .45); white-space: nowrap; }
.z-over .ou-fx::after { inset: 0 0 -100% 0;   /* ถ่านไฟลอยขึ้น */
  background:
    radial-gradient(circle at 10% 20%, #7abaff 0 2px, transparent 3px), radial-gradient(circle at 26% 55%, #ff9a4a 0 1.6px, transparent 3px),
    radial-gradient(circle at 44% 12%, #a1ceff 0 1.4px, transparent 3px), radial-gradient(circle at 61% 70%, #ff7a3d 0 2.2px, transparent 3.5px),
    radial-gradient(circle at 78% 35%, #7abaff 0 1.8px, transparent 3px), radial-gradient(circle at 90% 82%, #5cabff 0 1.5px, transparent 3px),
    radial-gradient(circle at 35% 88%, #6eb4ff 0 1.7px, transparent 3px), radial-gradient(circle at 70% 5%, #c0deff 0 1.2px, transparent 2.5px);
  background-size: 100% 50%; animation: ouEmbers 3.2s linear infinite; opacity: .9; }
@keyframes ouEmbers { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* 🧊 ต่ำ */
.z-under .ou-fx { background:
    radial-gradient(90% 60% at 50% -12%, rgba(200, 235, 255, .45), transparent 62%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(20, 90, 170, .55), rgba(8, 40, 95, .7));
  animation: ouShimmer 3s ease-in-out infinite alternate; }
@keyframes ouShimmer { 0% { filter: brightness(.95); } 100% { filter: brightness(1.12) saturate(1.15); } }
.z-under .ou-fx::before { content: "ต่ำ ▼"; right: 12px; bottom: -8px; font-family: "Kanit", var(--sans); font-size: clamp(70px, 8vw, 132px); font-style: italic; font-weight: 900; line-height: 1;
  color: rgba(150, 210, 255, .12); -webkit-text-stroke: 2px rgba(190, 230, 255, .5); white-space: nowrap; }
.z-under .ou-fx::after { inset: -100% 0 0 0;   /* หิมะโปรยลง */
  background:
    radial-gradient(circle at 8% 30%, #fff 0 2px, transparent 3px), radial-gradient(circle at 22% 75%, #e6f6ff 0 1.5px, transparent 3px),
    radial-gradient(circle at 40% 15%, #fff 0 1.8px, transparent 3px), radial-gradient(circle at 57% 60%, #dff3ff 0 2.2px, transparent 3.5px),
    radial-gradient(circle at 73% 25%, #fff 0 1.4px, transparent 3px), radial-gradient(circle at 88% 85%, #eaf7ff 0 2px, transparent 3px),
    radial-gradient(circle at 31% 45%, #fff 0 1.2px, transparent 2.5px), radial-gradient(circle at 66% 92%, #fff 0 1.6px, transparent 3px);
  background-size: 100% 50%; animation: ouSnow 5s linear infinite; opacity: .85; }
@keyframes ouSnow { from { transform: translateY(0); } to { transform: translateY(50%); } }
/* ขอบช่องชัดขึ้นตามธีม */
.ctab.ou.in-sb .ct-slot.z-over { border-color: rgba(255, 110, 70, .75); box-shadow: 0 0 18px rgba(255, 90, 50, .3), inset 0 0 30px rgba(255, 90, 40, .25); }
.ctab.ou.in-sb .ct-slot.z-under { border-color: rgba(120, 200, 255, .75); box-shadow: 0 0 18px rgba(80, 170, 255, .3), inset 0 0 30px rgba(120, 200, 255, .2); }
.ctab.ou.in-sb .ct-slot.z-over.hot { box-shadow: 0 0 30px rgba(255, 90, 50, .6), inset 0 0 36px rgba(255, 120, 40, .35); }
.ctab.ou.in-sb .ct-slot.z-under.hot { box-shadow: 0 0 30px rgba(80, 170, 255, .6), inset 0 0 36px rgba(150, 215, 255, .3); }
.ctab.ou .ct-slot.ou-s .ct-lb b { font-size: 30px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); } .ctab.ou .ct-slot.ou-s .ct-lb i { font-size: 38px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .4)); }
.ctab.ou .ct-slot.ou-s .ct-lb small, .ctab.ou .ct-slot.ou-s .ou-num { color: rgba(255, 255, 255, .85); } .ctab.ou .ct-slot.ou-s .ou-num b { color: #fff; }
.ctab.ou .ct-slot.ou-s .ct-empty { border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .ou-fx, .ou-fx::after { animation: none !important; } }

/* มังกรในช่องสูง/ต่ำ + น้ำตกฝั่งต่ำ (แทนหิมะ) */
.ou-drg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.z-over .ou-drg { filter: drop-shadow(0 0 14px rgba(255, 120, 40, .55)) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.z-under .ou-drg { filter: drop-shadow(0 0 14px rgba(140, 210, 255, .5)) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.z-over .ou-fx::before, .z-under .ou-fx::before { z-index: 1; opacity: .7; }
.z-under .ou-fx::after { inset: 0 auto 0 50%; width: 30%; background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .0) 0 10px, rgba(230, 248, 255, .55) 10px 16px, rgba(255, 255, 255, 0) 16px 34px),
    linear-gradient(90deg, rgba(160, 215, 255, .15), rgba(220, 245, 255, .55) 30%, rgba(255, 255, 255, .65) 50%, rgba(220, 245, 255, .55) 70%, rgba(160, 215, 255, .15));
  background-size: 100% 68px, 100% 100%; -webkit-mask: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); mask: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  animation: ouFall .7s linear infinite; opacity: .8; transform: none; }
@keyframes ouFall { from { background-position: 0 0, 0 0; } to { background-position: 0 68px, 0 0; } }
.z-under .ou-fx { background:
    radial-gradient(40% 18% at 65% 100%, rgba(235, 250, 255, .6), transparent 70%),
    radial-gradient(90% 60% at 50% -12%, rgba(200, 235, 255, .45), transparent 62%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(20, 90, 170, .55), rgba(8, 40, 95, .7)); }
@media (prefers-reduced-motion: reduce) { .z-under .ou-fx::after { animation: none; } }
/* หัวมังกรในช่องสูง/ต่ำ: เข้มขึ้น (สีจัด คอนทราสต์สูง เงาเข้ม) */
.z-over .ou-drg { filter: saturate(1.35) contrast(1.18) drop-shadow(0 0 16px rgba(255, 110, 30, .7)) drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.z-under .ou-drg { filter: saturate(1.3) contrast(1.2) drop-shadow(0 0 16px rgba(120, 200, 255, .65)) drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
/* หัวมังกรจีนหันหน้าตรง (ลายปักจีนสมัยชิง ภาพสาธารณสมบัติ ทำสองโทน ไฟ/น้ำแข็ง) — อยู่ค้างในช่อง หายใจช้า ๆ */
.ou-head { position: absolute; z-index: 2; top: 50%; left: 66%; height: 122%; width: auto; max-width: none; transform: translate(-50%, -50%); animation: ouHead 3.2s ease-in-out infinite; }
.z-over .ou-head { filter: drop-shadow(0 0 22px rgba(255, 110, 30, .65)) drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
.z-under .ou-head { filter: drop-shadow(0 0 22px rgba(120, 200, 255, .6)) drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
@keyframes ouHead { 50% { transform: translate(-50%, -52%) scale(1.035); } }
.z-over .ou-fx::before, .z-under .ou-fx::before { z-index: 1; }
@media (max-width: 900px) { .ou-head { left: 50%; height: 112%; opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ou-head { animation: none; } }

/* ช่องต่ำ: ไม่ใช้แถบน้ำตก CSS เดิม */
.z-under .ou-fx::after { display: none; }
/* การ์ดเต็งเจ้าบ้าน = ภาพปราสาท: ดันจุดครอปขึ้นให้เห็นยอดหอ + ธง */
.pk.drg[data-t="home"] .pk-art { object-position: 50% 25%; }

/* 🐉 มังกรวิ่งรอบชื่อทีม (canvas วาดโดย lab.js) */
.sb-t.h, .sb-t.a { position: relative; }
.sb-drg { position: absolute; left: -64px; top: -64px; z-index: 3; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.sb-teams { position: relative; z-index: 4; padding-bottom: 14px; }

/* มือถือ: แผงเรียง/ลีก ย่อเหลือแถบเตี้ย 2 แถว (เลื่อนซ้าย-ขวา) ไม่กินพื้นที่บนสุด */
@media (max-width: 900px) {
  .side.left { display: flex; flex-direction: column; gap: 6px; }
  .side.left .panel { padding: 8px 10px; margin: 0; border-radius: 12px; }
  .side.left .panel h3 { display: none; }
  .side.left .vseg.sortseg { display: flex; gap: 6px; overflow-x: auto; }
  .side.left .vseg.sortseg button { flex: none; width: auto; flex-direction: row; gap: 4px; padding: 6px 12px; font-size: 13px; border-radius: 20px; min-height: 0; }
  .side.left .vseg.sortseg button small { display: none; }
  .side.left .chk { display: inline-flex; font-size: 12.5px; margin: 6px 0 0; }
  .side.left .lglist { gap: 6px; }
  .side.left .lglist button { padding: 5px 10px; font-size: 13px; border-radius: 20px; min-height: 0; }
  .side.left .lglist button .lgi, .side.left .lglist button img { width: 16px; height: 16px; }
}

/* แตะลื่นบนมือถือ: ไม่รอ double-tap zoom · ไม่มีเงาสีฟ้าตอนแตะ · ไม่ค้างเอฟเฟกต์ hover บนจอสัมผัส */
a, button, summary, label, [role="button"], input, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(66, 153, 245, .18); }
@media (hover: none) {
  .dg-card:hover, .bg-it:hover, .cm-vote button:hover, .ch-card:hover, .txh-btn:hover, .risk-chip:hover { transform: none !important; }
}
/* ลิงก์คู่เดียวกันที่เว็บพี่น้อง tded.us (ท้ายหน้า match.php) */
.sister { max-width: 980px; margin: 18px auto 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14px; }
.sister span { color: var(--muted); font-size: 12.5px; }
.sister a { font-weight: 700; color: #a0ceff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== ช่องทางโซเชียล (lab_social_strip / lab_social_band ใน lib.php) — สีแบรนด์จริงของแต่ละช่อง ===== */
.soc-facebook { --sc: #1877f2; --sc2: #0b4fb3; } .soc-fbgroup { --sc: #2d88ff; --sc2: #5b3fd6; }
.soc-youtube { --sc: #ff0033; --sc2: #b3001f; } .soc-tiktok { --sc: #fe2c55; --sc2: #25f4ee; }
.soc-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.soc-strip .ss-t { margin-right: 4px; font-size: 13px; font-weight: 800; color: #a0ceff; }
.soc-strip a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 7px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--sc), var(--sc2)); box-shadow: 0 4px 14px -6px var(--sc); transition: transform .15s, box-shadow .15s; }
.soc-strip a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px var(--sc); }
.soc-strip svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; fill: var(--sc); background: #fff; }
.soc-strip .soc-tiktok, .sb-card.soc-tiktok .sb-ic { background: #010101; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.soc-strip .soc-tiktok svg { fill: #010101; }
/* Instagram (ไล่สีแบรนด์) · Threads (ดำ) — ไอคอนแบบเส้น ใช้ currentColor */
.soc-instagram { --sc: #d62976; --sc2: #4f5bd5; } .soc-threads { --sc: #101010; --sc2: #3a3a3a; }
.soc-strip .soc-instagram, .sb-card.soc-instagram .sb-ic { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.soc-strip .soc-instagram svg { color: #d62976; } .soc-strip .soc-threads svg { color: #101010; }
.sb-card.soc-instagram .sb-ic svg, .sb-card.soc-threads .sb-ic svg, .soc-ic .si-instagram svg, .soc-ic .si-threads svg { color: #fff; }
.sb-card.soc-threads .sb-ic { background: #101010; box-shadow: 0 0 0 1px #444; }
.sb-trust { margin: 8px auto 0; max-width: 640px; font-size: 13px; color: #9fe3bf; }

.soc-band { position: relative; max-width: 980px; margin: 0 auto 16px; padding: 22px 20px 20px; overflow: hidden; border-radius: 20px; border: 1px solid rgba(66, 153, 245, .35);
  background: radial-gradient(90% 120% at 0% 0%, rgba(24, 119, 242, .22), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(254, 44, 85, .18), transparent 55%), linear-gradient(160deg, #0d1a2e, #091226);
  box-shadow: 0 18px 40px -24px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.soc-band::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px); }
.sb-head { position: relative; text-align: center; margin-bottom: 16px; }
.sb-kick { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #000e1c; background: linear-gradient(135deg, #b0d6ff, #4299f5); }
.sb-head h2 { margin: 10px 0 4px; font-size: 22px; line-height: 1.3; color: #fff; } .sb-head h2 b { color: #4299f5; }
.sb-head p { margin: 0; font-size: 13.5px; color: var(--soft); }
.sb-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sb-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 14px; overflow: hidden; border-radius: 16px; text-align: center; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); transition: transform .2s, border-color .2s, box-shadow .2s; }
.sb-card::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); transition: left .6s; }
.sb-card:hover { transform: translateY(-4px); border-color: var(--sc); box-shadow: 0 14px 30px -14px var(--sc); }
.sb-card:hover::after { left: 140%; }
.sb-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--sc), var(--sc2)); box-shadow: 0 8px 22px -8px var(--sc); }
.sb-ic svg { width: 30px; height: 30px; fill: #fff; }
.sb-tx { display: flex; flex-direction: column; gap: 2px; } .sb-tx b { font-size: 16px; } .sb-tx small { font-size: 12px; color: var(--muted); }
.sb-tx em { margin-top: 4px; font-size: 12.5px; font-style: normal; color: var(--soft); }
.sb-cta { margin-top: auto; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; background: linear-gradient(135deg, var(--sc), var(--sc2)); }
.sb-cta i { font-style: normal; display: inline-block; transition: transform .2s; } .sb-card:hover .sb-cta i { transform: translateX(3px); }
.sb-clip { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 10px; border-radius: 14px; text-decoration: none; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 0, 51, .35); }
.sb-th { position: relative; flex: none; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #000; }
.sb-th img { width: 100%; height: 100%; object-fit: cover; }
.sb-th i { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 15px; background: #ff0033; box-shadow: 0 0 0 6px rgba(255, 0, 51, .25); }
.sb-ct { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .sb-ct small { color: #ff8a9b; font-weight: 700; font-size: 12px; }
.sb-ct b { font-size: 14.5px; line-height: 1.4; } .sb-ct em { font-style: normal; font-size: 13px; font-weight: 800; color: #4299f5; }
@media (max-width: 760px) {
  .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sb-head h2 { font-size: 18px; } .soc-band { padding: 18px 12px 14px; }
  .sb-card { padding: 14px 8px 12px; } .sb-cta { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; } .sb-ic { width: 50px; height: 50px; } .sb-tx em { display: none; }
  .soc-strip .ss-t { width: 100%; } .soc-strip a { flex: 1 1 calc(50% - 8px); justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .sb-card, .sb-card::after, .soc-strip a { transition: none; } }

/* ปุ่มเข้าสู่ระบบด้วย Google (login.php → google_login.php) — ตามแนวทางปุ่มของ Google: พื้นขาว โลโก้ G สี */
.gg-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; font-size: 15.5px; font-weight: 700;
  color: #1f1f1f; text-decoration: none; background: #fff; border: 1px solid #dadce0; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .5); transition: box-shadow .15s, transform .15s; }
.gg-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(66, 133, 244, .8); }
.gg-btn svg { width: 22px; height: 22px; flex: none; }
.gg-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 12.5px; color: var(--muted); }
.gg-or::before, .gg-or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }

/* หน้า privacy.php */
.legal { max-width: 820px; margin: 0 auto; padding: 24px 16px 10px; line-height: 1.75; }
.legal h1 { margin: 0 0 4px; font-size: 26px; color: #a0ceff; } .legal .m { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.legal h2 { margin: 26px 0 8px; font-size: 18px; color: var(--lime); scroll-margin-top: 80px; }
.legal ul { margin: 0; padding-left: 20px; } .legal li { margin: 6px 0; color: var(--soft); } .legal li b, .legal p b { color: var(--text); }
.legal p { color: var(--soft); } .legal a { color: #a0ceff; }

/* หัวข้อหลัก (h1) หน้าวิเคราะห์รายคู่ — ตัวเล็กใต้ลิงก์กลับ */
.file-h1 { margin: 2px 0 12px; font-size: 15px; font-weight: 600; color: var(--soft); line-height: 1.5; }
.file-h1 small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* === ปิดเอฟเฟกต์ทั้งหมด (2026-11-15): ไม่มีวิ่ง/กระพริบ/เด้ง/ลอย — หน้าเว็บนิ่ง === */
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.lgo-star { stroke-dashoffset: 0 !important; }
.mx b:hover, .mc:hover, .pk:hover, .pk.gold.drg:hover .pk-art, .gc:hover, .gs:hover, .mc.pk-on:hover .pcard:last-child, .line-btn:hover, .tel-btn:hover, .vipbtn:hover,
.qd:hover, .soc-strip a:hover, .sb-card:hover, .sb-card:hover .sb-cta i, .gg-btn:hover, .dg-card:hover, .bg-it:hover, .cm-vote button:hover { transform: none !important; }

/* === โล่ง + หรู (2026-11-15): รวมแท็บ · ระยะห่างมากขึ้น · เงาลึก + ประกายทองแบบนิ่ง (ไม่มีภาพเคลื่อนไหว) === */
:root { --gold-1: #b8daff; --gold-2: #4299f5; --gold-3: #1b67b8; --glass: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 42%);
  --lux-shadow: 0 18px 42px -18px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(190, 221, 255, .16);
  --lux-line: rgba(66, 153, 245, .22); }
body { background-image: radial-gradient(90% 55% at 50% -12%, rgba(66, 153, 245, .13), transparent 62%), radial-gradient(70% 50% at 100% 100%, rgba(41, 81, 174, .18), transparent 70%) !important; }
.center { gap: 22px; padding-top: 22px; }
.side { gap: 16px; }
.mcs { gap: 18px; }
.zone { margin-bottom: 30px; padding: 18px 18px 20px; }
.seo-h1 { margin-bottom: 18px; }

/* แผง/การ์ด: กระจกเงา + ขอบทองบาง + เงาลึก */
.panel, .mc, .zone.z1, .hub, .bg-strip, .ch-strip { border-color: var(--lux-line) !important; box-shadow: var(--lux-shadow); }
.panel, .mc { background-image: var(--glass), linear-gradient(180deg, var(--panel2), var(--panel)); }
.mc { border-radius: 20px; }
.mc:hover, .panel:hover { border-color: rgba(66, 153, 245, .45) !important; box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(66, 153, 245, .18), inset 0 1px 0 rgba(190, 221, 255, .22); }
.pk { box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(190, 221, 255, .25); }
.zone-h h2, .side h3, .hub h2, .bg-strip h2, .ch-head h2 {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.zone-h .zn { box-shadow: 0 4px 12px rgba(66, 153, 245, .35), inset 0 1px 0 rgba(255, 255, 255, .5); background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); color: #02152a; }

/* กล่องรวม 3 แถบ (แท็บ) */
.hub { margin: 0 0 28px; padding: 10px; border: 1px solid; border-radius: 22px; background: var(--glass), linear-gradient(180deg, rgba(21, 42, 90, .9), rgba(12, 24, 51, .95)); }
.hub-tabs, .bd-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin: 0 0 10px; border-radius: 14px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.hub-tabs button, .bd-tabs button { flex: 1 1 auto; min-height: 38px; padding: 7px 14px; border: 0; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 700; color: var(--soft); background: transparent; cursor: pointer; }
.hub-tabs button.on, .bd-tabs button.on { color: #02152a; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 58%, var(--gold-3)); box-shadow: 0 6px 16px -6px rgba(66, 153, 245, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.hub-p > section { margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.hub-p .dg-head h2, .hub-p .bg-strip > h2, .hub-p .ch-head h2 { display: none; }   /* ชื่ออยู่บนแท็บแล้ว */
.bd-tabs button { flex: 1 1 0; padding: 6px 4px; font-size: 18px; } .bd-tabs button span { display: none; }
.bd-tabs button.on span { display: inline; font-size: 12.5px; }
.boards .board2 { padding: 0; }
.soc-strip { margin: 26px 0 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--lux-line); background: rgba(0, 0, 0, .22); }
@media (max-width: 760px) { .center { gap: 16px; } .mcs { gap: 14px; } .hub-tabs button { font-size: 13px; padding: 7px 8px; } }

/* === Premium ขั้นสูง (2026-11-15): ขอบทองไล่เฉด · ประกายแสงวิ่งผ่านแบบช้า/นุ่ม เฉพาะจุดเด่น · เงาลึกหลายชั้น ===
   แสงวิ่งเฉพาะ: การ์ดหมวดทีเด็ด 4 ใบ (วนช้า 9 วิ วิ่งแค่ 1.2 วิ) · แท็บที่เลือก · หัวข้อหลัก
   การ์ดคู่/แผง: แสงวิ่งเฉพาะตอนเอาเมาส์ชี้ · ผู้ที่ตั้ง "ลดการเคลื่อนไหว" ในเครื่อง = นิ่งทั้งหมด */
:root { --gold-ring: linear-gradient(135deg, #c4e1ff 0%, #3a8fe9 22%, #0e4a8a 45%, #78b5f7 62%, #1b67b8 80%, #b0d6ff 100%); }

/* ขอบทองโลหะ (ขอบไล่เฉด ไม่ใช่สีเดียว) */
.pk.gold, .hub, .panel.spot2, .panel.accm, .panel.boards, .zone.z1 {
  border: 1.5px solid transparent !important;
  background: var(--glass) padding-box, linear-gradient(180deg, #172d61, #0d1a3a) padding-box, var(--gold-ring) border-box !important; }
.pk.gold { background: var(--gold-ring) border-box !important; }   /* การ์ดหมวดมีรูปพื้นอยู่แล้ว: ขอบทองอย่างเดียว */
.pk.gold > .pk-art { border-radius: inherit; }

/* เงาหลายชั้น ให้ลอยและดูแพง */
.pk.gold { box-shadow: 0 1px 0 rgba(200, 227, 255, .55) inset, 0 28px 60px -24px rgba(0, 0, 0, .95), 0 10px 24px -10px rgba(27, 103, 184, .55), 0 0 0 1px rgba(0, 0, 0, .4) !important; }
.hub, .panel.spot2, .panel.boards, .panel.accm { box-shadow: 0 1px 0 rgba(200, 227, 255, .35) inset, 0 -1px 0 rgba(0, 0, 0, .5) inset, 0 30px 60px -30px rgba(0, 0, 0, .95), 0 12px 30px -16px rgba(27, 103, 184, .35) !important; }
.mc { box-shadow: 0 1px 0 rgba(200, 227, 255, .14) inset, 0 22px 44px -24px rgba(0, 0, 0, .95), 0 4px 10px rgba(0, 0, 0, .3) !important; }

/* หัวข้อหลัก: ตัวอักษรทองโลหะ + ประกายวิ่งช้า */
.seo-h1 { text-shadow: none; }
.seo-h1 > :first-child, .seo-h1 { background: linear-gradient(100deg, #1b6fc8 0%, #6baff7 30%, #e6f2ff 45%, #6baff7 60%, #1b67b8 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(66, 153, 245, .25)); }
.seo-h1 span { -webkit-text-fill-color: var(--soft); }

/* ประกายแสงวิ่งผ่าน (keyframes ใช้ร่วม) */
@keyframes luxSweep { 0%, 86% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes luxText { 0%, 80% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.pk.gold::before { background: linear-gradient(110deg, transparent 40%, rgba(225, 240, 255, .0) 44%, rgba(225, 240, 255, .55) 50%, rgba(225, 240, 255, 0) 56%, transparent 60%) !important;
  background-size: 250% 100% !important; mix-blend-mode: soft-light; border-radius: inherit; animation: luxSweep 9s cubic-bezier(.4, 0, .2, 1) infinite !important; }
.pk.gold:nth-child(2)::before { animation-delay: 2.2s !important; } .pk.gold:nth-child(3)::before { animation-delay: 4.4s !important; } .pk.gold:nth-child(4)::before { animation-delay: 6.6s !important; }
.seo-h1 { animation: luxText 10s ease-in-out infinite !important; }

/* แท็บที่เลือก: ปุ่มทองเงา + แสงวิ่ง */
.hub-tabs button.on, .bd-tabs button.on { position: relative; overflow: hidden;
  background: linear-gradient(180deg, #d0e7ff 0%, #4299f5 50%, #1f71c9 51%, #4e9cf0 100%) !important;
  box-shadow: 0 8px 20px -8px rgba(66, 153, 245, .85), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(5, 61, 120, .35) !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.hub-tabs button.on::after, .bd-tabs button.on::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); background-size: 250% 100%; animation: luxSweep 7s ease-in-out infinite !important; }

/* การ์ดคู่ + แผงขวา: แสงวิ่งผ่านเฉพาะตอนชี้เมาส์ (ไม่วิ่งเอง) */
.mc::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(110deg, transparent 38%, rgba(200, 227, 255, .16) 50%, transparent 62%); background-size: 250% 100%; background-position: 160% 0; }
.mc:hover::after { animation: luxHover .9s ease-out 1 both !important; }
@keyframes luxHover { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.mc:hover { border-color: rgba(66, 153, 245, .55) !important; box-shadow: 0 1px 0 rgba(200, 227, 255, .25) inset, 0 26px 50px -22px rgba(0, 0, 0, .95), 0 0 24px -6px rgba(66, 153, 245, .35) !important; }
.mc, .panel, .pk { transition: box-shadow .25s ease, border-color .25s ease !important; }

/* พื้นหลัง: แสงทองนุ่มๆ + vignette ขอบจอ ให้สายตาโฟกัสกลางจอ */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, .55) 100%); }

@media (prefers-reduced-motion: reduce) { .pk.gold::before, .seo-h1, .hub-tabs button.on::after, .bd-tabs button.on::after, .mc:hover::after { animation: none !important; } }

/* === กรอบหรู (2026-11-15): มุมทอง 4 มุม · เส้นทองคู่ด้านใน · เส้นเน้นบนการ์ด · ป้ายหัวกล่อง === */
/* กล่องหลัก: มุมทองแบบกรอบรูป + เส้นทองบางด้านในอีกชั้น (กรอบคู่) */
.hub, .panel.spot2, .panel.accm, .panel.boards, .zone.z1 { position: relative;
  background: linear-gradient(#4299f5, #4299f5) top 8px left 8px / 22px 2px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) top 8px left 8px / 2px 22px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) top 8px right 8px / 22px 2px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) top 8px right 8px / 2px 22px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) bottom 8px left 8px / 22px 2px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) bottom 8px left 8px / 2px 22px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) bottom 8px right 8px / 22px 2px no-repeat padding-box, linear-gradient(#4299f5, #4299f5) bottom 8px right 8px / 2px 22px no-repeat padding-box, var(--glass) padding-box, linear-gradient(180deg, #172d61, #0d1a3a) padding-box, var(--gold-ring) border-box !important; }
.hub::before, .panel.boards::before, .panel.accm::before, .zone.z1::before { content: ""; position: absolute; inset: 5px; pointer-events: none; z-index: 0;
  border: 1px solid rgba(66, 153, 245, .18); border-radius: calc(22px - 5px); }
.panel.boards::before, .panel.accm::before { border-radius: 9px; }
.hub > *, .panel.boards > *, .panel.accm > *, .zone.z1 > * { position: relative; z-index: 1; }
/* เพชรเล็กกลางขอบบน */
.hub::after, .zone.z1::after, .panel.boards::after { content: "◆"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 12px; line-height: 16px; padding: 0 8px; color: #c4e1ff; text-shadow: 0 0 8px rgba(66, 153, 245, .9); background: #0e1b3a; border-radius: 8px; }

/* หัวกล่องหลัก: เส้นทองไล่จางใต้หัวข้อ */
.zone-h { padding-bottom: 10px; background: linear-gradient(90deg, rgba(66, 153, 245, .65), rgba(66, 153, 245, .15) 45%, transparent 80%) bottom 8px left 8px / 100% 1px no-repeat; }
.side h3 { padding-bottom: 8px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(66, 153, 245, .55), transparent 75%) bottom 8px left 8px / 100% 1px no-repeat; }
.side h3 { -webkit-background-clip: initial; background-clip: initial; color: #a0ceff; }

/* การ์ดคู่: เส้นทองเน้นขอบบน + มุมทองเล็ก 2 มุมบน */
.mc { background: linear-gradient(90deg, transparent, rgba(170, 211, 255, .75), transparent) top center / 70% 1px no-repeat padding-box,
  linear-gradient(rgba(66, 153, 245,.75), rgba(66, 153, 245,.75)) top 8px left 8px / 14px 2px no-repeat padding-box, linear-gradient(rgba(66, 153, 245,.75), rgba(66, 153, 245,.75)) top 8px left 8px / 2px 14px no-repeat padding-box, linear-gradient(rgba(66, 153, 245,.75), rgba(66, 153, 245,.75)) top 8px right 8px / 14px 2px no-repeat padding-box, linear-gradient(rgba(66, 153, 245,.75), rgba(66, 153, 245,.75)) top 8px right 8px / 2px 14px no-repeat padding-box,
  var(--glass) padding-box, linear-gradient(180deg, var(--panel2), var(--panel)) padding-box !important; }
.mc:hover { background-color: transparent; }

/* การ์ดหมวดทีเด็ด: กรอบทองคู่ด้านใน + ป้ายมุม */
.pk.gold { outline: 1px solid rgba(190, 221, 255, .35); outline-offset: -7px; }
.pk-ribbon { background: linear-gradient(180deg, #ff8a3d, #e0561b) !important; box-shadow: 0 6px 14px -6px rgba(224, 86, 27, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }

/* ตัวเลขสำคัญ (KPI/ความแม่น): ตัวเลขทองโลหะ */
.kpi4 b, .accm b { background: linear-gradient(180deg, #e6f2ff 0%, #4299f5 55%, #1b67b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi4 > div { border: 1px solid rgba(66, 153, 245, .2); border-radius: 10px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 1px 0 rgba(190, 221, 255, .1); }

/* รายการอันดับ: เลขลำดับในเหรียญทอง/เงิน/ทองแดง */
.board2 li a { grid-template-columns: 24px minmax(0, 1fr) auto; }
.board2 li a::before { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #02152a;
  background: var(--brnz); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(0, 0, 0, .5); }
.board2 li:nth-child(1) a::before { background: var(--gold); } .board2 li:nth-child(2) a::before { background: var(--silv); }
.board2 li:nth-child(n+4) a::before { background: rgba(255, 255, 255, .08); color: var(--soft); box-shadow: inset 0 0 0 1px rgba(66, 153, 245, .25); }

/* แท็บ: ขอบทองรอบแถบแท็บ */
.hub-tabs, .bd-tabs { border: 1px solid rgba(66, 153, 245, .22); }

/* === ดาวเด่น + โค้ช ในการ์ดคู่ (2026-11-15) === */
.mc-faces { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px 12px; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--home) 14%, transparent), rgba(0, 0, 0, .25) 50%, color-mix(in srgb, var(--away) 14%, transparent));
  border: 1px solid rgba(66, 153, 245, .16); box-shadow: inset 0 1px 0 rgba(190, 221, 255, .08), inset 0 -10px 20px -14px rgba(0, 0, 0, .8); }
.fc-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.fc-side.a { flex-direction: row-reverse; text-align: right; }
.fc-p, .fc-c { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fc-side.a .fc-p, .fc-side.a .fc-c { flex-direction: row-reverse; }
.fc-p img { width: 40px; height: 56px; object-fit: cover; object-position: top; border-radius: 9px; background: #0d1937;
  border: 1.5px solid transparent; background: linear-gradient(#0d1937, #0d1937) padding-box, var(--gold-ring) border-box;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .9), 0 0 12px -4px rgba(66, 153, 245, .5); }
.fc-c img { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 50%; border: 1.5px solid rgba(66, 153, 245, .55); box-shadow: 0 3px 8px rgba(0, 0, 0, .6); }
.fc-p > span, .fc-c > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.fc-p small, .fc-c small { font-size: 10px; color: var(--muted); letter-spacing: .02em; }
.fc-p b, .fc-c b { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.fc-p em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #a0ceff; }
.fc-c em.pw { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--soft); }
.fc-c em.pw.up { color: #3ddc97; } .fc-c em.pw.dn { color: #ff7a59; }
.fc-v { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: #02152a; background: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.fc-vs { font-family: var(--mono); font-size: 13px; font-weight: 900; font-style: italic; letter-spacing: .05em;
  background: linear-gradient(180deg, #e6f2ff, #4299f5 55%, #1b67b8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.fc-bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--away) 75%, #000); overflow: hidden; }
.fc-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 1%); background: linear-gradient(90deg, color-mix(in srgb, var(--home) 60%, #fff), var(--home)); box-shadow: 0 0 6px var(--home); }
.mc:hover .fc-p img { box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .9), 0 0 16px -2px rgba(66, 153, 245, .8); }
@media (max-width: 520px) { .fc-c { display: none; } .fc-p b { max-width: 82px; } }

/* === ⭐ ดาวเด่นลงสนามวันนี้ (หน้าแรก) === */
.st-strip { position: relative; margin: 0 0 26px; padding: 14px 14px 16px; border-radius: 22px; border: 1.5px solid transparent;
  background: radial-gradient(80% 120% at 0% 0%, rgba(66, 153, 245, .14), transparent 60%) padding-box, linear-gradient(180deg, #172d61, #0b162f) padding-box, var(--gold-ring) border-box;
  box-shadow: 0 1px 0 rgba(200, 227, 255, .3) inset, 0 30px 60px -30px rgba(0, 0, 0, .95), 0 12px 30px -16px rgba(27, 103, 184, .4); }
.st-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.st-head h2 { margin: 0; font-size: 20px; background: linear-gradient(180deg, #b8daff, #4299f5 55%, #1b67b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-head small { font-size: 12.5px; color: var(--muted); }
.st-row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #1b67b8 transparent; }
.st-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border-radius: 16px; text-decoration: none; color: var(--text); scroll-snap-align: start; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 40%), linear-gradient(170deg, #1b3674, #0f1d40 70%);
  border: 1px solid rgba(66, 153, 245, .28); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(190, 221, 255, .2); transition: border-color .2s, box-shadow .2s !important; }
.st-card.top { border-color: rgba(66, 153, 245, .7); background: linear-gradient(180deg, rgba(190, 221, 255, .16), rgba(255, 255, 255, 0) 45%), linear-gradient(170deg, #0e233a, #14110a 75%); }
.st-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 38%, rgba(200, 227, 255, .28) 50%, transparent 62%); background-size: 250% 100%; background-position: 160% 0; }
.st-card:hover { border-color: #4299f5; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .95), 0 0 22px -6px rgba(66, 153, 245, .75); }
.st-card:hover::after { animation: luxHover .9s ease-out 1 both !important; }
.st-rank { position: absolute; top: 8px; left: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #02152a; background: var(--brnz); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(0, 0, 0, .6); }
.st-card:nth-child(1) .st-rank { background: var(--gold); } .st-card:nth-child(2) .st-rank { background: var(--silv); }
.st-card:nth-child(n+4) .st-rank { background: rgba(0, 0, 0, .45); color: #a0ceff; box-shadow: inset 0 0 0 1px rgba(66, 153, 245, .4); }
.st-ph { position: relative; display: block; width: 86px; height: 112px; margin-bottom: 6px; }
.st-ph > img { width: 86px; height: 112px; object-fit: cover; object-position: top; border-radius: 12px; border: 2px solid transparent;
  background: linear-gradient(#0d1937, #0d1937) padding-box, var(--gold-ring) border-box; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .95); }
.st-bd { position: absolute; right: -8px; bottom: -6px; }
.st-bd .bd { width: 30px; height: 30px; border-radius: 50%; background: #0d1937; padding: 2px; border: 1.5px solid rgba(66, 153, 245, .7); box-shadow: 0 3px 8px rgba(0, 0, 0, .7); object-fit: contain; }
.st-nm { font-size: 13.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pos { font-size: 11px; color: var(--muted); }
.st-val { font-style: normal; font-family: var(--mono); font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; color: #02152a; background: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); margin: 3px 0 2px; }
.st-vs { font-size: 11px; color: var(--soft); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ko { font-size: 10.5px; color: var(--muted); }
@media (max-width: 760px) { .st-row { grid-auto-columns: 116px; } .st-ph, .st-ph > img { width: 76px; height: 100px; } }

/* === โทนน้ำเงินกรมท่า + ฟ้า ตามปกเพจ (2026-11-15) === */
:root { --bg: #06123a; --bg2: #0a1a4a; --panel: #0c1d52; --panel2: #112762; --lime: #6cb8ff; --lime-d: #3d8fe0; }
body { background-color: var(--bg); }
.top { background: rgba(6, 18, 58, .92); }


/* === ลูกเล่นมืออาชีพ (2026-11-15): กระดานแผนการเล่น · ชอล์ก · หมุดเหล็ก · ตั๋ว === */
::selection { background: #6cb8ff; color: #06123a; }
:focus-visible { outline: 2px dashed #6cb8ff; outline-offset: 3px; }
html { scrollbar-color: #3d8fe0 #06123a; }

/* พื้นหลังทั้งเว็บ: ลายชอล์กจาง ๆ ทับด้วยแสงฟ้าด้านบน */
body { background-image: radial-gradient(120% 70% at 50% -10%, rgba(108, 184, 255, .14), transparent 60%), url(/img/art/chalk_faint.webp) !important;
  background-size: auto, 520px 520px !important; background-attachment: fixed, fixed !important; }

/* โลโก้: จุดฟ้าแบบปกเพจ + เส้นใต้ชอล์กลากหัวลูกศร */
.brand .logo { position: relative; letter-spacing: -.5px; }
.brand .logo b { color: #fff; }
.brand .ldot { display: inline-block; width: .2em; height: .2em; margin-left: .06em; background: #6cb8ff; border-radius: 2px; box-shadow: 0 0 10px rgba(108, 184, 255, .8); vertical-align: baseline; }
.brand .logo::after { content: ""; position: absolute; left: 2px; right: -6px; bottom: -5px; height: 8px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5C30 2.5 70 2 108 4' fill='none' stroke='%236cb8ff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M104 1.2l6 2.9-6 2.6' fill='none' stroke='%236cb8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; opacity: .9; }

/* เมนู: ไอคอนเส้น + ขีดเส้นใต้แบบเส้นประตอน hover */
.nav a { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.nav a .ico { opacity: .85; flex: none; }
.nav a:not(.on):hover::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; border-bottom: 2px dashed #6cb8ff; }

/* ฮีโร่: กระดานแผนการเล่น (AI) ด้านขวา · ข้อความซ้ายแบบปกเพจ */
.hero { position: relative; margin: 0 0 22px; padding: 26px 30px 24px; border-radius: 24px; overflow: hidden; border: 1.5px solid rgba(108, 184, 255, .35);
  background: linear-gradient(90deg, #06123a 0%, #06123a 34%, rgba(6, 18, 58, .55) 62%, rgba(6, 18, 58, .15) 100%), url(/img/art/hero.webp) right 38% / cover no-repeat, #06123a;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(200, 230, 255, .18); }
.hero::before { content: ""; position: absolute; inset: 8px; border-radius: 18px; border: 1px dashed rgba(108, 184, 255, .22); pointer-events: none; }
.hero-tx { position: relative; max-width: 640px; }
.hero .kick { display: block; font-size: 12px; font-weight: 800; letter-spacing: .32em; color: #6cb8ff; text-transform: uppercase; margin-bottom: 6px; }
.hero .kick i { font-style: normal; opacity: .6; margin: 0 .3em; }
.hero .seo-h1 { margin: 0; font-size: 38px; color: #fff; text-shadow: 0 2px 24px rgba(108, 184, 255, .35); background: none; -webkit-text-fill-color: #fff; }
.hero .seo-h1 span { display: block; width: 100%; font-size: 16px; color: #cfe3ff; -webkit-text-fill-color: #cfe3ff; }
.hero .seo-h1::after, .hero .seo-h1::before { display: none !important; }
.hero .rule { display: block; width: 300px; max-width: 70%; height: 2px; margin: 14px 0 10px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .1)); }
.hero-sub { margin: 0 0 14px; color: #b9cdf0; font-size: 14px; }
.hero-sub b { color: #6cb8ff; font-family: var(--mono); font-size: 16px; }
.hero-soc { display: flex; align-items: center; gap: 10px; }
.hero-soc small { font-size: 11px; letter-spacing: .2em; color: #8fb3e6; text-transform: uppercase; }
.soc-ic { display: inline-flex; gap: 8px; }
.soc-ic a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 35% 30%, #4a6fb8, #13265e 70%); border: 1px solid rgba(108, 184, 255, .5); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.soc-ic a svg { width: 16px; height: 16px; fill: currentColor; }
.soc-ic a:hover { border-color: #6cb8ff; box-shadow: 0 0 0 3px rgba(108, 184, 255, .25), 0 6px 14px -6px rgba(0, 0, 0, .9); }
@media (max-width: 760px) {
  .hero { padding: 20px 18px; background: linear-gradient(180deg, rgba(6, 18, 58, .7), #06123a 75%), url(/img/art/hero.webp) center top / cover no-repeat, #06123a; }
  .hero .seo-h1 { font-size: 28px; } .hero .kick { letter-spacing: .2em; font-size: 11px; }
}

/* หัวโซน: เลขโปร่งตัวใหญ่แบบนิตยสาร + ลูกศรชอล์กชี้ลง */
.zone-h .zn { width: auto !important; height: auto !important; min-width: 0; padding: 0 4px 0 0; background: none !important; box-shadow: none !important; border: 0 !important;
  font-family: var(--mono); font-size: 34px; font-weight: 900; line-height: 1; color: transparent !important; -webkit-text-stroke: 1.5px #6cb8ff; letter-spacing: -1px; }
.zone-h { position: relative; }
.zone-h h2 { position: relative; }
.zone-h h2::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #6cb8ff, transparent); }

/* หมุดเหล็กบนกรอบ (แทน ◆) — เหมือนหมุดแม่เหล็กบนกระดานแผน */
.hub::after, .zone.z1::after, .panel.boards::after { content: "" !important; width: 18px; height: 18px; border-radius: 50%; top: -9px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0, #d7dee9 18%, #8a95a8 55%, #3b4456 100%) !important; box-shadow: 0 4px 8px rgba(0, 0, 0, .7), 0 0 0 3px rgba(6, 18, 58, .9) !important; color: transparent !important; }

/* ⭐ การ์ดดาวเด่น = ตั๋วเข้าสนาม: รอยบากครึ่งวงกลมสองข้าง + เส้นปรุ */
.st-card { -webkit-mask: radial-gradient(circle 9px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat; }
.st-card .st-nm { position: relative; padding-top: 6px; }
.st-card .st-nm::before { content: ""; position: absolute; left: -10px; right: -10px; top: 0; border-top: 1.5px dashed rgba(108, 184, 255, .35); }

/* แถบดาวเด่น/ฮับ: เส้นชอล์กแผนการเล่นจาง ๆ มุมขวาบน */
.st-strip::before { content: ""; position: absolute; right: 14px; top: 10px; width: 120px; height: 46px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 46' fill='none' stroke='%23cfe3ff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 8l8 8M14 8l-8 8'/%3E%3Ccircle cx='104' cy='34' r='6'/%3E%3Cpath d='M18 18C40 40 70 42 94 34' stroke-dasharray='4 5'/%3E%3Cpath d='M88 29l7 5-8 3'/%3E%3C/svg%3E") no-repeat center / contain; }

/* แถบติดตามท้ายเว็บ: ภาพสนามกลางคืน (AI) */
.soc-band { position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 18, 58, .78), rgba(6, 18, 58, .94)), url(/img/art/pitch.webp) center 40% / cover no-repeat, #06123a !important; }

/* ปุ่มหลัก: ขอบล่างหนาแบบปุ่มกด + แสงฟ้า */
.nav a.on { box-shadow: 0 3px 0 #2f6fd0, 0 8px 18px -8px rgba(108, 184, 255, .8) !important; }
.hero .kick .kth, .hero-soc small { letter-spacing: 0 !important; text-transform: none; }
.hero .kick .kth { font-size: 12px; }
.sb-kick .kth { letter-spacing: 0 !important; }

/* ฮีโร่แบบกะทัดรัด (ลดพื้นที่ครึ่งหนึ่ง 2026-11-15) */
.hero { padding: 12px 22px 12px; margin-bottom: 16px; }
.hero::before { inset: 5px; border-radius: 19px; }
.hero-tx { max-width: none; display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; }
.hero .kick { width: 100%; margin: 0; font-size: 10.5px; }
.hero .seo-h1 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero .seo-h1 span { display: inline; width: auto; font-size: 14px; }
.hero .rule { display: none; }
.hero-sub { margin: 0; font-size: 13px; flex: 1 1 280px; border-left: 2px solid rgba(108, 184, 255, .5); padding-left: 12px; }
.hero-soc { margin-left: auto; }
.hero-soc small { display: none; }
.soc-ic a { width: 30px; height: 30px; }
@media (max-width: 760px) { .hero { padding: 12px 14px; } .hero .seo-h1 { font-size: 22px; } .hero-sub { border-left: 0; padding-left: 0; } .hero-soc { margin-left: 0; } }


/* ===== 👑 ระดับทอง: ความมั่นใจ 90%+ (lib_pick.php mc-gold · pcard.g90 · tier.g90) — เด่นแต่ไม่รก ===== */
@keyframes goldsh { to { background-position: -200% 0; } }
@keyframes goldglow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 213, 90, .35), 0 10px 26px -10px rgba(232, 185, 49, .55); }
  50% { box-shadow: 0 0 0 2px rgba(255, 213, 90, .55), 0 12px 34px -8px rgba(232, 185, 49, .8); } }
@keyframes goldsweep { 0% { transform: translateX(-130%) skewX(-18deg); } 60%, 100% { transform: translateX(330%) skewX(-18deg); } }
.mc.mc-gold { border: 2px solid #e8b931; animation: goldglow 3.2s ease-in-out infinite;
  background: radial-gradient(100% 70% at 50% 0%, rgba(245, 197, 66, .16), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.mc.pk-on.mc-gold { --panel: #fff8e6; --panel2: #fffdf5; --line: #ecd8a0; --line2: #e0c06a; border-color: #e0a400; }
.mc.mc-gold:hover { border-color: #ffcf33; transform: translateY(-3px); }
.mc-gold-tag { position: absolute; top: -12px; left: 14px; z-index: 6; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #3b2a00; white-space: nowrap;
  background: linear-gradient(90deg, #fff1b8, #f5c542, #e0a400, #f5c542, #fff1b8); background-size: 200% 100%; animation: goldsh 3s linear infinite; box-shadow: 0 3px 10px rgba(224, 164, 0, .45); }
.mc-gold-tag b { font-size: 13px; }
.pcard.g90 { box-shadow: 0 0 0 2px #f5c542, 0 0 18px rgba(245, 197, 66, .75); overflow: hidden; }
.pcard.g90::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 200, .55), transparent); animation: goldsweep 3.6s ease-in-out infinite; }
.pcard.g90 .pc-conf b { color: #ffd54a; text-shadow: 0 0 10px rgba(255, 196, 0, .8), 0 1px 0 #6b4b00; }
.tier.g90 { color: #3b2a00; background: linear-gradient(90deg, #fff1b8, #f5c542, #e0a400, #f5c542, #fff1b8); background-size: 200% 100%; animation: goldsh 3s linear infinite; box-shadow: 0 0 14px rgba(245, 197, 66, .6); }
.gold-key { display: inline-block; padding: 0 8px; border-radius: 999px; font-weight: 800; color: #3b2a00; background: linear-gradient(90deg, #fff1b8, #f5c542); }
/* ลูกเล่นเพิ่มพอดีๆ: การ์ดทุกใบยกตัวนุ่มขึ้นเวลาชี้ */
.mc { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mc:hover { box-shadow: 0 12px 28px -14px rgba(61, 143, 224, .55); }
@media (prefers-reduced-motion: reduce) { .mc.mc-gold, .mc-gold-tag, .pcard.g90::after, .tier.g90 { animation: none; } .mc { transition: none; } }


/* ===== โซเชียลเด่นขึ้น (2026-11-15): สีแบรนด์จริงทุกไอคอน + LINE ติดต่อทีมงาน ===== */
.hero-soc { padding: 5px 8px 5px 12px; border-radius: 999px; background: rgba(8, 20, 56, .72); border: 1px solid rgba(108, 184, 255, .35); box-shadow: 0 8px 20px -12px #000; }
.hero-soc small { display: inline !important; font-size: 12px; font-weight: 800; letter-spacing: 0; color: #ffd54a; }
.soc-ic { gap: 7px; }
.soc-ic a { width: 36px; height: 36px; border: 0; --g: rgba(108, 184, 255, .6); transition: transform .16s, box-shadow .16s; }
.soc-ic a svg { width: 18px; height: 18px; }
.soc-ic a:hover { transform: translateY(-3px) scale(1.12); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 0 18px var(--g); }
.soc-ic .si-facebook { background: #1877f2; --g: #1877f2; }
.soc-ic .si-fbgroup { background: linear-gradient(135deg, #2d88ff, #5b3fd6); --g: #5b3fd6; }
.soc-ic .si-youtube { background: #ff0033; --g: #ff0033; }
.soc-ic .si-tiktok { background: #010101; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; --g: #fe2c55; }
.soc-ic .si-instagram { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); --g: #d62976; }
.soc-ic .si-threads { background: #000; box-shadow: inset 0 0 0 1px #666; --g: rgba(255, 255, 255, .6); }
.soc-ic .si-line { background: #06c755; --g: #06c755; } .soc-ic .si-line svg { width: 22px; height: 22px; color: #fff; }
.soc-line { --sc: #06c755; --sc2: #00a63e; }
.soc-strip .soc-line svg { color: #06c755; }
/* การ์ด LINE ในแถบช่องทางทางการ = แถบติดต่อเต็มความกว้าง */
.sb-card.soc-line { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 16px; text-align: left; border-color: rgba(6, 199, 85, .55);
  background: linear-gradient(90deg, rgba(6, 199, 85, .22), rgba(6, 199, 85, .06)); }
.sb-card.soc-line .sb-ic { background: #06c755; } .sb-card.soc-line .sb-ic svg { color: #fff; width: 30px; height: 30px; }
.sb-card.soc-line small { color: #8ff0b6; font-size: 15px; font-weight: 800; }
@media (max-width: 760px) { .hero-soc { flex-wrap: wrap; } .soc-ic { flex-wrap: wrap; } .soc-ic a { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .soc-ic a { transition: none; } }
.sb-qr { width: 96px; height: 96px; flex: none; border-radius: 10px; background: #fff; padding: 4px; box-shadow: 0 0 0 2px #06c755, 0 6px 16px -6px #000; }
@media (max-width: 760px) { .sb-qr { display: none; } }


/* ===== ⭐ ดาวเด่นลงสนามวันนี้ — การ์ดสะสมมินิมอล (2026-11-15) · สีตามมูลค่าตลาด · เอียงสลับนิดๆ ===== */
.sx { margin: 0 0 26px; }
.sx-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; }
.sx-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: #eaf2ff; }
.sx-head h2::before { content: "★"; margin-right: 8px; color: #f5c542; }
.sx-head small { font-size: 12.5px; color: var(--muted); }
.sx-key { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.sx-key i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.sx-key .k-icon { color: #f5c542; border-color: rgba(245, 197, 66, .6); background: #0b0b0d; }
.sx-key .k-gold { color: #ffd76a; border-color: rgba(231, 190, 90, .5); background: #2a1f07; }
.sx-key .k-plat { color: #d8e8ff; border-color: rgba(190, 214, 240, .5); background: #1b2738; }
.sx-key .k-bronze { color: #e3a47a; border-color: rgba(205, 127, 80, .5); background: #2b1a11; }
.sx-row { display: flex; gap: 18px; overflow-x: auto; padding: 16px 10px 20px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #1b67b8 transparent; }
.sx-c { --bg: linear-gradient(165deg, #13264a, #0a1430 62%); --edge: rgba(108, 184, 255, .45); --acc: #9ccbff;
  flex: none; position: relative; width: 150px; height: 216px; border-radius: 14px; overflow: hidden; scroll-snap-align: start; text-decoration: none; color: #fff;
  background: var(--bg); transform: rotate(var(--r, 0deg)); transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s;
  box-shadow: inset 0 0 0 1px var(--edge), 0 16px 30px -16px #000; }
.sx-c::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  background-size: 260% 100%; background-position: 160% 0; }
.sx-c:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); box-shadow: inset 0 0 0 1.5px var(--acc), 0 22px 36px -16px #000, 0 0 24px -6px var(--acc); z-index: 2; }
.sx-c:hover::after { animation: sxSheen .9s ease-out both; }
@keyframes sxSheen { to { background-position: -60% 0; } }
.sx-ph { position: absolute; left: 0; right: 0; top: 0; height: 146px; }
.sx-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(.92) contrast(1.04);
  -webkit-mask-image: linear-gradient(#000 58%, transparent); mask-image: linear-gradient(#000 58%, transparent); }
.sx-tier { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 5px; font-size: 8.5px; font-weight: 800; letter-spacing: .16em; color: var(--acc);
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sx-rk { position: absolute; right: 9px; top: 6px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px #000; }
.sx-bd { position: absolute; right: 8px; top: 116px; width: 26px; height: 26px; display: grid; place-items: center; }
.sx-bd img { width: 26px !important; height: 26px !important; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.sx-nm { position: absolute; left: 12px; right: 36px; top: 138px; line-height: 1.05; }
.sx-nm small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.sx-nm b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-meta { position: absolute; left: 12px; right: 10px; top: 174px; font-size: 10.5px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-meta em { font-style: normal; font-weight: 800; font-size: 12.5px; color: var(--acc); }
.sx-ft { position: absolute; left: 12px; right: 10px; bottom: 7px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 9.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-c.t-icon { --bg: linear-gradient(160deg, #1c1608 0%, #09090b 52%, #1a1407); --edge: rgba(245, 197, 66, .85); --acc: #f5c542; }
.sx-c.t-icon::before { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; padding: 1.5px; z-index: 3;
  background: linear-gradient(120deg, #fff1b8, #c9971c, #fff1b8, #e0a400, #fff1b8); background-size: 300% 100%; animation: sxFoil 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes sxFoil { to { background-position: -300% 0; } }
.sx-c.t-gold { --bg: linear-gradient(165deg, #3b2b07, #15110a 62%); --edge: rgba(231, 190, 90, .7); --acc: #ffd76a; }
.sx-c.t-plat { --bg: linear-gradient(165deg, #27374e, #0e1624 62%); --edge: rgba(190, 214, 240, .65); --acc: #dceaff; }
.sx-c.t-bronze { --bg: linear-gradient(165deg, #3b2317, #140d09 62%); --edge: rgba(205, 127, 80, .7); --acc: #e8a97e; }
@media (max-width: 760px) { .sx-row { gap: 14px; } .sx-c { width: 128px; height: 190px; } .sx-ph { height: 124px; } .sx-bd { top: 96px; } .sx-nm { top: 118px; } .sx-nm b { font-size: 14px; } .sx-meta { top: 151px; } .sx-key { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .sx-c { transition: none; } .sx-c.t-icon::before, .sx-c:hover::after { animation: none; } }
.sx-nm b.lg { font-size: 13px; letter-spacing: 0; }
@media (max-width: 760px) { .sx-nm b.lg { font-size: 11.5px; } }

/* เร็วขึ้น 21/11/2026: ที่ว่างรอตัวการ์ด (lab.js เติมก่อนเลื่อนถึง) */
.mc-lz { min-height: 400px; }
