/* ============================================================
   The Last Standing (daily.php / quiz_daily.php)
   ใช้ร่วมกับ pro/pro.css + pro/menu.css  ทุกคลาสอยู่ใต้ .pp / .ls-nav
   โทน : สนามประลองพื้นเข้ม + ทอง (แบบกล่องนับถอยหลังหน้าแรกเว็บครูผู้ช่วย)
   ============================================================ */

/* ---------- แถบเมนู ---------- */

/* ปุ่มในแถบเมนูเป็นลิงก์ (<a>) : ไม่ขีดเส้นใต้ */
.ls-nav a {
    text-decoration: none;
}

/* มีลิงก์เมนูอยู่แล้ว ปุ่มสมัคร PRO ไม่ต้องดันขวา */
.ls-nav .topnav-cta.ls-up {
    margin-left: 0;
}

.ls-nav .ls-quit {
    margin-left: auto;
    background: rgba(31, 31, 31, 0.08);
    color: #444;
    box-shadow: none;
    font-weight: 500;
}

.ls-nav .ls-quit::after {
    display: none;
}

.ls-nav .ls-quit:hover {
    background: rgba(224, 91, 91, 0.12);
    color: #c0504d;
    transform: none;
    box-shadow: none;
}

@media screen and (max-width: 700px) {
    .ls-nav .topnav-cta.ls-up {
        display: none;
    }
}

/* ---------- ระดับตำแหน่ง (ผู้ท้าชิง → ตำนาน) ---------- */

.pp .ls-tier {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.pp .ls-tier.sm {
    padding: 1px 9px;
    font-size: 11px;
    gap: 5px;
}

.pp .ls-tier.t1 { background: #efe7d8; color: #7a6a4f; }
.pp .ls-tier.t2 { background: #f6dfc7; color: #9a5b22; }
.pp .ls-tier.t3 { background: #dde7f0; color: #3f5a73; }
.pp .ls-tier.t4 { background: #e6defa; color: #5a3fa6; }
.pp .ls-tier.t5 { background: #ffe0d2; color: #c2461f; }
.pp .ls-tier.t6 { background: linear-gradient(135deg, #f8e2b0, #d6b172 55%, #b88a45); color: #3b2a10; box-shadow: 0 4px 12px rgba(214, 177, 114, 0.45); }

/* ---------- รูปโปรไฟล์ในกิจกรรมนี้ (ls_avatar : สัตว์นักสู้ + สีพื้น av0-av9 ที่ระบบสุ่มให้แต่ละคน) ----------
   ขนาดตามที่อยู่ (hero / โพเดียม / ตาราง / ทำเนียบ)  ตัวรูปใหญ่ตาม font-size ของวง */

.pp .ls-avatar {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    color: #2c231a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(120, 90, 40, 0.25);
}

.pp .ls-avatar .emo {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.14));
}

.pp .ls-avatar.av0 { background: linear-gradient(145deg, #fff3d6, #f2cc7a); }
.pp .ls-avatar.av1 { background: linear-gradient(145deg, #ffe6dc, #ffab91); }
.pp .ls-avatar.av2 { background: linear-gradient(145deg, #e0f6ea, #98dbb8); }
.pp .ls-avatar.av3 { background: linear-gradient(145deg, #e3edff, #a8c3f3); }
.pp .ls-avatar.av4 { background: linear-gradient(145deg, #efe6ff, #c3aaf2); }
.pp .ls-avatar.av5 { background: linear-gradient(145deg, #ffe6f0, #f4a8c6); }
.pp .ls-avatar.av6 { background: linear-gradient(145deg, #edf7dc, #bddf95); }
.pp .ls-avatar.av7 { background: linear-gradient(145deg, #fff0dc, #ffc488); }
.pp .ls-avatar.av8 { background: linear-gradient(145deg, #dff5f8, #93d4df); }
.pp .ls-avatar.av9 { background: linear-gradient(145deg, #f6efe6, #dcc39d); }

/* ดาวแชมป์ประจำสัปดาห์ : ติดมุมขวาบนของรูป  ได้แชมป์หลายสัปดาห์ = มีตัวเลขจำนวนดาว */
.pp .ls-star {
    position: absolute;
    top: -4px;
    right: -7px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe89a, #f7b733 55%, #e0901a);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(150, 90, 0, 0.35);
    box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(224, 144, 26, 0.45);
}

.pp .ls-star b {
    font-size: 11px;
    font-weight: 800;
}

/* ดาวในข้อความ (คำอธิบายทำเนียบ) */
.pp .ls-star.inline {
    position: static;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
    vertical-align: 1px;
    box-shadow: 0 2px 5px rgba(224, 144, 26, 0.4);
}

/* ============================================================
   daily.php : สนามประลอง
   ============================================================ */

.pp.ls {
    background: #fff;
}

/* ---------- hero สนามรบ (พื้นเข้มเต็มความกว้าง) ---------- */

.pp .ls-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 60px;
    background:
        radial-gradient(circle at 12% 0%, rgba(214, 177, 114, 0.38), transparent 45%),
        radial-gradient(circle at 96% 110%, rgba(214, 177, 114, 0.22), transparent 45%),
        linear-gradient(135deg, #2c231a, #14110d 72%);
    color: #fff;
}

/* ลายเส้นทแยงจาง ๆ */
.pp .ls-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 24px);
    pointer-events: none;
}

.pp .ls-hero-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 36px;
}

.pp .ls-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(214, 177, 114, 0.55);
    background: rgba(255, 255, 255, 0.06);
    color: #f3e3c4;
    font-size: 14px;
    font-weight: 500;
}

.pp .ls-kicker i {
    color: var(--gold);
}

.pp .ls-hero h1 {
    margin: 18px 0 10px;
    font-size: 62px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff4da, #d6b172);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pp .ls-tag {
    margin: 0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.pp .ls-tag b {
    color: #f6e7c8;
    font-weight: 600;
}

/* กติกา 3 ข้อ */
.pp .ls-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.pp .ls-rules li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.pp .ls-rules i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
}

.pp .ls-rules .ok i  { background: rgba(63, 154, 100, 0.25); color: #8fd6ab; }
.pp .ls-rules .bad i { background: rgba(224, 91, 91, 0.25);  color: #ffaaa4; }
.pp .ls-rules .tm i  { background: rgba(214, 177, 114, 0.25); color: #f3d59c; }
.pp .ls-rules .wk i  { background: rgba(247, 183, 51, 0.22);  color: #ffd46b; }

/* กติกาแบบบรรทัดเดียว (ไม่มีกรอบ) */
.pp .ls-rules.mini {
    gap: 5px 16px;
    margin: 20px 0 30px;
}

.pp .ls-rules.mini li {
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.78);
}

.pp .ls-rules.mini i {
    width: 17px;
    height: 17px;
    font-size: 8px;
}

.pp .ls-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
}

.pp .btn.lg {
    height: 58px;
    padding: 0 32px;
    font-size: 18px;
}

.pp .btn.lg i {
    font-size: 17px;
}

/* พลังเข้าสนาม (จำนวนครั้งวันนี้) */
.pp .ls-energy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pp .ls-energy .lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.pp .ls-energy .lbl b {
    color: #f6e7c8;
    font-size: 13.5px;
}

.pp .ls-bolts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.pp .ls-bolts i {
    display: grid;
    place-items: center;
    width: 17px;
    height: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    font-size: 9.5px;
}

.pp .ls-bolts i.on {
    background: linear-gradient(180deg, #f8e2b0, #d6b172);
    color: #2c231a;
    box-shadow: 0 0 7px rgba(214, 177, 114, 0.5);
}

.pp .ls-energy .inf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #f6e7c8;
}

.pp .ls-energy .inf i {
    font-size: 18px;
    color: var(--gold);
}

.pp .ls-streak {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
}

.pp .ls-streak i {
    margin-right: 4px;
    color: #ff9d5c;
}

.pp .ls-streak b {
    color: #ffd2a8;
}

/* หมดพลังวันนี้ */
.pp .ls-out {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 14px;
    border: 1px solid rgba(224, 91, 91, 0.45);
    background: rgba(224, 91, 91, 0.12);
    color: #ffd0cc;
    font-size: 12.5px;
    line-height: 1.5;
}

.pp .ls-out i {
    flex: none;
    font-size: 16px;
    color: #ffaaa4;
}

.pp .ls-out a {
    color: #f6e7c8;
    text-decoration: underline;
}

/* การ์ดผู้เล่น (กระจกบนพื้นเข้ม) */
.pp .ls-player {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(214, 177, 114, 0.35);
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.pp .ls-pl-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pp .ls-pl-name {
    min-width: 0;
    font-size: 19px;
    font-weight: 600;
    color: #f6e7c8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-pl-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

/* ป้ายจำนวนสมัยแชมป์ในการ์ดผู้เล่น */
.pp .ls-champ-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe89a, #f7b733 55%, #e0901a);
    color: #3b2a10;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.pp .ls-pl-best {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 20px 0 2px;
}

.pp .ls-pl-best .num {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff1cf, #d6b172);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pp .ls-pl-best .unit {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
}

.pp .ls-pl-rank {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.pp .ls-pl-rank b {
    color: #f6e7c8;
    font-size: 16px;
}

.pp .ls-pl-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.pp .ls-pl-stats > div {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.pp .ls-pl-stats small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp .ls-pl-stats b {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pp .ls-pl-stats b span:not(.cnt) {
    margin-left: 3px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.62);
}

/* ความคืบหน้าสู่ระดับถัดไป */
.pp .ls-next {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.pp .ls-next b {
    color: #f6e7c8;
}

.pp .ls-next .meter {
    height: 8px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.pp .ls-next .meter > span {
    background: linear-gradient(90deg, #f3dcae, var(--gold));
}

/* ---------- บันไดระดับตำแหน่ง ---------- */

.pp .ls-ladder {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp .ls-ladder li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
    opacity: 0.55;
}

.pp .ls-ladder li.done {
    opacity: 1;
}

.pp .ls-ladder li.now {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: 0 10px 24px rgba(214, 177, 114, 0.3);
}

.pp .ls-ladder li.now::after {
    content: "คุณอยู่ที่นี่";
    position: absolute;
    top: -11px;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
}

.pp .ls-ladder .ic {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
}

.pp .ls-ladder .t1 .ic { background: #efe7d8; color: #7a6a4f; }
.pp .ls-ladder .t2 .ic { background: #f6dfc7; color: #9a5b22; }
.pp .ls-ladder .t3 .ic { background: #dde7f0; color: #3f5a73; }
.pp .ls-ladder .t4 .ic { background: #e6defa; color: #5a3fa6; }
.pp .ls-ladder .t5 .ic { background: #ffe0d2; color: #c2461f; }
.pp .ls-ladder .t6 .ic { background: linear-gradient(135deg, #f8e2b0, #d6b172 55%, #b88a45); color: #3b2a10; }

.pp .ls-ladder b {
    font-size: 15px;
    font-weight: 600;
}

.pp .ls-ladder small {
    font-size: 12px;
    color: var(--muted);
}

/* ---------- โพเดียม 5 อันดับแรก (บนจอเรียง 4 - 2 - 1 - 3 - 5) ---------- */

.pp .ls-podium {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto 26px;
}

/* ส่วนบนของแต่ละที่ (เหรียญ / รูป / ชื่อ / คะแนน) แยกจากฐาน ให้เล่นฉากคนละจังหวะได้ */
.pp .pd-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.pp .pd {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.pp .pd .pd-medal {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
}

.pp .pd.p1 .pd-medal {
    font-size: 38px;
    animation: ls-float 2.4s ease-in-out infinite;
}

@keyframes ls-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.pp .pd .ls-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

.pp .pd.p1 .ls-avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 14px 30px rgba(214, 177, 114, 0.5);
}

.pp .pd-name {
    display: block;
    max-width: 100%;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .pd-score {
    font-size: 14px;
    color: var(--muted);
}

.pp .pd-score b {
    display: inline-block;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ผู้ใช้อยู่บนโพเดียม : ชื่อสีทอง + วงทองรอบรูป (ไม่เพิ่มความสูง ตอนแข่งอันดับเลื่อนไปมาหน้าไม่กระตุก) */
.pp .pd.me .pd-name {
    color: var(--gold-dark);
}

.pp .pd.me:not(.p1) .ls-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 8px 18px rgba(120, 90, 40, 0.25);
}

.pp .pd small {
    font-size: 12px;
    color: var(--muted);
}

/* ฐานโพเดียม */
.pp .pd-base {
    display: grid;
    place-items: center;
    width: 100%;
    margin-top: 12px;
    border-radius: 18px 18px 6px 6px;
    font-size: 40px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.pp .pd.p1 .pd-base { height: 140px; background: linear-gradient(180deg, #ecd3a4, #c49a55); box-shadow: 0 14px 30px rgba(196, 154, 85, 0.4); }
.pp .pd.p2 .pd-base { height: 110px; background: linear-gradient(180deg, #e3e6ea, #aab2bc); }
.pp .pd.p3 .pd-base { height: 90px;  background: linear-gradient(180deg, #efcfae, #c08457); }
.pp .pd.p4 .pd-base { height: 70px;  background: linear-gradient(180deg, #f3eadb, #d6c3a0); color: rgba(255, 255, 255, 0.95); }
.pp .pd.p5 .pd-base { height: 56px;  background: linear-gradient(180deg, #f5efe4, #dccdb3); color: rgba(255, 255, 255, 0.95); }

/* อันดับ 4 - 5 : เหรียญเล็กกว่า (ดาวสงวนไว้ให้แชมป์ประจำสัปดาห์)  รูปเล็กกว่า */
.pp .pd.p4 .pd-medal,
.pp .pd.p5 .pd-medal {
    font-size: 24px;
}

.pp .pd.p4 .ls-avatar,
.pp .pd.p5 .ls-avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
}

.pp .pd.empty .ls-avatar {
    background: #f1ece3;
    color: #c9bda6;
}

/* ---------- ตารางอันดับ ---------- */

.pp .ls-board {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp .ls-board li {
    display: grid;
    grid-template-columns: 42px 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
}

.pp .ls-board li + li {
    border-top: 1px solid var(--line2);
}

.pp .ls-board li.me {
    border: 1px solid var(--gold);
    background: var(--cream);
}

.pp .ls-board li.me + li {
    border-top: 0;
}

/* คั่นก่อนแถวของผู้ใช้ (อยู่นอก 10 อันดับ) */
.pp .ls-board li.gap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px 6px;
    color: var(--muted);
    font-size: 12px;
}

.pp .ls-board li.gap::before,
.pp .ls-board li.gap::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.pp .ls-board li.gap + li {
    border-top: 0;
}

.pp .lb-no {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f5f1ea;
    color: var(--gold-dark);
    font-weight: 700;
}

.pp .lb-main {
    min-width: 0;
}

.pp .lb-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
}

.pp .lb-name span.n {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .lb-pro {
    flex: none;
    padding: 0 6px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e3c48e, var(--gold) 45%, #c49a55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.6;
}

.pp .lb-bar {
    height: 6px;
    margin-top: 6px;
    border-radius: 999px;
    background: #f3ede2;
    overflow: hidden;
}

.pp .lb-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ecd3a4, var(--gold));
}

.pp .lb-score {
    text-align: right;
    line-height: 1.1;
}

.pp .lb-score b {
    display: inline-block;
    font-size: 21px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* รูปโปรไฟล์ในตาราง / รายชื่อ : ดาวแชมป์ย่อตามรูป */
.pp .ls-board .ls-avatar {
    width: 38px;
    height: 38px;
    font-size: 16px;
    box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(120, 90, 40, 0.18);
}

.pp .ls-board .ls-star,
.pp .ls-mini .ls-star,
.pp .ls-hall-list .ls-star {
    top: -5px;
    right: -7px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    font-size: 8px;
}

.pp .ls-board .ls-star b,
.pp .ls-mini .ls-star b,
.pp .ls-hall-list .ls-star b {
    font-size: 9px;
}

.pp .lb-score small,
.pp .lb-time small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.pp .lb-time {
    text-align: right;
    font-size: 14px;
    color: #555;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* ---------- สมรภูมิวันนี้ / การต่อสู้ล่าสุด ---------- */

.pp .ls-today-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.pp .ls-today-stats > div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #faf6ef;
}

.pp .ls-today-stats small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.pp .ls-today-stats b {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pp .ls-mini {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp .ls-mini li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
}

.pp .ls-mini li + li {
    border-top: 1px solid var(--line2);
}

.pp .ls-mini .no {
    font-weight: 700;
    color: var(--gold-dark);
    text-align: center;
}

.pp .ls-mini .nm {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-mini .sc {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pp .ls-mini .sc small {
    margin-left: 4px;
    font-weight: 400;
    color: var(--muted);
}

/* รายชื่อที่มีรูปโปรไฟล์ (5 อันดับวันนี้) */
.pp .ls-mini.av li {
    grid-template-columns: 24px 32px minmax(0, 1fr) auto;
}

.pp .ls-mini .ls-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(120, 90, 40, 0.15);
}

/* ---------- ป้ายหัวข้อ / รีเฟรชอัตโนมัติ ---------- */

.pp [hidden] {
    display: none !important;
}

.pp .sec-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pp .ls-refresh b {
    display: inline-block;
    min-width: 1.3em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pp .ls-refresh.busy i {
    animation: ls-spin 0.8s linear infinite;
}

@keyframes ls-spin {
    to { transform: rotate(360deg); }
}

/* ---------- ทำเนียบแชมป์ประจำสัปดาห์ ---------- */

.pp .ls-champ {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
    align-items: stretch;
}

/* ศึกชิงแชมป์สัปดาห์นี้ (การ์ดพื้นเข้ม .dark ของ pro.css) */
.pp .ls-champ-live {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
}

.pp .ls-champ-live .ls-kicker {
    align-self: flex-start;
}

.pp .ls-champ-live h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #f6e7c8;
}

.pp .ls-cd {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.pp .ls-cd > div {
    padding: 12px 4px 10px;
    border-radius: 16px;
    border: 1px solid rgba(214, 177, 114, 0.25);
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.pp .ls-cd b {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff6df, #e2c283);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pp .ls-cd small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.pp .ls-close {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.66);
}

.pp .ls-close i {
    margin-right: 6px;
    color: var(--gold);
}

.pp .ls-leader {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(214, 177, 114, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

.pp .ls-leader .ls-avatar {
    width: 48px;
    height: 48px;
    font-size: 19px;
}

.pp .ls-leader small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.pp .ls-leader b {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #f6e7c8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-leader .sc {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.pp .ls-leader .sc b {
    display: inline;
    font-size: 24px;
    color: #fff;
}

/* แชมป์ล่าสุด + รายชื่อแชมป์ย้อนหลัง */
.pp .ls-hall {
    min-width: 0;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pp .ls-hall-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid #efd9a8;
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 183, 51, 0.22), transparent 45%),
        linear-gradient(135deg, #fffaf0, #f8ebcd);
}

.pp .ls-hall-top .ls-avatar {
    width: 78px;
    height: 78px;
    font-size: 31px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold), 0 12px 24px rgba(214, 177, 114, 0.45);
}

.pp .ls-hall-top .ls-star {
    min-width: 26px;
    height: 26px;
    font-size: 13px;
}

.pp .ls-hall-top .rb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
}

.pp .ls-hall-top .nm {
    display: block;
    margin: 2px 0;
    font-size: 23px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-hall-top .wk {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.pp .ls-hall-top .sc {
    flex: none;
    margin-left: auto;
    text-align: center;
    line-height: 1;
}

.pp .ls-hall-top .sc b {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--gold-dark);
    font-variant-numeric: tabular-nums;
}

.pp .ls-hall-top .sc small {
    font-size: 13px;
    color: var(--muted);
}

.pp .ls-hall-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.pp .ls-hall-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    background: #faf6ef;
}

.pp .ls-hall-list .ls-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
    box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(120, 90, 40, 0.15);
}

.pp .ls-hall-list .nm {
    display: block;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-hall-list .wk {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.pp .ls-hall-list .sc {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pp .ls-hall-list .sc small {
    margin-left: 4px;
    font-weight: 400;
    color: var(--muted);
}

.pp .ls-hall-more {
    margin-top: 12px;
}

.pp .ls-hall-more summary {
    cursor: pointer;
    width: max-content;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 500;
}

/* ---------- แพ็กเกจ (สมาชิกฟรี) ---------- */

.pp .ls-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.pp .ls-plan {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.pp .ls-plan.pro {
    border: 2px solid var(--gold);
    box-shadow: 0 16px 36px rgba(214, 177, 114, 0.3);
}

.pp .ls-plan h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.pp .ls-plan .desc {
    margin: 6px 0 14px;
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.55;
}

.pp .ls-plan .price {
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line2);
    font-size: 34px;
    font-weight: 700;
}

.pp .ls-plan .price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.pp .ls-plan ul {
    flex: 1;
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.pp .ls-plan li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pp .ls-plan li i {
    margin-top: 3px;
}

.pp .ls-plan li .fa-square-check { color: var(--gold); }
.pp .ls-plan li .fa-xmark        { color: var(--red); }

/* ภาพโปรโมตสมาชิก PRO : โครงป๊อปอัป .ls-modal อยู่ใน ls_auth.css (2026-10-01) */

/* ============================================================
   quiz_daily.php : โหมดผจญภัย (ทั้งหน้าพื้นเข้ม)
   ============================================================ */

.pp.ls-dark {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 15% 8%, rgba(214, 177, 114, 0.28), transparent 38%),
        radial-gradient(circle at 90% 90%, rgba(214, 177, 114, 0.16), transparent 42%),
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.3), transparent 60%),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.25), transparent 60%),
        radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.3), transparent 60%),
        linear-gradient(160deg, #241c14, #120f0b 65%);
    background-attachment: fixed;
}

body.ls-body-dark {
    background: #120f0b;
}

.pp .ls-play-in {
    width: min(860px, 100% - 32px);
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* ---------- HUD ด้านบน (ติดใต้แถบเมนู) ---------- */

.pp .ls-hud {
    position: sticky;
    top: calc(73px + var(--pend-h, 0px));   /* + แถบสถานะการสมัคร PRO (pro/menu.css .it-pend) ถ้ามี */
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 10px;
    border-radius: 22px;
    border: 1px solid rgba(214, 177, 114, 0.35);
    background: rgba(28, 22, 16, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.pp .hud-stage {
    flex: none;
    display: grid;
    place-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    color: #2c231a;
    text-align: center;
    line-height: 1.05;
}

.pp .hud-stage small {
    font-size: 11px;
    font-weight: 600;
}

.pp .hud-stage b {
    font-size: 26px;
    font-weight: 800;
}

.pp .hud-items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

/* ช่องสถานะ : ไอคอนในวง + ป้ายเล็กด้านบน ตัวเลขใหญ่ด้านล่าง */
.pp .hud-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.pp .hud-item > i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.pp .hud-item small {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6);
}

.pp .hud-item b {
    display: block;
    font-size: 19px;
    line-height: 1.15;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pp .hud-item .fa-heart { color: #ff7b7b; }
.pp .hud-item .fa-bolt  { color: #f3d59c; }
.pp .hud-item .fa-trophy { color: var(--gold); }
.pp .hud-item .fa-crown { color: #f8e2b0; }

/* นาฬิกานับถอยหลัง */
.pp .hud-timer {
    --p: 100;
    --c: var(--gold);
    position: relative;
    flex: none;
    display: grid;
    place-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
    transition: background .3s;
}

.pp .hud-timer::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #1c1610;
}

.pp .hud-timer b {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pp .hud-timer small {
    position: relative;
    display: block;
    font-size: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.pp .hud-timer.warn { --c: #f0a33a; }
.pp .hud-timer.hot  { --c: #ff5f5f; animation: ls-pulse 0.8s ease-in-out infinite; }

@keyframes ls-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 95, 95, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(255, 95, 95, 0); }
}

/* ---------- แผนที่เส้นทาง (ด่าน / ระดับ / สถิติ) : การ์ดแยกจากแถบสถานะ ----------
   ชั้นป้ายเหนือเส้น : สถิติสูงสุด (สูงสุด มีเสาธง) > ด่านของผู้เล่น  ใต้เส้น : ชื่อระดับ  จึงไม่ทับกัน */

.pp .ls-map {
    margin: 14px 0 16px;
    padding: 62px 50px 34px 46px;   /* ชั้นป้ายเหนือเส้นสูงสุด 61px ใต้เส้น 34px */
    border-radius: 22px;
    border: 1px solid rgba(214, 177, 114, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.pp .ls-trail {
    position: relative;
    height: 12px;
}

.pp .ls-trail .road {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 14px, rgba(255, 255, 255, 0.05) 14px 22px);
    overflow: hidden;
}

.pp .ls-trail .road > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3dcae, var(--gold));
    box-shadow: 0 0 14px rgba(214, 177, 114, 0.6);
    transition: width .6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* หมุดระดับ / สถิติ บนเส้นทาง */
.pp .ls-trail .pin {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    border-radius: 50%;
    background: #2c231a;
    border: 2px solid rgba(214, 177, 114, 0.5);
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    transform: translateY(-50%);
}

.pp .ls-trail .pin.pass {
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    border-color: #f3dcae;
    color: #2c231a;
}

.pp .ls-trail .pin em {
    position: absolute;
    top: 100%;
    margin-top: 6px;
    font-size: 11px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.pp .ls-trail .pin.rec {
    border-color: #ff9d5c;
    color: #ffb27d;
}

/* สถิติสูงสุด : ป้ายลอยสูงกว่าป้ายด่าน มีเสาธงลงมาที่หมุด */
.pp .ls-trail .pin.rec em {
    top: auto;
    bottom: 100%;
    margin: 0 0 30px;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(255, 157, 92, 0.16);
    color: #ffb27d;
}

.pp .ls-trail .pin.rec::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 30px;
    background: rgba(255, 157, 92, 0.5);
}

/* ตัวผู้เล่น : วงไอคอนอยู่บนเส้นทางพอดี ป้ายด่านอยู่เหนือวง
   (ชื่อคลาสไม่ใช้ .hero : ชนกับหัวหน้าแรก PRO ใน pro.css ที่มี padding ดันตัวผู้เล่นลอยขึ้นไปทับแถบสถานะ) */
.pp .ls-runner {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, calc(-100% + 16px));
    transition: left .6s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

.pp .ls-runner b {
    padding: 1px 10px;
    border-radius: 999px;
    background: #fff;
    color: #2c231a;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.pp .ls-runner i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    color: #2c231a;
    font-size: 15px;
    box-shadow: 0 0 0 3px #1c1610, 0 0 18px rgba(214, 177, 114, 0.75);
    animation: ls-bob 0.5s ease-in-out infinite alternate;
}

@keyframes ls-bob {
    from { transform: translateY(0); }
    to   { transform: translateY(-3px); }
}

/* ---------- ข้อความ "ถูกต้อง! ผ่านด่าน" ---------- */

.pp .ls-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(63, 154, 100, 0.5);
    background: rgba(63, 154, 100, 0.16);
    color: #bdf0d0;
    font-size: 15px;
    animation: ls-toast-in .5s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.pp .ls-toast i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3f9a64;
    color: #fff;
}

.pp .ls-toast b {
    color: #fff;
}

@keyframes ls-toast-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

/* ---------- การ์ดคำถาม ---------- */

.pp .ls-q {
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(214, 177, 114, 0.55);
    background: linear-gradient(180deg, #fffaf0, #f7eedc);
    color: var(--ink);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    animation: ls-q-in .45s cubic-bezier(0.33, 1, 0.68, 1) both;
}

@keyframes ls-q-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ls-q-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pp .ls-q-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pp .ls-q-no {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #2c231a;
    color: #f6e7c8;
    font-size: 14px;
    font-weight: 600;
}

.pp .ls-q-hint {
    font-size: 13px;
    color: #8a7a5e;
}

.pp .ls-q-text {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.pp .ls-q-text img,
.pp .ls-q-img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.pp .ls-q-img {
    margin: 14px 0 0;
    text-align: center;
}

.pp .ls-opts {
    display: grid;
    gap: 10px;
    margin: 20px 0 22px;
}

.pp .ls-opt {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 2px solid #eadfca;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.pp .ls-opt:hover {
    border-color: #d9c49c;
    transform: translateY(-1px);
}

.pp .ls-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pp .ls-opt .k {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f3ede2;
    color: var(--gold-dark);
    font-weight: 700;
    transition: background .15s, color .15s;
}

.pp .ls-opt .t {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.pp .ls-opt:has(input:checked),
.pp .ls-opt.sel {
    border-color: var(--gold);
    background: #fff7e6;
    box-shadow: 0 8px 20px rgba(214, 177, 114, 0.35);
}

.pp .ls-opt:has(input:checked) .k,
.pp .ls-opt.sel .k {
    background: var(--gold);
    color: #fff;
}

.pp .ls-opt:has(input:focus-visible) {
    outline: 3px solid rgba(214, 177, 114, 0.6);
    outline-offset: 2px;
}

.pp .ls-q .btn.shine {
    height: 54px;
    font-size: 17px;
}

.pp .ls-keys {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: #9a8b70;
}

/* หมดเวลา : ปิดการเลือกระหว่างส่ง */
.pp .ls-q.timeup .ls-opts {
    pointer-events: none;
    opacity: 0.6;
}

.pp .ls-timeup {
    display: none;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fdeceb;
    color: #b53c3c;
    font-weight: 600;
    text-align: center;
}

.pp .ls-q.timeup .ls-timeup {
    display: block;
}

/* ---------- จบเกม ---------- */

/* ไอคอนแพ้ (หน้าตัดสินใจชุบชีวิต) */
.pp .ls-over-ic {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    color: #2c231a;
    font-size: 32px;
    box-shadow: 0 12px 30px rgba(214, 177, 114, 0.45);
}

.pp .ls-over-ic.bad {
    background: linear-gradient(145deg, #ffb3a8, #e05b5b);
    color: #fff;
    box-shadow: 0 12px 30px rgba(224, 91, 91, 0.4);
}

/* ---------- หน้าผลลัพธ์ (quiz_daily.php?action=result) ----------
   หัว (ไอคอนซ้าย ข้อความขวา) / วงแหวนคะแนน + ระดับ / สถิติ 4 ช่องแถวเดียว / ปุ่ม 2 ปุ่มคู่กัน / ภารกิจ + กล่องสุ่ม
   ต่อด้วยช่องเวลาแต่ละด่าน (ช่องละข้อ แทนรายการยาว) */

.pp .ls-res,
.pp .ls-res-path {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.pp .ls-res {
    position: relative;
    overflow: hidden;
    padding: 24px 28px 26px;
    border-radius: 26px;
    border: 1px solid rgba(214, 177, 114, 0.4);
    background:
        radial-gradient(110% 60% at 0% 0%, rgba(224, 91, 91, 0.2), transparent 60%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    animation: ls-q-in .5s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.pp .ls-res.win {
    background:
        radial-gradient(110% 60% at 0% 0%, rgba(242, 181, 58, 0.26), transparent 60%),
        rgba(255, 255, 255, 0.06);
}

/* หัว */
.pp .ls-res-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(214, 177, 114, 0.3);
}

.pp .ls-res-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffb3a8, #e05b5b);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 10px 24px rgba(224, 91, 91, 0.4);
    transform: rotate(-6deg);
}

.pp .ls-res.win .ls-res-ic {
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    color: #2c231a;
    box-shadow: 0 10px 24px rgba(214, 177, 114, 0.45);
}

.pp .ls-res-head > div {
    min-width: 0;
}

.pp .ls-res-head small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    color: #ff9a8f;
}

.pp .ls-res.win .ls-res-head small {
    color: #f3d59c;
}

.pp .ls-res-head h1 {
    margin: 1px 0 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #f6e7c8;
}

.pp .ls-res-head p {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}

/* คะแนน : วงแหวน = ความคืบหน้าสู่ระดับถัดไป */
.pp .ls-res-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.pp .ls-res-ring {
    position: relative;
    flex: none;
    display: grid;
    place-content: center;
    justify-items: center;
    width: 136px;
    height: 136px;
    text-align: center;
}

.pp .ls-res-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.pp .ls-res-ring circle {
    fill: none;
    stroke-width: 9;
}

.pp .ls-res-ring .trk {
    stroke: rgba(255, 255, 255, 0.1);
}

.pp .ls-res-ring .val {
    stroke: url(#ls-res-g);
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(242, 200, 120, 0.5));
}

.pp .ls-res-ring small {
    position: relative;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6);
}

.pp .ls-res-ring b {
    position: relative;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff1cf, #d6b172);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pp .ls-res-side {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-width: 0;
}

.pp .ls-res-side .ls-tier {
    padding: 4px 14px;
    font-size: 14px;
}

.pp .ls-res-side p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.pp .ls-res-side p b {
    color: #f3d59c;
}

/* ป้ายสถิติใหม่ */
.pp .ls-record {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9d5c, #e0604a);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(224, 96, 74, 0.45);
    animation: ls-float 2s ease-in-out infinite;
}

/* ที่มาของคะแนน (โบนัส x2 / การ์ดที่ใช้) */
.pp .ls-res-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.pp .ls-res-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.pp .ls-res-chips i {
    font-size: 11px;
    color: #f3d59c;
}

.pp .ls-res-chips b {
    color: #fff;
}

.pp .ls-res-chips .gold {
    background: rgba(242, 181, 58, 0.18);
    color: #ffe3a3;
}

/* สถิติ 4 ช่องแถวเดียว */
.pp .ls-res-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.pp .ls-res-stats > div {
    min-width: 0;
    padding: 12px 8px 11px;
    text-align: center;
}

.pp .ls-res-stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.pp .ls-res-stats small,
.pp .ls-res-stats em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-res-stats small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.pp .ls-res-stats b {
    display: block;
    margin-top: 2px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pp .ls-res-stats > div:first-child b {
    color: #f3d59c;
}

.pp .ls-res-stats em {
    font-size: 11px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.45);
}

/* พลังเข้าสนาม */
.pp .ls-res-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
}

.pp .ls-res-note i {
    color: #f3d59c;
}

.pp .ls-res-note b {
    color: #fff;
}

.pp .ls-res-note.out {
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(224, 91, 91, 0.4);
    background: rgba(224, 91, 91, 0.12);
    color: #ffd0cc;
}

.pp .ls-res-note.out i {
    color: #ffaaa4;
}

/* ปุ่ม : คู่กันเท่า ๆ กัน (ปุ่มเดียว = เต็มแถว) */
.pp .ls-res-btns {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: 520px;
    margin: 20px auto 0;
}

.pp .ls-res-note + .ls-res-btns {
    margin-top: 12px;
}

.pp .ls-res-btns .btn {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font-size: 16px;
}

.pp .ls-res-btns .btn.line {
    background: transparent;
    color: #f3e3c4;
    border-color: rgba(214, 177, 114, 0.6);
}

.pp .ls-res-btns .btn.line:hover {
    background: var(--gold);
    color: #2c231a;
}

/* ภารกิจวันนี้ + กล่องสุ่ม */
.pp .ls-res-more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(214, 177, 114, 0.3);
}

.pp .ls-res-more a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(214, 177, 114, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.pp .ls-res-more a:hover {
    border-color: rgba(214, 177, 114, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.pp .ls-res-more a > i {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(214, 177, 114, 0.16);
    color: #f3d59c;
    font-size: 15px;
}

.pp .ls-res-more a > span {
    flex: 1;
    min-width: 0;
}

.pp .ls-res-more small {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
}

.pp .ls-res-more b {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp .ls-res-more .bar {
    display: block;
    height: 4px;
    margin-top: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.pp .ls-res-more .bar > em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f3d59c, #d6b172);
}

.pp .ls-res-more .go {
    display: block;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
    color: #ffe3a3;
}

.pp .ls-res-more a.done > i {
    background: rgba(63, 154, 100, 0.28);
    color: #8fd6ab;
}

.pp .ls-res-more a.done .bar > em {
    background: linear-gradient(90deg, #8fd6ab, #3f9a64);
}

.pp .ls-res-more a.has {
    border-color: #f2c35f;
    background: rgba(242, 181, 58, 0.16);
    animation: lsb-chip-glow 1.8s ease-in-out infinite;
}

.pp .ls-res-more a.has > i {
    background: linear-gradient(145deg, #ffe08a, #f2b53a);
    color: #3b2a10;
}

/* เวลาที่ใช้ในแต่ละด่าน : ช่องละข้อ  แถบล่าง = สัดส่วนเวลาที่ใช้ (--p) */
.pp .ls-res-path {
    margin-top: 16px;
    padding: 18px 22px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.pp .ls-res-path h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #f6e7c8;
}

.pp .ls-res-path h3 i {
    color: #f3d59c;
}

.pp .ls-res-path.empty h3 {
    margin: 0;
}

.pp .ls-res-path ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp .ls-res-path li {
    position: relative;
    padding: 7px 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}

/* แถบเวลา : ราง (::before) + ความยาวตามเวลาที่ใช้ (::after  --p = 0-100) */
.pp .ls-res-path li::before,
.pp .ls-res-path li::after {
    content: "";
    position: absolute;
    left: 7px;
    bottom: 5px;
    height: 3px;
    border-radius: 999px;
}

.pp .ls-res-path li::before {
    right: 7px;
    background: rgba(255, 255, 255, 0.1);
}

.pp .ls-res-path li::after {
    width: calc((100% - 14px) * var(--p) / 100);
    background: linear-gradient(90deg, #8fd6ab, #3f9a64);
}

.pp .ls-res-path li small {
    display: block;
    font-size: 10.5px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
}

.pp .ls-res-path li b {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pp .ls-res-path li b span {
    margin-left: 2px;
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

/* ป้ายวงกลมที่มุมช่อง : โล่ / ชุบชีวิต / ตกรอบ (อยู่นอกช่อง ไม่ทับเลขด่าน) */
.pp .ls-res-path li > i {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 8.5px;
    box-shadow: 0 0 0 2px #221c16;
}

.pp .ls-res-path li.saved {
    border-color: rgba(242, 181, 58, 0.55);
    background: rgba(242, 181, 58, 0.1);
}

.pp .ls-res-path li.saved::after {
    background: linear-gradient(90deg, #ffe08a, #f2b53a);
}

.pp .ls-res-path li.saved > i {
    background: linear-gradient(145deg, #ffe08a, #f2b53a);
    color: #3b2a10;
}

.pp .ls-res-path li.fail {
    border-color: rgba(224, 91, 91, 0.6);
    background: rgba(224, 91, 91, 0.14);
}

.pp .ls-res-path li.fail::after {
    background: linear-gradient(90deg, #ffb3a8, #e05b5b);
}

.pp .ls-res-path li.fail > i {
    background: #e05b5b;
    color: #fff;
}

/* เกมยาว (เกิน 24 ข้อ) : ช่องเล็กลง เหลือแค่เลขด่าน */
.pp .ls-res-path.dense ol {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
}

.pp .ls-res-path.dense li small span {
    display: none;
}

.pp .ls-res-path .lg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin: 12px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.pp .ls-res-path .lg span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pp .ls-res-path .lg span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: #6cc494;
}

.pp .ls-res-path .lg .saved::before { background: #f2b53a; }
.pp .ls-res-path .lg .fail::before { background: #e05b5b; }
.pp .ls-res-path .lg .tm::before { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); }

/* ลูกเล่น (เฉพาะ .ls-anim) : วงแหวนวิ่งพร้อมตัวเลข  ช่องด่านเด้งเรียงกันทีละช่อง แถบเวลาค่อย ๆ ยาว */
.ls-anim .pp .ls-res-ring .val {
    animation: ls-res-ring 1.3s .2s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.ls-anim .pp .ls-res-path li {
    animation: ls-res-tile .4s calc(var(--i) * 35ms + .3s) cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.ls-anim .pp .ls-res-path li::after {
    animation: ls-res-bar .7s calc(var(--i) * 35ms + .45s) ease-out both;
}

@keyframes ls-res-ring {
    from { stroke-dashoffset: 326.7; }
}

@keyframes ls-res-tile {
    from { opacity: 0; transform: translateY(8px) scale(0.9); }
}

@keyframes ls-res-bar {
    from { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pp .pd.p1 .pd-medal,
    .pp .ls-runner i,
    .pp .hud-timer.hot,
    .pp .ls-record,
    .pp .ls-q,
    .pp .ls-res,
    .pp .ls-toast {
        animation: none;
    }
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 960px) {
    .pp .ls-hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pp .ls-hero h1 { font-size: 50px; }
    .pp .ls-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
    .pp .ls-champ { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (max-width: 700px) {
    .pp .ls-plans { grid-template-columns: minmax(0, 1fr); }
    .pp .sec-tags { justify-content: flex-start; }
    .pp .ls-hall-list { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (max-width: 480px) {
    .pp .ls-hero { padding: 30px 0 36px; }
    .pp .ls-hero h1 { font-size: 38px; margin-top: 14px; }
    .pp .ls-tag { font-size: 16px; }
    .pp .ls-rules { gap: 8px; margin: 18px 0 22px; }
    .pp .ls-rules li { font-size: 13px; padding: 6px 12px 6px 6px; }
    .pp .ls-rules i { width: 26px; height: 26px; font-size: 12px; }
    .pp .btn.lg { width: 100%; height: 54px; }
    .pp .ls-player { padding: 18px; border-radius: 18px; }
    .pp .ls-pl-best .num { font-size: 52px; }
    .pp .ls-pl-stats b { font-size: 16px; }
    .pp .ls-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; row-gap: 16px; }
    .pp .ls-podium { gap: 5px; }
    .pp .pd .pd-medal { font-size: 22px; margin-bottom: 6px; }
    .pp .pd.p1 .pd-medal { font-size: 28px; }
    .pp .pd.p4 .pd-medal,
    .pp .pd.p5 .pd-medal { font-size: 18px; }
    .pp .pd .ls-star { top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; font-size: 8px; }
    .pp .pd .ls-star b { font-size: 9px; }
    .pp .pd .ls-avatar { width: 42px; height: 42px; font-size: 17px; }
    .pp .pd.p1 .ls-avatar { width: 52px; height: 52px; font-size: 21px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 10px 20px rgba(214, 177, 114, 0.5); }
    .pp .pd.p4 .ls-avatar,
    .pp .pd.p5 .ls-avatar { width: 36px; height: 36px; font-size: 15px; }
    .pp .pd-name { margin-top: 8px; font-size: 11px; }
    .pp .pd-score { font-size: 11px; }
    .pp .pd-score b { font-size: 17px; }
    .pp .pd small { font-size: 10px; white-space: nowrap; }
    .pp .pd-base { font-size: 20px; border-radius: 12px 12px 4px 4px; }
    .pp .pd.p1 .pd-base { height: 92px; }
    .pp .pd.p2 .pd-base { height: 72px; }
    .pp .pd.p3 .pd-base { height: 60px; }
    .pp .pd.p4 .pd-base { height: 48px; }
    .pp .pd.p5 .pd-base { height: 40px; }
    .pp .ls-board li { grid-template-columns: 30px 32px minmax(0, 1fr) auto; gap: 8px; padding: 9px 6px; }
    .pp .ls-board .ls-avatar { width: 32px; height: 32px; font-size: 13px; }
    .pp .ls-champ-live { padding: 20px 16px; }
    .pp .ls-cd { gap: 6px; }
    .pp .ls-cd b { font-size: 26px; }
    .pp .ls-cd small { font-size: 11px; }
    .pp .ls-hall { padding: 16px; }
    .pp .ls-hall-top { gap: 14px; padding: 16px; }
    .pp .ls-hall-top .ls-avatar { width: 60px; height: 60px; font-size: 24px; }
    .pp .ls-hall-top .nm { font-size: 19px; }
    .pp .ls-hall-top .sc b { font-size: 30px; }
    .pp .lb-no { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
    .pp .lb-name { font-size: 14px; }
    .pp .lb-score b { font-size: 18px; }
    .pp .lb-time { font-size: 12px; }
    .pp .ls-today-stats b { font-size: 18px; }
    .pp .ls-play-in { width: calc(100% - 20px); padding-top: 12px; }
    .pp .ls-hud { top: calc(58px + var(--pend-h, 0px)); gap: 8px; padding: 6px; border-radius: 16px; }
    .pp .hud-stage { width: 46px; height: 46px; border-radius: 12px; }
    .pp .hud-stage small { font-size: 10px; }
    .pp .hud-stage b { font-size: 19px; }
    .pp .hud-items { gap: 8px; }
    .pp .hud-item { gap: 7px; padding: 4px 12px 4px 4px; border-radius: 12px; }
    .pp .hud-item > i { width: 26px; height: 26px; font-size: 12px; }
    .pp .hud-item small { font-size: 10px; }
    .pp .hud-item b { font-size: 16px; }
    .pp .hud-item.hide-sm,
    .pp .hud-item .hide-sm { display: none; }
    .pp .hud-timer { width: 50px; height: 50px; }
    .pp .hud-timer::before { inset: 5px; }
    .pp .hud-timer b { font-size: 17px; }
    .pp .hud-timer small { font-size: 9px; }
    /* แผนที่มือถือ : ไม่มีป้ายด่านเหนือตัววิ่ง (ช่องด่านบนแถบสถานะบอกอยู่แล้ว)
       ป้ายสถิติชิดหมุด 17-33px เหนือเส้น  ตัววิ่ง ±13px  ชื่อระดับใต้เส้นถึง 27px  จึงไม่ทับกัน */
    .pp .ls-map { margin: 8px 0 10px; padding: 31px 28px 24px 26px; border-radius: 16px; }
    .pp .ls-runner { transform: translate(-50%, -50%); }
    .pp .ls-runner b { display: none; }
    .pp .ls-runner i { width: 26px; height: 26px; font-size: 12px; }
    .pp .ls-trail .pin { width: 22px; height: 22px; margin-left: -11px; font-size: 10px; }
    .pp .ls-trail .pin em { margin-top: 3px; font-size: 9.5px; }
    .pp .ls-trail .pin.rec em { margin-bottom: 6px; padding: 0 8px; }
    .pp .ls-trail .pin.rec::after { height: 6px; }

    /* ปุ่มยืนยันคำตอบติดล่างจอตลอด  ยังไม่เลือกคำตอบ = สีจาง กดไม่ได้ */
    .pp .ls-play-in { padding-bottom: 90px; }
    /* การ์ดคำถามจางเข้าอย่างเดียว (ห้ามใช้ transform : ปุ่ม fixed ข้างในจะไปยึดการ์ดแทนจอ) */
    .pp .ls-q { animation-name: ls-q-fade; }
    .pp #ls-go { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: auto; height: 52px; margin: 0;
                 box-shadow: 0 0 0 8px rgba(18, 15, 11, 0.88), 0 -10px 30px rgba(0, 0, 0, 0.45); }
    .pp #ls-go:not(.ready) { background: #3b3229; color: rgba(255, 255, 255, 0.45); pointer-events: none; }
    .pp #ls-go:not(.ready)::after { display: none; }
    .pp #ls-go .pick { margin-left: 4px; font-weight: 500; opacity: 0.85; }
    .pp .ls-q { padding: 18px 16px; border-radius: 20px; }
    .pp .ls-q-text { font-size: 17px; }
    .pp .ls-opt { padding: 12px; gap: 12px; }
    .pp .ls-opt .t { font-size: 15px; }
    .pp .ls-keys { display: none; }
    /* หน้าผลลัพธ์ : กระชับ  หัวแนวนอน / วงแหวนเล็กลง / สถิติ 4 ช่องแถวเดียว / ปุ่มคู่ / ช่องด่านแถวละ 6 */
    .pp .ls-res { padding: 16px 14px; border-radius: 20px; }
    .pp .ls-res-head { gap: 12px; padding-bottom: 14px; }
    .pp .ls-res-ic { width: 50px; height: 50px; border-radius: 15px; font-size: 21px; }
    .pp .ls-res-head small { font-size: 10px; }
    .pp .ls-res-head h1 { font-size: 21px; }
    .pp .ls-res-head p { font-size: 13px; }
    .pp .ls-res-score { gap: 16px; margin-top: 16px; }
    .pp .ls-res-ring { width: 110px; height: 110px; }
    .pp .ls-res-ring b { font-size: 38px; }
    .pp .ls-res-ring small { font-size: 10px; }
    .pp .ls-res-side { gap: 7px; }
    .pp .ls-res-side .ls-tier { padding: 3px 12px; font-size: 13px; }
    .pp .ls-res-side p { font-size: 12.5px; }
    .pp .ls-res .ls-record { gap: 6px; padding: 4px 11px; font-size: 12px; }
    .pp .ls-res-chips { margin-top: 12px; }
    .pp .ls-res-chips span { padding: 3px 10px; font-size: 11.5px; }
    .pp .ls-res-stats { margin-top: 14px; border-radius: 14px; }
    .pp .ls-res-stats > div { padding: 8px 3px 7px; }
    .pp .ls-res-stats small { font-size: 10px; }
    .pp .ls-res-stats b { font-size: 17px; }
    .pp .ls-res-stats em { font-size: 9.5px; }
    .pp .ls-res-note { margin-top: 12px; font-size: 12px; }
    .pp .ls-res-note.out { padding: 7px 10px; }
    .pp .ls-res-btns { gap: 8px; margin-top: 14px; }
    .pp .ls-res-note + .ls-res-btns { margin-top: 10px; }
    .pp .ls-res-btns .btn { height: 46px; padding: 0 10px; font-size: 15px; }
    .pp .ls-res-btns .xs-hide { display: none; }
    .pp .ls-res-more { gap: 8px; margin-top: 14px; padding-top: 14px; }
    .pp .ls-res-more a { gap: 8px; padding: 8px 9px; border-radius: 12px; }
    .pp .ls-res-more a > i { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
    .pp .ls-res-more small,
    .pp .ls-res-more .go { font-size: 10px; }
    .pp .ls-res-more b { font-size: 12.5px; }
    .pp .ls-res-path { margin-top: 12px; padding: 14px 12px 12px; border-radius: 18px; }
    .pp .ls-res-path h3 { margin-bottom: 10px; font-size: 14.5px; }
    .pp .ls-res-path ol { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
    .pp .ls-res-path li { padding: 5px 2px 10px; border-radius: 10px; }
    .pp .ls-res-path li::before,
    .pp .ls-res-path li::after { left: 6px; bottom: 4px; }
    .pp .ls-res-path li::before { right: 6px; }
    .pp .ls-res-path li::after { width: calc((100% - 12px) * var(--p) / 100); }
    .pp .ls-res-path li small { font-size: 9.5px; }
    .pp .ls-res-path li b { font-size: 15px; }
    .pp .ls-res-path li b span { font-size: 9.5px; }
    .pp .ls-res-path li > i { top: -5px; right: -5px; width: 15px; height: 15px; font-size: 7.5px; }
    .pp .ls-res-path.dense ol { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
    .pp .ls-res-path .lg { gap: 5px 12px; margin-top: 10px; font-size: 11px; }
}

/* ============================================================
   ลูกเล่นตัวเลข / ฉาก (เฉพาะเมื่อ JS ทำงาน : <html class='ls-anim'> ตั้งใน ls_head)
   ตั้งค่าลดการเคลื่อนไหวไว้ = ไม่มีคลาสนี้ ทุกอย่างแสดงค่าจริงทันที
   ============================================================ */

/* จุด LIVE กะพริบ */
.pp .tag.live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0504a;
    box-shadow: 0 0 0 0 rgba(224, 80, 74, 0.6);
    animation: ls-live 1.6s ease-out infinite;
}

@keyframes ls-live {
    0%   { box-shadow: 0 0 0 0 rgba(224, 80, 74, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(224, 80, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 80, 74, 0); }
}

/* ตัวเลขที่วิ่ง : ทุกหลักกว้างเท่ากัน ไม่สั่นระหว่างนับ */
.ls-anim .pp [data-count] {
    font-variant-numeric: tabular-nums;
}

/* ตัวเลขวิ่งถึงค่าจริงแล้วเด้ง (สถิติสูงสุดเรืองแสงด้วย) */
.pp .pop {
    animation: ls-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp .ls-pl-best .num.pop {
    animation: ls-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), ls-glow 1.4s ease-out;
}

@keyframes ls-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.22); }
    100% { transform: scale(1); }
}

@keyframes ls-glow {
    0%   { filter: drop-shadow(0 0 0 rgba(248, 226, 176, 0)); }
    35%  { filter: drop-shadow(0 0 16px rgba(248, 226, 176, 0.95)); }
    100% { filter: drop-shadow(0 0 0 rgba(248, 226, 176, 0)); }
}

/* สายฟ้าพลังติดทีละดวง */
.ls-anim .pp .ls-bolts i.on {
    animation: ls-bolt 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 80ms + 250ms);
}

@keyframes ls-bolt {
    0%   { opacity: 0.2; transform: scale(0.5); box-shadow: none; }
    60%  { opacity: 1; transform: scale(1.18); }
    100% { opacity: 1; transform: none; }
}

/* ---- โพเดียม : ฐานยกขึ้น 5 → 4 → 3 → 2 → 1  แล้วผู้เล่นหล่นลงบนฐาน ---- */
.pp .pd.p5 { --d: 0ms; }
.pp .pd.p4 { --d: 140ms; }
.pp .pd.p3 { --d: 280ms; }
.pp .pd.p2 { --d: 420ms; }
.pp .pd.p1 { --d: 640ms; }

.ls-anim .pp .ls-podium .pd-base {
    transform: scaleY(0);
    transform-origin: bottom;
}

.ls-anim .pp .ls-podium .pd-top {
    opacity: 0;
    transform: translateY(-22px);
}

.ls-anim .pp .ls-podium.in .pd-base {
    animation: ls-rise 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) both;
    animation-delay: var(--d);
}

.ls-anim .pp .ls-podium.in .pd-top {
    animation: ls-drop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
    animation-delay: calc(var(--d) + 380ms);
}

@keyframes ls-rise {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes ls-drop {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: none; }
}

/* อันดับ 1 : แสงวาบเมื่อแข่งอันดับจบ (สคริปต์ติดคลาส settled) */
.ls-anim .pp .ls-podium.settled .pd.p1 .ls-avatar {
    animation: ls-crown-glow 1.6s ease-out;
}

@keyframes ls-crown-glow {
    0%   { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 0 0 0 rgba(214, 177, 114, 0.7); }
    50%  { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 0 0 22px rgba(214, 177, 114, 0); }
    100% { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 14px 30px rgba(214, 177, 114, 0.5); }
}

/* ---- ตารางอันดับ : แถวเลื่อนเข้ามาทีละแถว ---- */
.ls-anim .pp .ls-board li:not(.gap) {
    opacity: 0;
    transform: translateX(-14px);
}

.ls-anim .pp .ls-board.in li:not(.gap) {
    animation: ls-row 0.5s cubic-bezier(0.33, 1, 0.68, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes ls-row {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: none; }
}

/* ---- แข่งอันดับ 1-10 : ช่องที่เปลี่ยนคน เลื่อนเข้าจากล่าง (แซงขึ้น) / จากบน (ถูกแซง) ---- */
.pp .rl-up .ls-avatar,
.pp .rl-up .pd-name,
.pp .rl-up .pd-score,
.pp .rl-up .lb-main,
.pp .rl-up .lb-score {
    animation: ls-rl-up 0.34s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.pp .rl-dn .ls-avatar,
.pp .rl-dn .pd-name,
.pp .rl-dn .pd-score,
.pp .rl-dn .lb-main,
.pp .rl-dn .lb-score {
    animation: ls-rl-dn 0.34s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes ls-rl-up {
    from { opacity: 0.2; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ls-rl-dn {
    from { opacity: 0.2; transform: translateY(-16px); }
    to   { opacity: 1; transform: none; }
}

/* ลูกศรขึ้น (เขียว) / ลง (แดง) ข้างรูป แวบแล้วหายไป */
.pp .ls-mv {
    position: absolute;
    top: 50%;
    left: -10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
    animation: ls-mv 0.9s ease-out forwards;
}

.pp .ls-mv.up { background: var(--green); }
.pp .ls-mv.dn { background: var(--red); }

@keyframes ls-mv {
    0%   { opacity: 0; transform: scale(0.4); }
    15%  { opacity: 1; transform: scale(1.12); }
    70%  { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
}

/* ประกายทองรอบอันดับ 1 ตอนเข้าที่ */
.pp .ls-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pp .ls-burst i {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7da, #f2b937 65%);
    opacity: 0;
    animation: ls-burst 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.pp .ls-burst i:nth-child(3n) {
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: #ffe08a;
}

@keyframes ls-burst {
    0%   { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0.6); }
    70%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) scale(1); }
}

/* ---- รีเฟรชอัตโนมัติ (คลาส quick) : โพเดียม / แถว / สายฟ้า อยู่ที่เดิม ไม่เล่นฉากเปิดซ้ำ เล่นแค่แข่งอันดับกับตัวเลข ---- */
.ls-anim .pp .quick .ls-podium .pd-base,
.ls-anim .pp .quick .ls-podium .pd-top,
.ls-anim .pp .quick .ls-board li:not(.gap),
.ls-anim .pp .quick .ls-bolts i.on {
    animation: none;
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .pp .tag.live::before,
    .pp .pop,
    .pp .ls-pl-best .num.pop,
    .pp .ls-refresh.busy i {
        animation: none;
    }
}

/* ============================================================
   มือถือ (≤ 480px) : hero กระชับ อ่านง่าย ใช้พื้นที่น้อยลง
   ============================================================ */
@media screen and (max-width: 480px) {
    .pp .ls-hero { padding: 18px 0 24px; }
    .pp .ls-hero-in { gap: 18px; }
    .pp .ls-kicker { padding: 4px 12px; font-size: 12px; }
    .pp .ls-hero h1 { margin: 12px 0 6px; font-size: 32px; letter-spacing: -0.5px; }
    .pp .ls-tag { font-size: 14px; line-height: 1.5; }

    /* กติกา 2 x 2 ตัวเล็ก */
    /* กติกา 4 ข้อแถวเดียว : ตัวหนังสือย่อ-ขยายตามความกว้างจอ (จอแคบไม่ล้น จอกว้างไม่เล็กเกิน) ไอคอนย่อตาม */
    .pp .ls-rules.mini { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 4px; margin: 12px 0 16px; }
    .pp .ls-rules.mini li { flex: none; gap: 0.25em; font-size: clamp(8px, calc(2.95vw - 1.6px), 10.5px); white-space: nowrap; }
    .pp .ls-rules.mini i { width: 1.3em; height: 1.3em; font-size: 1em; }
    .pp .ls-rules.mini i::before { font-size: 0.68em; }

    /* ปุ่มเข้าสนาม + พลัง */
    .pp .ls-cta { gap: 10px; }
    .pp .btn.lg { height: 48px; font-size: 16px; }
    /* พลังเข้าสนาม : แถวเดียว (ย่อบางคำ .xs-hide  ตัวหนังสือย่อ-ขยายตามความกว้างจอ  สายฟ้าเยอะ = ซ่อน) */
    .pp .ls-energy { width: 100%; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0.7em;
                     white-space: nowrap; font-size: clamp(8.5px, calc(3vw - 1px), 11px); }
    .pp .ls-energy .xs-hide { display: none; }
    .pp .ls-energy .lbl { font-size: 1em; }
    .pp .ls-energy .lbl b { font-size: 1.12em; }
    .pp .ls-energy .inf { font-size: 12px; }
    .pp .ls-energy .inf i { font-size: 15px; }
    .pp .ls-bolts { flex-wrap: nowrap; gap: 1px; }
    .pp .ls-bolts i { width: 1.05em; height: 1.35em; border-radius: 3px; font-size: 1em; }
    .pp .ls-bolts i::before { font-size: 0.72em; }
    .pp .ls-energy.many .ls-bolts { display: none; }
    .pp .ls-energy.pro { display: none; }   /* สมาชิก PRO : ไม่แสดง "สมาชิก PRO · เข้าสนามได้ไม่จำกัด" ใต้ปุ่ม (เจ้าของเว็บขอ 2026-10-03 · จอคอมพิวเตอร์ยังแสดง) */
    .pp .ls-streak { font-size: 1em; }
    .pp .ls-streak i { margin-right: 2px; }

    /* การ์ดผู้เล่น : แถวบน = รูป+ชื่อ (ซ้าย) คะแนนสูงสุด (ขวา)  ที่เหลือเต็มความกว้าง */
    /* เตี้ยลงอีก (เจ้าของเว็บขอ 2026-10-03) : ระยะขอบ / รูป / ตัวเลขเล็กลง · สถิติ / ความคืบหน้า / กระเป๋า กระชับขึ้น (ชุดล่างของ ≤ 480px) */
    .pp .ls-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 11px 12px 10px; border-radius: 16px; }
    .pp .ls-player > * { grid-column: 1 / -1; }
    .pp .ls-player > .ls-pl-top { grid-column: 1; gap: 9px; }
    .pp .ls-player > .ls-pl-best { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; gap: 0; margin: 0; text-align: right; }
    .pp .ls-player .ls-avatar { width: 36px; height: 36px; font-size: 15px; }
    .pp .ls-pl-name { font-size: 15px; line-height: 1.35; }
    .pp .ls-pl-sub { margin-top: 1px; gap: 4px; }
    .pp .ls-pl-sub .ls-tier { padding: 0 8px; font-size: 10.5px; line-height: 1.7; }
    .pp .ls-pl-sub .ls-champ-chip { gap: 4px; padding: 0 8px; font-size: 10.5px; line-height: 1.7; }
    .pp .ls-pl-best .num { font-size: 28px; }
    .pp .ls-pl-best .unit { font-size: 10px; line-height: 1.3; white-space: nowrap; }
    .pp .ls-pl-rank { margin-top: 10px; font-size: 12px; }
    .pp .ls-pl-rank b { font-size: 13.5px; }

    /* สถิติ 3 ช่อง : แถวเดียวมีเส้นคั่น แทนกล่องแยก */
    .pp .ls-pl-stats { gap: 0; margin-top: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
    .pp .ls-pl-stats > div { padding: 7px 10px; border-radius: 0; background: none; }
    .pp .ls-pl-stats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
    .pp .ls-pl-stats small { font-size: 10.5px; }
    .pp .ls-pl-stats b { font-size: 15px; }

    /* ความคืบหน้าระดับ : ข้อความกับแถบอยู่บรรทัดเดียว */
    .pp .ls-next { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
    .pp .ls-next .meter { flex: 1; min-width: 40px; height: 5px; margin-top: 0; }
}

/* ============================================================
   การ์ดแนะนำโหมด (hero) : ฉาก "The Last Standing"
   ผู้กล้า 5 ตัวบนเวที  แต่ละรอบคนตอบผิดได้ ✕ สั่นแล้วร่วง คนรอดได้ ✓  เหลือคนสุดท้ายได้มงกุฎ แล้ววนใหม่
   จังหวะเดินด้วยสคริปต์ท้ายหน้า daily.php (คลาส k1-k5 สะสม / reset / still)
   ============================================================ */

/* ไม่มีกรอบ : ฉากกับข้อความวางบนพื้น hero โดยตรง */
.pp .ls-intro {
    position: relative;
}

.pp .ls-intro-body {
    padding: 2px 0 0;
}

.pp .ls-intro h1 {
    margin: 12px 0 6px;
    font-size: 52px;
}

.pp .ls-intro .ls-rules.mini {
    margin: 16px 0 0;
}

.pp .ls-intro + .ls-cta {
    margin-top: 22px;
}

/* ระยะจากส่วนหัว (hero พื้นเข้ม) ถึงหัวข้อทำเนียบผู้ยืนหยัด (เดิมเป็น style ในแท็ก) : มือถือน้อยกว่า (ชุด ≤ 480px ด้านล่าง) */
.pp #ls-arena {
    padding-top: 48px;
}

/* ฉาก : ไม่มีพื้นหลัง/ขอบ (ลอยบนพื้น hero)  มีแค่ดาวระยิบ + สปอตไลต์นุ่ม ๆ ที่จางหมดก่อนถึงขอบ จึงไม่เห็นเป็นกล่อง */
.pp .ls-scene {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: radial-gradient(ellipse 36% 60% at 50% 58%, rgba(255, 231, 170, 0.2), transparent 70%);
}

.pp .ls-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1.5px 1.5px at 10% 24%, #fff, transparent 60%),
        radial-gradient(1px 1px at 24% 58%, #fff, transparent 60%),
        radial-gradient(1.5px 1.5px at 38% 18%, #fff, transparent 60%),
        radial-gradient(1px 1px at 63% 40%, #fff, transparent 60%),
        radial-gradient(1.5px 1.5px at 78% 20%, #fff, transparent 60%),
        radial-gradient(1px 1px at 92% 52%, #fff, transparent 60%);
    opacity: 0.55;
    animation: ls-twinkle 3.2s ease-in-out infinite alternate;
}

/* แสงทองรอบผู้ชนะ */
.pp .ls-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 28% 52% at 50% 66%, rgba(255, 214, 120, 0.38), transparent 70%);
    opacity: 0;
    transition: opacity .6s;
    pointer-events: none;
}

.pp .ls-scene.k5::after,
.pp .ls-scene.still::after {
    opacity: 1;
}

@keyframes ls-twinkle {
    from { opacity: 0.25; }
    to   { opacity: 0.7; }
}

/* คำบรรยายตามจังหวะ */
.pp .ls-cap {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 4;
    max-width: calc(100% - 24px);
    padding: 3px 14px;
    border-radius: 999px;
    border: 1px solid rgba(214, 177, 114, 0.4);
    background: rgba(0, 0, 0, 0.35);
    color: #f6e7c8;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-50%);
    transition: opacity .2s;
}

.pp .ls-cap.fade {
    opacity: 0;
}

/* เวที */
.pp .ls-plat {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 20px;
    z-index: 3;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ecd09a, #9c7338);
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

/* ผู้กล้า */
.pp .ls-scene .m {
    position: absolute;
    bottom: 32px;
    left: var(--x);
    z-index: 4;
    width: 54px;
    margin-left: -27px;
}

.pp .ls-scene .m1 { --x: 16%; }
.pp .ls-scene .m2 { --x: 33%; }
.pp .ls-scene .m3 { --x: 50%; }
.pp .ls-scene .m4 { --x: 67%; }
.pp .ls-scene .m5 { --x: 84%; }

.pp .ls-scene .ls-avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 10px 16px rgba(0, 0, 0, 0.4);
    animation: ls-hop 1.6s ease-in-out infinite;
    transition: box-shadow .5s;
}

.pp .ls-scene .m2 .ls-avatar { animation-delay: -0.3s; }
.pp .ls-scene .m3 .ls-avatar { animation-delay: -0.6s; }
.pp .ls-scene .m4 .ls-avatar { animation-delay: -0.9s; }
.pp .ls-scene .m5 .ls-avatar { animation-delay: -1.2s; }

@keyframes ls-hop {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ป้ายเหนือหัว : ✓ ตอบถูก / ✕ ตกรอบ (✕ ทับ ✓) / มงกุฎ */
.pp .ls-scene .ok,
.pp .ls-scene .no {
    position: absolute;
    top: -12px;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    box-shadow: 0 0 0 2px #fff;
    opacity: 0;
    transform: scale(0.4);
}

.pp .ls-scene .ok { background: #3f9a64; }
.pp .ls-scene .no { z-index: 2; background: #e05b5b; }

.pp .ls-scene .crown {
    position: absolute;
    top: -36px;
    left: 50%;
    z-index: 3;
    margin-left: -15px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 28px;
    font-style: normal;
    line-height: 1;
    opacity: 0;
    transform: translateY(-40px) rotate(-18deg);
}

/* ประกายรอบผู้ชนะ */
.pp .ls-scene .sp {
    position: absolute;
    top: 27px;
    left: 50%;
    width: 0;
    height: 0;
}

.pp .ls-scene .sp i {
    --d: 44px;
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffe08a;
    box-shadow: 0 0 8px #ffd46b;
    opacity: 0;
}

.pp .ls-scene .sp i:nth-child(1) { --a: 0deg; }
.pp .ls-scene .sp i:nth-child(2) { --a: 45deg; }
.pp .ls-scene .sp i:nth-child(3) { --a: 90deg; }
.pp .ls-scene .sp i:nth-child(4) { --a: 135deg; }
.pp .ls-scene .sp i:nth-child(5) { --a: 180deg; }
.pp .ls-scene .sp i:nth-child(6) { --a: 225deg; }
.pp .ls-scene .sp i:nth-child(7) { --a: 270deg; }
.pp .ls-scene .sp i:nth-child(8) { --a: 315deg; }

/* เริ่มรอบใหม่ : ทุกตัวกระโดดกลับขึ้นเวที (อยู่ก่อนกฎตกรอบ กฎตกรอบจึงชนะเมื่อมีคลาสพร้อมกัน) */
.pp .ls-scene.reset .m { animation: ls-back .6s cubic-bezier(0.3, 1.4, 0.6, 1) both; }
.pp .ls-scene.reset .m2 { animation-delay: .06s; }
.pp .ls-scene.reset .m3 { animation-delay: .12s; }
.pp .ls-scene.reset .m4 { animation-delay: .18s; }
.pp .ls-scene.reset .m5 { animation-delay: .24s; }

@keyframes ls-back {
    from { opacity: 0; transform: translateY(-34px); }
    to   { opacity: 1; transform: none; }
}

/* ทุกรอบ : ✓ เด้งให้คนที่ยังอยู่ (สลับชื่อท่า ท่าจึงเล่นใหม่ทุกรอบ) */
.pp .ls-scene.k1 .ok { animation: ls-okA 1.1s ease-out; }
.pp .ls-scene.k2 .ok { animation: ls-okB 1.1s ease-out; }
.pp .ls-scene.k3 .ok { animation: ls-okA 1.1s ease-out; }
.pp .ls-scene.k4 .ok { animation: ls-okB 1.1s ease-out; }

@keyframes ls-okA {
    0%   { opacity: 0; transform: scale(0.4); }
    20%  { opacity: 1; transform: scale(1.18); }
    35%  { transform: scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1); }
}

@keyframes ls-okB {
    0%   { opacity: 0; transform: scale(0.4); }
    20%  { opacity: 1; transform: scale(1.18); }
    35%  { transform: scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1); }
}

/* ตกรอบ : รอบ 1 กระต่าย  รอบ 2 แพนด้า  รอบ 3 หมี  รอบ 4 จิ้งจอก  (สั่น แล้วร่วงลงจากเวที ค้างไว้จนเริ่มรอบใหม่) */
.pp .ls-scene.k1 .m1,
.pp .ls-scene.k2 .m5,
.pp .ls-scene.k3 .m2,
.pp .ls-scene.k4 .m4 {
    animation: ls-out 1.2s ease-in forwards;
}

.pp .ls-scene.k1 .m1 .no,
.pp .ls-scene.k2 .m5 .no,
.pp .ls-scene.k3 .m2 .no,
.pp .ls-scene.k4 .m4 .no {
    animation: ls-no .35s cubic-bezier(0.3, 1.6, 0.6, 1) forwards;
}

@keyframes ls-out {
    0%   { opacity: 1; transform: none; }
    10%  { transform: translateX(-4px) rotate(-9deg); }
    20%  { transform: translateX(4px) rotate(9deg); }
    30%  { transform: translateX(-3px) rotate(-6deg); }
    40%  { transform: translateX(2px) rotate(4deg); }
    52%  { z-index: 4; opacity: 1; transform: translateY(-10px) rotate(0); }
    60%  { z-index: 2; }
    100% { z-index: 2; opacity: 0; transform: translateY(70px) rotate(40deg); }
}

@keyframes ls-no {
    from { opacity: 0; transform: scale(0.3); }
    to   { opacity: 1; transform: scale(1); }
}

/* ผู้ชนะ : มงกุฎหล่นลงหัว + วงทองเรือง + ประกาย */
.pp .ls-scene.k5 .m3 .crown {
    animation: ls-crown .8s cubic-bezier(0.3, 1.5, 0.6, 1) forwards;
}

.pp .ls-scene.k5 .m3 .ls-avatar,
.pp .ls-scene.still .m3 .ls-avatar {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f2b53a, 0 0 30px rgba(242, 181, 58, 0.9);
}

.pp .ls-scene.k5 .sp i {
    animation: ls-spark 1.2s ease-out .35s forwards;
}

@keyframes ls-crown {
    from { opacity: 0; transform: translateY(-40px) rotate(-18deg); }
    to   { opacity: 1; transform: none; }
}

@keyframes ls-spark {
    0%   { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0.5); }
    70%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1); }
}

/* ภาพนิ่ง (ตั้งค่าลดการเคลื่อนไหว) : ผู้ชนะใส่มงกุฎ */
.pp .ls-scene.still .ls-avatar,
.pp .ls-scene.still::before {
    animation: none;
}

.pp .ls-scene.still .m3 .crown {
    opacity: 1;
    transform: none;
}

@media screen and (max-width: 960px) {
    .pp .ls-intro h1 { font-size: 46px; }
}

/* มือถือ : ฉากเตี้ยลง ตัวเล็กลง */
@media screen and (max-width: 480px) {
    .pp .ls-intro-body { padding: 0; }
    /* ชื่อโหมด / คำโปรย / กติกา ชิดกันขึ้นอีก (เจ้าของเว็บขอ 2026-10-03) */
    .pp .ls-intro h1 { margin: 10px 0 0; font-size: 30px; }
    .pp .ls-intro .ls-tag { line-height: 1.3; }
    .pp .ls-intro .ls-rules.mini { margin-top: 5px; }
    /* ช่องว่างจากส่วนหัวถึงหัวข้อทำเนียบผู้ยืนหยัด : 48 → 20px (เจ้าของเว็บขอ 2026-10-03) */
    .pp #ls-arena { padding-top: 20px; }
    .pp .ls-intro + .ls-cta { margin-top: 14px; }
    .pp .ls-scene { height: 126px; }
    .pp .ls-cap { top: 9px; padding: 2px 11px; font-size: 11.5px; }
    .pp .ls-plat { bottom: 14px; height: 12px; }
    .pp .ls-scene .m { bottom: 24px; width: 40px; margin-left: -20px; }
    .pp .ls-scene .ls-avatar { width: 40px; height: 40px; font-size: 16px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 8px 12px rgba(0, 0, 0, 0.4); }
    .pp .ls-scene .ok,
    .pp .ls-scene .no { top: -10px; width: 18px; height: 18px; margin-left: -9px; font-size: 9px; }
    .pp .ls-scene .crown { top: -27px; margin-left: -11px; font-size: 21px; }
    .pp .ls-scene .sp { top: 20px; }
    .pp .ls-scene .sp i { --d: 32px; }
    .pp .ls-scene.k5 .m3 .ls-avatar,
    .pp .ls-scene.still .m3 .ls-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f2b53a, 0 0 22px rgba(242, 181, 58, 0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .pp .ls-scene .ls-avatar,
    .pp .ls-scene::before {
        animation: none;
    }
}

/* ช่องอันดับในแถบสถิติ : ใช้เฉพาะมือถือ (จอใหญ่มีบรรทัดอันดับอยู่แล้ว) */
.pp .ls-pl-stats .sm-only {
    display: none;
}

/* แถบเมนู (มือถือ / แท็บเล็ต) : ชื่อโหมดใต้โลโก้ i-TEST */
@media screen and (max-width: 700px) {
    .ls-nav .topnav-brand { min-width: 0; }
    .ls-nav .topnav-brand > span { min-width: 0; overflow: hidden; }
    .ls-nav .topnav-brand .tag { display: block; overflow: hidden; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
}

/* มือถือ : การ์ดผู้เล่นกระชับ / เส้นทางสู่ตำนาน 6 แถว / กติกาชิดซ้าย */
@media screen and (max-width: 480px) {
    .ls-nav .topnav-brand .name { font-size: 16px; }
    .ls-nav .topnav-brand .tag { margin-top: 1px; font-size: 10px; }

    /* การ์ดผู้เล่น : อันดับย้ายเข้าแถบสถิติ (4 ช่อง) ไม่มีบรรทัดอันดับแยก */
    .pp .ls-pl-rank { display: none; }
    .pp .ls-pl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 9px; border-radius: 10px; }
    .pp .ls-pl-stats .sm-only { display: block; }
    .pp .ls-pl-stats > div { padding: 4px 7px; font-size: 13px; line-height: 1.2; }
    .pp .ls-pl-stats small { font-size: 9.5px; line-height: 1.3; }
    .pp .ls-pl-stats b { font-size: 13px; line-height: 1.25; }
    .pp .ls-pl-stats b span:not(.cnt) { margin-left: 2px; font-size: 9.5px; }
    .pp .ls-next { margin-top: 7px; }

    /* กล่องสุ่ม / การ์ด / ภารกิจ : แถวบางลงอีก (lsbox.css โหลดทีหลัง จึงใช้ .ls-player นำหน้าให้ชนะ) */
    .pp .ls-player .lsb-bag { margin-top: 7px; border-radius: 10px; }
    .pp .ls-player .lsb-bag > * { padding: 4px; }
    .pp .ls-player .lsb-bag > * > i { font-size: 11px; }
    .pp .ls-player .lsb-bag small { font-size: 10.5px; }
    .pp .ls-player .lsb-bag b { font-size: 12.5px; line-height: 1.3; }

    /* สมาชิก PRO : แถวใต้ชื่อโหมดมีแค่ "เข้าสนามได้ไม่จำกัด" ซึ่งมือถือไม่แสดง = ซ่อนทั้งแถว (ไม่เหลือระยะว่าง) */
    .pp .ls-cta.ls-cta-pro { display: none; }

    /* เส้นทางสู่ตำนาน : การ์ดแถวละระดับ 6 แถว 1 คอลัมน์ (ไอคอน / ชื่อ / คุณอยู่ที่นี่ / เกณฑ์ชิดขวา) */
    .pp .ls-ladder { grid-template-columns: minmax(0, 1fr); gap: 8px; row-gap: 8px; }
    .pp .ls-ladder li { flex-direction: row; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border-radius: 14px; text-align: left; }
    .pp .ls-ladder li.now { box-shadow: 0 6px 16px rgba(214, 177, 114, 0.28); }
    .pp .ls-ladder .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
    .pp .ls-ladder b { font-size: 14.5px; }
    .pp .ls-ladder small { order: 2; margin-left: auto; font-size: 12px; white-space: nowrap; }
    .pp .ls-ladder li.now::after { position: static; padding: 0 9px; font-size: 10.5px; line-height: 1.7; white-space: nowrap; }

    /* กติกา 4 ข้อ : ชิดซ้าย  ระยะห่างย่อตามตัวหนังสือ (แถวเดียวไม่ล้น) */
    .pp .ls-rules.mini { justify-content: flex-start; gap: 0.5em; font-size: clamp(8px, calc(2.95vw - 1.6px), 10.5px); }
    .pp .ls-rules.mini li { font-size: 1em; }

    /* หมดพลังวันนี้ : ตัวเล็กลง กล่องเตี้ยลง */
    .pp .ls-out { gap: 8px; padding: 7px 11px; border-radius: 12px; font-size: 11.5px; line-height: 1.45; }
    .pp .ls-out i { font-size: 14px; }
}

/* หน้าผลลัพธ์ จอแคบมาก (≤360px) : วงแหวน / ปุ่ม / ช่องภารกิจเล็กลงอีก ข้อความไม่ถูกตัด */
@media screen and (max-width: 360px) {
    .pp .ls-res-score { gap: 12px; }
    .pp .ls-res-ring { width: 96px; height: 96px; }
    .pp .ls-res-ring b { font-size: 32px; }
    .pp .ls-res-ring small { font-size: 9px; }
    .pp .ls-res-side p { font-size: 12px; }
    .pp .ls-res .ls-record { padding: 4px 9px; font-size: 11px; }
    .pp .ls-res-btns .btn { gap: 6px; padding: 0 8px; font-size: 14px; }
    .pp .ls-res-more a { gap: 7px; padding: 8px 7px; }
    .pp .ls-res-more a > i { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
}

/* รูปโปรไฟล์ที่สมาชิกอัปโหลดเอง (avatar_lib.php) : รูปเต็มวง ดาวแชมป์ยังอยู่มุมขวาบนได้ */
.pp .ls-avatar.is-img {
    background: #efe8dc;
}

.pp .ls-avatar.is-img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* hero คอลัมน์เดียว (≤ 960px) : ป้ายโหมด / ชื่อ / คำโปรย / กติกา / ปุ่ม / พลังเข้าสนาม อยู่กึ่งกลางทั้งหมด (เจ้าของเว็บขอ 2026-09-30)
   กล่องแจ้งพลังหมด (.ls-out) มีไอคอนนำหน้า : ข้อความชิดซ้ายเหมือนเดิม */
@media screen and (max-width: 960px) {
    .pp .ls-hero-text { text-align: center; }
    .pp .ls-hero-text .ls-out { text-align: left; }
    .pp .ls-rules.mini { justify-content: center; }
    .pp .ls-cta { justify-content: center; }
    .pp .ls-energy { align-items: center; }
}

/* มือถือ : กติกาแถวเดียว (ไม่ตัดบรรทัด) = กล่องกว้างเท่าเนื้อหาแล้ววางกลางจอ · ถ้ากว้างเกินจอ ชิดซ้ายแทน (ไม่ถูกตัดขอบซ้าย) */
@media screen and (max-width: 480px) {
    .pp .ls-rules.mini { justify-content: flex-start; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
}

/* ---------- โหมดผู้ชมของผู้ดูแล (daily.php $VIEW) : ข้อความแทนปุ่มเข้าสนาม · การ์ดภาพรวมสนาม · การต่อสู้ล่าสุดของทุกคน ---------- */

.pp .ls-view-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(214, 177, 114, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f0d7a6;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
}

.pp .ls-avatar.ls-view-av {
    font-size: 22px;
    font-weight: 400;
}

.pp .ls-player.ls-view .ls-pl-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));   /* จอแคบของผู้เล่นมี 4 ช่อง (อันดับ) : ผู้ชมมี 3 */
}

.pp .ls-feed .nm small {
    display: block;
    overflow: hidden;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- หน้ากิจกรรมสำหรับแชร์ (ผู้ยังไม่เข้าสู่ระบบ daily.php $GUEST) : ปุ่มสมัครฟรี / เข้าสู่ระบบ + กล่องชวนลงสนามท้ายหน้า ---------- */

/* ปุ่มรองบนพื้นเข้ม : ขอบทอง พื้นโปร่ง */
.pp .btn.ls-ghost {
    border: 2px solid rgba(214, 177, 114, 0.65);
    background: transparent;
    color: #f0d7a6;
    box-shadow: none;
}

.pp .btn.ls-ghost:hover {
    background: rgba(214, 177, 114, 0.16);
    color: #fff;
}

.pp .ls-guest-note {
    flex-basis: 100%;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.pp .ls-guest-note i {
    margin-right: 6px;
    color: var(--gold);
}

.pp .ls-join-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.pp .ls-join-t {
    flex: 1 1 380px;
    min-width: 0;
}

.pp .ls-join h2 {
    margin: 10px 0 6px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.pp .ls-join p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.pp .ls-join-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media screen and (max-width: 700px) {
    .pp .ls-join h2 {
        font-size: 23px;
    }
    .pp .ls-join-acts {
        width: 100%;
    }
    .pp .ls-join-acts .btn {
        flex: 1 1 100%;
    }
}

/* แถบเมนูผู้ยังไม่เข้าสู่ระบบ (ls_guest_nav) : ย้ายไป ls_auth.css (2026-10-01 · ใช้ร่วมกับหน้าแชร์ข้อสอบฟรีประจำวัน) */

/* มือถือ (เจ้าของเว็บขอ 2026-09-30) : ปุ่มสมัครฟรี / เข้าสู่ระบบ ไม่เต็มจอ (กว้างเท่ากันวางกลาง) · ข้อความโควตาเล็กลง
   กติกา 4 ข้อในส่วนหัว (ทุกแบบของหน้า) เล็กลงอีกและอยู่กึ่งกลางจอ · กล่องชวนลงสนามท้ายหน้าจัดกลาง */
@media screen and (max-width: 480px) {
    .pp .ls-guest-cta .btn.lg,
    .pp .ls-join-acts .btn.lg {
        flex: 0 0 auto;
        width: min(260px, 100%);
        height: 46px;
        padding: 0 18px;
        font-size: 15px;
    }
    .pp .ls-guest-cta .btn.lg i,
    .pp .ls-join-acts .btn.lg i {
        font-size: 14px;
    }
    .pp .ls-guest-cta {
        flex-direction: column;
        gap: 10px;
    }
    .pp .ls-guest-note {
        flex-basis: auto;
        font-size: clamp(9.5px, calc(2.6vw + 0.2px), 11px);
        line-height: 1.55;
    }
    .pp .ls-join-in {
        text-align: center;
    }
    .pp .ls-join-acts {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .pp .ls-hero .ls-rules.mini {
        justify-content: center;
        gap: 0.55em;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(7.5px, calc(2.3vw - 0.8px), 9px);
    }
    .pp .ls-hero .ls-rules.mini li {
        font-size: 1em;
    }
    .pp .ls-guest-note .sep {
        display: none;
    }
    .pp .ls-guest-note .pro {
        display: block;   /* สมาชิก PRO ไม่จำกัด ขึ้นบรรทัดใหม่ ไม่เหลือคำเดียวค้างบรรทัดสอง */
    }
}

/* ป๊อปอัปเข้าสู่ระบบ / สมัครฟรี : ย้ายไป ls_auth.css (2026-10-01) */

/* ต้อนรับหลังเข้าสู่ระบบ / สมัครจากป๊อปอัป (สมาชิก · ครั้งเดียว เหนือปุ่มเข้าสู่สนาม) */
.pp .ls-hello {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 9px 16px 9px 12px;
    border: 1px solid rgba(127, 214, 162, 0.45);
    border-radius: 14px;
    background: rgba(63, 154, 100, 0.22);
    color: #dff5e7;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    animation: ls-hello-in .5s ease-out both;
}

.pp .ls-hello > i {
    flex: none;
    color: #7fd6a2;
    font-size: 18px;
}

.pp .ls-hello b {
    color: #fff;
}

@keyframes ls-hello-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

@media screen and (max-width: 960px) {
    .pp .ls-hello { margin-left: auto; margin-right: auto; }
}

@media screen and (max-width: 480px) {
    .pp .ls-hello { gap: 8px; padding: 7px 12px 7px 10px; font-size: 12.5px; }
    .pp .ls-hello > i { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pp .ls-hello { animation: none; }
}

/* ---------- มือถือ (เจ้าของเว็บขอ 2026-09-30) : การ์ดสมรภูมิวันนี้ / ทำเนียบแชมป์เตี้ยลง · เส้นทางสู่ตำนานแบบการเดินทาง ---------- */

/* หัวข้อย่อยในการ์ด (การต่อสู้ล่าสุด) : ระยะเดิมของจอใหญ่ */
.pp .ls-sub-head {
    margin: 22px 0 10px;
}

/* ผู้ดูแล / ผู้ยังไม่เข้าสู่ระบบ : บันไดระดับเต็มสีทุกขั้น (ไม่มีระดับของตัวเองให้เทียบ) */
.pp .ls-ladder.pub li {
    opacity: 1;
}

/* ถนนเส้นทางสู่ตำนาน (ls_road ใน daily.php) : เฉพาะมือถือ */
.pp .ls-road {
    display: none;
}

.pp .ls-road-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pp .ls-road-svg path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.pp .ls-road-svg .edge { stroke: #eadbbd; stroke-width: 24px; }
.pp .ls-road-svg .bed  { stroke: #f8f0e2; stroke-width: 18px; }
.pp .ls-road-svg .trav { stroke: #e6cb93; stroke-width: 18px; }
.pp .ls-road-svg .dash { stroke: rgba(168, 132, 74, 0.5); stroke-width: 2px; stroke-dasharray: 7 8; }

.pp .ls-stops {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp .ls-stops li {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-50%);
}

.pp .ls-stops li.l { left: calc(20% - 23px); }
.pp .ls-stops li.r { right: calc(20% - 23px); flex-direction: row-reverse; text-align: right; }

.pp .ls-stops .ic {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 17px;
    box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(120, 90, 40, 0.25);
}

.pp .ls-stops .t1 .ic { background: #efe7d8; color: #7a6a4f; }
.pp .ls-stops .t2 .ic { background: #f6dfc7; color: #9a5b22; }
.pp .ls-stops .t3 .ic { background: #dde7f0; color: #3f5a73; }
.pp .ls-stops .t4 .ic { background: #e6defa; color: #5a3fa6; }
.pp .ls-stops .t5 .ic { background: #ffe0d2; color: #c2461f; }
.pp .ls-stops .t6 .ic { background: linear-gradient(135deg, #f8e2b0, #d6b172 55%, #b88a45); color: #3b2a10; }

.pp .ls-stops .tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.pp .ls-stops b {
    font-size: 15px;
    font-weight: 600;
}

.pp .ls-stops small {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.pp .ls-stops em {
    display: inline-block;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.7;
    vertical-align: 1px;
}

/* ปลายทาง : ตำนาน (ใหญ่กว่า + ธงเส้นชัย) */
.pp .ls-stops li.fin .ic {
    width: 54px;
    height: 54px;
    font-size: 21px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(214, 177, 114, 0.55), 0 10px 22px rgba(214, 177, 114, 0.5);
}

.pp .ls-stops li.fin.l { left: calc(20% - 27px); }
.pp .ls-stops li.fin.r { right: calc(20% - 27px); }

.pp .ls-stops .fl {
    position: absolute;
    top: -8px;
    right: -10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    box-shadow: 0 0 0 2px #fff;
}

/* สมาชิก : ผ่านแล้ว = ติ๊กเขียว · ตอนนี้ = วงทองเต้น · ยังไปไม่ถึง = จาง */
.pp .ls-stops .ck {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 9px;
    box-shadow: 0 0 0 2px #fff;
}

.pp .ls-road:not(.pub) .ls-stops li:not(.done):not(.now) .ic {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.pp .ls-road:not(.pub) .ls-stops li:not(.done):not(.now) .tx {
    opacity: 0.6;
}

.pp .ls-stops li.now .ic {
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 10px 22px rgba(214, 177, 114, 0.55);
    animation: ls-stop-now 1.8s ease-in-out infinite;
}

.pp .ls-stops li.now b {
    color: var(--gold-dark);
}

@keyframes ls-stop-now {
    0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 10px 22px rgba(214, 177, 114, 0.55); }
    50%      { box-shadow: 0 0 0 4px #fff, 0 0 0 11px rgba(214, 177, 114, 0.4), 0 10px 22px rgba(214, 177, 114, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
    .pp .ls-stops li.now .ic { animation: none; }
}

@media screen and (max-width: 480px) {
    /* สมรภูมิวันนี้ + การต่อสู้ล่าสุด : กล่องสถิติ / แถวรายชื่อเตี้ยลง */
    .pp .ls-today-stats { gap: 6px; margin-bottom: 8px; }
    .pp .ls-today-stats > div { padding: 6px 10px 5px; border-radius: 12px; }
    .pp .ls-today-stats small { font-size: 11px; line-height: 1.45; }
    .pp .ls-today-stats b { font-size: 16px; line-height: 1.3; }
    .pp .ls-mini li { gap: 8px; padding: 5px 2px; }
    .pp .ls-mini.av li { grid-template-columns: 20px 28px minmax(0, 1fr) auto; }
    .pp .ls-mini .ls-avatar { width: 28px; height: 28px; font-size: 12px; }
    .pp .ls-mini .nm { font-size: 14px; line-height: 1.35; }
    .pp .ls-mini .sc { font-size: 14px; }
    .pp .ls-mini .sc small { font-size: 11px; }
    .pp .ls-feed .nm small { font-size: 10.5px; line-height: 1.35; }
    .pp .ls-sub-head { margin: 14px 0 4px; }
    .pp .ls-sub-head h3 { font-size: 16px; }
    .pp .ls-sub-head h3 small { font-size: 11.5px; }
    .pp #ls-arena .empty { padding: 14px 10px; font-size: 13px; line-height: 1.6; }
    .pp #ls-arena .empty > i { margin-bottom: 4px; font-size: 22px; }

    /* ทำเนียบแชมป์ : ศึกชิงแชมป์ (นับถอยหลัง + ผู้นำ) / แชมป์ล่าสุด / แชมป์ย้อนหลัง เตี้ยลง */
    .pp .ls-champ { gap: 12px; }
    .pp .ls-champ-live { gap: 10px; padding: 16px 14px 14px; }
    .pp .ls-champ-live h3 { font-size: 19px; }
    .pp .ls-cd { gap: 5px; }
    .pp .ls-cd > div { padding: 6px 2px 5px; border-radius: 12px; }
    .pp .ls-cd b { font-size: 22px; }
    .pp .ls-cd small { font-size: 10.5px; }
    .pp .ls-close { font-size: 12px; }
    .pp .ls-leader { gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; }
    .pp .ls-leader .ls-avatar { width: 38px; height: 38px; font-size: 15px; }
    .pp .ls-leader small { font-size: 11px; }
    .pp .ls-leader b { font-size: 15px; }
    .pp .ls-leader .sc b { font-size: 20px; }
    .pp .ls-hall { padding: 12px; }
    .pp .ls-hall .empty { padding: 16px 10px; }
    .pp .ls-hall-top { gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; }
    .pp .ls-hall-top .ls-avatar { width: 48px; height: 48px; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 8px 16px rgba(214, 177, 114, 0.4); }
    .pp .ls-hall-top .ls-star { min-width: 20px; height: 20px; font-size: 10px; }
    .pp .ls-hall-top .rb { font-size: 11.5px; }
    .pp .ls-hall-top .nm { margin: 0; font-size: 17px; }
    .pp .ls-hall-top .wk { font-size: 11.5px; }
    .pp .ls-hall-top .sc b { font-size: 26px; }
    .pp .ls-hall-top .sc small { font-size: 11.5px; }
    .pp .ls-hall-list { gap: 6px; margin-top: 8px; }
    .pp .ls-hall-list li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; }
    .pp .ls-hall-list .ls-avatar { width: 32px; height: 32px; font-size: 13px; }
    .pp .ls-hall-list .nm { font-size: 14px; line-height: 1.35; }
    .pp .ls-hall-list .wk { font-size: 11px; line-height: 1.35; }
    .pp .ls-hall-list .sc { font-size: 14px; }
    .pp .ls-hall-more { margin-top: 8px; }

    /* เส้นทางสู่ตำนาน : ถนนแทนบันได */
    .pp .ls-ladder { display: none; }
    .pp .ls-road { position: relative; display: block; margin-top: 2px; }
}

/* ---------- จอคอมพิวเตอร์ (≥ 481px · เจ้าของเว็บขอ 2026-09-30) : หัวข้อทำเนียบผู้ยืนหยัดเด่นขึ้น · โพเดียม 1-5 แบบหรูหรา ----------
   มือถือ (≤ 480px) แสดงแบบเดิม */

.pp .ls-arena-head .wk i {
    display: none;   /* ไอคอนปฏิทินในป้ายสัปดาห์ : เฉพาะจอคอมพิวเตอร์ */
}

@media screen and (min-width: 481px) {
    /* หัวข้อกลางหน้า : มงกุฎในเหรียญทอง / ชื่อใหญ่ไล่สีทอง เส้นประดับสองข้าง / ป้ายสัปดาห์ + จำนวนผู้กล้า / กติกาบรรทัดล่าง
       กล่องชื่อและย่อหน้าเป็น display: contents : ป้ายสัปดาห์ (ใน p) กับจำนวนผู้กล้า (sec-tags) เรียงแถวเดียวกันได้ */
    .pp .ls-arena-head {
        position: relative;
        isolation: isolate;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 38px;
        text-align: center;
    }

    .pp .ls-arena-head::before {
        content: "";
        position: absolute;
        top: -34px;
        left: 50%;
        z-index: -1;
        width: min(780px, 100%);
        height: 230px;
        transform: translateX(-50%);
        background: radial-gradient(ellipse at 50% 42%, rgba(236, 204, 138, 0.34), transparent 70%);
        pointer-events: none;
    }

    .pp .ls-arena-head > div:first-child,
    .pp .ls-arena-head p {
        display: contents;
    }

    .pp .ls-arena-head h2 {
        display: grid;
        grid-template-columns: minmax(40px, 240px) auto minmax(40px, 240px);
        grid-template-areas: ". ic ." "l t r";
        justify-content: center;
        align-items: center;
        column-gap: 22px;
        flex: 0 0 100%;   /* แถวของตัวเอง : ป้ายสัปดาห์ / จำนวนผู้กล้าลงไปแถวถัดไป */
        margin: 0 0 2px;
        font-size: clamp(32px, 4.2vw, 46px);
        font-weight: 800;
        line-height: 1.25;
    }

    .pp .ls-arena-head h2::before,
    .pp .ls-arena-head h2::after {
        content: "";
        height: 2px;
        border-radius: 2px;
    }

    .pp .ls-arena-head h2::before {
        grid-area: l;
        background: linear-gradient(90deg, rgba(214, 177, 114, 0), #d6b172);
    }

    .pp .ls-arena-head h2::after {
        grid-area: r;
        background: linear-gradient(90deg, #d6b172, rgba(214, 177, 114, 0));
    }

    .pp .ls-arena-head h2 > i {
        grid-area: ic;
        justify-self: center;
        display: grid;
        place-items: center;
        width: 68px;
        height: 68px;
        margin: 0 0 14px;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 26%, #fff4d2 0%, #ebc97f 38%, #c3923f 78%, #a47631 100%);
        color: #fff;
        font-size: 28px;
        text-shadow: 0 2px 3px rgba(110, 72, 18, 0.45);
        box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(214, 177, 114, 0.6), 0 16px 32px rgba(176, 130, 58, 0.45);
    }

    .pp .ls-arena-head h2 .t {
        grid-area: t;
        padding: 6px 4px;
        background: linear-gradient(180deg, #dcb971 0%, #b8893d 52%, #85601f 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 10px 18px rgba(176, 130, 58, 0.25));
    }

    .pp .ls-arena-head .wk,
    .pp .ls-arena-head .sec-tags .tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 38px;
        padding: 0 18px;
        border: 1px solid rgba(214, 177, 114, 0.6);
        border-radius: 999px;
        background: linear-gradient(180deg, #fffaf0, #f6e9cf);
        color: #7a5a26;
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 6px 16px rgba(168, 132, 74, 0.16), inset 0 1px 0 #fff;
    }

    .pp .ls-arena-head .wk { order: 1; }
    .pp .ls-arena-head .wk i { display: inline-block; color: var(--gold-dark); }
    .pp .ls-arena-head .sec-tags { order: 2; justify-content: center; }
    .pp .ls-arena-head .sep { display: none; }

    .pp .ls-arena-head .rule {
        order: 3;
        flex: 0 0 100%;
        margin-top: 2px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 300;
    }

    /* โพเดียม : สปอตไลต์ทองหลังอันดับ 1 · ฐานโลหะ ทอง / เงิน / ทองแดง · อันดับ 4-5 ดำขอบทอง · เวทีพื้นเข้มใต้ฐาน
       ฐานมีเหรียญตัวเลข (.pd-no) ขอบมันด้านบน และแสงวิ่งผ่านเป็นระยะ (ตั้งค่าลดการเคลื่อนไหว = ไม่มีแสงวิ่ง) */
    .pp .ls-podium {
        position: relative;
        isolation: isolate;
        gap: 14px;
        margin-bottom: 48px;
        padding: 0 22px;
    }

    .pp .ls-podium::before {
        content: "";
        position: absolute;
        top: -70px;
        left: 50%;
        z-index: -1;
        width: 600px;
        max-width: 100%;
        height: 500px;
        transform: translateX(-50%);
        background: radial-gradient(ellipse at 50% 42%, rgba(246, 212, 140, 0.42), rgba(246, 212, 140, 0.14) 45%, transparent 72%);
        pointer-events: none;
    }

    .pp .ls-podium::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -22px;
        left: 0;
        z-index: -1;
        height: 22px;
        border-radius: 3px 3px 18px 18px;
        background: linear-gradient(180deg, #5a4630 0%, #33281c 45%, #1d160f 100%);
        box-shadow: inset 0 2px 0 #e6c787, 0 18px 32px -6px rgba(60, 40, 15, 0.35);
    }

    /* ช่องที่ยังไม่มีผู้เล่น (.pd.empty) : ไม่เอาระยะขอบของกล่องว่างทั่วไป (.pp .empty ใน pro.css) ฐานจะได้กว้างเต็มและตั้งบนเวที */
    .pp .ls-podium .pd.empty {
        padding: 0;
    }

    .pp .pd-base {
        position: relative;
        overflow: hidden;
        align-content: start;
        margin-top: 14px;
        padding-top: 16px;
        border-radius: 16px 16px 0 0;
    }

    /* ขอบมันด้านบน */
    .pp .pd-base::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 46%;
        border-radius: 16px 16px 50% 50% / 16px 16px 26px 26px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
        pointer-events: none;
    }

    /* แสงวิ่งผ่าน (ไล่จากอันดับ 5 ถึง 1 ตามจังหวะฐานยกขึ้น --d) */
    .pp .pd-base::after {
        content: "";
        position: absolute;
        top: -10%;
        bottom: -10%;
        left: 0;
        width: 42%;
        background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
        transform: translateX(-160%) skewX(-14deg);
        animation: ls-pd-shine 6.5s ease-in-out infinite;
        animation-delay: calc(var(--d, 0ms) + 2.4s);
        pointer-events: none;
    }

    @keyframes ls-pd-shine {
        0%        { transform: translateX(-160%) skewX(-14deg); }
        24%, 100% { transform: translateX(300%) skewX(-14deg); }
    }

    .pp .pd.p1 .pd-base {
        height: 172px;
        background:
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
            linear-gradient(90deg, rgba(90, 60, 15, 0.22), rgba(90, 60, 15, 0) 16%, rgba(90, 60, 15, 0) 84%, rgba(90, 60, 15, 0.3)),
            linear-gradient(180deg, #fff1c9 0%, #f0d38f 12%, #d9b062 38%, #c0913f 66%, #a57a2f 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 40px -10px rgba(176, 130, 58, 0.6);
    }

    .pp .pd.p2 .pd-base {
        height: 138px;
        background:
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
            linear-gradient(90deg, rgba(40, 50, 65, 0.18), rgba(40, 50, 65, 0) 16%, rgba(40, 50, 65, 0) 84%, rgba(40, 50, 65, 0.26)),
            linear-gradient(180deg, #ffffff 0%, #eef1f5 12%, #cfd6de 40%, #aeb7c2 70%, #939eab 100%);
        box-shadow: inset 0 1px 0 #fff, 0 18px 32px -12px rgba(100, 112, 128, 0.5);
    }

    .pp .pd.p3 .pd-base {
        height: 114px;
        background:
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
            linear-gradient(90deg, rgba(80, 40, 15, 0.2), rgba(80, 40, 15, 0) 16%, rgba(80, 40, 15, 0) 84%, rgba(80, 40, 15, 0.28)),
            linear-gradient(180deg, #ffe3c8 0%, #f0bd90 12%, #d7955f 40%, #b9723f 70%, #9a5a2e 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 32px -12px rgba(185, 114, 63, 0.5);
    }

    .pp .pd.p4 .pd-base,
    .pp .pd.p5 .pd-base {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 84%, rgba(0, 0, 0, 0.32)),
            linear-gradient(180deg, #56462f 0%, #3a2e21 32%, #261e15 100%);
        box-shadow: inset 0 2px 0 #d6b172, inset 1px 0 0 rgba(214, 177, 114, 0.3), inset -1px 0 0 rgba(214, 177, 114, 0.3), 0 16px 28px -12px rgba(40, 28, 14, 0.5);
    }

    .pp .pd.p4 .pd-base { height: 92px; }
    .pp .pd.p5 .pd-base { height: 78px; padding-top: 14px; }

    .pp .pd.p4 .pd-base::before,
    .pp .pd.p5 .pd-base::before {
        background: linear-gradient(180deg, rgba(255, 228, 170, 0.16), rgba(255, 228, 170, 0));
    }

    .pp .pd.p4 .pd-base::after,
    .pp .pd.p5 .pd-base::after {
        background: linear-gradient(100deg, rgba(255, 226, 160, 0), rgba(255, 226, 160, 0.22), rgba(255, 226, 160, 0));
    }

    /* เหรียญตัวเลขบนฐาน */
    .pp .pd-no {
        position: relative;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 55%, rgba(0, 0, 0, 0.06));
        color: #fff;
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
        text-shadow: 0 2px 3px rgba(0, 0, 0, 0.28);
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(0, 0, 0, 0.14), 0 6px 14px rgba(0, 0, 0, 0.16);
    }

    .pp .pd.p1 .pd-no {
        width: 74px;
        height: 74px;
        font-size: 40px;
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), inset 0 0 0 6px rgba(255, 255, 255, 0.18), inset 0 -4px 8px rgba(90, 60, 15, 0.2), 0 8px 18px rgba(120, 80, 20, 0.28);
    }

    /* เงิน : ตัวเลขสีเทาเข้มแบบสลัก (ขาวบนเงินอ่านยาก) */
    .pp .pd.p2 .pd-no {
        color: #5d6876;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .pp .pd.p4 .pd-no,
    .pp .pd.p5 .pd-no {
        width: 46px;
        height: 46px;
        background: radial-gradient(circle at 32% 28%, rgba(255, 230, 170, 0.24), rgba(255, 230, 170, 0.03) 60%);
        color: #f3d9a4;
        font-size: 23px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        box-shadow: inset 0 0 0 1.5px rgba(214, 177, 114, 0.85), 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

@media screen and (min-width: 481px) and (prefers-reduced-motion: reduce) {
    .pp .pd-base::after { display: none; }
}

/* ============================================================
   ป๊อปอัปยืนยัน / แจ้งเตือนของสนาม : itPop (../pro/popup.js + popup.css) ที่ส่ง cls 'ls-pop'
   ใช้กับ ปุ่มยอมแพ้ระหว่างเล่น (lsbox/lsquiz.js) · รวมการ์ด + แจ้งผิดพลาด (lsbox/lsbox.js)
   พื้นเข้มขอบทองชุดเดียวกับกล่องสุ่ม (lsbox.css .lsb-dialog) · เหรียญไอคอนมีวงแสงหมุน · ปุ่มทองมีแสงวิ่ง (pp-shine ใน pro.css)
   tone-bad สองปุ่ม (ยอมแพ้) : เหรียญแดง · ปุ่ม "เล่นต่อ" (ยกเลิก) เป็นปุ่มทองเด่น ปุ่มยืนยันเป็นขอบแดง
   ============================================================ */

.it-pop.ls-pop {
    --pop-tone: #f0cf8f;
    --pop-tone-2: #b8893f;
    --pop-tone-soft: rgba(214, 177, 114, 0.24);
    z-index: 1250;   /* เหนือกล่องสุ่ม (.lsb-modal 1200) ใต้ข้อความเตือนกันโกง (.lsq-flash 1300) */
    background: rgba(10, 8, 6, 0.74);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.it-pop.ls-pop.tone-bad {
    --pop-tone: #ff8a80;
    --pop-tone-2: #c63d37;
    --pop-tone-soft: rgba(255, 107, 97, 0.2);
}

.ls-pop .it-pop-box {
    overflow-x: hidden;
    padding: 38px 26px 24px;
    border: 1px solid rgba(214, 177, 114, 0.4);
    background:
        radial-gradient(120% 60% at 50% -6%, var(--pop-tone-soft), transparent 62%),
        radial-gradient(1px 1px at 16% 24%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(1px 1px at 84% 18%, rgba(255, 255, 255, 0.32), transparent 60%),
        radial-gradient(1px 1px at 76% 64%, rgba(255, 255, 255, 0.22), transparent 60%),
        radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(160deg, #2e241a, #15110c 70%);
    color: #fff;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 241, 207, 0.14);
    scrollbar-width: none;
    animation: ls-pop-in .42s cubic-bezier(.34, 1.4, .64, 1);
}

/* ขลิบทองขอบบน */
.ls-pop .it-pop-box::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #f3dcae, transparent);
    pointer-events: none;
}

.ls-pop.tone-bad .it-pop-box::after {
    background: linear-gradient(90deg, transparent, #ffb0a8, transparent);
}

.ls-pop .it-pop-x {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.ls-pop .it-pop-x:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* เหรียญไอคอน + วงแสงหมุนรอบ */
.ls-pop .it-pop-ic {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    background: radial-gradient(circle at 34% 28%, #fff4d9, var(--pop-tone) 42%, var(--pop-tone-2));
    color: #2b2016;
    font-size: 30px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 0 0 7px var(--pop-tone-soft), 0 0 46px var(--pop-tone-soft), 0 16px 30px rgba(0, 0, 0, 0.45);
}

.ls-pop.tone-bad .it-pop-ic {
    background: radial-gradient(circle at 34% 28%, #ffd6d1, var(--pop-tone) 42%, var(--pop-tone-2));
    color: #fff;
    text-shadow: 0 2px 4px rgba(90, 10, 5, 0.35);
}

.ls-pop .it-pop-ic::before {
    content: "";
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 62%, var(--pop-tone) 82%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: ls-pop-spin 2.6s linear infinite;
}

/* หัวข้อทองไล่เฉด : เว้นขอบบน-ล่างให้วรรณยุกต์ / สระบนไม่ถูกตัด */
.ls-pop .it-pop-t {
    margin: -6px 0 0;
    padding: 6px 0 2px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(180deg, #fff8e8, #f3d59c 55%, #d6b172);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ls-pop .it-pop-b {
    color: rgba(255, 255, 255, 0.72);
}

.ls-pop .it-pop-b p {
    margin: 0 0 4px;
}

.ls-pop .it-pop-b b {
    color: #f3d59c;
    font-weight: 600;
}

/* ---- ปุ่ม ---- */

.ls-pop .it-pop-acts {
    gap: 12px;
    margin-top: 22px;
}

.ls-pop .it-pop-btn {
    height: 52px;
}

.ls-pop .it-pop-btn:focus-visible {
    outline: 3px solid rgba(243, 213, 156, 0.75);
    outline-offset: 3px;
}

/* ปุ่มเด่น : ทองไล่เฉด + แสงวิ่ง (ปุ่มยืนยัน · tone-bad สองปุ่ม = ปุ่ม "เล่นต่อ") */
.ls-pop .it-pop-btn.main,
.ls-pop.tone-bad .it-pop-btn.line {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3dcae, #d6b172 48%, #b8893f);
    color: #2b2016;
    box-shadow: 0 12px 26px rgba(214, 177, 114, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ls-pop .it-pop-btn.main:hover,
.ls-pop.tone-bad .it-pop-btn.line:hover {
    background: linear-gradient(135deg, #f7e4bf, #dcb97c 48%, #c0924a);
    box-shadow: 0 16px 32px rgba(214, 177, 114, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.ls-pop .it-pop-btn.main::after,
.ls-pop.tone-bad .it-pop-btn.line::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: pp-shine 4s ease-in-out 1s infinite;
    pointer-events: none;
}

/* ไอคอนบนปุ่มทอง : วงกลมเข้ม ไอคอนทอง */
.ls-pop .it-pop-btn.main i {
    background: #2b2016;
    color: #f3d59c;
}

/* ปุ่มรอง (ยกเลิก) : โปร่ง ขอบทอง */
.ls-pop:not(.tone-bad) .it-pop-btn.line {
    background: rgba(255, 255, 255, 0.04);
    color: #f3d59c;
    box-shadow: inset 0 0 0 1.5px rgba(214, 177, 114, 0.55);
}

.ls-pop:not(.tone-bad) .it-pop-btn.line:hover {
    background: rgba(214, 177, 114, 0.12);
}

/* tone-bad สองปุ่ม : ปุ่มยืนยัน (ยอมแพ้) ขอบแดงโปร่ง ไม่เด่นกว่าปุ่มเล่นต่อ */
.ls-pop.tone-bad .it-pop-acts:not(.one) .it-pop-btn.main {
    background: rgba(255, 107, 97, 0.08);
    color: #ffaaa3;
    box-shadow: inset 0 0 0 1.5px rgba(255, 123, 114, 0.6);
}

.ls-pop.tone-bad .it-pop-acts:not(.one) .it-pop-btn.main:hover {
    background: rgba(255, 107, 97, 0.16);
    color: #ffc4be;
    box-shadow: inset 0 0 0 1.5px rgba(255, 138, 128, 0.85);
    transform: none;
}

.ls-pop.tone-bad .it-pop-acts:not(.one) .it-pop-btn.main::after {
    display: none;
}

/* ---- ยอมแพ้ : ด่าน / คะแนน / สถิติสัปดาห์นี้ ---- */

.ls-pop .ls-pop-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 6px 0 14px;
}

.ls-pop .ls-pop-stats span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 10px 6px 9px;
    border: 1px solid rgba(214, 177, 114, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.ls-pop .ls-pop-stats small {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ls-pop .ls-pop-stats b {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    color: #f3d59c;
    font-variant-numeric: tabular-nums;
}

/* ด่านปัจจุบัน : ป้ายทองแบบช่องด่านในแถบสถานะ */
.ls-pop .ls-pop-stats .on {
    border-color: transparent;
    background: linear-gradient(145deg, #f3dcae, #c49a55);
    box-shadow: 0 8px 18px rgba(214, 177, 114, 0.22);
}

.ls-pop .ls-pop-stats .on small,
.ls-pop .ls-pop-stats .on b {
    color: #2c231a;
}

.ls-pop .ls-pop-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.ls-pop .ls-pop-note i {
    color: var(--pop-tone);
}

/* นาฬิกาทรายพลิก : เวลายังเดินอยู่ */
.ls-pop .ls-pop-note .fa-hourglass-half {
    animation: ls-pop-tick 2.4s ease-in-out infinite;
}

/* ---- รวมการ์ด : การ์ด 3 ใบ → การ์ดสุ่มระดับถัดไป (สีระดับจาก .t-* ใน lsbox.css : --tc --tc2 --tg) ---- */

.ls-pop .ls-pop-fuse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 12px 0 16px;
}

.ls-pop .ls-pop-fuse .cd {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    width: 112px;
    min-height: 136px;
    padding: 14px 8px 12px;
    border: 1.5px solid var(--tc);
    border-radius: 18px;
    background: radial-gradient(circle at 50% 28%, var(--tg), transparent 70%), linear-gradient(160deg, #2a2118, #15110c);
    box-shadow: 0 0 24px var(--tg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 3 ใบซ้อนกัน (เงาเป็นขอบการ์ดใบหลัง) */
.ls-pop .ls-pop-fuse .cd.stack {
    box-shadow: 0 0 24px var(--tg), 6px -6px 0 -1.5px #231b13, 6px -6px 0 0 var(--tc), 12px -12px 0 -3px #1d1610, 12px -12px 0 -1.5px var(--tc);
}

.ls-pop .ls-pop-fuse .cd em {
    position: absolute;
    top: -11px;
    left: -11px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--tc2), var(--tc));
    color: #16110c;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 0 3px #1a140e;
}

.ls-pop .ls-pop-fuse .cd i {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--tc2), var(--tc));
    color: #16110c;
    font-size: 21px;
    box-shadow: 0 0 18px var(--tg);
}

.ls-pop .ls-pop-fuse .cd b {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.ls-pop .ls-pop-fuse .cd small {
    font-size: 12px;
    line-height: 1.35;
    color: var(--tc2);
}

/* การ์ดปลายทาง : ? ลอยขึ้นลง · ลูกศรขยับไปหา */
.ls-pop .ls-pop-fuse .cd:not(.stack) i {
    animation: ls-pop-bob 1.6s ease-in-out infinite;
}

.ls-pop .ls-pop-fuse .go {
    flex: none;
    color: #f3d59c;
    font-size: 22px;
    animation: ls-pop-nudge 1.2s ease-in-out infinite;
}

@keyframes ls-pop-in {
    from { opacity: 0; transform: translateY(18px) scale(0.92); }
    to   { opacity: 1; transform: none; }
}

@keyframes ls-pop-spin {
    to { transform: rotate(360deg); }
}

@keyframes ls-pop-nudge {
    0%, 100% { transform: translateX(-3px); opacity: 0.7; }
    50%      { transform: translateX(4px); opacity: 1; }
}

@keyframes ls-pop-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@keyframes ls-pop-tick {
    0%, 70% { transform: none; }
    100%    { transform: rotate(180deg); }
}

/* จอมือถือ : แผ่นเลื่อนขึ้นจากขอบล่าง (popup.css) · tone-bad ปุ่ม "เล่นต่อ" อยู่บน ยอมแพ้อยู่ล่าง */
@media screen and (max-width: 480px) {
    .ls-pop .it-pop-box {
        padding: 34px 20px calc(18px + env(safe-area-inset-bottom));
        border-bottom: 0;
        animation: it-pop-up .3s cubic-bezier(.2, .9, .3, 1);
    }
    .ls-pop .it-pop-box::before {
        background: rgba(255, 255, 255, 0.2);
    }
    .ls-pop.tone-bad .it-pop-acts .main {
        order: 1;
    }
    .ls-pop .ls-pop-fuse {
        gap: 12px;
    }
    .ls-pop .ls-pop-fuse .cd {
        width: 104px;
        min-height: 128px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ls-pop .it-pop-box,
    .ls-pop .it-pop-ic::before,
    .ls-pop .it-pop-btn::after,
    .ls-pop .ls-pop-note i,
    .ls-pop .ls-pop-fuse i {
        animation: none;
    }
}

/* ============================================================
   ปุ่มเริ่มเกม : สีแดง ลอยกลางล่างจอ (daily.php $ls_start · เจ้าของเว็บขอ 2026-10-03)
   สมาชิก = เข้าเกม (quiz_daily.php) · ผู้ยังไม่เข้าสู่ระบบ = ป๊อปอัปสมัครฟรี แล้วเข้าเกม
   วงแหวนแดงขยายจางออกเป็นจังหวะ (::before) ชวนกด · ตั้งค่าลดการเคลื่อนไหว = ไม่มีวงแหวน
   จอไม่เกิน 700px : สมาชิกมีเมนูล่าง (.mnav สูง 56px ห่างขอบล่าง 10px) ปุ่มจึงลอยเหนือเมนู · ผู้ยังไม่เข้าสู่ระบบไม่มีเมนูล่าง
   main.ls-has-start = เว้นท้ายหน้าให้เลื่อนเนื้อหาสุดท้ายพ้นปุ่มได้
   ============================================================ */

.pp .ls-start {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 95;   /* ใต้แถบเมนู (99) และป๊อปอัป (.ls-modal 200 · กล่องสุ่ม 1200) */
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 270px;
    height: 66px;
    padding: 0 36px 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6f61 0%, #f03c33 48%, #c81d24 100%);
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(110, 8, 12, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 16px 34px rgba(200, 29, 36, 0.45),
                inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(110, 8, 12, 0.3);
    transform: translateX(-50%);
    transition: transform 0.15s, filter 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.pp .ls-start::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid rgba(240, 60, 51, 0.8);
    border-radius: inherit;
    pointer-events: none;
    animation: ls-start-ring 1.9s ease-out infinite;
}

@keyframes ls-start-ring {
    0%   { inset: -4px; opacity: 0.9; }
    100% { inset: -22px; opacity: 0; }
}

.pp .ls-start:hover {
    color: #fff;
    filter: brightness(1.07) saturate(1.05);
}

.pp .ls-start:active {
    transform: translateX(-50%) scale(0.96);
}

.pp .ls-start:focus-visible {
    outline: 3px solid #ffd2cc;
    outline-offset: 5px;
}

/* ไอคอนเล่นในวงกลมขาว */
.pp .ls-start .ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: #e12b2b;
    font-size: 18px;
    text-shadow: none;
    box-shadow: 0 3px 8px rgba(110, 8, 12, 0.35);
}

.pp .ls-start .ic i {
    margin-left: 3px;   /* สามเหลี่ยมเล่นดูอยู่กลางวง */
}

.pp .ls-start .tx {
    flex: 1;
    text-align: center;
}

/* มีเกมค้าง : "เล่นต่อ ด่าน n" */
.pp .ls-start .tx small {
    margin-left: 8px;
    font-size: 0.68em;
    font-weight: 500;
    opacity: 0.9;
}

.pp.ls.ls-has-start {
    padding-bottom: 130px;
}

@media screen and (max-width: 700px) {
    .pp .ls-start {
        bottom: calc(102px + env(safe-area-inset-bottom, 0px));   /* เหนือเมนูล่าง รวมปุ่มกลางเมนูที่ยกสูงขึ้น (มงกุฎ / PRO) */
        gap: 12px;
        min-width: 240px;
        height: 58px;
        padding: 0 30px 0 8px;
        font-size: 21px;
    }
    .pp .ls-start .ic {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .pp.ls.ls-has-start {
        padding-bottom: 190px;
    }
    /* ผู้ยังไม่เข้าสู่ระบบ : ไม่มีเมนูล่าง ปุ่มชิดล่างจอ */
    .pp.ls-guest .ls-start {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .pp.ls.ls-guest.ls-has-start {
        padding-bottom: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp .ls-start::before {
        animation: none;
        opacity: 0;
    }
    .pp .ls-start {
        transition: none;
    }
}

/* ============================================================
   มือถือ (≤ 480px · เจ้าของเว็บขอ 2026-10-03 รอบ 3)
   การ์ดผู้เล่นเตี้ยลงอีก · คำอธิบายใต้หัวข้อทำเนียบผู้ยืนหยัดตัวเล็กลง · ป้าย "n ผู้กล้า" อยู่ต่อท้ายหัวข้อบรรทัดเดียวกัน
   ============================================================ */
@media screen and (max-width: 480px) {
    .pp .ls-player { padding: 8px 11px; row-gap: 0; }
    .pp .ls-player .ls-avatar { width: 32px; height: 32px; font-size: 13px; }
    .pp .ls-pl-name { font-size: 14px; line-height: 1.3; }
    .pp .ls-pl-sub .ls-tier { font-size: 10px; line-height: 1.6; }
    .pp .ls-pl-best .num { font-size: 24px; }
    .pp .ls-pl-best .unit { font-size: 9.5px; line-height: 1.2; }
    .pp .ls-pl-stats { margin-top: 6px; }
    .pp .ls-pl-stats > div { padding: 3px 7px; }
    .pp .ls-pl-stats small { font-size: 9px; line-height: 1.2; }
    .pp .ls-pl-stats b { font-size: 12.5px; }
    .pp .ls-next { margin-top: 5px; font-size: 10.5px; line-height: 1.3; }
    .pp .ls-player .lsb-bag { margin-top: 5px; }
    .pp .ls-player .lsb-bag > * { padding: 3px 4px; }
    .pp .ls-player .lsb-bag small { font-size: 10px; }
    .pp .ls-player .lsb-bag b { font-size: 12px; line-height: 1.25; }

    /* หัวข้อทำเนียบผู้ยืนหยัด : ชื่อ + ป้ายผู้กล้าแถวเดียว แล้วคำอธิบายบรรทัดถัดไป (ตัวเล็กลง) */
    .pp .ls-arena-head { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 10px; }
    .pp .ls-arena-head > div:first-child { display: contents; }
    .pp .ls-arena-head h2 { order: 1; }
    .pp .ls-arena-head .sec-tags { order: 2; }
    .pp .ls-arena-head .sec-tags .tag { padding: 2px 10px; font-size: 12px; }
    .pp .ls-arena-head p { order: 3; flex: 0 0 100%; margin: 0; font-size: 11.5px; line-height: 1.5; }
}

/* ผู้ยังไม่เข้าสู่ระบบ : ซ่อนปุ่มสมัครฟรี / เข้าสู่ระบบ + ข้อความโควตาใน hero (เจ้าของเว็บขอ 2026-10-03)
   ใช้ปุ่มแดง "เริ่มเกม" (ป๊อปอัปสมัคร / เข้าสู่ระบบ) แทน · โค้ดยังอยู่ใน daily.php เอาบรรทัดนี้ออก = แสดงตามเดิม */
.pp .ls-guest-cta {
    display: none;
}
