/* หน้า /partner/ — dashboard พันธมิตร (pages/partner.mjs · static/js/partner.js · ใบ design-briefs/affiliate-1110)
   โทนเดียวกับเว็บหลัก: teal #2f6f73 · ทอง #e8b64a · ครีม · หัวข้อน้ำตาล #4b2d17 · มุมมน · ฟอนต์ Mitr/Anuphan */
/* เลข 0 ของ Mitr มีขีดกลางเป็นรูปปกติของฟอนต์ (ไม่มีฟีเจอร์ zero ให้ปิด — ตรวจไฟล์ฟอนต์แล้ว) → ตัวเลขในหัวข้อ/ป้ายของหน้านี้ใช้ Anuphan ทุกจุดด้วย unicode-range · ตัวอักษรยังเป็น Mitr */
@font-face { font-family: 'PtDigits'; font-weight: 100 700; font-display: swap; src: url('/assets/fonts/anuphan-latin.woff2') format('woff2'); unicode-range: U+0025, U+002B-002E, U+0030-0039; }
.pt {
  --font-head: 'PtDigits', 'Mitr', 'Anuphan', system-ui, sans-serif; font-feature-settings: 'zero' 0;
  --pt-teal: #2f7776; --pt-teal-deep: #1f5051; --pt-ink: #173f41; --pt-gold: #e8b64a; --pt-gold-deep: #b9811f; --pt-gold-soft: #fbefd2;
  --pt-brown: #4b2d17; --pt-head: #294c48; --pt-num: 'Anuphan', 'Mitr', system-ui, sans-serif; --pt-text: #4a3b2e; --pt-muted: #7a6a58; --pt-paper: #fffaf0; --pt-line: #ead9b6;
  --pt-r: 22px; --pt-shadow: 0 10px 30px rgba(75, 45, 23, .09);
  color: var(--pt-text); overflow-x: clip; display: flex; flex-direction: column;
}
.pt > .pt-hero { order: -2; } 
body.is-partner .mobile-play { display: none !important; }
body.is-partner, body.is-partner.show-sticky { padding-bottom: 0; }
body.is-partner main::before, body.is-partner main::after { display: none; }
.pt h2, .pt h3, .pt p { margin: 0; } .pt h3 { text-wrap: balance; }
.pt-ico { display: inline-flex; width: 22px; height: 22px; flex: none; } .pt-ico svg { width: 100%; height: 100%; }
.pt-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1.5px dashed #d9a441; background: #fff6dc; color: #8a5a12; font: 600 .72rem/1.5 var(--font-head); letter-spacing: .02em; white-space: nowrap; }
.pt-tag.is-dark { border-color: #f2c46088; background: #ffffff14; color: #f6d27c; }
.pt-fine { margin-top: 14px !important; font-size: .86rem; line-height: 1.6; color: var(--pt-muted); }
.pt-card { background: linear-gradient(#fffdf6, var(--pt-paper)); border: 2px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow), inset 0 0 0 4px #fffdf6; }
.pt-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px !important; font: 600 .8rem/1.4 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #c98a1e; }
.pt-eyebrow::before { content: ''; width: 13px; height: 13px; background: #28663b; border-radius: 0 100% 0 100%; }
.pt-eyebrow.is-light { color: #f6d27c; } .pt-eyebrow.is-light::before { background: #f6d27c; }

/* ── hero ── */
.pt-hero { position: relative; isolation: isolate; width: min(1360px, calc(100% - 24px)); margin: 6px auto 0; border-radius: 30px; overflow: hidden; background: var(--pt-ink); box-shadow: 0 18px 44px rgba(23, 63, 65, .28); }
.pt-hero-bg { position: absolute; inset: 0; z-index: -1; }
.pt-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.pt-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(96deg, #173f41 0%, #1a4749f5 30%, #1f5051c4 52%, #1f505159 76%, #1f505126 100%), linear-gradient(0deg, #173f41cc 0%, #173f4100 42%); }
.pt-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 400px); gap: 40px; align-items: center; padding: 28px 0 28px; }
.pt-hero .pt-eyebrow { color: #f6d27c; } .pt-hero .pt-eyebrow::before { background: #f6d27c; }
body.inner .pt-hero h1 { margin: 0 0 8px; font: 600 clamp(2rem, 3.6vw, 2.9rem)/1.2 var(--font-head); color: #fff; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.pt-hero-sub { max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; color: #dcebe8; }
.pt-hero-sub b { color: #ffd98a; font-weight: 600; }
.pt-mode { display: flex; align-items: flex-start; gap: 12px; max-width: 40em; margin-top: 14px !important; padding: 12px 16px; border-radius: 16px; border: 1.5px dashed #f2c460aa; background: #0f2f31a6; color: #f3e6c8; font-size: .92rem; line-height: 1.6; flex-wrap: wrap; }
.pt-mode b { color: #ffd98a; font-family: var(--font-head); font-weight: 600; }
.pt-mode-dot { flex: none; width: 10px; height: 10px; margin-top: .5em; border-radius: 50%; background: #f2c460; box-shadow: 0 0 0 4px #f2c46033; }
.pt-mode > span:nth-child(2) { flex: 1; min-width: 0; }
.pt-mode[data-mode="live"] { border-style: solid; border-color: #86c55e99; } .pt-mode[data-mode="live"] .pt-mode-dot { background: #86c55e; box-shadow: 0 0 0 4px #86c55e33; } .pt-mode[data-mode="live"] b { color: #b7e69a; }
.pt-mode small { flex: 1 1 100%; padding-left: 22px; color: #ffcf9e; font-size: .84rem; }

.pt-pass { padding: 20px 20px 18px; border-radius: 24px; background: linear-gradient(#fffdf6, #fbf1da); border: 2px solid #f0dcae; box-shadow: 0 16px 40px rgba(0, 0, 0, .28), inset 0 0 0 4px #fffdf6; color: var(--pt-text); }
.pt-pass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px dashed var(--pt-line); }
.pt-pass-head img { width: 104px; height: auto; }
.pt-pass-head span { font: 600 .78rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #c98a1e; }
.pt-pass-row + .pt-pass-row { margin-top: 12px; }
.pt-pass-label { display: block; margin-bottom: 5px; font-size: .8rem; color: var(--pt-muted); }
.pt-copy { display: flex; align-items: stretch; gap: 8px; }
.pt-copy code { flex: 1; min-width: 0; display: block; align-content: center; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--pt-line); font: 600 .9rem/1.35 var(--pt-num); color: var(--pt-ink); overflow-wrap: anywhere; }
.pt-copy code i { font-style: normal; color: #b9a98f; }
.pt-copy code.pt-code { font: 600 1.2rem/1.2 var(--font-head); letter-spacing: .14em; color: var(--pt-teal-deep); }
.pt-copy-btn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--pt-teal); color: #fff; font: 600 .88rem/1 var(--font-head); cursor: pointer; box-shadow: 0 3px 0 var(--pt-teal-deep); transition: transform .12s, background .12s; }
.pt-copy-btn .pt-ico { width: 20px; height: 20px; }
.pt-copy-btn > span:last-child { position: absolute; right: 0; bottom: calc(100% + 8px); padding: 5px 10px; border-radius: 8px; background: #28663b; color: #fff; font-size: .78rem; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.pt-copy-btn.is-done > span:last-child { opacity: 1; transform: none; }
.pt-copy-btn:hover { background: #378886; } .pt-copy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pt-teal-deep); }
.pt-copy-btn:disabled { background: #c9c2b2; box-shadow: none; cursor: default; }
.pt-copy-btn.is-done { background: #3f8f52; box-shadow: 0 3px 0 #28663b; }
.pt-pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--pt-line); }
.pt-pass-foot strong { display: block; font: 700 .98rem/1.4 var(--pt-num); color: var(--pt-brown); white-space: nowrap; }
.pt-count { flex: none; display: flex; gap: 6px; font-size: .68rem; color: var(--pt-muted); text-align: center; }
.pt-count span { display: grid; min-width: 42px; padding: 6px 4px 5px; border-radius: 10px; background: var(--pt-teal-deep); color: #cfe3df; line-height: 1.3; }
.pt-count b { font: 600 1.15rem/1.1 var(--font-head); color: #ffd98a; }
.pt-count.is-open { padding: 8px 14px; border-radius: 999px; background: #e4f3d8; color: #28663b; font: 600 .85rem/1.2 var(--font-head); }

/* ── การ์ดสรุป ── */
.pt-kpis { position: relative; z-index: 2; margin-top: 28px; }
.pt-dash .pt-fold-in { padding-top: 16px; }
.pt-kpis-title { margin: 0 0 12px !important; font: 500 .95rem/1.5 var(--font-head); color: var(--pt-muted); }

.pt-kpi-grid { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-kpi { min-width: 0; padding: 16px 16px 15px; border-radius: 20px; background: linear-gradient(#fffdf6, var(--pt-paper)); border: 2px solid var(--pt-line); box-shadow: var(--pt-shadow); }
.pt-kpi header { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--pt-teal); }
.pt-kpi h3 { flex: 1; min-width: 0; font: 500 .92rem/1.3 var(--font-head); color: var(--pt-muted); }
.pt-kpi-num { margin-top: 8px !important; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--font-head); color: var(--pt-brown); overflow-wrap: anywhere; }
.pt-kpi-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-top: 2px !important; font-size: .82rem; color: var(--pt-muted); }
.pt-kpi.is-main { background: linear-gradient(135deg, #2b6f6e, var(--pt-teal-deep)); border-color: #1a4749; box-shadow: 0 14px 32px rgba(23, 63, 65, .3); }
.pt-kpi.is-main header { color: #f6d27c; } .pt-kpi.is-main h3 { color: #dcebe8; } .pt-kpi.is-main .pt-kpi-sub { color: #b9d3cf; }
.pt-kpi.is-main .pt-kpi-num { color: #ffd98a; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.pt-kpi.is-main .pt-tag { border-color: #f2c46088; background: #ffffff14; color: #f6d27c; }

/* ── ส่วนทั่วไป ── */
.pt-sec { padding: 44px 0 0; } .pt-sec:last-of-type { padding-bottom: 88px; }
.pt-head { max-width: 46em; margin-bottom: 18px; }
body.inner .pt-head h2 { font: 500 clamp(1.55rem, 2.8vw, 2.15rem)/1.3 var(--font-head); color: var(--pt-head); text-wrap: balance; }
.pt-head h2 + p { margin-top: 10px; font-size: 1.02rem; line-height: 1.75; color: var(--pt-muted); }

/* ── เครื่องจำลอง ── */
.pt-sim { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: stretch; }
.pt-sim-in { padding: 18px 26px 4px; }
.pt-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.pt-presets > span { margin-right: 4px; font-size: .86rem; color: var(--pt-muted); }
.pt-presets button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--pt-line); background: #fff; color: var(--pt-text); font: 500 .9rem/1 var(--font-head); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.pt-presets button:hover { border-color: var(--pt-teal); }
.pt-presets button[aria-pressed="true"] { background: var(--pt-teal); border-color: var(--pt-teal); color: #fff; }
.pt-field { padding: 10px 0 10px; border-top: 1.5px solid #f1e5c9; }
.pt-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pt-field label { font: 500 1rem/1.4 var(--font-head); color: var(--pt-brown); text-wrap: balance; }
.pt-field output { flex: none; font: 600 1.2rem/1.2 var(--font-head); color: var(--pt-teal-deep); }
.pt-hint { margin-top: 2px !important; font-size: .83rem; color: var(--pt-muted); }
.pt-field input[type="range"] { --fill: 0%; display: block; width: 100%; height: 32px; margin: 6px 0 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.pt-field input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--pt-teal) var(--fill), #eadfc6 var(--fill)); }
.pt-field input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--pt-teal) var(--fill), #eadfc6 var(--fill)); }
.pt-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a0, var(--pt-gold)); border: 3px solid #fff; box-shadow: 0 2px 0 var(--pt-gold-deep), 0 4px 10px rgba(75, 45, 23, .25); }
.pt-field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pt-gold); border: 3px solid #fff; box-shadow: 0 2px 0 var(--pt-gold-deep), 0 4px 10px rgba(75, 45, 23, .25); }
.pt-field input[type="range"]:focus-visible { outline: 3px solid #2f777655; outline-offset: 4px; border-radius: 999px; }

.pt-sim-out { position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px; background: linear-gradient(150deg, #2d7473 0%, var(--pt-teal-deep) 58%, #173f41 100%); border-color: #1a4749; box-shadow: 0 16px 36px rgba(23, 63, 65, .3), inset 0 0 0 4px #ffffff0f; color: #dcebe8; overflow: hidden; }
.pt-sim-out::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #f2c46033, #f2c46000 70%); pointer-events: none; }
.pt-out-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 1rem/1.4 var(--font-head); color: #dcebe8; }
.pt-out-total { margin-top: 10px !important; font: 600 clamp(2.6rem, 5.4vw, 3.8rem)/1.05 var(--font-head); color: #ffd98a; letter-spacing: -.01em; overflow-wrap: anywhere; text-shadow: 0 3px 0 #0f2f3166; }
.pt-out-sub { margin-top: 4px !important; font-size: .9rem; color: #b9d3cf; }
.pt-bar { display: flex; gap: 3px; height: 14px; margin: 22px 0 14px; border-radius: 999px; background: #0f2f3180; overflow: hidden; }
.pt-bar i { display: block; height: 100%; min-width: 0; transition: width .25s; } .pt-bar i[data-bar="share"] { background: #7fd0cb; } .pt-bar i[data-bar="bonus"] { background: var(--pt-gold); }
.pt-out-list { margin: 0; display: grid; gap: 10px; }
.pt-out-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pt-out-list dt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; font: 500 1rem/1.35 var(--font-head); color: #fff; }
.pt-out-list dt i { width: 12px; height: 12px; border-radius: 4px; } .k-share { background: #7fd0cb; } .k-bonus { background: var(--pt-gold); }
.pt-out-list dt small { grid-column: 2; font: 400 .8rem/1.4 var(--font-body); color: #b9d3cf; }
.pt-out-list dd { margin: 0; flex: none; font: 600 1.3rem/1.2 var(--font-head); color: #fff; }
.pt-out-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.pt-out-stats li { display: grid; gap: 2px; padding: 12px 10px; border-radius: 14px; background: #ffffff12; border: 1.5px solid #ffffff24; text-align: center; }
.pt-out-stats b { font: 700 1.35rem/1.2 var(--pt-num); color: #fff; }
.pt-out-stats span { font-size: .78rem; line-height: 1.35; color: #b9d3cf; }
.pt-out-fine { margin-top: auto !important; padding-top: 18px; font-size: .8rem; line-height: 1.6; color: #a9c6c2; }

/* ── บันไดโบนัส ── */
.pt-ladder-card { padding: 24px 26px 20px; background: linear-gradient(#f4fbf6 0, #fffdf6 46%, var(--pt-paper)); overflow: hidden; }
.pt-ladder-status { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pt-ladder-count { display: block; font: 500 1rem/1.2 var(--font-head); color: var(--pt-muted); }
.pt-ladder-count b { margin-right: 4px; font: 600 clamp(2rem, 3.6vw, 2.7rem)/1 var(--font-head); color: var(--pt-teal-deep); }
.pt-ladder-label { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; color: var(--pt-muted); }
.pt-ladder-next { flex: 1 1 320px; max-width: 460px; font: 500 .95rem/1.4 var(--font-head); color: var(--pt-brown); text-align: right; }
.pt-progress { height: 12px; margin-top: 8px; border-radius: 999px; background: #eadfc6; overflow: hidden; }
.pt-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f5ca6a, var(--pt-gold)); transition: width .3s; }
.pt-ladder { position: relative; display: flex; align-items: flex-end; gap: 12px; margin: 0; padding: 112px 0 0 132px; list-style: none; border-bottom: 10px solid #9ccb78; border-radius: 0 0 8px 8px; box-shadow: 0 5px 0 #7fb35c; }
.pt-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: calc(112px + var(--i) * 28px); padding: 12px 8px 10px; border: 2px solid var(--pt-line); border-bottom: 0; border-radius: 18px 18px 0 0; background: linear-gradient(#fffdf6, #f6ead0); text-align: center; transition: background .25s, border-color .25s; }
.pt-step-top { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pt-step-bonus { padding: 4px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--pt-line); font: 600 1rem/1.3 var(--font-head); color: var(--pt-gold-deep); white-space: nowrap; }
.pt-step-check { display: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #3f8f52; color: #fff; } .pt-step-check .pt-ico { width: 100%; height: 100%; }
.pt-step-block { display: grid; margin-top: 12px; }
.pt-step-no { font: 500 .78rem/1.3 var(--font-head); letter-spacing: .08em; color: var(--pt-muted); }
.pt-step-block strong { font: 600 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--font-head); color: var(--pt-brown); }
.pt-step-unit { font-size: .8rem; line-height: 1.35; color: var(--pt-muted); }
.pt-step.is-done { background: linear-gradient(#ffe7a8, #f2c460); border-color: #d9a441; }
.pt-step.is-done .pt-step-bonus { background: #fffaf0; border-color: #d9a441; color: #7a4f0e; } .pt-step.is-done .pt-step-check { display: block; }
.pt-step.is-done .pt-step-no, .pt-step.is-done .pt-step-unit { color: #7a5a1e; }
.pt-step.is-next { border-color: var(--pt-teal); border-style: dashed; background: linear-gradient(#f2fbf8, #e3f1ec); }
.pt-step.is-next .pt-step-bonus { border-color: var(--pt-teal); color: var(--pt-teal-deep); }
.pt-mascot { position: absolute; left: 66px; bottom: -8px; width: 112px; transform: translateX(-50%); pointer-events: none; transition: left .45s cubic-bezier(.3, 1.3, .5, 1), bottom .45s cubic-bezier(.3, 1.3, .5, 1); filter: drop-shadow(0 6px 6px rgba(75, 45, 23, .2)); }
.pt-mascot img { display: block; width: 100%; height: auto; }
.pt-start { display: none; }
.pt-ladder-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 22px; font-size: .9rem; color: var(--pt-muted); }
.pt-ladder-foot b { font-family: var(--font-head); font-weight: 600; color: var(--pt-brown); margin-right: 6px; }

.pt-live { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 20px; padding: 28px 30px; border-radius: var(--pt-r); overflow: hidden; background: #14283c; color: #dbe6f2; box-shadow: 0 14px 32px rgba(20, 40, 60, .28); }
.pt-live-art { position: absolute; inset: 0; z-index: -1; } .pt-live-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pt-live-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #101f33f2 0%, #101f33d9 45%, #101f3399 100%); }
.pt-live h3 { font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--font-head); color: #fff; }
.pt-live-body p:last-child { margin-top: 8px; max-width: 40em; font-size: .95rem; line-height: 1.7; color: #c9d6e6; }
.pt-live-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pt-live-steps li { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-width: 270px; padding: 12px 18px; border-radius: 16px; background: #ffffff17; border: 1.5px solid #ffffff38; backdrop-filter: blur(4px); }
.pt-live-steps span { font: 500 .98rem/1.3 var(--font-head); color: #fff; }
.pt-live-steps strong { font: 600 1.3rem/1.2 var(--font-head); color: #ffd98a; }

/* ── กราฟ ── */
.pt-chart-card { padding: 22px 24px 18px; }
.pt-chart-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font: 500 .92rem/1.4 var(--font-head); color: var(--pt-text); }
.pt-legend li { display: flex; align-items: center; gap: 8px; }
.pt-legend i { width: 14px; height: 14px; border-radius: 5px; } .k-new { background: #5fb0aa; } .k-rev { height: 4px !important; width: 20px !important; border-radius: 2px !important; background: #d9962a; }
.pt-chart { min-height: 230px; } .pt-chart svg { display: block; max-width: 100%; height: auto; }
.c-grid { stroke: #eadfc6; stroke-width: 1; stroke-dasharray: 3 5; }
.c-axis { font: 500 12px var(--font-body); fill: #8a7a66; } .c-axis.c-a { fill: #3d8b86; } .c-axis.c-b { fill: #b9811f; }
.c-bar { fill: #5fb0aa; } .c-bar:hover { fill: var(--pt-teal); }
.c-line { fill: none; stroke: #d9962a; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: #fffaf0; stroke: #d9962a; stroke-width: 2.5; }

/* ── ได้อะไรบ้าง ── */
.pt-gets { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 18px; }
.pt-get { padding: 24px 24px 22px; }
.pt-get-big { margin-bottom: 10px !important; font: 600 clamp(2.4rem, 4vw, 3.2rem)/1.05 var(--font-head); color: var(--pt-teal-deep); }
.pt-get-big small { font: 500 .4em/1 var(--font-head); color: var(--pt-muted); margin: 0 10px 0 0; } .pt-get-big small.suf { margin: 0 0 0 2px; font-size: .55em; color: var(--pt-teal); }
.pt-get h3 { font: 500 1.15rem/1.4 var(--font-head); color: var(--pt-brown); }
.pt-get h3 + p { margin-top: 8px; font-size: .96rem; line-height: 1.7; }
.pt-get-gift { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; background: linear-gradient(135deg, #fff6dc, var(--pt-paper)); }
.pt-gift-art { position: relative; margin: 0; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #fff, #f3e2bd); border: 2px solid var(--pt-line); overflow: hidden; }
.pt-gift-art img { width: 100%; height: 100%; object-fit: contain; }
.pt-gift-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: #4b2d17d9; color: #fff3d6; font: 600 .74rem/1.4 var(--font-head); text-align: center; letter-spacing: .04em; }
.pt-get-note { margin-top: 8px !important; font-size: .84rem; color: var(--pt-muted); }

/* ── ไทม์ไลน์ ── */
.pt-timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.pt-timeline::before { content: ''; position: absolute; left: 10px; right: 10px; top: 9px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--pt-teal), var(--pt-gold)); opacity: .55; }
.pt-timeline li { position: relative; padding-top: 34px; }
.pt-timeline li::before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fffaf0; border: 4px solid var(--pt-teal); box-sizing: border-box; }
.pt-timeline li.is-key::before { background: var(--pt-teal); box-shadow: 0 0 0 5px #2f777626; } .pt-timeline li.is-pay::before { border-color: var(--pt-gold-deep); background: var(--pt-gold); box-shadow: 0 0 0 5px #e8b64a33; }
.pt-tl-when { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #e3f1ec; color: var(--pt-teal-deep); font: 600 .84rem/1.5 var(--font-head); }
.pt-timeline li.is-pay .pt-tl-when { background: var(--pt-gold-soft); color: #7a4f0e; }
.pt-timeline h3 { margin-top: 10px; font: 500 1.08rem/1.4 var(--font-head); color: var(--pt-brown); }
.pt-timeline h3 + p { margin-top: 6px; font-size: .92rem; line-height: 1.65; color: var(--pt-muted); }

/* ── กติกา + ติดต่อ ── */
.pt-rules-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.pt-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.pt-rules li { display: flex; gap: 12px; }
.pt-rules .pt-ico { width: 26px; height: 26px; margin-top: 2px; color: var(--pt-teal); }
.pt-rules h3 { font: 500 1.05rem/1.4 var(--font-head); color: var(--pt-brown); }
.pt-rules h3 + p { margin-top: 4px; font-size: .93rem; line-height: 1.7; }
.pt-rules-wrap .pt-fine { margin-top: 26px !important; padding-top: 16px; border-top: 1.5px dashed var(--pt-line); }
.pt-contact { position: relative; align-self: center; margin-top: 44px; padding: 26px 24px 22px; border-radius: var(--pt-r); background: linear-gradient(150deg, #2d7473, var(--pt-teal-deep)); color: #dcebe8; text-align: center; box-shadow: 0 16px 36px rgba(23, 63, 65, .28); }
.pt-contact img { width: 108px; height: auto; margin: -64px auto 6px; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
body.inner .pt-contact h2 { font: 500 1.3rem/1.4 var(--font-head); color: #fff; }
.pt-contact h2 + p { margin: 8px 0 18px; font-size: .94rem; line-height: 1.7; }
.pt-contact .btn { max-width: 100%; overflow-wrap: anywhere; font-size: .95rem; }
.pt-contact-link { display: block; margin-top: 14px; color: #ffd98a; font: 500 .95rem/1.4 var(--font-head); }
.pt-contact-link:hover { color: #fff; }
.pt-contact-co { margin-top: 14px !important; font-size: .8rem; color: #a9c6c2; }

/* คอมกว้าง: ย้ายสถานะ (จำนวนผู้เล่นตัวจริง + แถบถึงขั้นถัดไป) มาไว้มุมซ้ายบนเหนือขั้นเตี้ย — เดิมมุมนี้ว่างโล่งตอนอยู่ขั้นต้น */
@media (min-width: 1061px) {
  .pt-ladder-card { position: relative; }
  .pt-ladder-status { position: absolute; z-index: 1; left: 28px; top: 24px; width: 300px; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 16px 16px; border-radius: 18px; background: #ffffffb8; border: 2px solid var(--pt-line); }
  .pt-ladder-next { flex: none; max-width: none; text-align: left; }
  .pt-ladder { padding-top: 150px; }
}
/* ยอดเงินจากแต้มเชียร์ (โหมดข้อมูลจริงเท่านั้น · ใบ creator-onboard-1114) — 4 การ์ด: ใหญ่ 1 + 3 */
.pt-cheer { margin-top: 18px; }
.pt-cheer-h { margin: 0 0 10px !important; font: 600 1.05rem/1.4 var(--font-head); color: var(--pt-teal); }
.pt-cheer .pt-kpi-grid { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); }
.pt-cheer .pt-fine { margin-top: 10px; }
/* ── แท็บเล็ต ── */
@media (max-width: 1060px) {
  .pt-cheer .pt-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-hero-in { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 28px; padding: 40px 0 44px; }
  .pt-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pt-kpi.is-main { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; } .pt-kpi.is-main header { grid-column: 1; } .pt-kpi.is-main .pt-kpi-sub { grid-column: 1; justify-content: flex-start; gap: 12px; } .pt-kpi.is-main .pt-kpi-num { grid-column: 2; grid-row: 1 / 3; margin: 0 !important; }
  .pt-kpi:not(.is-main) .pt-kpi-sub { flex-wrap: wrap; gap: 6px; } .pt-kpi:not(.is-main) .pt-kpi-sub > span:first-child { flex: 1 1 100%; }
  .pt-gets { grid-template-columns: 1fr 1fr; } .pt-get-gift { grid-column: 1 / -1; }
  .pt-rules-wrap { grid-template-columns: 1fr; } .pt-contact { position: relative; top: 0; margin-top: 44px; }
  .pt-ladder { padding-left: 112px; gap: 8px; }
}
@media (max-width: 860px) {
  .pt-hero-in { grid-template-columns: minmax(0, 1fr); padding: 36px 0 36px; }
  .pt-pass { max-width: 520px; }
  /* มือถือ/แท็บเล็ตแนวตั้ง: ภาพฉากอยู่ช่วงบนให้เห็นเต็ม ๆ แล้วไล่ลงพื้นเข้มใต้ข้อความ (เดิมทับมืดทั้งภาพจนไม่เห็น artwork) */
  .pt-hero-in { padding-top: 204px !important; }
  .pt-hero-bg img { height: 330px; object-position: 64% 32%; }
  .pt-hero-bg::after { background: linear-gradient(180deg, #173f4100 0, #173f411f 110px, #173f41b8 210px, #173f41 322px, #173f41 100%); }
  .pt-hero h1, .pt-hero .pt-eyebrow { text-shadow: 0 2px 10px #0f2f31cc; }
  .pt-sim { grid-template-columns: 1fr; }
  .pt-live { grid-template-columns: 1fr; gap: 18px; } .pt-live-steps li { min-width: 0; }
  .pt-timeline { grid-template-columns: 1fr; gap: 0; } .pt-timeline::before { left: 9px; right: auto; top: 10px; bottom: 30px; width: 4px; height: auto; background: linear-gradient(180deg, var(--pt-teal), var(--pt-gold)); }
  .pt-timeline li { padding: 0 0 24px 40px; } .pt-timeline li:last-child { padding-bottom: 0; }
}
/* ── มือถือ: บันไดเป็นรายการแนวตั้ง ── */
@media (max-width: 720px) {
  .pt-sec { padding-top: 54px; } .pt-sec:last-of-type { padding-bottom: 64px; }
  .pt-hero { width: calc(100% - 16px); border-radius: 24px; }
  .pt-hero-in { padding: 28px 0 22px; gap: 18px; }
  .pt-mode { font-size: .86rem; padding: 10px 12px; }
  .pt-pass { padding: 16px 14px 14px; border-radius: 20px; }
  .pt-kpis { margin-top: 44px; }
  .pt-kpi-grid, .pt-cheer .pt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pt-kpi { padding: 13px 13px 12px; border-radius: 18px; } .pt-kpi h3 { font-size: .86rem; }
  .pt-presets > span { flex: 1 1 100%; margin: 0; } .pt-presets button { flex: 1 1 0; padding: 0 8px; }
  .pt-sim-in { padding: 18px 16px 6px; } .pt-sim-out { padding: 22px 18px 18px; }
  .pt-field label { font-size: .95rem; } .pt-field output { font-size: 1.1rem; }
  .pt-ladder-card { padding: 18px 14px 16px; }
  .pt-ladder-next { text-align: left; flex-basis: 100%; max-width: none; }
  /* ขั้น 5 อยู่บน ขั้น 1 อยู่ล่าง (ไต่ขึ้นจริง) · รางซ้าย + ปริกกี้ยืนข้างขั้นปัจจุบัน (ยังไม่ถึงขั้น 1 = ยืนที่จุดเริ่มต้น) */
  .pt-ladder { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 18px 0 0 62px; border-bottom: 0; box-shadow: none; }
  .pt-ladder::before { content: ''; position: absolute; left: 26px; top: 30px; bottom: 22px; border-left: 4px dotted #9ccb78; }
  .pt-start { order: -1; display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 16px; border: 2px dashed #9ccb78; background: #f1f8ea; color: #4d7a35; font: 500 .9rem/1.3 var(--font-head); }
  .pt-ladder.is-start .pt-start { border-style: solid; background: #e4f3d8; color: #28663b; }
  .pt-step { height: auto; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-bottom: 2px solid var(--pt-line); border-radius: 16px; text-align: left; }
  .pt-step.is-done { border-bottom-color: #d9a441; } .pt-step.is-next { border-bottom: 2px dashed var(--pt-teal); }
  .pt-step-block { margin: 0; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 8px; min-width: 0; }
  .pt-step-no { grid-column: 1 / -1; } .pt-step-block strong { font-size: 1.5rem; }
  .pt-step-unit { align-self: center; } @media (max-width: 480px) { .pt-step-unit { grid-column: 1 / -1; white-space: nowrap; } }
  .pt-step-top { flex: none; flex-direction: row-reverse; }
  .pt-mascot { left: 28px; bottom: -4px; width: 60px; transition: bottom .45s cubic-bezier(.3, 1.3, .5, 1); }
  .pt-live { padding: 22px 18px; }
  .pt-chart-card { padding: 16px 12px 14px; }
  .pt-gets { grid-template-columns: 1fr; } .pt-get { padding: 20px 18px; }
  .pt-get-gift { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
  .pt-rules { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 400px) {
  .pt-pass { padding-inline: 12px; } .pt-copy { gap: 6px; }
  .pt-copy code:not(.pt-code) { font-size: .76rem; padding-inline: 8px; letter-spacing: -.01em; }
  .pt-pass-foot { flex-direction: column; align-items: flex-start; }
  .pt-live-steps li { gap: 10px; padding: 10px 14px; } .pt-live-steps strong { font-size: 1.15rem; }
}
/* ตัวเลข: ใช้ Anuphan ตัวหนา (เลข 0 ของ Mitr มีขีดกลาง อ่านเป็นตัวเลขเงินไม่สบายตา) */
.pt-kpi-num, .pt-out-total, .pt-out-list dd, .pt-field output, .pt-ladder-count b, .pt-step-block strong, .pt-step-bonus, .pt-live-steps strong, .pt-get-big, .pt-count b, .pt-ladder-next, .pt-tl-when, .pt-ladder-foot b + span { font-family: var(--pt-num); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pt-ladder-next, .pt-tl-when { font-weight: 600; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .pt-mascot, .pt-bar i, .pt-progress i { transition: none; } }

/* QR ของลิงก์สั้น (ใบ affiliate-1110 รอบ 3) */
.pt-qr { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; margin: 14px 0 2px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.55); }
.pt-qr[hidden] { display: none; }
.pt-qr-img { grid-row: span 2; line-height: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.pt-qr-img svg { width: 112px; height: 112px; display: block; }
.pt-qr p { margin: 0; font-size: .85rem; line-height: 1.4; }
.pt-qr-dl { font-size: .85rem; font-weight: 700; justify-self: start; }


/* ── รอบ 4 (11 พ.ย.): จอแรก = ข้อเสนอ 3 อย่าง · นิยามผู้เล่นที่อยู่ต่อ · ส่วนพับ ── */
.pt-offers { display: grid; gap: 8px; margin-top: 12px; max-width: 42em; }
.pt-offer { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 7px 16px 7px 8px; border-radius: 20px; background: linear-gradient(#fffdf6, #fbf1da); border: 2px solid #f0dcae; box-shadow: 0 8px 22px rgba(0, 0, 0, .22), inset 0 0 0 3px #fffdf6; color: var(--pt-text); }
.pt-offer-art { margin: 0; width: 64px; height: 64px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #fff, #f3e2bd); border: 2px solid var(--pt-line); overflow: hidden; display: grid; place-items: center; }
.pt-offer-art img { width: 100%; height: 100%; object-fit: contain; }
.pt-offer.is-ladder .pt-offer-art img { object-fit: cover; object-position: 50% 20%; }
.pt-offer-big { margin: 0; font: 700 clamp(1.7rem, 2.6vw, 2.15rem)/1.1 var(--pt-num); color: var(--pt-teal-deep); letter-spacing: -.01em; }
.pt-offer-big small { margin-right: 8px; font: 600 .42em/1 var(--font-head); color: var(--pt-gold-deep); letter-spacing: .02em; } .pt-offer-big small.suf { margin: 0 0 0 2px; font-size: .6em; color: var(--pt-teal); }
.pt-offer h2 { margin: 2px 0 0; font: 500 1.02rem/1.35 var(--font-head); color: var(--pt-brown); }
.pt-offer-text { margin-top: 1px !important; font-size: .86rem; line-height: 1.5; color: var(--pt-muted); }
.pt-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--pt-gold); color: #4b2d17; font: 600 1rem/1 var(--font-head); text-decoration: none; box-shadow: 0 3px 0 var(--pt-gold-deep); }
.pt-btn:hover { background: #f2c460; } .pt-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pt-gold-deep); }
.pt-btn.is-ghost { background: transparent; color: #f6e9cc; border: 2px solid #f6d27c88; box-shadow: none; } .pt-btn.is-ghost:hover { background: #ffffff18; }
.pt-btn:focus-visible, .pt-fold summary:focus-visible { outline: 3px solid #f6d27c; outline-offset: 3px; }

.pt-def { display: grid; gap: 12px; margin-bottom: 18px; padding: 18px 22px 16px; border-radius: var(--pt-r); background: #e8f4ee; border: 2px solid #b9dccb; }
.pt-def-title { font: 600 1.1rem/1.4 var(--font-head); color: var(--pt-teal-deep); }
.pt-def-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-def-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fffdf6; border: 1.5px solid #cfe5d8; font-size: .95rem; line-height: 1.45; }
.pt-def-list .pt-ico { width: 28px; height: 28px; color: var(--pt-teal); }
.pt-def-list b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--pt-teal); color: #fff; font: 700 .8rem/1 var(--pt-num); }
.pt-def-note { font-size: .95rem; line-height: 1.6; color: var(--pt-brown); font-weight: 500; }
.pt-cap { margin-top: 16px !important; padding: 12px 16px; border-radius: 14px; background: var(--pt-gold-soft); border: 1.5px dashed #d9a441; font-size: .92rem; line-height: 1.6; color: #6b4a14; } .pt-cap b { font-weight: 600; }

.pt-more .pt-head { margin-bottom: 18px; }
.pt-fold { margin-top: 12px; border-radius: 18px; background: linear-gradient(#fffdf6, var(--pt-paper)); border: 2px solid var(--pt-line); box-shadow: 0 6px 16px rgba(75, 45, 23, .06); }
.pt-fold summary { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 18px; cursor: pointer; list-style: none; }
.pt-fold summary::-webkit-details-marker { display: none; }
.pt-fold-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e3f1ec; color: var(--pt-teal-deep); flex: none; }
.pt-fold-title { flex: 1; min-width: 0; font: 500 1.08rem/1.4 var(--font-head); color: var(--pt-brown); }
.pt-fold-chev { flex: none; width: 12px; height: 12px; margin-right: 4px; border-right: 3px solid var(--pt-teal); border-bottom: 3px solid var(--pt-teal); transform: rotate(45deg); transition: transform .15s; }
.pt-fold[open] .pt-fold-chev { transform: rotate(-135deg); }
.pt-fold[open] summary { border-bottom: 1.5px dashed var(--pt-line); }
.pt-fold-in { padding: 20px 20px 22px; }
.pt-fold .pt-card { box-shadow: none; }
.pt-fold-in > .pt-fine { margin-top: 20px !important; padding-top: 16px; border-top: 1.5px dashed var(--pt-line); }
.pt-ask { padding-bottom: 72px; }
.pt-ask .pt-contact { margin: 40px auto 0; max-width: 520px; }

@media (max-width: 1060px) { .pt-def-list { grid-template-columns: 1fr; } .pt-offers { max-width: none; } }
@media (max-width: 860px) { .pt-offers { max-width: 520px; } }
@media (max-width: 720px) {
  .pt-offer { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; }
  .pt-offer-art { width: 58px; height: 58px; border-radius: 13px; }
  .pt-offer-big { font-size: 1.55rem; } .pt-offer h2 { font-size: .96rem; } .pt-offer-text { font-size: .8rem; line-height: 1.45; }
  .pt-hero-cta { margin-top: 14px; } .pt-btn { flex: 1 1 auto; }
  .pt-def { padding: 16px 14px 14px; } .pt-def-title { font-size: 1rem; }
  .pt-fold summary { padding: 10px 14px; min-height: 56px; } .pt-fold-title { font-size: 1rem; } .pt-fold-in { padding: 16px 14px 18px; }
}
@media (max-width: 720px) {
  .pt-hint { display: none; } .pt-field { padding: 8px 0 6px; }
  .pt-sec { padding-top: 34px; } .pt-ask { padding-bottom: 40px; } .pt-ask .pt-contact { margin-top: 56px; }
  .pt-out-stats { margin-top: 14px; } .pt-bar { margin: 14px 0 10px; }
  .pt-def-list { gap: 8px; } .pt-def-list li { padding: 8px 10px; font-size: .9rem; }
  .pt-ladder { padding-top: 10px; } .pt-step { padding: 8px 12px 8px 12px; }
  .pt-hero-in { padding-top: 188px !important; }
}
.pt-pay { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; margin: 0; font-size: .86rem; line-height: 1.45; color: #dcebe8; }
.pt-pay .pt-ico { width: 22px; height: 22px; color: #f6d27c; flex: none; }
